[mapserver-users] KML for mapscript Map...
Hello... Is it possible to get KML from Mapscript(c#) map? How? Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML for mapscript Map...
Rendering as KML is not yet supported by MapServer, but these's an outstanding Google SoC project addressing this issue. Best regards, Tamas 2009/4/8 Paul james paulj...@gmail.com Hello... Is it possible to get KML from Mapscript(c#) map? How? Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML for mapscript Map...
Thanks again Tamas ! Could you send me the link ? []´s On Wed, Apr 8, 2009 at 6:03 PM, Tamas Szekeres szeker...@gmail.com wrote: Rendering as KML is not yet supported by MapServer, but these's an outstanding Google SoC project addressing this issue. Best regards, Tamas 2009/4/8 Paul james paulj...@gmail.com Hello... Is it possible to get KML from Mapscript(c#) map? How? Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML for mapscript Map...
I'm not sure whether it's publicly available to review, but here is the link: http://socghop.appspot.com/student_proposal/review/google/gsoc2009/dk/t123862094398 Best regards, Tamas 2009/4/8 Paul james paulj...@gmail.com Thanks again Tamas ! Could you send me the link ? []´s On Wed, Apr 8, 2009 at 6:03 PM, Tamas Szekeres szeker...@gmail.comwrote: Rendering as KML is not yet supported by MapServer, but these's an outstanding Google SoC project addressing this issue. Best regards, Tamas 2009/4/8 Paul james paulj...@gmail.com Hello... Is it possible to get KML from Mapscript(c#) map? How? Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] KML for mapscript Map...
I am not sure about c#, but with CGI, you can create a query template for your KML as you want it and then use an nquery to build the kml file. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Wednesday, April 08, 2009 4:03 PM To: Paul james Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] KML for mapscript Map... Rendering as KML is not yet supported by MapServer, but these's an outstanding Google SoC project addressing this issue. Best regards, Tamas 2009/4/8 Paul james paulj...@gmail.com Hello... Is it possible to get KML from Mapscript(c#) map? How? Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] KML for mapscript Map...
While there is not *native* support for KML yet, it is possible to generate it: 1) via templates 2) through straight mapscript (it ain't that complex) by writing your own xml Here's an example of the former: !-- MapServer Template -- ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; [resultset layer=shor_waspt3_query] Folder nameWater Access Points/name descriptionWater Access Points in Minnesota. Supplied by the Minnesota DNR, Division of Trails amp; Waterways/description [feature]Placemark Point coordinates[shpxy cs=, precision=6 proj=+init=epsg:4326]/coordinates /Point name[LAKENAME], [COUNTYNAME] County/name /Placemark [/feature] /Folder [/resultset] /kml You'd have a corresponding output format in your mapfile, like so: OUTPUTFORMAT NAME 'kml' DRIVER 'TEMPLATE' MIMETYPE 'application/vnd.google-earth.kml+xml' FORMATOPTION 'attachement=wap.kml' FORMATOPTION 'FILE=/mytemplates/kml.xml' END and can retrieve features via a normal query, like so: http://maps.dnr.state.mn.us/cgi-bin/mapserv54?map=/usr/local/www/docs_maps/compass/compass_test.mapmode=nqueryqlayer=shor_waspt3_queryqformat=kml This works well for place marks and outlines and you can combine multiple layers (as multiple folders) in one output stream. Steve On 4/8/2009 at 4:03 PM, in message f3b73b7d0904081403s75aebc2fh174d0e525bfe8...@mail.gmail.com, Tamas Szekeres szeker...@gmail.com wrote: Rendering as KML is not yet supported by MapServer, but these's an outstanding Google SoC project addressing this issue. Best regards, Tamas 2009/4/8 Paul james paulj...@gmail.com Hello... Is it possible to get KML from Mapscript(c#) map? How? Thanks! ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users