[Geoserver-users] WMS getCapabilities responds with all the supported EPSG!!

Hi Everybody,

I am using Geoserver 1.5.0v and working on a mobile GIS (java midlet)
project.
My problem is when the geoserver responds to the getCapabilities command
with a 146KB file, where if i cut away all the supported EPSG projections,
the file shrinks down to 36KB. Since i am working on a mobile project, 146KB
is a big file and takes for a GPRS mobile about 30seconds.

I was wondering, if there is any way, the geoserver could be configured to
send back only the relevant EPSG and not every supported EPSG.

Following is a part of the wms getCapabilities response

</Abstract>
      <!--common SRS:-->
      <SRS>EPSG:26591</SRS>
<!--All supported EPSG projections:-->
      <SRS>EPSG:2000</SRS>
      <SRS>EPSG:2001</SRS>
      <SRS>EPSG:2002</SRS>
      <SRS>EPSG:2003</SRS>
      <SRS>EPSG:2004</SRS>
      <SRS>EPSG:2005</SRS>
      <SRS>EPSG:2006</SRS>
      <SRS>EPSG:2007</SRS>
      <SRS>EPSG:2008</SRS>

Thank you in advance
--
View this message in context: http://www.nabble.com/WMS-getCapabilities-responds-with-all-the-supported-EPSG!!-tf4205995.html#a11964063
Sent from the GeoServer - User mailing list archive at Nabble.com.

Choe ha scritto:

Hi Everybody,

I am using Geoserver 1.5.0v and working on a mobile GIS (java midlet)
project. My problem is when the geoserver responds to the getCapabilities command
with a 146KB file, where if i cut away all the supported EPSG projections,
the file shrinks down to 36KB. Since i am working on a mobile project, 146KB
is a big file and takes for a GPRS mobile about 30seconds.

Heh... the only limited answer I can give you for the moment is
already in the geoserver-users archives (well buried, I admit):
http://www.nabble.com/Two-Questions%3A-Geoserver-Performance-with-ArcGIS-9.2%2C-Querying-Raster-Layers--tf4099167.html#a11670057

Hopefully some day we'll throw away the current config subsystem
and we'll add a filter to limit the supported SRS (in which order
that will happen, I don't know) :slight_smile:
Cheers
Andrea

Hi Andrea,

Thanks for such a prompt reply. I followed the link and I understood that
there is not much we can do to avoid it.
1. Either to edit it manually and save it on the server and send it when
asked for getCapabilities (WMS)

2. Modify those libraries as mentioned by chris, but than you wrote that the
server looses some functionalities.

The other way i was thinking was to have a servlet in between the SERVER and
the CLIENT. So the getCapabilities response is pruned and personalised
before sending it to the client.

Any other way to over come this problem would be highly appreciated.
:ninja:
--
View this message in context: http://www.nabble.com/WMS-getCapabilities-responds-with-all-the-supported-EPSG!!-tf4205995.html#a11966577
Sent from the GeoServer - User mailing list archive at Nabble.com.

Choe ha scritto:

Hi Andrea,

Thanks for such a prompt reply. I followed the link and I understood that
there is not much we can do to avoid it. 1. Either to edit it manually and save it on the server and send it when
asked for getCapabilities (WMS)

2. Modify those libraries as mentioned by chris, but than you wrote that the
server looses some functionalities.

Well, if you're not playing with polar areas (stereographic polar) and
you take care of declaring the TOWGS84 in all your wkt you should
have no problems... well, this is only I guess, I haven't made
any real test.

Cheers
Andrea

Dear List,

can you assume when it will be possible to limit the offered SRS of
Geoserver via Admin interface (which version)? We made a quick workaround by
storing a local copy of the Capability-XML-file on the server and removing
most of the SRS-codes in this file. Now loading the local geoserver WMS in a
map client is quickly done. I know it is a quick-and dirty solution, but it
helps !

We use Geo. 1.5.3: is it possible to edit the epsg.sql in the
gt2-epsg-hsql-2.3.4.jar-file and create a new gt2-epsg-hsql-database out of
it and use this one ? This would be another quick possibility.

Hope this problem can be solved soon.
Best regards, Cornelius

aaime wrote:

Choe ha scritto:

Hi Andrea,

Thanks for such a prompt reply. I followed the link and I understood that
there is not much we can do to avoid it.
1. Either to edit it manually and save it on the server and send it when
asked for getCapabilities (WMS)

2. Modify those libraries as mentioned by chris, but than you wrote that
the
server looses some functionalities.

Well, if you're not playing with polar areas (stereographic polar) and
you take care of declaring the TOWGS84 in all your wkt you should
have no problems... well, this is only I guess, I haven't made
any real test.

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/WMS-getCapabilities-responds-with-all-the-supported-EPSG!!-tf4205995.html#a13428138
Sent from the GeoServer - User mailing list archive at Nabble.com.