[Geoserver-users] Compute from SRS bounds/Compute from native bounds/Reload Band definitions using REST api

Hi all,

I’m new to using geoserver REST API and i have trying to create a layer using the api. The problem is that when i upload a GeoTiff using the interface i usually compute the srs bounds and the native bounds when defining the layer and i cant seem to achieve this using the API.
Is there a way to do this (and also if possible reload the band definitions)?

I have searched a lot for this topic and i cant seem to find a concrete answer.

Thanks in advance to all replies.

Here is some docs here:

http://docs.geoserver.org/stable/en/user/rest/api/featuretypes.html#rest-api-featuretypes-recalculate

I am not sure I see it in the new docs:

http://docs.geoserver.org/api/#/1.0.0/featuretypes.yaml

···

On 31 July 2017 at 08:15, Diogo Silva <diogosilva810@anonymised.com> wrote:

Hi all,

I’m new to using geoserver REST API and i have trying to create a layer using the api. The problem is that when i upload a GeoTiff using the interface i usually compute the srs bounds and the native bounds when defining the layer and i cant seem to achieve this using the API.
Is there a way to do this (and also if possible reload the band definitions)?

I have searched a lot for this topic and i cant seem to find a concrete answer.

Thanks in advance to all replies.


Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

Geoserver-users@anonymised.com.382…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Jody Garnett

First of all thank you for your response.

I’m not working with vectors so i don’t think i can use that. I’ve figured out a way to do it though, either check the tiff info for the coordinate system (which might be what geoserver does?) or ask the user to input it, so I’ll be using that for now.

thanks

···

2017-07-31 23:12 GMT+01:00 Jody Garnett <jody.garnett@anonymised.com>:

Here is some docs here:

http://docs.geoserver.org/stable/en/user/rest/api/featuretypes.html#rest-api-featuretypes-recalculate

I am not sure I see it in the new docs:

http://docs.geoserver.org/api/#/1.0.0/featuretypes.yaml


Jody Garnett

On 31 July 2017 at 08:15, Diogo Silva <diogosilva810@anonymised.com> wrote:

Hi all,

I’m new to using geoserver REST API and i have trying to create a layer using the api. The problem is that when i upload a GeoTiff using the interface i usually compute the srs bounds and the native bounds when defining the layer and i cant seem to achieve this using the API.
Is there a way to do this (and also if possible reload the band definitions)?

I have searched a lot for this topic and i cant seem to find a concrete answer.

Thanks in advance to all replies.


Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

Geoserver-users@anonymised.comrge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users