Hi all,
The remote wms store from where I'm trying to publish layers supports
many SRSs. In the getcapabilities of the remote wms service there is
also defined multiple Bounding boxes, one for every srs.
<Layer>
<Title>Remote WMS Server</Title>
<SRS>EPSG:3133</SRS>
<SRS>EPSG:2391</SRS>
<SRS>EPSG:4326</SRS>
<SRS>EPSG:3386</SRS>
<Layer>
<Name>layer1/Name>
<Title>Layer 1</Title>
<LatLonBoundingBox minx="25" miny="61" maxx="26" maxy="62" />
<BoundingBox SRS="EPSG:4326" minx="25" miny="61"maxx="26" maxy="62" />
<BoundingBox SRS="EPSG:3133" minx="460000" miny="6858000"
maxx="505000" maxy="6927000" />
<BoundingBox SRS="EPSG:2391" minx="1723300" miny="6865200"
maxx="1762900" maxy="6937500" />
<BoundingBox SRS="EPSG:3386" minx="881000" miny="6879100"
maxx="917200" maxy="6953300" />
<ScaleHint min="0.177" max="362.039" />
</Layer>
</Layer>
Now when I publish a layer from that store GS takse one of these SRSs
as a native SRS. I haven't still figured out which srs of all the
possibilities GS chooses but it seems to be always the same. It is not
the first or the last one on the list nor the first or the last I have
entered in the limited srs list of the wms settings. The
GetCapabilites of my GS displays now only boundingbox of that "native"
srs and not all of them that are available in the orginal wms.
<Layer>
<Title>My WMS Service</Title>
<SRS>EPSG:3133</SRS>
<SRS>EPSG:2391</SRS>
<SRS>EPSG:4326</SRS>
<SRS>EPSG:3386</SRS>
<SRS>EPSG:3034</SRS>
<SRS>EPSG:3035</SRS>
<LatLonBoundingBox minx="21" miny="59" maxx="26" maxy="62" />
<Layer queryable="0">
<Name>mycascadedwms</Name>
<Title>Turun opaskartta _Turku</Title>
<SRS>EPSG:3136</SRS>
<LatLonBoundingBox minx="21" miny="59" maxx="26" maxy="62" />
<BoundingBox SRS="EPSG:3133" minx="460000" miny="6858000"
maxx="505000" maxy="6927000" />
</Layer>
</Layer>
Is there a way to specify the "native" srs that is used to pass the
bounding box?
Or even better if there is a way to pass all the bounding boxes from
cascaded wms layer.
Or just disable the BoundingBox attribute and just use LatLonBoundingBox
Thanks
-Lauri
On Thu, Jul 7, 2011 at 1:03 PM, Lauri Kajan <lauri.kajan@anonymised.com…> wrote:
Hi all,
The remote wms store from where I’m trying to publish layers supports
many SRSs. In the getcapabilities of the remote wms service there is
also defined multiple Bounding boxes, one for every srs.
Remote WMS Server
EPSG:3133
EPSG:2391
EPSG:4326
EPSG:3386
layer1/Name>
Layer 1
Now when I publish a layer from that store GS takse one of these SRSs
as a native SRS. I haven’t still figured out which srs of all the
possibilities GS chooses but it seems to be always the same. It is not
the first or the last one on the list nor the first or the last I have
entered in the limited srs list of the wms settings. The
GetCapabilites of my GS displays now only boundingbox of that “native”
srs and not all of them that are available in the orginal wms.
My WMS Service
EPSG:3133
EPSG:2391
EPSG:4326
EPSG:3386
EPSG:3034
EPSG:3035
mycascadedwms
Turun opaskartta _Turku
EPSG:3136
Is there a way to specify the “native” srs that is used to pass the
bounding box?
Or even better if there is a way to pass all the bounding boxes from
cascaded wms layer.
Or just disable the BoundingBox attribute and just use LatLonBoundingBox
What you want is not available but has been recently ticketed here:
http://jira.codehaus.org/browse/GEOS-4659
Not sure when that ticket will be addressed though
Cheers
Andrea
–
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
On Thu, Jul 7, 2011 at 3:24 PM, Andrea Aime
<andrea.aime@anonymised.com> wrote:
On Thu, Jul 7, 2011 at 1:03 PM, Lauri Kajan <lauri.kajan@anonymised.com> wrote:
Hi all,
The remote wms store from where I'm trying to publish layers supports
many SRSs. In the getcapabilities of the remote wms service there is
also defined multiple Bounding boxes, one for every srs.
<Layer>
<Title>Remote WMS Server</Title>
<SRS>EPSG:3133</SRS>
<SRS>EPSG:2391</SRS>
<SRS>EPSG:4326</SRS>
<SRS>EPSG:3386</SRS>
<Layer>
<Name>layer1/Name>
<Title>Layer 1</Title>
<LatLonBoundingBox minx="25" miny="61" maxx="26" maxy="62" />
<BoundingBox SRS="EPSG:4326" minx="25" miny="61"maxx="26" maxy="62" />
<BoundingBox SRS="EPSG:3133" minx="460000" miny="6858000"
maxx="505000" maxy="6927000" />
<BoundingBox SRS="EPSG:2391" minx="1723300" miny="6865200"
maxx="1762900" maxy="6937500" />
<BoundingBox SRS="EPSG:3386" minx="881000" miny="6879100"
maxx="917200" maxy="6953300" />
<ScaleHint min="0.177" max="362.039" />
</Layer>
</Layer>
Now when I publish a layer from that store GS takse one of these SRSs
as a native SRS. I haven't still figured out which srs of all the
possibilities GS chooses but it seems to be always the same. It is not
the first or the last one on the list nor the first or the last I have
entered in the limited srs list of the wms settings. The
GetCapabilites of my GS displays now only boundingbox of that "native"
srs and not all of them that are available in the orginal wms.
<Layer>
<Title>My WMS Service</Title>
<SRS>EPSG:3133</SRS>
<SRS>EPSG:2391</SRS>
<SRS>EPSG:4326</SRS>
<SRS>EPSG:3386</SRS>
<SRS>EPSG:3034</SRS>
<SRS>EPSG:3035</SRS>
<LatLonBoundingBox minx="21" miny="59" maxx="26" maxy="62" />
<Layer queryable="0">
<Name>mycascadedwms</Name>
<Title>Turun opaskartta _Turku</Title>
<SRS>EPSG:3136</SRS>
<LatLonBoundingBox minx="21" miny="59" maxx="26" maxy="62" />
<BoundingBox SRS="EPSG:3133" minx="460000" miny="6858000"
maxx="505000" maxy="6927000" />
</Layer>
</Layer>
Is there a way to specify the "native" srs that is used to pass the
bounding box?
Or even better if there is a way to pass all the bounding boxes from
cascaded wms layer.
Or just disable the BoundingBox attribute and just use LatLonBoundingBox
What you want is not available but has been recently ticketed here:
http://jira.codehaus.org/browse/GEOS-4659
Not sure when that ticket will be addressed though
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
Hi Andrea,
You have been a great help.
How about specifying the SRS that Geoserver uses as native?
Now GS chooses one SRS from cascaded wms randomly.
-Lauri
On Mon, Jul 11, 2011 at 12:04 PM, Lauri Kajan <lauri.kajan@anonymised.com84…> wrote:
Hi Andrea,
You have been a great help.
How about specifying the SRS that Geoserver uses as native?
Now GS chooses one SRS from cascaded wms randomly.
Same as above, missing feature. Afaik it’s not in our bug/feature request tracker,
you can add it, jira.codehaus.org
Cheers
Andrea
–
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf