RE: [mapserver-users] MapServer output
Here's a public facing app with KML output via template: http://www.dnr.state.mn.us/watertrails/interactive_map/index.html?mapext=461232.421875%205056798.828125%20509056.640625%205085802.734375 If you click on a water trail line you'll see a KML option. It does a query and generates multiple layer/feature KML file via a template... The output is compressed across the wire (thanks to mod-deflate) but appears uncompressed to the user when the file arrives. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of P Kishor Sent: Friday, November 19, 2010 2:31 PM To: Fawcett, David (MPCA) Cc: Mapserver-users Subject: Re: [mapserver-users] MapServer output On Fri, Nov 19, 2010 at 1:01 PM, Fawcett, David (MPCA) wrote: > Puneet, > > Attached is a template file that I use to generate KML files. This one was > used to create KML points for some oblique air photos that someone in our > agency shot. This is great! Thanks. Is there a public facing URL where I can test your implementation of the above? Which version of MapServer are you using to do this? > > The format was gratuitously stolen from an example that Steve Lime gave me... > > David. > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D > (DNR) > Sent: Friday, November 19, 2010 12:32 PM > To: Frank Warmerdam; P Kishor > Cc: Mapserver-users > Subject: RE: [mapserver-users] MapServer output > > I believe Frank's work extends beyond WFS as well to standard MapServer > queries, or if that's not possible yet it can be. > > Remember also that you have query templates at your disposal which can be > used to generate any number of text-based formats. > > Steve > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu --- Assertions are politics; backing up assertions with evidence is science === ___ 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] MapServer output
On Fri, Nov 19, 2010 at 1:01 PM, Fawcett, David (MPCA) wrote: > Puneet, > > Attached is a template file that I use to generate KML files. This one was > used to create KML points for some oblique air photos that someone in our > agency shot. This is great! Thanks. Is there a public facing URL where I can test your implementation of the above? Which version of MapServer are you using to do this? > > The format was gratuitously stolen from an example that Steve Lime gave me... > > David. > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D > (DNR) > Sent: Friday, November 19, 2010 12:32 PM > To: Frank Warmerdam; P Kishor > Cc: Mapserver-users > Subject: RE: [mapserver-users] MapServer output > > I believe Frank's work extends beyond WFS as well to standard MapServer > queries, or if that's not possible yet it can be. > > Remember also that you have query templates at your disposal which can be > used to generate any number of text-based formats. > > Steve > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu --- Assertions are politics; backing up assertions with evidence is science === ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer output
On 11/19/2010 12:58 PM, P Kishor wrote: On Fri, Nov 19, 2010 at 11:55 AM, Stephen Woodbridge wrote: On 11/19/2010 12:38 PM, P Kishor wrote: I have been using MapServer for sometime now, but doing really simple things with it... read in mostly Pg, Shapefile and raster data, and output mostly images via regular CGI or WMS. One thing that GeoServer seems to do very well is provide easy output to a variety of formats -- GeoJSON, images, features, KML, a whole lot more. What are MapServer's capabilities in this regard? Ideally, my application would return the requested format based on the URI. So, given http://server/mapserv/wms/ would return WMS. If I replace "wms" with "kml" I would get back KML, or replace it with "geojson" and get back GeoJSON, etc. Is there a tutorial or documentation on this that someone can point me to? FYI, there are a lot of changes coming in the rendering code as part of 6.0. I don't have the RFC's handy, but you might want to start looking at that. Thanks. I saw some of the RFCs (58 deals with KML). The ones I saw, as you note above, reference MS 6.0. Other than OGC stuff (WMS, WFS), does this imply that as is, MapServer can't "render" data into GeoJSON, KML, etc.? In 6.0 all the renders are now in a plugin format which will make it easier to add new renderers and make it easier to maintain existing renderers to keep them more consistent. I think it also improves the query output to some extent because that is based on how renders work. In one sense "rendering" is what mapserver does. in some cases it renders as an image, in other cases it renders as text or other formats. I think the other responses to this thread pretty much covered the details of what you can do now and the additional query responses based on 6.0 code. -Steve W Also, mapserver support OGC WFS and I think there may be options to configure the output as XML or JSON, but I'm not sure. Anyway this would be another place to look. Also I would google for: mapserver ouput or something like that and see what turns up. Other might have more direct help. -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer output
Lime, Steve D (DNR) wrote: I believe Frank's work extends beyond WFS as well to standard MapServer queries, or if that's not possible yet it can be. Steve, Yes, I an confirm that it is tied into the standard query mechansism. It also can work for WMS GetFeatureInfo requests. I have actually tested WMS GetFeatureInfo and WFS GetFeature, but I have not tested it in the context of other sorts of queries. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer output
I believe Frank's work extends beyond WFS as well to standard MapServer queries, or if that's not possible yet it can be. Remember also that you have query templates at your disposal which can be used to generate any number of text-based formats. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Friday, November 19, 2010 12:19 PM To: P Kishor Cc: Mapserver-users Subject: Re: [mapserver-users] MapServer output P Kishor wrote: >> http://mapserver.org/trunk/output/ogr_output.html > > Thanks! I didn't even think OGR. This is great news. Now, OGR is > mostly for reading data, and not usually, as I understand, for writing > data. I am assuming that when the above is implemented, MS will > support writing out to all the formats that OGR support writing out > to, no? Puneet, Well, there are likely some exceptions that aren't useful for this purpose. For instance, OGR can write to PostGIS but it is hard to stream the resulting dataset back over http. > Is there a list of formats that OGR can write out to? The formats I > see at http://www.gdal.org/ogr/ogr_formats.html seem to be for reading > only, no? If that list says "Creation - Yes" then you have a good chance of being able to use it with WFS - GetFeature. >> Note that this is only in trunk. >> > > Is this scheduled for version 6 of MS? Yes, it will be in MapServer 6. Is is already completely implemented and available for use from trunk nightly snapshots or svn. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ 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] MapServer output
P Kishor wrote: http://mapserver.org/trunk/output/ogr_output.html Thanks! I didn't even think OGR. This is great news. Now, OGR is mostly for reading data, and not usually, as I understand, for writing data. I am assuming that when the above is implemented, MS will support writing out to all the formats that OGR support writing out to, no? Puneet, Well, there are likely some exceptions that aren't useful for this purpose. For instance, OGR can write to PostGIS but it is hard to stream the resulting dataset back over http. Is there a list of formats that OGR can write out to? The formats I see at http://www.gdal.org/ogr/ogr_formats.html seem to be for reading only, no? If that list says "Creation - Yes" then you have a good chance of being able to use it with WFS - GetFeature. Note that this is only in trunk. Is this scheduled for version 6 of MS? Yes, it will be in MapServer 6. Is is already completely implemented and available for use from trunk nightly snapshots or svn. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer output
On Fri, Nov 19, 2010 at 12:01 PM, Rahkonen Jukka wrote: > Hi, > > Geoserver can generate GeoJSON, KML and zipped shapefiles as alternative WFS > outputformats in addition to gml that is mandatory according to standard. > Mapserver generates gml if configured to work as WFS server, and KML support > seems to be available by defining it as an outputformat in the mapfile, see > http://mapserver.org/development/rfc/ms-rfc-58.html > And see the vector outputformat in Mapserver 6.0 > http://mapserver.org/trunk/output/ogr.html > > So you can already get some of the extra formats which are supported by > Geoserver, and most/all/even more in the future. However, configuring will be > more complicated than with Geoserver which has a nice GUI tool for > configuring all the WMS, WFS and WCS services at the same time. Yeah, I played with GeoServer a while back. Then I saw it again yesterday and its output capabilities were just wonderful. However, I am allergic to Java, so I want to stay away from Tomcat and Jetty and such nonsense unless MapServer is absolutely unable to deliver. Hence, my queries. > > -Jukka Rahkonen- > > > > -Alkuperäinen viesti- > Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: P Kishor > Lähetetty: pe 19.11.2010 19:38 > Vastaanottaja: Mapserver-users > Aihe: [mapserver-users] MapServer output > > I have been using MapServer for sometime now, but doing really simple > things with it... read in mostly Pg, Shapefile and raster data, and > output mostly images via regular CGI or WMS. > > One thing that GeoServer seems to do very well is provide easy output > to a variety of formats -- GeoJSON, images, features, KML, a whole lot > more. > > What are MapServer's capabilities in this regard? Ideally, my > application would return the requested format based on the URI. So, > given http://server/mapserv/wms/ would return WMS. If I replace "wms" > with "kml" I would get back KML, or replace it with "geojson" and get > back GeoJSON, etc. > > Is there a tutorial or documentation on this that someone can point me to? > > -- > Puneet Kishor http://www.punkish.org > Carbon Model http://carbonmodel.org > Charter Member, Open Source Geospatial Foundation http://www.osgeo.org > Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor > Nelson Institute, UW-Madison http://www.nelson.wisc.edu > --- > Assertions are politics; backing up assertions with evidence is science > === > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu --- Assertions are politics; backing up assertions with evidence is science === ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer output
On Fri, Nov 19, 2010 at 11:57 AM, Frank Warmerdam wrote: > P Kishor wrote: >> >> I have been using MapServer for sometime now, but doing really simple >> things with it... read in mostly Pg, Shapefile and raster data, and >> output mostly images via regular CGI or WMS. >> >> One thing that GeoServer seems to do very well is provide easy output >> to a variety of formats -- GeoJSON, images, features, KML, a whole lot >> more. >> >> What are MapServer's capabilities in this regard? Ideally, my >> application would return the requested format based on the URI. So, >> given http://server/mapserv/wms/ would return WMS. If I replace "wms" >> with "kml" I would get back KML, or replace it with "geojson" and get >> back GeoJSON, etc. >> >> Is there a tutorial or documentation on this that someone can point me to? > > Puneet, > > This fall, in trunk, I have extended MapServer's WFS GetFeature request > to support returning formats supported by OGR. It requires some setup > in the mapfile to enable it. To the extent that helps you might want > to review: > > http://mapserver.org/trunk/output/ogr_output.html Thanks! I didn't even think OGR. This is great news. Now, OGR is mostly for reading data, and not usually, as I understand, for writing data. I am assuming that when the above is implemented, MS will support writing out to all the formats that OGR support writing out to, no? Is there a list of formats that OGR can write out to? The formats I see at http://www.gdal.org/ogr/ogr_formats.html seem to be for reading only, no? > > Note that this is only in trunk. > Is this scheduled for version 6 of MS? > Best regards, > -- > ---+-- > I set the clouds in motion - turn up | Frank Warmerdam, > warmer...@pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu --- Assertions are politics; backing up assertions with evidence is science === ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer output
Hi, Geoserver can generate GeoJSON, KML and zipped shapefiles as alternative WFS outputformats in addition to gml that is mandatory according to standard. Mapserver generates gml if configured to work as WFS server, and KML support seems to be available by defining it as an outputformat in the mapfile, see http://mapserver.org/development/rfc/ms-rfc-58.html And see the vector outputformat in Mapserver 6.0 http://mapserver.org/trunk/output/ogr.html So you can already get some of the extra formats which are supported by Geoserver, and most/all/even more in the future. However, configuring will be more complicated than with Geoserver which has a nice GUI tool for configuring all the WMS, WFS and WCS services at the same time. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: P Kishor Lähetetty: pe 19.11.2010 19:38 Vastaanottaja: Mapserver-users Aihe: [mapserver-users] MapServer output I have been using MapServer for sometime now, but doing really simple things with it... read in mostly Pg, Shapefile and raster data, and output mostly images via regular CGI or WMS. One thing that GeoServer seems to do very well is provide easy output to a variety of formats -- GeoJSON, images, features, KML, a whole lot more. What are MapServer's capabilities in this regard? Ideally, my application would return the requested format based on the URI. So, given http://server/mapserv/wms/ would return WMS. If I replace "wms" with "kml" I would get back KML, or replace it with "geojson" and get back GeoJSON, etc. Is there a tutorial or documentation on this that someone can point me to? -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu --- Assertions are politics; backing up assertions with evidence is science === ___ 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] MapServer output
On Fri, Nov 19, 2010 at 11:55 AM, Stephen Woodbridge wrote: > On 11/19/2010 12:38 PM, P Kishor wrote: >> >> I have been using MapServer for sometime now, but doing really simple >> things with it... read in mostly Pg, Shapefile and raster data, and >> output mostly images via regular CGI or WMS. >> >> One thing that GeoServer seems to do very well is provide easy output >> to a variety of formats -- GeoJSON, images, features, KML, a whole lot >> more. >> >> What are MapServer's capabilities in this regard? Ideally, my >> application would return the requested format based on the URI. So, >> given http://server/mapserv/wms/ would return WMS. If I replace "wms" >> with "kml" I would get back KML, or replace it with "geojson" and get >> back GeoJSON, etc. >> >> Is there a tutorial or documentation on this that someone can point me to? >> > > FYI, there are a lot of changes coming in the rendering code as part of 6.0. > I don't have the RFC's handy, but you might want to start looking at that. > Thanks. I saw some of the RFCs (58 deals with KML). The ones I saw, as you note above, reference MS 6.0. Other than OGC stuff (WMS, WFS), does this imply that as is, MapServer can't "render" data into GeoJSON, KML, etc.? > Also, mapserver support OGC WFS and I think there may be options to > configure the output as XML or JSON, but I'm not sure. Anyway this would be > another place to look. Also I would google for: > > mapserver ouput > > or something like that and see what turns up. > > Other might have more direct help. > > -Steve W -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu --- Assertions are politics; backing up assertions with evidence is science === ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer output
P Kishor wrote: I have been using MapServer for sometime now, but doing really simple things with it... read in mostly Pg, Shapefile and raster data, and output mostly images via regular CGI or WMS. One thing that GeoServer seems to do very well is provide easy output to a variety of formats -- GeoJSON, images, features, KML, a whole lot more. What are MapServer's capabilities in this regard? Ideally, my application would return the requested format based on the URI. So, given http://server/mapserv/wms/ would return WMS. If I replace "wms" with "kml" I would get back KML, or replace it with "geojson" and get back GeoJSON, etc. Is there a tutorial or documentation on this that someone can point me to? Puneet, This fall, in trunk, I have extended MapServer's WFS GetFeature request to support returning formats supported by OGR. It requires some setup in the mapfile to enable it. To the extent that helps you might want to review: http://mapserver.org/trunk/output/ogr_output.html Note that this is only in trunk. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer output
On 11/19/2010 12:38 PM, P Kishor wrote: I have been using MapServer for sometime now, but doing really simple things with it... read in mostly Pg, Shapefile and raster data, and output mostly images via regular CGI or WMS. One thing that GeoServer seems to do very well is provide easy output to a variety of formats -- GeoJSON, images, features, KML, a whole lot more. What are MapServer's capabilities in this regard? Ideally, my application would return the requested format based on the URI. So, given http://server/mapserv/wms/ would return WMS. If I replace "wms" with "kml" I would get back KML, or replace it with "geojson" and get back GeoJSON, etc. Is there a tutorial or documentation on this that someone can point me to? FYI, there are a lot of changes coming in the rendering code as part of 6.0. I don't have the RFC's handy, but you might want to start looking at that. Also, mapserver support OGC WFS and I think there may be options to configure the output as XML or JSON, but I'm not sure. Anyway this would be another place to look. Also I would google for: mapserver ouput or something like that and see what turns up. Other might have more direct help. -Steve W ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users