Dear geoservers,
Is it possible to add more than one epsg:SRS to the GetCaps for a
FeatureType? When I use the web-wizard I can specify the SRS my data is
in, but what I want is to present the data also in another SRS than the
original data is in.
How to do that, I cannot find how to get this working. I am using
geoserver 1.5.0 though.
Best
Stephan
--
Stephan Holl <stephan.holl@anonymised.com>, http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
Stephan Holl ha scritto:
Dear geoservers,
Is it possible to add more than one epsg:SRS to the GetCaps for a
FeatureType? When I use the web-wizard I can specify the SRS my data is
in, but what I want is to present the data also in another SRS than the
original data is in.
How to do that, I cannot find how to get this working. I am using
geoserver 1.5.0 though.
Well, you have two ways. First is to reproject your data, instead
of having it reprojected on the fly by geoserver.
This can be done using, for example, ogr2ogr (see http://www.gdal.org/ogr and http://www.gdal.org/ogr/ogr2ogr\.html\).
Second way is to make sure your data has native projection (that is,
your data is shapefile and has the .prj file, or is in postgis and
it's properly registered). In that case, declare a different CRS and
Geoserver will reproject on the fly from the native CRS to the
declared one.
Hope this helps
Cheers
Andrea
Stephan Holl ha scritto:
Dear geoservers,
Is it possible to add more than one epsg:SRS to the GetCaps for a
FeatureType? When I use the web-wizard I can specify the SRS my data is
in, but what I want is to present the data also in another SRS than the
original data is in.
Ah, sorry, maybe I misunderstood thought... there is no way to have
multiple CRS declared at the moment.
For WMS requests, just have GetMap use a different SRS and reprojection
will occur automatically.
For WFS, the standard WFS 1.0 does not allow for reprojection on GetFeature requests, and the WFS GetCapabilities allows for just one SRS. Yet, we may be able to add reprojection on GetFeatures easily.
What is it that you need, WMS or WFS reprojection?
Cheers
Andrea
Hello Andrea,
Andrea Aime <aaime@anonymised.com>, [20070502 - 17:50:54]
Stephan Holl ha scritto:
> Dear geoservers,
>
> Is it possible to add more than one epsg:SRS to the GetCaps for a
> FeatureType? When I use the web-wizard I can specify the SRS my
> data is in, but what I want is to present the data also in another
> SRS than the original data is in.
>
> How to do that, I cannot find how to get this working. I am using
> geoserver 1.5.0 though.
Well, you have two ways. First is to reproject your data, instead
of having it reprojected on the fly by geoserver.
This can be done using, for example, ogr2ogr (see
http://www.gdal.org/ogr and http://www.gdal.org/ogr/ogr2ogr\.html\).
Second way is to make sure your data has native projection (that is,
your data is shapefile and has the .prj file, or is in postgis and
it's properly registered). In that case, declare a different CRS and
Geoserver will reproject on the fly from the native CRS to the
declared one.
Well, only second way is an option, but: Is it then announced in the
GetCaps? I assume no. I need to specify the BBOX and the SRS-parameters
during my GetFeature-request, to get the featuretype transformed on the
fly.
I like to have the supported SRS for a layer announced in the
GetCaps-document because my client parses this and decides which SRS to
offer.
Best regards
Stephan
--
Stephan Holl <stephan.holl@anonymised.com>, http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
Although do note that at the root 'Layer' element of WMS we list all the SRS values we have available - which is the whole epsg database. You don't have to add specific SRS's, they are all enabled by default.
If you want reprojection in WFS then you'll have to use 1.6.x series, as it supports WFS 1.1, which includes reprojection.
Chris
Andrea Aime wrote:
Stephan Holl ha scritto:
Dear geoservers,
Is it possible to add more than one epsg:SRS to the GetCaps for a
FeatureType? When I use the web-wizard I can specify the SRS my data is
in, but what I want is to present the data also in another SRS than the
original data is in.
Ah, sorry, maybe I misunderstood thought... there is no way to have
multiple CRS declared at the moment.
For WMS requests, just have GetMap use a different SRS and reprojection
will occur automatically.
For WFS, the standard WFS 1.0 does not allow for reprojection on GetFeature requests, and the WFS GetCapabilities allows for just one SRS. Yet, we may be able to add reprojection on GetFeatures easily.
What is it that you need, WMS or WFS reprojection?
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
Stephan Holl ha scritto:
Hello Andrea,
Well, only second way is an option, but: Is it then announced in the
GetCaps? I assume no. I need to specify the BBOX and the SRS-parameters
during my GetFeature-request, to get the featuretype transformed on the
fly.
I like to have the supported SRS for a layer announced in the
GetCaps-document because my client parses this and decides which SRS to
offer.
Are we talking about WMS or WFS?
Cheers
Andrea
Hello Chris,
Chris Holmes <cholmes@anonymised.com>, [20070502 - 12:02:18]
Although do note that at the root 'Layer' element of WMS we list all
the SRS values we have available - which is the whole epsg database.
You don't have to add specific SRS's, they are all enabled by default.
If you want reprojection in WFS then you'll have to use 1.6.x series,
as it supports WFS 1.1, which includes reprojection.
OK, thank you. Thats it. Currently my client parses the GetCaps for
layerspecific SRS and populates a menu. Currently only one SRS is found
(and this is the known-to-be-correct behaviour in geoserver 1.5.x.
Thanks for enlightment.
Stephan
Chris
Andrea Aime wrote:
> Stephan Holl ha scritto:
>> Dear geoservers,
>>
>> Is it possible to add more than one epsg:SRS to the GetCaps for a
>> FeatureType? When I use the web-wizard I can specify the SRS my
>> data is in, but what I want is to present the data also in another
>> SRS than the original data is in.
>
> Ah, sorry, maybe I misunderstood thought... there is no way to have
> multiple CRS declared at the moment.
> For WMS requests, just have GetMap use a different SRS and
> reprojection will occur automatically.
> For WFS, the standard WFS 1.0 does not allow for reprojection on
> GetFeature requests, and the WFS GetCapabilities allows for just
> one SRS. Yet, we may be able to add reprojection on GetFeatures
> easily.
>
> What is it that you need, WMS or WFS reprojection?
> Cheers
> Andrea
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Stephan Holl <stephan.holl@anonymised.com>, http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner