Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jody Garnett
    @jodygarnett
    @aaime I guess we did not talk about ogcapi sprint; I am on holiday and may or may not attend.
    Andrea Aime
    @aaime
    I'll try to create a first implementation of a OGC API Coverages
    Brad Hards
    @bradh
    @aaime I had a lot of documentation fixes sitting on that feature templating PR. I really don't want to redo them as a separate PR.
    Can @taba90 fix them up?
    Andrea Aime
    @aaime
    Yeah he's looking into it
    Unfortunately they landed a few minutes after I've merged... he's gonna do a new PR
    Brad Hards
    @bradh
    There was a lot of docs, and it seems like a really useful bit of functionality, but it took me a while since its getting quite late here...
    Andrea Aime
    @aaime
    Yep, the module is getting quite some interest, along with the "app-schema-smart" one, to quickly setup complex features without the headaches of GML application schemas
    Brad Hards
    @bradh
    "I'll try anything that might help with that".
    However even the simple features case could be quite handy for dealing with client applications with limited capabilities.
    Andrea Aime
    @aaime
    Yep, it's also used to create simple features views out of complex features (for INSPIRE compliance for example)
    Angelos Tzotsos
    @kalxas
    no reply on the WFS issue :)
    should I open a ticket?
    I just wanted to realize if this could be a bug or not before opening a ticket
    Andrea Aime
    @aaime
    @kalxas I asked the people working on app-schema to have a look at it yesterday
    you can open the bug report, but it won't help
    Angelos Tzotsos
    @kalxas
    many thanks @aaime
    fixwhat
    @fixwhat
    Hello. Someone asked me what is the preferable method to run a instance of Geoserver on a windows machine: install tomcat and then deploy a .war geoserver or go with the platform independent binary? I don't have experience with windows so ...
    They will use this geoserver for internal projects only. It will not be on the open web.
    Paul van Genuchten
    @pvgenuchten
    @fixwhat, no experience with windows? i'd say go for docker https://hub.docker.com/r/oscarfonts/geoserver. Platform binary is fine for internal cases, install it as a service.
    1 reply
    Andrea Aime
    @aaime
    I've seen large cities use the platform independent binary (with the installer, which is about to become available again) for internal production
    For larger cases, if Windows is a must, we installTomcat and deploy GeoServer in it
    (where "we" is actually my colleagues dealing with it, not me :-D )
    fixwhat
    @fixwhat
    Nice to know Andrea. I don't think this will be a big server anyway since only one department using geo stuff.
    fixwhat
    @fixwhat
    Hello. I am trying to upload a layer trough the rest api. So I did something like:
    curl -v -u admin:geoserver -XPUT -H "Content-type: application/zip" --data-binary @zippedshape.zip http://localhost/geoserver/rest/workspaces/myworkspace/datastores/dbdatastore/file.shp
    6 replies
    Tino Desjardins
    @TDesjardins
    Hello, I wonder if there is a sensible solution to style a GeometryCollection with SLD in Geotools. There is a site in the geotools docs about the problem but there isn't any solution for separatly styling different geometrytypes of a GeometryCollection. In most cases it doesn't make sense to apply all symbolizers (Point, Line, Polygon) to one geometry.
    Andrea Aime
    @aaime
    Hmm... not with standard SLD... if I had to do it, I'd probably write a rendering trasnformation that splits the geometry collection into N features, one per sub-geometry, allowing each to be styled separately (it's not there, needs to be written)
    Tino Desjardins
    @TDesjardins

    Hmm... not with standard SLD... if I had to do it, I'd probably write a rendering trasnformation that splits the geometry collection into N features, one per sub-geometry, allowing each to be styled separately (it's not there, needs to be written)

    Thanks @aaime , that sounds interesting. Is there any guide how rendering transformation works? I only find some old docs about the approaches: http://old.geotools.org/Rendering-transformations_191299715.html

    Actually I could also modify the feature collection before rendering but I suppose the rendering transformation is a cleaner approach.
    Andrea Aime
    @aaime
    I'm afraid there are no guides, you can look at the existing ones though (use the source!)
    Basically it would be a WPS process that you invoke.. simple ones are not so hard to write, this one in particular is best written as a streaming process
    This one could be a starting point, although yours will be a bit more complicated, because for each input feature, you need to generate N in output: https://github.com/geotools/geotools/blob/8901b6fb7d7ada6e325398b48abd5b9dedffa0b8/modules/unsupported/process-feature/src/main/java/org/geotools/process/vector/CentroidProcess.java#L42
    the idea is to avoid allocating the entire collection in memory, which can be a GeoServer killer
    Tino Desjardins
    @TDesjardins
    I think I can work with this sources. In the past I got the PointStacker process working. Think I can use this as a starting point.

    the idea is to avoid allocating the entire collection in memory, which can be a GeoServer killer

    I currently only use Geotools without Geoserver but I know what you mean... I also had these concerns.

    Thanks again!
    Jody Garnett
    @jodygarnett
    Planet just informed me that they released domains, not sure what they did. Did they release to OSGeo or what …
    Andrea Aime
    @aaime
    maybe just released them to the public :-D
    Jody Garnett
    @jodygarnett
    I was at it half the day yesterday trying to figure it out. What a mess. Hopefully not too expensive mess.
    I have support ticket with the domain register (from before this happened). None of the domains are actually for sale. Not sure how it works.
    Carlo Cancellieri
    @ccancellieri
    Hi guys, I've a fantastic client which has added all the layers of the getCapabilities into the layers parameter and it's performing a single getMap requesting the whole catalog.... I've the control flow but I can't find a parameter limiting this bad scenario.... is there any undocumented option (number of layers per request)?
    I think the WMS response size is not applicable since the size of the image is ok the problem is the number of resources needed to render the image...
    The geoserver is managing 1k layers so that request bring regularly to a kill of the tomcat (asking for too many resources/memory/connections etc)...
    It's an incredible easy way to let a geoserver down
    Andrea Aime
    @aaime
    @ccancellieri there is not... but layers are read and rendered one by one, so eventually it should time out. Not sure why it's taking the server down
    Carlo Cancellieri
    @ccancellieri
    Thank you andrea, yes in fact, actually we tend to keep the timeout hi due to some very heavy layers (even at zoom >10 so not cached...) it's up to 180 secs so in the meanwhile the machine starts rendering a lot of stuff (I think the problem can be huge geometries in combination with all the rest), it's also hard to debug. I'll investigate. thank you for your kind and prompt reply.
    Tino Desjardins
    @TDesjardins

    Hi guys, I've a fantastic client which has added all the layers of the getCapabilities into the layers parameter and it's performing a single getMap requesting the whole catalog.... I've the control flow but I can't find a parameter limiting this bad scenario.... is there any undocumented option (number of layers per request)?
    I think the WMS response size is not applicable since the size of the image is ok the problem is the number of resources needed to render the image...
    The geoserver is managing 1k layers so that request bring regularly to a kill of the tomcat (asking for too many resources/memory/connections etc)...
    It's an incredible easy way to let a geoserver down

    A possible solution is to use a proxy which could filter requests by parameter values. In your case that could be the number of layers in the layers param in a GetMap-request.

    Carlo Cancellieri
    @ccancellieri
    Thank you Tino, yes, indeed we are applying some contingency policy at the moment over the load balancer, but this is actually the first time I've seen such strange request (not tiled, all the layers in 1 request, huge image also...) so I was thinking to add (if missing this feature to the control flow.
    The risk to play with the load balancer is to bring geospatial concerns to the infrastructure team which may require, approvals, etc etc... we also really don't want to limit other clients which may correctly ask huge (but reasonable) requests.
    So I think the number of layers limit (get and post) is a good parameter that we would really like to add to the control flow letting him play with a blacklist of bad guys...
    Andrea Aime
    @aaime
    Yeah, if you find you really need a layer limit (still wondering about it) best to enforce it internally
    there are too many ways to do a request with N layer
    GET, POST form, POST xml, SLD_BODY, external SLD
    you don't want to have to parse a SLD in your proxy to figure out how many layers it has inside, I believe :-D