RE: [mapserver-users] Re: Combination of MapServer and Desktop GIS
I'm using it with openlayers for a web app, can I take those tiles and use them with mapserver too?? How?? That could be the solution!! Thanks. Un saludo, ·· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ·· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·· email: da...@ikt.esweb: www.ikt.es ·· -Mensaje original- De: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] En nombre de mattmendick Enviado el: jueves, 06 de mayo de 2010 18:47 Para: mapserver-users@lists.osgeo.org Asunto: [mapserver-users] Re: Combination of MapServer and Desktop GIS You could also use something more specific to caching wms tiles like tilecache. (http://tilecache.org/) It works pretty well for me, it considerably speeds up the serving of our tiles. -Matt Mendick -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Combination-of-MapServer-and-Desktop-GIS-tp5013556p5015215.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ 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
[mapserver-users] Oracle Spatial and MAXFEATURES, not implemented?
I'm trying to limit the maximum number of features, as in the map file snippet below. MapServer is 5.6.3. Anyway, the number of features drawn is not limited, as expected, but thousands of shapes are processed. Indeed, enabling -all_debug 5, the query passed to Oracle looks like; --- msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT pln_id, pln_id, the_geom FROM plant_data_map WHERE SDO_FILTER( the_geom, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes. Bind values: srid:25832 minx:666798.076923 miny:5169400.00 maxx:667551.923077 maxy:517.00 --- Indeed, almost 15,000 shapes arrive: --- msOracleSpatialLayerNextShape on layer 0x101363e0, row_num: 14934 msOracleSpatialLayerNextShape on layer 0x101363e0, Fetched 0 more rows (14934 total) msOracleSpatialLayerFreeItemInfo was called. --- Peeking at the source in maporaclespatial.c, it seems that layer-maxfeatures is never read and no limitation, maybe looking like ROWNUM = layer-maxfeatures is added to the SELECT statement. Regards, Peter MAPFILE SNIPPET: LAYER #16- GROUP pflanzennr_black_12 NAME Pflanzennr STATUS ON TYPE POINT PROJECTION init=epsg:25832 END CONNECTIONTYPE oraclespatial CONNECTION {MYUSER}/{MYPASSWD} DATA the_geom from plant_data_map using unique pln_id srid 25832 PROCESSING CLOSE_CONNECTION=DEFER SIZEUNITS meters LABELITEM pln_id MAXFEATURES 20 TOLERANCE 1 POSTLABELCACHE TRUE CLASS NAME label LABEL TYPE TRUETYPE PARTIALS TRUE FONT verdana COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 6 MINSIZE 6 MAXSIZE 8 POSITION CR FORCE TRUE END END END -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgart...@r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com XING : http://www.xing.com/go/invita/8917535 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle Spatial and MAXFEATURES, not implemented?
This was done as part of the http://trac.osgeo.org/mapserver/ticket/2605 and is only available in trunk right now (for the upcoming 6.0 release). regards, On 07/05/2010 9:45 AM, Peter Hopfgartner wrote: I'm trying to limit the maximum number of features, as in the map file snippet below. MapServer is 5.6.3. Anyway, the number of features drawn is not limited, as expected, but thousands of shapes are processed. Indeed, enabling -all_debug 5, the query passed to Oracle looks like; --- msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT pln_id, pln_id, the_geom FROM plant_data_map WHERE SDO_FILTER( the_geom, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes. Bind values: srid:25832 minx:666798.076923 miny:5169400.00 maxx:667551.923077 maxy:517.00 --- Indeed, almost 15,000 shapes arrive: --- msOracleSpatialLayerNextShape on layer 0x101363e0, row_num: 14934 msOracleSpatialLayerNextShape on layer 0x101363e0, Fetched 0 more rows (14934 total) msOracleSpatialLayerFreeItemInfo was called. --- Peeking at the source in maporaclespatial.c, it seems that layer-maxfeatures is never read and no limitation, maybe looking like ROWNUM= layer-maxfeatures is added to the SELECT statement. Regards, Peter MAPFILE SNIPPET: LAYER #16- GROUP pflanzennr_black_12 NAME Pflanzennr STATUS ON TYPE POINT PROJECTION init=epsg:25832 END CONNECTIONTYPE oraclespatial CONNECTION {MYUSER}/{MYPASSWD} DATA the_geom from plant_data_map using unique pln_id srid 25832 PROCESSING CLOSE_CONNECTION=DEFER SIZEUNITS meters LABELITEM pln_id MAXFEATURES 20 TOLERANCE 1 POSTLABELCACHE TRUE CLASS NAME label LABEL TYPE TRUETYPE PARTIALS TRUE FONT verdana COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 6 MINSIZE 6 MAXSIZE 8 POSITION CR FORCE TRUE END END END -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle Spatial and MAXFEATURES, not implemented?
On Fri, 2010-05-07 at 10:03 -0400, Yewondwossen Assefa wrote: This was done as part of the http://trac.osgeo.org/mapserver/ticket/2605 and is only available in trunk right now (for the upcoming 6.0 release). regards, Hello Yewondwossen. Thank you for the pointer! I've applied the diff http://trac.osgeo.org/mapserver/changeset/9593?format=diffnew=9593 to the 5.6.3 source and it works perfectly! Thank you and have a nice week end, Peter On 07/05/2010 9:45 AM, Peter Hopfgartner wrote: I'm trying to limit the maximum number of features, as in the map file snippet below. MapServer is 5.6.3. Anyway, the number of features drawn is not limited, as expected, but thousands of shapes are processed. Indeed, enabling -all_debug 5, the query passed to Oracle looks like; --- msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT pln_id, pln_id, the_geom FROM plant_data_map WHERE SDO_FILTER( the_geom, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes. Bind values: srid:25832 minx:666798.076923 miny:5169400.00 maxx:667551.923077 maxy:517.00 --- Indeed, almost 15,000 shapes arrive: --- msOracleSpatialLayerNextShape on layer 0x101363e0, row_num: 14934 msOracleSpatialLayerNextShape on layer 0x101363e0, Fetched 0 more rows (14934 total) msOracleSpatialLayerFreeItemInfo was called. --- Peeking at the source in maporaclespatial.c, it seems that layer-maxfeatures is never read and no limitation, maybe looking like ROWNUM= layer-maxfeatures is added to the SELECT statement. Regards, Peter MAPFILE SNIPPET: LAYER #16- GROUP pflanzennr_black_12 NAME Pflanzennr STATUS ON TYPE POINT PROJECTION init=epsg:25832 END CONNECTIONTYPE oraclespatial CONNECTION {MYUSER}/{MYPASSWD} DATA the_geom from plant_data_map using unique pln_id srid 25832 PROCESSING CLOSE_CONNECTION=DEFER SIZEUNITS meters LABELITEM pln_id MAXFEATURES 20 TOLERANCE 1 POSTLABELCACHE TRUE CLASS NAME label LABEL TYPE TRUETYPE PARTIALS TRUE FONT verdana COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 6 MINSIZE 6 MAXSIZE 8 POSITION CR FORCE TRUE END END END -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgart...@r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com XING : http://www.xing.com/go/invita/8917535 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Testing KML support
Hi, I'm would like to look at the KML functionality in the current MapServer trunk. There does not seem to be any specific option in configure, so I enabled it by setting the environment variable CPPFLAGS: $ export CPPFLAGS=-DUSE_KML $ ./configure --with-proj --with-postgis --with-cairovim --with-xml2-config=/usr/bin/xml2-config $ make The resulting shp2img has a lot of Kml-related symbols in it: $ nm shp2img | grep -i kml | wc -l 71 Anyway, KML does not seem to be oin the OUTPUT formats list: [peter.hopfgart...@vm-centos5-64-1 mapserver]$ ./shp2img -v MapServer version 5.7-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE Indeed, trying to produce some KML from a map file, I get: $ /usr/local/bin/shp2img -i KML -m kml_test.map test.kml loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver KML, but this driver isn't configured. br Am I missing something? Regards, Peter -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgart...@r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com XING : http://www.xing.com/go/invita/8917535 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] wms layer query
Hello, I have a wms layer defined in my map file coming from a USGS service that is supposed to be queryable but when I query it I get nothing in return. It draws fine and the GetCapabilities request says Layer queryable=1. I wondering if it's my layer definition or if you just can't do this in basic mapserver. Below is my layer def and any help is beer worthy. Thanks in advance. LAYER NAME firetest METADATA wms_srs EPSG:4326 wms_name1 wms_server_version 1.1.1 wms_format image/png wms_title 1 wfs_title 1 wms_metadataurl_format text/html gml_include_items all wms_include_items all END STATUS OFF TYPE RASTER #MINSCALE 3800 CONNECTIONTYPE WMS CONNECTION http://rmgsc.cr.usgs.gov/arcgis/services/nhss_haz/MapServer/WMSServer?service=WMSversion=1.1.1request=GetMaplayers=1styles=defaluttransparent=TRUEformat=image/png; PROJECTION init=epsg:4326 END CLASS NAME fire wms test KEYIMAGE '/data/gis/www/html/ms_common/fire.png' END TEMPLATE http://gis.hq.wapa.gov/ms_common/fires.html; HEADER http://gis.hq.wapa.gov/ms_common/fires_header.html; FOOTER http://gis.hq.wapa.gov/ms_common/fires_footer.html; TOLERANCE 10 END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Testing KML support
Hi Peter, There is supposed to be --with-kml. I have added the OUTPUT=KML if built with the flag. Note that the driver is still in development/cleanup state. I will update the RFC (http://mapserver.org/development/rfc/ms-rfc-58.html) once this phase is over. regards, On 07/05/2010 12:23 PM, Peter Hopfgartner wrote: Hi, I'm would like to look at the KML functionality in the current MapServer trunk. There does not seem to be any specific option in configure, so I enabled it by setting the environment variable CPPFLAGS: $ export CPPFLAGS=-DUSE_KML $ ./configure --with-proj --with-postgis --with-cairovim --with-xml2-config=/usr/bin/xml2-config $ make The resulting shp2img has a lot of Kml-related symbols in it: $ nm shp2img | grep -i kml | wc -l 71 Anyway, KML does not seem to be oin the OUTPUT formats list: [peter.hopfgart...@vm-centos5-64-1 mapserver]$ ./shp2img -v MapServer version 5.7-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE Indeed, trying to produce some KML from a map file, I get: $ /usr/local/bin/shp2img -i KML -m kml_test.map test.kml loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver KML, but this driver isn't configured.br Am I missing something? Regards, Peter -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users