[Geoserver-users] problem generating KML from GeoServer data in 26986

We have our data natively in 26986 (Massachusetts State Plane NAD 83 meters)
When I ask for KML in 4326 I get a response that has native coordinate values in the
and the instead of latitude and longitude.

Sample request:
http://giswebservices.massgis.state.ma.us/geoserver/wms?request=getmap&version=1.1.0&service=wms&layers=massgis:GISDATA.AIRPORTS_PT&styles=&bbox=-73.54,41.19,-69.91,42.90&format=application/vnd.google-earth.kml+xml&width=506&height=239&SRS=EPSG%3A4326

Piece of response:

239818.7972749198 847771.9375956772 700 10.0 10.0 #GeoServerStyleGISDATA.AIRPORTS_PT.37 239818.7972749198,847771.9375956772

Loading the KML into Google Earth zooms to off the coast of Africa instead of in Massachusetts.

The above WMS request with an output of image/png is fine.

I see in JIRA a number of entries relating to KML reprojection, so I’m not sure if this issue is already covered?

http://jira.codehaus.org/browse/GEOS-1239
http://jira.codehaus.org/browse/GEOS-1157
http://jira.codehaus.org/browse/GEOS-1240
http://jira.codehaus.org/browse/GEOS-1265

Aleda Freeman
MassGIS
Office of Geographic and Environmental Information
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://lyceum.massgis.state.ma.us - Webservices Wiki
http://maps.massgis.state.ma.us/biodiversity - EOEEA Biodiversity Days

Aleda Freeman
email: Aleda_Freeman@anonymised.com


Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.

Hi Aleda,

All my tests here which involve reprojecting into 4326 seem to work ok.
What type of datasource are you using? If i know you massgis folks it is
arcsde? :).

Is it possible that the native crs is not declared properly in GeoServer
so no reprojection is occurring?

-Justin

Aleda Freeman wrote:

We have our data natively in 26986 (Massachusetts State Plane NAD 83 meters)
When I ask for KML in 4326 I get a response that has native coordinate
values in the <LookAt>
and the <coordinates> instead of latitude and longitude.

Sample request:
http://giswebservices.massgis.state.ma.us/geoserver/wms?request=getmap&version=1.1.0&service=wms&layers=massgis:GISDATA.AIRPORTS_PT&styles=&bbox=-73.54,41.19,-69.91,42.90&format=application/vnd.google-earth.kml+xml&width=506&height=239&SRS=EPSG%3A4326

Piece of response:

         <LookAt>
            <longitude>239818.7972749198</longitude>
            <latitude>847771.9375956772</latitude>
            <range>700</range>
            <tilt>10.0</tilt>
            <heading>10.0</heading>
         </LookAt>
         <styleUrl>#GeoServerStyleGISDATA.AIRPORTS_PT.37</styleUrl>
         <Point>
            <coordinates decimal="." cs="," ts="
">239818.7972749198,847771.9375956772</coordinates>
         </Point>

Loading the KML into Google Earth zooms to off the coast of Africa
instead of in Massachusetts.

The above WMS request with an output of image/png is fine.

I see in JIRA a number of entries relating to KML reprojection, so I'm
not sure if this issue is already covered?

http://jira.codehaus.org/browse/GEOS-1239
http://jira.codehaus.org/browse/GEOS-1157
http://jira.codehaus.org/browse/GEOS-1240
http://jira.codehaus.org/browse/GEOS-1265

Aleda Freeman
MassGIS
Office of Geographic and Environmental Information
251 Causeway St. 5th floor
Boston, MA 02114
phone: 617-626-1193
fax: 617-626-1249
http://www.mass.gov/mgis - MassGIS
http://lyceum.massgis.state.ma.us - Webservices Wiki
http://maps.massgis.state.ma.us/biodiversity - EOEEA Biodiversity Days

Aleda Freeman
email: Aleda_Freeman@anonymised.com

Luggage? GPS? Comic books?
Check out fitting gifts for grads
<http://us.rd.yahoo.com/evt=48249/*http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz&gt;
at Yahoo! Search. !DSPAM:4007,46cda561115313327367457!

------------------------------------------------------------------------

-------------------------------------------------------------------------
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/

!DSPAM:4007,46cda561115313327367457!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,46cda561115313327367457!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org