I know there is a recalculate REST endpoint we use when we upload new files
through our process.
Using this XML and endpoint
<featureType>
<enabled>%s</enabled>
<advertised>%s</advertised>
<maxFeatures>0</maxFeatures>
<numDecimals>0</numDecimals>
</featureType>"
String path =
String.format("rest/workspaces/%s/datastores/%s/featuretypes/%s.xml",
workspace, dataStore, layerName);
Map<String, String> queryParams = new HashMap<>();
queryParams.put("recalculate", "nativebbox,latlonbbox");
And process as a PUT request
Documented at
http://docs.geoserver.org/stable/en/user/rest/api/featuretypes.html#rest-api-featuretypes-recalculate
Chris Snider
Senior Software Engineer
Intelligent Software Solutions, A Polaris Alpha Company
[Description: Description: Description: cid:[email protected]]
From: Torben Barsballe [mailto:[email protected]]
Sent: Tuesday, July 11, 2017 1:56 PM
To: Jody Garnett <[email protected]>; Andrea Aime
<[email protected]>
Cc: GeoServer <[email protected]>
Subject: Re: [Geoserver-devel] GSIP 161
On Tue, Jul 11, 2017 at 10:37 AM, Jody Garnett
<[email protected]<mailto:[email protected]>> wrote:
I think we can also calculate bounds via rest api?
I though that was still one of the things we could only do in the UI? I would
be happy to be wrong though.
On Tue, Jul 11, 2017 at 10:25 AM, Andrea Aime
<[email protected]<mailto:[email protected]>> wrote:
Hi,
I had a quick look at the proposal and I cannot really wrap my head around it,
honestly as
I read it it seems hacky but instinctively I blame the way it's presented
instead of the substance.
Could you for example show a step by step of it would be used referring only
core concepts/functionality
(mapbox is not even an extension), like, how does one define a multi-layer SLD
and then make it into a group
with the current UI?
And then again, using the REST API?
Cheers
Andrea
The main idea with this GSIP is just promoting the existing NamedLayer
functionality in SLD to a first class citizen in GeoServer.
The GSIP has been updated with (fairly basic) examples for how one would use
the new functionality (see "Using Style Groups", in the Proposal section).
There is now also a detailed description of the existing functionality this is
based upon at the end of the GSIP, and how it would be used in a current
GeoServer (See "Use of Multi-Layered SLD Files in GeoServer").
Torben
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel