Thanks Justin for the info.
I should have mentioned in my earlier post that after seeing the
correctly calculated extents within the GUI, then clicking Submit,
Apply, Save, when I go back to the FeatureType editor, those calculated
extents are gone, replaced by the original lat-long extents. So I don't
think that this tool is working like it should. Unless some other spec
file is storing this information for later retrieval by some other part
of GeoServer.
I did discover that I can manually edit the info.xml, restart Tomcat,
and then display my data in state plane. However, there are some
issues, since I have to zoom completely out (I'm using the built-in
openlayers from the Demo interface) to see the map, and if I zoom in at
all, the map disappears. When viewing the map, I cannot click on a
feature to get it's attributes. I can click a feature, but no attributes
are displayed. It's as if the mouse click location is not being
re-projected.
So, maybe I'm mis-understanding the utility of the SRS stuff in the GUI.
The 'Reproject from native to declared SRS' suggests to me that it
should project on the fly, making the image from that WMS appear in that
projection on a client. But perhaps it's something along the lines as
you suggest, not sure.
Thanks again, Bob
-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: Tuesday, October 30, 2007 2:54 PM
To: Nutsch, Bob D.
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] Problem with on the fly projection
I could be wrong but I believe this is the intended behavior.
When you select that srs handling option all it does it tell
GeoServer to reproject whenever outputting.. so I would exect
the state plane bounds to be what shows up in say a
capabilities document... but see no reason why info.xml
should not store the native bounds.
Andrea can give you a more decisive answer.
-Justin
Bob Nutsch wrote:
> Hi,
>
> For both shapefiles and SDE vector data I am having a
problem with on
> the fly projection when using 1.6 Beta 4, running in Tomcat
5.5, XP,
> Java 1.5.0_13.
>
> The native format of the data is geographic, NAD83. I'm trying to
> project to EPSG 2266 (state plane). In the FeatureType Editor, I
> enter the 2266 in the SRS field, and from the SRS Handling
pull-down
> menu I select 'Reproject from native to declared SRS'. I
then click
> on the Generate button and I then see the min-max X-Y's correctly
> calculated from the data extent. I scroll down and click on the
> Submit button then Apply and Save. However, in the
info.xml for that
> layer, the min-max values remain unchanged, they still
reflect lat-long and not state plane.
>
> Am I missing something or is this a feature?
>
> Thanks, Bob
>
>
>
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org