KML and reprojection

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

KML and reprojection

Philippe Duchesne

I seem to have an issue with the KML output and reprojection of data.

I have a PostGis datastore, with some data in an UTM projection (namely EPSG:31300) .
I have a GeoServer on top of it, with a feature type defined as being in EPSG:31300 .
Both are latest versions, as of last week.

I'm trying to output that as KML through the WMS interface, but it fails in this configuration, while the same WMS request works very well if I ask an image format, e.g . image/gif .

This works : http://localhost:8080/geoserver//wms?service=WMS&request=GetMap&format=image/gif&width=1024&height=1024&srs=EPSG:31300&layers=mylayer&styles=mystyle&bbox=0,0,10000,10000

This doesn't (empty KML file): http://localhost:8080/geoserver//wms?service=WMS&request=GetMap&format=application/vnd.google-earth.kml+XML&width=1024&height=1024&srs=EPSG:31300&layers=mylayer&styles=mystyle&bbox=0,0,10000,10000

I understand that GE needs data to be in 4326, and so the WMS requests issued to the WMS will be in 4326, but the WMS should be able to reproject the data, doesn't it ?

In other words : is there any way to get a kml output from data that is stored at the db level in some other srs than 4326 ?

thank you,

--p.








Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: KML and reprojection

Brent Owens
The KML system doesn't do reprojection yet, but it should in a couple weeks.
I will let everyone know when it is ready.

Brent Owens
(The Open Planning Project)



Philippe Duchesne wrote:

>
> I seem to have an issue with the KML output and reprojection of data.
>
> I have a PostGis datastore, with some data in an UTM projection
> (namely EPSG:31300) .
> I have a GeoServer on top of it, with a feature type defined as being
> in EPSG:31300 .
> Both are latest versions, as of last week.
>
> I'm trying to output that as KML through the WMS interface, but it
> fails in this configuration, while the same WMS request works very
> well if I ask an image format, e.g . image/gif .
>
> This works :
> http://localhost:8080/geoserver//wms?service=WMS&request=GetMap&format=image/gif&width=1024&height=1024&srs=EPSG:31300&layers=mylayer&styles=mystyle&bbox=0,0,10000,10000 
> <http://localhost:8080/geoserver//wms?service=WMS&request=GetMap&format=image/gif&width=1024&height=1024&srs=EPSG:31300&layers=mylayer&styles=mystyle&bbox=0,0,10000,10000>
>
> This doesn't (empty KML file):
> http://localhost:8080/geoserver//wms?service=WMS&request=GetMap&format=application/vnd.google-earth.kml+XML&width=1024&height=1024&srs=EPSG:31300&layers=mylayer&styles=mystyle&bbox=0,0,10000,10000 
> <http://localhost:8080/geoserver//wms?service=WMS&request=GetMap&format=application/vnd.google-earth.kml+XML&width=1024&height=1024&srs=EPSG:31300&layers=mylayer&styles=mystyle&bbox=0,0,10000,10000>
>
> I understand that GE needs data to be in 4326, and so the WMS requests
> issued to the WMS will be in 4326, but the WMS should be able to
> reproject the data, doesn't it ?
>
> In other words : is there any way to get a kml output from data that
> is stored at the db level in some other srs than 4326 ?
>
> thank you,
>
> --p.
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>  

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users