[Geoserver-devel] how to get KML response

Hi list,

Im trying to retrieve a geometry as KML file through my custom servlet, what libraries/class/functions do i require to get a KML response? my servlet is not working through wfs

regards,
Imran


I.R

There are a number of classes in the wms module for generating kml:

http://svn.codehaus.org/geoserver/trunk/src/wms/src/main/java/org/vfny/geoserver/wms/responses/map/kml/

There coupled tightly to the WMS chain but could probably be reused.

-Justin

Imran Rajjad wrote:

Hi list,

Im trying to retrieve a geometry as KML file through my custom servlet, what libraries/class/functions do i require to get a KML response? my servlet is not working through wfs

regards,
Imran

--
I.R

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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july

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

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

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi,

doesnt wms service responds with an image file,actualy i want to respond with a kml file that can be saved on disk and later opened in Google Earth!

I`l take a look at the link, thanx a lot

regards,
Imran

On Wed, Nov 18, 2009 at 6:21 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

There are a number of classes in the wms module for generating kml:

http://svn.codehaus.org/geoserver/trunk/src/wms/src/main/java/org/vfny/geoserver/wms/responses/map/kml/

There coupled tightly to the WMS chain but could probably be reused.

-Justin

Imran Rajjad wrote:

Hi list,

Im trying to retrieve a geometry as KML file through my custom servlet, what libraries/class/functions do i require to get a KML response? my servlet is not working through wfs

regards,
Imran


I.R



Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july



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


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.


I.R

Hi Irman,

Actually no the wms spec does not bind one to returning an image. The spec has the notion of "output formats". An output format can return non image content types such as svg, kml, rss, etc...

And this indeed is what geoserver uses to return KML. Take a regular WMS request for a png image and change the output format to "kml" and you will get kml back.

http://docs.geoserver.org/2.0.x/en/user/googleearth/index.html

-Justin

Imran Rajjad wrote:

Hi,

doesnt wms service responds with an image file,actualy i want to respond with a kml file that can be saved on disk and later opened in Google Earth!

I`l take a look at the link, thanx a lot

regards,
Imran

On Wed, Nov 18, 2009 at 6:21 PM, Justin Deoliveira <jdeolive@anonymised.com <mailto:jdeolive@anonymised.com>> wrote:

    There are a number of classes in the wms module for generating kml:

    http://svn.codehaus.org/geoserver/trunk/src/wms/src/main/java/org/vfny/geoserver/wms/responses/map/kml/

    There coupled tightly to the WMS chain but could probably be reused.

    -Justin

    Imran Rajjad wrote:

        Hi list,

        Im trying to retrieve a geometry as KML file through my custom
        servlet, what libraries/class/functions do i require to get a
        KML response? my servlet is not working through wfs

        regards,
        Imran

        -- I.R

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

        ------------------------------------------------------------------------------
        Let Crystal Reports handle the reporting - Free Crystal Reports
        2008 30-Day trial. Simplify your report design, integration and
        deployment - and focus on what you do best, core application
        coding. Discover what's new with
        Crystal Reports now. http://p.sf.net/sfu/bobj-july

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

        _______________________________________________
        Geoserver-devel mailing list
        Geoserver-devel@lists.sourceforge.net
        <mailto:Geoserver-devel@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/geoserver-devel

    -- Justin Deoliveira
    OpenGeo - http://opengeo.org
    Enterprise support for open source geospatial.

--
I.R

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.