Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Toni
    @t-book
    (to double-check a correct path to style xml and sld ;)
    Björn Harrtell
    @bjornharrtell

    I'm getting cut of stack traces in the geoserver log, in this case trouble initializing a data store, making it hard to debug the issue. Anyone know why and/or how to make it produce the full stack trace? It looks like this:

    2021-04-20T19:53:45.091001170Z at org.geoserver.catalog.LockingCatalogFacade.invoke(LockingCatalogFacade.java:36)
    2021-04-20T19:53:45.099225762Z ... 127 more
    2021-04-20T19:53:45.099238462Z Caused by: java.lang.NullPointerException
    2021-04-20T19:53:45.099282862Z at com.sun.proxy.$Proxy25.isIsolated(Unknown Source)
    2021-04-20T19:53:45.099298262Z at org.geoserver.catalog.impl.IsolatedCatalogFacade.canSeeWorkspace(IsolatedCatalogFacade.java:650)
    2021-04-20T19:53:45.099302562Z at org.geoserver.catalog.impl.IsolatedCatalogFacade.getStoreByName(IsolatedCatalogFacade.java:86)
    2021-04-20T19:53:45.099306262Z ... 132 more
    2021-04-20T19:53:45.152908210Z 20 Apr 19:53:45 WARN [org.geoserver] - Failed to load data store 'HNV2021_20210226'

    James Hughes
    @jnh5y
    that's mighty odd. Were it me, I'd load up the GS codebase and debug what you can see. If I had to guess I'd be looking for things around the namespace parameter that was discussed previously
    Jody Garnett
    @jodygarnett

    @t-book no silly questions, the style references are in ... layer.xml.

    Here is an example in sf/sf/roads/layer.xml, you can see two StyleInfoImpl instances referenced (one as the defaultStyle and one in the styles list).

    Toni
    @t-book
    @jodygarnett thanks a lot! and every style.xml has a matching id. got it.
    Bildschirmfoto 2021-04-21 um 07.06.46.png
    Jody Garnett
    @jodygarnett
    These kind of debugging this are a pain, if it helps there is a REST API call you can use to "reload", or use the "reload" button on the Server > About page.
    Toni
    @t-book
    thanks @jodygarnett the rest endpoint looks heapful also to check by script which styles geoserver is aware of.
    Andrea Aime
    @aaime
    I've found the main branch nightly build to run only @daily. We agreed time ago that main is used for demos of current state of GeoServer, and that it needed a more frequent build because of that. I've changed the build trigger to follow gs-main build.
    Jody Garnett
    @jodygarnett
    I just copied what was there, do what is needed :)
    James Hughes
    @jnh5y
    OGC question of the day: A WFS/WMS GetCapabilities returns lots of data about a layer (like keywords, abstract, etc). Can DescribeFeatureType return any "extra" info? (differently, my goal is to provide database details like indexes through some endpoint that's moderated by the Catalog)
    Andrea Aime
    @aaime
    @jnh5y only the schema is returned
    the xml schema in theory could bring some more information in the form of... what was it.. annotations? something like that
    but you'd have to add that info somewhere in the featuretype, user maps I guess, and then make use of it in the schema encoder
    James Hughes
    @jnh5y
    @aaime sounds good. Are there any other obvious alternatives?
    Andrea Aime
    @aaime
    Vendor requests I guess
    James Hughes
    @jnh5y
    ok, sounds like that'd be modifying a bit of GT and GS code, right? (Asking neutrally; just to trying to assess the situation)
    Andrea Aime
    @aaime
    yep
    James Hughes
    @jnh5y
    cool thanks. It seems like jamming keywords into a layer for access via GetCapabilities may be the easiest option
    Andrea Aime
    @aaime
    bit obscure maybe, but as long as you control both ends (server and client), why not
    James Hughes
    @jnh5y
    Yeah, I find myself in situations where sometimes I have control of both ends... Since I can't always assume control, I wanted to ask about the options which would be standards based
    Björn Harrtell
    @bjornharrtell
    One long time annoyance that I've had with what describefeaturetype can produce is that there seem to be no standard way to provide an alias and/or description of a field. Seems so basic but instead I've seen countless implementations keeping that info elsewhere.
    Andrea Aime
    @aaime
    Aliasing is not part of the cards AFAIK, but a description can be provided
    it's just something that would need to be configured in the GeoServer UI (seen databases allow description of columns too, if memory serves me right)
    James Hughes
    @jnh5y
    yeah, when I mentioned descriptions for columns previously, Jody linked to a GeoServer 1.0 screenshot!
    Tisham Dhar
    @whatnick
    Hi all I am back with a new idea / feature request. Athena in AWS now supports some spatial features. Can we use it as a vector data source ?
    What work would be needed to get there ?
    I could agitate / get AWS developers on this
    Brad Hards
    @bradh
    It might work with a pretty basic geotools plugin (for which there is a tutorial, obviously not for that format though). I would imagine it will be terrible without at least some caching though. What is the problem you want to solve?
    Tisham Dhar
    @whatnick
    @bjornharrtell our NRT data pipelines produce vectors per satellite scene to S3 in read-only accounts. Due to team topologies Geoserver is managed and run by another team in another account. We could do VPC peering and feed the vectors into their PostGIS. I am however looking for alternatives way to serve the data in-place from S3. The postgis solution will most likely be first cut. Then we can enhance it with a geotools athena datastore or at least test it.
    Andrea Aime
    @aaime
    @whatnick that sounds cool :-D
    shantanuaggarwal2695
    @shantanuaggarwal2695
    I am working with Geotools and raster images but facing an error org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:32720" from authority "EPSG" found for object of type "EngineeringCRS". Did anyone face this error?
    Brad Hards
    @bradh
    In geoserver? How did you configure the layer?
    James Hughes
    @jnh5y
    @whatnick if Athena supports SQL pretty well, then it may be really quick for a GeoServer commercial support partner to write a datastore: http://geoserver.org/support/
    There are abstraction layers on top of the tutorial which Brad linked to which could make things easier
    tharun-allu
    @tharun-allu
    Hi, We have deployed Geoserver in kubernetes with 3 pods and activeMQ for the cluster transport. What we are observing is that the data is not being synced across all the 3 pods when REST api calls are made. When I run the rest/reload api the data seems to be syncing fine. Can someone share if they experienced similar issues and what the solution is to have the cluster nodes in sync?
    loridigia
    @loridigia
    Hi guys, i'm tring to do something like this https://opentopomap.org/ with geoserver.
    Basically i have a pyramid structure in my DB, what i want is that each zoom lvl you go, my plugin gets the lvl and the BBOX of the area -> get filtered data from DB -> merge and return it to geoserver as GridCoverage2D. My only problem is that i can't actually find a parameter, passed from geoserver to my plugin, that works like a zoom. But i saw the Imagepyramid plugin and seems to works like i want, which parameter does it use? Which should i use? Should i calculate the zoom based on the BBOX that geoserver passes me? Thanks
    Andrea Aime
    @aaime
    Based on the GridGeometry it's giving you, has both a bbox and a width/height, so you can compute a scale. That's what pyramid does, as well as image mosaic, geotiff and so on (all plugins that can have multiple overviews in their data)
    loridigia
    @loridigia
    Ah ok, thanks, i'll look the plugins to see how they compute those infos to obtain a scale
    loridigia
    @loridigia
    Hi, @aaime do you have some code reference (maybe somewhere in geoserver's files) where i can find how to compute scale? I thought was easier but it's a little bit tricky and i couldn't find some equation online, thanks
    loridigia
    @loridigia
    Thanks !
    JB-data
    @JB-data

    Dear experts,
    I am working with geoserver with geomesa/hbase data.
    I typically work with a small number of maps.
    Caching is very important: cold data takes much longer to load then hot data.
    In my startup script for geoserver (=shell), I would like to access my maps once before I really start my analysis (during the real analysis I zoom in, out, move, apply CQL filters).

    Question: How to trigger the loading of the map from a shell script? I am not interested in seeing the maps (like when I access the urls with the browser for the real analysis), just preheating my data=triggering all the queries to retrieve the data from the backend.
    During my analysis I access maps through:
    https://server:port/geoserver/cite/wms?service=WMS&version=1.1.0&request=GetMap&layers=map1,map2&CQL_FILTER=query1,query2&styles=polygon,heatmap&width=768&height=384&srs=EPSG%3A4326&format=application/openlayers
    I would expect with a curl command, but cant find a good example.
    All examples I find are for doing actions other than triggering loading the data (like add a shapefile, add a user, etc.) that is behind the map.

    Brad Hards
    @bradh
    I'm not sure what kind of example you want. You can just use the URL with curl.
    Or do you need to discover the layers?
    JB-data
    @JB-data

    curl <url> gives
    '''

    <ServiceException code="MissingParameterValue" locator="request">
    Could not determine geoserver request from http request org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@315ab8c4
    </ServiceException></ServiceExceptionReport>'''
    So maybe at the end I need to add request=<something> ?

    Brad Hards
    @bradh
    What are you putting in tourl? It looks like your example has a request=GetMap, so probably you need to escape something like the &.
    In shell that means something special - like background the process.