From brfr at metrico.lu Thu Jul 1 00:53:33 2010 From: brfr at metrico.lu (Frank Broniewski) Date: Thu, 01 Jul 2010 09:53:33 +0200 Subject: [mapserver-users] Maximum width of line - setting is ignored Message-ID: <4C2C497D.4020701@metrico.lu> Hello, we just noticed that our width settings for a line above 40px is ignored. Whatever size we set, it is no more broader than 40px. Is there an internal limit regarding this? CLASS Name "bridge-motorway" Expression ('[highway]' eq 'motorway' AND '[bridge]' ne '') MaxScaleDenom 4010 STYLE Symbol "line" Color 0 0 0 Width 50 <-- if bigger than 40 - no effect END END SYMBOL NAME "line" TYPE SIMPLE PATTERN 1 0 1 0 END LINECAP butt FILLED TRUE END Many thanks Frank -- Frank BRONIEWSKI METRICO s.? r.l. g?om?tres technologies d'information g?ographique rue des Romains 36 L-5433 NIEDERDONVEN t?l.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu From thomas.bonfort at gmail.com Thu Jul 1 02:01:41 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 1 Jul 2010 11:01:41 +0200 Subject: [mapserver-users] Maximum width of line - setting is ignored In-Reply-To: <4C2C497D.4020701@metrico.lu> References: <4C2C497D.4020701@metrico.lu> Message-ID: there's a default limit of 32 on the max width. you can override it with the MAXWIDTH keyword. regards, thomas On Thu, Jul 1, 2010 at 09:53, Frank Broniewski wrote: > Hello, > > we just noticed that our width settings for a line above 40px is ignored. > Whatever size we set, it is no more broader than 40px. Is there an internal > limit regarding this? > > CLASS > ? ? ? ?Name "bridge-motorway" > ? ? ? ?Expression ('[highway]' eq 'motorway' AND '[bridge]' ne '') > ? ? ? ?MaxScaleDenom 4010 > ? ? ? ?STYLE > ? ? ? ? ? ? ? ?Symbol "line" > ? ? ? ? ? ? ? ?Color 0 0 0 > ? ? ? ? ? ? ? ?Width 50 <-- if bigger than 40 - no effect > ? ? ? ?END > END > > SYMBOL > ? ? ? ?NAME "line" > ? ? ? ?TYPE SIMPLE > ? ? ? ?PATTERN 1 0 1 0 END > ? ? ? ?LINECAP butt > ? ? ? ?FILLED TRUE > END > > Many thanks > > Frank > > -- > Frank BRONIEWSKI > > METRICO s.? r.l. > g?om?tres > technologies d'information g?ographique > rue des Romains 36 > L-5433 NIEDERDONVEN > > t?l.: +352 26 74 94 - 28 > fax.: +352 26 74 94 99 > http://www.metrico.lu > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dalda at ikt.es Thu Jul 1 04:37:19 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Thu, 1 Jul 2010 13:37:19 +0200 Subject: [mapserver-users] Problems with mapserver wrapper script Message-ID: <224DBDAF88A6AC47BD22432815351BE0080A979C@nekaposta1> Hi list, I'm facing a small problem. I've copied mapserv.exe to a new file called wms_dgis.exe, I added to httpd.conf the following line SetEnvIf Request_URI ="/cgi-bin/wms_dgis.exe" MS_MAPFILE=/ms4w/Apache/htdocs/MFD/wms_dgis.map I also changed the onlineresource value of the mapfile to "wms_onlineresource" "http://192.168.1.65/cgi-bin/wms_dgis.exe?" When I type in the web browser the url http://192.168.1.65/cgi-bin/wms_dgis.exe?, I get: No query information to decode. QUERY_STRING is set, but empty. So I think I'm on the right way, but when I make a getCapabilities request like: http://192.168.1.65/cgi-bin/wms_dgis.exe?SERVICE=WMS&REQUEST=GetCapabilities I get: loadMap(): Web application error. CGI variable "map" is not set. I've looked into Apache's access.log but I don't see anything odd. MS4W package Mapserver 5.6.1 Win XP Am I doing something wrong?? 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: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? From Jukka.Rahkonen at mmmtike.fi Thu Jul 1 05:00:26 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 1 Jul 2010 15:00:26 +0300 Subject: [mapserver-users] Problems with mapserver wrapper script In-Reply-To: <224DBDAF88A6AC47BD22432815351BE0080A979C@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE0080A979C@nekaposta1> Message-ID: Hi, I do not see anything wrong in it. It should work and perhaps give you another error as I am getting from Mapserver 5.2.1 msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter I would have a try by including the drive letter in the mapfile path and restarting Apache, but I fear it does not help. Another possibility is in one unnecessary "=" sign. Try SetEnvIf Request_URI "/cgi-bin/wms_dgis.exe" -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > David Alda Fernandez de Lezea > L?hetetty: 1. hein?kuuta 2010 14:37 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Problems with mapserver wrapper script > > Hi list, > > I'm facing a small problem. I've copied mapserv.exe to a new > file called wms_dgis.exe, I added to httpd.conf the following line > > SetEnvIf Request_URI ="/cgi-bin/wms_dgis.exe" > MS_MAPFILE=/ms4w/Apache/htdocs/MFD/wms_dgis.map > > I also changed the onlineresource value of the mapfile to > > "wms_onlineresource" > "http://192.168.1.65/cgi-bin/wms_dgis.exe?" > > When I type in the web browser the url > http://192.168.1.65/cgi-bin/wms_dgis.exe?, I get: > > No query information to decode. QUERY_STRING is set, but empty. > > So I think I'm on the right way, but when I make a > getCapabilities request like: > > http://192.168.1.65/cgi-bin/wms_dgis.exe?SERVICE=WMS&REQUEST=G etCapabilities > > I get: > > loadMap(): Web application error. CGI variable "map" is not set. > > I've looked into Apache's access.log but I don't see anything odd. > > MS4W package > Mapserver 5.6.1 > Win XP > > Am I doing something wrong?? > > > 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: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????? > ???????????????????? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From max1000 at gmail.com Thu Jul 1 05:27:11 2010 From: max1000 at gmail.com (rai 8) Date: Thu, 1 Jul 2010 14:27:11 +0200 Subject: [mapserver-users] TIme support on mapserver 5.6.3, it's working? Message-ID: Hello, I've been working with mapserver to get a map with time support, time parameter, I followed the tutorial in documetation http://mapserver.org/ogc/wms_time.html and this post http://osgeo-org.1803224.n2.nabble.com/Accessing-images-using-time-dimension-td1991324.html#a1991324and I can't run the mapserver to change the image with a time parameter. I test several configurations but any works, the last is the same like the post in the maillist, this is what i've done: in a postgis database create table satellite (image_path text, image_time timestamp); select AddGeometryColumn('satellite', 'the_geom', 4326, 'POLYGON', 2); insert into satellite (image_path, image_time, the_geom) values ('/home/vbox/Downloads/animacio/sat1.tif', '2007-05-11 10:00Z', GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 75.55, -31.82 75.55))', 4326)); insert into satellite (image_path, image_time, the_geom) values ('/home/vbox/Downloads/animacio/sat2.tif', '2007-05-11 11:00Z', GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 75.55, -31.82 75.55))', 4326)); and the map file: LAYER NAME "time_w" TYPE POLYGON STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "dbname=tile_index host=127.0.0.1 user=postgres password=xxxxxx" DATA "the_geom from satellite using unique oid using srid = 4326" METADATA "wms_title" "time_index_w" "wms_srs" "EPSG:4326" "wms_timeextent" "2007-01-01/2007-12-31" "wms_timedefault" "2007-05-11T11:00:00Z" "wms_timeitem" "image_time" #a column in postgis table of type END END LAYER NAME "sat_w" STATUS ON TYPE RASTER METADATA "wms_title" "Satellite" "wms_timeextent" "2007-01-01/2007-12-31" END PROJECTION "init=epsg:4326" END TILEINDEX "time_w" # Layer name containing time index TILEITEM "image_path" # DB column containing path to image END anyone finds some error? thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Jul 1 06:31:21 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 01 Jul 2010 10:31:21 -0300 Subject: [mapserver-users] Problems with mapserver wrapper script In-Reply-To: <224DBDAF88A6AC47BD22432815351BE0080A979C@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE0080A979C@nekaposta1> Message-ID: <4C2C98A9.3000501@gatewaygeomatics.com> David, I just tested this successfully with MS4W v3.0 (MapServer 5.6.3). The line I added to Apache's httpd.conf was: SetEnvIf Request_URI "/cgi-bin/mywms.exe" MS_MAPFILE=/ms4w/apps/benchmarking/mapserver/bcn.map and then restarted Apache. (I copied this line from http://www.mapserver.org/ogc/wms_server.html#more-about-the-online-resource-url) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ David Alda Fernandez de Lezea wrote: > Hi list, > > I'm facing a small problem. I've copied mapserv.exe to a new file called wms_dgis.exe, I added to httpd.conf the following line > > SetEnvIf Request_URI ="/cgi-bin/wms_dgis.exe" MS_MAPFILE=/ms4w/Apache/htdocs/MFD/wms_dgis.map > > I also changed the onlineresource value of the mapfile to > > "wms_onlineresource" "http://192.168.1.65/cgi-bin/wms_dgis.exe?" > > When I type in the web browser the url http://192.168.1.65/cgi-bin/wms_dgis.exe?, I get: > > No query information to decode. QUERY_STRING is set, but empty. > > So I think I'm on the right way, but when I make a getCapabilities request like: > > http://192.168.1.65/cgi-bin/wms_dgis.exe?SERVICE=WMS&REQUEST=GetCapabilities > > I get: > > loadMap(): Web application error. CGI variable "map" is not set. > > I've looked into Apache's access.log but I don't see anything odd. > > MS4W package > Mapserver 5.6.1 > Win XP > > Am I doing something wrong?? > > > Un saludo, > > ?????????????????????????????????????????????????????????????????????????????????? > > David Alda Fern?ndez de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad > From jmckenna at gatewaygeomatics.com Thu Jul 1 06:36:01 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 01 Jul 2010 10:36:01 -0300 Subject: [mapserver-users] msLoadMap(): Unable to access file. (/ms4w/apps/mapserv-demo/itasca.map) In-Reply-To: References: Message-ID: <4C2C99C1.9030506@gatewaygeomatics.com> Asif wrote: > Dear All, > I have installed the UMN Mapserver and configured it according to > instructions given in manual but its giving the erro > "msLoadMap(): Unable to access file. > (/ms4w/apps/mapserv-demo/itasca.map) " when I try to load the demo > application. I have follow the instructions in readme file but its not > working. can any body help please? > Asif, MS4W users can download the "MapServer Itasca Demo Application" from the MS4W downloads page (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). If you use that download then all you have to do is to extract it to the same drive root as your existing MS4W install (example: C:/), and then restart Apache. If you have any MS4W questions feel free to use its email list (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). Thanks. Happy Canada Day! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From muraro_davide at hotmail.com Thu Jul 1 06:50:29 2010 From: muraro_davide at hotmail.com (Muro) Date: Thu, 1 Jul 2010 06:50:29 -0700 (PDT) Subject: [mapserver-users] mapserver + grib files + explanation and questions Message-ID: <1277992229213-5243456.post@n2.nabble.com> Hello, After some time I was able to process grib v.1 format using MapServer+gdal+OL 2.9. I see the requested band and I get the point-clicked-value using OL-getfeatureinfo. My mapfile: LAYER NAME 'EUD201006_cp-lsp' DATA '/var/www/html/netcdf/mapserver/data/EUD201006_cp-lsp.grb' TYPE RASTER DUMP true TOLERANCE 10 TOLERANCEUNITS DD HEADER "templates/getfeatureinfo_header.html" # header html template TEMPLATE "templates/getfeatureinfo_content.html" # content html template FOOTER "templates/getfeatureinfo_footer.html" # footer html template METADATA 'ows_title' 'EUD201006_cp-lsp.grb' 'wms_feature_info_mime_type' "text/html" "gml_include_items" "all" "wms_include_items" "all" END STATUS OFF PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END #PROCESSING "DITHER=YES" #PROCESSING "BANDS=30,24,4" PROCESSING "BANDS=6136" #PROCESSING "BANDS=30,50,70,90,110" #0.070106506 = 70 mm CLASS NAME "0.00 to 0.07" EXPRESSION ([pixel] >= 0 AND [pixel] < 0.005) STYLE COLOR 205 250 100 END END CLASS NAME "0.07 to 0.14" EXPRESSION ([pixel] >= 0.005 AND [pixel] < 0.01) STYLE COLOR 145 240 67 END END CLASS NAME "0.14 to 0.20" EXPRESSION ([pixel] >= 0.015 AND [pixel] < 0.02) STYLE COLOR 88 230 32 END END CLASS NAME "0.20 to 0.27" EXPRESSION ([pixel] >= 0.02 AND [pixel] < 0.025) STYLE COLOR 62 209 54 END END CLASS NAME "0.27 to 0.34" EXPRESSION ([pixel] >= 0.025 AND [pixel] < 0.03) STYLE COLOR 61 186 101 END END CLASS NAME "0.34 to 0.41" EXPRESSION ([pixel] >= 0.03 AND [pixel] < 0.035) STYLE COLOR 49 163 144 END END CLASS NAME "0.41 to 0.48" EXPRESSION ([pixel] >= 0.035 AND [pixel] < 0.04) STYLE COLOR 30 134 166 END END CLASS NAME "0.48 to 0.54" EXPRESSION ([pixel] >= 0.04 AND [pixel] < 0.045) STYLE COLOR 33 88 150 END END CLASS NAME "0.54 to 0.61" EXPRESSION ([pixel] >= 0.045 AND [pixel] < 0.05) STYLE COLOR 28 52 135 END END CLASS NAME "0.61 to 0.68" EXPRESSION ([pixel] >= 0.05 AND [pixel] < 0.055) STYLE COLOR 13 17 120 END END CLASS NAME "0.61 to 0.68" EXPRESSION ([pixel] >= 0.055) STYLE COLOR 255 0 255 END END END OpenLayers code: var wmsOptions = { layers: 'EUD201006_cp-lsp', //layers: 'EUD2010060100, vol_soil_water', format: 'image/png', maxExtent: maxExtentDD, transparent: 'true' }; gribLayer = new OpenLayers.Layer.WMS( 'wms grib layer', geoserver , wmsOptions, {isBaseLayer:true, buffer:0, displayInLayerSwitcher:true }); map.addLayer(gribLayer); map.addControl( new OpenLayers.Control.LayerSwitcher() ); map.events.register('click', map, function (e) { OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait..."; var url = gribLayer.getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: gribLayer.map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/html', QUERY_LAYERS: gribLayer.params.LAYERS, WIDTH: gribLayer.map.size.w, HEIGHT: gribLayer.map.size.h}); OpenLayers.loadURL(url, '', this, setHTML); OpenLayers.Event.stop(e); }); Is possible to do a getfeatureinfo for all bands? If I use PROCESSING "BANDS=30,24,4", I get 3 values (correctly) Reading the documentation (http://mapserver.org/input/raster.html#raster) is possible to query more than RGB-opaque (4 bands) [CUT] The red, green and blue attribute are intended to be the final color the pixel would be rendered with, but in some subtle cases it can be wrong (ie. classified floating point results). The selected bands are normally the band that would be used to render the layer. For a pure query-only layer BANDS PROCESSING directive can be used to select more bands than could normally be used in a render operation. For instance for a 7 band landsat scene a PROCESSING ?BANDS=1,2,3,4,5,6,7? directive could be used to get query results for all seven bands in results to a query operation. [/CUT] I mean, when I click on a point I need to get all values associated to that point. There are 6136 bands in my grib file. I removed PROCESSING "BANDS=6136", but mapserver crashes (500 internal error...mm no good) I added PROCESSING "BANDS=10,20,30,40,50", but mapserver crashes (500 internal error) Ideas? Is it possible? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-grib-files-explanation-and-questions-tp5243456p5243456.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Thu Jul 1 08:44:25 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 01 Jul 2010 11:44:25 -0400 Subject: [mapserver-users] php Mapscript conceptual question In-Reply-To: <1277909012096-5237807.post@n2.nabble.com> References: <1277909012096-5237807.post@n2.nabble.com> Message-ID: <4C2CB7D9.3070602@mapgears.com> Hi Matt, There is currently no hook available in MapServer or PHP MapScript to do what you want, unless you use the shapefileObj in PHP to read in each shape, transform the coordinates and then call $shape->draw()... but doing that won't be very efficient and bypasses most of MapServer's rendering logic. If your data was stored in PostGIS, you could possibly write an operator that you include in your SQL statement that does the conversion on the fly. Other than that, the only alternative I can think of would be to hack the MapServer reprojection functions (msProjectShape(), msProjectPoint(), etc, in mapproject.c) to support your algorithm. Daniel mattmendick wrote: > Hi All- > > I'm querying the group to find out if something is possible with php > mapscript with mapserver 5.6.3. Mapserver works wonderfully at outputting > wms graphics of layers for normally projected data. However, I have some > data that is standardly projected (wgs84) but my output projection is > completely nonstandard (I can't go into detail about what this projection > is, but believe me it's not something I can do via standard methods via > proj). I have an algorithm that transforms (given a particular bounding box) > latitude/longitude pairs into output image coordinates. Is there any way for > me to use mapscript to load in the raw wgs84 lat/lng pairs, run them through > my algorithm, and output image coordinates to the renderer? > > Basically, is there any way for me to hijack the way mapserver normally goes > about translating lat/lng pairs to image coordinates using mapscript? > > If I was unclear about anything, let me know, I appreciate any help anyone > could offer. Thanks! > > -Matt Mendick -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Thu Jul 1 08:50:16 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 01 Jul 2010 11:50:16 -0400 Subject: [mapserver-users] Problem with rectangular queries In-Reply-To: <20100630080216.88010@gmx.net> References: <20100630080216.88010@gmx.net> Message-ID: <4C2CB938.4090203@mapgears.com> You didn't specify in which way your method 1 results were wrong, but I suspect you must be using MapServer 5.6, and if that's the case then you need to use $oLayer->resultsGetShape() instead of GetShape() for method 1. tschobber tsch?bbi wrote: > Hi userlist, > > could anyone help me on a mapserver issue? I've written a little php mapscript application (see complete code here http://pastebin.ca/1892318) that makes a rectangular query on a layer using the "querybyrect" method (method 1 --> see code) and addtional the same is done by using the "whichshapes" function (method 2). The problem is that method 1 (querybyrect) returns the wrong results whereas the results of method 2 are correct. Why is this? Do I need to define a real template file for method 1? If yes, how it has to look like to make the layer queryable the right way? Additional I should mention that the DATA for the layer is correct too. > > Here's the mapfile for this application: > http://pastebin.ca/1892327 > > Thank you for any answers. > > Greetings > > > -- Daniel Morissette http://www.mapgears.com/ From akrherz at iastate.edu Thu Jul 1 09:12:47 2010 From: akrherz at iastate.edu (daryl herzmann) Date: Thu, 1 Jul 2010 11:12:47 -0500 (CDT) Subject: [mapserver-users] TIme support on mapserver 5.6.3, it's working? In-Reply-To: References: Message-ID: On Thu, 1 Jul 2010, rai 8 wrote: > Hello, > > I've been working with mapserver to get a map with time support, time > parameter, I followed the tutorial in documetation > http://mapserver.org/ogc/wms_time.html and this post > http://osgeo-org.1803224.n2.nabble.com/Accessing-images-using-time-dimension-td1991324.html#a1991324 > and I can't run the mapserver to change the image with a time parameter. > > I test several configurations but any works, the last is the same like > the post in the maillist, this is what i've done: > > in a postgis database > > create table satellite (image_path text, image_time timestamp); > select AddGeometryColumn('satellite', 'the_geom', 4326, 'POLYGON', 2); > > insert into satellite (image_path, image_time, the_geom) > values ('/home/vbox/Downloads/animacio/sat1.tif', '2007-05-11 10:00Z', GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 75.55, -31.82 75.55))', 4326)); > > insert into satellite (image_path, image_time, the_geom) > values ('/home/vbox/Downloads/animacio/sat2.tif', '2007-05-11 11:00Z', GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 75.55, -31.82 75.55))', 4326)); > > > and the map file: > > LAYER > NAME "time_w" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=tile_index host=127.0.0.1 user=postgres password=xxxxxx" > DATA "the_geom from satellite using unique oid using srid = 4326" > METADATA > "wms_title" "time_index_w" > "wms_srs" "EPSG:4326" > "wms_timeextent" "2007-01-01/2007-12-31" > "wms_timedefault" "2007-05-11T11:00:00Z" > "wms_timeitem" "image_time" #a column in postgis table of type > END > END > > LAYER > NAME "sat_w" > STATUS ON > TYPE RASTER > METADATA > "wms_title" "Satellite" > "wms_timeextent" "2007-01-01/2007-12-31" > END > PROJECTION > "init=epsg:4326" > END > TILEINDEX "time_w" # Layer name containing time index > TILEITEM "image_path" # DB column containing path to image > END > > > anyone finds some error? Could you provide an example URL you are using to test out the WMS-T? I am using WMS-T on 5.6.3 without any known issues. Please note that if your time table gets very large, you may hit this quirk: http://trac.osgeo.org/mapserver/ticket/3038 daryl From greenkov at gmail.com Thu Jul 1 12:09:38 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Thu, 1 Jul 2010 13:09:38 -0600 Subject: [mapserver-users] TIme support on mapserver 5.6.3, it's working? In-Reply-To: References: Message-ID: On Thu, Jul 1, 2010 at 6:27 AM, rai 8 wrote: > Hello, > > I've been working with mapserver to get a map with time support, time > parameter, I followed the tutorial in documetation > http://mapserver.org/ogc/wms_time.html and this post > http://osgeo-org.1803224.n2.nabble.com/Accessing-images-using-time-dimension-td1991324.html#a1991324 > and I can't run the mapserver to change the image with a time parameter. > > I test several configurations but any works, the last is the same like the > post in the maillist, this is what i've done: > > in a postgis database > > create table satellite (image_path text, image_time timestamp); > select AddGeometryColumn('satellite', 'the_geom', 4326, 'POLYGON', 2); > > insert into satellite (image_path, image_time, the_geom) > values ('/home/vbox/Downloads/animacio/sat1.tif', '2007-05-11 10:00Z', > GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 75.55, > -31.82 75.55))', 4326)); > > insert into satellite (image_path, image_time, the_geom) > values ('/home/vbox/Downloads/animacio/sat2.tif', '2007-05-11 11:00Z', > GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 75.55, > -31.82 75.55))', 4326)); > > > and the map file: > > LAYER > NAME "time_w" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=tile_index host=127.0.0.1 user=postgres > password=xxxxxx" > DATA "the_geom from satellite using unique oid using srid = 4326" > METADATA > "wms_title" "time_index_w" > "wms_srs" "EPSG:4326" > "wms_timeextent" "2007-01-01/2007-12-31" > "wms_timedefault" "2007-05-11T11:00:00Z" > "wms_timeitem" "image_time" #a column in postgis table of type > END > END > > LAYER > NAME "sat_w" > STATUS ON > TYPE RASTER > METADATA > "wms_title" "Satellite" > "wms_timeextent" "2007-01-01/2007-12-31" > END > PROJECTION > "init=epsg:4326" > END > TILEINDEX "time_w" # Layer name containing time index > TILEITEM "image_path" # DB column containing path to image > END > > > anyone finds some error? > > > thanks The time-related metadata items: "wms_timeextent" "2007-01-01/2007-12-31" "wms_timedefault" "2007-05-11T11:00:00Z" "wms_timeitem" "image_time" #a column in postgis table of type need to be in the METADATA section of the "sat_w" layer. Alex From frankhevans at yahoo.com Thu Jul 1 13:33:04 2010 From: frankhevans at yahoo.com (turtlewax) Date: Thu, 1 Jul 2010 13:33:04 -0700 (PDT) Subject: [mapserver-users] wcs_size for indexed layers Message-ID: <1278016384498-5245225.post@n2.nabble.com> I have a WCS raster layer, QUESTION: What does the "wcs_size" attribute refer to? Is it the size of the raster in pixels? If so, how would I define "wcs_size" for an indexed layer made of multiple rasters? Thanks in advance. LAYER NAME "10" METADATA "wms_title" "foo" "wms_abstract" "foo" "wms_extent" "-162.9645371 65.8714415 -162.550759 66.1710706" "wcs_label" "foo" "wcs_rangeset_name" "foo" "wcs_rangeset_label" "foo" "wcs_res" "1 1" "wcs_size" "35242 65512" "wcs_extent" "-162.9645371 65.8714415 -162.550759 66.1710706" "ows_extent" "-162.9645371 65.8714415 -162.550759 66.1710706" "wcs_srs" "EPSG:32632" "wcs_bandcount" "3" END EXTENT -162.9645371 65.8714415 -162.550759 66.1710706 PROJECTION "init=epsg:4326" END TYPE RASTER PROCESSING "CLOSE_CONNECTION=DEFER" TILEINDEX "bar" OFFSITE 0 0 0 END END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/wcs-size-for-indexed-layers-tp5245225p5245225.html Sent from the Mapserver - User mailing list archive at Nabble.com. From KMorrison at advantrack.com Thu Jul 1 15:27:04 2010 From: KMorrison at advantrack.com (Kent Morrison) Date: Thu, 1 Jul 2010 17:27:04 -0500 Subject: [mapserver-users] Mapserver and tile caching In-Reply-To: <20100629160017.3FCCEE01C86@lists.osgeo.org> References: <20100629160017.3FCCEE01C86@lists.osgeo.org> Message-ID: <4DCDDD4507E4E847920443D1B98C588D1E3D8CF7D4@mail1.advantrack.local> I'm using mapserver to produce overlays for Bing maps... I'd like to implement tile caching. Does anyone have any recommendations for implementing tile caching? I've setup TileCache using (http://viswaug.wordpress.com/2008/02/03/setting-up-tilecache-on-iis/) but I'm not sure how to translate that into a Bing implementation instead of openlayers. Thanks Kent From warmerdam at pobox.com Thu Jul 1 20:17:12 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 2 Jul 2010 05:17:12 +0200 Subject: [mapserver-users] mapserver + grib files + explanation and questions In-Reply-To: <1277992229213-5243456.post@n2.nabble.com> References: <1277992229213-5243456.post@n2.nabble.com> Message-ID: On Thu, Jul 1, 2010 at 3:50 PM, Muro wrote: > I mean, when I click on a point I need to get all values associated to that > point. > There are 6136 bands in my grib file. > I removed PROCESSING "BANDS=6136", but mapserver crashes (500 internal > error...mm no good) > I added PROCESSING "BANDS=10,20,30,40,50", but mapserver crashes (500 > internal error) > > Ideas? Is it possible? Muro, In theory you should be able to do a BANDS= directive listing all the bands though that would be quite tedious with so many. But I don't know why things are crashing. Please file a ticket including points to the grib file to reproduce the crash and I'll try to look into it within a few days. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at pobox.com Thu Jul 1 20:45:59 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 2 Jul 2010 05:45:59 +0200 Subject: [mapserver-users] wcs_size for indexed layers In-Reply-To: <1278016384498-5245225.post@n2.nabble.com> References: <1278016384498-5245225.post@n2.nabble.com> Message-ID: On Thu, Jul 1, 2010 at 10:33 PM, turtlewax wrote: > > I have a WCS raster layer, > > QUESTION: What does the "wcs_size" attribute refer to? Is it the size of the > raster in pixels? If so, how would I define "wcs_size" for an indexed layer > made of multiple rasters? ?Thanks in advance. Frank, It is indeed the size of the raster in pixels and lines. For a layer based on a tileindex you would indicate the virtual size of the composite raster. This could be derived from the extents of the files in data in question and the desired resolution. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From dalda at ikt.es Fri Jul 2 00:07:22 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Fri, 2 Jul 2010 09:07:22 +0200 Subject: [mapserver-users] Problems with mapserver wrapper script [SOLVED] Message-ID: <224DBDAF88A6AC47BD22432815351BE0080A98BC@nekaposta1> Jukka, > Another possibility is in one unnecessary "=" sign. Try SetEnvIf Request_URI "/cgi-bin/wms_dgis.exe" Tha was the mistake (Aaaaaaargh!!! What a silly a thing!!!). I removed "=" and worked perfectly. 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: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? -----Mensaje original----- De: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Enviado el: jueves, 01 de julio de 2010 14:00 Para: David Alda Fernandez de Lezea; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Problems with mapserver wrapper script Hi, I do not see anything wrong in it. It should work and perhaps give you another error as I am getting from Mapserver 5.2.1 msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter I would have a try by including the drive letter in the mapfile path and restarting Apache, but I fear it does not help. Another possibility is in one unnecessary "=" sign. Try SetEnvIf Request_URI "/cgi-bin/wms_dgis.exe" -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta David Alda > Fernandez de Lezea > L?hetetty: 1. hein?kuuta 2010 14:37 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Problems with mapserver wrapper script > > Hi list, > > I'm facing a small problem. I've copied mapserv.exe to a new file > called wms_dgis.exe, I added to httpd.conf the following line > > SetEnvIf Request_URI ="/cgi-bin/wms_dgis.exe" > MS_MAPFILE=/ms4w/Apache/htdocs/MFD/wms_dgis.map > > I also changed the onlineresource value of the mapfile to > > "wms_onlineresource" > "http://192.168.1.65/cgi-bin/wms_dgis.exe?" > > When I type in the web browser the url > http://192.168.1.65/cgi-bin/wms_dgis.exe?, I get: > > No query information to decode. QUERY_STRING is set, but empty. > > So I think I'm on the right way, but when I make a getCapabilities > request like: > > http://192.168.1.65/cgi-bin/wms_dgis.exe?SERVICE=WMS&REQUEST=G etCapabilities > > I get: > > loadMap(): Web application error. CGI variable "map" is not set. > > I've looked into Apache's access.log but I don't see anything odd. > > MS4W package > Mapserver 5.6.1 > Win XP > > Am I doing something wrong?? > > > 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: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????? > ???????????????????? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From muraro_davide at hotmail.com Fri Jul 2 02:57:21 2010 From: muraro_davide at hotmail.com (Muro) Date: Fri, 2 Jul 2010 02:57:21 -0700 (PDT) Subject: [mapserver-users] Re: mapserver + grib files + explanation and questions In-Reply-To: References: <1277992229213-5243456.post@n2.nabble.com> Message-ID: <1278064641892-5247104.post@n2.nabble.com> Dear Frank, First of all, thank you very much for your reply. Sorry, if I reply only now, it took time to do tests. LINK: http://[SERVER]mapserv/jrc?map=/var/www/html/grib-test/mapserver/grib.map&LAYERS=EUD201006_cp-lsp&FORMAT=image%2Fpng&MAXEXTENT=left-bottom%3D%28-35%2C29.5%29%20right-top%3D%2845.5%2C75%29&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-60.667969%2C8.304688%2C71.167969%2C96.195313&X=239&Y=225&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=EUD201006_cp-lsp&WIDTH=750&HEIGHT=500 Time to process it: Immediately PROCESSING "BANDS=1,2,3,4,5,6,7,8,9,10" 8.7738037e-05,0.00016784668,0.00022125244,0.00029754639,0.00031280518,0.00035095215,0.00035858154,0.00038146973,0.00039672852,0.00039672852 Time to process it: Immediately PROCESSING "BANDS=10,100,1000,3000,4000,5000,6000" 2.0862938e-33,2.0862968e-33,0.00086975098,0.016693115,0.010494232,0.00038146973,0.013940811 Time to process it: 20 seconds PROCESSING "BANDS=30,250,251,252,259,280,6135,6136" 0.0052089691, 0.009759903, 0.009759903, 0.009759903, 0.0097885132, 0.0078086853, 0.026855469, 0.027008057 Time to process it: Immediately PROCESSING "BANDS=30,250,251,252,253,254,255" 3.8710469e-33, 2.7528285e-33, 0.009759903, 0.009759903, 0.009759903, 0.009759903, 0.009759903 Time to process it: Immediately PROCESSING "BANDS=6129,6130,6131,6132,6133,6134,6135,6136" 0.025232315,0.02602005,0.026279449,0.026504517,0.026584625,0.026779175,0.026855469,0.027008057 Time to process it: Immediately PROCESSING "BANDS=6130,6131,6132,6133,6134,6135,6136" 8.0113099e-34,6.0489029e-34,0.026504517,0.026584625,0.026779175,0.026855469,0.027008057 Time to process it: Immediately PROCESSING "BANDS=6129,6130,6131,6132,6133,6134,6135,6136" 0.025232315,0.02602005,0.026279449,0.026504517,0.026584625,0.026779175,0.026855469,0.027008057 Time to process it: It crashed. I have the httpd error basically when I launch the html page PROCESSING "BANDS=6128,6129,6130,6131,6132,6133,6134,6135,6136" [Fri Jul 02 11:32:57 2010] [error] [client 139.191.16.109] *** glibc detected *** /usr/sbin/mapserv: corrupted double-linked list: 0x0986b590 *** Time to process it: It crashed. I have the httpd error basically when I launch the html page PROCESSING "BANDS=6127,6128,6129,6130,6131,6132,6133,6134,6135,6136" [Fri Jul 02 11:18:19 2010] [error] [client IP] *** glibc detected *** /usr/sbin/mapserv: corrupted double-linked list: 0x0a10c5a0 *** Time to process it: It crashed. I have the httpd error basically when I launch the html page PROCESSING "BANDS=500,1000,1500,2000,2500,3000,3500,4000,4500,5000,5500,6000" [Fri Jul 02 11:37:09 2010] [error] [client IP] *** glibc detected *** /usr/sbin/mapserv: corrupted double-linked list: 0x0961e5a0 *** Grib dump: Band 6128 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278547200 sec UTC GRIB_FORECAST_SECONDS=691200 sec Band 6129 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278568800 sec UTC GRIB_FORECAST_SECONDS=712800 sec Band 6130 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278590400 sec UTC GRIB_FORECAST_SECONDS=734400 sec Band 6131 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278612000 sec UTC GRIB_FORECAST_SECONDS=756000 sec Band 6132 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278633600 sec UTC GRIB_FORECAST_SECONDS=777600 sec Band 6133 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278655200 sec UTC GRIB_FORECAST_SECONDS=799200 sec Band 6134 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278676800 sec UTC GRIB_FORECAST_SECONDS=820800 sec Band 6135 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278698400 sec UTC GRIB_FORECAST_SECONDS=842400 sec Band 6136 Block=161x1 Type=Float64, ColorInterp=Undefined Description = 0[-] SFC (Ground or water surface) Metadata: GRIB_UNIT=[m] GRIB_COMMENT=Convective precipitation [m] GRIB_ELEMENT=CP GRIB_SHORT_NAME=0-SFC GRIB_REF_TIME= 1277856000 sec UTC GRIB_VALID_TIME= 1278720000 sec UTC GRIB_FORECAST_SECONDS=864000 sec I suppose, the Grib is read sequentially? I don't understand, why does mapserver crash? Ideas? I will create a more useful grib file cutting the values: 0.026779175 to 0 7.122749175 to 7.1 and I will check the performance. Thank you!!! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-grib-files-explanation-and-questions-tp5243456p5247104.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bartvde at osgis.nl Fri Jul 2 03:49:33 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Fri, 2 Jul 2010 12:49:33 +0200 Subject: [mapserver-users] follow-up on OGC compliancy Message-ID: <889E8D42-2BD5-4BB6-8915-6C87328F85D8@osgis.nl> Hi list, a follow-up on this e-mail from Daniel Morissette: http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg08668.html Is there still the plan to get the official stamp from OGC on WMS compliancy? Any timeline? Is there still work ongoing for WFS compliancy, or does this need sponsorship to actually happen? Also, I assume it is technically viable to have Mapserver WFS 1.1 compliant, or are there big / impossible hurdles to be taken? TIA. Best regards, Bart From max1000 at gmail.com Fri Jul 2 05:20:00 2010 From: max1000 at gmail.com (rai 8) Date: Fri, 2 Jul 2010 14:20:00 +0200 Subject: [mapserver-users] TIme support on mapserver 5.6.3, it's working? In-Reply-To: References: Message-ID: > > Could you provide an example URL you are using to test out the WMS-T? I am > using WMS-T on 5.6.3 without any known issues. Please note that if your > time table gets very large, you may hit this quirk: > I am using URL like: http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/map_directory/tile_time_2.map&layer=radar&layer=time_idx_pg&mode=map&TIME=2004-01-01T10:10:00 It shows an image but always the first -> /home/vbox/Downloads/animacio/sat1.tif , that have the timestamp: 2007-05-11 10:00Z My table its very little, I was wrong about the version, is the 5.4.2, i'll try to do the same with the 5.6 but it's very strange that any configuration that I tried doesn't work. need to be in the METADATA section of the "sat_w" layer. > I tried a lot of combinations, also with all the metadata in sat_w like "official" tutorial thanks a lot! 2010/7/1 Alexander Petkov > On Thu, Jul 1, 2010 at 6:27 AM, rai 8 wrote: > > Hello, > > > > I've been working with mapserver to get a map with time support, time > > parameter, I followed the tutorial in documetation > > http://mapserver.org/ogc/wms_time.html and this post > > > http://osgeo-org.1803224.n2.nabble.com/Accessing-images-using-time-dimension-td1991324.html#a1991324 > > and I can't run the mapserver to change the image with a time parameter. > > > > I test several configurations but any works, the last is the same like > the > > post in the maillist, this is what i've done: > > > > in a postgis database > > > > create table satellite (image_path text, image_time timestamp); > > select AddGeometryColumn('satellite', 'the_geom', 4326, 'POLYGON', 2); > > > > insert into satellite (image_path, image_time, the_geom) > > values ('/home/vbox/Downloads/animacio/sat1.tif', '2007-05-11 10:00Z', > > GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 75.55, > > -31.82 75.55))', 4326)); > > > > insert into satellite (image_path, image_time, the_geom) > > values ('/home/vbox/Downloads/animacio/sat2.tif', '2007-05-11 11:00Z', > > GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 75.55, > > -31.82 75.55))', 4326)); > > > > > > and the map file: > > > > LAYER > > NAME "time_w" > > TYPE POLYGON > > STATUS ON > > CONNECTIONTYPE POSTGIS > > CONNECTION "dbname=tile_index host=127.0.0.1 user=postgres > > password=xxxxxx" > > DATA "the_geom from satellite using unique oid using srid = 4326" > > METADATA > > "wms_title" "time_index_w" > > "wms_srs" "EPSG:4326" > > "wms_timeextent" "2007-01-01/2007-12-31" > > "wms_timedefault" "2007-05-11T11:00:00Z" > > "wms_timeitem" "image_time" #a column in postgis table of type > > END > > END > > > > LAYER > > NAME "sat_w" > > STATUS ON > > TYPE RASTER > > METADATA > > "wms_title" "Satellite" > > "wms_timeextent" "2007-01-01/2007-12-31" > > END > > PROJECTION > > "init=epsg:4326" > > END > > TILEINDEX "time_w" # Layer name containing time index > > TILEITEM "image_path" # DB column containing path to image > > END > > > > > > anyone finds some error? > > > > > > thanks > > The time-related metadata items: > > "wms_timeextent" "2007-01-01/2007-12-31" > "wms_timedefault" "2007-05-11T11:00:00Z" > "wms_timeitem" "image_time" #a column in postgis table of type > > > need to be in the METADATA section of the "sat_w" layer. > > Alex > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Fri Jul 2 05:40:42 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 02 Jul 2010 08:40:42 -0400 Subject: [mapserver-users] OGC spatial filter BBox In-Reply-To: <4C2B4007.6070306@r3-gis.com> References: <4C2B4007.6070306@r3-gis.com> Message-ID: <4C2DDE4A.1060200@dmsolutions.ca> On 30/06/2010 9:00 AM, Daniel Degasperi wrote: > Hi, > does the spatial filter BBox described in > http://mapserver.org/ogc/sld.html work? > > If I take look at the "full_request_6d" example, it seems the filter > will be applied on all the geometries. > > I tried to apply a spatial BBox filter also on a set of polygons, > but instead to change the color for the polygon within the given bbox, > it changed the color of every geometry of my layer. > I believe in this case that the bboxfilter in the sld is "over written" by the bbox of the wms request. I have added a trac on it [1] and will fix it for the 6.0 release. best regards, [1]: http://trac.osgeo.org/mapserver/ticket/3479 > Best regards, > Daniel > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Fri Jul 2 06:30:53 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 02 Jul 2010 09:30:53 -0400 Subject: [mapserver-users] follow-up on OGC compliancy In-Reply-To: <889E8D42-2BD5-4BB6-8915-6C87328F85D8@osgis.nl> References: <889E8D42-2BD5-4BB6-8915-6C87328F85D8@osgis.nl> Message-ID: <4C2DEA0D.5060906@dmsolutions.ca> On 02/07/2010 6:49 AM, Bart van den Eijnden wrote: > Hi list, > > a follow-up on this e-mail from Daniel Morissette: > > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg08668.html > > Is there still the plan to get the official stamp from OGC on WMS compliancy? Any timeline? > > Is there still work ongoing for WFS compliancy, or does this need sponsorship to actually happen? Also, I assume it is technically viable to have Mapserver WFS 1.1 compliant, or are there big / impossible hurdles to be taken? > > There was some effort put toward wfs 1.1 compliancy tests with several elements identified and corrected. Summary of this effort is described here [1]. There is still substantial work to be done to be able to pass the majority of the tests (things such addressing mandatory/non mandatory attributes, support of Xpath expressions, support of the Sort operator, encoding comes into mind). I believe there will still be some issues with some of the tests that we found were inconsistent (although I have not followed the details, note that CITE has done some work to upgrade/correct the tests). There will be some effort toward this again sometime before the 6.0 release. [1]: http://trac.osgeo.org/mapserver/wiki/MapServerOGCCITEComplianceWFS110Notes best regards. > TIA. > > Best regards, > Bart_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From kiranbandal at gmail.com Fri Jul 2 09:26:07 2010 From: kiranbandal at gmail.com (Kiran Bandal) Date: Fri, 2 Jul 2010 09:26:07 -0700 (PDT) Subject: [mapserver-users] How to get full extent of the map? Message-ID: <1278087967602-5248342.post@n2.nabble.com> Hi, I am a bit to new MapServer. I need some assistance on one of my issues as described below. I am using MapServer 5.6.3. I am creating a Silverlight application that uses MapServer. I have one Silverlight button on clicking of which I want to show map in it's full spatial extent. I searched a lot related to this, but could not find any solution. Can anybody please guide me how to do this? Hardcoding the extent in the code-behind is not the an option. Any help would be greatly appreciated. Thanks, Kiran. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-full-extent-of-the-map-tp5248342p5248342.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Fri Jul 2 10:35:42 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 2 Jul 2010 20:35:42 +0300 Subject: [mapserver-users] How to get full extent of the map? References: <1278087967602-5248342.post@n2.nabble.com> Message-ID: Hi, You can read layer extents with WMS GetCapabities request, perhaps that could help you? -Jukka Rahkonen- Kiran Bandal wrote: > Hi, > I am a bit to new MapServer. > I need some assistance on one of my issues as described below. > I am using MapServer 5.6.3. I am creating a Silverlight application that uses MapServer. I have one Silverlight button on clicking of which I want to show map in it's full spatial extent. I searched a lot related to this, but could not find any solution. > Can anybody please guide me how to do this? Hardcoding the extent in the code-behind is not the an option. Any help would be greatly appreciated. > Thanks, > Kiran. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-full-extent-of-the-map-tp5248342p5248342.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From kiranbandal at gmail.com Fri Jul 2 23:03:41 2010 From: kiranbandal at gmail.com (Kiran Bandal) Date: Fri, 2 Jul 2010 23:03:41 -0700 (PDT) Subject: [mapserver-users] Re: How to get full extent of the map? In-Reply-To: References: <1278087967602-5248342.post@n2.nabble.com> Message-ID: <1278137021197-5250366.post@n2.nabble.com> Hi, Thanks for the reply. Just to let you know, I am reading my vector data from PostgreSQL. So, can I use WMS GetCapabities request in that case. It would be really helpful if you can paste any sample code for that if you have any. Thanks and regards, Kiran. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-full-extent-of-the-map-tp5248342p5250366.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Sat Jul 3 00:42:18 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 3 Jul 2010 10:42:18 +0300 Subject: [mapserver-users] Re: How to get full extent of the map? References: <1278087967602-5248342.post@n2.nabble.com> <1278137021197-5250366.post@n2.nabble.com> Message-ID: Hi, Sorry, I do not make code, but you should make your application to send the getCapabilities request like http://localhost/cgi-bin/mapserv.exe?service=WMS&version=1.1.0&request=getCapabilities&map=c:\ms4w\osm-mapserver.map and capture the extents from the returned document which will have this kind of sections for each layer landuse_layer5 landuse_layer5 EPSG:3067 Please notice that the both bounding boxes in this example are nonsense and I should obviously check my mapfile for correcting them. -Jukka Rahkonen- Kiran Bandal wrote: > Hi, > Thanks for the reply. > Just to let you know, I am reading my vector data from PostgreSQL. So, can I use WMS GetCapabities request in that case. > It would be really helpful if you can paste any sample code for that if you have any. > Thanks and regards, > Kiran. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-full-extent-of-the-map-tp5248342p5250366.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From kiranbandal at gmail.com Sat Jul 3 01:57:54 2010 From: kiranbandal at gmail.com (Kiran Bandal) Date: Sat, 3 Jul 2010 01:57:54 -0700 (PDT) Subject: [mapserver-users] Re: How to get full extent of the map? In-Reply-To: References: <1278087967602-5248342.post@n2.nabble.com> <1278137021197-5250366.post@n2.nabble.com> Message-ID: <1278147474480-5250576.post@n2.nabble.com> Hi, Thanks for the suggestions. I would try to follow them and let you know my results. Regards, Kiran. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-full-extent-of-the-map-tp5248342p5250576.html Sent from the Mapserver - User mailing list archive at Nabble.com. From wal3 at mindspring.com Sat Jul 3 05:29:48 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Sat, 3 Jul 2010 08:29:48 -0400 Subject: [mapserver-users] problem installing mapscript Message-ID: <272231B1BB29491F9AFFBB567F999763@Worthlaptop> This is my first time trying to install mapserver without using a package. I have not found a RPM for mapserver 5.6.3 for RHEL5 I downloaded mapserver and did the configure and make. After installing all the missing libs I thought I had it done. After copying moving php_mapscript.so to the proper location, I find that upon restarting apache it does not load. Here is the message from the error log. ---snip------- PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mapscript.so' - libgeos-3.2.0.so: cannot open shared object file: No such file or directory in Unknown on line 0 ---snip------- In an effort to correct this, I downloaded and installed libgeos and tried to install it. I also tried to install a rpm with libgeos 3.1.1. Mapscript still does not load and I find the following warnings when I run make. ---snip------- /usr/bin/ld: warning: libpq.so.4, needed by /usr/lib64/libgdal.so, may conflict with libpq.so.5 /usr/bin/ld: warning: libpq.so.4, needed by /usr/lib64/libgdal.so, may conflict with libpq.so.5 /usr/bin/ld: warning: libpq.so.4, needed by /usr/lib64/libgdal.so, may conflict with libpq.so.5 /usr/bin/ld: warning: libssl.so.4, needed by /opt/PostgreSQL/8.4/lib/libpq.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcrypto.so.4, needed by /opt/PostgreSQL/8.4/lib/libpq.so, not found (try using -rpath or -rpath-link) ---snip------- I really have no idea what I am doing and wonder if I have totally messed up this system. Can someone point me in the right direction?? Worth From greenkov at gmail.com Sat Jul 3 11:16:21 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Sat, 3 Jul 2010 12:16:21 -0600 Subject: [mapserver-users] TIme support on mapserver 5.6.3, it's working? In-Reply-To: References: Message-ID: I suggest that you carefully inspect your definitions in your mapfile, as well as the data in the Postgis DB itself. Turn debugging on, and inspect the log file closely. Also, if you already haven't, enable PostgreSQL logging, inspect incoming requests to your database as well. For example, one inconsistency that is evident from your map file is the date format--the "wms_timeextent" item for the "sat_w" layer contains a date range, while your Postgis data also has a timestamp data type with HH24:MI data. I would eliminate those inconsistensies first. List each time step individually (comma separated) in your mapfile , since your number of records for the time being is small, rather than specifying a date range. Again, do not be shy about inspecting the log files. Randomly trying "a lot of combinations", as well as different Mapserver versions hoping that something will work will likely not help. Alex On Fri, Jul 2, 2010 at 6:20 AM, rai 8 wrote: >> Could you provide an example URL you are using to test out the WMS-T? ?I >> am using WMS-T on 5.6.3 without any known issues. ?Please note that if your >> time table gets very large, you may hit this quirk: > > I am using URL like: > http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/map_directory/tile_time_2.map&layer=radar&layer=time_idx_pg&mode=map&TIME=2004-01-01T10:10:00 > > It shows an image but always the first -> > /home/vbox/Downloads/animacio/sat1.tif , that have the timestamp: 2007-05-11 > 10:00Z > > My table its very little, I was wrong about the version, is the 5.4.2, i'll > try to do the same with the 5.6 but it's very strange that any configuration > that I tried doesn't work. > >> need to be in the METADATA section of the "sat_w" layer. > > I tried a lot of combinations, also with all the metadata in sat_w like > "official" tutorial > > > thanks a lot! > > > > > 2010/7/1 Alexander Petkov >> >> On Thu, Jul 1, 2010 at 6:27 AM, rai 8 wrote: >> > Hello, >> > >> > I've been working with mapserver to get a map with time support, time >> ?> parameter, I followed the tutorial in documetation >> > http://mapserver.org/ogc/wms_time.html and this post >> > >> > http://osgeo-org.1803224.n2.nabble.com/Accessing-images-using-time-dimension-td1991324.html#a1991324 >> > and I can't run the mapserver to change the image with a time parameter. >> > >> > I test several configurations but any works, the last is the same like >> > the >> > post in the maillist, this is what i've done: >> > >> > in a postgis database >> > >> > create table satellite (image_path text, image_time timestamp); >> > select AddGeometryColumn('satellite', 'the_geom', 4326, 'POLYGON', 2); >> > >> > insert into satellite (image_path, image_time, the_geom) >> > values ('/home/vbox/Downloads/animacio/sat1.tif', '2007-05-11 10:00Z', >> > GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 >> > 75.55, >> > -31.82 75.55))', 4326)); >> > >> > insert into satellite (image_path, image_time, the_geom) >> > values ('/home/vbox/Downloads/animacio/sat2.tif', '2007-05-11 11:00Z', >> > GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 >> > 75.55, >> > -31.82 75.55))', 4326)); >> > >> > >> > and the map file: >> > >> > ?LAYER >> > ? ? NAME ? ?"time_w" >> > ? ? TYPE ? ?POLYGON >> > ? ? STATUS ? ?ON >> > ? ? CONNECTIONTYPE ?POSTGIS >> > ? ? CONNECTION ? ?"dbname=tile_index host=127.0.0.1 user=postgres >> > password=xxxxxx" >> > ? ? DATA ? ?"the_geom from satellite using unique oid using srid = 4326" >> > ? ? METADATA >> > ? ? ? ? "wms_title" ? ?"time_index_w" >> > ? ? ? ? "wms_srs" ? ?"EPSG:4326" >> > ? ? ? ? "wms_timeextent" ? ?"2007-01-01/2007-12-31" >> > ? ? ? ? "wms_timedefault" ? "2007-05-11T11:00:00Z" >> > ? ? ? ? "wms_timeitem" ? ?"image_time" #a column in postgis table of >> > type >> > ? ? END >> > ? END >> > >> > ? LAYER >> > ? ? NAME ? ?"sat_w" >> > ? ? STATUS ?ON >> > ? ? TYPE ? ?RASTER >> > ? ? METADATA >> > ? ? ? ? "wms_title" ? ?"Satellite" >> > ? ? ? ? "wms_timeextent" ? ?"2007-01-01/2007-12-31" >> > ? ? END >> > ? ? PROJECTION >> > ? ? ? "init=epsg:4326" >> > ? ? END >> > ? ? TILEINDEX "time_w" # Layer name containing time index >> > ? ? TILEITEM ?"image_path" # DB column containing path to image >> > ? END >> > >> > >> > anyone finds some error? >> > >> > >> > thanks >> >> The time-related metadata items: >> >> "wms_timeextent" ? ?"2007-01-01/2007-12-31" >> ? ? ? ?"wms_timedefault" ? "2007-05-11T11:00:00Z" >> ? ? ? ?"wms_timeitem" ? ?"image_time" #a column in postgis table of type >> >> >> need to be in the METADATA section of the "sat_w" layer. >> >> Alex > > From akrherz at iastate.edu Sun Jul 4 09:39:16 2010 From: akrherz at iastate.edu (daryl herzmann) Date: Sun, 4 Jul 2010 11:39:16 -0500 (CDT) Subject: [mapserver-users] problem installing mapscript In-Reply-To: <272231B1BB29491F9AFFBB567F999763@Worthlaptop> References: <272231B1BB29491F9AFFBB567F999763@Worthlaptop> Message-ID: Hello Worth, Welcome to Mapserver! On Sat, 3 Jul 2010, Worth Lutz wrote: > This is my first time trying to install mapserver without using a package. > I have not found a RPM for mapserver 5.6.3 for RHEL5 > > I downloaded mapserver and did the configure and make. After installing all > the missing libs I thought I had it done. > > After copying moving php_mapscript.so to the proper location, I find that > upon restarting apache it does not load. Here is the message from the error > log. > > ---snip------- > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib64/php/modules/php_mapscript.so' - libgeos-3.2.0.so: cannot open > shared object file: No such file or directory in Unknown on line 0 > ---snip------- This is a sign that the location you put libgeos-3.2.0.so is not in the system's nor apache's LD_LIBRARY_PATH. If libgeos is in /usr/local/lib, make sure that is in either /etc/ld.so.conf or in a file in /etc/ld.so.conf.d/ . Typically, I do this. echo "/usr/local/lib" >> /etc/ld.so.conf.d/usrlocal.conf ldconfig > In an effort to correct this, I downloaded and installed libgeos and > tried to install it. I also tried to install a rpm with libgeos 3.1.1. If you did this after compiling geos and mapserver, you probably have a conflict going now. > /usr/bin/ld: warning: libpq.so.4, needed by /usr/lib64/libgdal.so, may > conflict with libpq.so.5 Did you compile gdal or get it from a third party packager? daryl From wal3 at mindspring.com Sun Jul 4 12:08:21 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Sun, 4 Jul 2010 15:08:21 -0400 Subject: [mapserver-users] problem installing mapscript In-Reply-To: References: <272231B1BB29491F9AFFBB567F999763@Worthlaptop> Message-ID: <8F4B4E9AD6174B0BACDF7ECFB3E40DBF@Worthlaptop> I'm not sure I've got this done correctly as I went thru lots of iterations removing packages and had to build geos and gdal to get recent versions. I'm not sure all went correctly but I do have a working version of Mapscript now on this server. I'll just have to keep testing my application and see if it crashes due to something missing. Thanks again for you help. Worth _____ From: Cristiano Sumariva [mailto:sumariva at gmail.com] Sent: Saturday, July 03, 2010 12:55 PM To: Worth Lutz Subject: Re: [mapserver-users] problem installing mapscript If you switch to source based you may need download and compile the sources dependencies too. And if you do this, you should remove the system binary packages from your package manager that implement those libraries. For the PHP message you should try locate the file named libgeos-3.2.0: find / -iname libgeos-3.2.0 then try create a symlink in your library dir to point to that file. If you do not find any geos file go to geos site, download a recent( do not need be the latest ) version then compile it. After recompile mapserver again. Not forget to execute a make clean and run configure again so configure can look for the new geos and prepare source code. Fot the libpq messages maybe that a wrong symlink is causing those warnings. You can try check if libpq.so.4 is a symlink. If symlink then remove it and make a new one to point to libpq.so.5 ln -s libpq.so.5 pibpq.so.4 I got some similar messages once when I compiled mapserver from source on a gentoo distribution( all source based package system ). Hope it helps any. 2010/7/3 Worth Lutz This is my first time trying to install mapserver without using a package. I have not found a RPM for mapserver 5.6.3 for RHEL5 I downloaded mapserver and did the configure and make. After installing all the missing libs I thought I had it done. After copying moving php_mapscript.so to the proper location, I find that upon restarting apache it does not load. Here is the message from the error log. ---snip------- PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mapscript.so' - libgeos-3.2.0.so: cannot open shared object file: No such file or directory in Unknown on line 0 ---snip------- In an effort to correct this, I downloaded and installed libgeos and tried to install it. I also tried to install a rpm with libgeos 3.1.1. Mapscript still does not load and I find the following warnings when I run make. ---snip------- /usr/bin/ld: warning: libpq.so.4, needed by /usr/lib64/libgdal.so, may conflict with libpq.so.5 /usr/bin/ld: warning: libpq.so.4, needed by /usr/lib64/libgdal.so, may conflict with libpq.so.5 /usr/bin/ld: warning: libpq.so.4, needed by /usr/lib64/libgdal.so, may conflict with libpq.so.5 /usr/bin/ld: warning: libssl.so.4, needed by /opt/PostgreSQL/8.4/lib/libpq.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcrypto.so.4, needed by /opt/PostgreSQL/8.4/lib/libpq.so, not found (try using -rpath or -rpath-link) ---snip------- I really have no idea what I am doing and wonder if I have totally messed up this system. Can someone point me in the right direction?? Worth _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Sun Jul 4 12:33:00 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Sun, 4 Jul 2010 15:33:00 -0400 Subject: [mapserver-users] problem installing mapscript In-Reply-To: References: <272231B1BB29491F9AFFBB567F999763@Worthlaptop> Message-ID: Thanks for response. I'm not new to Mapserver. I've been using it for over a year now. My inexperience in Linux. I have my development server running ubuntu and the packages are available to load the latest Mapserver. For this server (RHEL5 x86_64), I have not been able load Mapserver with packages and thus my problems. This is my first experience compiling from source and it has been quite and experience. I ended up compiling geos, gdal and mapserver. I'm not sure all went correctly but with some links added and removing some packages and loading some packages I got the compile process to run. I'm not sure what LD_LIBRARY_PATH is but I think that I did something similar to what you suggested at some point. Mapscript does load now and my application will run on this server now. I suppose that if there is a problem with the compiling and installing, my application will crash at some point. Thanks again, Worth -----Original Message----- From: daryl herzmann [mailto:akrherz at iastate.edu] Sent: Sunday, July 04, 2010 12:39 PM To: Worth Lutz Cc: 'MAPSERVER-USERS' Subject: Re: [mapserver-users] problem installing mapscript Hello Worth, Welcome to Mapserver! On Sat, 3 Jul 2010, Worth Lutz wrote: > This is my first time trying to install mapserver without using a package. > I have not found a RPM for mapserver 5.6.3 for RHEL5 > > I downloaded mapserver and did the configure and make. After installing all > the missing libs I thought I had it done. > > After copying moving php_mapscript.so to the proper location, I find that > upon restarting apache it does not load. Here is the message from the error > log. > > ---snip------- > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib64/php/modules/php_mapscript.so' - libgeos-3.2.0.so: cannot open > shared object file: No such file or directory in Unknown on line 0 > ---snip------- This is a sign that the location you put libgeos-3.2.0.so is not in the system's nor apache's LD_LIBRARY_PATH. If libgeos is in /usr/local/lib, make sure that is in either /etc/ld.so.conf or in a file in /etc/ld.so.conf.d/ . Typically, I do this. echo "/usr/local/lib" >> /etc/ld.so.conf.d/usrlocal.conf ldconfig > In an effort to correct this, I downloaded and installed libgeos and > tried to install it. I also tried to install a rpm with libgeos 3.1.1. If you did this after compiling geos and mapserver, you probably have a conflict going now. > /usr/bin/ld: warning: libpq.so.4, needed by /usr/lib64/libgdal.so, may > conflict with libpq.so.5 Did you compile gdal or get it from a third party packager? daryl From dalda at ikt.es Sun Jul 4 23:46:12 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Mon, 5 Jul 2010 08:46:12 +0200 Subject: [mapserver-users] Question about PropertyIsLike SLD Message-ID: <224DBDAF88A6AC47BD22432815351BE0080DE78E@nekaposta1> Hi list, I'm trying to make work a SLD with a PorpertyIsLike Filter, but when get the images back, the filter is no applied, maybe I'm just doing something wrong. I want to perform this: (vi_vinedo_ like '%some_value%') And in the SLD I've put this: vi_vinedo_*"+ id +"* But the filter is not applied and I get drawn all the features. What could be happening?? MapServer 5.2.1 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: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? From frankhevans at yahoo.com Mon Jul 5 07:14:49 2010 From: frankhevans at yahoo.com (turtlewax) Date: Mon, 5 Jul 2010 07:14:49 -0700 (PDT) Subject: [mapserver-users] WCS resX, resY Message-ID: <1278339289407-5256227.post@n2.nabble.com> I'm trying to get a handle on the relationship between the "wcs_resolution" in the map file, and the resX, resY parameters in the request. Looking at the description in the OGC spec: ================================= RESX=x RESY=y : Request a coverage subset with a specific spatial resolution along each axis of the reply CRS. The values are given in the units appropriate to each axis of the CRS. ================================= QUESTION 1: If CRS = EPSG:4326, would the unit be ??? ["degree",0.0174532925199433] ??? QUESTION 2: As a consumer of WCS, I'm looking for a way to ask for "Full-Res", "1/2 res", etc. But if I understand the "resX,resY" definition, it seems like the consumer needs in-depth knowledge of the underlying source, and needs to perform calculations to determine the desired resX/resY values. This leads me to believe that my understanding of these parameters is incorrect. Looking for clarification. Thanks in advance. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WCS-resX-resY-tp5256227p5256227.html Sent from the Mapserver - User mailing list archive at Nabble.com. From max1000 at gmail.com Mon Jul 5 07:48:36 2010 From: max1000 at gmail.com (rai 8) Date: Mon, 5 Jul 2010 16:48:36 +0200 Subject: [mapserver-users] TIme support on mapserver 5.6.3, it's working? In-Reply-To: References: Message-ID: I try to fix time_extends with layer and the behaivor are the same, also I logged the postgresql & mapserver: with this query show always the first image , at the 11:00:00, in the log of postgresql the query has not time parameter http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&LAYERS=sat_w,time_w&mode=map&TIME=2007-05-11T11:00:00 postgresql 2010-07-05 16:14:26 CEST LOG: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'tile_index' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null 2010-07-05 16:14:26 CEST LOG: statement: select encode(AsBinary(force_collection(force_2d("tile_geom")),'NDR'),'base64') as geom,"oid" from tile_index where tile_geom && GeomFromText('POLYGON((165660.980559345 -371954.772084,165660.980559345 632767.19157,1506410.35680666 632767.19157,1506410.35680666 -371954.772084,165660.980559345 -371954.772084))',find_srid('','tile_index','tile_geom')) 2010-07-05 16:14:27 CEST LOG: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'tile_index' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null 2010-07-05 16:14:27 CEST LOG: statement: select "tile_filepath",encode(AsBinary(force_collection(force_2d("tile_geom")),'NDR'),'base64') as geom,"oid" from tile_index where tile_geom && GeomFromText('POLYGON((-98.0072083861835 40.1776647603121,-98.0072083861835 50.6708031292285,-79.1036733841116 50.6708031292285,-79.1036733841116 40.1776647603121,-98.0072083861835 40.1776647603121))',find_srid('','tile_index','tile_geom')) with this url selects first image but show the second, in this case the query take into account time parameter http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=time_w,sat_w&WIDTH=800&HEIGHT=400&FORMAT=image/png&TRANSPARENT=false&srs=EPSG:4326&BBOX=-126,24,-66,50&TIME=2007-05-11T10:00:00 postgresql 2010-07-05 16:05:29 CEST LOG: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'tile_index' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null 2010-07-05 16:05:30 CEST LOG: statement: select "tile_timestamp","tile_filepath",encode(AsBinary(force_collection(force_2d("tile_geom")),'NDR'),'base64') as geom,"oid" from tile_index where tile_geom && GeomFromText('POLYGON((-126 24,-126 50,-66 50,-66 24,-126 24))',find_srid('','tile_index','tile_geom')) and (date_trunc('second', tile_timestamp) = '2004-01-01T10:10:00Z') and (date_trunc('second', tile_timestamp) = '2004-01-01T10:10:00Z') 2010-07-05 16:05:30 CEST LOG: statement: select "image_time",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom,"oid" from satellite where the_geom && GeomFromText('POLYGON((-2639868.99029283 -2322020.83542886,-2639868.99029283 1072412.78850334,3408818.1364184 1072412.78850334,3408818.1364184 -2322020.83542886,-2639868.99029283 -2322020.83542886))',find_srid('','satellite','the_geom')) and (date_trunc('second', image_time) = '2007-05-11T10:00:00') 2010-07-05 16:05:30 CEST LOG: statement: select "image_time","image_path",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom,"oid" from satellite where the_geom && GeomFromText('POLYGON((-126 24,-126 50,-66 50,-66 24,-126 24))',find_srid('','satellite','the_geom')) and (date_trunc('second', image_time) = '2007-05-11T10:00:00') mapserver [Mon Jul 5 16:44:46 2010].254344 msPostGISLayerWhichShapes query: select "image_time",encode(AsBinary(force_colle ction(force_2d("the_geom")),'NDR'),'base64') as geom,"oid" from satellite where the_geom && GeomFromText('POLYGON( (-2639868.99029283 -2322020.83542886,-2639868.99029283 1072412.78850334,3408818.1364184 1072412.78850334,3408818.1 364184 -2322020.83542886,-2639868.99029283 -2322020.83542886))',find_srid('','satellite','the_geom')) and (date_tr unc('second', image_time) = '2007-05-11T11:00:00') [Mon Jul 5 16:44:46 2010].352763 msPostGISLayerWhichShapes query status: 2 [Mon Jul 5 16:44:46 2010].352796 msPostGISLayerWhichShapes got 1 records in result. [Mon Jul 5 16:44:46 2010].352817 msPostGISLayerNextShape called. [Mon Jul 5 16:44:46 2010].352835 msPostGISReadShape called. [Mon Jul 5 16:44:46 2010].352858 msPostGISReadShape: [image_time] "2007-05-11 11:00:00" the same above but with "&mode=map" will have the same behavior than the first url, show always the first image when you put seconds in the url postgresql recives a query with date_trunc('second', image_time) , If put only minute date_trunc('minute', image_time), it seems that mapserver detect what kind of time parameter is. It's so tricky this mapserver :/ , thanks daryl & alexander 2010/7/3 Alexander Petkov > I suggest that you carefully inspect your definitions in your mapfile, > as well as the data in the Postgis DB itself. > Turn debugging on, and inspect the log file closely. > Also, if you already haven't, enable PostgreSQL logging, inspect > incoming requests to your database as well. > > For example, one inconsistency that is evident from your map file is > the date format--the "wms_timeextent" item for the "sat_w" layer > contains a date range, while your Postgis data also has a timestamp > data type with HH24:MI data. I would eliminate those inconsistensies > first. > > List each time step individually (comma separated) in your mapfile , > since your number of records for the time being is small, rather than > specifying a date range. > > Again, do not be shy about inspecting the log files. Randomly trying > "a lot of combinations", as well as different Mapserver versions > hoping that something will work will likely not help. > > Alex > > On Fri, Jul 2, 2010 at 6:20 AM, rai 8 wrote: > >> Could you provide an example URL you are using to test out the WMS-T? I > >> am using WMS-T on 5.6.3 without any known issues. Please note that if > your > >> time table gets very large, you may hit this quirk: > > > > I am using URL like: > > > http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/map_directory/tile_time_2.map&layer=radar&layer=time_idx_pg&mode=map&TIME=2004-01-01T10:10:00 > > > > It shows an image but always the first -> > > /home/vbox/Downloads/animacio/sat1.tif , that have the timestamp: > 2007-05-11 > > 10:00Z > > > > My table its very little, I was wrong about the version, is the 5.4.2, > i'll > > try to do the same with the 5.6 but it's very strange that any > configuration > > that I tried doesn't work. > > > >> need to be in the METADATA section of the "sat_w" layer. > > > > I tried a lot of combinations, also with all the metadata in sat_w like > > "official" tutorial > > > > > > thanks a lot! > > > > > > > > > > 2010/7/1 Alexander Petkov > >> > >> On Thu, Jul 1, 2010 at 6:27 AM, rai 8 wrote: > >> > Hello, > >> > > >> > I've been working with mapserver to get a map with time support, time > >> > parameter, I followed the tutorial in documetation > >> > http://mapserver.org/ogc/wms_time.html and this post > >> > > >> > > http://osgeo-org.1803224.n2.nabble.com/Accessing-images-using-time-dimension-td1991324.html#a1991324 > >> > and I can't run the mapserver to change the image with a time > parameter. > >> > > >> > I test several configurations but any works, the last is the same like > >> > the > >> > post in the maillist, this is what i've done: > >> > > >> > in a postgis database > >> > > >> > create table satellite (image_path text, image_time timestamp); > >> > select AddGeometryColumn('satellite', 'the_geom', 4326, 'POLYGON', 2); > >> > > >> > insert into satellite (image_path, image_time, the_geom) > >> > values ('/home/vbox/Downloads/animacio/sat1.tif', '2007-05-11 10:00Z', > >> > GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 > >> > 75.55, > >> > -31.82 75.55))', 4326)); > >> > > >> > insert into satellite (image_path, image_time, the_geom) > >> > values ('/home/vbox/Downloads/animacio/sat2.tif', '2007-05-11 11:00Z', > >> > GeomFromText('POLYGON((-31.82 75.55, -31.82 26.5, 51.31 26.5,51.31 > >> > 75.55, > >> > -31.82 75.55))', 4326)); > >> > > >> > > >> > and the map file: > >> > > >> > LAYER > >> > NAME "time_w" > >> > TYPE POLYGON > >> > STATUS ON > >> > CONNECTIONTYPE POSTGIS > >> > CONNECTION "dbname=tile_index host=127.0.0.1 user=postgres > >> > password=xxxxxx" > >> > DATA "the_geom from satellite using unique oid using srid = > 4326" > >> > METADATA > >> > "wms_title" "time_index_w" > >> > "wms_srs" "EPSG:4326" > >> > "wms_timeextent" "2007-01-01/2007-12-31" > >> > "wms_timedefault" "2007-05-11T11:00:00Z" > >> > "wms_timeitem" "image_time" #a column in postgis table of > >> > type > >> > END > >> > END > >> > > >> > LAYER > >> > NAME "sat_w" > >> > STATUS ON > >> > TYPE RASTER > >> > METADATA > >> > "wms_title" "Satellite" > >> > "wms_timeextent" "2007-01-01/2007-12-31" > >> > END > >> > PROJECTION > >> > "init=epsg:4326" > >> > END > >> > TILEINDEX "time_w" # Layer name containing time index > >> > TILEITEM "image_path" # DB column containing path to image > >> > END > >> > > >> > > >> > anyone finds some error? > >> > > >> > > >> > thanks > >> > >> The time-related metadata items: > >> > >> "wms_timeextent" "2007-01-01/2007-12-31" > >> "wms_timedefault" "2007-05-11T11:00:00Z" > >> "wms_timeitem" "image_time" #a column in postgis table of type > >> > >> > >> need to be in the METADATA section of the "sat_w" layer. > >> > >> Alex > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ltrevinoh at gmail.com Mon Jul 5 08:36:07 2010 From: ltrevinoh at gmail.com (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Mon, 5 Jul 2010 10:36:07 -0500 Subject: [mapserver-users] Re: How to get full extent of the map? In-Reply-To: References: <1278087967602-5248342.post@n2.nabble.com> <1278137021197-5250366.post@n2.nabble.com> Message-ID: If you're reading from Postgres, you can use de Extent function of postgis. something like: SELECT EXTENT(*geo_field*)) FROM *geotable * and you'll get de bbox. * * and you can also use de expand function to retrive the bbox expanded in all directions by an amount specified in the sql. take a look at. *http://postgis.refractions.net/documentation/manual-1.3/ch06.html* * * *Regards,* *Luis * 2010/7/3 Rahkonen Jukka > Hi, > > Sorry, I do not make code, but you should make your application to send the > getCapabilities request like > > http://localhost/cgi-bin/mapserv.exe?service=WMS&version=1.1.0&request=getCapabilities&map=c > :\ms4w\osm-mapserver.map > > and capture the extents from the returned document which will have this > kind of sections for each layer > > > landuse_layer5 > > landuse_layer5 > EPSG:3067 > maxx="7.18554e+205" maxy="90" /> > minx="-3.40282e+038" miny="-3.40282e+038" > maxx="3.40282e+038" maxy="3.40282e+038" /> > > > > Please notice that the both bounding boxes in this example are nonsense and > I should obviously check my mapfile for correcting them. > > > -Jukka Rahkonen- > > > > Kiran Bandal wrote: > > > Hi, > > > Thanks for the reply. > > > Just to let you know, I am reading my vector data from PostgreSQL. So, > can I > use WMS GetCapabities request in that case. > > > It would be really helpful if you can paste any sample code for that if > you > have any. > > > Thanks and regards, > > Kiran. > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/How-to-get-full-extent-of-the-map-tp5248342p5250366.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kiranbandal at gmail.com Mon Jul 5 21:24:42 2010 From: kiranbandal at gmail.com (Kiran Bandal) Date: Mon, 5 Jul 2010 21:24:42 -0700 (PDT) Subject: [mapserver-users] Re: How to get full extent of the map? In-Reply-To: References: <1278087967602-5248342.post@n2.nabble.com> <1278137021197-5250366.post@n2.nabble.com> Message-ID: <1278390282742-5258693.post@n2.nabble.com> Hi Luis, Thanks for your brilliant idea. I think that should help me definitely. I would try it and let you know my results. Thanks once again. Regards, Kiran. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-full-extent-of-the-map-tp5248342p5258693.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Mon Jul 5 21:39:48 2010 From: punk.kish at gmail.com (P Kishor) Date: Mon, 5 Jul 2010 23:39:48 -0500 Subject: [mapserver-users] creating views/queries on the fly Message-ID: This started of as a QGIS question, but I am finding it impossible to register for the QGIS forums, so I am asking on the MapServer list, as this is going to evolve into a MapServer question as well. I want to query a PostGIS db with arbitrary queries -- views that join spatial and non-spatial tables. However, the permutations of these queries are too many to predefine them as views. As far as I can tell, QGIS does not allow me to create views/queries on the fly. It can only connect to an already defined view, which I can then further filter, but it can't actually let me create a view. So, what is the best way to go about doing this with MapServer? Oh, and if someone could kindly shed light on QGIS's capabilities in this regard, well, that would be gravy. Many thanks, -- 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 ======================================================================= From Jukka.Rahkonen at mmmtike.fi Tue Jul 6 00:00:34 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 6 Jul 2010 10:00:34 +0300 Subject: [mapserver-users] creating views/queries on the fly References: Message-ID: Hi, Perhaps defining layer DATA so that it includes variables could help you? Your client should then send the variables with the requests, like &key=xxx&value=yyy. If you do not need a service based solution, OpenJUMP is very good tool for making arbitrary database queries. It supports PostGIS out-of-the-box and also Oracle and Spatialite with DB Query plugin. -Jukka Rahkonen- P Kishor wrote: > This started of as a QGIS question, but I am finding it impossible to register for the QGIS forums, so I am asking on the MapServer list, as this is going to evolve into a MapServer question as well. > I want to query a PostGIS db with arbitrary queries -- views that join spatial and non-spatial tables. However, the permutations of these queries are too many to predefine them as views. As far as I can tell, QGIS does not allow me to create views/queries on the fly. It can only connect to an already defined view, which I can then further filter, but it can't actually let me create a view. > So, what is the best way to go about doing this with MapServer? Oh, and if someone could kindly shed light on QGIS's capabilities in this regard, well, that would be gravy. > Many thanks, From max1000 at gmail.com Tue Jul 6 02:22:44 2010 From: max1000 at gmail.com (rai 8) Date: Tue, 6 Jul 2010 11:22:44 +0200 Subject: [mapserver-users] TIme support on mapserver 5.6.3, it's working? In-Reply-To: References: Message-ID: hello, I discovered a bit more about how the things works, but I'm little confusing with this... with this url http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=time_w,sat_w&WIDTH=800&HEIGHT=400&FORMAT=image/png&TRANSPARENT=false&srs=EPSG:4326&BBOX=-126,24,-66,50&TIME=2007-05-11T10:00:00 looking to log I found two querys to database, the first from tile_w layer has a correct result if you check in postgresql directly, also in mapserver log says that got 1 record in the result. I changed 'find_srid('','satellite','the_geom'))' that appears in log by '4326' because in postgresql seems that it doesn't work. select "image_time", encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom, "oid" from satellite where the_geom && GeomFromText('POLYGON((-2639868.99029283 -2322020.83542886,-2639868.99029283 1072412.78850334,3408818.1364184 1072412.78850334,3408818.1364184 -2322020.83542886,-2639868.99029283 -2322020.83542886))', 4326 ) and (date_trunc('second', image_time) = '2007-05-11T10:00:00') the other query from sat_w layer has no results, note that the polygon parameter has the same points as the url select "image_time", encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom, "oid" 2 from satellite where the_geom && GeomFromText('POLYGON((-126 24,-126 50,-66 50,-66 24,-126 24))',4326) and (date_trunc('second', image_time) = '2007-05-11T10:00:00') with this url log says that 1 result have been found in both querys, it's the same but changing the points of the bounding box, but it doesn't show any image, I think that the problem is in the coordinates or the projection used, in mapfile or in url.. I'll try to change something :) http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=time_w,sat_w&WIDTH=1000&HEIGHT=600&FORMAT=image/png&TRANSPARENT=false&srs=EPSG:4326&BBOX=-2639868.99029283,-2322020.83542886,3408818.1364184,1072412.78850334&TIME=2007-05-11T10:00:00 [Tue Jul 6 10:49:01 2010].865473 msPostGISLayerWhichShapes query: select "image_time","image_path",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom,"oid" from satellite where the_geom && GeomFromText('POLYGON((-2639868.99029283 -2322020.83542886,-2639868.99029283 1072412.78850334,3408818.1364184 1072412.78850334,3408818.1364184 -2322020.83542886,-2639868.99029283 -2322020.83542886))',find_srid('','satellite','the_geom')) and (date_trunc('second', image_time) = '2007-05-11T10:00:00') [Tue Jul 6 10:49:01 2010].929571 msPostGISLayerWhichShapes query status: 2 [Tue Jul 6 10:49:01 2010].929611 msPostGISLayerWhichShapes got 1 records in result. [Tue Jul 6 10:49:01 2010].929632 msPostGISLayerNextShape called. [Tue Jul 6 10:49:01 2010].929651 msPostGISReadShape called. [Tue Jul 6 10:49:01 2010].929675 msPostGISReadShape: [image_time] "2007-05-11 10:00:00" [Tue Jul 6 10:49:01 2010].929694 msPostGISReadShape: [image_path] "/home/vbox/Downloads/animacio/sat1.tif" thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Tue Jul 6 01:58:52 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 06 Jul 2010 10:58:52 +0200 Subject: [mapserver-users] creating views/queries on the fly In-Reply-To: References: Message-ID: <4C32F04C.5080909@uva.nl> Hi Puneet, Would a scripting language, like Pl/Pgsql, be something to tackle your problem? It lets you build dynamic commands: http://www.postgresql.org/docs/8.4/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN. I have also used PHP to build dynamic SQL queries, but I don't know if you can use that in your environment. I access those PHP-scripts in QGis by writing out the mapping results as WMS services (http://mapserver.org/ogc/mapscript.html). You could also try Pl/Python from within Postgresql (http://www.postgresql.org/docs/8.4/interactive/plpython.html)l. I've never used it, but it's syntactically certainly more flexible than Pl/Pgsql. Or even Pl/Perl, if your inclinations lie in that direction :-) Jan On 07/06/10 06:39, P Kishor wrote: > This started of as a QGIS question, but I am finding it impossible to > register for the QGIS forums, so I am asking on the MapServer list, as > this is going to evolve into a MapServer question as well. > > I want to query a PostGIS db with arbitrary queries -- views that join > spatial and non-spatial tables. However, the permutations of these > queries are too many to predefine them as views. As far as I can tell, > QGIS does not allow me to create views/queries on the fly. It can only > connect to an already defined view, which I can then further filter, > but it can't actually let me create a view. > > So, what is the best way to go about doing this with MapServer? Oh, > and if someone could kindly shed light on QGIS's capabilities in this > regard, well, that would be gravy. > > Many thanks, > > From max1000 at gmail.com Tue Jul 6 02:42:03 2010 From: max1000 at gmail.com (rai 8) Date: Tue, 6 Jul 2010 11:42:03 +0200 Subject: [mapserver-users] TIme support on mapserver 5.6.3, it's working? In-Reply-To: References: Message-ID: It works!!!!!!!!!!!!!!!! yeahhhhhhhhhhhh I changed the EXTENT in the beginnig "EXTENT 199949.651166 -371954.772084 1472121.6862 632767.19157" by "EXTENT -180 -90 180 90" and also in the url and now it works MAP IMAGETYPE PNG24 EXTENT -180 -90 180 90 SIZE 400 300 CONFIG "MS_ERRORFILE" "/var/log/mapserver/mapserver.log" PROJECTION "init=epsg:4326" END # End of the output Projection definition --- LAYER NAME "time_w" TYPE POLYGON STATUS ON DEBUG 3 CONNECTIONTYPE POSTGIS CONNECTION "dbname=tile_index host=127.0.0.1 user=postgres password=xxxxxx" DATA "the_geom from satellite using unique oid using srid = 4326" METADATA "wms_title" "time_index_w" "wms_srs" "EPSG:4326" "wms_timeextent" "2007-01-01/2007-12-31" # "wms_timeextent" "2007-05-11T10:00:00Z,2007-05-11T11:00:00Z" "wms_timedefault" "2007-05-11T10:00:00Z" "wms_timeitem" "image_time" #a column in postgis table of type END END LAYER NAME "sat_w" STATUS ON DEBUG 3 TYPE RASTER METADATA "wms_title" "Satellite" "wms_timeextent" "2007-01-01/2007-12-31" # "wms_extent" "-126 24 -66 50" "wms_extent" "-180 -90 180 90" END PROJECTION "init=epsg:4326" END TILEINDEX "time_w" # Layer name containing time index TILEITEM "image_path" # DB column containing path to image END END http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=time_w,sat_w&WIDTH=800&HEIGHT=400&FORMAT=image/png&TRANSPARENT=false&srs=EPSG:4326&BBOX=-180,-90,180,90&TIME=2007-05-11T10:00:00 thanks. 2010/7/6 rai 8 > hello, > > I discovered a bit more about how the things works, but I'm little > confusing with this... > > > with this url > > http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=time_w,sat_w&WIDTH=800&HEIGHT=400&FORMAT=image/png&TRANSPARENT=false&srs=EPSG:4326&BBOX=-126,24,-66,50&TIME=2007-05-11T10:00:00 > > > looking to log I found two querys to database, the first from tile_w layer > has a correct result if you check in postgresql directly, also in mapserver > log says that got 1 record in the result. I changed > 'find_srid('','satellite','the_geom'))' that appears in log by '4326' > because in postgresql seems that it doesn't work. > > > select > "image_time", > encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') > as geom, > "oid" > from satellite > where > the_geom && > GeomFromText('POLYGON((-2639868.99029283 > -2322020.83542886,-2639868.99029283 1072412.78850334,3408818.1364184 > 1072412.78850334,3408818.1364184 -2322020.83542886,-2639868.99029283 > -2322020.83542886))', 4326 ) and (date_trunc('second', image_time) = > '2007-05-11T10:00:00') > > the other query from sat_w layer has no results, note that the polygon > parameter has the same points as the url > > select > "image_time", > encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') > as geom, > "oid" 2 > > from satellite > where > the_geom && > GeomFromText('POLYGON((-126 24,-126 50,-66 50,-66 24,-126 24))',4326) > and (date_trunc('second', image_time) = '2007-05-11T10:00:00') > > > > > with this url log says that 1 result have been found in both querys, it's > the same but changing the points of the bounding box, but it doesn't show > any image, I think that the problem is in the coordinates or the projection > used, in mapfile or in url.. I'll try to change something :) > > > > http://mapserver-tutorial/cgi-bin/mapserv?map=/home/vbox/Downloads/mapserver-tutorial/ms4w/apps/tutorial/htdocs/tile_time.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=time_w,sat_w&WIDTH=1000&HEIGHT=600&FORMAT=image/png&TRANSPARENT=false&srs=EPSG:4326&BBOX=-2639868.99029283,-2322020.83542886,3408818.1364184,1072412.78850334&TIME=2007-05-11T10:00:00 > > [Tue Jul 6 10:49:01 2010].865473 msPostGISLayerWhichShapes query: select > "image_time","image_path",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') > as geom,"oid" from satellite where the_geom && > GeomFromText('POLYGON((-2639868.99029283 -2322020.83542886,-2639868.99029283 > 1072412.78850334,3408818.1364184 1072412.78850334,3408818.1364184 > -2322020.83542886,-2639868.99029283 > -2322020.83542886))',find_srid('','satellite','the_geom')) and > (date_trunc('second', image_time) = '2007-05-11T10:00:00') > [Tue Jul 6 10:49:01 2010].929571 msPostGISLayerWhichShapes query status: 2 > [Tue Jul 6 10:49:01 2010].929611 msPostGISLayerWhichShapes got 1 records > in result. > [Tue Jul 6 10:49:01 2010].929632 msPostGISLayerNextShape called. > [Tue Jul 6 10:49:01 2010].929651 msPostGISReadShape called. > [Tue Jul 6 10:49:01 2010].929675 msPostGISReadShape: [image_time] > "2007-05-11 10:00:00" > [Tue Jul 6 10:49:01 2010].929694 msPostGISReadShape: [image_path] > "/home/vbox/Downloads/animacio/sat1.tif" > > > > thanks! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mani2604 at gmail.com Tue Jul 6 04:34:34 2010 From: mani2604 at gmail.com (mani2604) Date: Tue, 6 Jul 2010 04:34:34 -0700 (PDT) Subject: [mapserver-users] How to draw custom rectangles with bounding box coordinates Message-ID: <1278416074781-5259886.post@n2.nabble.com> Hi everyone... Well i am using phpmapscript with mapserver. Well I need to draw custom rectangles on the extent of the map with the user-defined BBOX coordinates.. I mean the way I was able to query the map with the BBOX coordiantes, I need to represent that part of the map with the custom rectangle ala the screenshots below. So I was hoping anyone over here could provide me an insight of how I may proceed to achieve this... Do I need work on javascript for the customization?!! Thanks.... SCREENSHOT:- http://osgeo-org.1803224.n2.nabble.com/file/n5259886/custrect.bmp custrect.bmp -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-draw-custom-rectangles-with-bounding-box-coordinates-tp5259886p5259886.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thlin.box at gmail.com Tue Jul 6 04:51:39 2010 From: thlin.box at gmail.com (easyl) Date: Tue, 6 Jul 2010 04:51:39 -0700 (PDT) Subject: [mapserver-users] Render S-57 layers? especially SOUNDING. Message-ID: <1278417099875-5259930.post@n2.nabble.com> I have a large amount of S-57 files. How can I efficiently set them up in MapServer? I am trying using ogr2ogr to convert S-57 to Shapefile and to merge those shapes with the same S-57 layer and same geometry type together. One problem is how can I map the type correctly between S-57 / shapfile / mapserver? the types supported by OGR are: NONE, GEOMETRY, POINT, LINESTRING, POLYGON, GEOMETRYCOLLECTION, MULTIPOINT, MULTIPOLYGON or MULTILINESTRING. and by MapServer: TYPE [point|line|polygon|circle|annotation|raster|query|chart] Running ogrinfo on a S-57 file: > ogrinfo XXXXXXXXX.000 1: DSID (None) 2: ADMARE (Polygon) 4: BCNCAR (Point) 15: CBLSUB (Line String) 50: SOUNDG (3D Multi Point) Especially the SOUNDG with "3D Multi Point". How should I map it in MapServer? thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Render-S-57-layers-especially-SOUNDING-tp5259930p5259930.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kiranbandal at gmail.com Tue Jul 6 05:28:16 2010 From: kiranbandal at gmail.com (Kiran Bandal) Date: Tue, 6 Jul 2010 05:28:16 -0700 (PDT) Subject: [mapserver-users] Re: How to get full extent of the map? In-Reply-To: <1278390282742-5258693.post@n2.nabble.com> References: <1278087967602-5248342.post@n2.nabble.com> <1278137021197-5250366.post@n2.nabble.com> <1278390282742-5258693.post@n2.nabble.com> Message-ID: <1278419296458-5260043.post@n2.nabble.com> Hi Luis, It worked great. Thanks a lot for very elegant solution. I just queried the layer using your SQL and it returned me the string something like BOX(72.6303329467773 17.8568286895752,73.7989807128906 20.2300205230713). I had to manipulate that string and extract the coordinates. Thanks once again for your suggestion. Regards, Kiran. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-get-full-extent-of-the-map-tp5248342p5260043.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Tue Jul 6 05:44:02 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 6 Jul 2010 07:44:02 -0500 Subject: [mapserver-users] How to draw custom rectangles with bounding box coordinates In-Reply-To: <1278416074781-5259886.post@n2.nabble.com> References: <1278416074781-5259886.post@n2.nabble.com> Message-ID: MapServer doesn't have a bbox shape type you can draw from so you'd need to turn the bounding boxes into true polygons and draw them that way. That's just a matter of feeding the bbox corners in the right order. MapScript has a toPolygon method for rects that should make that easy. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of mani2604 [mani2604 at gmail.com] Sent: Tuesday, July 06, 2010 6:34 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to draw custom rectangles with bounding box coordinates Hi everyone... Well i am using phpmapscript with mapserver. Well I need to draw custom rectangles on the extent of the map with the user-defined BBOX coordinates.. I mean the way I was able to query the map with the BBOX coordiantes, I need to represent that part of the map with the custom rectangle ala the screenshots below. So I was hoping anyone over here could provide me an insight of how I may proceed to achieve this... Do I need work on javascript for the customization?!! Thanks.... SCREENSHOT:- http://osgeo-org.1803224.n2.nabble.com/file/n5259886/custrect.bmp custrect.bmp -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-draw-custom-rectangles-with-bounding-box-coordinates-tp5259886p5259886.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Tue Jul 6 07:27:07 2010 From: punk.kish at gmail.com (P Kishor) Date: Tue, 6 Jul 2010 09:27:07 -0500 Subject: [mapserver-users] creating views/queries on the fly In-Reply-To: <4C32F04C.5080909@uva.nl> References: <4C32F04C.5080909@uva.nl> Message-ID: On Tue, Jul 6, 2010 at 3:58 AM, Jan Hartmann wrote: > Hi Puneet, > > Would a scripting language, like Pl/Pgsql, be something to tackle your > problem? It lets you build dynamic commands: > http://www.postgresql.org/docs/8.4/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN. > > I have also used PHP to build dynamic SQL queries, but I don't know if you > can use that in your environment. I access those PHP-scripts in QGis by > writing out the mapping results as WMS services > (http://mapserver.org/ogc/mapscript.html). > > You could also try Pl/Python from ?within Postgresql > (http://www.postgresql.org/docs/8.4/interactive/plpython.html)l. I've never > used it, but it's syntactically certainly more flexible than Pl/Pgsql. Or > even Pl/Perl, if your inclinations lie in that direction :-) Yes, my preference is PL/Perl, but I am not sure how that would help? What are you suggesting? Are you saying that I created services out of the queries I want, and then access those services from within QGIS, MapServer? My problem is that all the potential queries are dynamic, but, thankfully they are predictable. In pseudo SQL there are SELECT g.id, g.the_geom, a.attribute1 attrib FROM g JOIN a ON g.id = a.id WHERE a.id IN ( SELECT g1.id FROM g g1 WHERE ) There are two things are variable in the above query - 'attrib' could be 'a.attribute1' or 'a.attribute2', and so on. - The '' would change. So, the user will be able say, "Give me a map of attribute for ," and get a map back. Oh, and one more thing.. 'a' table could also change (this part is experimental -- more on it in a bit). It could be 'a1 a' or 'a2 a', and so on (note, a1, a2 have not corresponding mapping with attribute1, attribute2). The reason the 'a' table would/could change is that I am experimenting with table partitioning in Pg. I have a master table from which there are many inherited tables. Ideally, Pg is supposed to take care of funneling the query to the correct inherited table based on the CHECK rules, but if I ascertain that querying the correct table directly results in some speed gain, I might go that route. > > Jan > > On 07/06/10 06:39, P Kishor wrote: >> >> This started of as a QGIS question, but I am finding it impossible to >> register for the QGIS forums, so I am asking on the MapServer list, as >> this is going to evolve into a MapServer question as well. >> >> I want to query a PostGIS db with arbitrary queries -- views that join >> spatial and non-spatial tables. However, the permutations of these >> queries are too many to predefine them as views. As far as I can tell, >> QGIS does not allow me to create views/queries on the fly. It can only >> connect to an already defined view, which I can then further filter, >> but it can't actually let me create a view. >> >> So, what is the best way to go about doing this with MapServer? Oh, >> and if someone could kindly shed light on QGIS's capabilities in this >> regard, well, that would be gravy. >> >> Many thanks, >> >> > -- 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 ======================================================================= From MarkVolz at co.lyon.mn.us Tue Jul 6 09:10:48 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 6 Jul 2010 11:10:48 -0500 Subject: [mapserver-users] Mr Sid vs ECW Message-ID: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> Hello, Which format is faster ECW or Mr Sid for a large image? P.S. I don't think I will be able to use a tile cache for the application I am developing. Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mendick at pictometry.com Tue Jul 6 09:13:21 2010 From: matt.mendick at pictometry.com (mattmendick) Date: Tue, 6 Jul 2010 09:13:21 -0700 (PDT) Subject: [mapserver-users] Re: Mr Sid vs ECW In-Reply-To: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> Message-ID: <1278432801326-5261172.post@n2.nabble.com> I've never tested them side-by-side but my coworkers claim ECW is faster than MrSid. Sorry I don't have any numbers for you. I've been using ECW though and it's pretty great, performance-wise for big images. -Matt Mendick -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mr-Sid-vs-ECW-tp5261163p5261172.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Jul 6 09:27:33 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 06 Jul 2010 13:27:33 -0300 Subject: [mapserver-users] Mr Sid vs ECW In-Reply-To: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> Message-ID: <4C335975.5060107@gatewaygeomatics.com> Mark Volz wrote: > Hello, > > Which format is faster ECW or Mr Sid for a large image? P.S. I don?t > think I will be able to use a tile cache for the application I am > developing. > Hi Mark, Although those formats might be high compression, for MapServer I still rely heavily on GeoTIFFs with overviews for rasters (you don't have to worry about license or custom compile/build issues, making it very portable). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bfraser at geoanalytic.com Tue Jul 6 10:29:42 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 06 Jul 2010 11:29:42 -0600 Subject: [mapserver-users] Mr Sid vs ECW In-Reply-To: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> Message-ID: <4C336806.9030100@geoanalytic.com> Mark, These days disk space is easier to come by than time, in general. As Jeff points out, GeoTiff is fast (especially if you use TILEINDEX and MAX/MINSCALEDENOM layers for pyramid/overviews). But GeoTiffs tend to take up 10 to 20 times the amount of disk space of ECWs though... Is there any particular reason not to use tiles (e.g TMS)? Brent Fraser Mark Volz wrote: > Hello, > > Which format is faster ECW or Mr Sid for a large image? P.S. I don?t > think I will be able to use a tile cache for the application I am > developing. > > Thanks > > Mark Volz > > GIS Specialist > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Jul 6 10:38:01 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 6 Jul 2010 12:38:01 -0500 Subject: [mapserver-users] Sol Katz Award for Geospatial Free and Open Source Software - Call for Nominations Message-ID: The Open Source Geospatial Foundation would like to open nominations for the 2010 Sol Katz Award for Geospatial Free and Open Source Software. The Sol Katz Award for Geospatial Free and Open Source Software (GFOSS) will be given to individuals who have demonstrated leadership in the GFOSS community. Recipients of the award will have contributed significantly through their activities to advance open source ideals in the geospatial realm. Sol Katz was an early pioneer of GFOSS and left behind a large body of work in the form of applications, format specifications, and utilities while at the U.S. Bureau of Land Management. This early GFOSS archive provided both source code and applications freely available to the community. Sol was also a frequent contributor to many geospatial list servers, providing much guidance to the geospatial community at large. Sol unfortunately passed away in 1999 from Non-Hodgkin's Lymphoma, but his legacy lives on in the open source world. Those interested in making a donation to the American Cancer Society, as per Sol's family's request, can do so at https://www.cancer.org/involved/donate/donateonlinenow/index. Nominations for the Sol Katz Award should be sent to SolKatzAward at osgeo.org with a description of the reasons for this nomination. Nominations will be accepted until 23:59 UTC on August 20th (http://www.timeanddate.com/worldclock/fixedtime.html?month=8&day=20&year=2010&hour=23&min=59&sec=59). A recipient will be decided from the nomination list by an OSGeo designated selection committee. The winner of the Sol Katz Award for Geospatial Free and Open Source Software will be announced on September 9th at the FOSS4G 2010 conference (http://2010.foss4g.org/) closing plenary in Barcelona, Spain. The hope is that the award will both acknowledge the work of community members, and pay tribute to one of its founders, for years to come. It should be noted that past awardees and selection committee members are not eligible. Past Awardees: 2009: Daniel Morissette 2008: Paul Ramsey 2007: Steve Lime 2006: Markus Neteler 2005: Frank Warmerdam Selection Committee: Jeff McKenna (chair) Daniel Morissette Frank Warmerdam Markus Neteler Steve Lime Paul Ramsey Sophia Parafina -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Tue Jul 6 12:55:42 2010 From: andy at squeakycode.net (Andy Colson) Date: Tue, 06 Jul 2010 14:55:42 -0500 Subject: [mapserver-users] Mr Sid vs ECW In-Reply-To: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD098010948E20F@llmhs02.r8nssis.local> Message-ID: <4C338A3E.7030402@squeakycode.net> On 7/6/2010 11:10 AM, Mark Volz wrote: > Hello, > > Which format is faster ECW or Mr Sid for a large image? P.S. I don?t > think I will be able to use a tile cache for the application I am > developing. > > Thanks > > Mark Volz > > GIS Specialist > Go with ECW. If you have huge CPU power you may not notice, but I run my maps on AMD64 X2 3800+. Most of the time the cpu sits around 5-10%, but MrSID uses huge amounts of cpu to uncompress. Its noticeably slower. ECW will be a little bit bigger on disk, but does not use much at all for CPU to uncompress. MrSID is even worse when you have a frontend (like OpenLayers) request tiles... it'll request two or three smaller tiles at a time. My dual core was just pegged with requests. Switching to ECW is smooth, regardless whether your frontend requests one big image or many small. I can recommend Global Mapper as an image converter. I had several gigabytes of MrSid split into thousands of files, and GM converted it into one single ECW, several gigabyes in size. -Andy From mani2604 at gmail.com Wed Jul 7 01:39:11 2010 From: mani2604 at gmail.com (mani2604) Date: Wed, 7 Jul 2010 01:39:11 -0700 (PDT) Subject: [mapserver-users] RE: How to draw custom rectangles with bounding box coordinates In-Reply-To: References: <1278416074781-5259886.post@n2.nabble.com> Message-ID: <1278491951591-5264171.post@n2.nabble.com> Thanks for the reply... Now i wanna know if this is a sane idea... I wanna construct and save the Geometry of polygons/rectangles from BBOX coodinates in POSTGIS and When pass on a query I wanna retrieve those rectangles and overlay them on the mapserver basemap dynamically..... Plz do comment on this......!!@ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-draw-custom-rectangles-with-bounding-box-coordinates-tp5259886p5264171.html Sent from the Mapserver - User mailing list archive at Nabble.com. From j.l.h.hartmann at uva.nl Wed Jul 7 03:24:57 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 07 Jul 2010 12:24:57 +0200 Subject: [mapserver-users] creating views/queries on the fly In-Reply-To: References: <4C32F04C.5080909@uva.nl> Message-ID: <4C3455F9.7060604@uva.nl> On 07/06/10 16:27, P Kishor wrote: > Yes, my preference is PL/Perl, but I am not sure how that would help? > What are you suggesting? Are you saying that I created services out of > the queries I want, and then access those services from within QGIS, > MapServer? > > My problem is that all the potential queries are dynamic, but, > thankfully they are predictable. In pseudo SQL there are > > SELECT g.id, g.the_geom, a.attribute1 attrib > FROM g JOIN a ON g.id = a.id > WHERE a.id IN ( > SELECT g1.id FROM g g1 WHERE > ) > > There are two things are variable in the above query > - 'attrib' could be 'a.attribute1' or 'a.attribute2', and so on. > - The '' would change. > > So, the user will be able say, "Give me a map of attribute for > ," and get a map back. > > Oh, and one more thing.. 'a' table could also change (this part is > experimental -- more on it in a bit). It could be 'a1 a' or 'a2 a', > and so on (note, a1, a2 have not corresponding mapping with > attribute1, attribute2). > > The reason the 'a' table would/could change is that I am experimenting > with table partitioning in Pg. I have a master table from which there > are many inherited tables. Ideally, Pg is supposed to take care of > funneling the query to the correct inherited table based on the CHECK > rules, but if I ascertain that querying the correct table directly > results in some speed gain, I might go that route. > > In such a situation, I treat the SQL-query as a string in PHP/Perl/Python/PlPGsql and change it with the string operators of those languages. The problem is: how do you get that string into the PostGresql interpreter. With a PHP-based site, you could create some text fields, let the user type in the values of the tables and attributes, and combine them into a valid SQL-command that can be processed with PHP-functions like pg_query. The query returns a map and that map can then be displayed in the browser. With QGis it's not that easy. AFAIK, you can only define *static* WMS or PostGIS layers. Additionally, a PostGIS layer has to be a predefined table or view, not a written-out Select-query. And PostGresql does not have parametrized views (yet), so you cannot change the parameters of a view during run time. I don't think you can do these flexible queries with regular QGis, but perhaps a Python front-end could be written. It's a matter of letting QGis send a string to the Web-Server. After that it's easy. Are you really dependent on QGIS? Else you could use a browser based mapping solution (OpenLayers?) with some text fields to type your query parameters in. The server could send back the results in WMS or even WFS format and the browser would display those. Jan From punk.kish at gmail.com Wed Jul 7 05:50:49 2010 From: punk.kish at gmail.com (P Kishor) Date: Wed, 7 Jul 2010 07:50:49 -0500 Subject: [mapserver-users] creating views/queries on the fly In-Reply-To: <4C3455F9.7060604@uva.nl> References: <4C32F04C.5080909@uva.nl> <4C3455F9.7060604@uva.nl> Message-ID: On Wed, Jul 7, 2010 at 5:24 AM, Jan Hartmann wrote: > > > On 07/06/10 16:27, P Kishor wrote: >> >> Yes, my preference is PL/Perl, but I am not sure how that would help? >> What are you suggesting? Are you saying that I created services out of >> the queries I want, and then access those services from within QGIS, >> MapServer? >> >> My problem is that all the potential queries are dynamic, but, >> thankfully they are predictable. In pseudo SQL there are >> >> SELECT g.id, g.the_geom, a.attribute1 attrib >> FROM g JOIN a ON g.id = a.id >> WHERE a.id IN ( >> ? ? SELECT g1.id FROM g g1 WHERE >> ) >> >> There are two things are variable in the above query >> - 'attrib' could be 'a.attribute1' or 'a.attribute2', and so on. >> - The '' would change. >> >> So, the user will be able say, "Give me a map of attribute ?for >> ," and get a map back. >> >> Oh, and one more thing.. 'a' table could also change (this part is >> experimental -- more on it in a bit). It could be 'a1 a' or 'a2 a', >> and so on (note, a1, a2 have not corresponding mapping with >> attribute1, attribute2). >> >> The reason the 'a' table would/could change is that I am experimenting >> with table partitioning in Pg. I have a master table from which there >> are many inherited tables. Ideally, Pg is supposed to take care of >> funneling the query to the correct inherited table based on the CHECK >> rules, but if I ascertain that querying the correct table directly >> results in some speed gain, I might go that route. >> > > In such a situation, I treat the SQL-query as a string in > PHP/Perl/Python/PlPGsql and change it with the string operators of those > languages. The problem is: how do you get that string into the PostGresql > interpreter. With a PHP-based site, you could create some text fields, let > the user type in the values of the tables and attributes, and combine them > into a valid SQL-command that can be processed with PHP-functions like > pg_query. The query returns a map and that map can then be displayed in the > browser. > > With QGis it's not that easy. AFAIK, you can only define *static* WMS or > PostGIS layers. Additionally, a PostGIS layer has to be a predefined table > or view, not a written-out Select-query. And PostGresql does not have > parametrized views (yet), so you cannot change the parameters of a view > during run time. I don't think you can do these flexible queries with > regular QGis, but perhaps a Python front-end could be written. ?It's a > matter of letting QGis send a string to the Web-Server. After that it's > easy. > > Are you really dependent on QGIS? Else you could use a browser based mapping > solution (OpenLayers?) with some text fields to type your query parameters > in. The server could send back the results in WMS or even WFS format and the > browser would display those. > Ok. Thanks for your suggestions Jan, and thanks to Rahkonen as well. Seems like what I want to do is easier to pull off with MapServer, and that is what I will do. I am not dependent on QGIS, but it is a convenient, quick desktop viewer, and thus, quite useful. There seems to be a Pgquery editor plugin for QGIS, but I can't make head or tail of it, so I am giving up on it. (Sidenote: the QGIS experience is frustrating. The program can do so much, but it does so in its own idiosyncratic, sometimes, seemingly half-baked way. Even registering on the darned forums was an impossibility. Apparently, I couldn't answer the thwart-against-the-bots question correctly, and I certainly couldn't read the almost illegible captcha.) > Jan > -- 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 ======================================================================= From j.l.h.hartmann at uva.nl Wed Jul 7 06:07:08 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 07 Jul 2010 15:07:08 +0200 Subject: [mapserver-users] creating views/queries on the fly In-Reply-To: References: <4C32F04C.5080909@uva.nl> <4C3455F9.7060604@uva.nl> Message-ID: <4C347BFC.4060905@uva.nl> On 07/07/10 14:50, P Kishor wrote: > > (Sidenote: the QGIS experience is frustrating. The program can do so > much, but it does so in its own idiosyncratic, sometimes, seemingly > half-baked way. Even registering on the darned forums was an > impossibility. Apparently, I couldn't answer the > thwart-against-the-bots question correctly, and I certainly couldn't > read the almost illegible captcha.) > > I'm not that negative about QGis, it's quite good and stable as long as you keep within its limits. However, as soon as you try to do something special, its structure turns out to be so complex and inelastic that it gets really difficult to add real new functionality. I have the same impression of OpenLayers and PHP, all very much community directed projects, in which many people do very intelligent things, only the sum of all those intelligent things tends to get more inflexible with every addition. I always liked PostGIS, GDAL, and especially MapServer, for their almost limitless expandability from very simple initial concepts. Jan From bob.b at gritechnologies.com Wed Jul 7 06:30:03 2010 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 07 Jul 2010 08:30:03 -0500 Subject: [mapserver-users] RE: How to draw custom rectangles with bounding box coordinates In-Reply-To: <1278491951591-5264171.post@n2.nabble.com> References: <1278416074781-5259886.post@n2.nabble.com> <1278491951591-5264171.post@n2.nabble.com> Message-ID: <4C34815B.70907@gritechnologies.com> A while back I did this as an experiment to see where users were looking on my server, so I grabbed the BBOX info from the apache logs for all map requests and inserted them into PostGIS, then set up a layer (in GeoMoose) to view them on top of my basemap. Worked like a charm, never automated it, but it would be easy to do it. You would also likely want to limit the total number of polygons i the database to something sane, or over time you would swamp the database with data. Your question was a bit vague on how much detail you were looking for. I don't know you level of experience either. I used PERL to load the DB and MapServer/GeoMoose to handle the display aspects. bobb On 7/7/2010 3:39 AM, mani2604 wrote: > Thanks for the reply... > > Now i wanna know if this is a sane idea... I wanna > construct and save the Geometry of polygons/rectangles from BBOX coodinates > in POSTGIS and When pass on a query I wanna retrieve those rectangles and > overlay them on the mapserver basemap dynamically..... > > Plz do comment on this......!!@ > From thlin.box at gmail.com Wed Jul 7 07:45:11 2010 From: thlin.box at gmail.com (easyl) Date: Wed, 7 Jul 2010 07:45:11 -0700 (PDT) Subject: [mapserver-users] make a color lookup table? Message-ID: <1278513911973-5265616.post@n2.nabble.com> try to render S-57 with MapServer. Since the COLOR attributes in S-57 are encoded with integer. 1 white 2 black 3 red 4 red ....etc How can I smartly set the corresponding color in mapfile LAYER NAME LIGHTS TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "./data/S-57/XXXXX.000" DATA "LIGHTS" PROJECTION "init=epsg:4326" END CLASS STYLE COLOR ??set corresponding color according to [COLOR]?? END END END thanks!! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-a-color-lookup-table-tp5265616p5265616.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pierm4ci at yahoo.it Wed Jul 7 08:44:30 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed, 7 Jul 2010 15:44:30 +0000 (GMT) Subject: [mapserver-users] adding a palette to a greytiff Message-ID: <706699.82874.qm@web28610.mail.ukl.yahoo.com> Hi, I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html I would visualize it with a colour scaled palette. I have write this file.map, but I receive only blank page. MAP ??? NAME??? "prova" ??? CONFIG? "PROJ_LIB" "/usr/share/proj/" ??? STATUS ON ??? SHAPEPATH "./" ??? SIZE 494 531 ??? PROJECTION ??? ??? "init=epsg:4326" ??? END ??? ??? EXTENT -154 -57 26 33 ??? DEBUG 5 ??? ??? WEB??? ??? ??? IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" ??? ??? IMAGEURL "/sviluppo/tmp/" ??? END ??? LAYER ? ??? ??? NAME "tif" ??? ??? DATA "prova.tif" ??? ??? STATUS ON ??? ??? TYPE RASTER ??? ??? OFFSITE 0 0 0 ??? ??? CLASSITEM "[pixel]" ??? ??? CLASS ??? ??? ??? EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 0 255 255 ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? EXPRESSION ([pixel] >= 10 AND [pixel] < 40) ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 0 255 0 ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) ??? ??? ??? STYLE? ??? ??? ??? ??? COLOR 255 255 0 ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? EXPRESSION ([pixel] >= 80 AND [pixel] < 120) ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 255 127 0 ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? EXPRESSION ([pixel] >= 120 AND [pixel] < 150) ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 255 0 0 ??? ??? ? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? EXPRESSION ([pixel] >= 150 AND [pixel] < 200) ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 255 127 255 ??? ??? ??? END ??? ??? END ??? ??? CLASS ??? ??? ??? EXPRESSION ([pixel] >= 200 AND [pixel]<40) ??? ??? ??? STYLE ??? ??? ??? ??? COLOR 0 0 0 ??? ??? ? ??? END ??? ??? END ??? END END Can anyone help me please? I am sorry but I am a beginner. Thanks in advance, Michele. -------------- next part -------------- An HTML attachment was scrubbed... URL: From asi135 at gmail.com Wed Jul 7 10:08:08 2010 From: asi135 at gmail.com (Asif) Date: Thu, 8 Jul 2010 00:08:08 +0700 Subject: [mapserver-users] Help needed for map generation Message-ID: Hi All, I am new to mapserver. I have just configured the ms4w 2.3.1 on my machine. Now I want to generate maps from the postgis database data. any idea how to proceed? please help. Thanks A -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Wed Jul 7 12:19:56 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 07 Jul 2010 14:19:56 -0500 Subject: [mapserver-users] A new (I think) question about Mapfilefiltering. . . In-Reply-To: References: <4C2B4805.163B.00A8.0@ci.stpaul.mn.us><4C2B8FF8.1070100@swoodbridge.com><4C2B4AC5.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <4C348D0C.163B.00A8.0@ci.stpaul.mn.us> James, I went with basically your suggestion. Got it to work nicely. Thanks all. Now on to Railroad Right of Way . . . bobb >>> "James Card" wrote: On Wed, 30 Jun 2010 11:46:46 -0700, Bob Basques wrote: > I'm just trying to paint (with grey coloring) the areas in the City that > are NOT Parcels, or should be considered public Right of way. Our approach to this is to make the background color of the map a light gray color, and make the parcel polygons a light orange, tan, or yellowish color with opacity set to about 50%. If we have a single polygon that represents the city boundary it typically gets a white color. The opacity values of each of these layers gets adjusted if we also have aerial photos to display under them. -- James Card California CAD Solutions, Inc. 209-578-5580 - Voice 209-521-6493 - FAX _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Wed Jul 7 12:29:52 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 7 Jul 2010 13:29:52 -0600 Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: <706699.82874.qm@web28610.mail.ukl.yahoo.com> References: <706699.82874.qm@web28610.mail.ukl.yahoo.com> Message-ID: For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP > NAME "prova" > CONFIG "PROJ_LIB" "/usr/share/proj/" > STATUS ON > SHAPEPATH "./" > SIZE 494 531 > PROJECTION > "init=epsg:4326" > END > EXTENT -154 -57 26 33 > DEBUG 5 > > WEB > IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" > IMAGEURL "/sviluppo/tmp/" > END > > LAYER > NAME "tif" > DATA "prova.tif" > STATUS ON > TYPE RASTER > OFFSITE 0 0 0 > CLASSITEM "[pixel]" > > CLASS > EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) > STYLE > COLOR 0 255 255 > END > END > > CLASS > EXPRESSION ([pixel] >= 10 AND [pixel] < 40) > STYLE > COLOR 0 255 0 > END > END > > CLASS > EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) > STYLE > COLOR 255 255 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 80 AND [pixel] < 120) > STYLE > COLOR 255 127 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 120 AND [pixel] < 150) > STYLE > COLOR 255 0 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 150 AND [pixel] < 200) > STYLE > COLOR 255 127 255 > END > END > > CLASS > EXPRESSION ([pixel] >= 200 AND [pixel]<40) > STYLE > COLOR 0 0 0 > END > END > END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pierm4ci at yahoo.it Wed Jul 7 12:57:31 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed, 7 Jul 2010 19:57:31 +0000 (GMT) Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: Message-ID: <306460.3762.qm@web28613.mail.ukl.yahoo.com> Hi, thanks for help me. 1. Is your file indeed georeferenced? Yes it is georeferenced. 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend.How I have to modify the .map file for add this information? Can you write me an example? 3. Have you got the map file working without the class definitions? I.E get a grayscale map? If I write this file map I have always blank image:MAP NAME "prova" CONFIG ?"PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" SIZE 494 531 PROJECTION? "init=epsg:4326" END EXTENT -154 -57 26 33 DEBUG 5 WEB IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" IMAGEURL "/sviluppo/tmp/" END LAYER?? NAME "tif" DATA "prova.tif" STATUS ON TYPE RASTER OFFSITE 0 0 0 ENDEND 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file.How I can enable it? I have upload the image on another upload web service:http://www.megaupload.com/?d=K8SY5IP3you can try this if you want.Or can you try with a your image? Thanks again.Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 21:29 For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP >? ???NAME? ? "prova" >? ???CONFIG? "PROJ_LIB" "/usr/share/proj/" >? ???STATUS ON >? ???SHAPEPATH "./" >? ???SIZE 494 531 >? ???PROJECTION >? ? ? ???"init=epsg:4326" >? ???END >? ? ? ???EXTENT -154 -57 26 33 >? ???DEBUG 5 > >? ???WEB >? ? ? ???IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" >? ? ? ???IMAGEURL "/sviluppo/tmp/" >? ???END > >? ???LAYER >? ? ? ? ???NAME "tif" >? ? ? ???DATA "prova.tif" >? ? ? ???STATUS ON >? ? ? ???TYPE RASTER >? ? ? ???OFFSITE 0 0 0 >? ? ? ???CLASSITEM "[pixel]" > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 10 AND [pixel] < 40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 80 AND [pixel] < 120) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 120 AND [pixel] < 150) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 0 0 >? ? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 150 AND [pixel] < 200) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 200 AND [pixel]<40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 0 0 >? ? ? ? ? ? ???END >? ? ? ???END >? ???END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Wed Jul 7 13:28:51 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 7 Jul 2010 14:28:51 -0600 Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: <306460.3762.qm@web28613.mail.ukl.yahoo.com> References: <306460.3762.qm@web28613.mail.ukl.yahoo.com> Message-ID: Can you also include a sample request that gives you a blank map? On Wed, Jul 7, 2010 at 1:57 PM, michele pierri wrote: > Hi, thanks for help me. > > 1. Is your file indeed georeferenced? > Yes it is georeferenced. > > 2. The style definitions look good, the only thing I see missing are > the class names. Not sure if that matters if you don't display a > legend. > How I have to modify the .map file for add this information? Can you write > me an example? > > 3. Have you got the map file working without the class definitions? > I.E get a grayscale map? > If I write this file map I have always blank image: > MAP > NAME "prova" > CONFIG "PROJ_LIB" "/usr/share/proj/" > STATUS ON > SHAPEPATH "./" > SIZE 494 531 > PROJECTION > "init=epsg:4326" > END > EXTENT -154 -57 26 33 > DEBUG 5 > WEB > IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" > IMAGEURL "/sviluppo/tmp/" > END > > LAYER > NAME "tif" > DATA "prova.tif" > STATUS ON > TYPE RASTER > OFFSITE 0 0 0 > > END > END > > 4. Have you attempted to discover what is wrong by looking at the > mapserver log? You will need to enable logging in your map file. > How I can enable it? > > > I have upload the image on another upload web service: > http://www.megaupload.com/?d=K8SY5IP3 > you can try this if you want. > Or can you try with a your image? > > Thanks again. > Michele. > > --- *Mer 7/7/10, Alexander Petkov * ha scritto: > > > Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff > A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org > Data: Mercoled? 7 luglio 2010, 21:29 > > For some reason I can;t get to the file you posted, so I have a few > question. > > 1. Is your file indeed georeferenced? > 2. The style definitions look good, the only thing I see missing are > the class names. Not sure if that matters if you don't display a > legend. > 3. Have you got the map file working without the class definitions? > I.E get a grayscale map? > 4. Have you attempted to discover what is wrong by looking at the > mapserver log? You will need to enable logging in your map file. > > Alex > > On Wed, Jul 7, 2010 at 9:44 AM, michele pierri > > wrote: > > > > Hi, > > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > > I would visualize it with a colour scaled palette. > > I have write this file.map, but I receive only blank page. > > > > MAP > > NAME "prova" > > CONFIG "PROJ_LIB" "/usr/share/proj/" > > STATUS ON > > SHAPEPATH "./" > > SIZE 494 531 > > PROJECTION > > "init=epsg:4326" > > END > > EXTENT -154 -57 26 33 > > DEBUG 5 > > > > WEB > > IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" > > IMAGEURL "/sviluppo/tmp/" > > END > > > > LAYER > > NAME "tif" > > DATA "prova.tif" > > STATUS ON > > TYPE RASTER > > OFFSITE 0 0 0 > > CLASSITEM "[pixel]" > > > > CLASS > > EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) > > STYLE > > COLOR 0 255 255 > > END > > END > > > > CLASS > > EXPRESSION ([pixel] >= 10 AND [pixel] < 40) > > STYLE > > COLOR 0 255 0 > > END > > END > > > > CLASS > > EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) > > STYLE > > COLOR 255 255 0 > > END > > END > > > > CLASS > > EXPRESSION ([pixel] >= 80 AND [pixel] < 120) > > STYLE > > COLOR 255 127 0 > > END > > END > > > > CLASS > > EXPRESSION ([pixel] >= 120 AND [pixel] < 150) > > STYLE > > COLOR 255 0 0 > > END > > END > > > > CLASS > > EXPRESSION ([pixel] >= 150 AND [pixel] < 200) > > STYLE > > COLOR 255 127 255 > > END > > END > > > > CLASS > > EXPRESSION ([pixel] >= 200 AND [pixel]<40) > > STYLE > > COLOR 0 0 0 > > END > > END > > END > > END > > > > > > Can anyone help me please? I am sorry but I am a beginner. > > Thanks in advance, > > Michele. > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierm4ci at yahoo.it Wed Jul 7 13:47:23 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed, 7 Jul 2010 20:47:23 +0000 (GMT) Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: Message-ID: <180678.38857.qm@web28607.mail.ukl.yahoo.com> This is what I request with a browser.http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map Thanks again,Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:28 Can you also include a sample request that gives you a blank map? On Wed, Jul 7, 2010 at 1:57 PM, michele pierri wrote: Hi, thanks for help me. 1. Is your file indeed georeferenced? Yes it is georeferenced. 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend.How I have to modify the .map file for add this information? Can you write me an example? 3. Have you got the map file working without the class definitions? I.E get a grayscale map? If I write this file map I have always blank image: MAP NAME "prova" CONFIG ?"PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" SIZE 494 531 PROJECTION? "init=epsg:4326" END EXTENT -154 -57 26 33 DEBUG 5 WEB IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" IMAGEURL "/sviluppo/tmp/" END LAYER ?? NAME "tif" DATA "prova.tif" STATUS ON TYPE RASTER OFFSITE 0 0 0 ENDEND 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file.How I can enable it? I have upload the image on another upload web service:http://www.megaupload.com/?d=K8SY5IP3 you can try this if you want.Or can you try with a your image? Thanks again.Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 21:29 For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP >? ???NAME? ? "prova" >? ???CONFIG? "PROJ_LIB" "/usr/share/proj/" >? ???STATUS ON >? ???SHAPEPATH "./" >? ???SIZE 494 531 >? ???PROJECTION >? ? ? ???"init=epsg:4326" >? ???END >? ? ? ???EXTENT -154 -57 26 33 >? ???DEBUG 5 > >? ???WEB >? ? ? ???IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" >? ? ? ???IMAGEURL "/sviluppo/tmp/" >? ???END > >? ???LAYER >? ? ? ? ???NAME "tif" >? ? ? ???DATA "prova.tif" >? ? ? ???STATUS ON >? ? ? ???TYPE RASTER >? ? ? ???OFFSITE 0 0 0 >? ? ? ???CLASSITEM "[pixel]" > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 10 AND [pixel] < 40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 80 AND [pixel] < 120) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 120 AND [pixel] < 150) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 0 0 >? ? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 150 AND [pixel] < 200) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 200 AND [pixel]<40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 0 0 >? ? ? ? ? ? ???END >? ? ? ???END >? ???END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Wed Jul 7 13:52:53 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 7 Jul 2010 14:52:53 -0600 Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: <180678.38857.qm@web28607.mail.ukl.yahoo.com> References: <180678.38857.qm@web28607.mail.ukl.yahoo.com> Message-ID: The first thing that I see is that the EXTENT needs to be corrected in your map file. On Wed, Jul 7, 2010 at 2:47 PM, michele pierri wrote: > This is what I request with a browser. > > http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map > > Thanks again, > Michele. > > --- *Mer 7/7/10, Alexander Petkov * ha scritto: > > > Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff > A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org > Data: Mercoled? 7 luglio 2010, 22:28 > > > Can you also include a sample request that gives you a blank map? > > On Wed, Jul 7, 2010 at 1:57 PM, michele pierri > > wrote: > >> Hi, thanks for help me. >> >> 1. Is your file indeed georeferenced? >> Yes it is georeferenced. >> >> 2. The style definitions look good, the only thing I see missing are >> the class names. Not sure if that matters if you don't display a >> legend. >> How I have to modify the .map file for add this information? Can you write >> me an example? >> >> 3. Have you got the map file working without the class definitions? >> I.E get a grayscale map? >> If I write this file map I have always blank image: >> MAP >> NAME "prova" >> CONFIG "PROJ_LIB" "/usr/share/proj/" >> STATUS ON >> SHAPEPATH "./" >> SIZE 494 531 >> PROJECTION >> "init=epsg:4326" >> END >> EXTENT -154 -57 26 33 >> DEBUG 5 >> WEB >> IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" >> IMAGEURL "/sviluppo/tmp/" >> END >> >> LAYER >> NAME "tif" >> DATA "prova.tif" >> STATUS ON >> TYPE RASTER >> OFFSITE 0 0 0 >> >> END >> END >> >> 4. Have you attempted to discover what is wrong by looking at the >> mapserver log? You will need to enable logging in your map file. >> How I can enable it? >> >> >> I have upload the image on another upload web service: >> http://www.megaupload.com/?d=K8SY5IP3 >> you can try this if you want. >> Or can you try with a your image? >> >> Thanks again. >> Michele. >> >> --- *Mer 7/7/10, Alexander Petkov >> >* ha scritto: >> >> >> Da: Alexander Petkov >> > >> Oggetto: Re: [mapserver-users] adding a palette to a greytiff >> A: "michele pierri" >> > >> Cc: mapserver-users at lists.osgeo.org >> Data: Mercoled? 7 luglio 2010, 21:29 >> >> For some reason I can;t get to the file you posted, so I have a few >> question. >> >> 1. Is your file indeed georeferenced? >> 2. The style definitions look good, the only thing I see missing are >> the class names. Not sure if that matters if you don't display a >> legend. >> 3. Have you got the map file working without the class definitions? >> I.E get a grayscale map? >> 4. Have you attempted to discover what is wrong by looking at the >> mapserver log? You will need to enable logging in your map file. >> >> Alex >> >> On Wed, Jul 7, 2010 at 9:44 AM, michele pierri > >> wrote: >> > >> > Hi, >> > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html >> > I would visualize it with a colour scaled palette. >> > I have write this file.map, but I receive only blank page. >> > >> > MAP >> > NAME "prova" >> > CONFIG "PROJ_LIB" "/usr/share/proj/" >> > STATUS ON >> > SHAPEPATH "./" >> > SIZE 494 531 >> > PROJECTION >> > "init=epsg:4326" >> > END >> > EXTENT -154 -57 26 33 >> > DEBUG 5 >> > >> > WEB >> > IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" >> > IMAGEURL "/sviluppo/tmp/" >> > END >> > >> > LAYER >> > NAME "tif" >> > DATA "prova.tif" >> > STATUS ON >> > TYPE RASTER >> > OFFSITE 0 0 0 >> > CLASSITEM "[pixel]" >> > >> > CLASS >> > EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) >> > STYLE >> > COLOR 0 255 255 >> > END >> > END >> > >> > CLASS >> > EXPRESSION ([pixel] >= 10 AND [pixel] < 40) >> > STYLE >> > COLOR 0 255 0 >> > END >> > END >> > >> > CLASS >> > EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) >> > STYLE >> > COLOR 255 255 0 >> > END >> > END >> > >> > CLASS >> > EXPRESSION ([pixel] >= 80 AND [pixel] < 120) >> > STYLE >> > COLOR 255 127 0 >> > END >> > END >> > >> > CLASS >> > EXPRESSION ([pixel] >= 120 AND [pixel] < 150) >> > STYLE >> > COLOR 255 0 0 >> > END >> > END >> > >> > CLASS >> > EXPRESSION ([pixel] >= 150 AND [pixel] < 200) >> > STYLE >> > COLOR 255 127 255 >> > END >> > END >> > >> > CLASS >> > EXPRESSION ([pixel] >= 200 AND [pixel]<40) >> > STYLE >> > COLOR 0 0 0 >> > END >> > END >> > END >> > END >> > >> > >> > Can anyone help me please? I am sorry but I am a beginner. >> > Thanks in advance, >> > Michele. >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierm4ci at yahoo.it Wed Jul 7 13:58:50 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed, 7 Jul 2010 13:58:50 -0700 (PDT) Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: Message-ID: <605389.1742.qm@web28612.mail.ukl.yahoo.com> How I have to set EXTENT parameter? What are the correct value? Can you take me an example? Thanks a lot.Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:52 The first thing that I see is that the EXTENT needs to be corrected in your map file. On Wed, Jul 7, 2010 at 2:47 PM, michele pierri wrote: This is what I request with a browser.http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map Thanks again,Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:28 Can you also include a sample request that gives you a blank map? On Wed, Jul 7, 2010 at 1:57 PM, michele pierri wrote: Hi, thanks for help me. 1. Is your file indeed georeferenced? Yes it is georeferenced. 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend.How I have to modify the .map file for add this information? Can you write me an example? 3. Have you got the map file working without the class definitions? I.E get a grayscale map? If I write this file map I have always blank image: MAP NAME "prova" CONFIG ?"PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" SIZE 494 531 PROJECTION? "init=epsg:4326" END EXTENT -154 -57 26 33 DEBUG 5 WEB IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" IMAGEURL "/sviluppo/tmp/" END LAYER ?? NAME "tif" DATA "prova.tif" STATUS ON TYPE RASTER OFFSITE 0 0 0 ENDEND 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file.How I can enable it? I have upload the image on another upload web service:http://www.megaupload.com/?d=K8SY5IP3 you can try this if you want.Or can you try with a your image? Thanks again.Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 21:29 For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP >? ???NAME? ? "prova" >? ???CONFIG? "PROJ_LIB" "/usr/share/proj/" >? ???STATUS ON >? ???SHAPEPATH "./" >? ???SIZE 494 531 >? ???PROJECTION >? ? ? ???"init=epsg:4326" >? ???END >? ? ? ???EXTENT -154 -57 26 33 >? ???DEBUG 5 > >? ???WEB >? ? ? ???IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" >? ? ? ???IMAGEURL "/sviluppo/tmp/" >? ???END > >? ???LAYER >? ? ? ? ???NAME "tif" >? ? ? ???DATA "prova.tif" >? ? ? ???STATUS ON >? ? ? ???TYPE RASTER >? ? ? ???OFFSITE 0 0 0 >? ? ? ???CLASSITEM "[pixel]" > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 10 AND [pixel] < 40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 80 AND [pixel] < 120) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 120 AND [pixel] < 150) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 0 0 >? ? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 150 AND [pixel] < 200) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 200 AND [pixel]<40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 0 0 >? ? ? ? ? ? ???END >? ? ? ???END >? ???END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierm4ci at yahoo.it Wed Jul 7 14:20:41 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed, 7 Jul 2010 21:20:41 +0000 (GMT) Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: <605389.1742.qm@web28612.mail.ukl.yahoo.com> Message-ID: <734592.51233.qm@web28604.mail.ukl.yahoo.com> I have added this line in .map file:CONFIG ?"MS_ERRORFILE" "/tmp/mapserver.log" And this is the output: [Wed Jul ?7 23:18:21 2010].797918 CGI Request 1 on process 4712[Wed Jul ?7 23:18:21 2010].798507 msDrawMap(): Drawing Label Cache, 0.000s[Wed Jul ?7 23:18:21 2010].798536 msDrawMap() total time: 0.000s[Wed Jul ?7 23:18:21 2010].805594 msSaveImage() total time: 0.007s[Wed Jul ?7 23:18:21 2010].805715 mapserv request processing time (loadmap not incl.): 0.008s[Wed Jul ?7 23:18:21 2010].805731 msFreeMap(): freeing map at 0x8dd72a0. May be useful? Thanks. --- Mer 7/7/10, michele pierri ha scritto: Da: michele pierri Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "Alexander Petkov" , mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:58 How I have to set EXTENT parameter? What are the correct value? Can you take me an example? Thanks a lot.Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:52 The first thing that I see is that the EXTENT needs to be corrected in your map file. On Wed, Jul 7, 2010 at 2:47 PM, michele pierri wrote: This is what I request with a browser.http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map Thanks again,Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:28 Can you also include a sample request that gives you a blank map? On Wed, Jul 7, 2010 at 1:57 PM, michele pierri wrote: Hi, thanks for help me. 1. Is your file indeed georeferenced? Yes it is georeferenced. 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend.How I have to modify the .map file for add this information? Can you write me an example? 3. Have you got the map file working without the class definitions? I.E get a grayscale map? If I write this file map I have always blank image: MAP NAME "prova" CONFIG ?"PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" SIZE 494 531 PROJECTION? "init=epsg:4326" END EXTENT -154 -57 26 33 DEBUG 5 WEB IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" IMAGEURL "/sviluppo/tmp/" END LAYER ?? NAME "tif" DATA "prova.tif" STATUS ON TYPE RASTER OFFSITE 0 0 0 ENDEND 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file.How I can enable it? I have upload the image on another upload web service:http://www.megaupload.com/?d=K8SY5IP3 you can try this if you want.Or can you try with a your image? Thanks again.Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 21:29 For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP >? ???NAME? ? "prova" >? ???CONFIG? "PROJ_LIB" "/usr/share/proj/" >? ???STATUS ON >? ???SHAPEPATH "./" >? ???SIZE 494 531 >? ???PROJECTION >? ? ? ???"init=epsg:4326" >? ???END >? ? ? ???EXTENT -154 -57 26 33 >? ???DEBUG 5 > >? ???WEB >? ? ? ???IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" >? ? ? ???IMAGEURL "/sviluppo/tmp/" >? ???END > >? ???LAYER >? ? ? ? ???NAME "tif" >? ? ? ???DATA "prova.tif" >? ? ? ???STATUS ON >? ? ? ???TYPE RASTER >? ? ? ???OFFSITE 0 0 0 >? ? ? ???CLASSITEM "[pixel]" > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 10 AND [pixel] < 40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 80 AND [pixel] < 120) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 120 AND [pixel] < 150) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 0 0 >? ? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 150 AND [pixel] < 200) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 200 AND [pixel]<40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 0 0 >? ? ? ? ? ? ???END >? ? ? ???END >? ???END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -----Segue allegato----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Jul 7 14:41:05 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 7 Jul 2010 16:41:05 -0500 Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: <734592.51233.qm@web28604.mail.ukl.yahoo.com> References: <605389.1742.qm@web28612.mail.ukl.yahoo.com>, <734592.51233.qm@web28604.mail.ukl.yahoo.com> Message-ID: The layer needs to be turned on. By default with the CGI all layers are turned off unless they are "STATUS DEFAULT". To fix, either: 1) set the layer "tif" status to DEFAULT or 2) change your call to the CGI to something like: http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map&layer=tif Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of michele pierri [pierm4ci at yahoo.it] Sent: Wednesday, July 07, 2010 4:20 PM To: Alexander Petkov; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] adding a palette to a greytiff I have added this line in .map file: CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" And this is the output: [Wed Jul 7 23:18:21 2010].797918 CGI Request 1 on process 4712 [Wed Jul 7 23:18:21 2010].798507 msDrawMap(): Drawing Label Cache, 0.000s [Wed Jul 7 23:18:21 2010].798536 msDrawMap() total time: 0.000s [Wed Jul 7 23:18:21 2010].805594 msSaveImage() total time: 0.007s [Wed Jul 7 23:18:21 2010].805715 mapserv request processing time (loadmap not incl.): 0.008s [Wed Jul 7 23:18:21 2010].805731 msFreeMap(): freeing map at 0x8dd72a0. May be useful? Thanks. --- Mer 7/7/10, michele pierri ha scritto: Da: michele pierri Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "Alexander Petkov" , mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:58 How I have to set EXTENT parameter? What are the correct value? Can you take me an example? Thanks a lot. Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:52 The first thing that I see is that the EXTENT needs to be corrected in your map file. On Wed, Jul 7, 2010 at 2:47 PM, michele pierri wrote: This is what I request with a browser. http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map Thanks again, Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:28 Can you also include a sample request that gives you a blank map? On Wed, Jul 7, 2010 at 1:57 PM, michele pierri > wrote: Hi, thanks for help me. 1. Is your file indeed georeferenced? Yes it is georeferenced. 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. How I have to modify the .map file for add this information? Can you write me an example? 3. Have you got the map file working without the class definitions? I.E get a grayscale map? If I write this file map I have always blank image: MAP NAME "prova" CONFIG "PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" SIZE 494 531 PROJECTION "init=epsg:4326" END EXTENT -154 -57 26 33 DEBUG 5 WEB IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" IMAGEURL "/sviluppo/tmp/" END LAYER NAME "tif" DATA "prova.tif" STATUS ON TYPE RASTER OFFSITE 0 0 0 END END 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. How I can enable it? I have upload the image on another upload web service: http://www.megaupload.com/?d=K8SY5IP3 you can try this if you want. Or can you try with a your image? Thanks again. Michele. --- Mer 7/7/10, Alexander Petkov > ha scritto: Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 21:29 For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri > wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP > NAME "prova" > CONFIG "PROJ_LIB" "/usr/share/proj/" > STATUS ON > SHAPEPATH "./" > SIZE 494 531 > PROJECTION > "init=epsg:4326" > END > EXTENT -154 -57 26 33 > DEBUG 5 > > WEB > IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" > IMAGEURL "/sviluppo/tmp/" > END > > LAYER > NAME "tif" > DATA "prova.tif" > STATUS ON > TYPE RASTER > OFFSITE 0 0 0 > CLASSITEM "[pixel]" > > CLASS > EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) > STYLE > COLOR 0 255 255 > END > END > > CLASS > EXPRESSION ([pixel] >= 10 AND [pixel] < 40) > STYLE > COLOR 0 255 0 > END > END > > CLASS > EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) > STYLE > COLOR 255 255 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 80 AND [pixel] < 120) > STYLE > COLOR 255 127 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 120 AND [pixel] < 150) > STYLE > COLOR 255 0 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 150 AND [pixel] < 200) > STYLE > COLOR 255 127 255 > END > END > > CLASS > EXPRESSION ([pixel] >= 200 AND [pixel]<40) > STYLE > COLOR 0 0 0 > END > END > END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -----Segue allegato----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From djantzen at ql2.com Wed Jul 7 14:19:33 2010 From: djantzen at ql2.com (David Jantzen) Date: Wed, 7 Jul 2010 14:19:33 -0700 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps Message-ID: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> Hi All, I've never used MapServer before, so this is definitely a newbie question. I've read a bunch of the documentation and FAQ, but I haven't yet found a clear answer to this question: Can I use MapServer to host a map, on which my clients can draw polygons and export them as shapefiles or into a database? If not, is there another (open source) product that can? Seems like one of the scripting toolkits could do this, but not without significant custom front end work. Thanks! David From christopher.schmidt at nokia.com Wed Jul 7 14:50:27 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Wed, 7 Jul 2010 23:50:27 +0200 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps In-Reply-To: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> References: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> Message-ID: <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com> On Jul 7, 2010, at 5:19 PM, ext David Jantzen wrote: > Hi All, > > I've never used MapServer before, so this is definitely a newbie question. I've read a bunch of the documentation and FAQ, but I haven't yet found a clear answer to this question: > > Can I use MapServer to host a map, on which my clients can draw polygons and export them as shapefiles or into a database? If not, is there another (open source) product that can? > > Seems like one of the scripting toolkits could do this, but not without significant custom front end work. I think this is approximately accurate. Personally, I would probably use GeoDjango/OpenLayers for this kind of task. Regards, -- Christopher Schmidt Nokia From pierm4ci at yahoo.it Wed Jul 7 15:02:35 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Wed, 7 Jul 2010 22:02:35 +0000 (GMT) Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: Message-ID: <402400.91548.qm@web28610.mail.ukl.yahoo.com> Thank you!Now it works. Here there is my output example results:?http://img413.imageshack.us/img413/7964/mapserv.gif Now can I put this image on a background map? For example on openlayers map? Thanks again,Michele. --- Mer 7/7/10, Lime, Steve D (DNR) ha scritto: Da: Lime, Steve D (DNR) Oggetto: RE: [mapserver-users] adding a palette to a greytiff A: "michele pierri" , "Alexander Petkov" , "mapserver-users at lists.osgeo.org" Data: Mercoled? 7 luglio 2010, 23:41 The layer needs to be turned on. By default with the CGI all layers are turned off unless they are "STATUS DEFAULT". To fix, either: ? 1) set the layer "tif" status to DEFAULT or ? 2) change your call to the CGI to something like:? http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map&layer=tif Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of michele pierri [pierm4ci at yahoo.it] Sent: Wednesday, July 07, 2010 4:20 PM To: Alexander Petkov; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] adding a palette to a greytiff I have added this line in .map file: CONFIG? "MS_ERRORFILE" "/tmp/mapserver.log" And this is the output: [Wed Jul? 7 23:18:21 2010].797918 CGI Request 1 on process 4712 [Wed Jul? 7 23:18:21 2010].798507 msDrawMap(): Drawing Label Cache, 0.000s [Wed Jul? 7 23:18:21 2010].798536 msDrawMap() total time: 0.000s [Wed Jul? 7 23:18:21 2010].805594 msSaveImage() total time: 0.007s [Wed Jul? 7 23:18:21 2010].805715 mapserv request processing time (loadmap not incl.): 0.008s [Wed Jul? 7 23:18:21 2010].805731 msFreeMap(): freeing map at 0x8dd72a0. May be useful? Thanks. --- Mer 7/7/10, michele pierri ha scritto: Da: michele pierri Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "Alexander Petkov" , mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:58 How I have to set EXTENT parameter? What are the correct value? Can you take me an example? Thanks a lot. Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:52 The first thing that I see is that the EXTENT needs to be corrected in your map file. On Wed, Jul 7, 2010 at 2:47 PM, michele pierri wrote: This is what I request with a browser. http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map Thanks again, Michele. --- Mer 7/7/10, Alexander Petkov ha scritto: Da: Alexander Petkov Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:28 Can you also include a sample request that gives you a blank map? On Wed, Jul 7, 2010 at 1:57 PM, michele pierri > wrote: Hi, thanks for help me. 1. Is your file indeed georeferenced? Yes it is georeferenced. 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. How I have to modify the .map file for add this information? Can you write me an example? 3. Have you got the map file working without the class definitions? I.E get a grayscale map? If I write this file map I have always blank image: MAP NAME "prova" CONFIG? "PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" SIZE 494 531 PROJECTION "init=epsg:4326" END EXTENT -154 -57 26 33 DEBUG 5 WEB IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" IMAGEURL "/sviluppo/tmp/" END LAYER ???NAME "tif" DATA "prova.tif" STATUS ON TYPE RASTER OFFSITE 0 0 0 END END 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. How I can enable it? I have upload the image on another upload web service: http://www.megaupload.com/?d=K8SY5IP3 you can try this if you want. Or can you try with a your image? Thanks again. Michele. --- Mer 7/7/10, Alexander Petkov > ha scritto: Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 21:29 For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri > wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP >? ???NAME? ? "prova" >? ???CONFIG? "PROJ_LIB" "/usr/share/proj/" >? ???STATUS ON >? ???SHAPEPATH "./" >? ???SIZE 494 531 >? ???PROJECTION >? ? ? ???"init=epsg:4326" >? ???END >? ? ? ???EXTENT -154 -57 26 33 >? ???DEBUG 5 > >? ???WEB >? ? ? ???IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" >? ? ? ???IMAGEURL "/sviluppo/tmp/" >? ???END > >? ???LAYER >? ? ? ? ???NAME "tif" >? ? ? ???DATA "prova.tif" >? ? ? ???STATUS ON >? ? ? ???TYPE RASTER >? ? ? ???OFFSITE 0 0 0 >? ? ? ???CLASSITEM "[pixel]" > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 10 AND [pixel] < 40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 80 AND [pixel] < 120) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 120 AND [pixel] < 150) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 0 0 >? ? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 150 AND [pixel] < 200) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 200 AND [pixel]<40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 0 0 >? ? ? ? ? ? ???END >? ? ? ???END >? ???END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -----Segue allegato----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From djantzen at ql2.com Wed Jul 7 16:13:34 2010 From: djantzen at ql2.com (David Jantzen) Date: Wed, 7 Jul 2010 16:13:34 -0700 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps In-Reply-To: <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com> References: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com> Message-ID: <1C8DFC51-E655-4DA8-A77B-97AD76BBEE4E@ql2.com> Hmm, this looks close to what I want: http://openlayers.org/dev/examples/draw-feature.html Any idea how I would export the polygons to a shapefile/database? What about loading them from a previous session? Thanks, David On Jul 7, 2010, at 2:50 PM, wrote: > > On Jul 7, 2010, at 5:19 PM, ext David Jantzen wrote: > >> Hi All, >> >> I've never used MapServer before, so this is definitely a newbie question. I've read a bunch of the documentation and FAQ, but I haven't yet found a clear answer to this question: >> >> Can I use MapServer to host a map, on which my clients can draw polygons and export them as shapefiles or into a database? If not, is there another (open source) product that can? >> >> Seems like one of the scripting toolkits could do this, but not without significant custom front end work. > > I think this is approximately accurate. Personally, I would probably use > GeoDjango/OpenLayers for this kind of task. > > Regards, > -- > Christopher Schmidt > Nokia > From Steve.Lime at state.mn.us Wed Jul 7 18:34:02 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 7 Jul 2010 20:34:02 -0500 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps In-Reply-To: <1C8DFC51-E655-4DA8-A77B-97AD76BBEE4E@ql2.com> References: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com>, <1C8DFC51-E655-4DA8-A77B-97AD76BBEE4E@ql2.com> Message-ID: Take a look at FeatureServer (or perhaps the WFS-T support in GeoServer or Tiny WFS). Such tools would facilitate the writing of geometries to a data store (e.g. PostGIS) that MapServer could read from. Of course you could write your own tool to do that. We've used rails and serialized geometries to/from OpenLayers as WKT easy enough. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Jantzen [djantzen at ql2.com] Sent: Wednesday, July 07, 2010 6:13 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Allowing users to draw polygons on MapServer maps Hmm, this looks close to what I want: http://openlayers.org/dev/examples/draw-feature.html Any idea how I would export the polygons to a shapefile/database? What about loading them from a previous session? Thanks, David On Jul 7, 2010, at 2:50 PM, wrote: > > On Jul 7, 2010, at 5:19 PM, ext David Jantzen wrote: > >> Hi All, >> >> I've never used MapServer before, so this is definitely a newbie question. I've read a bunch of the documentation and FAQ, but I haven't yet found a clear answer to this question: >> >> Can I use MapServer to host a map, on which my clients can draw polygons and export them as shapefiles or into a database? If not, is there another (open source) product that can? >> >> Seems like one of the scripting toolkits could do this, but not without significant custom front end work. > > I think this is approximately accurate. Personally, I would probably use > GeoDjango/OpenLayers for this kind of task. > > Regards, > -- > Christopher Schmidt > Nokia > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Jul 7 18:45:05 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 7 Jul 2010 20:45:05 -0500 Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: <402400.91548.qm@web28610.mail.ukl.yahoo.com> References: , <402400.91548.qm@web28610.mail.ukl.yahoo.com> Message-ID: I guess I'd recommend moving to the OL website and looking at their examples. They've done a WONDERFUL job of providing examples that cover most typical (and a number of atypical) use cases- including basic MapServer. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of michele pierri [pierm4ci at yahoo.it] Sent: Wednesday, July 07, 2010 5:02 PM To: Lime, Steve D (DNR); Alexander Petkov; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] adding a palette to a greytiff Thank you! Now it works. Here there is my output example results: http://img413.imageshack.us/img413/7964/mapserv.gif Now can I put this image on a background map? For example on openlayers map? Thanks again, Michele. --- Mer 7/7/10, Lime, Steve D (DNR) ha scritto: Da: Lime, Steve D (DNR) Oggetto: RE: [mapserver-users] adding a palette to a greytiff A: "michele pierri" , "Alexander Petkov" , "mapserver-users at lists.osgeo.org" Data: Mercoled? 7 luglio 2010, 23:41 The layer needs to be turned on. By default with the CGI all layers are turned off unless they are "STATUS DEFAULT". To fix, either: 1) set the layer "tif" status to DEFAULT or 2) change your call to the CGI to something like: http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map&layer=tif Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of michele pierri [pierm4ci at yahoo.it] Sent: Wednesday, July 07, 2010 4:20 PM To: Alexander Petkov; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] adding a palette to a greytiff I have added this line in .map file: CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" And this is the output: [Wed Jul 7 23:18:21 2010].797918 CGI Request 1 on process 4712 [Wed Jul 7 23:18:21 2010].798507 msDrawMap(): Drawing Label Cache, 0.000s [Wed Jul 7 23:18:21 2010].798536 msDrawMap() total time: 0.000s [Wed Jul 7 23:18:21 2010].805594 msSaveImage() total time: 0.007s [Wed Jul 7 23:18:21 2010].805715 mapserv request processing time (loadmap not incl.): 0.008s [Wed Jul 7 23:18:21 2010].805731 msFreeMap(): freeing map at 0x8dd72a0. May be useful? Thanks. --- Mer 7/7/10, michele pierri > ha scritto: Da: michele pierri > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "Alexander Petkov" >, mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:58 How I have to set EXTENT parameter? What are the correct value? Can you take me an example? Thanks a lot. Michele. --- Mer 7/7/10, Alexander Petkov > ha scritto: Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:52 The first thing that I see is that the EXTENT needs to be corrected in your map file. On Wed, Jul 7, 2010 at 2:47 PM, michele pierri > wrote: This is what I request with a browser. http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map Thanks again, Michele. --- Mer 7/7/10, Alexander Petkov > ha scritto: Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:28 Can you also include a sample request that gives you a blank map? On Wed, Jul 7, 2010 at 1:57 PM, michele pierri > wrote: Hi, thanks for help me. 1. Is your file indeed georeferenced? Yes it is georeferenced. 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. How I have to modify the .map file for add this information? Can you write me an example? 3. Have you got the map file working without the class definitions? I.E get a grayscale map? If I write this file map I have always blank image: MAP NAME "prova" CONFIG "PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" SIZE 494 531 PROJECTION "init=epsg:4326" END EXTENT -154 -57 26 33 DEBUG 5 WEB IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" IMAGEURL "/sviluppo/tmp/" END LAYER NAME "tif" DATA "prova.tif" STATUS ON TYPE RASTER OFFSITE 0 0 0 END END 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. How I can enable it? I have upload the image on another upload web service: http://www.megaupload.com/?d=K8SY5IP3 you can try this if you want. Or can you try with a your image? Thanks again. Michele. --- Mer 7/7/10, Alexander Petkov > ha scritto: Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 21:29 For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri > wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP > NAME "prova" > CONFIG "PROJ_LIB" "/usr/share/proj/" > STATUS ON > SHAPEPATH "./" > SIZE 494 531 > PROJECTION > "init=epsg:4326" > END > EXTENT -154 -57 26 33 > DEBUG 5 > > WEB > IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" > IMAGEURL "/sviluppo/tmp/" > END > > LAYER > NAME "tif" > DATA "prova.tif" > STATUS ON > TYPE RASTER > OFFSITE 0 0 0 > CLASSITEM "[pixel]" > > CLASS > EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) > STYLE > COLOR 0 255 255 > END > END > > CLASS > EXPRESSION ([pixel] >= 10 AND [pixel] < 40) > STYLE > COLOR 0 255 0 > END > END > > CLASS > EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) > STYLE > COLOR 255 255 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 80 AND [pixel] < 120) > STYLE > COLOR 255 127 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 120 AND [pixel] < 150) > STYLE > COLOR 255 0 0 > END > END > > CLASS > EXPRESSION ([pixel] >= 150 AND [pixel] < 200) > STYLE > COLOR 255 127 255 > END > END > > CLASS > EXPRESSION ([pixel] >= 200 AND [pixel]<40) > STYLE > COLOR 0 0 0 > END > END > END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -----Segue allegato----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users From djantzen at ql2.com Wed Jul 7 18:50:01 2010 From: djantzen at ql2.com (David Jantzen) Date: Wed, 7 Jul 2010 18:50:01 -0700 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps In-Reply-To: References: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com>, <1C8DFC51-E655-4DA8-A77B-97AD76BBEE4E@ql2.com> Message-ID: <6442F582-154F-468A-88B4-21DBB0A42EE3@ql2.com> Thanks Steve, I'll check out those projects. I just did a proof of concept using the approach you describe with OpenLayers and WKT. Very nifty stuff. Any gotchas to that approach? On Jul 7, 2010, at 6:34 PM, Lime, Steve D (DNR) wrote: > Take a look at FeatureServer (or perhaps the WFS-T support in GeoServer or Tiny WFS). Such tools would facilitate the writing of geometries > to a data store (e.g. PostGIS) that MapServer could read from. Of course you could write your own tool to do that. We've used rails and serialized > geometries to/from OpenLayers as WKT easy enough. > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Jantzen [djantzen at ql2.com] > Sent: Wednesday, July 07, 2010 6:13 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Allowing users to draw polygons on MapServer maps > > Hmm, this looks close to what I want: > > http://openlayers.org/dev/examples/draw-feature.html > > Any idea how I would export the polygons to a shapefile/database? What about loading them from a previous session? > > Thanks, > David > > On Jul 7, 2010, at 2:50 PM, wrote: > >> >> On Jul 7, 2010, at 5:19 PM, ext David Jantzen wrote: >> >>> Hi All, >>> >>> I've never used MapServer before, so this is definitely a newbie question. I've read a bunch of the documentation and FAQ, but I haven't yet found a clear answer to this question: >>> >>> Can I use MapServer to host a map, on which my clients can draw polygons and export them as shapefiles or into a database? If not, is there another (open source) product that can? >>> >>> Seems like one of the scripting toolkits could do this, but not without significant custom front end work. >> >> I think this is approximately accurate. Personally, I would probably use >> GeoDjango/OpenLayers for this kind of task. >> >> Regards, >> -- >> Christopher Schmidt >> Nokia >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From djantzen at ql2.com Wed Jul 7 19:49:39 2010 From: djantzen at ql2.com (David Jantzen) Date: Wed, 7 Jul 2010 19:49:39 -0700 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps In-Reply-To: References: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com>, <1C8DFC51-E655-4DA8-A77B-97AD76BBEE4E@ql2.com> Message-ID: <386B975F-647A-4084-AC56-5AA5F4C649A4@ql2.com> Err, I thought I had it working. I just realized that the data I see in my Javascript editor is pixel positioning not lat/long: Could you please provide a code snippet whereby I could get the appropriate lat/long vertices for a polygon I just drew? I was trying variations on "p=new OpenLayers.Geometry.Polygon(document.getElementById("OpenLayers.Geometry.Polygon_239").getAttribute('d'))" But now I see I'm way off! Thanks much, David On Jul 7, 2010, at 6:34 PM, Lime, Steve D (DNR) wrote: > Take a look at FeatureServer (or perhaps the WFS-T support in GeoServer or Tiny WFS). Such tools would facilitate the writing of geometries > to a data store (e.g. PostGIS) that MapServer could read from. Of course you could write your own tool to do that. We've used rails and serialized > geometries to/from OpenLayers as WKT easy enough. > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Jantzen [djantzen at ql2.com] > Sent: Wednesday, July 07, 2010 6:13 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Allowing users to draw polygons on MapServer maps > > Hmm, this looks close to what I want: > > http://openlayers.org/dev/examples/draw-feature.html > > Any idea how I would export the polygons to a shapefile/database? What about loading them from a previous session? > > Thanks, > David > > On Jul 7, 2010, at 2:50 PM, wrote: > >> >> On Jul 7, 2010, at 5:19 PM, ext David Jantzen wrote: >> >>> Hi All, >>> >>> I've never used MapServer before, so this is definitely a newbie question. I've read a bunch of the documentation and FAQ, but I haven't yet found a clear answer to this question: >>> >>> Can I use MapServer to host a map, on which my clients can draw polygons and export them as shapefiles or into a database? If not, is there another (open source) product that can? >>> >>> Seems like one of the scripting toolkits could do this, but not without significant custom front end work. >> >> I think this is approximately accurate. Personally, I would probably use >> GeoDjango/OpenLayers for this kind of task. >> >> Regards, >> -- >> Christopher Schmidt >> Nokia >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.b at gritechnologies.com Wed Jul 7 19:53:38 2010 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 07 Jul 2010 21:53:38 -0500 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps In-Reply-To: <6442F582-154F-468A-88B4-21DBB0A42EE3@ql2.com> References: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com>, <1C8DFC51-E655-4DA8-A77B-97AD76BBEE4E@ql2.com> <6442F582-154F-468A-88B4-21DBB0A42EE3@ql2.com> Message-ID: <4C353DB2.2040804@gritechnologies.com> David, You could go with something in GeoMoose as well. There is a demo available that includes drawing tools, you would need to set up your backend storage though on your own, with your tool of choice, but these get you half way there. You can see a couple of demo sites with drawing/edit tools already configured here: http://geomoose.org/info/demo.html Both of these demos are available as downloads as well. bobb On 7/7/2010 8:50 PM, David Jantzen wrote: > Thanks Steve, I'll check out those projects. I just did a proof of concept using the approach you describe with OpenLayers and WKT. Very nifty stuff. Any gotchas to that approach? > > On Jul 7, 2010, at 6:34 PM, Lime, Steve D (DNR) wrote: > > >> Take a look at FeatureServer (or perhaps the WFS-T support in GeoServer or Tiny WFS). Such tools would facilitate the writing of geometries >> to a data store (e.g. PostGIS) that MapServer could read from. Of course you could write your own tool to do that. We've used rails and serialized >> geometries to/from OpenLayers as WKT easy enough. >> >> Steve >> ________________________________________ >> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Jantzen [djantzen at ql2.com] >> Sent: Wednesday, July 07, 2010 6:13 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Allowing users to draw polygons on MapServer maps >> >> Hmm, this looks close to what I want: >> >> http://openlayers.org/dev/examples/draw-feature.html >> >> Any idea how I would export the polygons to a shapefile/database? What about loading them from a previous session? >> >> Thanks, >> David >> >> On Jul 7, 2010, at 2:50 PM, wrote: >> >> >>> On Jul 7, 2010, at 5:19 PM, ext David Jantzen wrote: >>> >>> >>>> Hi All, >>>> >>>> I've never used MapServer before, so this is definitely a newbie question. I've read a bunch of the documentation and FAQ, but I haven't yet found a clear answer to this question: >>>> >>>> Can I use MapServer to host a map, on which my clients can draw polygons and export them as shapefiles or into a database? If not, is there another (open source) product that can? >>>> >>>> Seems like one of the scripting toolkits could do this, but not without significant custom front end work. >>>> >>> I think this is approximately accurate. Personally, I would probably use >>> GeoDjango/OpenLayers for this kind of task. >>> >>> Regards, >>> -- >>> Christopher Schmidt >>> Nokia >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From mani2604 at gmail.com Wed Jul 7 23:08:37 2010 From: mani2604 at gmail.com (mani2604) Date: Wed, 7 Jul 2010 23:08:37 -0700 (PDT) Subject: [mapserver-users] RE: How to draw custom rectangles with bounding box coordinates In-Reply-To: <4C34815B.70907@gritechnologies.com> References: <1278416074781-5259886.post@n2.nabble.com> <1278491951591-5264171.post@n2.nabble.com> <4C34815B.70907@gritechnologies.com> Message-ID: <1278569317971-5268651.post@n2.nabble.com> @BoB Basques-2 Well right now I am not plannin' to transfix wid any hefty amount of data into the database.. i was working on an experimental basis for my project... I am not much experienced and definitely not familiar with PERL.. Soo plz cud u be more specific like--- OK I somehow got some 'n' number of polygons saved in Postgis.. When I pass on a query I am gonna retrieve them to display on the base map.. so the thing is what sort of layer do I need to specify in the mapfile or the app framework(probably geomoose here) to perform the overlay action??! Any Suggestions r truly appreciated..!! Thank You -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-draw-custom-rectangles-with-bounding-box-coordinates-tp5259886p5268651.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bob.b at gritechnologies.com Wed Jul 7 23:15:38 2010 From: bob.b at gritechnologies.com (Bob Basques) Date: Thu, 08 Jul 2010 01:15:38 -0500 Subject: [mapserver-users] RE: How to draw custom rectangles with bounding box coordinates In-Reply-To: <1278569317971-5268651.post@n2.nabble.com> References: <1278416074781-5259886.post@n2.nabble.com> <1278491951591-5264171.post@n2.nabble.com> <4C34815B.70907@gritechnologies.com> <1278569317971-5268651.post@n2.nabble.com> Message-ID: <4C356D0A.5080009@gritechnologies.com> The mapfile is where you need to concentrate first. You put together a regular LAYER section in the Mapfile, but you'll use a line like this to define the call to postgis: DATA "wkb_geometry from " I've got some better examples, but the MapServer site has some info on this here: http://mapserver.org/mapfile/layer.html Look at the DATA tag in that page There's more detail here: http://mapserver.org/input/vector/postgis.html bobb On 7/8/2010 1:08 AM, mani2604 wrote: > @BoB Basques-2 > > Well right now I am not plannin' to transfix wid any hefty > amount of data into the database.. i was working on an experimental basis > for my project... > > I am not much experienced and definitely not familiar with PERL.. Soo plz > cud u be more specific like--- > > OK I somehow got some 'n' number of polygons saved in Postgis.. When I pass > on a query I am gonna retrieve them to display on the base map.. so the > thing is what sort of layer do I need to specify in the mapfile or the app > framework(probably geomoose here) to perform the overlay action??! > > Any Suggestions r truly appreciated..!! > > Thank You > From chris.green at ibstv.co.uk Thu Jul 8 00:06:58 2010 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 8 Jul 2010 08:06:58 +0100 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 Message-ID: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> Hi All I have a situation that I cannot understand. For some time I have been developing an application using OpenLayers and Mapserver, working on a Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W from MapTools.org. The application involves a number of WFS searches for which I have been using WFS 1.1.0 without any problems. Now I am migrating to a Linux platform in order to get ready for production, using Fedora. I downloaded the FGS Linux installer from MapTools.org and have made the application run under this environment. However there is now a problem with WFS . In response to a post as follows: REGIONEur ope I get a response of: msWFSDispatch(): WFS server error. WFS Server does not support VERSION 1.1.0. If I modify the WFS protocol to 1.0.0 I don't get the error, but I don't get any results either. This is the case for all of the WFS searches in the application, although they still work fine under MS4W. Can anyone help me see what I am doing wrong? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierm4ci at yahoo.it Thu Jul 8 01:13:37 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Thu, 8 Jul 2010 01:13:37 -0700 (PDT) Subject: [mapserver-users] adding a palette to a greytiff In-Reply-To: Message-ID: <65440.46289.qm@web28616.mail.ukl.yahoo.com> Ok,Thank you,Michele. --- Gio 8/7/10, Lime, Steve D (DNR) ha scritto: Da: Lime, Steve D (DNR) Oggetto: RE: [mapserver-users] adding a palette to a greytiff A: "michele pierri" , "Alexander Petkov" , "mapserver-users at lists.osgeo.org" Data: Gioved? 8 luglio 2010, 03:45 I guess I'd recommend moving to the OL website and looking at their examples. They've done a WONDERFUL job of providing examples that cover most typical (and a number of atypical) use cases- including basic MapServer. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of michele pierri [pierm4ci at yahoo.it] Sent: Wednesday, July 07, 2010 5:02 PM To: Lime, Steve D (DNR); Alexander Petkov; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] adding a palette to a greytiff Thank you! Now it works. Here there is my output example results: http://img413.imageshack.us/img413/7964/mapserv.gif Now can I put this image on a background map? For example on openlayers map? Thanks again, Michele. --- Mer 7/7/10, Lime, Steve D (DNR) ha scritto: Da: Lime, Steve D (DNR) Oggetto: RE: [mapserver-users] adding a palette to a greytiff A: "michele pierri" , "Alexander Petkov" , "mapserver-users at lists.osgeo.org" Data: Mercoled? 7 luglio 2010, 23:41 The layer needs to be turned on. By default with the CGI all layers are turned off unless they are "STATUS DEFAULT". To fix, either: ? 1) set the layer "tif" status to DEFAULT or ? 2) change your call to the CGI to something like:? http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map&layer=tif Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of michele pierri [pierm4ci at yahoo.it] Sent: Wednesday, July 07, 2010 4:20 PM To: Alexander Petkov; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] adding a palette to a greytiff I have added this line in .map file: CONFIG? "MS_ERRORFILE" "/tmp/mapserver.log" And this is the output: [Wed Jul? 7 23:18:21 2010].797918 CGI Request 1 on process 4712 [Wed Jul? 7 23:18:21 2010].798507 msDrawMap(): Drawing Label Cache, 0.000s [Wed Jul? 7 23:18:21 2010].798536 msDrawMap() total time: 0.000s [Wed Jul? 7 23:18:21 2010].805594 msSaveImage() total time: 0.007s [Wed Jul? 7 23:18:21 2010].805715 mapserv request processing time (loadmap not incl.): 0.008s [Wed Jul? 7 23:18:21 2010].805731 msFreeMap(): freeing map at 0x8dd72a0. May be useful? Thanks. --- Mer 7/7/10, michele pierri > ha scritto: Da: michele pierri > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "Alexander Petkov" >, mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:58 How I have to set EXTENT parameter? What are the correct value? Can you take me an example? Thanks a lot. Michele. --- Mer 7/7/10, Alexander Petkov > ha scritto: Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:52 The first thing that I see is that the EXTENT needs to be corrected in your map file. On Wed, Jul 7, 2010 at 2:47 PM, michele pierri > wrote: This is what I request with a browser. http://localhost/cgi-bin/mapserv?map=/var/www/sviluppo/workshop-5.4/prova.map&mode=map Thanks again, Michele. --- Mer 7/7/10, Alexander Petkov > ha scritto: Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 22:28 Can you also include a sample request that gives you a blank map? On Wed, Jul 7, 2010 at 1:57 PM, michele pierri > wrote: Hi, thanks for help me. 1. Is your file indeed georeferenced? Yes it is georeferenced. 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. How I have to modify the .map file for add this information? Can you write me an example? 3. Have you got the map file working without the class definitions? I.E get a grayscale map? If I write this file map I have always blank image: MAP NAME "prova" CONFIG? "PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" SIZE 494 531 PROJECTION "init=epsg:4326" END EXTENT -154 -57 26 33 DEBUG 5 WEB IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" IMAGEURL "/sviluppo/tmp/" END LAYER ???NAME "tif" DATA "prova.tif" STATUS ON TYPE RASTER OFFSITE 0 0 0 END END 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. How I can enable it? I have upload the image on another upload web service: http://www.megaupload.com/?d=K8SY5IP3 you can try this if you want. Or can you try with a your image? Thanks again. Michele. --- Mer 7/7/10, Alexander Petkov > ha scritto: Da: Alexander Petkov > Oggetto: Re: [mapserver-users] adding a palette to a greytiff A: "michele pierri" > Cc: mapserver-users at lists.osgeo.org Data: Mercoled? 7 luglio 2010, 21:29 For some reason I can;t get to the file you posted, so I have a few question. 1. Is your file indeed georeferenced? 2. The style definitions look good, the only thing I see missing are the class names. Not sure if that matters if you don't display a legend. 3. Have you got the map file working without the class definitions? I.E get a grayscale map? 4. Have you attempted to discover what is wrong by looking at the mapserver log? You will need to enable logging in your map file. Alex On Wed, Jul 7, 2010 at 9:44 AM, michele pierri > wrote: > > Hi, > I have this image: http://www.2shared.com/photo/Qu2cyRc2/prova.html > I would visualize it with a colour scaled palette. > I have write this file.map, but I receive only blank page. > > MAP >? ???NAME? ? "prova" >? ???CONFIG? "PROJ_LIB" "/usr/share/proj/" >? ???STATUS ON >? ???SHAPEPATH "./" >? ???SIZE 494 531 >? ???PROJECTION >? ? ? ???"init=epsg:4326" >? ???END >? ? ? ???EXTENT -154 -57 26 33 >? ???DEBUG 5 > >? ???WEB >? ? ? ???IMAGEPATH "/var/www/sviluppo//workshop-5.4/tmp/" >? ? ? ???IMAGEURL "/sviluppo/tmp/" >? ???END > >? ???LAYER >? ? ? ? ???NAME "tif" >? ? ? ???DATA "prova.tif" >? ? ? ???STATUS ON >? ? ? ???TYPE RASTER >? ? ? ???OFFSITE 0 0 0 >? ? ? ???CLASSITEM "[pixel]" > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 0 AND [pixel] < 10 ) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 10 AND [pixel] < 40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ( [pixel] >= 40 AND [pixel] < 80) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 255 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 80 AND [pixel] < 120) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 0 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 120 AND [pixel] < 150) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 0 0 >? ? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 150 AND [pixel] < 200) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 255 127 255 >? ? ? ? ? ???END >? ? ? ???END > >? ? ? ???CLASS >? ? ? ? ? ???EXPRESSION ([pixel] >= 200 AND [pixel]<40) >? ? ? ? ? ???STYLE >? ? ? ? ? ? ? ???COLOR 0 0 0 >? ? ? ? ? ? ???END >? ? ? ???END >? ???END > END > > > Can anyone help me please? I am sorry but I am a beginner. > Thanks in advance, > Michele. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -----Segue allegato----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Thu Jul 8 02:31:27 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 08 Jul 2010 11:31:27 +0200 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps In-Reply-To: <4C353DB2.2040804@gritechnologies.com> References: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com>, <1C8DFC51-E655-4DA8-A77B-97AD76BBEE4E@ql2.com> <6442F582-154F-468A-88B4-21DBB0A42EE3@ql2.com> <4C353DB2.2040804@gritechnologies.com> Message-ID: <4C359AEF.4070403@uva.nl> There is GeoMajas, but I have never looked at it: http://geomajas.org/ And there is the "Canvas" HTML element (http://en.wikipedia.org/wiki/Canvas_element), something I am definitely going to look into when I have time. See a few GIS-demos at http://www.canvasdemos.com/type/applications/maps-applications/ and the GnuPlot library, implemented in Canvas: http://skuld.bmsc.washington.edu/~merritt/gnuplot/canvas_demos/ Perhaps an idea for 3D-MapServer: http://www.canvasdemos.com/type/applications/3d-applications/ or from the 3D section of the GnuPlot library above. Jan On 07/08/10 04:53, Bob Basques wrote: > David, > > You could go with something in GeoMoose as well. There is a demo > available that includes drawing tools, you would need to set up your > backend storage though on your own, with your tool of choice, but > these get you half way there. You can see a couple of demo sites with > drawing/edit tools already configured here: > > http://geomoose.org/info/demo.html > > Both of these demos are available as downloads as well. > > bobb > > > > On 7/7/2010 8:50 PM, David Jantzen wrote: >> Thanks Steve, I'll check out those projects. I just did a proof of >> concept using the approach you describe with OpenLayers and WKT. >> Very nifty stuff. Any gotchas to that approach? >> >> On Jul 7, 2010, at 6:34 PM, Lime, Steve D (DNR) wrote: >> >>> Take a look at FeatureServer (or perhaps the WFS-T support in >>> GeoServer or Tiny WFS). Such tools would facilitate the writing of >>> geometries >>> to a data store (e.g. PostGIS) that MapServer could read from. Of >>> course you could write your own tool to do that. We've used rails >>> and serialized >>> geometries to/from OpenLayers as WKT easy enough. >>> >>> Steve >>> ________________________________________ >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Jantzen >>> [djantzen at ql2.com] >>> Sent: Wednesday, July 07, 2010 6:13 PM >>> To: mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] Allowing users to draw polygons on >>> MapServer maps >>> >>> Hmm, this looks close to what I want: >>> >>> http://openlayers.org/dev/examples/draw-feature.html >>> >>> Any idea how I would export the polygons to a shapefile/database? >>> What about loading them from a previous session? >>> >>> Thanks, >>> David >>> >>> On Jul 7, 2010, at 2:50 PM, >>> wrote: >>> >>>> On Jul 7, 2010, at 5:19 PM, ext David Jantzen wrote: >>>> >>>>> Hi All, >>>>> >>>>> I've never used MapServer before, so this is definitely a newbie >>>>> question. I've read a bunch of the documentation and FAQ, but I >>>>> haven't yet found a clear answer to this question: >>>>> >>>>> Can I use MapServer to host a map, on which my clients can draw >>>>> polygons and export them as shapefiles or into a database? If >>>>> not, is there another (open source) product that can? >>>>> >>>>> Seems like one of the scripting toolkits could do this, but not >>>>> without significant custom front end work. >>>> I think this is approximately accurate. Personally, I would >>>> probably use >>>> GeoDjango/OpenLayers for this kind of task. >>>> >>>> Regards, >>>> -- >>>> Christopher Schmidt >>>> Nokia >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thlin.box at gmail.com Thu Jul 8 04:18:42 2010 From: thlin.box at gmail.com (easyl) Date: Thu, 8 Jul 2010 04:18:42 -0700 (PDT) Subject: [mapserver-users] scale problem: SCALEDENOM + MAPEXT / {MIN|MAX}SCALEDENOM Message-ID: <1278587922379-5269601.post@n2.nabble.com> Actually there are two questions: 1. how is the inclusive or exclusive compassion of parameters MIN and MAXSCALEDENOM? after trying I found that a scale is compared to those parameters with following logic: MINSCALEDENOM <= scale < MAXSCALEDENOM is that right? I find no info from documentation. 2. Must I use SCALEDENOM of CGI parameter always with MAPXY? Can I pass SCALEDENOM with MAPEXT? (seems not) I do want to have a map in a specified extent (x1 y1 x2 y2) with just different scaling. How can I achieve that? thank! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/scale-problem-SCALEDENOM-MAPEXT-MIN-MAX-SCALEDENOM-tp5269601p5269601.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Thu Jul 8 04:39:55 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 08 Jul 2010 07:39:55 -0400 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> Message-ID: <4C35B90B.70009@dmsolutions.ca> Chris, Is your Linux version still a 5.2.1? Note that I have tried your request locally with current MapServer version (svn) and got expected results. regards, On 08/07/2010 3:06 AM, Chris Green wrote: > > Hi All > > I have a situation that I cannot understand. For some time I have been > developing an application using OpenLayers and Mapserver, working on a > Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W > from MapTools.org. The application involves a number of WFS searches > for which I have been using WFS 1.1.0 without any problems. > > Now I am migrating to a Linux platform in order to get ready for > production, using Fedora. I downloaded the FGS Linux installer from > MapTools.org and have made the application run under this environment. > However there is now a problem with WFS . In response to a post as > follows: > > | version="1.1.0" maxFeatures="100" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> typeName="feature:Countries_full" srsName="EPSG:4326" > xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> xmlns:ogc="http://www.opengis.net/ogc"> matchCase="true">REGIONEurope| > > I get a response of: > > > xmlns="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd"> > > > > msWFSDispatch(): WFS server error. WFS Server does not support VERSION > 1.1.0. > > > > > > If I modify the WFS protocol to 1.0.0 I don't get the error, but I > don't get any results either. This is the case for all of the WFS > searches in the application, although they still work fine under MS4W. > Can anyone help me see what I am doing wrong? > > Chris > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Thu Jul 8 06:02:33 2010 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 8 Jul 2010 14:02:33 +0100 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <4C35B90B.70009@dmsolutions.ca> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> <4C35B90B.70009@dmsolutions.ca> Message-ID: <005201cb1e9d$d502cb60$7f086220$@green@ibstv.co.uk> Hi Assefa I am using a Virtual Private Server and my ISP tells me that it uses Linux 5.2.1. The Mapserver version is 5.6.3, which came with the latest FGS version downloaded two days ago. The VPS comes with Apache pre-installed so I have 2 versions of Apache running, one already there and the other installed as part of the FGS package (the FGS version uses port 81). Since asking for help I have continued to try modifications to my map file (which still runs fine under MS4W although with a number of directory changes for Linux) but I still have the same problem - either no WFS results with 1.0.0 or with 'WFS Server does not support VERSION 1.1.0' I don't know much (actually almost nothing) about Linux. I am contemplating re-installing Mapserver as a stand alone (not with FGS) so there is only one version of Apache present. Would you recommend this - or do you have any other suggestions? Chris From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Sent: 08 July 2010 12:40 To: chris.green at ibstv.co.uk Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0 Chris, Is your Linux version still a 5.2.1? Note that I have tried your request locally with current MapServer version (svn) and got expected results. regards, On 08/07/2010 3:06 AM, Chris Green wrote: Hi All I have a situation that I cannot understand. For some time I have been developing an application using OpenLayers and Mapserver, working on a Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W from MapTools.org. The application involves a number of WFS searches for which I have been using WFS 1.1.0 without any problems. Now I am migrating to a Linux platform in order to get ready for production, using Fedora. I downloaded the FGS Linux installer from MapTools.org and have made the application run under this environment. However there is now a problem with WFS . In response to a post as follows: "http://www.opengis.net/wfs" service="WFS" version="1.1.0" maxFeatures="100" xsi:schemaLocation= "http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"> "http://mapserver.gis.umn.edu/mapserver"> "http://www.opengis.net/ogc">REGIONEur ope I get a response of: "http://www.opengis.net/ogc" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd"> msWFSDispatch(): WFS server error. WFS Server does not support VERSION 1.1.0. If I modify the WFS protocol to 1.0.0 I don't get the error, but I don't get any results either. This is the case for all of the WFS searches in the application, although they still work fine under MS4W. Can anyone help me see what I am doing wrong? Chris _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Thu Jul 8 07:36:40 2010 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 8 Jul 2010 15:36:40 +0100 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <4C35B90B.70009@dmsolutions.ca> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> <4C35B90B.70009@dmsolutions.ca> Message-ID: <006701cb1eaa$fac66250$f05326f0$@green@ibstv.co.uk> Hi again Assefa A correction from my ISP: now they say that the Linux installation is Fedora Core 7. Could this be the explanation of my problem? Chris From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Sent: 08 July 2010 12:40 To: chris.green at ibstv.co.uk Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0 Chris, Is your Linux version still a 5.2.1? Note that I have tried your request locally with current MapServer version (svn) and got expected results. regards, On 08/07/2010 3:06 AM, Chris Green wrote: Hi All I have a situation that I cannot understand. For some time I have been developing an application using OpenLayers and Mapserver, working on a Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W from MapTools.org. The application involves a number of WFS searches for which I have been using WFS 1.1.0 without any problems. Now I am migrating to a Linux platform in order to get ready for production, using Fedora. I downloaded the FGS Linux installer from MapTools.org and have made the application run under this environment. However there is now a problem with WFS . In response to a post as follows: "http://www.opengis.net/wfs" service="WFS" version="1.1.0" maxFeatures="100" xsi:schemaLocation= "http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"> "http://mapserver.gis.umn.edu/mapserver"> "http://www.opengis.net/ogc">REGIONEur ope I get a response of: "http://www.opengis.net/ogc" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd"> msWFSDispatch(): WFS server error. WFS Server does not support VERSION 1.1.0. If I modify the WFS protocol to 1.0.0 I don't get the error, but I don't get any results either. This is the case for all of the WFS searches in the application, although they still work fine under MS4W. Can anyone help me see what I am doing wrong? Chris _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Jul 8 07:49:17 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 08 Jul 2010 10:49:17 -0400 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <006701cb1eaa$fac66250$f05326f0$@green@ibstv.co.uk> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> <4C35B90B.70009@dmsolutions.ca> <006701cb1eaa$fac66250$f05326f0$@green@ibstv.co.uk> Message-ID: <4C35E56D.80804@mapgears.com> Chris Green wrote: > > A correction from my ISP: now they say that the Linux installation is > Fedora Core 7. Could this be the explanation of my problem? > Double-check the mapserv version that you are using through the Web. Even if you installed FGS, maybe you're not using the copy of mapserv you think you are. Use a URL like the following: http://your.server.com/cgi-bin/mapserv?test=1 And then do a "View Source"... you will see the MapServer version in the HTML source. -- Daniel Morissette http://www.mapgears.com/ From daniel.degasperi at r3-gis.com Thu Jul 8 07:50:17 2010 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Thu, 08 Jul 2010 16:50:17 +0200 Subject: [mapserver-users] WFS_SRS Message-ID: <4C35E5A9.3010702@r3-gis.com> Hi, I've read in the "WFS Server" documentation that it's possible to obtain data from wfs request in a different SRS. I removed the top level PROJECTION, the layer PROJECTION and add the 'wfs_srs' metadata with the epsg:4326 in my mapfile. Then I've started my wfs request but the data remains still with the original SRS. Am I missing something? Best regards, Daniel From djantzen at ql2.com Thu Jul 8 12:11:02 2010 From: djantzen at ql2.com (David Jantzen) Date: Thu, 8 Jul 2010 12:11:02 -0700 Subject: [mapserver-users] Allowing users to draw polygons on MapServer maps In-Reply-To: <4C359AEF.4070403@uva.nl> References: <686E59BD-C44A-474E-985A-4E8BB5EBC01F@ql2.com> <223C9EA5-3DAA-426A-AEFB-6B0F32395CCE@nokia.com>, <1C8DFC51-E655-4DA8-A77B-97AD76BBEE4E@ql2.com> <6442F582-154F-468A-88B4-21DBB0A42EE3@ql2.com> <4C353DB2.2040804@gritechnologies.com> <4C359AEF.4070403@uva.nl> Message-ID: <535264E3-5854-4AF4-8DE0-C30F2F1D08A8@ql2.com> Thank you for the suggestions everybody! I'm glad to see there are plenty of options. So far OpenLayers seems like a good choice, but I'll definitely take a look at these others. On Jul 8, 2010, at 2:31 AM, Jan Hartmann wrote: > There is GeoMajas, but I have never looked at it: > > http://geomajas.org/ > > And there is the "Canvas" HTML element > (http://en.wikipedia.org/wiki/Canvas_element), something I am definitely > going to look into when I have time. See a few GIS-demos at > > http://www.canvasdemos.com/type/applications/maps-applications/ > > and the GnuPlot library, implemented in Canvas: > > http://skuld.bmsc.washington.edu/~merritt/gnuplot/canvas_demos/ > > Perhaps an idea for 3D-MapServer: > http://www.canvasdemos.com/type/applications/3d-applications/ > or from the 3D section of the GnuPlot library above. > > Jan > > On 07/08/10 04:53, Bob Basques wrote: >> David, >> >> You could go with something in GeoMoose as well. There is a demo >> available that includes drawing tools, you would need to set up your >> backend storage though on your own, with your tool of choice, but >> these get you half way there. You can see a couple of demo sites with >> drawing/edit tools already configured here: >> >> http://geomoose.org/info/demo.html >> >> Both of these demos are available as downloads as well. >> >> bobb >> >> >> >> On 7/7/2010 8:50 PM, David Jantzen wrote: >>> Thanks Steve, I'll check out those projects. I just did a proof of >>> concept using the approach you describe with OpenLayers and WKT. >>> Very nifty stuff. Any gotchas to that approach? >>> >>> On Jul 7, 2010, at 6:34 PM, Lime, Steve D (DNR) wrote: >>> >>>> Take a look at FeatureServer (or perhaps the WFS-T support in >>>> GeoServer or Tiny WFS). Such tools would facilitate the writing of >>>> geometries >>>> to a data store (e.g. PostGIS) that MapServer could read from. Of >>>> course you could write your own tool to do that. We've used rails >>>> and serialized >>>> geometries to/from OpenLayers as WKT easy enough. >>>> >>>> Steve >>>> ________________________________________ >>>> From: mapserver-users-bounces at lists.osgeo.org >>>> [mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Jantzen >>>> [djantzen at ql2.com] >>>> Sent: Wednesday, July 07, 2010 6:13 PM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: Re: [mapserver-users] Allowing users to draw polygons on >>>> MapServer maps >>>> >>>> Hmm, this looks close to what I want: >>>> >>>> http://openlayers.org/dev/examples/draw-feature.html >>>> >>>> Any idea how I would export the polygons to a shapefile/database? >>>> What about loading them from a previous session? >>>> >>>> Thanks, >>>> David >>>> >>>> On Jul 7, 2010, at 2:50 PM, >>>> wrote: >>>> >>>>> On Jul 7, 2010, at 5:19 PM, ext David Jantzen wrote: >>>>> >>>>>> Hi All, >>>>>> >>>>>> I've never used MapServer before, so this is definitely a newbie >>>>>> question. I've read a bunch of the documentation and FAQ, but I >>>>>> haven't yet found a clear answer to this question: >>>>>> >>>>>> Can I use MapServer to host a map, on which my clients can draw >>>>>> polygons and export them as shapefiles or into a database? If >>>>>> not, is there another (open source) product that can? >>>>>> >>>>>> Seems like one of the scripting toolkits could do this, but not >>>>>> without significant custom front end work. >>>>> I think this is approximately accurate. Personally, I would >>>>> probably use >>>>> GeoDjango/OpenLayers for this kind of task. >>>>> >>>>> Regards, >>>>> -- >>>>> Christopher Schmidt >>>>> Nokia >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From chris.green at ibstv.co.uk Thu Jul 8 12:58:23 2010 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 8 Jul 2010 20:58:23 +0100 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <4C35E56D.80804@mapgears.com> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> <4C35B90B.70009@dmsolutions.ca> <006701cb1eaa$fac66250$f05326f0$@green@ibstv.co.uk> <4C35E56D.80804@mapgears.com> Message-ID: <008101cb1ed7$ec1397a0$c43ac6e0$@green@ibstv.co.uk> Daniel You hit the nail on the head...I had blindly followed the example and downloaded Mapserver 5.0.2. I suppose that does not support WFS version 1.1.0, which caused my problem. It should have been simple to re-download Mapserver 5.6.3, but actually I found that all attempts to download using: wget http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/ fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin failed with a 404 page not found error. Probably caused by my embarrassing lack of Linux knowledge - could I trouble you to guide me one more time to solve how to download the latest file please? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: 08 July 2010 15:49 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0 Chris Green wrote: > > A correction from my ISP: now they say that the Linux installation is > Fedora Core 7. Could this be the explanation of my problem? > Double-check the mapserv version that you are using through the Web. Even if you installed FGS, maybe you're not using the copy of mapserv you think you are. Use a URL like the following: http://your.server.com/cgi-bin/mapserv?test=1 And then do a "View Source"... you will see the MapServer version in the HTML source. -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From stefan.schwarzer at grid.unep.ch Fri Jul 9 02:04:53 2010 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 9 Jul 2010 11:04:53 +0200 Subject: [mapserver-users] How to use moveLayerUp Message-ID: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> Hi, I am working with PHP Mapscript. I would like to move in some secific cases a layer up so that it gets drawn after all the other layers have been drawn. I searched quite some time, but couldn't find any example that would show me how to implement this. Can anyone give me a hint? Thanks a lot, Stefan From dmorissette at mapgears.com Fri Jul 9 03:08:07 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 09 Jul 2010 06:08:07 -0400 Subject: [mapserver-users] How to use moveLayerUp In-Reply-To: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> References: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> Message-ID: <4C36F507.60006@mapgears.com> Stefan Schwarzer wrote: > Hi, > > I am working with PHP Mapscript. I would like to move in some secific cases a layer up so that it gets drawn after all the other layers have been drawn. > > I searched quite some time, but couldn't find any example that would show me how to implement this. Can anyone give me a hint? > Have a look at the mapObj's getlayersdrawingorder() and setlayersdrawingorder() methods -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Fri Jul 9 06:57:20 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 09 Jul 2010 09:57:20 -0400 Subject: [mapserver-users] MapServer 5.6.4 and 4.10.6 released with important security fixes Message-ID: <4C372AC0.20908@mapgears.com> The MapServer team announces the release of MapServer version 5.6.4 and 4.10.6. No new functionality has been added. 5.6.4 is a maintenance release that fixes a few issues (including a potential security vulnerability) that were found since the release of 5.6.3. The list of fixes since 5.6.3 is included at the end of this message. With respect to the 4.10.6 release, it only includes the security fixes described below. SECURITY FIXES: --------------- As part of a security audit of MapServer 5.6 it was reported that some of the mapserv CGI command-line arguments used by developers for debugging and testing the software constitute a security risk that could potentially be exploited remotely. We are not aware of any exploit for this issue at the moment, but it is strongly advised that users of past releases upgrade to the latest releases that disable the potentially insecure command-line args. We will not disclose any of the details here, but potential vulnerabilities were demonstrated to our team and it was recommended that we take actions to avoid command-line arguments in CGI programs. As a result and to create the smallest possible amount of disruption in point releases, for this release we simply disabled all mapserv command-line debug args by default, except for "-v" which is useful to get mapserv version on an installed system, as well as "-nh" and "QUERY_STRING=..." which add no risk and/or are used by msautotests and in some docs. This change does not affect functionality for regular mapserv CGI users working through HTTP, it only impacts developers that use those command-line arguments to debug and test the software. It should be noted that the use of command-line args for testing and debugging the software may be deprecated and replaced by a different mechanism in future releases. This release also fixes at least one important buffer overflow. Even if we release only 5.6.4 and 4.10.6 today, these security fixes have also been backported to all stable branches (going back to 4.10) in MapServer's Subversion (SVN) source code repository, so if you work from source and would like to patch your local MapServer source tree, the changeset (i.e. patch file) for each stable release can be obtained through the Trac ticket for each issue: - http://trac.osgeo.org/mapserver/ticket/3484 - http://trac.osgeo.org/mapserver/ticket/3485 Source and binary downloads: ---------------------------- The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated with binaries for the new 5.6.4 release in the next few hours. We are also in the process of submitting security patches to the Ubuntu and Debian supported distributions. Version 5.6.4 (2010-07-08): --------------------------- IMPORTANT SECURITY FIXES: - Disabled some insecure (and potentially exploitable) mapserv command-line debug arguments (#3485). The --enable-cgi-cl-debug-args configure switch can be used to re-enable them for devs who really cannot get away without them and who understand the potential security risk (not recommended for production servers or those who don't understand the security implications). - Fixed possible buffer overflow in msTmpFile() (#3484) Other fixes: - Fixed possible race condition with connectiontype WFS layers (#3137) - Modified mapserver units enum order to fix some problems with external packages (#3173) - fix blending of transparent layers with AGG on MSB archs (#3471) - Fixed imageObj->saveImage() sends unnecessary headers (#3418) - Correct PropertyName parsing for wfs post requests (#3235) - Ensure mapwmslayer.c does not unlink file before closing connection on it (#3451) - Fix security exception issue in C# with MSVC2010 (#3438) - Write out join CONNECTIONTYPE when saving a mapfile. (#3435) - Fixed attribute queries to use an extent stored (and cached) as part of the queryObj rather than the map->extent. (#3424) - Reverted msLayerWhichItems() to 5.4-like behavior although still supporting retrieving all items (#3356,#3342) - Grid layer: remove drawing of unnecessary gird lines (#3433) - OGC Filters for spatial dbs should be enclosed in parentheses (#3430) - Improve the handling of simple string comparisons for raster classified values (#3425) - Add the ogc namspace to filters generated by Mapserver (#3414) - Fix MS_NONSQUARE to work in mode=map (#3413) - Improve error message when loadQuery() filename extension check fails (#3302) - Fix GetLegendGraphic using keyimages (#3398) - Fix getFeatureInfo queries on WFS layers (#3403) - Fixed mapstring.c build problem related to errno (#3401). - Correct ungeoreferenced defaults via GetExtent() on raster layer (#3368) - More adjustments to how TLOCK_GDAL held around msGetGDALGeoTransform (#3368) From charlie.allgrove at connectionservices.com Fri Jul 9 07:44:39 2010 From: charlie.allgrove at connectionservices.com (Charlie Allgrove) Date: Fri, 9 Jul 2010 15:44:39 +0100 Subject: [mapserver-users] PHP mapscript querybyrect() Message-ID: <003901cb1f75$43a76670$caf63350$@allgrove@connectionservices.com> Hi Could anyone shed some light on a problem I have with querybyrect() using PHP Mapscript please? I'm trying to get the number of points within a known boundary (from a google map). The map file is apparently working, as I have it generating tiles for overlaying on a google map. The Shapefile is (for the sake of example) xxx.shp containing a layer 'xxx' (see ogrinfo output below) The PHP code I'm using is here, but I consistently get this error: Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. in /var/www/yyy/zzz/qryMap.php on line 44 The shapefiles are in /var/www/yyy/zzz/data/ (and the SHAPEPATH in the map file is set to 'data') I'm kinda new to this - so I might have missed something, but can anyone shed any light on what I've missed and/or am doing wrong? Many thanks in advance, Charlie PHP extract: $lstrMapPath = "/var/www/yyy/zzz/xxx.map"; $lobjMap = ms_newMapObj($lstrMapPath); $lobjRect = ms_newrectObj(); $lobjRect->setextent($lintBLLon,$lintBLLat,$lintTRLon,$lintTRLat); $l='xxx'; $lobjLayer = $lobjMap->getLayerByName($l); if(!$lobjLayer) { //die("Layer does not exist"); echo "Couldn't find layer {$l}
"; continue; } $lobjLayer->open(); echo "{$l}
"; $lobjLayer->queryByRect($lobjMap->extent); echo $lobjLayer->data."
"; //correctly shows the shapefilename $lintCount = $lobjLayer->getNumResults(); echo "$l: {$lintCount}
"; $lobjLayer->close();
OGRINFO: >ogrinfo xxx.shp -so xxx INFO: Open of `xxx.shp' using driver `ESRI Shapefile' successful. Layer name: xxx Geometry: Point Feature Count: 759947 Extent: (-8.146110, 49.892400) - (1.758210, 60.800800) Layer SRS WKT: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]] Postcode: String (80.0) NoSpace: String (80.0) Hubs: String (80.0) Long_WGS84: String (80.0) Lat_WGS84: String (80.0) From tchule at hotmail.com Fri Jul 9 08:16:29 2010 From: tchule at hotmail.com (Benoit PESTY) Date: Fri, 9 Jul 2010 15:16:29 +0000 Subject: [mapserver-users] WFS Error "column = 1" on msPostGISLayerGetShape Message-ID: Hello, I have a problem configuring a WFS Service. My layer is defined like this: LAYER NAME " forest_plot_layer" TYPE POLYGON STATUS ON METADATA WFS_TITLE "Forest Plots" "gml_include_items" "all" "gml_featureid" "cell_id" END DUMP TRUE CONNECTIONTYPE postgis CONNECTION xxxxxxxxxx DATA "the_geom FROM forest_plot_layer" CLASS NAME "Forest Plot" STYLE SIZE 3 COLOR 0 255 0 OUTLINECOLOR 0 255 0 END END PROJECTION "init=epsg:3035" ENDEND And I have the follwing error :------------------------------------------[Tue Jul 6 18:49:16 2010].228958 msPostGISLayerGetShape(): Query error. Error (ERROR: operator does not exist: character varying = integer LINE 1: ...l_id" from forest_plot_layer where "cell_id" = 1 ^HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.------------------------------------------ My "forest_plot_layer" table only has a "cell_id" column which is the PK and a "the_geom" column. The WMS service works correctly. Does anyone have an idea? Thanks, _________________________________________________________________ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri Jul 9 08:23:39 2010 From: andy at squeakycode.net (Andy Colson) Date: Fri, 09 Jul 2010 10:23:39 -0500 Subject: [mapserver-users] WFS Error "column = 1" on msPostGISLayerGetShape In-Reply-To: References: Message-ID: <4C373EFB.2000103@squeakycode.net> On 7/9/2010 10:16 AM, Benoit PESTY wrote: > Hello, > > I have a problem configuring a WFS Service. > > My layer is defined like this: > > LAYER > NAME " forest_plot_layer" > TYPE POLYGON > STATUS ON > METADATA > WFS_TITLE "Forest Plots" > "gml_include_items" "all" > "gml_featureid" "cell_id" > END > DUMP TRUE > CONNECTIONTYPE postgis > CONNECTION xxxxxxxxxx > DATA "the_geom FROM forest_plot_layer" > CLASS > NAME "Forest Plot" > STYLE > SIZE 3 > COLOR 0 255 0 > OUTLINECOLOR 0 255 0 > END > END > PROJECTION > "init=epsg:3035" > END > END > > > And I have the follwing error : > ------------------------------------------ > [Tue Jul 6 18:49:16 2010].228958 msPostGISLayerGetShape(): Query error. > Error (ERROR: operator does not exist: character varying = integer LINE > 1: ...l_id" from forest_plot_layer where "cell_id" = 1 > ^ > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts. > ------------------------------------------ > > My "forest_plot_layer" table only has a "cell_id" column which is the PK > and a "the_geom" column. > > The WMS service works correctly. > > Does anyone have an idea? > > Thanks, This: "gml_featureid" "cell_id" Seems to be the culprit. I'm not sure what that does, if you dont need it, delete it. If you do need it, then I'd guess changing your sql to this would help: DATA "the_geom FROM (select cell_id, the_geom from forest_plot_layer) as subq" ... unrelated, I see you dont have "using unique" on your DATA line... I believe it'll speed things up if you use it. (although I have never actually tested the claim). from: http://mapserver.org/input/vector/postgis.html -Andy From dmorissette at mapgears.com Fri Jul 9 09:12:43 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 09 Jul 2010 12:12:43 -0400 Subject: [mapserver-users] Thoughts on MapServer security audits, vulnerability reports and security releases Message-ID: <4C374A7B.3090401@mapgears.com> In case anyone is interested... thoughts from a developer on MapServer security audits, vulnerability reports and security releases and why that is a good thing for the project: http://dmorissette.blogspot.com/2010/07/mapserver-security-audits-and-security.html Daniel -- Daniel Morissette http://www.mapgears.com/ From boolean10001 at yahoo.com Fri Jul 9 09:15:00 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 9 Jul 2010 09:15:00 -0700 (PDT) Subject: [mapserver-users] WFS Error "column = 1" on msPostGISLayerGetShape In-Reply-To: <4C373EFB.2000103@squeakycode.net> References: <4C373EFB.2000103@squeakycode.net> Message-ID: <461906.62697.qm@web38204.mail.mud.yahoo.com> The cell_id column is of the integer type ? or character varying type ? It must be integer to be able to compare. IC Carlos Ruiz ________________________________ From: Andy Colson To: Benoit PESTY Cc: mapserver-users at lists.osgeo.org Sent: Fri, July 9, 2010 10:23:39 AM Subject: Re: [mapserver-users] WFS Error "column = 1" on msPostGISLayerGetShape On 7/9/2010 10:16 AM, Benoit PESTY wrote: > Hello, > > I have a problem configuring a WFS Service. > > My layer is defined like this: > > LAYER > NAME " forest_plot_layer" > TYPE POLYGON > STATUS ON > METADATA > WFS_TITLE "Forest Plots" > "gml_include_items" "all" > "gml_featureid" "cell_id" > END > DUMP TRUE > CONNECTIONTYPE postgis > CONNECTION xxxxxxxxxx > DATA "the_geom FROM forest_plot_layer" > CLASS > NAME "Forest Plot" > STYLE > SIZE 3 > COLOR 0 255 0 > OUTLINECOLOR 0 255 0 > END > END > PROJECTION > "init=epsg:3035" > END > END > > > And I have the follwing error : > ------------------------------------------ > [Tue Jul 6 18:49:16 2010].228958 msPostGISLayerGetShape(): Query error. > Error (ERROR: operator does not exist: character varying = integer LINE > 1: ...l_id" from forest_plot_layer where "cell_id" = 1 > ^ > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts. > ------------------------------------------ > > My "forest_plot_layer" table only has a "cell_id" column which is the PK > and a "the_geom" column. > > The WMS service works correctly. > > Does anyone have an idea? > > Thanks, This: "gml_featureid" "cell_id" Seems to be the culprit. I'm not sure what that does, if you dont need it, delete it. If you do need it, then I'd guess changing your sql to this would help: DATA "the_geom FROM (select cell_id, the_geom from forest_plot_layer) as subq" ... unrelated, I see you dont have "using unique" on your DATA line... I believe it'll speed things up if you use it. (although I have never actually tested the claim). from: http://mapserver.org/input/vector/postgis.html -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri Jul 9 09:19:48 2010 From: andy at squeakycode.net (Andy Colson) Date: Fri, 09 Jul 2010 11:19:48 -0500 Subject: [mapserver-users] WFS Error "column = 1" on msPostGISLayerGetShape In-Reply-To: <461906.62697.qm@web38204.mail.mud.yahoo.com> References: <4C373EFB.2000103@squeakycode.net> <461906.62697.qm@web38204.mail.mud.yahoo.com> Message-ID: <4C374C24.4010407@squeakycode.net> Oh... Yeah... I should pay more attention to the actual message: > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts. This was not a "field not found" message, I fixed the wrong thing.. oops. Good catch Carlos. -Andy On 7/9/2010 11:15 AM, Carlos Ruiz wrote: > The cell_id column is of the integer type ? or character varying type ? > It must be integer to be able to > compare. > > IC Carlos Ruiz > > ------------------------------------------------------------------------ > *From:* Andy Colson > *To:* Benoit PESTY > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Fri, July 9, 2010 10:23:39 AM > *Subject:* Re: [mapserver-users] WFS Error "column = 1" on > msPostGISLayerGetShape > > On 7/9/2010 10:16 AM, Benoit PESTY wrote: > > Hello, > > > > I have a problem configuring a WFS Service. > > > > My layer is defined like this: > > > > LAYER > > NAME " forest_plot_layer" > > TYPE POLYGON > > STATUS ON > > METADATA > > WFS_TITLE "Forest Plots" > > "gml_include_items" "all" > > "gml_featureid" "cell_id" > > END > > DUMP TRUE > > CONNECTIONTYPE postgis > > CONNECTION xxxxxxxxxx > > DATA "the_geom FROM forest_plot_layer" > > CLASS > > NAME "Forest Plot" > > STYLE > > SIZE 3 > > COLOR 0 255 0 > > OUTLINECOLOR 0 255 0 > > END > > END > > PROJECTION > > "init=epsg:3035" > > END > > END > > > > > > And I have the follwing error : > > ------------------------------------------ > > [Tue Jul 6 18:49:16 2010].228958 msPostGISLayerGetShape(): Query error. > > Error (ERROR: operator does not exist: character varying = integer LINE > > 1: ...l_id" from forest_plot_layer where "cell_id" = 1 > > ^ > > HINT: No operator matches the given name and argument type(s). You might > > need to add explicit type casts. > > ------------------------------------------ > > > > My "forest_plot_layer" table only has a "cell_id" column which is the PK > > and a "the_geom" column. > > > > The WMS service works correctly. > > > > Does anyone have an idea? > > > > Thanks, > > This: "gml_featureid" "cell_id" > > Seems to be the culprit. I'm not sure what that does, if you dont need > it, delete it. > > If you do need it, then I'd guess changing your sql to this would help: > > > DATA "the_geom FROM (select cell_id, the_geom from forest_plot_layer) as > subq" > > ... unrelated, I see you dont have "using unique" on your DATA line... I > believe it'll speed things up if you use it. (although I have never > actually tested the claim). > > from: http://mapserver.org/input/vector/postgis.html > > -Andy > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Fri Jul 9 11:02:15 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 09 Jul 2010 12:02:15 -0600 Subject: [mapserver-users] Using Open street map tiles via GDAL_WMS In-Reply-To: References: Message-ID: <4C376427.7000306@geoanalytic.com> James, Did you find a solution to this problem? I'd like to use OSM tiles in Mapscript to create an image for server-side creation of large format PDFs for printing, and found that mapserver+GDAL does not calculate the best TileLevel based on the output extents and image size. For example, in my XML file I have: 15 When using gdal_translate: gdal_translate -projwin -12412016 7714617 -12384098 7693893 -outsize 1461 1084 frmt_wms_osm_tms.xml test.tif GDAL requests Level 13 images, and produces a great looking image. However Mapserver's shp2img: shp2img -e -12412016 7693893 -12384098 7714617 -s 1461 1084 OSM.map -o test.png requests Level 14 (too high a resolution); many more tiles are requested and down-sampled, and the image is un-readable. Best Regards, Brent Fraser James Perrins wrote: > I've been trying to use Open street map tiles via a mapserver WMS > service displayed in OpenLayers. > > This is sort of working - in that I'm getting maps displayed and they > seem to be in the right position (as checked against other datasets). > > My issue is that the images are nowhere near as clear as the originals > from the Open Street map tiles. I've kept projections the same > throughout - and they don't appear to be being re-projected. The > images saved in the local cache (if enabled) are the same as from Open > Street Map. What appears to be happening is that mapserver is getting > images from (perhaps) a zoom level too high - and then re-sampling > these to produce the WMS output image - which then appears to have too > much detail displayed for its zoom level (if you understand what I'm > trying to say). > > Any ideas why this is happening - I've messed around with Bounding > boxes and image sizes - but it doesn't seem to make any difference. > > Thanks > James > > > MapFile extract: > > LAYER > NAME "OSM" > STATUS ON > TYPE RASTER > DATA "D:\Websites\OpenStreetMap\OSM.xml" > PROJECTION > "init=EPSG:900913" > END > END > > > > > http://tile.openstreetmap.org/${z}/${x}/${y}.png > > > -20037508.34 > 20037508.34 > 20037508.34 > -20037508.34 > 19 > 1 > 1 > top > > EPSG:900913 > 256 > 256 > 3 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Fri Jul 9 12:07:08 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 09 Jul 2010 15:07:08 -0400 Subject: [mapserver-users] PHP mapscript querybyrect() In-Reply-To: <003901cb1f75$43a76670$caf63350$@allgrove@connectionservices.com> References: <003901cb1f75$43a76670$caf63350$@allgrove@connectionservices.com> Message-ID: <4C37735C.7010801@mapgears.com> You didn't share your layer definition (mapfile). Make sure you have a template set, either at the layer level or in each of the classes you want to be able to query. Charlie Allgrove wrote: > Hi > > Could anyone shed some light on a problem I have with querybyrect() using > PHP Mapscript please? > > I'm trying to get the number of points within a known boundary (from a > google map). The map file is apparently working, as I have it generating > tiles for overlaying on a google map. The Shapefile is (for the sake of > example) xxx.shp containing a layer 'xxx' (see ogrinfo output below) > > The PHP code I'm using is here, but I consistently get this error: > Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. in > /var/www/yyy/zzz/qryMap.php on line 44 > > The shapefiles are in /var/www/yyy/zzz/data/ (and the SHAPEPATH in the map > file is set to 'data') > > I'm kinda new to this - so I might have missed something, but can anyone > shed any light on what I've missed and/or am doing wrong? > > Many thanks in advance, > > Charlie > > PHP extract: > > > $lstrMapPath = "/var/www/yyy/zzz/xxx.map"; > > $lobjMap = ms_newMapObj($lstrMapPath); > $lobjRect = ms_newrectObj(); > $lobjRect->setextent($lintBLLon,$lintBLLat,$lintTRLon,$lintTRLat); > > $l='xxx'; > > $lobjLayer = $lobjMap->getLayerByName($l); > if(!$lobjLayer) { > //die("Layer does not exist"); > echo "Couldn't find layer {$l}
"; > continue; > } > $lobjLayer->open(); > echo "{$l}
"; > $lobjLayer->queryByRect($lobjMap->extent); > echo $lobjLayer->data."
"; //correctly shows the shapefilename > $lintCount = $lobjLayer->getNumResults(); > echo "$l: {$lintCount}
"; > $lobjLayer->close(); >
> > OGRINFO: > >> ogrinfo xxx.shp -so xxx > INFO: Open of `xxx.shp' > using driver `ESRI Shapefile' successful. > > Layer name: xxx > Geometry: Point > Feature Count: 759947 > Extent: (-8.146110, 49.892400) - (1.758210, 60.800800) > Layer SRS WKT: > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137,298.257223563]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.017453292519943295]] > Postcode: String (80.0) > NoSpace: String (80.0) > Hubs: String (80.0) > Long_WGS84: String (80.0) > Lat_WGS84: String (80.0) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From bfraser at geoanalytic.com Fri Jul 9 12:40:29 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 09 Jul 2010 13:40:29 -0600 Subject: [mapserver-users] Using Open street map tiles via GDAL_WMS In-Reply-To: <4C376427.7000306@geoanalytic.com> References: <4C376427.7000306@geoanalytic.com> Message-ID: <4C377B2D.1040103@geoanalytic.com> It took a little debugging (the ultimate documentation), but the answer is to add: PROCESSING "OVERSAMPLE_RATIO=1" # the default is 2! PROCESSING "LOAD_FULL_RES_IMAGE=NO" to the layer in map file. Best Regards, Brent Fraser Brent Fraser wrote: > James, > > Did you find a solution to this problem? I'd like to use OSM tiles in > Mapscript to create an image for server-side creation of large format > PDFs for printing, and found that mapserver+GDAL does not calculate the > best TileLevel based on the output extents and image size. > > For example, in my XML file I have: > 15 > > When using gdal_translate: > > gdal_translate -projwin -12412016 7714617 -12384098 7693893 -outsize > 1461 1084 frmt_wms_osm_tms.xml test.tif > > GDAL requests Level 13 images, and produces a great looking image. > However Mapserver's shp2img: > > shp2img -e -12412016 7693893 -12384098 7714617 -s 1461 1084 OSM.map -o > test.png > > requests Level 14 (too high a resolution); many more tiles are requested > and down-sampled, and the image is un-readable. > > Best Regards, > Brent Fraser > > > James Perrins wrote: >> I've been trying to use Open street map tiles via a mapserver WMS >> service displayed in OpenLayers. >> >> This is sort of working - in that I'm getting maps displayed and they >> seem to be in the right position (as checked against other datasets). >> >> My issue is that the images are nowhere near as clear as the originals >> from the Open Street map tiles. I've kept projections the same >> throughout - and they don't appear to be being re-projected. The >> images saved in the local cache (if enabled) are the same as from Open >> Street Map. What appears to be happening is that mapserver is getting >> images from (perhaps) a zoom level too high - and then re-sampling >> these to produce the WMS output image - which then appears to have too >> much detail displayed for its zoom level (if you understand what I'm >> trying to say). >> >> Any ideas why this is happening - I've messed around with Bounding >> boxes and image sizes - but it doesn't seem to make any difference. >> >> Thanks >> James >> >> >> MapFile extract: >> >> LAYER >> NAME "OSM" >> STATUS ON >> TYPE RASTER >> DATA "D:\Websites\OpenStreetMap\OSM.xml" >> PROJECTION >> "init=EPSG:900913" >> END >> END >> >> >> >> >> >> http://tile.openstreetmap.org/${z}/${x}/${y}.png >> >> >> -20037508.34 >> 20037508.34 >> 20037508.34 >> -20037508.34 >> 19 >> 1 >> 1 >> top >> >> EPSG:900913 >> 256 >> 256 >> 3 >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Fri Jul 9 13:19:44 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 09 Jul 2010 16:19:44 -0400 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <008101cb1ed7$ec1397a0$c43ac6e0$@green@ibstv.co.uk> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> <4C35B90B.70009@dmsolutions.ca> <006701cb1eaa$fac66250$f05326f0$@green@ibstv.co.uk> <4C35E56D.80804@mapgears.com> <008101cb1ed7$ec1397a0$c43ac6e0$@green@ibstv.co.uk> Message-ID: <4C378460.1040202@mapgears.com> Chris Green wrote: > Daniel > > You hit the nail on the head...I had blindly followed the example and > downloaded Mapserver 5.0.2. I suppose that does not support WFS version > 1.1.0, which caused my problem. > > It should have been simple to re-download Mapserver 5.6.3, but actually I > found that all attempts to download using: > > wget http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/ > fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin > > failed with a 404 page not found error. Probably caused by my embarrassing > lack of Linux knowledge - could I trouble you to guide me one more time to > solve how to download the latest file please? > The latest release of FGS is 9.5. The available installers are at http://dl.maptools.org/dl/fgs/releases/9.5/self-installers/ So in your case you could use wget http://dl.maptools.org/dl/fgs/releases/9.5/self-installers/fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin Note that we just released MapServer 5.6.4 this morning, so after installing FGS you should upgrade your mapserver version to 5.6.4. I haven't done this in a while myself, but if I'm not mistaken, according to http://www.maptools.org/fgs/index.phtml?page=install.html you should have to do something like the following: cd /path/to/fgs . setenv.sh fgs stop fgs force-install mapserver-base:5.6.4 fgs force-install mapserver-php:5.6.4 fgs start If the command above does not find the package source, you may have to specify the URL to get it from as the last argument, e.g.: fgs force-install mapserver-base:5.6.4 http://dl.maptools.org/dl/fgs/releases/9.5/modules/ Daniel -- Daniel Morissette http://www.mapgears.com/ From chris.green at ibstv.co.uk Fri Jul 9 15:05:07 2010 From: chris.green at ibstv.co.uk (Chris Green) Date: Fri, 9 Jul 2010 23:05:07 +0100 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <4C378460.1040202@mapgears.com> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> <4C35B90B.70009@dmsolutions.ca> <006701cb1eaa$fac66250$f05326f0$@green@ibstv.co.uk> <4C35E56D.80804@mapgears.com> <008101cb1ed7$ec1397a0$c43ac6e0$@green@ibstv.co.uk> <4C378460.1040202@mapgears.com> Message-ID: <006601cb1fb2$cb404e20$61c0ea60$@green@ibstv.co.uk> Daniel Thank you I really appreciate you taking the time to explain that. I have followed your instructions and the upgrade seems to have installed OK (both mapserver-base 5.6.4 and mapserver-php 5.6.4). However when I try running my application I get an error log of: "/opt/fgs/www/cgi-bin/mapserv: /lib/libc.so.6: version `GLIBC_2.7' not found (required by /opt/fgs/lib/libjpeg.so.7)" Is GLIBC_2.7 supposed to be in Mapserver 4.6.4? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: 09 July 2010 21:20 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS Server does not support VERSION 1.1.0 Chris Green wrote: > Daniel > > You hit the nail on the head...I had blindly followed the example and > downloaded Mapserver 5.0.2. I suppose that does not support WFS version > 1.1.0, which caused my problem. > > It should have been simple to re-download Mapserver 5.6.3, but actually I > found that all attempts to download using: > > wget http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/ > fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin > > failed with a 404 page not found error. Probably caused by my embarrassing > lack of Linux knowledge - could I trouble you to guide me one more time to > solve how to download the latest file please? > The latest release of FGS is 9.5. The available installers are at http://dl.maptools.org/dl/fgs/releases/9.5/self-installers/ So in your case you could use wget http://dl.maptools.org/dl/fgs/releases/9.5/self-installers/fgs-mapserver_bas ic_5.6.3-fgs_9.5-linux-i386.bin Note that we just released MapServer 5.6.4 this morning, so after installing FGS you should upgrade your mapserver version to 5.6.4. I haven't done this in a while myself, but if I'm not mistaken, according to http://www.maptools.org/fgs/index.phtml?page=install.html you should have to do something like the following: cd /path/to/fgs . setenv.sh fgs stop fgs force-install mapserver-base:5.6.4 fgs force-install mapserver-php:5.6.4 fgs start If the command above does not find the package source, you may have to specify the URL to get it from as the last argument, e.g.: fgs force-install mapserver-base:5.6.4 http://dl.maptools.org/dl/fgs/releases/9.5/modules/ Daniel -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Jul 9 15:22:54 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 09 Jul 2010 19:22:54 -0300 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <006601cb1fb2$cb404e20$61c0ea60$@green@ibstv.co.uk> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> <4C35B90B.70009@dmsolutions.ca> <006701cb1eaa$fac66250$f05326f0$@green@ibstv.co.uk> <4C35E56D.80804@mapgears.com> <008101cb1ed7$ec1397a0$c43ac6e0$@green@ibstv.co.uk> <4C378460.1040202@mapgears.com> <006601cb1fb2$cb404e20$61c0ea60$@green@ibstv.co.uk> Message-ID: <4C37A13E.6030804@gatewaygeomatics.com> Chris Green wrote: > Daniel > > Thank you I really appreciate you taking the time to explain that. I have > followed your instructions and the upgrade seems to have installed OK (both > mapserver-base 5.6.4 and mapserver-php 5.6.4). However when I try running my > application I get an error log of: > > "/opt/fgs/www/cgi-bin/mapserv: /lib/libc.so.6: version `GLIBC_2.7' not found > (required by /opt/fgs/lib/libjpeg.so.7)" > > Is GLIBC_2.7 supposed to be in Mapserver 4.6.4? > Hi Chris, You should probably turn your attention now to the FGS email list (you can subscribe at http://lists.maptools.org/mailman/listinfo/foss-gis-suite/). You can ask questions there to FGS devs and users, or do a search for your problem; for example, I had hit similar issues recently: http://old.nabble.com/GLIBC-version-dependency-to28405451.html Have a nice weekend. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bob.basques at ci.stpaul.mn.us Sun Jul 11 02:26:33 2010 From: bob.basques at ci.stpaul.mn.us (Blammo) Date: Sun, 11 Jul 2010 04:26:33 -0500 Subject: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors? Message-ID: <4C398E49.3050909@ci.stpaul.mn.us> All, I've got a filter request working with DWITHIN but get seemingly weird returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get returns that I expect when using fractional "m" values. What other unit designations are honored? I don't see anything in the getCapabilities about units or the MapServer docs. Lastly, does MapServer support CQL (yet?), I saw references to this in my searching. Thanks bobb From yassefa at dmsolutions.ca Sun Jul 11 06:43:30 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Sun, 11 Jul 2010 09:43:30 -0400 Subject: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors? In-Reply-To: <4C398E49.3050909@ci.stpaul.mn.us> References: <4C398E49.3050909@ci.stpaul.mn.us> Message-ID: <4C39CA82.7020704@dmsolutions.ca> On 11/07/2010 5:26 AM, Blammo wrote: > All, > > I've got a filter request working with DWITHIN but get seemingly weird > returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get returns > that I expect when using fractional "m" values. > > What other unit designations are honored? I don't see anything in the > getCapabilities about units or the MapServer docs. > here are the units and abbreviations that can be used: - m or meters: can be used to indicate meters - km or kilometers: kilometers - NM: nauticalmiles - mi or miles : miles - in or inches : inches - ft or feet : feet - deg or dd: degree - px: pixels ticket was added to add this in the docs (http://trac.osgeo.org/mapserver/ticket/3488) > Lastly, does MapServer support CQL (yet?), I saw references to this in > my searching. > Not that I am aware of. best regards -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bob.basques at ci.stpaul.mn.us Sun Jul 11 14:40:02 2010 From: bob.basques at ci.stpaul.mn.us (Blammo) Date: Sun, 11 Jul 2010 16:40:02 -0500 Subject: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors? In-Reply-To: <4C39CA82.7020704@dmsolutions.ca> References: <4C398E49.3050909@ci.stpaul.mn.us> <4C39CA82.7020704@dmsolutions.ca> Message-ID: <4C3A3A32.7040909@ci.stpaul.mn.us> Ok, I got another related question . . On a DWithin return list, any chance that the results are ordered by distance from a point, closest first? Or isn't this something I can depend on from MapServer? bobb I'll need to do a couple of tests and see what happensOn 7/11/2010 8:43 AM, Yewondwossen Assefa wrote: > On 11/07/2010 5:26 AM, Blammo wrote: >> All, >> >> I've got a filter request working with DWITHIN but get seemingly >> weird returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get >> returns that I expect when using fractional "m" values. >> >> What other unit designations are honored? I don't see anything in >> the getCapabilities about units or the MapServer docs. >> > here are the units and abbreviations that can be used: > - m or meters: can be used to indicate meters > - km or kilometers: kilometers > - NM: nauticalmiles > - mi or miles : miles > - in or inches : inches > - ft or feet : feet > - deg or dd: degree > - px: pixels > > ticket was added to add this in the docs > (http://trac.osgeo.org/mapserver/ticket/3488) > >> Lastly, does MapServer support CQL (yet?), I saw references to this >> in my searching. >> > Not that I am aware of. > > > best regards > > From bob.basques at ci.stpaul.mn.us Sun Jul 11 15:02:21 2010 From: bob.basques at ci.stpaul.mn.us (Blammo) Date: Sun, 11 Jul 2010 17:02:21 -0500 Subject: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors? In-Reply-To: <4C39CA82.7020704@dmsolutions.ca> References: <4C398E49.3050909@ci.stpaul.mn.us> <4C39CA82.7020704@dmsolutions.ca> Message-ID: <4C3A3F6D.9030707@ci.stpaul.mn.us> More info, Using this service call: https://www.sharedgeo.org/MNGEO-ro/public/ows?SERVICE=wfs&VERSION=1.1.0&REQUEST=getFeature&TYPENAME=layer_3&FILTER=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-93.093,44.955%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27f%27%3E0.0438%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E I tried, FT, FEET, Ft, ft, Feet and f, (this last, the "f" is the only thing that changed the results, but it only increased the return from three to six points): I used the same unit distance of 0.0438, which the majority of time returns three points. These points in ground units are actually within ~2360ft of each other. I have no idea how the 0.0438 number relates to that. Is it possibly related to the LAT/LON coordinate system? This is working enough for me to get through my current stage of development, I'm just trying to get a handle on how the filter units are supposed to relate to the map units. Maybe DWithin has a PROJ option or something?? Thanks bobb On 7/11/2010 8:43 AM, Yewondwossen Assefa wrote: > On 11/07/2010 5:26 AM, Blammo wrote: >> All, >> >> I've got a filter request working with DWITHIN but get seemingly >> weird returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get >> returns that I expect when using fractional "m" values. >> >> What other unit designations are honored? I don't see anything in >> the getCapabilities about units or the MapServer docs. >> > here are the units and abbreviations that can be used: > - m or meters: can be used to indicate meters > - km or kilometers: kilometers > - NM: nauticalmiles > - mi or miles : miles > - in or inches : inches > - ft or feet : feet > - deg or dd: degree > - px: pixels > > ticket was added to add this in the docs > (http://trac.osgeo.org/mapserver/ticket/3488) > >> Lastly, does MapServer support CQL (yet?), I saw references to this >> in my searching. >> > Not that I am aware of. > > > best regards > > From Todd.Harris at landgate.wa.gov.au Sun Jul 11 21:54:58 2010 From: Todd.Harris at landgate.wa.gov.au (Todd Harris) Date: Mon, 12 Jul 2010 12:54:58 +0800 Subject: [mapserver-users] getlegendgraphic error with GROUP layers Message-ID: <82C223B25A75614D9F884563CE191C140838B0D0@MAIL.dli.wa.gov.au> Hi all, I'm hoping someone can help. I'm getting this error when requesting getlegendgraphic with GROUP layers (MapServer-5.2.3): ServiceException code="LayerNotDefined">msWMSGetLegendGraphic(): WMS server error. Invalid layer given in the LAYER parameter. I cannot find a solution - can someone please help? Kind regards Todd This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate?s liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Sun Jul 11 23:20:14 2010 From: stephan.holl at intevation.de (Stephan Holl) Date: Mon, 12 Jul 2010 08:20:14 +0200 Subject: [mapserver-users] getlegendgraphic error with GROUP layers In-Reply-To: <82C223B25A75614D9F884563CE191C140838B0D0@MAIL.dli.wa.gov.au> References: <82C223B25A75614D9F884563CE191C140838B0D0@MAIL.dli.wa.gov.au> Message-ID: <20100712082014.75f7a31b@thoe.hq.intevation.de> Hello Todd, "Todd Harris" , [20100712 - 12:54:58] > Hi all, I'm hoping someone can help. > > > > I'm getting this error when requesting getlegendgraphic with GROUP > layers (MapServer-5.2.3): > > > > ServiceException code="LayerNotDefined">msWMSGetLegendGraphic(): WMS > server error. Invalid layer given in the LAYER > parameter. AFAIK this is not implemented yet. See [1]. @Assefa: Do you have a more detailed implementation plan for this issue? I am also highly interested in this feature. Best regards Stephan [1] http://trac.osgeo.org/mapserver/ticket/3411 > > > > I cannot find a solution - can someone please help? > > > > Kind regards > > Todd > > > > > This e-mail and any files transmitted with it are intended only for > the use of the addressee(s). It may contain information that is > confidential and privileged, in which case neither is intended to be > waived or lost by mistaken delivery to you. If you are not an > intended recipient, any use, interference with, disclosure, > distribution or copying of this material is unauthorised and > prohibited. If you receive this e-mail in error, please notify the > sender by return e-mail and delete the message and any attachments > from your system. Unless specifically indicated, this e-mail does not > constitute formal advice or commitment by the sender or the Western > Australian Land Information Authority (Landgate). Information in this > message not relating to the official business of Landgate shall be > understood as neither given nor endorsed by it. It is your > responsibility to check any attachments for viruses and defects > before opening or sending them on. Landgate?s liability is limited to > re-supplying affected attachments. -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From tchule at hotmail.com Mon Jul 12 00:59:37 2010 From: tchule at hotmail.com (Benoit PESTY) Date: Mon, 12 Jul 2010 07:59:37 +0000 Subject: [mapserver-users] WFS Error "column = 1" on msPostGISLayerGetShape In-Reply-To: <4C374C24.4010407@squeakycode.net> References: <4C373EFB.2000103@squeakycode.net> <461906.62697.qm@web38204.mail.mud.yahoo.com>, <4C374C24.4010407@squeakycode.net> Message-ID: Thanks for the answers, Apparently removing the "gml_featureid" "cell_id" line doesn't change anything. I suppose that the PK is detected and used. I have solved the problem by adding "USING UNIQUE oid". Thanks, > Date: Fri, 9 Jul 2010 11:19:48 -0500 > From: andy at squeakycode.net > To: boolean10001 at yahoo.com > CC: tchule at hotmail.com; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WFS Error "column = 1" on msPostGISLayerGetShape > > Oh... Yeah... I should pay more attention to the actual message: > > > HINT: No operator matches the given name and argument type(s). You might > > need to add explicit type casts. > > This was not a "field not found" message, I fixed the wrong thing.. > oops. Good catch Carlos. > > -Andy > > > > On 7/9/2010 11:15 AM, Carlos Ruiz wrote: > > The cell_id column is of the integer type ? or character varying type ? > > It must be integer to be able to > > compare. > > > > IC Carlos Ruiz > > > > ------------------------------------------------------------------------ > > *From:* Andy Colson > > *To:* Benoit PESTY > > *Cc:* mapserver-users at lists.osgeo.org > > *Sent:* Fri, July 9, 2010 10:23:39 AM > > *Subject:* Re: [mapserver-users] WFS Error "column = 1" on > > msPostGISLayerGetShape > > > > On 7/9/2010 10:16 AM, Benoit PESTY wrote: > > > Hello, > > > > > > I have a problem configuring a WFS Service. > > > > > > My layer is defined like this: > > > > > > LAYER > > > NAME " forest_plot_layer" > > > TYPE POLYGON > > > STATUS ON > > > METADATA > > > WFS_TITLE "Forest Plots" > > > "gml_include_items" "all" > > > "gml_featureid" "cell_id" > > > END > > > DUMP TRUE > > > CONNECTIONTYPE postgis > > > CONNECTION xxxxxxxxxx > > > DATA "the_geom FROM forest_plot_layer" > > > CLASS > > > NAME "Forest Plot" > > > STYLE > > > SIZE 3 > > > COLOR 0 255 0 > > > OUTLINECOLOR 0 255 0 > > > END > > > END > > > PROJECTION > > > "init=epsg:3035" > > > END > > > END > > > > > > > > > And I have the follwing error : > > > ------------------------------------------ > > > [Tue Jul 6 18:49:16 2010].228958 msPostGISLayerGetShape(): Query error. > > > Error (ERROR: operator does not exist: character varying = integer LINE > > > 1: ...l_id" from forest_plot_layer where "cell_id" = 1 > > > ^ > > > HINT: No operator matches the given name and argument type(s). You might > > > need to add explicit type casts. > > > ------------------------------------------ > > > > > > My "forest_plot_layer" table only has a "cell_id" column which is the PK > > > and a "the_geom" column. > > > > > > The WMS service works correctly. > > > > > > Does anyone have an idea? > > > > > > Thanks, > > > > This: "gml_featureid" "cell_id" > > > > Seems to be the culprit. I'm not sure what that does, if you dont need > > it, delete it. > > > > If you do need it, then I'd guess changing your sql to this would help: > > > > > > DATA "the_geom FROM (select cell_id, the_geom from forest_plot_layer) as > > subq" > > > > ... unrelated, I see you dont have "using unique" on your DATA line... I > > believe it'll speed things up if you use it. (although I have never > > actually tested the claim). > > > > from: http://mapserver.org/input/vector/postgis.html > > > > -Andy > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.neumann at carto.net Mon Jul 12 05:58:16 2010 From: a.neumann at carto.net (Andreas Neumann) Date: Mon, 12 Jul 2010 14:58:16 +0200 (CEST) Subject: [mapserver-users] UMN + Postsgis, features skipped Message-ID: <20906.193.246.86.39.1278939496.squirrel@webmail.carto.net> Hi all, I have troubles with the UMN/Postgis combo. When I just draw the layer with a single class, it draws fine, but as soon as I use classification with an EXPRESSION (simple string comparison), a lot of features are skipped. Attached I am sending a mapfile with just one class (buildings from a landcover table). Most buildings are skipped, only a few are drawn. I have no idea why. The same table draws fine without problems in QGIS. Any idea why the classification is skipping many features? Thanks a lot, Andreas -- Andreas Neumann http://www.carto.net/neumann/ http://www.svgopen.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: uster_avwms_landcover_color.map Type: application/octet-stream Size: 2923 bytes Desc: not available URL: From frankhevans at yahoo.com Mon Jul 12 06:08:48 2010 From: frankhevans at yahoo.com (turtlewax) Date: Mon, 12 Jul 2010 06:08:48 -0700 (PDT) Subject: [mapserver-users] WCS error. Requested BBOX (...) outside requested coverage Message-ID: <1278940128266-5282810.post@n2.nabble.com> Thanks in advance for any guidance. I have my own server, but I'm using the server referenced in the documentation to get a handle on expected behavior. ================================== my request. ================================== http://maps.dnr.state.mn.us/cgi-bin/mapserv50? MAP=/usr/local/www/docs_maps/mapserver_demos/wcs/demo.map& SERVICE=WCS&VERSION=1.0.0& REQUEST=GetCoverage& COVERAGE=modis& CRS=EPSG:26915& bbox=159707,4597895,1400207,5501395& Width=500& Height=500 ================================== Server Response ================================== msWCSGetCoverage(): WCS server error. Requested BBOX (-97.7071758865421,41.0324719184183,-80.6778361148771,49.6650665681236) is outside requested coverage BBOX (159707,4597895,1400207,5501395) ================================== 1. To keep things simple, I'm requesting coverage in the layers native CRS. 2. To keep things simple, I'm using the BBOX described in the "DescribeCovearge" 159707 4597895 1400207 5501395 At this point I'm trying to perform a pretty basic "Hello World" WCS operation. I've considered the possibility that there might be a problem with this server, but I've set up my own local map file and I'm seeing similar behavior. Hence, the most likely explanation is that I'm using bad syntax in my request. Thanks in advance for any advice... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WCS-error-Requested-BBOX-outside-requested-coverage-tp5282810p5282810.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mschulz at webgis.de Mon Jul 12 06:31:55 2010 From: mschulz at webgis.de (Michael Schulz) Date: Mon, 12 Jul 2010 15:31:55 +0200 Subject: [mapserver-users] UMN + Postsgis, features skipped In-Reply-To: <20906.193.246.86.39.1278939496.squirrel@webmail.carto.net> References: <20906.193.246.86.39.1278939496.squirrel@webmail.carto.net> Message-ID: Hi Andreas, could you try the map-file with the layer EXTENT removed and see if that improves the situation? I seem to remember having a similar problem, with the layer extent parameter, that is generated by the QGIS mapfile exporter. Cheers, Michael 2010/7/12 Andreas Neumann : > Hi all, > > I have troubles with the UMN/Postgis combo. When I just draw the layer > with a single class, it draws fine, but as soon as I use classification > with an EXPRESSION (simple string comparison), a lot of features are > skipped. > > Attached I am sending a mapfile with just one class (buildings from a > landcover table). Most buildings are skipped, only a few are drawn. > > I have no idea why. > > The same table draws fine without problems in QGIS. > > Any idea why the classification is skipping many features? > > Thanks a lot, > Andreas > > -- > Andreas Neumann > http://www.carto.net/neumann/ > http://www.svgopen.org/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From a.neumann at carto.net Mon Jul 12 06:36:46 2010 From: a.neumann at carto.net (Andreas Neumann) Date: Mon, 12 Jul 2010 15:36:46 +0200 (CEST) Subject: [mapserver-users] UMN + Postsgis, features skipped In-Reply-To: References: <20906.193.246.86.39.1278939496.squirrel@webmail.carto.net> Message-ID: <16315.193.246.86.39.1278941806.squirrel@webmail.carto.net> ok - the problem is solved. The source table was a view and it turned out that some fields had an invisible line break at the end of the string and therefore did not match with the expression. In the table they visually looked the same, but one did not immediately see the line break at the end ... All fine now and sorry for the fuss ... Thanks for trying to help! Andreas On Mon, July 12, 2010 3:31 pm, Michael Schulz wrote: > Hi Andreas, > > could you try the map-file with the layer EXTENT removed and see if > that improves the situation? I seem to remember having a similar > problem, with the layer extent parameter, that is generated by the > QGIS mapfile exporter. > > Cheers, Michael > > > 2010/7/12 Andreas Neumann : >> Hi all, >> >> I have troubles with the UMN/Postgis combo. When I just draw the layer >> with a single class, it draws fine, but as soon as I use classification >> with an EXPRESSION (simple string comparison), a lot of features are >> skipped. >> >> Attached I am sending a mapfile with just one class (buildings from a >> landcover table). Most buildings are skipped, only a few are drawn. >> >> I have no idea why. >> >> The same table draws fine without problems in QGIS. >> >> Any idea why the classification is skipping many features? >> >> Thanks a lot, >> Andreas >> >> -- >> Andreas Neumann >> http://www.carto.net/neumann/ >> http://www.svgopen.org/ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Aufwind durch Wissen! > > Qualifizierte Open Source Schulungen bei der > http://www.foss-academy.eu/ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > Schwimmbadstra?e 2 > D-79100? Freiburg i. Br. > > Tel:? +49 (0)761 705798-102 > Tel:? +49 (0)761 705798-0 > Fax: +49 (0)761 705798-09 > > http://www.webgis.de / http://www.zopecms.de > -------------------------------------------------------------- > Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck > Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Andreas Neumann http://www.carto.net/neumann/ http://www.svgopen.org/ From jmckenna at gatewaygeomatics.com Mon Jul 12 06:45:24 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 12 Jul 2010 10:45:24 -0300 Subject: [mapserver-users] UMN + Postsgis, features skipped In-Reply-To: <16315.193.246.86.39.1278941806.squirrel@webmail.carto.net> References: <20906.193.246.86.39.1278939496.squirrel@webmail.carto.net> <16315.193.246.86.39.1278941806.squirrel@webmail.carto.net> Message-ID: <4C3B1C74.1090007@gatewaygeomatics.com> For the record, when I hit this wall, I always view what features are returned by using the ogrinfo commandline utility (and therefore cutting out the possibilities of problems specific to MapServer). In this case you can pass expressions through the '-sql' switch in ogrinfo: ogrinfo PG:"host=127.0.0.1 user=postgres password=postgres dbname=canada port=5432" -sql "select blah from blah where blah=blah" Happy mapserving. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Andreas Neumann wrote: > ok - the problem is solved. > > The source table was a view and it turned out that some fields had an > invisible line break at the end of the string and therefore did not match > with the expression. In the table they visually looked the same, but one > did not immediately see the line break at the end ... > > All fine now and sorry for the fuss ... > > Thanks for trying to help! > Andreas > > On Mon, July 12, 2010 3:31 pm, Michael Schulz wrote: >> Hi Andreas, >> >> could you try the map-file with the layer EXTENT removed and see if >> that improves the situation? I seem to remember having a similar >> problem, with the layer extent parameter, that is generated by the >> QGIS mapfile exporter. >> >> Cheers, Michael >> >> >> 2010/7/12 Andreas Neumann : >>> Hi all, >>> >>> I have troubles with the UMN/Postgis combo. When I just draw the layer >>> with a single class, it draws fine, but as soon as I use classification >>> with an EXPRESSION (simple string comparison), a lot of features are >>> skipped. >>> >>> Attached I am sending a mapfile with just one class (buildings from a >>> landcover table). Most buildings are skipped, only a few are drawn. >>> >>> I have no idea why. >>> >>> The same table draws fine without problems in QGIS. >>> >>> Any idea why the classification is skipping many features? >>> >>> Thanks a lot, >>> Andreas >>> >>> -- >>> Andreas Neumann >>> http://www.carto.net/neumann/ >>> http://www.svgopen.org/ From charlie.allgrove at connectionservices.com Mon Jul 12 06:59:20 2010 From: charlie.allgrove at connectionservices.com (Charlie Allgrove) Date: Mon, 12 Jul 2010 14:59:20 +0100 Subject: [mapserver-users] PHP mapscript querybyrect() In-Reply-To: <4C37735C.7010801@mapgears.com> References: <003901cb1f75$43a76670$caf63350$@allgrove@connectionservices.com> <4C37735C.7010801@mapgears.com> Message-ID: <00d101cb21ca$6e171cf0$4a4556d0$@allgrove@connectionservices.com> Many thanks for that. Added a TEMPLATE section to the layer and it's burst into life. Many thanks Charlie -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: 09 July 2010 20:07 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP mapscript querybyrect() You didn't share your layer definition (mapfile). Make sure you have a template set, either at the layer level or in each of the classes you want to be able to query. Charlie Allgrove wrote: > Hi > > Could anyone shed some light on a problem I have with querybyrect() using > PHP Mapscript please? > > I'm trying to get the number of points within a known boundary (from a > google map). The map file is apparently working, as I have it generating > tiles for overlaying on a google map. The Shapefile is (for the sake of > example) xxx.shp containing a layer 'xxx' (see ogrinfo output below) > > The PHP code I'm using is here, but I consistently get this error: > Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. in > /var/www/yyy/zzz/qryMap.php on line 44 > > The shapefiles are in /var/www/yyy/zzz/data/ (and the SHAPEPATH in the map > file is set to 'data') > > I'm kinda new to this - so I might have missed something, but can anyone > shed any light on what I've missed and/or am doing wrong? > > Many thanks in advance, > > Charlie > > PHP extract: > > > $lstrMapPath = "/var/www/yyy/zzz/xxx.map"; > > $lobjMap = ms_newMapObj($lstrMapPath); > $lobjRect = ms_newrectObj(); > $lobjRect->setextent($lintBLLon,$lintBLLat,$lintTRLon,$lintTRLat); > > $l='xxx'; > > $lobjLayer = $lobjMap->getLayerByName($l); > if(!$lobjLayer) { > //die("Layer does not exist"); > echo "Couldn't find layer {$l}
"; > continue; > } > $lobjLayer->open(); > echo "{$l}
"; > $lobjLayer->queryByRect($lobjMap->extent); > echo $lobjLayer->data."
"; //correctly shows the shapefilename > $lintCount = $lobjLayer->getNumResults(); > echo "$l: {$lintCount}
"; > $lobjLayer->close(); >
> > OGRINFO: > >> ogrinfo xxx.shp -so xxx > INFO: Open of `xxx.shp' > using driver `ESRI Shapefile' successful. > > Layer name: xxx > Geometry: Point > Feature Count: 759947 > Extent: (-8.146110, 49.892400) - (1.758210, 60.800800) > Layer SRS WKT: > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137,298.257223563]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.017453292519943295]] > Postcode: String (80.0) > NoSpace: String (80.0) > Hubs: String (80.0) > Long_WGS84: String (80.0) > Lat_WGS84: String (80.0) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From yassefa at dmsolutions.ca Mon Jul 12 07:30:49 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 12 Jul 2010 10:30:49 -0400 Subject: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors? In-Reply-To: <4C3A3A32.7040909@ci.stpaul.mn.us> References: <4C398E49.3050909@ci.stpaul.mn.us> <4C39CA82.7020704@dmsolutions.ca> <4C3A3A32.7040909@ci.stpaul.mn.us> Message-ID: <4C3B2719.3080105@dmsolutions.ca> On 11/07/2010 5:40 PM, Blammo wrote: > Ok, > > I got another related question . . > > On a DWithin return list, any chance that the results are ordered by > distance from a point, closest first? Or isn't this something I can > depend on from MapServer? > There is no guarantee on that. The search is done within the distance and all points that fit the criteria are returned in the order they are found. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Mon Jul 12 07:41:12 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 12 Jul 2010 10:41:12 -0400 Subject: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors? In-Reply-To: <4C3A3F6D.9030707@ci.stpaul.mn.us> References: <4C398E49.3050909@ci.stpaul.mn.us> <4C39CA82.7020704@dmsolutions.ca> <4C3A3F6D.9030707@ci.stpaul.mn.us> Message-ID: <4C3B2988.90302@dmsolutions.ca> On 11/07/2010 6:02 PM, Blammo wrote: > More info, > > Using this service call: > > https://www.sharedgeo.org/MNGEO-ro/public/ows?SERVICE=wfs&VERSION=1.1.0&REQUEST=getFeature&TYPENAME=layer_3&FILTER=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-93.093,44.955%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27f%27%3E0.0438%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E > > > I tried, FT, FEET, Ft, ft, Feet and f, (this last, the "f" is the only > thing that changed the results, but it only increased the return from > three to six points): > > I used the same unit distance of 0.0438, which the majority of time > returns three points. These points in ground units are actually within > ~2360ft of each other. I have no idea how the 0.0438 number relates > to that. Is it possibly related to the LAT/LON coordinate system? > > This is working enough for me to get through my current stage of > development, I'm just trying to get a handle on how the filter units > are supposed to relate to the map units. Maybe DWithin has a PROJ > option or something?? > When the units in unrecognized (like "f" in this case), It should be ignored the and distance is assumed to be the same units as the gml element that was part of the query. You can add a projection to the gml element using the srsrName element. best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From boolean10001 at yahoo.com Mon Jul 12 07:44:24 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 12 Jul 2010 07:44:24 -0700 (PDT) Subject: [mapserver-users] UMN + Postsgis, features skipped In-Reply-To: <20906.193.246.86.39.1278939496.squirrel@webmail.carto.net> References: <20906.193.246.86.39.1278939496.squirrel@webmail.carto.net> Message-ID: <631555.45487.qm@web38208.mail.mud.yahoo.com> Andreas, First, try to run SELECT DISTINCT(type) FROM "av_mopublic"."land_cover_lcsurface" to ensure that all the types that you're classifying exists. I know this sounds silly but we must check if the type column contains all the types you're looking for. When some features are missing, it means that the expression type doesn't exists and then, it's not rendered. I've noticed that expressions are case sensitive, and sometimes, it doesn't works with special characters, maybe this could be happening too. Cheers from M?xico IC Carlos Ruiz ________________________________ From: Andreas Neumann To: mapserver-users at lists.osgeo.org Sent: Mon, July 12, 2010 7:58:16 AM Subject: [mapserver-users] UMN + Postsgis, features skipped Hi all, I have troubles with the UMN/Postgis combo. When I just draw the layer with a single class, it draws fine, but as soon as I use classification with an EXPRESSION (simple string comparison), a lot of features are skipped. Attached I am sending a mapfile with just one class (buildings from a landcover table). Most buildings are skipped, only a few are drawn. I have no idea why. The same table draws fine without problems in QGIS. Any idea why the classification is skipping many features? Thanks a lot, Andreas -- Andreas Neumann http://www.carto.net/neumann/ http://www.svgopen.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Mon Jul 12 07:45:44 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 12 Jul 2010 10:45:44 -0400 Subject: [mapserver-users] getlegendgraphic error with GROUP layers In-Reply-To: <20100712082014.75f7a31b@thoe.hq.intevation.de> References: <82C223B25A75614D9F884563CE191C140838B0D0@MAIL.dli.wa.gov.au> <20100712082014.75f7a31b@thoe.hq.intevation.de> Message-ID: <4C3B2A98.8050807@dmsolutions.ca> > @Assefa: Do you have a more detailed implementation plan for this > issue? I am also highly interested in this feature. > > Best regards > > Stephan > > [1] http://trac.osgeo.org/mapserver/ticket/3411 > > It is still planned to be addressed before 6.0. I am not sure yet about the release date but I intend to spend some time before that to close bugs tagged for 6.0. regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From a.neumann at carto.net Mon Jul 12 07:57:42 2010 From: a.neumann at carto.net (Andreas Neumann) Date: Mon, 12 Jul 2010 16:57:42 +0200 (CEST) Subject: [mapserver-users] UMN + Postsgis, features skipped In-Reply-To: <4C3B1C74.1090007@gatewaygeomatics.com> References: <20906.193.246.86.39.1278939496.squirrel@webmail.carto.net> <16315.193.246.86.39.1278941806.squirrel@webmail.carto.net> <4C3B1C74.1090007@gatewaygeomatics.com> Message-ID: <31908.193.246.86.39.1278946662.squirrel@webmail.carto.net> Thanks for the hint, Jeff! Andreas On Mon, July 12, 2010 3:45 pm, Jeff McKenna wrote: > For the record, when I hit this wall, I always view what features are > returned by using the ogrinfo commandline utility (and therefore cutting > out the possibilities of problems specific to MapServer). In this case > you can pass expressions through the '-sql' switch in ogrinfo: > > > ogrinfo PG:"host=127.0.0.1 user=postgres password=postgres > dbname=canada port=5432" -sql "select blah from blah where blah=blah" > > Happy mapserving. > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > Andreas Neumann wrote: >> ok - the problem is solved. >> >> The source table was a view and it turned out that some fields had an >> invisible line break at the end of the string and therefore did not >> match >> with the expression. In the table they visually looked the same, but one >> did not immediately see the line break at the end ... >> >> All fine now and sorry for the fuss ... >> >> Thanks for trying to help! >> Andreas >> >> On Mon, July 12, 2010 3:31 pm, Michael Schulz wrote: >>> Hi Andreas, >>> >>> could you try the map-file with the layer EXTENT removed and see if >>> that improves the situation? I seem to remember having a similar >>> problem, with the layer extent parameter, that is generated by the >>> QGIS mapfile exporter. >>> >>> Cheers, Michael >>> >>> >>> 2010/7/12 Andreas Neumann : >>>> Hi all, >>>> >>>> I have troubles with the UMN/Postgis combo. When I just draw the layer >>>> with a single class, it draws fine, but as soon as I use >>>> classification >>>> with an EXPRESSION (simple string comparison), a lot of features are >>>> skipped. >>>> >>>> Attached I am sending a mapfile with just one class (buildings from a >>>> landcover table). Most buildings are skipped, only a few are drawn. >>>> >>>> I have no idea why. >>>> >>>> The same table draws fine without problems in QGIS. >>>> >>>> Any idea why the classification is skipping many features? >>>> >>>> Thanks a lot, >>>> Andreas >>>> >>>> -- >>>> Andreas Neumann >>>> http://www.carto.net/neumann/ >>>> http://www.svgopen.org/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Andreas Neumann http://www.carto.net/neumann/ http://www.svgopen.org/ From ricardorodot02 at gmail.com Mon Jul 12 12:01:31 2010 From: ricardorodot02 at gmail.com (=?ISO-8859-1?Q?Ricardo_Rodr=EDguez?=) Date: Mon, 12 Jul 2010 14:01:31 -0500 Subject: [mapserver-users] how creating wmc layer Message-ID: hello all, I have a question how you can quickly generate WMC Web Map Context Ricardo Rodr?guez Univalle -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Mon Jul 12 12:06:11 2010 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Mon, 12 Jul 2010 15:06:11 -0400 Subject: [mapserver-users] how creating wmc layer In-Reply-To: References: Message-ID: > hello all, I have a question how you can quickly generate WMC > Web Map Context > Check out http://www.mapserver.org/ogc/mapcontext.html for more information. ..Tom From stefan.schwarzer at grid.unep.ch Mon Jul 12 22:48:55 2010 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Mon, 12 Jul 2010 22:48:55 -0700 (PDT) Subject: [mapserver-users] Re: How to use moveLayerUp In-Reply-To: <4C36F507.60006@mapgears.com> References: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> <4C36F507.60006@mapgears.com> Message-ID: <1279000135986-5286068.post@n2.nabble.com> Daniel Morissette wrote: > > Have a look at the mapObj's getlayersdrawingorder() and > setlayersdrawingorder() methods Hmm... searched around, but couldn't really find a working example. Seems that hardly anyone is using these calls - or not facing problems with them... I do understand a little bit what this calls are supposed to do, but don't really see how to implement this. And especially, because I want only one layer to be moved to the top. Seems to me that a moveLayerUp would make sense here. Thanks a lot if anyone could give me a link or a piece of code for a working example. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-use-moveLayerUp-tp5273561p5286068.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ahmettemiz88 at gmail.com Tue Jul 13 03:44:44 2010 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Tue, 13 Jul 2010 13:44:44 +0300 Subject: [mapserver-users] cannot find -lmfhdf Message-ID: hello when I tried to install mapserver from source I received: cannot find -lmfhdf how can I solve the problem ? From aboudreault at mapgears.com Tue Jul 13 05:20:22 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 13 Jul 2010 08:20:22 -0400 Subject: [mapserver-users] cannot find -lmfhdf In-Reply-To: References: Message-ID: <201007130820.22172.aboudreault@mapgears.com> You should be able to fix that by installing the libhdf4g dev package for your distribution. Debian/Ubuntu: libhdf4g-dev Alan On July 13, 2010 06:44:44 am ahmet temiz wrote: > hello > > when I tried to install mapserver from source > > I received: > > cannot find -lmfhdf > > > how can I solve the problem ? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com From ahmettemiz88 at gmail.com Tue Jul 13 05:29:19 2010 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Tue, 13 Jul 2010 15:29:19 +0300 Subject: [mapserver-users] compilation problem Message-ID: hello when I tried to compile mapserver: I got this. /usr/bin/ld: cannot find -ldf collect2: ld returned 1 exit status make: *** [shp2img] Error 1 what might be the problem ? regards From aboudreault at mapgears.com Tue Jul 13 05:32:52 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 13 Jul 2010 08:32:52 -0400 Subject: [mapserver-users] compilation problem In-Reply-To: References: Message-ID: <201007130832.52578.aboudreault@mapgears.com> Same problem, a library named libdf.so is missing. Find the package that contains the file "libdf.so" and install it. On Ubuntu, it's libhdf4g-dev. Alan On July 13, 2010 08:29:19 am ahmet temiz wrote: > hello > > when I tried to compile mapserver: > > I got this. > > /usr/bin/ld: cannot find -ldf > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > > what might be the problem ? > > > regards > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com From umn-ms at hydrotec.de Tue Jul 13 06:16:11 2010 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Tue, 13 Jul 2010 15:16:11 +0200 Subject: [mapserver-users] Windows 2008; Java; 64 Bit In-Reply-To: <1279000135986-5286068.post@n2.nabble.com> References: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> <4C36F507.60006@mapgears.com> <1279000135986-5286068.post@n2.nabble.com> Message-ID: I want to use Mapserver in TomCat6; Windows 2008; 64 Bit; Sun-Java 1.6..21 Mapserver compiled by Tamas Szekeres: release-1500-x64-gdal-1-7-mapserver-5-6.zip ( vbkto.dyndns.org/sdk/Default.aspx ) Unfortunately the Java-VM crashes! To reduce the problem I tried example-programs in \mapscript\java\examples\ - MakePoint runs without error. - QueryByAttribute results in the same crash as the "big-tomcat-environment" does. As far as I can see, the crash occurs every time, when a string-parameter ist provided to the Mapserver API. I think, that the VM-crash occurs, when the function "JNU_GetStringNativeChars(jenv, jarg1)" from mapscript_wrap.c is called. Surprinsingly the error occurs with other release-XXX-packages from Tamas too. It even occurs, when I use a 32-Bit-Environment an MS4w on this computer. I attach an hs_err_pid-xxxx.log-File. Does anybody has any advice? Greetings, Benedikt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: release-1500-x64-gdal-1-7-mapserver-5-6.log Type: application/octet-stream Size: 10788 bytes Desc: not available URL: From cnieman at dmsolutions.ca Tue Jul 13 06:46:24 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 13 Jul 2010 09:46:24 -0400 Subject: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 Message-ID: <4C3C6E30.5080701@dmsolutions.ca> Hi, I've just compiled mapserver 5.6.4 in an FGS enviromnment, and when I rendered a map I noticed that it was taking a very long time. Once the image was displayed, it seemed that the largest scale class for each layer had been used for a rather small scale map. I've attached a 5.6.3 and 5.6.4 example of the same mapfile. Is there something that I haven't changed that's needed for 5.6.4? I recall reading that 5.6.4 wouldn't require any modifications for users? Thanks, Christy -------------- next part -------------- A non-text attachment was scrubbed... Name: 563.jpg Type: image/jpeg Size: 88618 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 564.jpg Type: image/jpeg Size: 149680 bytes Desc: not available URL: From aboudreault at mapgears.com Tue Jul 13 07:01:19 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 13 Jul 2010 10:01:19 -0400 Subject: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 In-Reply-To: <4C3C6E30.5080701@dmsolutions.ca> References: <4C3C6E30.5080701@dmsolutions.ca> Message-ID: <201007131001.19091.aboudreault@mapgears.com> Hi Christy, That's right, 5.6.4 shouldn't require any modifications for users, it's only a bug fix release. Would you be able to provide a small test case (data+mapfile) ? Alan On July 13, 2010 09:46:24 am Christy Nieman wrote: > Hi, > > I've just compiled mapserver 5.6.4 in an FGS enviromnment, and when I > rendered a map I noticed that it was taking a very long time. Once the > image was displayed, it seemed that the largest scale class for each > layer had been used for a rather small scale map. I've attached a 5.6.3 > and 5.6.4 example of the same mapfile. Is there something that I > haven't changed that's needed for 5.6.4? I recall reading that 5.6.4 > wouldn't require any modifications for users? > > Thanks, > Christy > -- Alan Boudreault Mapgears http://www.mapgears.com From andy at squeakycode.net Tue Jul 13 07:05:19 2010 From: andy at squeakycode.net (Andy Colson) Date: Tue, 13 Jul 2010 09:05:19 -0500 Subject: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 In-Reply-To: <4C3C6E30.5080701@dmsolutions.ca> References: <4C3C6E30.5080701@dmsolutions.ca> Message-ID: <4C3C729F.2010306@squeakycode.net> On 7/13/2010 8:46 AM, Christy Nieman wrote: > Hi, > > I've just compiled mapserver 5.6.4 in an FGS enviromnment, and when I > rendered a map I noticed that it was taking a very long time. Once the > image was displayed, it seemed that the largest scale class for each > layer had been used for a rather small scale map. I've attached a 5.6.3 > and 5.6.4 example of the same mapfile. Is there something that I haven't > changed that's needed for 5.6.4? I recall reading that 5.6.4 wouldn't > require any modifications for users? > > Thanks, > Christy > You didn't by chance use GD to render the first and AGG for the second? Perhaps you requested AGG in 5.4.3 but it was not compiled in, but it is now? -Andy From cnieman at dmsolutions.ca Tue Jul 13 07:08:01 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 13 Jul 2010 10:08:01 -0400 Subject: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 In-Reply-To: <4C3C729F.2010306@squeakycode.net> References: <4C3C6E30.5080701@dmsolutions.ca> <4C3C729F.2010306@squeakycode.net> Message-ID: <4C3C7341.8080109@dmsolutions.ca> Checked the mapserver binaries - both have AGG (and since both using the same mapfile, both have the same output format specified). Will work on getting a sample mapfile that demonstrates this. On 07/13/2010 10:05 AM, Andy Colson wrote: > On 7/13/2010 8:46 AM, Christy Nieman wrote: >> Hi, >> >> I've just compiled mapserver 5.6.4 in an FGS enviromnment, and when I >> rendered a map I noticed that it was taking a very long time. Once the >> image was displayed, it seemed that the largest scale class for each >> layer had been used for a rather small scale map. I've attached a 5.6.3 >> and 5.6.4 example of the same mapfile. Is there something that I haven't >> changed that's needed for 5.6.4? I recall reading that 5.6.4 wouldn't >> require any modifications for users? >> >> Thanks, >> Christy >> > > You didn't by chance use GD to render the first and AGG for the > second? Perhaps you requested AGG in 5.4.3 but it was not compiled > in, but it is now? > > -Andy From pschweitzer at usgs.gov Tue Jul 13 07:01:06 2010 From: pschweitzer at usgs.gov (Peter N. Schweitzer) Date: Tue, 13 Jul 2010 10:01:06 -0400 Subject: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 In-Reply-To: <4C3C6E30.5080701@dmsolutions.ca> References: <4C3C6E30.5080701@dmsolutions.ca> Message-ID: <4C3C71A2.3050207@usgs.gov> On 07/13/2010 09:46 AM, Christy Nieman wrote: > I've just compiled mapserver 5.6.4 in an FGS enviromnment, and when I > rendered a map I noticed that it was taking a very long time. Once the > image was displayed, it seemed that the largest scale class for each > layer had been used for a rather small scale map. I've attached a 5.6.3 > and 5.6.4 example of the same mapfile. Is there something that I haven't > changed that's needed for 5.6.4? I recall reading that 5.6.4 wouldn't > require any modifications for users? I see a similar effect--it looks like mapserv 5.6.4 calculates scale somewhat differently than 5.6.3 did, so that in order to get the same effect, I needed to reduce the values of maxscaledenom and minscaledenom by a factor of 10. Now I must admit that in the digital context I don't understand what scale really means, but I'm happy to find a value that works and use it. I was surprised to not see any mention of this in the changelog from the 5.6.4 release. Is this a side effect of something else? Peter -- Peter N. Schweitzer (MS 954, U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 FAX: (703) 648-6252 email: pschweitzer at usgs.gov From szekerest at gmail.com Tue Jul 13 07:43:53 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 13 Jul 2010 16:43:53 +0200 Subject: [mapserver-users] Windows 2008; Java; 64 Bit In-Reply-To: References: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> <4C36F507.60006@mapgears.com> <1279000135986-5286068.post@n2.nabble.com> Message-ID: Benedikt, It may be a bug in the mapscript Java bindings, feel free to create a ticketfor this issue. Best regards, Tamas 2010/7/13 > I want to use Mapserver in TomCat6; Windows 2008; 64 Bit; Sun-Java 1.6..21 > Mapserver compiled by Tamas Szekeres: > release-1500-x64-gdal-1-7-mapserver-5-6.zip (* > vbkto.dyndns.org/sdk/Default.aspx* > ) > > Unfortunately the Java-VM crashes! > > To reduce the problem I tried example-programs in > \mapscript\java\examples\ > - MakePoint runs without error. > - QueryByAttribute results in the same crash as the > "big-tomcat-environment" does. > > As far as I can see, the crash occurs every time, when a string-parameter > ist provided to the Mapserver API. > I think, that the VM-crash occurs, when the function > "JNU_GetStringNativeChars(jenv, jarg1)" from mapscript_wrap.c > is called. > > Surprinsingly the error occurs with other release-XXX-packages from Tamas > too. > > It even occurs, when I use a 32-Bit-Environment an MS4w on this computer. > > I attach an hs_err_pid-xxxx.log-File. > > Does anybody has any advice? > > Greetings, Benedikt > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Tue Jul 13 08:25:42 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 13 Jul 2010 11:25:42 -0400 Subject: [mapserver-users] Fwd: Re: [mapserver-dev] rendering difference between 5.6.3 and 5.6.4 Message-ID: <201007131125.42662.aboudreault@mapgears.com> -- Alan Boudreault Mapgears http://www.mapgears.com -------------- next part -------------- An embedded message was scrubbed... From: Alan Boudreault Subject: Re: [mapserver-dev] FW: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 Date: Tue, 13 Jul 2010 11:20:35 -0400 Size: 4388 URL: From cnieman at dmsolutions.ca Tue Jul 13 07:30:41 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 13 Jul 2010 10:30:41 -0400 Subject: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 In-Reply-To: <4C3C7341.8080109@dmsolutions.ca> References: <4C3C6E30.5080701@dmsolutions.ca> <4C3C729F.2010306@squeakycode.net> <4C3C7341.8080109@dmsolutions.ca> Message-ID: <4C3C7891.1080807@dmsolutions.ca> Attached is a sample. With mapserver 5.6.3's shp2img, in the mapfile as provided, I get a thin lines and small labels on them. With 5.6.4's shp2img I get thicker lines with larger labels. If you uncomment the MAXSCALEDENOM in the smallest scale class, in 5.6.3 you get nothing, in 5.6.4 you get the same thick lines and large labels as in the first test. Christy On 07/13/2010 10:08 AM, Christy Nieman wrote: > Checked the mapserver binaries - both have AGG (and since both using > the same mapfile, both have the same output format specified). Will > work on getting a sample mapfile that demonstrates this. > > On 07/13/2010 10:05 AM, Andy Colson wrote: >> On 7/13/2010 8:46 AM, Christy Nieman wrote: >>> Hi, >>> >>> I've just compiled mapserver 5.6.4 in an FGS enviromnment, and when I >>> rendered a map I noticed that it was taking a very long time. Once the >>> image was displayed, it seemed that the largest scale class for each >>> layer had been used for a rather small scale map. I've attached a 5.6.3 >>> and 5.6.4 example of the same mapfile. Is there something that I >>> haven't >>> changed that's needed for 5.6.4? I recall reading that 5.6.4 wouldn't >>> require any modifications for users? >>> >>> Thanks, >>> Christy >>> >> >> You didn't by chance use GD to render the first and AGG for the >> second? Perhaps you requested AGG in 5.4.3 but it was not compiled >> in, but it is now? >> >> -Andy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.zip Type: application/zip Size: 68926 bytes Desc: not available URL: From dmorissette at mapgears.com Tue Jul 13 08:47:52 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 13 Jul 2010 11:47:52 -0400 Subject: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 In-Reply-To: <4C3C7891.1080807@dmsolutions.ca> References: <4C3C6E30.5080701@dmsolutions.ca> <4C3C729F.2010306@squeakycode.net> <4C3C7341.8080109@dmsolutions.ca> <4C3C7891.1080807@dmsolutions.ca> Message-ID: <4C3C8AA8.60907@mapgears.com> Christy Nieman wrote: > Attached is a sample. > > With mapserver 5.6.3's shp2img, in the mapfile as provided, I get a thin > lines and small labels on them. With 5.6.4's shp2img I get thicker > lines with larger labels. If you uncomment the MAXSCALEDENOM in the > smallest scale class, in 5.6.3 you get nothing, in 5.6.4 you get the > same thick lines and large labels as in the first test. > Can you please test again with the fix that Alan just made? See http://trac.osgeo.org/mapserver/ticket/3173#comment:22 Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Tue Jul 13 08:52:34 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 13 Jul 2010 11:52:34 -0400 Subject: [mapserver-users] MapServer 5.6.4 and 4.10.6 released with important security fixes In-Reply-To: <4C372AC0.20908@mapgears.com> References: <4C372AC0.20908@mapgears.com> Message-ID: <4C3C8BC2.3020907@mapgears.com> FYI, an issue with scale computation has been found in the 5.6.4 release and is being worked on at the moment. We will publish a 5.6.5 release soon with a fix for it, so if you have not upgraded to 5.6.4 yet you should probably wait a few more hours. Sorry about this Daniel Daniel Morissette wrote: > The MapServer team announces the release of MapServer version 5.6.4 and > 4.10.6. > > No new functionality has been added. 5.6.4 is a maintenance release that > fixes a few issues (including a potential security vulnerability) that > were found since the release of 5.6.3. The list of fixes since 5.6.3 is > included at the end of this message. > > With respect to the 4.10.6 release, it only includes the security fixes > described below. > > > SECURITY FIXES: > --------------- > > As part of a security audit of MapServer 5.6 it was reported that some > of the mapserv CGI command-line arguments used by developers for > debugging and testing the software constitute a security risk that could > potentially be exploited remotely. We are not aware of any exploit for > this issue at the moment, but it is strongly advised that users of past > releases upgrade to the latest releases that disable the potentially > insecure command-line args. > > We will not disclose any of the details here, but potential > vulnerabilities were demonstrated to our team and it was recommended > that we take actions to avoid command-line arguments in CGI programs. As > a result and to create the smallest possible amount of disruption in > point releases, for this release we simply disabled all mapserv > command-line debug args by default, except for "-v" which is useful to > get mapserv version on an installed system, as well as "-nh" and > "QUERY_STRING=..." which add no risk and/or are used by msautotests and > in some docs. > > This change does not affect functionality for regular mapserv CGI users > working through HTTP, it only impacts developers that use those > command-line arguments to debug and test the software. It should be > noted that the use of command-line args for testing and debugging the > software may be deprecated and replaced by a different mechanism in > future releases. > > This release also fixes at least one important buffer overflow. > > Even if we release only 5.6.4 and 4.10.6 today, these security fixes > have also been backported to all stable branches (going back to 4.10) in > MapServer's Subversion (SVN) source code repository, so if you work from > source and would like to patch your local MapServer source tree, the > changeset (i.e. patch file) for each stable release can be obtained > through the Trac ticket for each issue: > - http://trac.osgeo.org/mapserver/ticket/3484 > - http://trac.osgeo.org/mapserver/ticket/3485 > > > Source and binary downloads: > ---------------------------- > > The source code is available at: > > http://mapserver.org/download.html > > The binary distributions listed in the download page should be updated > with binaries for the new 5.6.4 release in the next few hours. > > We are also in the process of submitting security patches to the Ubuntu > and Debian supported distributions. > > > Version 5.6.4 (2010-07-08): > --------------------------- > > IMPORTANT SECURITY FIXES: > > - Disabled some insecure (and potentially exploitable) mapserv command-line > debug arguments (#3485). The --enable-cgi-cl-debug-args configure switch > can be used to re-enable them for devs who really cannot get away without > them and who understand the potential security risk (not recommended for > production servers or those who don't understand the security > implications). > > - Fixed possible buffer overflow in msTmpFile() (#3484) > > Other fixes: > > - Fixed possible race condition with connectiontype WFS layers (#3137) > > - Modified mapserver units enum order to fix some problems with external > packages (#3173) > > - fix blending of transparent layers with AGG on MSB archs (#3471) > > - Fixed imageObj->saveImage() sends unnecessary headers (#3418) > > - Correct PropertyName parsing for wfs post requests (#3235) > > - Ensure mapwmslayer.c does not unlink file before closing connection on > it (#3451) > > - Fix security exception issue in C# with MSVC2010 (#3438) > > - Write out join CONNECTIONTYPE when saving a mapfile. (#3435) > > - Fixed attribute queries to use an extent stored (and cached) as part of > the queryObj rather than the map->extent. (#3424) > > - Reverted msLayerWhichItems() to 5.4-like behavior although still > supporting > retrieving all items (#3356,#3342) > > - Grid layer: remove drawing of unnecessary gird lines (#3433) > > - OGC Filters for spatial dbs should be enclosed in parentheses (#3430) > > - Improve the handling of simple string comparisons for raster classified > values (#3425) > > - Add the ogc namspace to filters generated by Mapserver (#3414) > > - Fix MS_NONSQUARE to work in mode=map (#3413) > > - Improve error message when loadQuery() filename extension check fails > (#3302) > > - Fix GetLegendGraphic using keyimages (#3398) > > - Fix getFeatureInfo queries on WFS layers (#3403) > > - Fixed mapstring.c build problem related to errno (#3401). > > - Correct ungeoreferenced defaults via GetExtent() on raster layer (#3368) > > - More adjustments to how TLOCK_GDAL held around msGetGDALGeoTransform > (#3368) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From umn-ms at hydrotec.de Tue Jul 13 09:26:08 2010 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Tue, 13 Jul 2010 18:26:08 +0200 Subject: [mapserver-users] Windows 2008; Java; 64 Bit In-Reply-To: References: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> <4C36F507.60006@mapgears.com> <1279000135986-5286068.post@n2.nabble.com> Message-ID: Hi Tamas I created trac.osgeo.org/mapserver/ticket/3491. In hope of advise I was bold enough to put your email-adress in cc :-) Best regards , Benedikt Tamas Szekeres schrieb am 13.07.2010 16:43:53: > Tamas Szekeres > 13.07.2010 16:52 > > An > > umn-ms at hydrotec.de > > Kopie > > mapserver-users at lists.osgeo.org > > Thema > > Re: [mapserver-users] Windows 2008; Java; 64 Bit > > Benedikt, > > It may be a bug in the mapscript Java bindings, feel free to create a ticket > for this issue. > > Best regards, > > Tamas > > > > 2010/7/13 > I want to use Mapserver in TomCat6; Windows 2008; 64 Bit; Sun-Java 1.6..21 > Mapserver compiled by Tamas Szekeres: release-1500-x64-gdal-1-7- > mapserver-5-6.zip (vbkto.dyndns.org/sdk/Default.aspx ) > > Unfortunately the Java-VM crashes! > > To reduce the problem I tried example-programs in \mapscript > \java\examples\ > - MakePoint runs without error. > - QueryByAttribute results in the same crash as the "big-tomcat- > environment" does. > > As far as I can see, the crash occurs every time, when a string- > parameter ist provided to the Mapserver API. > I think, that the VM-crash occurs, when the function > "JNU_GetStringNativeChars(jenv, jarg1)" from mapscript_wrap.c > is called. > > Surprinsingly the error occurs with other release-XXX-packages fromTamas too. > > It even occurs, when I use a 32-Bit-Environment an MS4w on this computer. > > I attach an hs_err_pid-xxxx.log-File. > > Does anybody has any advice? > > Greetings, Benedikt > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Tue Jul 13 10:28:12 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 13 Jul 2010 13:28:12 -0400 Subject: [mapserver-users] rendering difference between 5.6.3 and 5.6.4 In-Reply-To: <4C3C8AA8.60907@mapgears.com> References: <4C3C6E30.5080701@dmsolutions.ca> <4C3C729F.2010306@squeakycode.net> <4C3C7341.8080109@dmsolutions.ca> <4C3C7891.1080807@dmsolutions.ca> <4C3C8AA8.60907@mapgears.com> Message-ID: <4C3CA22C.5000107@dmsolutions.ca> I tested (and reported back to the ticket), that it looks good now. On 07/13/2010 11:47 AM, Daniel Morissette wrote: > Christy Nieman wrote: > >> Attached is a sample. >> >> With mapserver 5.6.3's shp2img, in the mapfile as provided, I get a thin >> lines and small labels on them. With 5.6.4's shp2img I get thicker >> lines with larger labels. If you uncomment the MAXSCALEDENOM in the >> smallest scale class, in 5.6.3 you get nothing, in 5.6.4 you get the >> same thick lines and large labels as in the first test. >> >> > Can you please test again with the fix that Alan just made? See > http://trac.osgeo.org/mapserver/ticket/3173#comment:22 > > Daniel > From ahmettemiz88 at gmail.com Tue Jul 13 11:50:24 2010 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Tue, 13 Jul 2010 21:50:24 +0300 Subject: [mapserver-users] compilation problem In-Reply-To: <201007130832.52578.aboudreault@mapgears.com> References: <201007130832.52578.aboudreault@mapgears.com> Message-ID: thank you for your both mail I must have destroyed that library accidentally , when I tried to install gdal_1.7.2 ubuntu. Do you know where gdal_1.7.2 ubuntu package can be found ? regards 2010/7/13 Alan Boudreault : > Same problem, a library named libdf.so is missing. Find the package that > contains the file "libdf.so" and install it. On Ubuntu, it's libhdf4g-dev. > > Alan > > On July 13, 2010 08:29:19 am ahmet temiz wrote: >> hello >> >> when I tried to compile mapserver: >> >> I got this. >> >> /usr/bin/ld: cannot find -ldf >> collect2: ld returned 1 exit status >> make: *** [shp2img] Error 1 >> >> >> what might be the problem ? >> >> >> regards >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > From aboudreault at mapgears.com Tue Jul 13 11:58:51 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 13 Jul 2010 14:58:51 -0400 Subject: [mapserver-users] compilation problem In-Reply-To: References: <201007130832.52578.aboudreault@mapgears.com> Message-ID: <201007131458.51177.aboudreault@mapgears.com> UbuntuGIS has it: http://trac.osgeo.org/ubuntugis/wiki https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable Alan On July 13, 2010 02:50:24 pm ahmet temiz wrote: > thank you for your both mail > > I must have destroyed that library accidentally , when I tried to > install gdal_1.7.2 ubuntu. > > Do you know where gdal_1.7.2 ubuntu package can be found ? > > regards > > 2010/7/13 Alan Boudreault : > > Same problem, a library named libdf.so is missing. Find the package that > > contains the file "libdf.so" and install it. On Ubuntu, it's > > libhdf4g-dev. > > > > Alan > > > > On July 13, 2010 08:29:19 am ahmet temiz wrote: > >> hello > >> > >> when I tried to compile mapserver: > >> > >> I got this. > >> > >> /usr/bin/ld: cannot find -ldf > >> collect2: ld returned 1 exit status > >> make: *** [shp2img] Error 1 > >> > >> > >> what might be the problem ? > >> > >> > >> regards > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > Alan Boudreault > > Mapgears > > http://www.mapgears.com > -- Alan Boudreault Mapgears http://www.mapgears.com From dmorissette at mapgears.com Tue Jul 13 12:17:36 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 13 Jul 2010 15:17:36 -0400 Subject: [mapserver-users] WFS Server does not support VERSION 1.1.0 In-Reply-To: <006601cb1fb2$cb404e20$61c0ea60$@green@ibstv.co.uk> References: <035a01cb1e6c$283256c0$78970440$@green@ibstv.co.uk> <4C35B90B.70009@dmsolutions.ca> <006701cb1eaa$fac66250$f05326f0$@green@ibstv.co.uk> <4C35E56D.80804@mapgears.com> <008101cb1ed7$ec1397a0$c43ac6e0$@green@ibstv.co.uk> <4C378460.1040202@mapgears.com> <006601cb1fb2$cb404e20$61c0ea60$@green@ibstv.co.uk> Message-ID: <4C3CBBD0.1020509@mapgears.com> Chris Green wrote: > Daniel > > Thank you I really appreciate you taking the time to explain that. I have > followed your instructions and the upgrade seems to have installed OK (both > mapserver-base 5.6.4 and mapserver-php 5.6.4). However when I try running my > application I get an error log of: > > "/opt/fgs/www/cgi-bin/mapserv: /lib/libc.so.6: version `GLIBC_2.7' not found > (required by /opt/fgs/lib/libjpeg.so.7)" > > Is GLIBC_2.7 supposed to be in Mapserver 4.6.4? > As Jeff wrote a couple of days ago, this is an issue with the FGS build that requires a version of GLIBC more recent than what is available on your Linux distribution. You could try installing a more recent version of GLIBC on your system if one is available, otherwise the only solution would be either that you build FGS yourself on a compatible system, or that we prepare a new FGS binary release based on a more conservative Linux distribution. If you are interested in helping fund a new FGS release that would be compatible with older Linux distributions then please contact me off-list. Daniel -- Daniel Morissette http://www.mapgears.com/ From mafranck23 at yahoo.fr Tue Jul 13 13:11:04 2010 From: mafranck23 at yahoo.fr (manirakiza franck) Date: Tue, 13 Jul 2010 20:11:04 +0000 (GMT) Subject: [mapserver-users] Multiple selection on interactive map Message-ID: <642434.63633.qm@web25001.mail.ukl.yahoo.com> Hi, I am a new mapserver user and I m working on a application that permits to the user to select some areas on a interactive map. Somebody can help me with this issue? Is there? I don't find how impelment this. Note that I m using phpMapScript to call mapserver functions. Thank you in advance for your help. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Jul 13 16:59:37 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 13 Jul 2010 18:59:37 -0500 Subject: [mapserver-users] Multiple selection on interactive map In-Reply-To: <642434.63633.qm@web25001.mail.ukl.yahoo.com> References: <642434.63633.qm@web25001.mail.ukl.yahoo.com> Message-ID: Hi: Depends where you're getting hung up. Selection of multiple features is feature of whatever client environment you're using. Folks probably need a bit more detail on that end of things to help further. For example, are you using OpenLayers, GeoExt, something homegrown? What is the use case you're trying to address? Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of manirakiza franck [mafranck23 at yahoo.fr] Sent: Tuesday, July 13, 2010 3:11 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Multiple selection on interactive map Hi, I am a new mapserver user and I m working on a application that permits to the user to select some areas on a interactive map. Somebody can help me with this issue? Is there I don't find how impelment this. Note that I m using phpMapScript to call mapserver functions. Thank you in advance for your help. Regards. From wal3 at mindspring.com Tue Jul 13 17:29:48 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 13 Jul 2010 20:29:48 -0400 Subject: [mapserver-users] How to use moveLayerUp In-Reply-To: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> References: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> Message-ID: <44C16D826C8147948C62B49B861EF047@Worthlaptop> One thing that I have done is clone or copy a layer and add it to the map object. This puts the new layer at the end of the layer list thus it is the last one drawn. What I've been doing is using the new layer to show the selected items from that layer with a new class. For example, the original layer shows all parcels and the new layer shows the selected ones. To make this work, I remove all the classes from the cloned layer and add the new class which describes the new colors for the selected items. I'd give an example, but I'm at home answering this. Worth -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefan Schwarzer Sent: Friday, July 09, 2010 5:05 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to use moveLayerUp Hi, I am working with PHP Mapscript. I would like to move in some secific cases a layer up so that it gets drawn after all the other layers have been drawn. I searched quite some time, but couldn't find any example that would show me how to implement this. Can anyone give me a hint? Thanks a lot, Stefan_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From enrico.oemi at gmail.com Wed Jul 14 03:15:02 2010 From: enrico.oemi at gmail.com (Kiks) Date: Wed, 14 Jul 2010 03:15:02 -0700 (PDT) Subject: [mapserver-users] project on the fly through mapserver or openlayers? Message-ID: <1279102502973-5291876.post@n2.nabble.com> Hi to all, I'm using MapServer and OpenLayers in my Webgis application. I'm at the first steps, and I was thinking about this... If I'm not going bad, both OpenLayers and Mapserver have on the fly project transformation functionality. With Mapserver you can reproject also raster images, that OpenLayers can't. If all this is correct, I wondered if, for performance issues, it's better to reproject vectorial drawings with MapServer or OpenLayers. thanks to all, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/project-on-the-fly-through-mapserver-or-openlayers-tp5291876p5291876.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thlin.box at gmail.com Wed Jul 14 04:43:34 2010 From: thlin.box at gmail.com (easyl) Date: Wed, 14 Jul 2010 04:43:34 -0700 (PDT) Subject: [mapserver-users] multiple map layers with different scales Message-ID: <1279107814737-5292120.post@n2.nabble.com> I have multiple map layers with different scales. For example, +---------------------------------------------+ | A +-----------------------------+ | | | B +----------+ | | | | C | | | | +----------+ | | | | | | +----------------------------+ | +---------------------------------------------+ A 1:1000 B 1:500 C 1:100 How can I setup them in mapserver, so that I can render the map with different detail. For example: given a scale value from 1:100 The map is rendered with: +---------------------------------------------+ | A +-----------------------------+ | | | B +----------+ | | | | C | | | | +----------+ | | | | | | +----------------------------+ | +---------------------------------------------+ given a scale value from 1:200 The map is rendered with: +---------------------------------------------+ | A +-----------------------------+ | | | B | | | | | | | | | | | | | | | +----------------------------+ | +---------------------------------------------+ given a scale value from 1:700 The map is rendered with: +---------------------------------------------+ | A | | | | | | | | | | | +---------------------------------------------+ Is that possible? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5292120.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dalda at ikt.es Wed Jul 14 05:07:05 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Wed, 14 Jul 2010 14:07:05 +0200 Subject: [mapserver-users] Question about oracle spatial configuration change Message-ID: <224DBDAF88A6AC47BD22432815351BE008111BDD@nekaposta1> Hi list, We were working with mapserver 5.6.1 and oracle spatial, and we have change the user (the new one has less privileges - it cannot modify anything stored in the DB) that connects to oracle spatial, and now we cannot connect to the layers stored in oracle. We get the following message: [Wed Jul 14 14:01:29 2010].755000 CGI Request 1 on process 2648 [Wed Jul 14 14:01:30 2010].380000 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:30 2010].380000 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:30 2010].380000 mapserv request processing time (msLoadMap not incl.): 0.625s [Wed Jul 14 14:01:30 2010].380000 msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:32 2010].520000 CGI Request 1 on process 1924 [Wed Jul 14 14:01:32 2010].661000 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:32 2010].661000 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:32 2010].661000 mapserv request processing time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:32 2010].661000 msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].36000 CGI Request 1 on process 2408 [Wed Jul 14 14:01:33 2010].161000 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:33 2010].161000 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:33 2010].161000 mapserv request processing time (msLoadMap not incl.): 0.125s [Wed Jul 14 14:01:33 2010].161000 msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].505000 CGI Request 1 on process 2064 [Wed Jul 14 14:01:33 2010].677000 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:33 2010].677000 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:33 2010].677000 mapserv request processing time (msLoadMap not incl.): 0.172s [Wed Jul 14 14:01:33 2010].677000 msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].989000 CGI Request 1 on process 3216 [Wed Jul 14 14:01:34 2010].130000 msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list [Wed Jul 14 14:01:34 2010].130000 msDrawMap(): Image handling error. Failed to draw layer named 'provincias'. [Wed Jul 14 14:01:34 2010].130000 mapserv request processing time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:34 2010].130000 msFreeMap(): freeing map at 019AB590. Do we have to refresh something or do somethign else? Layer config: CONNECTIONTYPE oraclespatial CONNECTION "newuser/newpass at ORA10GEX" If configure the layer with the old user, it works. 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: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? From daniel.degasperi at r3-gis.com Wed Jul 14 05:54:37 2010 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Wed, 14 Jul 2010 14:54:37 +0200 Subject: [mapserver-users] MAXSCALEDENOM [scale_field] Message-ID: <4C3DB38D.3060503@r3-gis.com> Hi, I've tried to read the MAXSCALEDENOM value from a attribute in my datasource, but mapserver throw's a parsing error. Probably because such feature does not exist in mapserver. Are there any intentions to implement this? It could be interesting for layers, whose data has different priorities but the same styling. With this feature I can avoid repeating the classes for every priority. Best regards, Daniel From hobu.inc at gmail.com Wed Jul 14 06:34:49 2010 From: hobu.inc at gmail.com (Howard Butler) Date: Wed, 14 Jul 2010 08:34:49 -0500 Subject: [mapserver-users] mapserver.org outage Message-ID: <70CA42DC-139D-4638-A583-7B83F6AFDCB1@gmail.com> All, The machine that houses mapserver.org was hacked recently, and it is unknown when it will be back up. We have temporarily moved the website to http://www2.mapserver.org/ and the DNS for the main address (http://www.mapserver.org) has been repointed to that instance. It will take at least 6 hours for the DNS to update, and you can use the www2 address in the meantime. Howard From aboudreault at mapgears.com Wed Jul 14 06:57:01 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 14 Jul 2010 09:57:01 -0400 Subject: [mapserver-users] Question about oracle spatial configuration change In-Reply-To: <224DBDAF88A6AC47BD22432815351BE008111BDD@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE008111BDD@nekaposta1> Message-ID: <201007140957.01696.aboudreault@mapgears.com> Normally, you shouldn't have to change anything else. Have you tried to connect to the DB with your new user from the oracle sqlplus and did a "select * from " ? Thanks, Alan On July 14, 2010 08:07:05 am David Alda Fernandez de Lezea wrote: > Hi list, > > We were working with mapserver 5.6.1 and oracle spatial, and we have change > the user (the new one has less privileges - it cannot modify anything > stored in the DB) that connects to oracle spatial, and now we cannot > connect to the layers stored in oracle. We get the following message: > > [Wed Jul 14 14:01:29 2010].755000 CGI Request 1 on process 2648 > [Wed Jul 14 14:01:30 2010].380000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:30 2010].380000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:30 2010].380000 mapserv request processing > time (msLoadMap not incl.): 0.625s [Wed Jul 14 14:01:30 2010].380000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:32 2010].520000 > CGI Request 1 on process 1924 > [Wed Jul 14 14:01:32 2010].661000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:32 2010].661000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:32 2010].661000 mapserv request processing > time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:32 2010].661000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].36000 CGI > Request 1 on process 2408 > [Wed Jul 14 14:01:33 2010].161000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:33 2010].161000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:33 2010].161000 mapserv request processing > time (msLoadMap not incl.): 0.125s [Wed Jul 14 14:01:33 2010].161000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].505000 > CGI Request 1 on process 2064 > [Wed Jul 14 14:01:33 2010].677000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:33 2010].677000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:33 2010].677000 mapserv request processing > time (msLoadMap not incl.): 0.172s [Wed Jul 14 14:01:33 2010].677000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 2010].989000 > CGI Request 1 on process 3216 > [Wed Jul 14 14:01:34 2010].130000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:34 2010].130000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:34 2010].130000 mapserv request processing > time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:34 2010].130000 > msFreeMap(): freeing map at 019AB590. > > Do we have to refresh something or do somethign else? > > Layer config: > > CONNECTIONTYPE oraclespatial > CONNECTION "newuser/newpass at ORA10GEX" > > If configure the layer with the old user, it works. > > 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: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????????????????? > ???????? _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com From umn-ms at hydrotec.de Wed Jul 14 07:26:59 2010 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Wed, 14 Jul 2010 16:26:59 +0200 Subject: [mapserver-users] Windows 2008; Java; 64 Bit In-Reply-To: References: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> <4C36F507.60006@mapgears.com> <1279000135986-5286068.post@n2.nabble.com> Message-ID: Hi I think I have analyzed the problem: Bug in Allocating/freeing char-Arrays: trac.osgeo.org/mapserver/ticket/3491 I'm not quite shure, wether I shall spend time in a workaround or somebody can provide a quick solution. Bye, Benedikt Tamas Szekeres schrieb am 13.07.2010 16:43:53: > Tamas Szekeres > 13.07.2010 16:52 > > An > > umn-ms at hydrotec.de > > Kopie > > mapserver-users at lists.osgeo.org > > Thema > > Re: [mapserver-users] Windows 2008; Java; 64 Bit > > Benedikt, > > It may be a bug in the mapscript Java bindings, feel free to create a ticket > for this issue. > > Best regards, > > Tamas > > > > 2010/7/13 > I want to use Mapserver in TomCat6; Windows 2008; 64 Bit; Sun-Java 1.6..21 > Mapserver compiled by Tamas Szekeres: release-1500-x64-gdal-1-7- > mapserver-5-6.zip (vbkto.dyndns.org/sdk/Default.aspx ) > > Unfortunately the Java-VM crashes! > > To reduce the problem I tried example-programs in \mapscript > \java\examples\ > - MakePoint runs without error. > - QueryByAttribute results in the same crash as the "big-tomcat- > environment" does. > > As far as I can see, the crash occurs every time, when a string- > parameter ist provided to the Mapserver API. > I think, that the VM-crash occurs, when the function > "JNU_GetStringNativeChars(jenv, jarg1)" from mapscript_wrap.c > is called. > > Surprinsingly the error occurs with other release-XXX-packages fromTamas too. > > It even occurs, when I use a 32-Bit-Environment an MS4w on this computer. > > I attach an hs_err_pid-xxxx.log-File. > > Does anybody has any advice? > > Greetings, Benedikt > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Jul 14 07:29:51 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 14 Jul 2010 09:29:51 -0500 Subject: [mapserver-users] project on the fly through mapserver or openlayers? In-Reply-To: <1279102502973-5291876.post@n2.nabble.com> References: <1279102502973-5291876.post@n2.nabble.com> Message-ID: When possible, the best performance comes from preprocessing the data to put it all in the same spatial reference system. I don't have any good data for you for your original question. I would guess that the performance of OpenLayers projection would vary based on the client machine and browser. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kiks Sent: Wednesday, July 14, 2010 5:15 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] project on the fly through mapserver or openlayers? Hi to all, I'm using MapServer and OpenLayers in my Webgis application. I'm at the first steps, and I was thinking about this... If I'm not going bad, both OpenLayers and Mapserver have on the fly project transformation functionality. With Mapserver you can reproject also raster images, that OpenLayers can't. If all this is correct, I wondered if, for performance issues, it's better to reproject vectorial drawings with MapServer or OpenLayers. thanks to all, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/project-on-the-fly-through-mapserver-or-openlayers-tp5291876p5291876.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Wed Jul 14 07:34:26 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 14 Jul 2010 09:34:26 -0500 Subject: [mapserver-users] multiple map layers with different scales In-Reply-To: <1279107814737-5292120.post@n2.nabble.com> References: <1279107814737-5292120.post@n2.nabble.com> Message-ID: Create a layer for each data set. Use Layer MAXSCALEDENOM and MINSCALEDENOM to define when the layer should be drawn. http://mapserver.org/mapfile/layer.html David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of easyl Sent: Wednesday, July 14, 2010 6:44 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] multiple map layers with different scales I have multiple map layers with different scales. For example, +---------------------------------------------+ | A +-----------------------------+ | | | B +----------+ | | | | C | | | | +----------+ | | | | | | +----------------------------+ | +---------------------------------------------+ A 1:1000 B 1:500 C 1:100 How can I setup them in mapserver, so that I can render the map with different detail. For example: given a scale value from 1:100 The map is rendered with: +---------------------------------------------+ | A +-----------------------------+ | | | B +----------+ | | | | C | | | | +----------+ | | | | | | +----------------------------+ | +---------------------------------------------+ given a scale value from 1:200 The map is rendered with: +---------------------------------------------+ | A +-----------------------------+ | | | B | | | | | | | | | | | | | | | +----------------------------+ | +---------------------------------------------+ given a scale value from 1:700 The map is rendered with: +---------------------------------------------+ | A | | | | | | | | | | | +---------------------------------------------+ Is that possible? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5292120.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From frankhevans at yahoo.com Wed Jul 14 07:43:13 2010 From: frankhevans at yahoo.com (turtlewax) Date: Wed, 14 Jul 2010 07:43:13 -0700 (PDT) Subject: [mapserver-users] Create new ticket for WCS RESPONSE_CRS & WCS BBOX? In-Reply-To: <1278940128266-5282810.post@n2.nabble.com> References: <1278940128266-5282810.post@n2.nabble.com> Message-ID: <1279118593594-5292891.post@n2.nabble.com> The WCS isn't behaving as I expect. I'll outline the symptoms below. I've issued requests against my own server, but also the server referenced in the documentation (http://maps.dnr.state.mn.us/cgi-bin/mapserv50). Should I open a ticket for this? EXAMPLE REQUEST http://wms/?Identifier=16&VERSION=1.1.0&FORMAT=image/tiff&SERVICE=WCS&REQUEST=GetCoverage&CRS=EPSG:3785&bbox=[.,.,.,]&resX=8&resY=8 ================================================ 1. I'm using the resX & resY parameters and requesting a geotiff. I've found that if I make a request and don't specify the RESPONSE_CRS, I get an image with good pixels, but bad SRS info. For example: GEOGCS["unnamed ellipse", DATUM["unknown",... ================================================ 2. If I do the same request and add "RESPONSE_CRS=", I get an image with good projection info. ================================================ 3. If I do the same request and add "RESPONSE_CRS=epsg:4326", or any projection other than the native projection, I get a 1X1 gray geotiff (with good projection info). ================================================ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WCS-error-Requested-BBOX-outside-requested-coverage-tp5282810p5292891.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Wed Jul 14 07:49:44 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 14 Jul 2010 16:49:44 +0200 Subject: [mapserver-users] Windows 2008; Java; 64 Bit In-Reply-To: References: <324B14A6-D465-4B6C-9CEC-8AFD97BD6A3B@grid.unep.ch> <4C36F507.60006@mapgears.com> <1279000135986-5286068.post@n2.nabble.com> Message-ID: Benedikt, Thank you, I'll look into the solution and apply that, if no one else would want to take over this. Best regards, Tamas 2010/7/14 > Hi > > I think I have analyzed the problem: Bug in Allocating/freeing char-Arrays: > *trac.osgeo.org/mapserver/ticket/3491* > > I'm not quite shure, wether I shall spend time in a workaround or somebody > can provide a quick solution. > > Bye, Benedikt > > Tamas Szekeres schrieb am 13.07.2010 16:43:53: > > > Tamas Szekeres > > 13.07.2010 16:52 > > > > An > > > > umn-ms at hydrotec.de > > > > Kopie > > > > mapserver-users at lists.osgeo.org > > > > > Thema > > > > Re: [mapserver-users] Windows 2008; Java; 64 Bit > > > > Benedikt, > > > > It may be a bug in the mapscript Java bindings, feel free to create a > ticket > > for this issue. > > > > Best regards, > > > > Tamas > > > > > > > > > 2010/7/13 > > I want to use Mapserver in TomCat6; Windows 2008; 64 Bit; Sun-Java > 1.6..21 > > Mapserver compiled by Tamas Szekeres: release-1500-x64-gdal-1-7- > > mapserver-5-6.zip (vbkto.dyndns.org/sdk/Default.aspx ) > > > > Unfortunately the Java-VM crashes! > > > > To reduce the problem I tried example-programs in \mapscript > > \java\examples\ > > - MakePoint runs without error. > > - QueryByAttribute results in the same crash as the "big-tomcat- > > environment" does. > > > > As far as I can see, the crash occurs every time, when a string- > > parameter ist provided to the Mapserver API. > > I think, that the VM-crash occurs, when the function > > "JNU_GetStringNativeChars(jenv, jarg1)" from mapscript_wrap.c > > is called. > > > > Surprinsingly the error occurs with other release-XXX-packages fromTamas > too. > > > > > It even occurs, when I use a 32-Bit-Environment an MS4w on this computer. > > > > > I attach an hs_err_pid-xxxx.log-File. > > > > Does anybody has any advice? > > > > Greetings, Benedikt > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Wed Jul 14 08:06:13 2010 From: mwkorver at gmail.com (Mark Korver) Date: Wed, 14 Jul 2010 10:06:13 -0500 Subject: [mapserver-users] project on the fly through mapserver or openlayers? In-Reply-To: <1279102502973-5291876.post@n2.nabble.com> References: <1279102502973-5291876.post@n2.nabble.com> Message-ID: > If all this is correct, I wondered if, for performance issues, it's better > to reproject vectorial drawings with MapServer or OpenLayers. Depends on several things. If you just have small number of users on the system, MapServer may well give you all the performance you need. Plus its easy to setup. However, from an architectural point of view, off-loading some of the work to the client ( which is probably not all that busy anyway ) is not a bad idea, especially if you have a lot of clients and potentially a lot of load on the server. But...in that case you probably want to pre-process data to really speed it up. Also, I know MapServer is fast, but I would expect using OL ( javascript ) to re-project and then render vector data has its limits, just needs to be tested. On Wed, Jul 14, 2010 at 5:15 AM, Kiks wrote: > > Hi to all, > I'm using MapServer and OpenLayers in my Webgis application. > I'm at the first steps, and I was thinking about this... > > If I'm not going bad, both OpenLayers and Mapserver have on the fly project > transformation functionality. > With Mapserver you can reproject also raster images, that OpenLayers can't. > > If all this is correct, I wondered if, for performance issues, it's better > to reproject vectorial drawings with MapServer or OpenLayers. > > thanks to all, > Kiks > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/project-on-the-fly-through-mapserver-or-openlayers-tp5291876p5291876.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From enrico.oemi at gmail.com Wed Jul 14 08:20:23 2010 From: enrico.oemi at gmail.com (Kiks) Date: Wed, 14 Jul 2010 08:20:23 -0700 (PDT) Subject: [mapserver-users] Re: project on the fly through mapserver or openlayers? In-Reply-To: References: <1279102502973-5291876.post@n2.nabble.com> Message-ID: <1279120823895-5293142.post@n2.nabble.com> Thank you for your replies, Now I'm working with both client and server side over the same machine, I will do some tests from other clients to understand how can be balanced the load between client and server, and also about preprocessing all data without reproject at run time. Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/project-on-the-fly-through-mapserver-or-openlayers-tp5291876p5293142.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jez.walters at ipl.com Wed Jul 14 08:42:10 2010 From: jez.walters at ipl.com (Jez Walters) Date: Wed, 14 Jul 2010 08:42:10 -0700 (PDT) Subject: [mapserver-users] UK Ordnance Survey MasterMap Cartographic Text orientation display problem Message-ID: <1279122130160-5293281.post@n2.nabble.com> I'm trying to use MapServer to display UK Ordnance Survey MasterMap vector data, but I've been experiencing problems when it comes to Cartographic Text orientation. The text angle is specifed in the GML as an integer representing 10ths of a degree, rather than as a floating point number. In order to overcome this I've been pre-processing the OS GML using awk, to divide the text orientation value by 10. I'm converting the pre-processed GML to ESRI Shapefiles before displaying the map using MapServer. As an example, here's a snipet of my Mapfile: ... CLASS NAME "Tidal Water" EXPRESSION ("[descriptiv]" == "Tidal Water") STYLE END LABEL TYPE truetype FONT Arial SIZE 7 ANTIALIAS true COLOR 0 153 255 POSITION cc ANGLE [orientatio] END END ... Am I on the right track for rescaling the orientation value, or is there a better way of doing this? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/UK-Ordnance-Survey-MasterMap-Cartographic-Text-orientation-display-problem-tp5293281p5293281.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Wed Jul 14 13:15:53 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 14 Jul 2010 15:15:53 -0500 Subject: [mapserver-users] Create new ticket for WCS RESPONSE_CRS & WCS BBOX? In-Reply-To: <1279118593594-5292891.post@n2.nabble.com> References: <1278940128266-5282810.post@n2.nabble.com> <1279118593594-5292891.post@n2.nabble.com> Message-ID: Please... I'm assuming you are running against the most recent MapServer version. Even if there were issues with the 5.0 version we likely wouldn't patch it. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of turtlewax Sent: Wednesday, July 14, 2010 9:43 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Create new ticket for WCS RESPONSE_CRS & WCS BBOX? The WCS isn't behaving as I expect. I'll outline the symptoms below. I've issued requests against my own server, but also the server referenced in the documentation (http://maps.dnr.state.mn.us/cgi-bin/mapserv50). Should I open a ticket for this? EXAMPLE REQUEST http://wms/?Identifier=16&VERSION=1.1.0&FORMAT=image/tiff&SERVICE=WCS&REQUEST=GetCoverage&CRS=EPSG:3785&bbox=[.,.,.,]&resX=8&resY=8 ================================================ 1. I'm using the resX & resY parameters and requesting a geotiff. I've found that if I make a request and don't specify the RESPONSE_CRS, I get an image with good pixels, but bad SRS info. For example: GEOGCS["unnamed ellipse", DATUM["unknown",... ================================================ 2. If I do the same request and add "RESPONSE_CRS=", I get an image with good projection info. ================================================ 3. If I do the same request and add "RESPONSE_CRS=epsg:4326", or any projection other than the native projection, I get a 1X1 gray geotiff (with good projection info). ================================================ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WCS-error-Requested-BBOX-outside-requested-coverage-tp5282810p5292891.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From frankhevans at yahoo.com Wed Jul 14 14:00:05 2010 From: frankhevans at yahoo.com (turtlewax) Date: Wed, 14 Jul 2010 14:00:05 -0700 (PDT) Subject: [mapserver-users] RE: Create new ticket for WCS RESPONSE_CRS & WCS BBOX? In-Reply-To: References: <1278940128266-5282810.post@n2.nabble.com> <1279118593594-5292891.post@n2.nabble.com> Message-ID: <1279141205766-5294782.post@n2.nabble.com> My mapserver reports version "5.7-dev". Obtained from the following URL http://vbkto.dyndns.org/sdk/release-1500-x64-gdal-1-6-mapserver-5-6.zip (I need a 64-bit version). I'm not asking for a patch against a specific version. Mainly I'm asking if I "should" create a ticket. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WCS-error-Requested-BBOX-outside-requested-coverage-tp5282810p5294782.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Wed Jul 14 14:42:17 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 14 Jul 2010 16:42:17 -0500 Subject: [mapserver-users] RE: Create new ticket for WCS RESPONSE_CRS & WCS BBOX? In-Reply-To: <1279141205766-5294782.post@n2.nabble.com> References: <1278940128266-5282810.post@n2.nabble.com> <1279118593594-5292891.post@n2.nabble.com> , <1279141205766-5294782.post@n2.nabble.com> Message-ID: I was asking if you've tested against a new version and if not to try upgrading first. Sounds like you have so a ticket would be warranted. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of turtlewax [frankhevans at yahoo.com] Sent: Wednesday, July 14, 2010 4:00 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: Create new ticket for WCS RESPONSE_CRS & WCS BBOX? My mapserver reports version "5.7-dev". Obtained from the following URL http://vbkto.dyndns.org/sdk/release-1500-x64-gdal-1-6-mapserver-5-6.zip (I need a 64-bit version). I'm not asking for a patch against a specific version. Mainly I'm asking if I "should" create a ticket. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WCS-error-Requested-BBOX-outside-requested-coverage-tp5282810p5294782.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Jul 14 14:53:05 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 14 Jul 2010 16:53:05 -0500 Subject: [mapserver-users] MAXSCALEDENOM [scale_field] In-Reply-To: <4C3DB38D.3060503@r3-gis.com> References: <4C3DB38D.3060503@r3-gis.com> Message-ID: MapServer doesn't support layer-level binding only feature-level binding. I'm having trouble seeing the value. Can you explain further? Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi [daniel.degasperi at r3-gis.com] Sent: Wednesday, July 14, 2010 7:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MAXSCALEDENOM [scale_field] Hi, I've tried to read the MAXSCALEDENOM value from a attribute in my datasource, but mapserver throw's a parsing error. Probably because such feature does not exist in mapserver. Are there any intentions to implement this? It could be interesting for layers, whose data has different priorities but the same styling. With this feature I can avoid repeating the classes for every priority. Best regards, Daniel _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From yamaday at affrc.go.jp Wed Jul 14 21:09:41 2010 From: yamaday at affrc.go.jp (YAMADA,Yasuharu) Date: Thu, 15 Jul 2010 13:09:41 +0900 Subject: [mapserver-users] tiff image drawing error Message-ID: <4C3E8A05.7070006@affrc.go.jp> When I display a tiff image on the MapServer, the following message appears on the screen, 'msDrawRaster(): Image handling error. Unrecognized or Unsupported image format: drawEPP(): Image handling error. /opt/geoweb/maps/snapout2.tif is not an EPP file.' The server environment is CentOS5, MapServer 5.6.1, OpenLayers 2.8. What's wrong? Does anyone advise me? From G.Huizer at gw.rotterdam.nl Thu Jul 15 00:19:38 2010 From: G.Huizer at gw.rotterdam.nl (Huizer, G.J. ) Date: Thu, 15 Jul 2010 09:19:38 +0200 Subject: [mapserver-users] OGC filtering on date fields Message-ID: Hi list, During some tests with OGC-filters in Mapserver, we where not able to use the "PropertyIsGreaterThan" or "PropertyIsLessThan" on date fields. In the manual of mapserver we found that date fields are interpreted as a "strings". I also understood that it is not possible to use the <, >, <=, >= on a "string" so I guess that is where the problem lies. Is there an other way that we can use these operators on a date fields? (I'm guessing something in the mapfile needs to be added to tell Mapserver that the field is a date field or something...). Any help would be very much appreciated. Thanks in adance! Cheers, Geert -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.degasperi at r3-gis.com Thu Jul 15 03:02:22 2010 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Thu, 15 Jul 2010 12:02:22 +0200 Subject: [mapserver-users] MAXSCALEDENOM [scale_field] In-Reply-To: References: <4C3DB38D.3060503@r3-gis.com> Message-ID: <4C3EDCAE.8020806@r3-gis.com> Hi Steve, maybe it's easier to explain with a mapfile example: LAYER NAME "POI" TYPE POINT CONNECTIONTYPE postgis CONNECTION "user=somebody password=something dbname=test host=localhost" DATA "the_geom FROM (SELECT gid, category, priority, the_geom FROM poi) AS foo USING UNIQUE gid" ... CLASS EXPRESSION ('[category]' eq 'poi') MAXSCALEDENOM [priority] ... END ... END In this case I've one single class for each category and the MAXSCALEDENOM get the value from the priority attribute of my datasource. As it is now, MapServer does not support this feature and I've to repeat every single category for each different priority value. Best regards, Daniel Am 14/07/2010 23:53, schrieb Lime, Steve D (DNR): > MapServer doesn't support layer-level binding only feature-level binding. I'm having trouble seeing the value. Can you explain further? > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi [daniel.degasperi at r3-gis.com] > Sent: Wednesday, July 14, 2010 7:54 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MAXSCALEDENOM [scale_field] > > Hi, > I've tried to read the MAXSCALEDENOM value from a attribute in my > datasource, but mapserver throw's a parsing error. > Probably because such feature does not exist in mapserver. > > Are there any intentions to implement this? > It could be interesting for layers, whose data has different priorities > but the same styling. > With this feature I can avoid repeating the classes for every priority. > > Best regards, > Daniel > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From warmerdam at pobox.com Thu Jul 15 06:34:56 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 15 Jul 2010 09:34:56 -0400 Subject: [mapserver-users] tiff image drawing error In-Reply-To: <4C3E8A05.7070006@affrc.go.jp> References: <4C3E8A05.7070006@affrc.go.jp> Message-ID: <4C3F0E80.6090800@pobox.com> YAMADA,Yasuharu wrote: > When I display a tiff image on the MapServer, the following message appears on the > screen, > 'msDrawRaster(): Image handling error. > Unrecognized or Unsupported image format: > drawEPP(): Image handling error. > /opt/geoweb/maps/snapout2.tif is not an EPP file.' > > The server environment is CentOS5, MapServer 5.6.1, > OpenLayers 2.8. > > What's wrong? Does anyone advise me? Yusuhara, Two possibilities come to mind: 1) The file is corrupt. Does it work outside MapServer? 2) MapServer was built without internal-tiff or GDAL support. Does mapserv -v report INPUT=GDAL? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From no-reply at neogeo-online.net Thu Jul 15 07:47:32 2010 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Thu, 15 Jul 2010 16:47:32 +0200 Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view Message-ID: <4C3F1F84.5090801@neogeo-online.net> Hi list, I was wondering if there was an efficient way to display only objects fully included inside the map viewport. I could mess around with runtime substitution, but as bbox is already sent, I think there is a way to use it inside my DATA string. Thanks for your clues Guillaume From andy at squeakycode.net Thu Jul 15 08:55:55 2010 From: andy at squeakycode.net (Andy Colson) Date: Thu, 15 Jul 2010 10:55:55 -0500 Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view In-Reply-To: <4C3F1F84.5090801@neogeo-online.net> References: <4C3F1F84.5090801@neogeo-online.net> Message-ID: <4C3F2F8B.8080206@squeakycode.net> On 7/15/2010 9:47 AM, Guillaume Sueur wrote: > Hi list, > > I was wondering if there was an efficient way to display only objects > fully included inside the map viewport. I could mess around with runtime > substitution, but as bbox is already sent, I think there is a way to use > it inside my DATA string. > > Thanks for your clues > > Guillaume I think this is already done for you. You should enable PG statement logging and watch the sql its running. I've done this before and pretty sure any time mapserver queried a postgis layer it included the BBOX in the where clause. -Andy From Steve.Lime at state.mn.us Thu Jul 15 11:03:09 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 15 Jul 2010 13:03:09 -0500 Subject: [mapserver-users] MAXSCALEDENOM [scale_field] In-Reply-To: <4C3EDCAE.8020806@r3-gis.com> References: <4C3DB38D.3060503@r3-gis.com> <4C3EDCAE.8020806@r3-gis.com> Message-ID: I wonder if you could access the current computed scale denominator in expression (or the DATA statement) and get the same effect... e.g.: CLASS EXPRESSION ('[category]' eq 'poi' && [priority] < SCALE) ... END Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi Sent: Thursday, July 15, 2010 5:02 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MAXSCALEDENOM [scale_field] Hi Steve, maybe it's easier to explain with a mapfile example: LAYER NAME "POI" TYPE POINT CONNECTIONTYPE postgis CONNECTION "user=somebody password=something dbname=test host=localhost" DATA "the_geom FROM (SELECT gid, category, priority, the_geom FROM poi) AS foo USING UNIQUE gid" ... CLASS EXPRESSION ('[category]' eq 'poi') MAXSCALEDENOM [priority] ... END ... END In this case I've one single class for each category and the MAXSCALEDENOM get the value from the priority attribute of my datasource. As it is now, MapServer does not support this feature and I've to repeat every single category for each different priority value. Best regards, Daniel Am 14/07/2010 23:53, schrieb Lime, Steve D (DNR): > MapServer doesn't support layer-level binding only feature-level binding. I'm having trouble seeing the value. Can you explain further? > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi [daniel.degasperi at r3-gis.com] > Sent: Wednesday, July 14, 2010 7:54 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MAXSCALEDENOM [scale_field] > > Hi, > I've tried to read the MAXSCALEDENOM value from a attribute in my > datasource, but mapserver throw's a parsing error. > Probably because such feature does not exist in mapserver. > > Are there any intentions to implement this? > It could be interesting for layers, whose data has different priorities > but the same styling. > With this feature I can avoid repeating the classes for every priority. > > Best regards, > Daniel > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Thu Jul 15 11:18:32 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 15 Jul 2010 14:18:32 -0400 Subject: [mapserver-users] MapServer 5.6.5 released - fixes scale calculation issue in 5.6.4 Message-ID: <4C3F50F8.2060304@mapgears.com> The MapServer team announces the release of MapServer 5.6.5. This release fixes a scale calculation issue that was introduced in the 5.6.4 release from a few days ago. All users are strongly advised to upgrade to this release since it also contains the security fixes that prompted the quick release of 5.6.4. The list of fixes since in 5.6.5 and 5.6.4 is included at the end of this message. Source and binary downloads: ---------------------------- The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page will be updated with binaries for the new 5.6.5 release shortly (if not done yet). Version 5.6.5 (2010-07-14): --------------------------- - Fixed scale calculation problem caused by mapscale.c's inchesPerUnits array being out of synch with MS_UNITS enum (#3173) - Fixed bitmap text font rendering (tiny was not working) (#3475) Version 5.6.4 (2010-07-08): --------------------------- IMPORTANT SECURITY FIXES: - Disabled some insecure (and potentially exploitable) mapserv command-line debug arguments (#3485). The --enable-cgi-cl-debug-args configure switch can be used to re-enable them for devs who really cannot get away without them and who understand the potential security risk (not recommended for production servers or those who don't understand the security implications). - Fixed possible buffer overflow in msTmpFile() (#3484) Other fixes: - Fixed possible race condition with connectiontype WFS layers (#3137) - Modified mapserver units enum order to fix some problems with external packages (#3173) - fix blending of transparent layers with AGG on MSB archs (#3471) - Fixed imageObj->saveImage() sends unnecessary headers (#3418) - Correct PropertyName parsing for wfs post requests (#3235) - Ensure mapwmslayer.c does not unlink file before closing connection on it (#3451) - Fix security exception issue in C# with MSVC2010 (#3438) - Write out join CONNECTIONTYPE when saving a mapfile. (#3435) - Fixed attribute queries to use an extent stored (and cached) as part of the queryObj rather than the map->extent. (#3424) - Reverted msLayerWhichItems() to 5.4-like behavior although still supporting retrieving all items (#3356,#3342) - Grid layer: remove drawing of unnecessary gird lines (#3433) - OGC Filters for spatial dbs should be enclosed in parentheses (#3430) - Improve the handling of simple string comparisons for raster classified values (#3425) - Add the ogc namspace to filters generated by Mapserver (#3414) - Fix MS_NONSQUARE to work in mode=map (#3413) - Improve error message when loadQuery() filename extension check fails (#3302) - Fix GetLegendGraphic using keyimages (#3398) - Fix getFeatureInfo queries on WFS layers (#3403) - Fixed mapstring.c build problem related to errno (#3401). - Correct ungeoreferenced defaults via GetExtent() on raster layer (#3368) - More adjustments to how TLOCK_GDAL held around msGetGDALGeoTransform (#3368) From Steve.Lime at state.mn.us Thu Jul 15 12:40:33 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 15 Jul 2010 14:40:33 -0500 Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view In-Reply-To: <4C3F1F84.5090801@neogeo-online.net> References: <4C3F1F84.5090801@neogeo-online.net> Message-ID: I'd think you'd need to use one of the spatial operators like "contains" in your data statement. However, you'd need access to the computed map extent to be able to do so. There's another thread related to this topic but with the computed scale. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume Sueur Sent: Thursday, July 15, 2010 9:48 AM To: Mapserver-users Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view Hi list, I was wondering if there was an efficient way to display only objects fully included inside the map viewport. I could mess around with runtime substitution, but as bbox is already sent, I think there is a way to use it inside my DATA string. Thanks for your clues Guillaume _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From support at satshot.com Thu Jul 15 14:33:42 2010 From: support at satshot.com (Avi Blackmore) Date: Thu, 15 Jul 2010 16:33:42 -0500 Subject: [mapserver-users] PHP mapscript fails to load: msSetup() failed. Message-ID: <030359F1-C029-4909-9C2A-D32175138373@satshot.com> Hi folks, I'm trying to migrate our mapserver application setup to a new server for redundancy purposes. I have configured and built the software stack (Apache, PHP, proj, geos, GDAL, mapserver) on the new machine to be the same versions and configurations as on the old machine. They are identical Apple Xserves running the same version of OS X server. The setup in question has worked quite happily for several years on our current machine. However, when I try to run the same setup on the new machine, PHP fails to load the php_mapscript module. The only error message is " msSetup(): MapScript initialization failed." I have no idea why this would be happening. Any ideas? -- Avi Blackmore Head Programmer/System Administrator Agri ImaGIS Technologies, Inc. From no-reply at neogeo-online.net Thu Jul 15 16:30:52 2010 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 16 Jul 2010 01:30:52 +0200 Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view In-Reply-To: References: <4C3F1F84.5090801@neogeo-online.net> Message-ID: <4C3F9A2C.9030902@neogeo-online.net> Hi Steve, Ok for the CONTAINS thing, but what is supposed to contain my geom field ? Is there a magic variable like %MAP_EXTENT% usable in the mapfile ? Regards Guillaume Le 15/07/2010 21:40, Lime, Steve D (DNR) a ?crit : > I'd think you'd need to use one of the spatial operators like "contains" in your data statement. However, you'd need access to the computed map extent to be able to do so. There's another thread related to this topic but with the computed scale. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume Sueur > Sent: Thursday, July 15, 2010 9:48 AM > To: Mapserver-users > Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view > > Hi list, > > I was wondering if there was an efficient way to display only objects > fully included inside the map viewport. I could mess around with runtime > substitution, but as bbox is already sent, I think there is a way to use > it inside my DATA string. > > Thanks for your clues > > Guillaume > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From yamaday at affrc.go.jp Thu Jul 15 22:33:35 2010 From: yamaday at affrc.go.jp (YAMADA,Yasuharu) Date: Fri, 16 Jul 2010 14:33:35 +0900 Subject: [mapserver-users] tiff image drawing error In-Reply-To: <4C3F0E80.6090800@pobox.com> References: <4C3E8A05.7070006@affrc.go.jp> <4C3F0E80.6090800@pobox.com> Message-ID: <4C3FEF2F.9070808@affrc.go.jp> Thank you for your information. But (1) The tiff file seems an ordinary file. (2) "/var/www/cgi-bin/mapserv.cgi -v" reports including "INPUT=TIFF" and "INPUT=GDAL".] Frank Warmerdam wrote: > YAMADA,Yasuharu wrote: >> When I display a tiff image on the MapServer, the following message appears on the >> screen, >> 'msDrawRaster(): Image handling error. >> Unrecognized or Unsupported image format: >> drawEPP(): Image handling error. >> /opt/geoweb/maps/snapout2.tif is not an EPP file.' >> >> The server environment is CentOS5, MapServer 5.6.1, >> OpenLayers 2.8. >> >> What's wrong? Does anyone advise me? > > Yusuhara, > > Two possibilities come to mind: > > 1) The file is corrupt. Does it work outside MapServer? > > 2) MapServer was built without internal-tiff or GDAL support. > Does mapserv -v report INPUT=GDAL? > > Best regards, -- ------------------------------------------- Yasuharu Yamada From Jukka.Rahkonen at mmmtike.fi Fri Jul 16 00:12:28 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 16 Jul 2010 10:12:28 +0300 Subject: [mapserver-users] tiff image drawing error References: <4C3E8A05.7070006@affrc.go.jp> <4C3F0E80.6090800@pobox.com> <4C3FEF2F.9070808@affrc.go.jp> Message-ID: Hi, Please send what does gdalinfo reports with command gdalinfo /opt/geoweb/maps/snapout2.tif -Jukka Rahkonen- YAMADA,Yasuharu wrote: > Thank you for your information. > But > (1) The tiff file seems an ordinary file. > (2) "/var/www/cgi-bin/mapserv.cgi -v" reports including "INPUT=TIFF" and "INPUT=GDAL".] Frank Warmerdam wrote: > YAMADA,Yasuharu wrote: >> When I display a tiff image on the MapServer, the following message appears on the >> screen, >> 'msDrawRaster(): Image handling error. >> Unrecognized or Unsupported image format: >> drawEPP(): Image handling error. >> /opt/geoweb/maps/snapout2.tif is not an EPP file.' >> >> The server environment is CentOS5, MapServer 5.6.1, >> OpenLayers 2.8. >> >> What's wrong? Does anyone advise me? > > Yusuhara, > > Two possibilities come to mind: > > 1) The file is corrupt. Does it work outside MapServer? > > 2) MapServer was built without internal-tiff or GDAL support. > Does mapserv -v report INPUT=GDAL? > > Best regards, -- ------------------------------------------- Yasuharu Yamada _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thlin.box at gmail.com Fri Jul 16 01:51:33 2010 From: thlin.box at gmail.com (easyl) Date: Fri, 16 Jul 2010 01:51:33 -0700 (PDT) Subject: [mapserver-users] RE: multiple map layers with different scales In-Reply-To: References: <1279107814737-5292120.post@n2.nabble.com> Message-ID: <1279270293216-5301056.post@n2.nabble.com> does it mean that I should also always give "SCALEDENOM" in the CGI request? I tries to set MAX/MINSCALEDENOM for each layer and to use SCALEDENOM in CGI request. But it works just other than what I expect. The maps (layers) what I have have a real map scale value (e.g. 1:250,000). The maps have different detail according to different scales. 1) At first I tried WITHOUT MAX/MINSCALEDENOM in mapfile: LAYER NAME LAYER_SCALE_1500000 STATUS ON TYPE POLYGON #MINSCALEDENOM 350001 CONNECTIONTYPE OGR CONNECTION "layer.shp" DATA "layer" ... END and with CGI request: /cgi-bin/mapserv?LAYERS=ALL&MODE=MAP&MAP=/my.map&MAPXY=10+50&SCALEDENOM=1 The map is shown and it looks OK. then I tried with this CGI request: /cgi-bin/mapserv?LAYERS=ALL&MODE=MAP&MAP=/my.map&MAPXY=10+50&SCALEDENOM=20 then the map is still shown but its size is decreased (it should be 20x smaller than that with SCALEDENOM=1) does SCALEDENOM mean the "actual" map scale or is it just for mapserver to zoom in/out? 2) if I try using the CGI request with the "actual" map scale: /cgi-bin/mapserv?LAYERS=ALL&MODE=MAP&MAP=/my.map&MAPXY=10+50&SCALEDENOM=1500000 then the map will be so small that it will be never shown or seen! and it would make no sense to define MAX/MINSCALEDENOM for layers with actual scale value. LAYER NAME LAYER_SCALE_1500000 STATUS ON TYPE POLYGON MINSCALEDENOM 350001 CONNECTIONTYPE OGR CONNECTION "layer.shp" DATA "layer" ... END How should I correctly use those parameters? must I always use MAPXY with SCALEDENOM in CGI request? Can I define MAPEXT with SCALEDENOM to defined explicit bounding box? how about MAPSIZE or BUFFER? I want to use different scale value to show different map layer, and the zoom (in/out) effect is somehow done in client application. thanks for your help. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5301056.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dalda at ikt.es Fri Jul 16 02:27:24 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Fri, 16 Jul 2010 11:27:24 +0200 Subject: [mapserver-users] Question about oracle spatial configuration change [SOLVED] Message-ID: <224DBDAF88A6AC47BD22432815351BE0081120A5@nekaposta1> Alan, Thanks for you response. It seems that there was a problem with user created. Something was wrong. Now it's fixed. Thanks. Regards. 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: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? -----Mensaje original----- De: Alan Boudreault [mailto:aboudreault at mapgears.com] Enviado el: mi?rcoles, 14 de julio de 2010 15:57 Para: mapserver-users at lists.osgeo.org CC: David Alda Fernandez de Lezea Asunto: Re: [mapserver-users] Question about oracle spatial configuration change Normally, you shouldn't have to change anything else. Have you tried to connect to the DB with your new user from the oracle sqlplus and did a "select * from " ? Thanks, Alan On July 14, 2010 08:07:05 am David Alda Fernandez de Lezea wrote: > Hi list, > > We were working with mapserver 5.6.1 and oracle spatial, and we have > change the user (the new one has less privileges - it cannot modify > anything stored in the DB) that connects to oracle spatial, and now > we cannot connect to the layers stored in oracle. We get the following message: > > [Wed Jul 14 14:01:29 2010].755000 CGI Request 1 on process 2648 [Wed > Jul 14 14:01:30 2010].380000 msOracleSpatialLayerGetItems(): Query > error. Cannot retrieve column list [Wed Jul 14 14:01:30 2010].380000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:30 2010].380000 mapserv request > processing time (msLoadMap not incl.): 0.625s [Wed Jul 14 14:01:30 > 2010].380000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:32 > 2010].520000 CGI Request 1 on process 1924 [Wed Jul 14 14:01:32 > 2010].661000 msOracleSpatialLayerGetItems(): Query error. Cannot > retrieve column list [Wed Jul 14 14:01:32 2010].661000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:32 2010].661000 mapserv request > processing time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:32 > 2010].661000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 > 2010].36000 CGI Request 1 on process 2408 [Wed Jul 14 14:01:33 > 2010].161000 msOracleSpatialLayerGetItems(): Query error. Cannot > retrieve column list [Wed Jul 14 14:01:33 2010].161000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:33 2010].161000 mapserv request > processing time (msLoadMap not incl.): 0.125s [Wed Jul 14 14:01:33 > 2010].161000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 > 2010].505000 CGI Request 1 on process 2064 [Wed Jul 14 14:01:33 > 2010].677000 msOracleSpatialLayerGetItems(): Query error. Cannot > retrieve column list [Wed Jul 14 14:01:33 2010].677000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:33 2010].677000 mapserv request > processing time (msLoadMap not incl.): 0.172s [Wed Jul 14 14:01:33 > 2010].677000 > msFreeMap(): freeing map at 019AB590. [Wed Jul 14 14:01:33 > 2010].989000 CGI Request 1 on process 3216 [Wed Jul 14 14:01:34 > 2010].130000 msOracleSpatialLayerGetItems(): Query error. Cannot > retrieve column list [Wed Jul 14 14:01:34 2010].130000 > msDrawMap(): Image handling error. Failed to draw layer named > 'provincias'. [Wed Jul 14 14:01:34 2010].130000 mapserv request > processing time (msLoadMap not incl.): 0.141s [Wed Jul 14 14:01:34 > 2010].130000 > msFreeMap(): freeing map at 019AB590. > > Do we have to refresh something or do somethign else? > > Layer config: > > CONNECTIONTYPE oraclespatial > CONNECTION "newuser/newpass at ORA10GEX" > > If configure the layer with the old user, it works. > > 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: dalda at ikt.es web: www.ikt.es > > ?????????????????????????????????????????????????????????????????????? > ???? ???????? _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alan Boudreault Mapgears http://www.mapgears.com From yamaday at affrc.go.jp Fri Jul 16 03:30:51 2010 From: yamaday at affrc.go.jp (YAMADA,Yasuharu) Date: Fri, 16 Jul 2010 19:30:51 +0900 Subject: [mapserver-users] tiff image drawing error In-Reply-To: References: <4C3E8A05.7070006@affrc.go.jp> <4C3F0E80.6090800@pobox.com> <4C3FEF2F.9070808@affrc.go.jp> Message-ID: <4C4034DB.4000807@affrc.go.jp> Dear Rahkonen Jukka, Rahkonen Jukka wrote: > Hi, > > Please send what does gdalinfo reports with command > > gdalinfo /opt/geoweb/maps/snapout2.tif > > -Jukka Rahkonen- The following information was received from the system. ---------------------------------------------------------------------- [geoweb at localhost ~]$ gdalinfo /opt/geoweb/maps/snapout2.tif Driver: GTiff/GeoTIFF Files: /opt/geoweb/maps/snapout2.tif Size is 829, 660 Coordinate System is: PROJCS["WGS 84 / UTM zone 53N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",135], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32653"]] GeoTransform = 874766.4700993124, 202.4737334795803, 12.20997246250808 4156085.1049555, 13.00152125831844, -202.530619799912 Metadata: TIFFTAG_XRESOLUTION=300 TIFFTAG_YRESOLUTION=300 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 874766.470, 4156085.105) (139d14'15.11"E, 37d28'32.49"N) Lower Left ( 882825.052, 4022414.896) (139d15'39.67"E, 36d16'14.86"N) Upper Right ( 1042617.195, 4166863.366) (141d 8'5.84"E, 37d29'21.16"N) Lower Right ( 1050675.777, 4033193.157) (141d 7'43.29"E, 36d17'11.34"N) Center ( 962721.124, 4094639.131) (140d11'26.37"E, 36d53'3.53"N) Band 1 Block=128x128 Type=Byte, ColorInterp=Red Band 2 Block=128x128 Type=Byte, ColorInterp=Green Band 3 Block=128x128 Type=Byte, ColorInterp=Blue [geoweb at localhost ~]$ -------------------------------------------------------------------------- ------------------------------------------- Yasuharu Yamada From pferrer at osgeo.org Fri Jul 16 04:47:41 2010 From: pferrer at osgeo.org (Pedro-Juan Ferrer Matoses) Date: Fri, 16 Jul 2010 13:47:41 +0200 Subject: [mapserver-users] strange issue PostGis + Mapserver Message-ID: Hello everybody and excuse me for the crossposting, I'd like to report a strange issue I have with Mapserver and PostGis in order to get some new "ideas" on the problem. [Environment] * Ubuntu Karmic Server * Mapserver 5.4.2 * Postgres 8.3.9 * Postgis 1.5.1 * Postgis table with +30000 Multipolygon records, this layer was originally in a shapefile, which I don't have, and I know that the shapefile was build from smaller ones. I'm publishing the layer with a WMS. [Problem] * If I make a GetFeatureInfo on the WMS, I get the info only in some zones and in other zones I get an "Content-type: application/vnd.ogc.se_xml" error. I suspect that the zones are related to the original smaller shapefiles that made the original and bigger shapefile. [Weirdo] * The XML error has the "ServiceException" tag empty, there is no other trace of error. * If I export the layer as shapefile and publish the shapefile as WMS I get the info in all the zones. [Things I've tried] * I tried serving the WMS in DEBUG mode but the error log doesn't report anything. * I tried exporting and importing the shapefile again from/into Postgis, using gvSIG and/or shp2pgsql, nevertheless I get the same issue. * I've googled the mailing lists, I've seen that some SQLServer2008 users report something similar, but the solution was migration to PostGIS :( Has someone seen/experienced/reported something similar? Tanks in advance. -- Pedro-Juan Ferrer Matoses Valencia (Espa?a) From yves.jacolin at camptocamp.com Fri Jul 16 04:52:05 2010 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Fri, 16 Jul 2010 13:52:05 +0200 Subject: [mapserver-users] strange issue PostGis + Mapserver In-Reply-To: References: Message-ID: <201007161352.07370.yves.jacolin@camptocamp.com> Hi, did you check if your feature are valid? Y. Le vendredi 16 juillet 2010 13:47:41, Pedro-Juan Ferrer Matoses a ?crit : > Hello everybody and excuse me for the crossposting, > > I'd like to report a strange issue I have with Mapserver and PostGis > in order to get some new "ideas" on the problem. > > [Environment] > * Ubuntu Karmic Server > * Mapserver 5.4.2 > * Postgres 8.3.9 > * Postgis 1.5.1 > * Postgis table with +30000 Multipolygon records, this layer was > originally in a shapefile, which I don't have, and I know that the > shapefile was build from smaller ones. I'm publishing the layer with a > WMS. > > [Problem] > * If I make a GetFeatureInfo on the WMS, I get the info only in some > zones and in other zones I get an "Content-type: > application/vnd.ogc.se_xml" error. I suspect that the zones are > related to the original smaller shapefiles that made the original and > bigger shapefile. > > [Weirdo] > * The XML error has the "ServiceException" tag empty, there is no > other trace of error. > * If I export the layer as shapefile and publish the shapefile as WMS > I get the info in all the zones. > > [Things I've tried] > * I tried serving the WMS in DEBUG mode but the error log doesn't > report anything. > * I tried exporting and importing the shapefile again from/into > Postgis, using gvSIG and/or shp2pgsql, nevertheless I get the same > issue. > * I've googled the mailing lists, I've seen that some SQLServer2008 > users report something similar, but the solution was migration to > PostGIS :( > > Has someone seen/experienced/reported something similar? > > Tanks in advance. -- Yves Jacolin Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : +33 (0)4 79 26 57 98 Mob : +33 (0)6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From pferrer at osgeo.org Fri Jul 16 05:05:26 2010 From: pferrer at osgeo.org (Pedro-Juan Ferrer Matoses) Date: Fri, 16 Jul 2010 14:05:26 +0200 Subject: [mapserver-users] strange issue PostGis + Mapserver In-Reply-To: <201007161352.07370.yves.jacolin@camptocamp.com> References: <201007161352.07370.yves.jacolin@camptocamp.com> Message-ID: Hello Yves, yes, it was one of the things I tried (but I forgot to mention) I checked the SHP geometry with ArcGis and also the Postgis geometry. I've even used the Tim Sutton cleangeometry function. There wasn't any variation :( Thanks, -- Pedro-Juan Ferrer Matoses Valencia (Espa?a) From daniel.degasperi at r3-gis.com Fri Jul 16 06:26:08 2010 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Fri, 16 Jul 2010 15:26:08 +0200 Subject: [mapserver-users] MAXSCALEDENOM [scale_field] In-Reply-To: References: <4C3DB38D.3060503@r3-gis.com> <4C3EDCAE.8020806@r3-gis.com> Message-ID: <4C405DF0.1090204@r3-gis.com> Even if I use the scale denominator I have to repeat the class for each category for every priority. The style of each category remain still the same, which means I have a lot of duplicated classes. Daniel Am 15/07/2010 20:03, schrieb Lime, Steve D (DNR): > I wonder if you could access the current computed scale denominator in expression (or the DATA statement) and get the same effect... > > e.g.: > > CLASS > EXPRESSION ('[category]' eq 'poi'&& [priority]< SCALE) > ... > END > > Steve > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi > Sent: Thursday, July 15, 2010 5:02 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MAXSCALEDENOM [scale_field] > > Hi Steve, > maybe it's easier to explain with a mapfile example: > > LAYER > NAME "POI" > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "user=somebody password=something dbname=test > host=localhost" > DATA "the_geom FROM (SELECT gid, category, priority, the_geom FROM > poi) AS foo USING UNIQUE gid" > ... > CLASS > EXPRESSION ('[category]' eq 'poi') > MAXSCALEDENOM [priority] > ... > END > ... > END > > In this case I've one single class for each category and the > MAXSCALEDENOM get the value from the priority attribute of my datasource. > As it is now, MapServer does not support this feature and I've to repeat > every single category for each different priority value. > > Best regards, > Daniel > > > Am 14/07/2010 23:53, schrieb Lime, Steve D (DNR): > >> MapServer doesn't support layer-level binding only feature-level binding. I'm having trouble seeing the value. Can you explain further? >> >> Steve >> ________________________________________ >> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi [daniel.degasperi at r3-gis.com] >> Sent: Wednesday, July 14, 2010 7:54 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] MAXSCALEDENOM [scale_field] >> >> Hi, >> I've tried to read the MAXSCALEDENOM value from a attribute in my >> datasource, but mapserver throw's a parsing error. >> Probably because such feature does not exist in mapserver. >> >> Are there any intentions to implement this? >> It could be interesting for layers, whose data has different priorities >> but the same styling. >> With this feature I can avoid repeating the classes for every priority. >> >> Best regards, >> Daniel >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Fri Jul 16 09:39:48 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 16 Jul 2010 11:39:48 -0500 Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view In-Reply-To: <4C3F9A2C.9030902@neogeo-online.net> References: <4C3F1F84.5090801@neogeo-online.net> <4C3F9A2C.9030902@neogeo-online.net> Message-ID: Nope, that's the issue, there's no magic variable for the map extent nor is there a processing option. I suspect this would be lightly used (since it's never been asked for before). Runtime subs may be your best option. Depends on how accurate your extent is when it's passed, that is, does MapServer have to adjust it. You could probably hack this easily, pass the hack along so it gets to 6.0. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume Sueur Sent: Thursday, July 15, 2010 6:31 PM To: Mapserver-users Subject: Re: [mapserver-users] PostGIS Layer : get only objects WITHIN view Hi Steve, Ok for the CONTAINS thing, but what is supposed to contain my geom field ? Is there a magic variable like %MAP_EXTENT% usable in the mapfile ? Regards Guillaume Le 15/07/2010 21:40, Lime, Steve D (DNR) a ?crit : > I'd think you'd need to use one of the spatial operators like "contains" in your data statement. However, you'd need access to the computed map extent to be able to do so. There's another thread related to this topic but with the computed scale. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume Sueur > Sent: Thursday, July 15, 2010 9:48 AM > To: Mapserver-users > Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view > > Hi list, > > I was wondering if there was an efficient way to display only objects > fully included inside the map viewport. I could mess around with runtime > substitution, but as bbox is already sent, I think there is a way to use > it inside my DATA string. > > Thanks for your clues > > Guillaume > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From support at satshot.com Fri Jul 16 09:43:33 2010 From: support at satshot.com (Avi Blackmore) Date: Fri, 16 Jul 2010 11:43:33 -0500 Subject: [mapserver-users] Update re: PHP Mapscript fails to load. Message-ID: Hello folks, I've dug into the code internals of Mapserver and Mapscript, and have yet to find more than a few clues as to what the problem is. But, this gets into heavy internals issues, so I am going to pose the question on mapserver-dev. -- Avi Blackmore Head Programmer/System Administrator Agri ImaGIS Technologies, Inc. From David.Fawcett at state.mn.us Fri Jul 16 10:47:22 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 16 Jul 2010 12:47:22 -0500 Subject: [mapserver-users] MAXSCALEDENOM [scale_field] In-Reply-To: <4C405DF0.1090204@r3-gis.com> References: <4C3DB38D.3060503@r3-gis.com> <4C3EDCAE.8020806@r3-gis.com> <4C405DF0.1090204@r3-gis.com> Message-ID: You could store your style info in a separate '.map' file and then use INCLUDE to pull that style definition into each class. http://mapserver.org/mapfile/Include.html David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi Sent: Friday, July 16, 2010 8:26 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MAXSCALEDENOM [scale_field] Even if I use the scale denominator I have to repeat the class for each category for every priority. The style of each category remain still the same, which means I have a lot of duplicated classes. Daniel Am 15/07/2010 20:03, schrieb Lime, Steve D (DNR): > I wonder if you could access the current computed scale denominator in expression (or the DATA statement) and get the same effect... > > e.g.: > > CLASS > EXPRESSION ('[category]' eq 'poi'&& [priority]< SCALE) > ... > END > > Steve > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi > Sent: Thursday, July 15, 2010 5:02 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MAXSCALEDENOM [scale_field] > > Hi Steve, > maybe it's easier to explain with a mapfile example: > > LAYER > NAME "POI" > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "user=somebody password=something dbname=test > host=localhost" > DATA "the_geom FROM (SELECT gid, category, priority, the_geom FROM > poi) AS foo USING UNIQUE gid" > ... > CLASS > EXPRESSION ('[category]' eq 'poi') > MAXSCALEDENOM [priority] > ... > END > ... > END > > In this case I've one single class for each category and the > MAXSCALEDENOM get the value from the priority attribute of my datasource. > As it is now, MapServer does not support this feature and I've to repeat > every single category for each different priority value. > > Best regards, > Daniel > > > Am 14/07/2010 23:53, schrieb Lime, Steve D (DNR): > >> MapServer doesn't support layer-level binding only feature-level binding. I'm having trouble seeing the value. Can you explain further? >> >> Steve >> ________________________________________ >> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Degasperi [daniel.degasperi at r3-gis.com] >> Sent: Wednesday, July 14, 2010 7:54 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] MAXSCALEDENOM [scale_field] >> >> Hi, >> I've tried to read the MAXSCALEDENOM value from a attribute in my >> datasource, but mapserver throw's a parsing error. >> Probably because such feature does not exist in mapserver. >> >> Are there any intentions to implement this? >> It could be interesting for layers, whose data has different priorities >> but the same styling. >> With this feature I can avoid repeating the classes for every priority. >> >> Best regards, >> Daniel >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From wendell at enflight.com Fri Jul 16 11:38:53 2010 From: wendell at enflight.com (Wendell Turner) Date: Fri, 16 Jul 2010 18:38:53 +0000 Subject: [mapserver-users] shp2img: double free or corruption Message-ID: <20100716183853.GA29618@cloud3.rho.net> I just upgraded from mapserver 5.4.1 to 5.6.5 and now shp2img gets this: *** glibc detected *** shp2img: double free or corruption (fasttop): 0x095b78b0 *** ======= Backtrace: ========= /lib/libc.so.6[0xb550f1] /lib/libc.so.6(cfree+0x90)[0xb58bc0] shp2img[0x8050f06] /lib/libc.so.6(__libc_start_main+0xdc)[0xb01e8c] shp2img[0x8050601] ======= Memory map: ======== ... Mapserver itself seems ok. Mapserver was configured with this: ./configure --with-proj --with-gdal --with-png \ --with-wmsclient --with-wfsclient --with-ogr \ --with-geos --with-php=/usr/include/php Any clues as to what is going on? Thanks, Wendell From thlin.box at gmail.com Tue Jul 20 05:37:21 2010 From: thlin.box at gmail.com (easyl) Date: Tue, 20 Jul 2010 05:37:21 -0700 (PDT) Subject: [mapserver-users] Re: multiple map layers with different scales In-Reply-To: <1279107814737-5292120.post@n2.nabble.com> References: <1279107814737-5292120.post@n2.nabble.com> Message-ID: <1279629441106-5316420.post@n2.nabble.com> I found another interesting thing with mode=tile. I set layers with different MAX/MINSCALEDENOM in map file and used (google map) tile mode from a web client. ====map file==== LAYER NAME ... MINSCALEDENOM 45001 .... END ====client==== function load() { if (GBrowserIsCompatible()) { var urlTemplate = 'http://server/cgi-bin/mapserv?'; urlTemplate += 'map=my.map&'; urlTemplate += 'layers=ALL&'; urlTemplate += 'mode=tile&'; urlTemplate += 'tilemode=gmap&'; urlTemplate += 'tile={X}+{Y}+{Z}'; ..... } } Surprisingly it seems that Mapserver will automatically take "scale value" into consideration when zoom in or out the map. The result is pretty good. How is the CGI request interpreted? Can I do something like that in "map" mode as well? that is, with mapext and SCALEDENOM. I tried map=mapfile.map&layers=ALL&mode=MAP&mapext=11.25+45+12.5+58.25&SCALEDENOM=45000 and I got nothing. thanks in advance. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5316420.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Tue Jul 20 05:49:17 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 20 Jul 2010 07:49:17 -0500 Subject: [mapserver-users] Re: multiple map layers with different scales In-Reply-To: <1279629441106-5316420.post@n2.nabble.com> References: <1279107814737-5292120.post@n2.nabble.com>, <1279629441106-5316420.post@n2.nabble.com> Message-ID: The mode=tile request results in an extent along with a default tile size of 256x256. With those you can compute a scale and then hold layers to whatever scale bounds that have been set. You can't combine extent, scale and size (by default set in the mapfile) though, MapServer's not setup that way. You can however combine a point, scale (given by the SCALE parameter) and a size. In that case MapServer will compute the appropriate extent. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of easyl [thlin.box at gmail.com] Sent: Tuesday, July 20, 2010 7:37 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: multiple map layers with different scales I found another interesting thing with mode=tile. I set layers with different MAX/MINSCALEDENOM in map file and used (google map) tile mode from a web client. ====map file==== LAYER NAME ... MINSCALEDENOM 45001 .... END ====client==== function load() { if (GBrowserIsCompatible()) { var urlTemplate = 'http://server/cgi-bin/mapserv?'; urlTemplate += 'map=my.map&'; urlTemplate += 'layers=ALL&'; urlTemplate += 'mode=tile&'; urlTemplate += 'tilemode=gmap&'; urlTemplate += 'tile={X}+{Y}+{Z}'; ..... } } Surprisingly it seems that Mapserver will automatically take "scale value" into consideration when zoom in or out the map. The result is pretty good. How is the CGI request interpreted? Can I do something like that in "map" mode as well? that is, with mapext and SCALEDENOM. I tried map=mapfile.map&layers=ALL&mode=MAP&mapext=11.25+45+12.5+58.25&SCALEDENOM=45000 and I got nothing. thanks in advance. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5316420.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thlin.box at gmail.com Tue Jul 20 06:30:38 2010 From: thlin.box at gmail.com (easyl) Date: Tue, 20 Jul 2010 06:30:38 -0700 (PDT) Subject: [mapserver-users] Re: multiple map layers with different scales In-Reply-To: References: <1279107814737-5292120.post@n2.nabble.com> <1279629441106-5316420.post@n2.nabble.com> Message-ID: <1279632638540-5316617.post@n2.nabble.com> then I tried mapserv?map=mapfile.map &layers=ALL &mode=MAP &mapxy=12+45 &buffer=30 &mapsize=500+500 &SCALEDENOM=45000 The mapserver just calculated out an extreme large extent and the region where I am interested in is rendered as small as just one point. (larger SCALEDENOM -> larger extent) According to http://mapserver.org/cgi/controls.html the mapsize or imgsize should only affect the pixel size of output image. The "buffer" should work with mapxy for limiting map extent. But changing the "buffer" in above example did not affect the map extent. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5316617.html Sent from the Mapserver - User mailing list archive at Nabble.com. From wendell at enflight.com Tue Jul 20 06:46:31 2010 From: wendell at enflight.com (Wendell Turner) Date: Tue, 20 Jul 2010 13:46:31 +0000 Subject: [mapserver-users] shp2img: double free or corruption In-Reply-To: <20100716183853.GA29618@cloud3.rho.net> References: <20100716183853.GA29618@cloud3.rho.net> Message-ID: <20100720134631.GA3486@cloud3.rho.net> On Fri, Jul 16, 2010 at 06:38:53PM +0000, Wendell Turner wrote: > I just upgraded from mapserver 5.4.1 to 5.6.5 and now > shp2img gets this: > > *** glibc detected *** shp2img: double free or corruption (fasttop): 0x095b78b0 *** > ======= Backtrace: ========= > /lib/libc.so.6[0xb550f1] > /lib/libc.so.6(cfree+0x90)[0xb58bc0] > shp2img[0x8050f06] > /lib/libc.so.6(__libc_start_main+0xdc)[0xb01e8c] > shp2img[0x8050601] > ======= Memory map: ======== > > Any clues as to what is going on? It occurs when multiple layers are listed. It appears that in shp2img.c, while looping through the '-l' argument list, the name of a (possibly bad) layer is remembered via: invalid_layer = strdup(layers[j]); If that layer is found later, the string is freed with if (invalid_layer) free(invalid_layer); which causes the double free error. It seems that all the loop needs to do is remember the index of the list, not a strdup of the string. Doing that seems to work, and eliminates the double free problem. The patch below works for me. Wendell =============================================================== --- shp2img.c-strdup 2009-11-04 13:53:23.000000000 +0000 +++ shp2img.c 2010-07-20 13:38:39.000000000 +0000 @@ -43,7 +43,7 @@ int num_layers=0; int layer_found=0; - char *invalid_layer=NULL; + int invalid_layer = -1; char *outfile=NULL; /* no -o sends image to STDOUT */ @@ -263,18 +263,14 @@ break; } else { - if (invalid_layer) - free(invalid_layer); - invalid_layer = strdup(layers[j]); + invalid_layer = j; } } if (layer_found==0) { - fprintf(stderr, "Layer (-l) %s not found\n", invalid_layer); + fprintf(stderr, "Layer (-l) %s not found\n", layers[invalid_layer]); msCleanup(); exit(0); } - if (invalid_layer) - free(invalid_layer); } for(j=0; jnumlayers; j++) { =============================================================== From simone.frigerio at univie.ac.at Tue Jul 20 09:06:27 2010 From: simone.frigerio at univie.ac.at (Simone Frigerio) Date: Tue, 20 Jul 2010 18:06:27 +0200 Subject: [mapserver-users] index file for ECW raster files - error in visualization Message-ID: <4C45C983.6020209@univie.ac.at> Hi, I am publishing raster ecw layers on towards index file. In map file I create one index file (index.shp) and 2 raster layers file (ortho_2004_5 and ortho_2004_6). In index.dbf a "location" field is present with "\ortho\ortho_2004_5.ecw". On localhost the layer is visualized in the list with others, but if I click, it generate an error, I need to refresh layers list. In mapfile: ... SHAPEPATH "data" ::: LAYER NAME "regioortho2004" TYPE RASTER TILEINDEX "index.shp" TILEITEM "Location" METADATA "force_imagetype" "jpeg" END END LAYER NAME "ortho_2004_5" TYPE RASTER DATA "/ortho/ortho_2004_5.ecw" METADATA "force_imagetype" "jpeg" END END LAYER NAME "ortho_2004_6" TYPE RASTER DATA "/ortho/ortho_2004_6.ecw" METADATA "force_imagetype" "jpeg" END END Is it a question of path? I used absolute "data" folder for index.shp and a subfolder "ortho" for the raster ECW. Is it a problem of file? GDAL help explain support to ECW files... Some suggestions? Thanks! Simone -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature-1.gif Type: image/gif Size: 566 bytes Desc: not available URL: From jmckenna at gatewaygeomatics.com Tue Jul 20 09:39:45 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 20 Jul 2010 13:39:45 -0300 Subject: [mapserver-users] index file for ECW raster files - error in visualization In-Reply-To: <4C45C983.6020209@univie.ac.at> References: <4C45C983.6020209@univie.ac.at> Message-ID: <4C45D151.8050509@gatewaygeomatics.com> Hello Simone, Can you test with the shp2img utility and paste your results in an email so everyone can see the error message? http://www.mapserver.org/optimization/debugging.html#step-5-test-your-mapfile Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Simone Frigerio wrote: > Hi, > I am publishing raster ecw layers on towards index file. In map file I > create one index file (index.shp) and 2 raster layers file (ortho_2004_5 > and ortho_2004_6). In index.dbf a "location" field is present with > "\ortho\ortho_2004_5.ecw". > On localhost the layer is visualized in the list with others, but if I > click, it generate an error, I need to refresh layers list. > > In mapfile: > ... > SHAPEPATH "data" > ::: > LAYER > NAME "regioortho2004" > TYPE RASTER > TILEINDEX "index.shp" > TILEITEM "Location" > METADATA > "force_imagetype" "jpeg" > END > END > > LAYER > NAME "ortho_2004_5" > TYPE RASTER > DATA "/ortho/ortho_2004_5.ecw" > METADATA > "force_imagetype" "jpeg" > END > END > > LAYER > NAME "ortho_2004_6" > TYPE RASTER > DATA "/ortho/ortho_2004_6.ecw" > METADATA > "force_imagetype" "jpeg" > END > END > > Is it a question of path? I used absolute "data" folder for index.shp > and a subfolder "ortho" for the raster ECW. > Is it a problem of file? GDAL help explain support to ECW files... > Some suggestions? > Thanks! > From Steve.Lime at state.mn.us Tue Jul 20 10:48:05 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 20 Jul 2010 12:48:05 -0500 Subject: [mapserver-users] Re: multiple map layers with different scales In-Reply-To: <1279632638540-5316617.post@n2.nabble.com> References: <1279107814737-5292120.post@n2.nabble.com> <1279629441106-5316420.post@n2.nabble.com> <1279632638540-5316617.post@n2.nabble.com> Message-ID: This is still confusing MapServer. Remember the map size is fixed, so you're asking to do contradictory things, either a map using: - mapxy and buffer OR - mapxy and scaledenom You can't do both... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of easyl Sent: Tuesday, July 20, 2010 8:31 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: multiple map layers with different scales then I tried mapserv?map=mapfile.map &layers=ALL &mode=MAP &mapxy=12+45 &buffer=30 &mapsize=500+500 &SCALEDENOM=45000 The mapserver just calculated out an extreme large extent and the region where I am interested in is rendered as small as just one point. (larger SCALEDENOM -> larger extent) According to http://mapserver.org/cgi/controls.html the mapsize or imgsize should only affect the pixel size of output image. The "buffer" should work with mapxy for limiting map extent. But changing the "buffer" in above example did not affect the map extent. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5316617.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From John.C.Cartwright at noaa.gov Tue Jul 20 12:27:36 2010 From: John.C.Cartwright at noaa.gov (John Cartwright) Date: Tue, 20 Jul 2010 13:27:36 -0600 Subject: [mapserver-users] WCS GET_COVERAGE delivers corrupted geotiff Message-ID: <4C45F8A8.7080301@noaa.gov> Hello All, I'm running Mapserver 5.6.3 and have a WCS service configured. I'm finding that a GetCoverage request like: http://mapserver.ngdc.noaa.gov/cgi-bin/public/etopo1/etopo1.tif?request=GetCoverage&service=WCS&version=1.1.1&COVERAGE=etopo1&crs=EPSG:4326&format=geotiff&resx=0.0083333333&resy=0.0083333333&bbox=-95,25,-75,40 delivers a corrupted geotiff that appears to have header information prepended to the TIFF, e.g. --wcs Content-Type: text/xml Content-ID: wcs.xml --wcs Content-Type: image/tiff Content-Description: coverage data Content-Transfer-Encoding: binary Content-ID: coverage/out.tif Content-Disposition: INLINE I've included the complete mapfile below. I'm assuming that I have something misconfigured in either Mapserver or Apache - can someone please help me here? Thanks! --john MAP NAME WCS_server STATUS ON SIZE 500 250 #SYMBOLSET ../etc/symbols.sym EXTENT -180 -90 180 90 UNITS dd SHAPEPATH "/nfs/gisdata/rasters" IMAGECOLOR 255 255 255 FONTSET "/nfs/eogmapdata/fontset.txt" # # Start of web interface definition # WEB IMAGEPATH "/data/mapserver-vhost/html/tmp/" IMAGEURL "/tmp/" METADATA "wcs_label" "GMap WCS Demo Server" ### required "wcs_description" "Some text description of the service" "wcs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" ### recommended "wcs_service_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" END END PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "BYTE" EXTENSION "tif" FORMATOPTION "COMPRESS=LZW" END OUTPUTFORMAT NAME GEOTIFF_FLOAT DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "FLOAT32" EXTENSION "tif" FORMATOPTION "COMPRESS=LZW" END LAYER NAME etopo1 METADATA "wcs_label" "Elevation/Bathymetry" ### required "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request "wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request END TYPE RASTER ### required STATUS ON DATA ETOPO1_Ice_g.tif PROJECTION "init=epsg:4326" END DUMP TRUE ### required END END # Map File From woodbri at swoodbridge.com Tue Jul 20 17:46:20 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 20 Jul 2010 20:46:20 -0400 Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view In-Reply-To: References: <4C3F1F84.5090801@neogeo-online.net> <4C3F9A2C.9030902@neogeo-online.net> Message-ID: <4C46435C.5020907@swoodbridge.com> Maybe something like this would work for you: http://trac.osgeo.org/mapserver/ticket/2129 I did this a few years ago for a client but it was between Oracle developers and never got put in the trunk code. I don't work with an Oracle instance at the moment but there is a patch and you might be able to adapt it to your needs. -Steve W Lime, Steve D (DNR) wrote: > Nope, that's the issue, there's no magic variable for the map extent > nor is there a processing option. I suspect this would be lightly > used (since it's never been asked for before). Runtime subs may be > your best option. Depends on how accurate your extent is when it's > passed, that is, does MapServer have to adjust it. You could probably > hack this easily, pass the hack along so it gets to 6.0. > > Steve > > -----Original Message----- From: > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Guillaume Sueur Sent: Thursday, July 15, 2010 6:31 PM To: > Mapserver-users Subject: Re: [mapserver-users] PostGIS Layer : get > only objects WITHIN view > > Hi Steve, > > Ok for the CONTAINS thing, but what is supposed to contain my geom > field ? Is there a magic variable like %MAP_EXTENT% usable in the > mapfile ? > > Regards > > Guillaume > > Le 15/07/2010 21:40, Lime, Steve D (DNR) a ?crit : >> I'd think you'd need to use one of the spatial operators like >> "contains" in your data statement. However, you'd need access to >> the computed map extent to be able to do so. There's another thread >> related to this topic but with the computed scale. >> >> Steve >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Guillaume Sueur Sent: Thursday, July 15, 2010 9:48 AM To: >> Mapserver-users Subject: [mapserver-users] PostGIS Layer : get only >> objects WITHIN view >> >> Hi list, >> >> I was wondering if there was an efficient way to display only >> objects fully included inside the map viewport. I could mess around >> with runtime substitution, but as bbox is already sent, I think >> there is a way to use it inside my DATA string. >> >> Thanks for your clues >> >> Guillaume _______________________________________________ >> mapserver-users mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue Jul 20 17:54:08 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 20 Jul 2010 20:54:08 -0400 Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view In-Reply-To: <4C46435C.5020907@swoodbridge.com> References: <4C3F1F84.5090801@neogeo-online.net> <4C3F9A2C.9030902@neogeo-online.net> <4C46435C.5020907@swoodbridge.com> Message-ID: <4C464530.5030704@swoodbridge.com> Sorry, tired brain and threads colliding .. ignore that response. Stephen Woodbridge wrote: > Maybe something like this would work for you: > http://trac.osgeo.org/mapserver/ticket/2129 > > I did this a few years ago for a client but it was between Oracle > developers and never got put in the trunk code. I don't work with an > Oracle instance at the moment but there is a patch and you might be able > to adapt it to your needs. > > -Steve W > > Lime, Steve D (DNR) wrote: >> Nope, that's the issue, there's no magic variable for the map extent >> nor is there a processing option. I suspect this would be lightly >> used (since it's never been asked for before). Runtime subs may be >> your best option. Depends on how accurate your extent is when it's >> passed, that is, does MapServer have to adjust it. You could probably >> hack this easily, pass the hack along so it gets to 6.0. >> >> Steve >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Guillaume Sueur Sent: Thursday, July 15, 2010 6:31 PM To: >> Mapserver-users Subject: Re: [mapserver-users] PostGIS Layer : get >> only objects WITHIN view >> >> Hi Steve, >> >> Ok for the CONTAINS thing, but what is supposed to contain my geom >> field ? Is there a magic variable like %MAP_EXTENT% usable in the >> mapfile ? >> >> Regards >> >> Guillaume >> >> Le 15/07/2010 21:40, Lime, Steve D (DNR) a ?crit : >>> I'd think you'd need to use one of the spatial operators like >>> "contains" in your data statement. However, you'd need access to >>> the computed map extent to be able to do so. There's another thread >>> related to this topic but with the computed scale. >>> >>> Steve >>> >>> -----Original Message----- From: >>> mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>> Guillaume Sueur Sent: Thursday, July 15, 2010 9:48 AM To: >>> Mapserver-users Subject: [mapserver-users] PostGIS Layer : get only >>> objects WITHIN view >>> >>> Hi list, >>> >>> I was wondering if there was an efficient way to display only >>> objects fully included inside the map viewport. I could mess around >>> with runtime substitution, but as bbox is already sent, I think >>> there is a way to use it inside my DATA string. >>> >>> Thanks for your clues >>> >>> Guillaume _______________________________________________ >>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thlin.box at gmail.com Wed Jul 21 00:53:32 2010 From: thlin.box at gmail.com (easyl) Date: Wed, 21 Jul 2010 00:53:32 -0700 (PDT) Subject: [mapserver-users] Re: multiple map layers with different scales In-Reply-To: References: <1279107814737-5292120.post@n2.nabble.com> <1279629441106-5316420.post@n2.nabble.com> <1279632638540-5316617.post@n2.nabble.com> Message-ID: <1279698812270-5320026.post@n2.nabble.com> hmmmm..... I am almost giving up.... What I would like to do is getting a map image from a given extent and a given scale value. I would combine each retrieved map images as tiles but without mode=tile. On my Mapserver there are different map layers having different detail according to scale values. In mode=tile it seems that Mapserver automatically calculates map scale value and selects the suitable layers to show. I just want to do the same thing but in mode=map. The implementation of map retrieval behind Mapserver should be the same or similar. Why is it so difficult to do the similar thing from two different modes? Thanks:) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5320026.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jez.walters at ipl.com Wed Jul 21 04:32:04 2010 From: jez.walters at ipl.com (Jez Walters) Date: Wed, 21 Jul 2010 04:32:04 -0700 (PDT) Subject: [mapserver-users] Text orientation problem Message-ID: <1279711924353-5320710.post@n2.nabble.com> I'm not sure if I posted this correctly last time, so I'm trying again - hopefully I'll get some feedback this time! :-) I'm using MapServer to display UK Ordnance Survey MasterMap vector data, but I've been experiencing problems when it comes to text orientation (in the Cartographic Text layer). The text angle is specifed in the OS GML as an integer representing 10ths of a degree, rather than as a floating point number (as required by MapServer). In order to overcome this I've been pre-processing the GML using awk, to divide the text orientation value by 10. Is this the best approach for rescaling the orientation value, or can this be performed somehow "on the fly" by MapServer? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Text-orientation-problem-tp5320710p5320710.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Wed Jul 21 04:35:57 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 21 Jul 2010 13:35:57 +0200 Subject: [mapserver-users] Text orientation problem In-Reply-To: <1279711924353-5320710.post@n2.nabble.com> References: <1279711924353-5320710.post@n2.nabble.com> Message-ID: Jez, There's to my knowledge no way to do this directly in your mapfile, so your approach seems correct. If your data resides in a postgis database you could also do this in your DATA statement: DATA "the_geom from (select id,the_geom,angle*10 as angle from mytable) as foo using unique id using srid=xxxx" ... LABEL ANGLE [angle] ... END regards, thomas On Wed, Jul 21, 2010 at 13:32, Jez Walters wrote: > > I'm not sure if I posted this correctly last time, so I'm trying again - > hopefully I'll get some feedback this time! ?:-) > > I'm using MapServer to display UK Ordnance Survey MasterMap vector data, but > I've been experiencing problems when it comes to text orientation (in the > Cartographic Text layer). > > The text angle is specifed in the OS GML as an integer representing 10ths of > a degree, rather than as a floating point number (as required by MapServer). > In order to overcome this I've been pre-processing the GML using awk, to > divide the text orientation value by 10. > > Is this the best approach for rescaling the orientation value, or can this > be performed somehow "on the fly" by MapServer? > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Text-orientation-problem-tp5320710p5320710.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Wed Jul 21 05:28:21 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 21 Jul 2010 07:28:21 -0500 Subject: [mapserver-users] Re: multiple map layers with different scales In-Reply-To: <1279698812270-5320026.post@n2.nabble.com> References: <1279107814737-5292120.post@n2.nabble.com> <1279629441106-5316420.post@n2.nabble.com> <1279632638540-5316617.post@n2.nabble.com> , <1279698812270-5320026.post@n2.nabble.com> Message-ID: In mode=tile it's not that MapServer is working on predefined scales, rather pre-defined resolutions (cellsize). So at a particular zoom level the UL corner coordinate of any tile is known based on the chosen scheme (Google, Bing, etc...) and so is the size, and from that you can compute a map extent. That's what MapServer needs. From there we compute a scale value to use in setting layer visibility. So, in your case you probably can do the same thing, just pass extents associated with each tile to MapServer and keep it simple. Sounds like the missing piece is for you is associating a scale with each tile level so you can set layers appropriately. You can either compute that by hand via the formulas in MapServer or you can use a template and have MapServer spit it out for you given a sample tile URL at each level. For example, if you add this to your web object in your mapfile: WEB ... TEMPLATE 'showscale.html' END and then create a template called showscale.html: map extent: [mapext] computed scale: [scale] and then call it with a URL like: http://yourserver/cgi-bin/mapserv?map=yourmap&mapext=minx+miny+maxx+maxy You should get the scale associated with that extent (and tile level). You'd do this for each zoom level and then go to town in your mapfile. There is another alternative to MINSCALEDENOM/MAXSCALEDENOM that uses the dx/xy from a map extent. I believe the parameters are MINGEOWIDTH and MAXGEOWIDTH which mirror the MapInfo way of doing this. They essentially represent resolution and take the display device resolution out of it (a good thing). They were added in 5.6 but have yet to be added to the docs (there's a ticket)... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of easyl [thlin.box at gmail.com] Sent: Wednesday, July 21, 2010 2:53 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: multiple map layers with different scales hmmmm..... I am almost giving up.... What I would like to do is getting a map image from a given extent and a given scale value. I would combine each retrieved map images as tiles but without mode=tile. On my Mapserver there are different map layers having different detail according to scale values. In mode=tile it seems that Mapserver automatically calculates map scale value and selects the suitable layers to show. I just want to do the same thing but in mode=map. The implementation of map retrieval behind Mapserver should be the same or similar. Why is it so difficult to do the similar thing from two different modes? Thanks:) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5320026.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Eike.Poegel at heuboe.de Wed Jul 21 06:04:47 2010 From: Eike.Poegel at heuboe.de (=?iso-8859-1?Q?Eike_P=F6gel?=) Date: Wed, 21 Jul 2010 15:04:47 +0200 Subject: [mapserver-users] MS-5.2.3 performance on Solaris 10 vs Win XP Message-ID: Hi all, my Solaris 10 mapserver is approx 20 times slower than the ready-made MS4W installation of same version (using same shape files). Would like to hear, if other users have same/different experiences. BTW: To build this Solaris MS I used a couple of prebuild libs from sunfreeware.com (gcc-3.4.6, zlib, proj-4.7.0, etc.). My Solaris build configuration was: ./configure --without-httpd --with-png --with-gd --with-proj --with-wfs --with-wcs --with-ogr=../gdal-1.7.2/apps/gdal-config --with-gdal=../gdal-1.7.2/apps/gdal-config --with-fastcgi=yes --enable-internal-ld-detect Any suggestions are appreciated very much. TIA. -- Mit freundlichen Gr??en i.A. Eike P?gel ________________________________ [cid:image001.gif at 01CB28E5.433C53C0] Eike P?gel Dipl.-Ing. Systemintegration System Integration phone +49 241 9669 -165 fax +49 241 9669 -177 mobile +49 171 4353005 email eike.poegel at heuboe.de Heusch/Boesefeldt GmbH Tempelhofer Str. 4-6 | 52068 Aachen, Germany ________________________________ Sitz der Gesellschaft: Aachen Gesch?ftsf?hrer: Dr. Dirk H?bner, Berthold Jansen Registergericht: Aachen, HRB 2408 USt.-ID-Nr.: DE 121 676934 Diese Email enth?lt vertrauliche oder rechtlich gesch?tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Email irrt?mlich erhalten haben, ist es Ihnen nicht gestattet, diese Email zu lesen, zu ?bertragen, zu kopieren oder anderweitig zu verwenden. Informieren Sie in diesem Fall bitte sofort den Absender und vernichten Sie diese Mail. Der Inhalt der Email ist nur rechtsverbindlich, wenn er unsererseits durch einen Brief entsprechend best?tigt wird. Wir korrespondieren mit Ihnen per Email ?ber das Internet. Wir weisen darauf hin, dass derartige Nachrichten mit und ohne Zutun von Dritten verloren gehen, ver?ndert oder verf?lscht werden k?nnen. Wir haften deshalb nicht f?r die Unversehrtheit von Emails nachdem sie unseren Herrschaftsbereich verlassen haben und k?nnen Ihnen hieraus entstehende Sch?den nicht ersetzen. Sollte trotz der von uns verwendeten Viren-Schutz-Programme durch die Zusendung von Emails ein Virus in Ihre Systeme gelangen, haften wir nicht f?r eventuell hieraus entstehende Sch?den. Dieser Haftungsausschluss gilt nur soweit gesetzlich zul?ssig. This e-mail contains confidential or legally protected information. If you are not the correct addressee or should you have received this e-mail in error, you are not permitted to read, copy, resent or make other use of it. Please inform the sender of the transmission error and delete this e-mail. The content of this e-mail is legally binding only when confirmed by us in a letter sent by mail. Our firm corresponds with you via internet per e-mail. We call to your attention that e-mail correspondence can be lost, altered or falsified, with or without third party intervention. We therefore accept no responsibility for the intactness of e-mails after they have left our control and cannot provide compensation for any consequential damages. Should a virus enter your systems through an e-mail sent by us, despite our use of virus protection programmes, we are not liable for any damages resulting therefrom. This exclusion of liability is applicable to the extent permitted by law. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 3534 bytes Desc: image001.gif URL: From andy at squeakycode.net Wed Jul 21 06:42:54 2010 From: andy at squeakycode.net (Andy Colson) Date: Wed, 21 Jul 2010 08:42:54 -0500 Subject: [mapserver-users] MS-5.2.3 performance on Solaris 10 vs Win XP In-Reply-To: References: Message-ID: <4C46F95E.5070909@squeakycode.net> On 7/21/2010 8:04 AM, Eike P?gel wrote: > Hi all, > > my Solaris 10 mapserver is approx 20 times slower than the ready-made > MS4W installation of same version (using same shape files). Would like > to hear, if other users have same/different experiences. > > BTW: To build this Solaris MS I used a couple of prebuild libs from > sunfreeware.com (gcc-3.4.6, zlib, proj-4.7.0, etc.). My Solaris build > configuration was: > > ./configure --without-httpd --with-png --with-gd --with-proj --with-wfs > --with-wcs --with-ogr=../gdal-1.7.2/apps/gdal-config > --with-gdal=../gdal-1.7.2/apps/gdal-config --with-fastcgi=yes > --enable-internal-ld-detect > > Any suggestions are appreciated very much. TIA. > > -- > Mit freundlichen Gr??en > > i.A. Eike P?gel > I doubt you are running Solaris and Windows on the exact same hardware. My first guess would be hardware speeds? Maybe you could bench the IO and CPU and compare them. You could also enable debugging in your mapfile, and I believe it'll include timing information. May help point you in a direction. -Andy From paulbe at ceh.ac.uk Wed Jul 21 07:41:27 2010 From: paulbe at ceh.ac.uk (Gilbertson, Paul) Date: Wed, 21 Jul 2010 15:41:27 +0100 Subject: [mapserver-users] Java MapScript and Tomcat6 Hanging Message-ID: <7F8FCD304F29444ABBE9328A09D6355117F8F17442@nerckwmb1.ad.nerc.ac.uk> Good folks, I am somewhat new to MapServer and MapScript, and I'm trying to do a few experiments with Java Mapscript in order to scope out MapServer's feasibility for a large project. I've downloaded and installed MS4W 3.0 beta 11, and Netbeans 6.9 with Tomcat 6.0.29 in order to test out Java Mapscript. I created a most basic servlet to serve up simple map tiles, and it works for serial requests. When I try to serve two requests at the same time Tomcat hangs hard. My map file and Java classes are below: MAP IMAGETYPE PNG24 NAME "nbndemo" STATUS ON EXTENT -12.5 12.5 700000 1300012.5 SIZE 800 800 IMAGECOLOR 226 245 255 CONFIG "MS_ERRORFILE" "/ms4w/apps/nbndemo/error.txt" DEBUG 5 PROJECTION "init=epsg:27700" END LAYER NAME os250k STATUS ON TILEINDEX "/OSRasterTiles/os_250k/os250k_tindex_srs.shp" TILEITEM "Location" TYPE RASTER OFFSITE 71 74 65 PROJECTION "init=epsg:27700" END EXTENT -12.5 12.5 700000 1300012.5 END END public class SPRewriter { public synchronized void doLogic(HttpServletRequest request, HttpServletResponse response) throws Exception { ServletOutputStream out = response.getOutputStream(); edu.umn.gis.mapscript.mapObj mo = new mapObj("/ms4w/apps/nbndemo/mapfiles/test.map"); imageObj image = mo.draw(); response.setContentType(image.getFormat().getMimetype()); out.write(image.getBytes()); image.delete(); mo.delete(); } } protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { SPRewriter spr = new SPRewriter(); spr.doLogic(request, response); } catch (Exception e) { e.printStackTrace(); } } Any thoughts why this would hang the moment I try to run parallel requests? Regards, Paul Gilbertson -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From warmerdam at pobox.com Wed Jul 21 08:33:23 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 21 Jul 2010 11:33:23 -0400 Subject: [mapserver-users] WCS GET_COVERAGE delivers corrupted geotiff In-Reply-To: <4C45F8A8.7080301@noaa.gov> References: <4C45F8A8.7080301@noaa.gov> Message-ID: <4C471343.3010001@pobox.com> John Cartwright wrote: > Hello All, > > I'm running Mapserver 5.6.3 and have a WCS service configured. I'm > finding that a GetCoverage request like: > > http://mapserver.ngdc.noaa.gov/cgi-bin/public/etopo1/etopo1.tif?request=GetCoverage&service=WCS&version=1.1.1&COVERAGE=etopo1&crs=EPSG:4326&format=geotiff&resx=0.0083333333&resy=0.0083333333&bbox=-95,25,-75,40 > > delivers a corrupted geotiff that appears to have header information > prepended to the TIFF, e.g. > > --wcs > Content-Type: text/xml > Content-ID: wcs.xml > > > xmlns="http://www.opengis.net/wcs/1.1" ... > > I've included the complete mapfile below. > > I'm assuming that I have something misconfigured in either Mapserver or > Apache - can someone please help me here? John, This is a WCS 1.1.x manifest and it is required by the WCS 1.1.x standard. If you want a simple file back consider using the WCS 1.0 protocol. This is an aspect of WCS 1.1+ that I complained quite bitterly about. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From John.C.Cartwright at noaa.gov Wed Jul 21 09:21:40 2010 From: John.C.Cartwright at noaa.gov (John Cartwright) Date: Wed, 21 Jul 2010 10:21:40 -0600 Subject: [mapserver-users] WCS GET_COVERAGE delivers corrupted geotiff In-Reply-To: <4C471343.3010001@pobox.com> References: <4C45F8A8.7080301@noaa.gov> <4C471343.3010001@pobox.com> Message-ID: <4C471E94.5060809@noaa.gov> Thanks Frank, I finally realized last night that I was getting a multipart mime response and that was the problem. I was using 1.1.1 because it was my understanding that there was a 1px image shift between version 1.0 and 1.1 (see thread at http://comments.gmane.org/gmane.comp.gis.mapserver.user/41599). I didn't see any ticket filed on this issue - are you aware of it? Thanks again for your help! --john On 07/21/2010 09:33 AM, Frank Warmerdam wrote: > John Cartwright wrote: >> Hello All, >> >> I'm running Mapserver 5.6.3 and have a WCS service configured. I'm >> finding that a GetCoverage request like: >> >> http://mapserver.ngdc.noaa.gov/cgi-bin/public/etopo1/etopo1.tif?request=GetCoverage&service=WCS&version=1.1.1&COVERAGE=etopo1&crs=EPSG:4326&format=geotiff&resx=0.0083333333&resy=0.0083333333&bbox=-95,25,-75,40 >> >> >> delivers a corrupted geotiff that appears to have header information >> prepended to the TIFF, e.g. >> >> --wcs >> Content-Type: text/xml >> Content-ID: wcs.xml >> >> >> > xmlns="http://www.opengis.net/wcs/1.1" > ... >> >> I've included the complete mapfile below. >> >> I'm assuming that I have something misconfigured in either Mapserver or >> Apache - can someone please help me here? > > John, > > This is a WCS 1.1.x manifest and it is required by the > WCS 1.1.x standard. If you want a simple file back consider > using the WCS 1.0 protocol. > > This is an aspect of WCS 1.1+ that I complained quite bitterly > about. > > Best regards, From warmerdam at pobox.com Wed Jul 21 10:15:51 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 21 Jul 2010 13:15:51 -0400 Subject: [mapserver-users] WCS GET_COVERAGE delivers corrupted geotiff In-Reply-To: <4C471E94.5060809@noaa.gov> References: <4C45F8A8.7080301@noaa.gov> <4C471343.3010001@pobox.com> <4C471E94.5060809@noaa.gov> Message-ID: <4C472B47.4030300@pobox.com> John Cartwright wrote: > Thanks Frank, I finally realized last night that I was getting a > multipart mime response and that was the problem. > > I was using 1.1.1 because it was my understanding that there was a 1px > image shift between version 1.0 and 1.1 (see thread at > http://comments.gmane.org/gmane.comp.gis.mapserver.user/41599). I > didn't see any ticket filed on this issue - are you aware of it? > > Thanks again for your help! John, It is my understanding that there is a half-pixel offset difference in the interpretation of the origin of a BBOX between WCS 1.1 and 1.0. I believe MapServer accounts for that properly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pramsey at opengeo.org Wed Jul 21 10:24:27 2010 From: pramsey at opengeo.org (Paul Ramsey) Date: Wed, 21 Jul 2010 10:24:27 -0700 Subject: [mapserver-users] PostGIS Layer : get only objects WITHIN view In-Reply-To: <4C46435C.5020907@swoodbridge.com> References: <4C3F1F84.5090801@neogeo-online.net> <4C3F9A2C.9030902@neogeo-online.net> <4C46435C.5020907@swoodbridge.com> Message-ID: Use the PostGIS !BOX! hack. It's described on the postgis mapserver page. http://mapserver.org/input/vector/postgis.html P On Tue, Jul 20, 2010 at 5:46 PM, Stephen Woodbridge wrote: > Maybe something like this would work for you: > http://trac.osgeo.org/mapserver/ticket/2129 > > I did this a few years ago for a client but it was between Oracle developers > and never got put in the trunk code. I don't work with an Oracle instance at > the moment but there is a patch and you might be able to adapt it to your > needs. > > -Steve W > > Lime, Steve D (DNR) wrote: >> >> Nope, that's the issue, there's no magic variable for the map extent >> nor is there a processing option. I suspect this would be lightly >> used (since it's never been asked for before). Runtime subs may be >> your best option. Depends on how accurate your extent is when it's >> passed, that is, does MapServer have to adjust it. You could probably >> hack this easily, pass the hack along so it gets to 6.0. >> >> Steve >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Guillaume Sueur Sent: Thursday, July 15, 2010 6:31 PM To: >> Mapserver-users Subject: Re: [mapserver-users] PostGIS Layer : get >> only objects WITHIN view >> >> Hi Steve, >> >> Ok for the CONTAINS thing, but what is supposed to contain my geom >> field ? Is there a magic variable like %MAP_EXTENT% usable in the >> mapfile ? >> >> Regards >> >> Guillaume >> >> Le 15/07/2010 21:40, Lime, Steve D (DNR) a ?crit : >>> >>> I'd think you'd need to use one of the spatial operators like >>> "contains" in your data statement. However, you'd need access to >>> the computed map extent to be able to do so. There's another thread >>> related to this topic but with the computed scale. >>> >>> Steve >>> >>> -----Original Message----- From: >>> mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>> Guillaume Sueur Sent: Thursday, July 15, 2010 9:48 AM To: >>> Mapserver-users Subject: [mapserver-users] PostGIS Layer : get only >>> objects WITHIN view >>> >>> Hi list, >>> >>> I was wondering if there was an efficient way to display only >>> objects fully included inside the map viewport. I could mess around >>> with runtime substitution, but as bbox is already sent, I think >>> there is a way to use it inside my DATA string. >>> >>> Thanks for your clues >>> >>> Guillaume _______________________________________________ mapserver-users >>> mailing list mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From umberto.nicoletti at gmail.com Thu Jul 22 07:04:14 2010 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 22 Jul 2010 16:04:14 +0200 Subject: [mapserver-users] Java MapScript and Tomcat6 Hanging In-Reply-To: <7F8FCD304F29444ABBE9328A09D6355117F8F17442@nerckwmb1.ad.nerc.ac.uk> References: <7F8FCD304F29444ABBE9328A09D6355117F8F17442@nerckwmb1.ad.nerc.ac.uk> Message-ID: Hi Paul, please define hang: is it a crash or simply a momentary stall? In the case it is the latter I see the synchronized keyword in the definition of the doLogic method and by looking at the code you have posted it seems superflous, but there might be some other code that you didn't post that makes it necessary. Anyway I would start looking there. HTH, Umberto On Wed, Jul 21, 2010 at 4:41 PM, Gilbertson, Paul wrote: > Good folks, > > I am somewhat new to MapServer and MapScript, and I'm trying to do a few experiments with Java Mapscript in order to scope out MapServer's feasibility for a large project. > > I've downloaded and installed MS4W 3.0 beta 11, and Netbeans 6.9 with Tomcat 6.0.29 in order to test out Java Mapscript. I created a most basic servlet to serve up simple map tiles, and it works for serial requests. When I try to serve two requests at the same time Tomcat hangs hard. > > My map file and Java classes are below: > > MAP > ?IMAGETYPE ? ? ?PNG24 > ?NAME ? ? ? ? ? "nbndemo" > ?STATUS ? ? ? ? ON > ?EXTENT ? ? ? ? -12.5 12.5 700000 1300012.5 > ?SIZE ? ? ? ? ? 800 800 > ?IMAGECOLOR ? ? 226 245 255 > ?CONFIG ? ? ? ? "MS_ERRORFILE" "/ms4w/apps/nbndemo/error.txt" > ?DEBUG ? ? ? ? ?5 > > ?PROJECTION > ? ?"init=epsg:27700" > ?END > > ?LAYER > ? ?NAME ? ? ? ? os250k > ? ?STATUS ? ? ? ON > ? ?TILEINDEX ? ?"/OSRasterTiles/os_250k/os250k_tindex_srs.shp" > ? ?TILEITEM ? ? "Location" > ? ?TYPE ? ? ? ? RASTER > ? ?OFFSITE ? ? ?71 74 65 > > ? ?PROJECTION > ? ? ?"init=epsg:27700" > ? ?END > ? ?EXTENT ? ? ? ? -12.5 12.5 700000 1300012.5 > ?END > END > > public class SPRewriter { > ? ?public synchronized void doLogic(HttpServletRequest request, HttpServletResponse response) throws Exception > ? ?{ > ? ? ? ?ServletOutputStream out = response.getOutputStream(); > ? ? ? ?edu.umn.gis.mapscript.mapObj mo = new mapObj("/ms4w/apps/nbndemo/mapfiles/test.map"); > > ? ? ? ?imageObj image = mo.draw(); > ? ? ? ?response.setContentType(image.getFormat().getMimetype()); > ? ? ? ?out.write(image.getBytes()); > ? ? ? ?image.delete(); > ? ? ? ?mo.delete(); > ? ?} > } > > ? ?protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { > ? ? ? ?try { > ? ? ? ? ? ?SPRewriter spr = new SPRewriter(); > ? ? ? ? ? ?spr.doLogic(request, response); > ? ? ? ?} ?catch (Exception e) { > ? ? ? ? ? ?e.printStackTrace(); > ? ? ? ?} > ? ?} > > Any thoughts why this would hang the moment I try to run parallel requests? > > Regards, > Paul Gilbertson > > > > -- > This message (and any attachments) is for the recipient only. NERC > is subject to the Freedom of Information Act 2000 and the contents > of this email and any reply you make may be disclosed by NERC unless > it is exempt from release under the Act. Any material supplied to > NERC may be stored in an electronic records management system. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From paulbe at ceh.ac.uk Thu Jul 22 07:07:07 2010 From: paulbe at ceh.ac.uk (Gilbertson, Paul) Date: Thu, 22 Jul 2010 15:07:07 +0100 Subject: [mapserver-users] Java MapScript and Tomcat6 Hanging In-Reply-To: References: <7F8FCD304F29444ABBE9328A09D6355117F8F17442@nerckwmb1.ad.nerc.ac.uk> Message-ID: <7F8FCD304F29444ABBE9328A09D6355117F90FC15B@nerckwmb1.ad.nerc.ac.uk> Umberto, Absolute lock up. Process is running, but never responds to requests. Tomcat creates threads for new requests, and accepts them, they just never return data. Tomcat/JVM never crashes. The synchronized keyword was an attempt to fix this, symptoms are the same with or without it. Regards, Paul Gilbertson > -----Original Message----- > From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] > Sent: 22 July 2010 15:04 > To: Gilbertson, Paul > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Java MapScript and Tomcat6 Hanging > > Hi Paul, > please define hang: is it a crash or simply a momentary stall? > > In the case it is the latter I see the synchronized keyword in the > definition of the doLogic method and by looking at the code you have > posted it seems superflous, but there might be some other code that > you didn't post that makes it necessary. Anyway I would start looking > there. > > HTH, > Umberto > > On Wed, Jul 21, 2010 at 4:41 PM, Gilbertson, Paul > wrote: > > Good folks, > > > > I am somewhat new to MapServer and MapScript, and I'm trying to do a > few experiments with Java Mapscript in order to scope out MapServer's > feasibility for a large project. > > > > I've downloaded and installed MS4W 3.0 beta 11, and Netbeans 6.9 with > Tomcat 6.0.29 in order to test out Java Mapscript. I created a most > basic servlet to serve up simple map tiles, and it works for serial > requests. When I try to serve two requests at the same time Tomcat > hangs hard. > > > > My map file and Java classes are below: > > > > MAP > > ?IMAGETYPE ? ? ?PNG24 > > ?NAME ? ? ? ? ? "nbndemo" > > ?STATUS ? ? ? ? ON > > ?EXTENT ? ? ? ? -12.5 12.5 700000 1300012.5 > > ?SIZE ? ? ? ? ? 800 800 > > ?IMAGECOLOR ? ? 226 245 255 > > ?CONFIG ? ? ? ? "MS_ERRORFILE" "/ms4w/apps/nbndemo/error.txt" > > ?DEBUG ? ? ? ? ?5 > > > > ?PROJECTION > > ? ?"init=epsg:27700" > > ?END > > > > ?LAYER > > ? ?NAME ? ? ? ? os250k > > ? ?STATUS ? ? ? ON > > ? ?TILEINDEX ? ?"/OSRasterTiles/os_250k/os250k_tindex_srs.shp" > > ? ?TILEITEM ? ? "Location" > > ? ?TYPE ? ? ? ? RASTER > > ? ?OFFSITE ? ? ?71 74 65 > > > > ? ?PROJECTION > > ? ? ?"init=epsg:27700" > > ? ?END > > ? ?EXTENT ? ? ? ? -12.5 12.5 700000 1300012.5 > > ?END > > END > > > > public class SPRewriter { > > ? ?public synchronized void doLogic(HttpServletRequest request, > HttpServletResponse response) throws Exception > > ? ?{ > > ? ? ? ?ServletOutputStream out = response.getOutputStream(); > > ? ? ? ?edu.umn.gis.mapscript.mapObj mo = new > mapObj("/ms4w/apps/nbndemo/mapfiles/test.map"); > > > > ? ? ? ?imageObj image = mo.draw(); > > ? ? ? ?response.setContentType(image.getFormat().getMimetype()); > > ? ? ? ?out.write(image.getBytes()); > > ? ? ? ?image.delete(); > > ? ? ? ?mo.delete(); > > ? ?} > > } > > > > ? ?protected void processRequest(HttpServletRequest request, > HttpServletResponse response) throws ServletException, IOException { > > ? ? ? ?try { > > ? ? ? ? ? ?SPRewriter spr = new SPRewriter(); > > ? ? ? ? ? ?spr.doLogic(request, response); > > ? ? ? ?} ?catch (Exception e) { > > ? ? ? ? ? ?e.printStackTrace(); > > ? ? ? ?} > > ? ?} > > > > Any thoughts why this would hang the moment I try to run parallel > requests? > > > > Regards, > > Paul Gilbertson > > > > > > > > -- > > This message (and any attachments) is for the recipient only. NERC > > is subject to the Freedom of Information Act 2000 and the contents > > of this email and any reply you make may be disclosed by NERC unless > > it is exempt from release under the Act. Any material supplied to > > NERC may be stored in an electronic records management system. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From Steve.Lime at state.mn.us Thu Jul 22 08:35:16 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 22 Jul 2010 10:35:16 -0500 Subject: [mapserver-users] [OT] Scaling projected values using proj.4 Message-ID: Hi folks: Anyone know if it's possible to scale coordinate values as after projection but within proj.4? I have a need to project from UTM to epsg:4326 but scale the results by 100000 for consumption by another service. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibrahimsaricicek at gmail.com Fri Jul 23 01:46:53 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Fri, 23 Jul 2010 01:46:53 -0700 (PDT) Subject: [mapserver-users] Re: Rendering Problem In-Reply-To: <4BFBC93A.7080309@gatewaygeomatics.com> References: <1274173405434-5069072.post@n2.nabble.com> <4BF27FF1.9070408@gatewaygeomatics.com> <1274776830169-5097451.post@n2.nabble.com> <4BFBC47F.5090303@gatewaygeomatics.com> <1274791745856-5098281.post@n2.nabble.com> <4BFBC93A.7080309@gatewaygeomatics.com> Message-ID: <1279874813661-5328796.post@n2.nabble.com> Hi all, I couldn't still find a way to solve the problem discussed on; http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-td5069072.html#a5098281. Waiting for any advice.. Thanks in advence.. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ibrahimsaricicek at gmail.com Fri Jul 23 02:59:16 2010 From: ibrahimsaricicek at gmail.com (ibrahim saricicek) Date: Fri, 23 Jul 2010 12:59:16 +0300 Subject: [mapserver-users] Re: Rendering Problem In-Reply-To: <7F8FCD304F29444ABBE9328A09D6355117F90FC460@nerckwmb1.ad.nerc.ac.uk> References: <1274173405434-5069072.post@n2.nabble.com> <4BF27FF1.9070408@gatewaygeomatics.com> <1274776830169-5097451.post@n2.nabble.com> <4BFBC47F.5090303@gatewaygeomatics.com> <1274791745856-5098281.post@n2.nabble.com> <4BFBC93A.7080309@gatewaygeomatics.com> <1279874813661-5328796.post@n2.nabble.com> <7F8FCD304F29444ABBE9328A09D6355117F90FC460@nerckwmb1.ad.nerc.ac.uk> Message-ID: Hi All, Yes the same.. And also tried several fonts, including monospaced fonts.. Ragards.. On Fri, Jul 23, 2010 at 12:03 PM, Gilbertson, Paul wrote: > Ibrahim, > > Have you checked that the font files are the same on both machines? > > Regards, > Paul Gilbertson > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > > bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek > > Sent: 23 July 2010 09:47 > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Re: Rendering Problem > > > > > > Hi all, > > > > I couldn't still find a way to solve the problem discussed on; > > http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem- > > td5069072.html#a5098281. > > > > Waiting for any advice.. > > Thanks in advence.. > > -- > > View this message in context: http://osgeo- > > org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > This message (and any attachments) is for the recipient only. NERC > is subject to the Freedom of Information Act 2000 and the contents > of this email and any reply you make may be disclosed by NERC unless > it is exempt from release under the Act. Any material supplied to > NERC may be stored in an electronic records management system. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ven.tammineni at gmail.com Fri Jul 23 04:42:07 2010 From: ven.tammineni at gmail.com (venkat) Date: Fri, 23 Jul 2010 17:12:07 +0530 Subject: [mapserver-users] Reg:- Connecting Mapserver with Oracle Spatial using asp.net Message-ID: Dear All, I would like to connect Mapserver with Oracle 10g Spatial .,when i try to connect using Oracle spatial I am getting error "Oracle Spatial is not supported". Please let me know...Where I am doing wrong.I am waiting for your great response. Here is my mapfile code. LAYER NAME "India National Highways" TYPE Line CONNECTIONTYPE oraclespatial CONNECTION "GIS/gis123" DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047" # LABELITEM "nh_no_" Status OFF DUMP TRUE CLASS NAME 'NATIONAL HIGHWAYS' STYLE COLOR 249 139 42 End End # end of the class END # end of the Layer Thanks and Regards, Venkat -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Jul 23 05:16:33 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 23 Jul 2010 15:16:33 +0300 Subject: [mapserver-users] Reg:- Connecting Mapserver with Oracle Spatialusing asp.net References: Message-ID: Hi, Most probably the message you see is telling it all: your Mapserver version does not support Oracle. If you work with Windows the MS4W comes with Oracle support but it must be activated first by following the instructions which come with the delivery. I would also suggest reading at least the documents http://mapserver.org/input/vector/oracle.html and http://mapserver.org/installation/oracle.html -Jukka Rahkonen- venkat wrote: Dear All, I would like to connect Mapserver with Oracle 10g Spatial .,when i try to connect using Oracle spatial I am getting error "Oracle Spatial is not supported". Please let me know...Where I am doing wrong.I am waiting for your great response. Here is my mapfile code. LAYER NAME "India National Highways" TYPE Line CONNECTIONTYPE oraclespatial CONNECTION "GIS/gis123" DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047" # LABELITEM "nh_no_" Status OFF DUMP TRUE CLASS NAME 'NATIONAL HIGHWAYS' STYLE COLOR 249 139 42 End End # end of the class END # end of the Layer Thanks and Regards, Venkat From jmckenna at gatewaygeomatics.com Fri Jul 23 05:19:40 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 23 Jul 2010 09:19:40 -0300 Subject: [mapserver-users] Reg:- Connecting Mapserver with Oracle Spatial using asp.net In-Reply-To: References: Message-ID: <4C4988DC.1090901@gatewaygeomatics.com> Hello, You are trying to connect directly from MapServer to OracleSpatial, so you must compile MapServer with OracleSpatial support; to verify that you have done this correctly, at the commandline execute "mapserv -v" and look for "INPUT=ORACLESPATIAL" in the response. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ venkat wrote: > Dear All, > > I would like to connect Mapserver with Oracle 10g Spatial .,when i > try to connect using Oracle spatial I am getting error "Oracle Spatial > is not supported". > > > Please let me know...Where I am doing wrong.I am waiting for your great > response. > > > > Here is my mapfile code. > > LAYER > NAME "India National Highways" > TYPE Line > > CONNECTIONTYPE oraclespatial > CONNECTION "GIS/gis123" > DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047" > # LABELITEM "nh_no_" > Status OFF > DUMP TRUE > > CLASS > NAME 'NATIONAL HIGHWAYS' > > STYLE > COLOR 249 139 42 > End > > > End # end of the class > END # end of the Layer > > > Thanks and Regards, > > Venkat > From toni.pignataro at wheregroup.com Fri Jul 23 05:38:59 2010 From: toni.pignataro at wheregroup.com (Toni Pignataro) Date: Fri, 23 Jul 2010 14:38:59 +0200 Subject: [mapserver-users] 24 bit PNG transparent symbols In-Reply-To: <4BCECD6D.406@geosar.ch> References: <4BCECD6D.406@geosar.ch> Message-ID: <4C498D63.5000207@wheregroup.com> Hello list, Did any one solve this or have an idea, you Davide? I am having exactly the same problem, i am not getting the png image transparent. I know to use the OPACITY, but this gives tranparency to the whole layer and is not what i need. What i want is to set the color red in an png symbol transparent . I created this png in Gimp with an tranparent background and filled it with the color red (RGB 255,0,0) My defined OUTPUTFORMAT is: OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END CLASS-section: STYLE SYMBOL 'red' SIZE 100 MINSIZE 100 COLOR 255 0 0 END Symbol-section: SYMBOL NAME "red" TYPE PIXMAP IMAGE "red.png" TRANSPARENT 100 END So my questions are the following: 1. Due to the mapserverdocumentation it says for TRANSPARENT in the SYMBOL-section "[color index]". What does this mean? 2. The COLOR defined in the STYLE-section: is this the color on which the transparency applies? So her i would place 255 0 0, because this is my color where i want the transparency? Thanks for any suggestions, Toni P. Davide Ticozzi schrieb: > Hi List, > > I'have the same question posted by Ben Brehmer in the late 2008, but > nobody have given a response until now. > > I've been trying to get 24 bit PNG symbols to be transparent. > > I've tried both GD and AGG output. I've tried --with-experimental-png. > I've tried editing the symbol in photoshop to be transparent. > Basically fooled around with all the different output format options. > I've tried both RGB and RGBA png images. > > 8 bit PNG symbols work just fine. But the 24 bit symbols always have a > white and non-transparent background (see attached image). > > Is there any other mapfile configurations I can try before I convert > all of my 24 bit images to 8 bit? > > Or maybe this is a known bug? > > Thanks, > > Dave > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thlin.box at gmail.com Fri Jul 23 06:39:42 2010 From: thlin.box at gmail.com (easyl) Date: Fri, 23 Jul 2010 06:39:42 -0700 (PDT) Subject: [mapserver-users] [Info] S-57 nautical map on MapServer Message-ID: <1279892382095-5329589.post@n2.nabble.com> Since several months I was looking for an good example or tutorial for rendering S-57 nautical charts on MapServer. After searching without any success I tried to build up my first map with limit knowledge. IMO, the most hardest part is how to render them with S-52 style standard. (The project http://www.opencpn.org/ has done a really good work to render nautical map in an application.) Some resource: http://home.gdal.org/projects/s57/index.html http://grass.osgeo.org/wiki/S-57_data http://www.s-57.com/ Here is a short description of what I have done. 1) Conver S-57 (*.000) files into shapefiles by using ogr2ogr. An S-57 file is split into several shapefiles; Each shapefile contains single one layer of single geometry type. For example: src.000 ------ DEPARE ------> Area (a shapefile) + +--> Line (a shapefile) | +-- (other layer) ......................... (a shapefile) Here is the ogr2ogr commands > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/A src.000 -nlt POLYGON DEPARE > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/L src.000 -nlt LINESTRING DEPARE The SOUNDG layer must be converted with special care. > export OGR_S57_OPTIONS="SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON" > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/SOUNDG/P src.000 -nlt POINT SOUNDG 2) Construct mapfile 2.1) Generally there are (at least) two things to take care: scale and layer priority. S-57 data may have different scale value and overlap with each other. Moreover, a S-57 data may not have a rectangle extent. For those reasons, I construct mapfile with the following manner: Sort layers after scale value, then layer priority. Group them if necessary. MAP LAYER // scale: 1:100,000 // priority: low CONNECTION "shapefile/100000/DEPARE/A/DEPARE.shp" DATA "DEPARE" GROUP "DEPARE" END LAYER // scale: 1:100,000 // priority: high CONNECTION "shapefile/100000/LIGHTS/P/LIGHTS.shp" DATA "LIGHTS" GROUP "LIGHTS" END LAYER // scale: 1:10,000 // priority: low CONNECTION "shapefile/10000/DEPARE/A/DEPARE.shp" DATA "DEPARE" GROUP "DEPARE" END LAYER // scale: 1:10,000 // priority: high CONNECTION "shapefile/10000/LIGHTS/P/LIGHTS.shp" DATA "LIGHTS" GROUP "LIGHTS" END END 2.2) apply style. It is the hardest part. Here I give abother two examples. LAYER NAME DEPARE_A_1500000_1 GROUP "DEPARE" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "shapefile/1500000/DEPARE/A/DEPARE.shp" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=ON" DATA "DEPARE" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END CLASSITEM DRVAL1 CLASS EXPRESSION ([DRVAL1] < 3) STYLE COLOR 115 182 239 END END CLASS EXPRESSION ([DRVAL1] >= 3 && [DRVAL1] < 8) STYLE COLOR 156 198 247 END END CLASS EXPRESSION ([DRVAL1] >= 8) STYLE COLOR 214 235 239 END END END LAYER NAME LIGHTS_P_1500_1 GROUP "LIGHTS" STATUS ON TYPE POINT #MAXSCALEDENOM 1501 CONNECTIONTYPE OGR CONNECTION "shapefile/1500/LIGHTS/P/LIGHTS.shp" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=ON" DATA "LIGHTS" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END CLASSITEM COLOUR CLASS EXPRESSION ([COLOUR] == 3) STYLE COLOR 255 0 0 SIZE [VALNMR] OPACITY 50 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION ([COLOUR] == 4) STYLE COLOR 0 255 0 SIZE [VALNMR] OPACITY 50 OUTLINECOLOR 0 0 0 END END ... END Here is the result: http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.png http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.PNG s57MS.PNG Of course, it needs still a lot of symbols, color encoding, customized style after standards .... I have wrote some script to automatically convert S-57 files and construct mapfile (manually writing a mapfile for 100+ layers from 20+ S-57 files is not practical...). If anyone has interest, I can share them or even make a project to let everyone contribute..... Now the task to be done is to encode every possible style in mapfile............................:( Any suggestion is welcome! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Info-S-57-nautical-map-on-MapServer-tp5329589p5329589.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Fri Jul 23 06:52:33 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 23 Jul 2010 10:52:33 -0300 Subject: [mapserver-users] [Info] S-57 nautical map on MapServer In-Reply-To: <1279892382095-5329589.post@n2.nabble.com> References: <1279892382095-5329589.post@n2.nabble.com> Message-ID: <4C499EA1.7060408@gatewaygeomatics.com> I may have missed this in your explanation, but for the record MapServer can read and display S-57 data in its raw format, through the OGR library (CONNECTIONTYPE OGR)...meaning no conversion is necessary. And a shameful plug: in our upcoming MapServer workshop at FOSS4G in Barcelona we will demonstrate this (http://2010.foss4g.org/workshop08.php). :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ easyl wrote: > Since several months I was looking for an good example or tutorial for > rendering S-57 nautical charts on MapServer. > After searching without any success I tried to build up my first map with > limit knowledge. > > IMO, the most hardest part is how to render them with S-52 style standard. > (The project http://www.opencpn.org/ has done a really good work to render > nautical map in an application.) > > Some resource: > http://home.gdal.org/projects/s57/index.html > http://grass.osgeo.org/wiki/S-57_data > http://www.s-57.com/ > > Here is a short description of what I have done. > > 1) Conver S-57 (*.000) files into shapefiles by using ogr2ogr. > An S-57 file is split into several shapefiles; > Each shapefile contains single one layer of single geometry type. > > For example: > src.000 ------ DEPARE ------> Area (a shapefile) > + +--> Line (a shapefile) > | > +-- (other layer) ......................... (a > shapefile) > > Here is the ogr2ogr commands > > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/A > src.000 -nlt POLYGON DEPARE > > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/L > src.000 -nlt LINESTRING DEPARE > > The SOUNDG layer must be converted with special care. > > export OGR_S57_OPTIONS="SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON" > > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/SOUNDG/P src.000 > -nlt POINT SOUNDG > > 2) Construct mapfile > 2.1) Generally there are (at least) two things to take care: scale and > layer priority. > > S-57 data may have different scale value and overlap with each > other. > Moreover, a S-57 data may not have a rectangle extent. > > For those reasons, I construct mapfile with the following manner: > Sort layers after scale value, then layer priority. > Group them if necessary. > MAP > LAYER > // scale: 1:100,000 > // priority: low > CONNECTION "shapefile/100000/DEPARE/A/DEPARE.shp" > DATA "DEPARE" > GROUP "DEPARE" > END > > LAYER > // scale: 1:100,000 > // priority: high > CONNECTION "shapefile/100000/LIGHTS/P/LIGHTS.shp" > DATA "LIGHTS" > GROUP "LIGHTS" > END > > LAYER > // scale: 1:10,000 > // priority: low > CONNECTION "shapefile/10000/DEPARE/A/DEPARE.shp" > DATA "DEPARE" > GROUP "DEPARE" > END > > LAYER > // scale: 1:10,000 > // priority: high > CONNECTION "shapefile/10000/LIGHTS/P/LIGHTS.shp" > DATA "LIGHTS" > GROUP "LIGHTS" > END > END > > 2.2) apply style. It is the hardest part. > Here I give abother two examples. > > LAYER > NAME DEPARE_A_1500000_1 > GROUP "DEPARE" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "shapefile/1500000/DEPARE/A/DEPARE.shp" > PROCESSING "CLOSE_CONNECTION=DEFER" > PROCESSING "LABEL_NO_CLIP=ON" > DATA "DEPARE" > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > CLASSITEM DRVAL1 > CLASS > EXPRESSION ([DRVAL1] < 3) > STYLE > COLOR 115 182 239 > END > END > CLASS > EXPRESSION ([DRVAL1] >= 3 && [DRVAL1] < 8) > STYLE > COLOR 156 198 247 > END > END > CLASS > EXPRESSION ([DRVAL1] >= 8) > STYLE > COLOR 214 235 239 > END > END > END > > > LAYER > NAME LIGHTS_P_1500_1 > GROUP "LIGHTS" > STATUS ON > TYPE POINT > #MAXSCALEDENOM 1501 > CONNECTIONTYPE OGR > CONNECTION "shapefile/1500/LIGHTS/P/LIGHTS.shp" > PROCESSING "CLOSE_CONNECTION=DEFER" > PROCESSING "LABEL_NO_CLIP=ON" > DATA "LIGHTS" > PROJECTION > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > CLASSITEM COLOUR > CLASS > EXPRESSION ([COLOUR] == 3) > STYLE > COLOR 255 0 0 > SIZE [VALNMR] > OPACITY 50 > OUTLINECOLOR 0 0 0 > END > END > CLASS > EXPRESSION ([COLOUR] == 4) > STYLE > COLOR 0 255 0 > SIZE [VALNMR] > OPACITY 50 > OUTLINECOLOR 0 0 0 > END > END > ... > END > > Here is the result: > http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.png > http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.PNG s57MS.PNG > Of course, it needs still a lot of symbols, color encoding, customized > style after standards .... > > I have wrote some script to automatically convert S-57 files and construct > mapfile (manually writing a mapfile for 100+ layers from 20+ S-57 files is > not practical...). If anyone has interest, I can share them or even make a > project to let everyone contribute..... > > Now the task to be done is to encode every possible style in > mapfile............................:( > > Any suggestion is welcome! > > > > From Johan.Forsman at LA.GOV Fri Jul 23 07:20:17 2010 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Fri, 23 Jul 2010 09:20:17 -0500 Subject: [mapserver-users] CLASS EXPRESSION regex help? Message-ID: All: Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to render two classes based on content in a PostGIS field. For the first CLASS I want all records that start with "LADE", and using NAME "LADE" EXPRESSION /^LADE.*/ appears to return the expected records. However, for the second CLASS I want all records that DO NOT start with "LADE", but using NAME "Other" EXPRESSION /^(?!LADE).*/ does not return any records and the log contains msEvalExpression() error: Regular expression error. Invalid regular expression. Examples out in the ether all indicate that this "negative lookahead" is supposed to do exactly what I want. What am I doing wrong in this instance? Thanks! /Johan. ---------------------- Johan Forsman Geologist Safe Drinking Water Program Louisiana Department of Health and Hospitals Office of Public Health Telephone: 225.342.7309 Telefax: 225.342.7303 From jack.gibb at mohawkcollege.ca Fri Jul 23 07:16:20 2010 From: jack.gibb at mohawkcollege.ca (Gibb, Jack) Date: Fri, 23 Jul 2010 10:16:20 -0400 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 30, Issue 48 In-Reply-To: <20100723133947.4784FE01D2B@lists.osgeo.org> References: <20100723133947.4784FE01D2B@lists.osgeo.org> Message-ID: <2C25AE3D123FF848BFA249A8DE54936E082274D515@MCFE-140-EX001.mc.local> Shelley, A quick question. Has Zoe Green every been given a Mohawk College email address. She would need one to download ArcGIS software. Cheers Jack ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org [mapserver-users-request at lists.osgeo.org] Sent: July 23, 2010 9:39 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 30, Issue 48 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Rendering Problem (Ibrahim Saricicek) 2. Re: Re: Rendering Problem (ibrahim saricicek) 3. Reg:- Connecting Mapserver with Oracle Spatial using asp.net (venkat) 4. Re: Reg:- Connecting Mapserver with Oracle Spatialusing asp.net (Rahkonen Jukka) 5. Re: Reg:- Connecting Mapserver with Oracle Spatial using asp.net (Jeff McKenna) 6. Re: 24 bit PNG transparent symbols (Toni Pignataro) 7. [Info] S-57 nautical map on MapServer (easyl) ---------------------------------------------------------------------- Message: 1 Date: Fri, 23 Jul 2010 01:46:53 -0700 (PDT) From: Ibrahim Saricicek Subject: [mapserver-users] Re: Rendering Problem To: mapserver-users at lists.osgeo.org Message-ID: <1279874813661-5328796.post at n2.nabble.com> Content-Type: text/plain; charset=us-ascii Hi all, I couldn't still find a way to solve the problem discussed on; http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-td5069072.html#a5098281. Waiting for any advice.. Thanks in advence.. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.html Sent from the Mapserver - User mailing list archive at Nabble.com. ------------------------------ Message: 2 Date: Fri, 23 Jul 2010 12:59:16 +0300 From: ibrahim saricicek Subject: Re: [mapserver-users] Re: Rendering Problem To: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi All, Yes the same.. And also tried several fonts, including monospaced fonts.. Ragards.. On Fri, Jul 23, 2010 at 12:03 PM, Gilbertson, Paul wrote: > Ibrahim, > > Have you checked that the font files are the same on both machines? > > Regards, > Paul Gilbertson > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > > bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek > > Sent: 23 July 2010 09:47 > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Re: Rendering Problem > > > > > > Hi all, > > > > I couldn't still find a way to solve the problem discussed on; > > http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem- > > td5069072.html#a5098281. > > > > Waiting for any advice.. > > Thanks in advence.. > > -- > > View this message in context: http://osgeo- > > org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > This message (and any attachments) is for the recipient only. NERC > is subject to the Freedom of Information Act 2000 and the contents > of this email and any reply you make may be disclosed by NERC unless > it is exempt from release under the Act. Any material supplied to > NERC may be stored in an electronic records management system. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100723/c0699ffd/attachment-0001.html ------------------------------ Message: 3 Date: Fri, 23 Jul 2010 17:12:07 +0530 From: venkat Subject: [mapserver-users] Reg:- Connecting Mapserver with Oracle Spatial using asp.net To: mapserver-announce at lists.osgeo.org, mapserver-users at lists.osgeo.org, mapserver-users at lists.umn.edu Message-ID: Content-Type: text/plain; charset="iso-8859-1" Dear All, I would like to connect Mapserver with Oracle 10g Spatial .,when i try to connect using Oracle spatial I am getting error "Oracle Spatial is not supported". Please let me know...Where I am doing wrong.I am waiting for your great response. Here is my mapfile code. LAYER NAME "India National Highways" TYPE Line CONNECTIONTYPE oraclespatial CONNECTION "GIS/gis123" DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047" # LABELITEM "nh_no_" Status OFF DUMP TRUE CLASS NAME 'NATIONAL HIGHWAYS' STYLE COLOR 249 139 42 End End # end of the class END # end of the Layer Thanks and Regards, Venkat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100723/2d175f49/attachment-0001.html ------------------------------ Message: 4 Date: Fri, 23 Jul 2010 15:16:33 +0300 From: "Rahkonen Jukka" Subject: Re: [mapserver-users] Reg:- Connecting Mapserver with Oracle Spatialusing asp.net To: "venkat" , Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi, Most probably the message you see is telling it all: your Mapserver version does not support Oracle. If you work with Windows the MS4W comes with Oracle support but it must be activated first by following the instructions which come with the delivery. I would also suggest reading at least the documents http://mapserver.org/input/vector/oracle.html and http://mapserver.org/installation/oracle.html -Jukka Rahkonen- venkat wrote: Dear All, I would like to connect Mapserver with Oracle 10g Spatial .,when i try to connect using Oracle spatial I am getting error "Oracle Spatial is not supported". Please let me know...Where I am doing wrong.I am waiting for your great response. Here is my mapfile code. LAYER NAME "India National Highways" TYPE Line CONNECTIONTYPE oraclespatial CONNECTION "GIS/gis123" DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047" # LABELITEM "nh_no_" Status OFF DUMP TRUE CLASS NAME 'NATIONAL HIGHWAYS' STYLE COLOR 249 139 42 End End # end of the class END # end of the Layer Thanks and Regards, Venkat ------------------------------ Message: 5 Date: Fri, 23 Jul 2010 09:19:40 -0300 From: Jeff McKenna Subject: Re: [mapserver-users] Reg:- Connecting Mapserver with Oracle Spatial using asp.net To: MapServer Message-ID: <4C4988DC.1090901 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello, You are trying to connect directly from MapServer to OracleSpatial, so you must compile MapServer with OracleSpatial support; to verify that you have done this correctly, at the commandline execute "mapserv -v" and look for "INPUT=ORACLESPATIAL" in the response. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ venkat wrote: > Dear All, > > I would like to connect Mapserver with Oracle 10g Spatial .,when i > try to connect using Oracle spatial I am getting error "Oracle Spatial > is not supported". > > > Please let me know...Where I am doing wrong.I am waiting for your great > response. > > > > Here is my mapfile code. > > LAYER > NAME "India National Highways" > TYPE Line > > CONNECTIONTYPE oraclespatial > CONNECTION "GIS/gis123" > DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047" > # LABELITEM "nh_no_" > Status OFF > DUMP TRUE > > CLASS > NAME 'NATIONAL HIGHWAYS' > > STYLE > COLOR 249 139 42 > End > > > End # end of the class > END # end of the Layer > > > Thanks and Regards, > > Venkat > ------------------------------ Message: 6 Date: Fri, 23 Jul 2010 14:38:59 +0200 From: Toni Pignataro Subject: Re: [mapserver-users] 24 bit PNG transparent symbols To: Davide Ticozzi , mapserver-users at lists.osgeo.org Message-ID: <4C498D63.5000207 at wheregroup.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Hello list, Did any one solve this or have an idea, you Davide? I am having exactly the same problem, i am not getting the png image transparent. I know to use the OPACITY, but this gives tranparency to the whole layer and is not what i need. What i want is to set the color red in an png symbol transparent . I created this png in Gimp with an tranparent background and filled it with the color red (RGB 255,0,0) My defined OUTPUTFORMAT is: OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END CLASS-section: STYLE SYMBOL 'red' SIZE 100 MINSIZE 100 COLOR 255 0 0 END Symbol-section: SYMBOL NAME "red" TYPE PIXMAP IMAGE "red.png" TRANSPARENT 100 END So my questions are the following: 1. Due to the mapserverdocumentation it says for TRANSPARENT in the SYMBOL-section "[color index]". What does this mean? 2. The COLOR defined in the STYLE-section: is this the color on which the transparency applies? So her i would place 255 0 0, because this is my color where i want the transparency? Thanks for any suggestions, Toni P. Davide Ticozzi schrieb: > Hi List, > > I'have the same question posted by Ben Brehmer in the late 2008, but > nobody have given a response until now. > > I've been trying to get 24 bit PNG symbols to be transparent. > > I've tried both GD and AGG output. I've tried --with-experimental-png. > I've tried editing the symbol in photoshop to be transparent. > Basically fooled around with all the different output format options. > I've tried both RGB and RGBA png images. > > 8 bit PNG symbols work just fine. But the 24 bit symbols always have a > white and non-transparent background (see attached image). > > Is there any other mapfile configurations I can try before I convert > all of my 24 bit images to 8 bit? > > Or maybe this is a known bug? > > Thanks, > > Dave > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 7 Date: Fri, 23 Jul 2010 06:39:42 -0700 (PDT) From: easyl Subject: [mapserver-users] [Info] S-57 nautical map on MapServer To: mapserver-users at lists.osgeo.org Message-ID: <1279892382095-5329589.post at n2.nabble.com> Content-Type: text/plain; charset=us-ascii Since several months I was looking for an good example or tutorial for rendering S-57 nautical charts on MapServer. After searching without any success I tried to build up my first map with limit knowledge. IMO, the most hardest part is how to render them with S-52 style standard. (The project http://www.opencpn.org/ has done a really good work to render nautical map in an application.) Some resource: http://home.gdal.org/projects/s57/index.html http://grass.osgeo.org/wiki/S-57_data http://www.s-57.com/ Here is a short description of what I have done. 1) Conver S-57 (*.000) files into shapefiles by using ogr2ogr. An S-57 file is split into several shapefiles; Each shapefile contains single one layer of single geometry type. For example: src.000 ------ DEPARE ------> Area (a shapefile) + +--> Line (a shapefile) | +-- (other layer) ......................... (a shapefile) Here is the ogr2ogr commands > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/A src.000 -nlt POLYGON DEPARE > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/L src.000 -nlt LINESTRING DEPARE The SOUNDG layer must be converted with special care. > export OGR_S57_OPTIONS="SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON" > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/SOUNDG/P src.000 -nlt POINT SOUNDG 2) Construct mapfile 2.1) Generally there are (at least) two things to take care: scale and layer priority. S-57 data may have different scale value and overlap with each other. Moreover, a S-57 data may not have a rectangle extent. For those reasons, I construct mapfile with the following manner: Sort layers after scale value, then layer priority. Group them if necessary. MAP LAYER // scale: 1:100,000 // priority: low CONNECTION "shapefile/100000/DEPARE/A/DEPARE.shp" DATA "DEPARE" GROUP "DEPARE" END LAYER // scale: 1:100,000 // priority: high CONNECTION "shapefile/100000/LIGHTS/P/LIGHTS.shp" DATA "LIGHTS" GROUP "LIGHTS" END LAYER // scale: 1:10,000 // priority: low CONNECTION "shapefile/10000/DEPARE/A/DEPARE.shp" DATA "DEPARE" GROUP "DEPARE" END LAYER // scale: 1:10,000 // priority: high CONNECTION "shapefile/10000/LIGHTS/P/LIGHTS.shp" DATA "LIGHTS" GROUP "LIGHTS" END END 2.2) apply style. It is the hardest part. Here I give abother two examples. LAYER NAME DEPARE_A_1500000_1 GROUP "DEPARE" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "shapefile/1500000/DEPARE/A/DEPARE.shp" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=ON" DATA "DEPARE" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END CLASSITEM DRVAL1 CLASS EXPRESSION ([DRVAL1] < 3) STYLE COLOR 115 182 239 END END CLASS EXPRESSION ([DRVAL1] >= 3 && [DRVAL1] < 8) STYLE COLOR 156 198 247 END END CLASS EXPRESSION ([DRVAL1] >= 8) STYLE COLOR 214 235 239 END END END LAYER NAME LIGHTS_P_1500_1 GROUP "LIGHTS" STATUS ON TYPE POINT #MAXSCALEDENOM 1501 CONNECTIONTYPE OGR CONNECTION "shapefile/1500/LIGHTS/P/LIGHTS.shp" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=ON" DATA "LIGHTS" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END CLASSITEM COLOUR CLASS EXPRESSION ([COLOUR] == 3) STYLE COLOR 255 0 0 SIZE [VALNMR] OPACITY 50 OUTLINECOLOR 0 0 0 END END CLASS EXPRESSION ([COLOUR] == 4) STYLE COLOR 0 255 0 SIZE [VALNMR] OPACITY 50 OUTLINECOLOR 0 0 0 END END ... END Here is the result: http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.png http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.PNG s57MS.PNG Of course, it needs still a lot of symbols, color encoding, customized style after standards .... I have wrote some script to automatically convert S-57 files and construct mapfile (manually writing a mapfile for 100+ layers from 20+ S-57 files is not practical...). If anyone has interest, I can share them or even make a project to let everyone contribute..... Now the task to be done is to encode every possible style in mapfile............................:( Any suggestion is welcome! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Info-S-57-nautical-map-on-MapServer-tp5329589p5329589.html Sent from the Mapserver - User mailing list archive at Nabble.com. ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 30, Issue 48 *********************************************** This E-mail contains privileged and confidential information intended only for the individual or entity named in the message. If the reader of this message is not the intended recipient, or the agent responsible to deliver it to the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If this communication was received in error, please notify the sender by reply E-mail immediately, and delete and destroy the original message. From stevegrey78 at gmail.com Fri Jul 23 07:46:30 2010 From: stevegrey78 at gmail.com (Steve Grey) Date: Fri, 23 Jul 2010 15:46:30 +0100 Subject: [mapserver-users] CLASS EXPRESSION regex help? In-Reply-To: References: Message-ID: Johan, You are having success looking for records that match a pattern starting with 'LADE' - similar to using 'LIKE' - but are getting stuck looking for records matching a pattern that doesn't start with 'LADE'. Try an approach along the lines of NOT LIKE. Steve On 23 July 2010 15:20, Johan Forsman wrote: > All: > > Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to > render two classes based on content in a PostGIS field. > > For the first CLASS I want all records that start with "LADE", and using > > NAME "LADE" > EXPRESSION /^LADE.*/ > > appears to return the expected records. > > However, for the second CLASS I want all records that DO NOT start with > "LADE", but using > > NAME "Other" > EXPRESSION /^(?!LADE).*/ > > does not return any records and the log contains > > msEvalExpression() error: Regular expression error. Invalid regular > expression. > > Examples out in the ether all indicate that this "negative lookahead" is > supposed to do exactly what I want. > > What am I doing wrong in this instance? > > Thanks! > /Johan. > > ---------------------- > Johan Forsman > Geologist > Safe Drinking Water Program > Louisiana Department of Health and Hospitals > Office of Public Health > Telephone: 225.342.7309 > Telefax: 225.342.7303 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Jul 23 08:01:29 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 23 Jul 2010 10:01:29 -0500 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: References: Message-ID: Hi Johan: Are you looking for just two classes, one for records that start with "LADE" and another for everything else? If so you can just omit the expression from the second class and it will function as a default class so everything that doesn't match the first will be assigned the second. It's faster to execute than trying to expressly define a second regex. Doesn't solve the regex error but then again you may not need to. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: Friday, July 23, 2010 9:20 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CLASS EXPRESSION regex help? All: Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to render two classes based on content in a PostGIS field. For the first CLASS I want all records that start with "LADE", and using NAME "LADE" EXPRESSION /^LADE.*/ appears to return the expected records. However, for the second CLASS I want all records that DO NOT start with "LADE", but using NAME "Other" EXPRESSION /^(?!LADE).*/ does not return any records and the log contains msEvalExpression() error: Regular expression error. Invalid regular expression. Examples out in the ether all indicate that this "negative lookahead" is supposed to do exactly what I want. What am I doing wrong in this instance? Thanks! /Johan. ---------------------- Johan Forsman Geologist Safe Drinking Water Program Louisiana Department of Health and Hospitals Office of Public Health Telephone: 225.342.7309 Telefax: 225.342.7303 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jeff.dege at korterra.com Fri Jul 23 08:35:22 2010 From: jeff.dege at korterra.com (Jeff Dege) Date: Fri, 23 Jul 2010 10:35:22 -0500 Subject: [mapserver-users] Fast-CGI mode on Ubuntu Message-ID: I'm running MapServer version 5.6.1 on Ubuntu 10.04, using the default configuration as created by the Ubuntu repository packages. According to "mapserv -v", the executable is compiled to support fast-CGI mode. That doesn't mean it's configured to support it. Can anyone tell me whether the default configuration of mapserv on Ubuntu uses fast-CGI? Or point me to some decent documentation on how to change it so that it is, if it isn't? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Johan.Forsman at LA.GOV Fri Jul 23 08:37:27 2010 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Fri, 23 Jul 2010 10:37:27 -0500 Subject: [mapserver-users] CLASS EXPRESSION regex help? In-Reply-To: References: Message-ID: Hi Steve, and thanks for the reply. I was under the impression that the CLASS expression did not support SQL-type syntax, that only the FILTER expression did? I had originally tried using EXPRESSION "orgid NOT LIKE 'LADE%'" and although no errors are indicated, no records are returned either. I just tried EXPRESSION /^[^LADE]/ which does draw the other points, but I haven't yet counted the records to verify if the numbers add up or if that syntax excludes some records. As I warned, regex neophyte! I am getting the impression it's even more complicated than it looks. However, the response from Steve Lime appears to have provided a solution that works in this instance. Thanks for the help! /Johan. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve Grey Sent: Friday, July 23, 2010 9:47 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] CLASS EXPRESSION regex help? Johan, You are having success looking for records that match a pattern starting with 'LADE' - similar to using 'LIKE' - but are getting stuck looking for records matching a pattern that doesn't start with 'LADE'. Try an approach along the lines of NOT LIKE. Steve On 23 July 2010 15:20, Johan Forsman > wrote: All: Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to render two classes based on content in a PostGIS field. For the first CLASS I want all records that start with "LADE", and using NAME "LADE" EXPRESSION /^LADE.*/ appears to return the expected records. However, for the second CLASS I want all records that DO NOT start with "LADE", but using NAME "Other" EXPRESSION /^(?!LADE).*/ does not return any records and the log contains msEvalExpression() error: Regular expression error. Invalid regular expression. Examples out in the ether all indicate that this "negative lookahead" is supposed to do exactly what I want. What am I doing wrong in this instance? Thanks! /Johan. ---------------------- Johan Forsman Geologist Safe Drinking Water Program Louisiana Department of Health and Hospitals Office of Public Health Telephone: 225.342.7309 Telefax: 225.342.7303 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Fri Jul 23 08:38:44 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 23 Jul 2010 11:38:44 -0400 Subject: [mapserver-users] Fast-CGI mode on Ubuntu In-Reply-To: References: Message-ID: <201007231138.44238.aboudreault@mapgears.com> http://mapserver.org/optimization/fastcgi.html Alan On July 23, 2010 11:35:22 am Jeff Dege wrote: > I'm running MapServer version 5.6.1 on Ubuntu 10.04, using the default > configuration as created by the Ubuntu repository packages. According to > "mapserv -v", the executable is compiled to support fast-CGI mode. That > doesn't mean it's configured to support it. > > Can anyone tell me whether the default configuration of mapserv on Ubuntu > uses fast-CGI? Or point me to some decent documentation on how to change > it so that it is, if it isn't? > -- Alan Boudreault Mapgears http://www.mapgears.com From Johan.Forsman at LA.GOV Fri Jul 23 08:38:53 2010 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Fri, 23 Jul 2010 10:38:53 -0500 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: References: Message-ID: Thanks Steve, that appears to work! I did not realize MapServer would on its own accord exclude the already CLASSified records from the second CLASS unless I explicitly instructed it what to exclude. I presumed it would just draw them again together with the rest. Nice! Thanks! Now back to monitoring the brewing storm in the Gulf. > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Friday, July 23, 2010 10:01 AM > To: Johan Forsman; mapserver-users at lists.osgeo.org > Subject: RE: CLASS EXPRESSION regex help? > > Hi Johan: Are you looking for just two classes, one for records that start > with "LADE" and another for everything else? If so you can just omit the > expression from the second class and it will function as a default class > so everything that doesn't match the first will be assigned the second. > It's faster to execute than trying to expressly define a second regex. > Doesn't solve the regex error but then again you may not need to. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Johan Forsman > Sent: Friday, July 23, 2010 9:20 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] CLASS EXPRESSION regex help? > > All: > > Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to > render two classes based on content in a PostGIS field. > > For the first CLASS I want all records that start with "LADE", and using > > NAME "LADE" > EXPRESSION /^LADE.*/ > > appears to return the expected records. > > However, for the second CLASS I want all records that DO NOT start with > "LADE", but using > > NAME "Other" > EXPRESSION /^(?!LADE).*/ > > does not return any records and the log contains > > msEvalExpression() error: Regular expression error. Invalid regular > expression. > > Examples out in the ether all indicate that this "negative lookahead" is > supposed to do exactly what I want. > > What am I doing wrong in this instance? > > Thanks! > /Johan. > > ---------------------- > Johan Forsman > Geologist > Safe Drinking Water Program > Louisiana Department of Health and Hospitals > Office of Public Health > Telephone: 225.342.7309 > Telefax: 225.342.7303 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Fri Jul 23 08:40:56 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 23 Jul 2010 11:40:56 -0400 Subject: [mapserver-users] Fast-CGI mode on Ubuntu In-Reply-To: References: Message-ID: <4C49B808.2040802@pobox.com> Jeff Dege wrote: > I'm running MapServer version 5.6.1 on Ubuntu 10.04, using the default > configuration as created by the Ubuntu repository packages. According > to "mapserv -v", the executable is compiled to support fast-CGI mode. > That doesn't mean it's configured to support it. > > > > Can anyone tell me whether the default configuration of mapserv on > Ubuntu uses fast-CGI? Or point me to some decent documentation on how > to change it so that it is, if it isn't? Jeff, If you see FASTCGI mentioned in the mapserv -v report then the mapserv executable has what is needed. You still need to have the fastcgi extension in Apache, and things configured there to use it. More information on MapServer and FastCGI is available at: http://mapserver.org/optimization/fastcgi.html Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at swoodbridge.com Fri Jul 23 08:51:15 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 23 Jul 2010 11:51:15 -0400 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: References: Message-ID: <4C49BA73.4060109@swoodbridge.com> Johan Forsman wrote: > Thanks Steve, that appears to work! > > I did not realize MapServer would on its own accord exclude the > already CLASSified records from the second CLASS unless I explicitly > instructed it what to exclude. I presumed it would just draw them > again together with the rest. Nice! You can think if the CLASSes as a SWITCH or CASE statement. Records are read from the data source and each CLASS EXPRESSION is tested and the first that matches is the one that draws the object, then a new object is fetched. So a couple of tricks that you can do are: 1. if you have a CLASS at the end with NO expression it acts like the "default" class in a switch. 2. if you do NOT want to draw some class of objects you can FILTER them which is faster, but you can also create a CLASS with an EXPRESSION to recognize them like: CLASS EXPRESSION /dont draw this/ END This will trap these but there are not draw commands so nothing is rendered. -Steve W > Thanks! > > Now back to monitoring the brewing storm in the Gulf. > >> -----Original Message----- From: Lime, Steve D (DNR) >> [mailto:Steve.Lime at state.mn.us] Sent: Friday, July 23, 2010 10:01 >> AM To: Johan Forsman; mapserver-users at lists.osgeo.org Subject: RE: >> CLASS EXPRESSION regex help? >> >> Hi Johan: Are you looking for just two classes, one for records >> that start with "LADE" and another for everything else? If so you >> can just omit the expression from the second class and it will >> function as a default class so everything that doesn't match the >> first will be assigned the second. It's faster to execute than >> trying to expressly define a second regex. Doesn't solve the regex >> error but then again you may not need to. >> >> Steve >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: Friday, >> July 23, 2010 9:20 AM To: mapserver-users at lists.osgeo.org Subject: >> [mapserver-users] CLASS EXPRESSION regex help? >> >> All: >> >> Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish >> to render two classes based on content in a PostGIS field. >> >> For the first CLASS I want all records that start with "LADE", and >> using >> >> NAME "LADE" EXPRESSION /^LADE.*/ >> >> appears to return the expected records. >> >> However, for the second CLASS I want all records that DO NOT start >> with "LADE", but using >> >> NAME "Other" EXPRESSION /^(?!LADE).*/ >> >> does not return any records and the log contains >> >> msEvalExpression() error: Regular expression error. Invalid regular >> expression. >> >> Examples out in the ether all indicate that this "negative >> lookahead" is supposed to do exactly what I want. >> >> What am I doing wrong in this instance? >> >> Thanks! /Johan. >> >> ---------------------- Johan Forsman Geologist Safe Drinking Water >> Program Louisiana Department of Health and Hospitals Office of >> Public Health Telephone: 225.342.7309 Telefax: 225.342.7303 >> >> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Fri Jul 23 08:57:21 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 23 Jul 2010 10:57:21 -0500 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: References: Message-ID: If all of your classes have expressions then there is no default and some features will not be drawn. You kinda get the best of both worlds with this approach... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman Sent: Friday, July 23, 2010 10:39 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? Thanks Steve, that appears to work! I did not realize MapServer would on its own accord exclude the already CLASSified records from the second CLASS unless I explicitly instructed it what to exclude. I presumed it would just draw them again together with the rest. Nice! Thanks! Now back to monitoring the brewing storm in the Gulf. > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Friday, July 23, 2010 10:01 AM > To: Johan Forsman; mapserver-users at lists.osgeo.org > Subject: RE: CLASS EXPRESSION regex help? > > Hi Johan: Are you looking for just two classes, one for records that start > with "LADE" and another for everything else? If so you can just omit the > expression from the second class and it will function as a default class > so everything that doesn't match the first will be assigned the second. > It's faster to execute than trying to expressly define a second regex. > Doesn't solve the regex error but then again you may not need to. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Johan Forsman > Sent: Friday, July 23, 2010 9:20 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] CLASS EXPRESSION regex help? > > All: > > Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to > render two classes based on content in a PostGIS field. > > For the first CLASS I want all records that start with "LADE", and using > > NAME "LADE" > EXPRESSION /^LADE.*/ > > appears to return the expected records. > > However, for the second CLASS I want all records that DO NOT start with > "LADE", but using > > NAME "Other" > EXPRESSION /^(?!LADE).*/ > > does not return any records and the log contains > > msEvalExpression() error: Regular expression error. Invalid regular > expression. > > Examples out in the ether all indicate that this "negative lookahead" is > supposed to do exactly what I want. > > What am I doing wrong in this instance? > > Thanks! > /Johan. > > ---------------------- > Johan Forsman > Geologist > Safe Drinking Water Program > Louisiana Department of Health and Hospitals > Office of Public Health > Telephone: 225.342.7309 > Telefax: 225.342.7303 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Jul 23 09:43:27 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 23 Jul 2010 13:43:27 -0300 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: References: Message-ID: <4C49C6AF.9030309@gatewaygeomatics.com> Are all of these tricks discussed here documented somewhere? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Lime, Steve D (DNR) wrote: > If all of your classes have expressions then there is no default and some features will not be drawn. You kinda get the best of both worlds with this approach... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman > Sent: Friday, July 23, 2010 10:39 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? > > Thanks Steve, that appears to work! > > I did not realize MapServer would on its own accord exclude the already CLASSified records from the second CLASS unless I explicitly instructed it what to exclude. I presumed it would just draw them again together with the rest. Nice! > > Thanks! > > Now back to monitoring the brewing storm in the Gulf. > >> -----Original Message----- >> From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] >> Sent: Friday, July 23, 2010 10:01 AM >> To: Johan Forsman; mapserver-users at lists.osgeo.org >> Subject: RE: CLASS EXPRESSION regex help? >> >> Hi Johan: Are you looking for just two classes, one for records that start >> with "LADE" and another for everything else? If so you can just omit the >> expression from the second class and it will function as a default class >> so everything that doesn't match the first will be assigned the second. >> It's faster to execute than trying to expressly define a second regex. >> Doesn't solve the regex error but then again you may not need to. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Johan Forsman >> Sent: Friday, July 23, 2010 9:20 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] CLASS EXPRESSION regex help? >> >> All: >> >> Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to >> render two classes based on content in a PostGIS field. >> >> For the first CLASS I want all records that start with "LADE", and using >> >> NAME "LADE" >> EXPRESSION /^LADE.*/ >> >> appears to return the expected records. >> >> However, for the second CLASS I want all records that DO NOT start with >> "LADE", but using >> >> NAME "Other" >> EXPRESSION /^(?!LADE).*/ >> >> does not return any records and the log contains >> >> msEvalExpression() error: Regular expression error. Invalid regular >> expression. >> >> Examples out in the ether all indicate that this "negative lookahead" is >> supposed to do exactly what I want. >> >> What am I doing wrong in this instance? >> >> Thanks! >> /Johan. >> >> ---------------------- >> Johan Forsman >> Geologist >> Safe Drinking Water Program >> Louisiana Department of Health and Hospitals >> Office of Public Health >> Telephone: 225.342.7309 >> Telefax: 225.342.7303 >> >> From Steve.Lime at state.mn.us Fri Jul 23 09:49:56 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 23 Jul 2010 11:49:56 -0500 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: <4C49C6AF.9030309@gatewaygeomatics.com> References: <4C49C6AF.9030309@gatewaygeomatics.com> Message-ID: >From the class.html file under the EXPRESSION property: "Four types of expressions are now supported to define class membership. String comparisons, regular expressions, simple logical expressions, and string functions. If no expression is given, then all features are said to belong to this class." Perhaps not the best explanation but the last sentence is pretty clear. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Friday, July 23, 2010 11:43 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: CLASS EXPRESSION regex help? Are all of these tricks discussed here documented somewhere? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ Lime, Steve D (DNR) wrote: > If all of your classes have expressions then there is no default and some features will not be drawn. You kinda get the best of both worlds with this approach... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Johan Forsman > Sent: Friday, July 23, 2010 10:39 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? > > Thanks Steve, that appears to work! > > I did not realize MapServer would on its own accord exclude the already CLASSified records from the second CLASS unless I explicitly instructed it what to exclude. I presumed it would just draw them again together with the rest. Nice! > > Thanks! > > Now back to monitoring the brewing storm in the Gulf. > >> -----Original Message----- >> From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] >> Sent: Friday, July 23, 2010 10:01 AM >> To: Johan Forsman; mapserver-users at lists.osgeo.org >> Subject: RE: CLASS EXPRESSION regex help? >> >> Hi Johan: Are you looking for just two classes, one for records that start >> with "LADE" and another for everything else? If so you can just omit the >> expression from the second class and it will function as a default class >> so everything that doesn't match the first will be assigned the second. >> It's faster to execute than trying to expressly define a second regex. >> Doesn't solve the regex error but then again you may not need to. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Johan Forsman >> Sent: Friday, July 23, 2010 9:20 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] CLASS EXPRESSION regex help? >> >> All: >> >> Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to >> render two classes based on content in a PostGIS field. >> >> For the first CLASS I want all records that start with "LADE", and using >> >> NAME "LADE" >> EXPRESSION /^LADE.*/ >> >> appears to return the expected records. >> >> However, for the second CLASS I want all records that DO NOT start with >> "LADE", but using >> >> NAME "Other" >> EXPRESSION /^(?!LADE).*/ >> >> does not return any records and the log contains >> >> msEvalExpression() error: Regular expression error. Invalid regular >> expression. >> >> Examples out in the ether all indicate that this "negative lookahead" is >> supposed to do exactly what I want. >> >> What am I doing wrong in this instance? >> >> Thanks! >> /Johan. >> >> ---------------------- >> Johan Forsman >> Geologist >> Safe Drinking Water Program >> Louisiana Department of Health and Hospitals >> Office of Public Health >> Telephone: 225.342.7309 >> Telefax: 225.342.7303 >> >> _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From oliver.wesp at gmail.com Fri Jul 23 10:44:26 2010 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Fri, 23 Jul 2010 19:44:26 +0200 Subject: [mapserver-users] [Info] S-57 nautical map on MapServer In-Reply-To: <1279892382095-5329589.post@n2.nabble.com> References: <1279892382095-5329589.post@n2.nabble.com> Message-ID: We did similar work for IENC Data (inland water) in Germany. Have a look at http://wsvmapserv.wsv.bund.de/wms_ienc?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1 We're reading S-57 .000 files direct through the OGR Library as Jeff suggested. We also used scripts for generating tile indexes the way we needed them and for generating symbols from the S-52 Standard. Also we used a php wrapper script for generating a S-52 like pick report on GetFeatureInfo. Feel free to contact me if you like more details. Best regards, Oliver 2010/7/23 easyl : > > Since several months I was looking for an good example or tutorial for > rendering S-57 nautical charts on MapServer. > After searching without any success I tried to build up my first map with > limit knowledge. > > IMO, the most hardest part is how to render them with S-52 style standard. > (The project http://www.opencpn.org/ has done a really good work to render > nautical map in an application.) > > Some resource: > http://home.gdal.org/projects/s57/index.html > http://grass.osgeo.org/wiki/S-57_data > http://www.s-57.com/ > > Here is a short description of what I have done. > > 1) Conver S-57 (*.000) files into shapefiles by using ogr2ogr. > ? ?An S-57 file is split into several shapefiles; > ? ?Each shapefile contains single one layer of single geometry type. > > ? ?For example: > ? ?src.000 ------ DEPARE ------> Area ? ?(a shapefile) > ? ? ? ? ? ? ? ? ?+ ? ? ? ? ? ? ? ? ?+--> Line ? ? (a shapefile) > ? ? ? ? ? ? ? ? ?| > ? ? ? ? ? ? ? ? ?+-- (other layer) ?......................... ? ?(a > shapefile) > > ? Here is the ogr2ogr commands > ? > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/A > src.000 -nlt POLYGON DEPARE > ? > ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/DEPARE/L > src.000 -nlt LINESTRING DEPARE > > ? The SOUNDG layer must be converted with special care. > ?> export OGR_S57_OPTIONS="SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON" > ?> ogr2ogr -skipfailure -append -f "ESRI Shapefile" output/SOUNDG/P src.000 > -nlt POINT SOUNDG > > 2) Construct mapfile > ?2.1) Generally there are (at least) two things to take care: scale and > layer priority. > > ? ? ? ? S-57 data may have different scale value and overlap with each > other. > ? ? ? ? Moreover, a S-57 data may not have a rectangle extent. > > ? ? ? ? For those reasons, I construct mapfile with the following manner: > ? ? ? ? Sort layers after scale value, then layer priority. > ? ? ? ? Group them if necessary. > ? ? ? ? MAP > ? ? ? ? ? LAYER > ? ? ? ? ? ? ? // scale: ? ? ? 1:100,000 > ? ? ? ? ? ? ? // priority: ? ?low > ? ? ? ? ? ? ?CONNECTION "shapefile/100000/DEPARE/A/DEPARE.shp" > ? ? ? ? ? ? ?DATA "DEPARE" > ? ? ? ? ? ? ?GROUP "DEPARE" > ? ? ? ? ? END > > ? ? ? ? ? LAYER > ? ? ? ? ? ? ? // scale: ? ? ? 1:100,000 > ? ? ? ? ? ? ? // priority: ? ?high > ? ? ? ? ? ? ?CONNECTION "shapefile/100000/LIGHTS/P/LIGHTS.shp" > ? ? ? ? ? ? ?DATA "LIGHTS" > ? ? ? ? ? ? ?GROUP "LIGHTS" > ? ? ? ? ? END > > ? ? ? ? ? LAYER > ? ? ? ? ? ? ? // scale: ? ? ? 1:10,000 > ? ? ? ? ? ? ? // priority: ? ?low > ? ? ? ? ? ? ?CONNECTION "shapefile/10000/DEPARE/A/DEPARE.shp" > ? ? ? ? ? ? ?DATA "DEPARE" > ? ? ? ? ? ? ?GROUP "DEPARE" > ? ? ? ? ? END > > ? ? ? ? ? LAYER > ? ? ? ? ? ? ? // scale: ? ? ? 1:10,000 > ? ? ? ? ? ? ? // priority: ? ?high > ? ? ? ? ? ? ?CONNECTION "shapefile/10000/LIGHTS/P/LIGHTS.shp" > ? ? ? ? ? ? ?DATA "LIGHTS" > ? ? ? ? ? ? ?GROUP "LIGHTS" > ? ? ? ? ? END > ? ? ? ? END > > ?2.2) apply style. It is the hardest part. > ? ? ? ? Here I give abother two examples. > > ?LAYER > ? ?NAME DEPARE_A_1500000_1 > ? ?GROUP "DEPARE" > ? ?STATUS ON > ? ?TYPE POLYGON > ? ?CONNECTIONTYPE OGR > ? ?CONNECTION "shapefile/1500000/DEPARE/A/DEPARE.shp" > ? ?PROCESSING "CLOSE_CONNECTION=DEFER" > ? ?PROCESSING "LABEL_NO_CLIP=ON" > ? ?DATA "DEPARE" > ? ?PROJECTION > ? ? ?"proj=longlat" > ? ? ?"ellps=WGS84" > ? ? ?"datum=WGS84" > ? ? ?"no_defs" > ? ?END > ? ?CLASSITEM DRVAL1 > ? ?CLASS > ? ? ?EXPRESSION ([DRVAL1] < 3) > ? ? ?STYLE > ? ? ? ?COLOR 115 182 239 > ? ? ?END > ? ?END > ? ?CLASS > ? ? ?EXPRESSION ([DRVAL1] >= 3 && [DRVAL1] < 8) > ? ? ?STYLE > ? ? ? ?COLOR 156 198 247 > ? ? ?END > ? ?END > ? ?CLASS > ? ? ?EXPRESSION ([DRVAL1] >= 8) > ? ? ?STYLE > ? ? ? ?COLOR 214 235 239 > ? ? ?END > ? ?END > ?END > > > ?LAYER > ? ?NAME LIGHTS_P_1500_1 > ? ?GROUP "LIGHTS" > ? ?STATUS ON > ? ?TYPE POINT > ? ?#MAXSCALEDENOM 1501 > ? ?CONNECTIONTYPE OGR > ? ?CONNECTION "shapefile/1500/LIGHTS/P/LIGHTS.shp" > ? ?PROCESSING "CLOSE_CONNECTION=DEFER" > ? ?PROCESSING "LABEL_NO_CLIP=ON" > ? ?DATA "LIGHTS" > ? ?PROJECTION > ? ? ?"proj=longlat" > ? ? ?"ellps=WGS84" > ? ? ?"datum=WGS84" > ? ? ?"no_defs" > ? ?END > ? ?CLASSITEM COLOUR > ? ?CLASS > ? ? ?EXPRESSION ([COLOUR] == 3) > ? ? ?STYLE > ? ? ? ?COLOR 255 0 0 > ? ? ? ?SIZE [VALNMR] > ? ? ? ?OPACITY 50 > ? ? ? ?OUTLINECOLOR 0 0 0 > ? ? ?END > ? ?END > ? ?CLASS > ? ? ?EXPRESSION ([COLOUR] == 4) > ? ? ?STYLE > ? ? ? ?COLOR 0 255 0 > ? ? ? ?SIZE [VALNMR] > ? ? ? ?OPACITY 50 > ? ? ? ?OUTLINECOLOR 0 0 0 > ? ? ?END > ? ?END > ? ?... > ?END > > ?Here is the result: > http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.png > http://osgeo-org.1803224.n2.nabble.com/file/n5329589/s57MS.PNG s57MS.PNG > ?Of course, it needs still a lot of symbols, color encoding, customized > style after standards .... > > I have wrote some script to automatically convert S-57 files and construct > mapfile (manually writing a mapfile for 100+ layers from 20+ S-57 files is > not practical...). If anyone has interest, I can share them or even make a > project to let everyone contribute..... > > Now the task to be done is to encode every possible style in > mapfile............................:( > > Any suggestion is welcome! > > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Info-S-57-nautical-map-on-MapServer-tp5329589p5329589.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Johan.Forsman at LA.GOV Fri Jul 23 10:45:41 2010 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Fri, 23 Jul 2010 12:45:41 -0500 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: References: <4C49C6AF.9030309@gatewaygeomatics.com> Message-ID: Hmm, at the substantial risk of sounding obtuse I must confess that when I read that sentence I see "all features", not "all features except the ones that have a defined class membership" or "all remaining features". If MapServer excludes any defined class memberships from the default class and dumps any remaining features into the default class, then perhaps the documentation can be rephrased to indicate that more clearly? My 1.5 cents, and thanks for all the help. /Johan. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) > Sent: Friday, July 23, 2010 11:50 AM > To: Jeff McKenna; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] RE: CLASS EXPRESSION regex help? > > >From the class.html file under the EXPRESSION property: > > "Four types of expressions are now supported to define class membership. > String comparisons, regular expressions, simple logical expressions, and > string functions. If no expression is given, then all features are said to > belong to this class." > > Perhaps not the best explanation but the last sentence is pretty clear. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Friday, July 23, 2010 11:43 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: CLASS EXPRESSION regex help? > > Are all of these tricks discussed here documented somewhere? > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > Lime, Steve D (DNR) wrote: > > If all of your classes have expressions then there is no default and > some features will not be drawn. You kinda get the best of both worlds > with this approach... > > > > Steve > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Johan Forsman > > Sent: Friday, July 23, 2010 10:39 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? > > > > Thanks Steve, that appears to work! > > > > I did not realize MapServer would on its own accord exclude the already > CLASSified records from the second CLASS unless I explicitly instructed it > what to exclude. I presumed it would just draw them again together with > the rest. Nice! > > > > Thanks! > > > > Now back to monitoring the brewing storm in the Gulf. > > > >> -----Original Message----- > >> From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > >> Sent: Friday, July 23, 2010 10:01 AM > >> To: Johan Forsman; mapserver-users at lists.osgeo.org > >> Subject: RE: CLASS EXPRESSION regex help? > >> > >> Hi Johan: Are you looking for just two classes, one for records that > start > >> with "LADE" and another for everything else? If so you can just omit > the > >> expression from the second class and it will function as a default > class > >> so everything that doesn't match the first will be assigned the second. > >> It's faster to execute than trying to expressly define a second regex. > >> Doesn't solve the regex error but then again you may not need to. > >> > >> Steve > >> > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > >> bounces at lists.osgeo.org] On Behalf Of Johan Forsman > >> Sent: Friday, July 23, 2010 9:20 AM > >> To: mapserver-users at lists.osgeo.org > >> Subject: [mapserver-users] CLASS EXPRESSION regex help? > >> > >> All: > >> > >> Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to > >> render two classes based on content in a PostGIS field. > >> > >> For the first CLASS I want all records that start with "LADE", and > using > >> > >> NAME "LADE" > >> EXPRESSION /^LADE.*/ > >> > >> appears to return the expected records. > >> > >> However, for the second CLASS I want all records that DO NOT start with > >> "LADE", but using > >> > >> NAME "Other" > >> EXPRESSION /^(?!LADE).*/ > >> > >> does not return any records and the log contains > >> > >> msEvalExpression() error: Regular expression error. Invalid regular > >> expression. > >> > >> Examples out in the ether all indicate that this "negative lookahead" > is > >> supposed to do exactly what I want. > >> > >> What am I doing wrong in this instance? > >> > >> Thanks! > >> /Johan. > >> > >> ---------------------- > >> Johan Forsman > >> Geologist > >> Safe Drinking Water Program > >> Louisiana Department of Health and Hospitals > >> Office of Public Health > >> Telephone: 225.342.7309 > >> Telefax: 225.342.7303 > >> > >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Fri Jul 23 11:54:08 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 23 Jul 2010 13:54:08 -0500 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: References: <4C49C6AF.9030309@gatewaygeomatics.com> Message-ID: Like I said, perhaps not the best explanation... -----Original Message----- From: Johan Forsman [mailto:Johan.Forsman at LA.GOV] Sent: Friday, July 23, 2010 12:46 PM To: Lime, Steve D (DNR); Jeff McKenna; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: CLASS EXPRESSION regex help? Hmm, at the substantial risk of sounding obtuse I must confess that when I read that sentence I see "all features", not "all features except the ones that have a defined class membership" or "all remaining features". If MapServer excludes any defined class memberships from the default class and dumps any remaining features into the default class, then perhaps the documentation can be rephrased to indicate that more clearly? My 1.5 cents, and thanks for all the help. /Johan. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) > Sent: Friday, July 23, 2010 11:50 AM > To: Jeff McKenna; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] RE: CLASS EXPRESSION regex help? > > >From the class.html file under the EXPRESSION property: > > "Four types of expressions are now supported to define class membership. > String comparisons, regular expressions, simple logical expressions, and > string functions. If no expression is given, then all features are said to > belong to this class." > > Perhaps not the best explanation but the last sentence is pretty clear. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: Friday, July 23, 2010 11:43 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] RE: CLASS EXPRESSION regex help? > > Are all of these tricks discussed here documented somewhere? > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > Lime, Steve D (DNR) wrote: > > If all of your classes have expressions then there is no default and > some features will not be drawn. You kinda get the best of both worlds > with this approach... > > > > Steve > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Johan Forsman > > Sent: Friday, July 23, 2010 10:39 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? > > > > Thanks Steve, that appears to work! > > > > I did not realize MapServer would on its own accord exclude the already > CLASSified records from the second CLASS unless I explicitly instructed it > what to exclude. I presumed it would just draw them again together with > the rest. Nice! > > > > Thanks! > > > > Now back to monitoring the brewing storm in the Gulf. > > > >> -----Original Message----- > >> From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > >> Sent: Friday, July 23, 2010 10:01 AM > >> To: Johan Forsman; mapserver-users at lists.osgeo.org > >> Subject: RE: CLASS EXPRESSION regex help? > >> > >> Hi Johan: Are you looking for just two classes, one for records that > start > >> with "LADE" and another for everything else? If so you can just omit > the > >> expression from the second class and it will function as a default > class > >> so everything that doesn't match the first will be assigned the second. > >> It's faster to execute than trying to expressly define a second regex. > >> Doesn't solve the regex error but then again you may not need to. > >> > >> Steve > >> > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > >> bounces at lists.osgeo.org] On Behalf Of Johan Forsman > >> Sent: Friday, July 23, 2010 9:20 AM > >> To: mapserver-users at lists.osgeo.org > >> Subject: [mapserver-users] CLASS EXPRESSION regex help? > >> > >> All: > >> > >> Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I wish to > >> render two classes based on content in a PostGIS field. > >> > >> For the first CLASS I want all records that start with "LADE", and > using > >> > >> NAME "LADE" > >> EXPRESSION /^LADE.*/ > >> > >> appears to return the expected records. > >> > >> However, for the second CLASS I want all records that DO NOT start with > >> "LADE", but using > >> > >> NAME "Other" > >> EXPRESSION /^(?!LADE).*/ > >> > >> does not return any records and the log contains > >> > >> msEvalExpression() error: Regular expression error. Invalid regular > >> expression. > >> > >> Examples out in the ether all indicate that this "negative lookahead" > is > >> supposed to do exactly what I want. > >> > >> What am I doing wrong in this instance? > >> > >> Thanks! > >> /Johan. > >> > >> ---------------------- > >> Johan Forsman > >> Geologist > >> Safe Drinking Water Program > >> Louisiana Department of Health and Hospitals > >> Office of Public Health > >> Telephone: 225.342.7309 > >> Telefax: 225.342.7303 > >> > >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri Jul 23 12:20:22 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 23 Jul 2010 15:20:22 -0400 Subject: [mapserver-users] RE: CLASS EXPRESSION regex help? In-Reply-To: References: <4C49C6AF.9030309@gatewaygeomatics.com> Message-ID: <4C49EB76.4020009@swoodbridge.com> Johan, Your wording would be better and maybe Jeff can address this and some of the other comments in this thread to improve the documentation. Jeff, Another common misunderstanding that people seem to have is that the order of the classes controls the order of the drawing of features in the layer. This is NOT the case. Features are always draw in the order they are return from the data source. If users WANT features drawn in some particular order then they need to pre-order the features. I good example of this is when drawing roads, one might want to draw all minor roads first then the major roads over them to control how intersection look on the map. This would require sorting the shapefile so minor roads are before the major roads. This can also be problematic if you are using tile indexes. In that case you need to separate minor and major roads into two separate layers. -Steve Johan Forsman wrote: > Hmm, at the substantial risk of sounding obtuse I must confess that > when I read that sentence I see "all features", not "all features > except the ones that have a defined class membership" or "all > remaining features". > > If MapServer excludes any defined class memberships from the default > class and dumps any remaining features into the default class, then > perhaps the documentation can be rephrased to indicate that more > clearly? > > My 1.5 cents, and thanks for all the help. /Johan. > >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: >> Friday, July 23, 2010 11:50 AM To: Jeff McKenna; >> mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: >> CLASS EXPRESSION regex help? >> >>> From the class.html file under the EXPRESSION property: >> >> "Four types of expressions are now supported to define class >> membership. String comparisons, regular expressions, simple logical >> expressions, and string functions. If no expression is given, then >> all features are said to belong to this class." >> >> Perhaps not the best explanation but the last sentence is pretty >> clear. >> >> Steve >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Friday, >> July 23, 2010 11:43 AM To: mapserver-users at lists.osgeo.org Subject: >> Re: [mapserver-users] RE: CLASS EXPRESSION regex help? >> >> Are all of these tricks discussed here documented somewhere? >> >> -jeff >> >> >> >> -- Jeff McKenna MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> >> Lime, Steve D (DNR) wrote: >>> If all of your classes have expressions then there is no default >>> and >> some features will not be drawn. You kinda get the best of both >> worlds with this approach... >>> Steve >>> >>> -----Original Message----- From: >>> mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Johan Forsman >>> Sent: Friday, July 23, 2010 10:39 AM To: >>> mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: >>> CLASS EXPRESSION regex help? >>> >>> Thanks Steve, that appears to work! >>> >>> I did not realize MapServer would on its own accord exclude the >>> already >> CLASSified records from the second CLASS unless I explicitly >> instructed it what to exclude. I presumed it would just draw them >> again together with the rest. Nice! >>> Thanks! >>> >>> Now back to monitoring the brewing storm in the Gulf. >>> >>>> -----Original Message----- From: Lime, Steve D (DNR) >>>> [mailto:Steve.Lime at state.mn.us] Sent: Friday, July 23, 2010 >>>> 10:01 AM To: Johan Forsman; mapserver-users at lists.osgeo.org >>>> Subject: RE: CLASS EXPRESSION regex help? >>>> >>>> Hi Johan: Are you looking for just two classes, one for records >>>> that >> start >>>> with "LADE" and another for everything else? If so you can just >>>> omit >> the >>>> expression from the second class and it will function as a >>>> default >> class >>>> so everything that doesn't match the first will be assigned the >>>> second. It's faster to execute than trying to expressly define >>>> a second regex. Doesn't solve the regex error but then again >>>> you may not need to. >>>> >>>> Steve >>>> >>>> -----Original Message----- From: >>>> mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users- bounces at lists.osgeo.org] On Behalf Of >>>> Johan Forsman Sent: Friday, July 23, 2010 9:20 AM To: >>>> mapserver-users at lists.osgeo.org Subject: [mapserver-users] >>>> CLASS EXPRESSION regex help? >>>> >>>> All: >>>> >>>> Regex neophyte, using MS 5.4.2 in FGS on Ubuntu Server 9.10, I >>>> wish to render two classes based on content in a PostGIS field. >>>> >>>> >>>> For the first CLASS I want all records that start with "LADE", >>>> and >> using >>>> NAME "LADE" EXPRESSION /^LADE.*/ >>>> >>>> appears to return the expected records. >>>> >>>> However, for the second CLASS I want all records that DO NOT >>>> start with "LADE", but using >>>> >>>> NAME "Other" EXPRESSION /^(?!LADE).*/ >>>> >>>> does not return any records and the log contains >>>> >>>> msEvalExpression() error: Regular expression error. Invalid >>>> regular expression. >>>> >>>> Examples out in the ether all indicate that this "negative >>>> lookahead" >> is >>>> supposed to do exactly what I want. >>>> >>>> What am I doing wrong in this instance? >>>> >>>> Thanks! /Johan. >>>> >>>> ---------------------- Johan Forsman Geologist Safe Drinking >>>> Water Program Louisiana Department of Health and Hospitals >>>> Office of Public Health Telephone: 225.342.7309 Telefax: >>>> 225.342.7303 >>>> >>>> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From geographika at gmail.com Fri Jul 23 15:49:01 2010 From: geographika at gmail.com (geographika) Date: Sat, 24 Jul 2010 00:49:01 +0200 Subject: [mapserver-users] SQL Server 2008 and WFS Service Message-ID: <4C4A1C5D.5090208@gmail.com> Hi, Has anyone successfully created a WFS service using the SQL Server 2008 plug in? I followed the steps at http://mapserver.org/ogc/wfs_server.html, and get no errors when running a SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities request. However when trying to retrieve the features using a feature request (&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=RoadsWFS) I don't get any GML. There are no errors in the MapServer log file. I don't believe this GET request requires a proxy and I get the same result on the server itself. I ran SQL Server profiler and the results and geometry are being correctly queried from the database. A shortened version of the SQL is below (several attributes removed): SELECT convert(varchar(max), RoadID),GEOM.STAsBinary(),convert(varchar(20), ROADID) from RoadNetwork2 WHERE GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((-710069 7038976,-683731 7038976,-683731 7059350,-710069 7059350,-710069 7038976))',3785)) = 1 I think there may be an issue due to none of the columns having names. In addition setting the following metadata items for the layer have no effect on the SQL that is run (setting field aliases and limiting fields) "gml_include_items" "RoadID" "gml_geometries" "GEOM" "gml_RoadID_alias" "OID" In all cases I only get the following output in the browser: -710069.511630,7038976.757978 -683731.912138,7059350.746437 Thanks for any advice, Seth Girvin http://geographika.co.uk From szekerest at gmail.com Sat Jul 24 14:25:43 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 24 Jul 2010 23:25:43 +0200 Subject: [mapserver-users] SQL Server 2008 and WFS Service In-Reply-To: <4C4A1C5D.5090208@gmail.com> References: <4C4A1C5D.5090208@gmail.com> Message-ID: 2010/7/24 geographika > > Has anyone successfully created a WFS service using the SQL Server 2008 > plug in? > > I followed the steps at http://mapserver.org/ogc/wfs_server.html, and get > no errors when running a SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities > request. > > However when trying to retrieve the features using a feature request > (&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=RoadsWFS) I don't > get any GML. There are no errors in the MapServer log file. I don't believe > this GET request requires a proxy and I get the same result on the server > itself. > > I ran SQL Server profiler and the results and geometry are being correctly > queried from the database. A shortened version of the SQL is below (several > attributes removed): > > SELECT convert(varchar(max), RoadID),GEOM.STAsBinary(),convert(varchar(20), > ROADID) from RoadNetwork2 WHERE > GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((-710069 7038976,-683731 > 7038976,-683731 7059350,-710069 7059350,-710069 7038976))',3785)) = 1 > > I think there may be an issue due to none of the columns having names. > Hi I've just tried with the recent version of the mssql2008 driver and it works for me. Which mapserver version are you testing with? I would recommend to do a test with one of the daily build packages from: http://vbkto.dyndns.org/sdk/ If your problem still persists, feel free to open a ticket, attach your mapfile, sample requests and test data (ie. a shapefile) to be uploaded to the mssql2008 server. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From thlin.box at gmail.com Mon Jul 26 00:28:09 2010 From: thlin.box at gmail.com (easyl) Date: Mon, 26 Jul 2010 00:28:09 -0700 (PDT) Subject: [mapserver-users] Re: [Info] S-57 nautical map on MapServer In-Reply-To: References: <1279892382095-5329589.post@n2.nabble.com> Message-ID: <1280129289729-5336915.post@n2.nabble.com> Hi, I just thought that accessing shapefiles with indexing (by shptree) would give better performance than directly reading S57 (.000) data, therefore I tried at first converting them in shapefiles. I did not run any performance profile, but from my "feeling" it (with shapefiles) did better. Maybe I miss something. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Info-S-57-nautical-map-on-MapServer-tp5329589p5336915.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Jul 26 00:28:01 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 26 Jul 2010 10:28:01 +0300 Subject: [mapserver-users] FOSS4G registration link References: <1279892382095-5329589.post@n2.nabble.com> Message-ID: Hi, Is this the correct link? https://forms.pacifico-meetings.com/ReservationForm/index.aspx?co=225 It does not work for me. -Jukka Rahkonen- From jmckenna at gatewaygeomatics.com Mon Jul 26 04:42:51 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 26 Jul 2010 08:42:51 -0300 Subject: [mapserver-users] FOSS4G registration link In-Reply-To: References: <1279892382095-5329589.post@n2.nabble.com> Message-ID: <4C4D74BB.6040807@gatewaygeomatics.com> Rahkonen Jukka wrote: > Hi, > > Is this the correct link? > https://forms.pacifico-meetings.com/ReservationForm/index.aspx?co=225 > It does not work for me. Yes that's the correct link, it was down earlier today but it is back now. Please retry. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ven.tammineni at gmail.com Mon Jul 26 06:05:00 2010 From: ven.tammineni at gmail.com (venkat) Date: Mon, 26 Jul 2010 18:35:00 +0530 Subject: [mapserver-users] Reg:- Connecting Mapserver with Oracle Spatialusing asp.net In-Reply-To: References: Message-ID: Dear All, Which Mapserver version is supporting Oracle Spatial. I have tried for Mapserver 5.7.It is saying below message C:\Program Files\FWTools2.4.7\bin>mapserv -v MapServer version 5.7-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=S VG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=W MS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=S OS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OG R INPUT=GDAL INPUT=SHAPEFILE Please let me know which mapserver version is supporting Oracle Spatial or at least how to use OGR connector for oracle.I tried both OGR and Oracle Native connectors. 1) If i test in Oracle Spatial Native connector I am getting error called " Version is not supported" 2) If i test in OGR connection with oracle i am getting error called "Open failed for OGR connection in layer" I do not know where i am doing wrong. Please let me know I am waiting for your great response. Thanks and Regards, Venkat On Fri, Jul 23, 2010 at 5:46 PM, Rahkonen Jukka wrote: > Hi, > > Most probably the message you see is telling it all: your Mapserver version > does not support Oracle. If you work with Windows the MS4W comes with Oracle > support but it must be activated first by following the instructions which > come with the delivery. I would also suggest reading at least the documents > http://mapserver.org/input/vector/oracle.html > and http://mapserver.org/installation/oracle.html > > > -Jukka Rahkonen- > > > venkat wrote: > > Dear All, > > I would like to connect Mapserver with Oracle 10g Spatial .,when i try to > connect using Oracle spatial I am getting error "Oracle Spatial is not > supported". > > > Please let me know...Where I am doing wrong.I am waiting for your great > response. > > > > Here is my mapfile code. > > LAYER > NAME "India National Highways" > TYPE Line > > CONNECTIONTYPE oraclespatial > CONNECTION "GIS/gis123" > DATA "the_geom FROM INDIANATIONALHIGHWAYS USING SRID 24047" > # LABELITEM "nh_no_" > Status OFF > DUMP TRUE > > CLASS > NAME 'NATIONAL HIGHWAYS' > > STYLE > COLOR 249 139 42 > End > > > End # end of the class > END # end of the Layer > > > Thanks and Regards, > > Venkat > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Mon Jul 26 07:26:33 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Mon, 26 Jul 2010 10:26:33 -0400 Subject: [mapserver-users] How do I get a Legend with a variable COLOR in the CLASS Message-ID: <99B447FD16064E46A173B0573E059FDA@Worthlaptop> I'm trying to set my colors from a postgres table instead of having many classes in my mapfile. Here is an example of what I think I should use to get a legend for this layer. CLASS NAME [name] STYLE COLOR [color] OUTLINECOLOR 0 0 0 WIDTH 1 END END Only the NAME line dies with a parse error as it appears to be looking for a string ([MapServer Error]: getString(): Parsing error near ([name])). It seems that the NAME line cannot take an attribute. How do I get a legend for this layer? Is this the method I should be using for this use? Worth From Steve.Lime at state.mn.us Mon Jul 26 08:32:08 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 26 Jul 2010 10:32:08 -0500 Subject: [mapserver-users] FOSS4G 2010 is growing fast Message-ID: Barcelona, Spain. 25 July 2010. http://2010.foss4g.org Getting closer We are getting closer to the conference dates, Sept. 6th - 9th, and we are pleased that the interest is very high. More than 500 people have already subscribed and we are confident to reach 1000 in time for the event. In the Latin cultures we are famous to be late subscriber :) A list of the presentations and their abstract is available online: - http://2010.foss4g.org/presentations.php If you have not thought to subscribe yet, do it now: - http://2010.foss4g.org/registration.php Some workshops are already sold out so don't loose the chance to choose your favourite workshop. The following companies are already supporting, don't loose your chance to be part of this unique event! Sponsors Platinum - Prodevelop http://www.prodevelop.es Gold - IGN http://www.ign.es - AUTODESK http://www.autodesk.com Silver - ESRI http://www.esri.com - GOOGLE http://www.google.com - SIGTE http://www.sigte.udg.edu - OpenGeo http://www.opengeo.org - Simplegeo http://www.simplegeo.com Bronze - Camptocamp http://www.camptocamp.com - Geocat http://www.geocat.net - GeoSparc http://www.geosparc.com - ICC http://www.icc.cat - Geo-Solutions.it http://www.geo-solutions.it - MapGears http://www.mapgears.com - Spatialytics http://www.spatialytics.com - Vizzuality http://www.vizzuality.com - Terrestris.de http://www.terrestris.de - SIGTE http://www.sigte.udg.edu - Omniscale http://omniscale.de/en/ - Nexus Geografics http://www.nexusgeografics.com - Boreal-it http://www.boreal-it.es - Geops http://www.geops.de - Sinfogeo http://www.sinfogeo.es - Metaspatial http://www.metaspatial.net CodeSprint sponsor - JRC - European Commission http://ec.europa.eu/dgs/jrc/ Lorenzo Becchi - FOSS4G 2010 conference chair lbecchi at osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jul 26 09:46:14 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 26 Jul 2010 11:46:14 -0500 Subject: [mapserver-users] Re: Rendering Problem In-Reply-To: References: <1274173405434-5069072.post@n2.nabble.com> <4BF27FF1.9070408@gatewaygeomatics.com> <1274776830169-5097451.post@n2.nabble.com> <4BFBC47F.5090303@gatewaygeomatics.com> <1274791745856-5098281.post@n2.nabble.com> <4BFBC93A.7080309@gatewaygeomatics.com> <1279874813661-5328796.post@n2.nabble.com> <7F8FCD304F29444ABBE9328A09D6355117F90FC460@nerckwmb1.ad.nerc.ac.uk> Message-ID: Which Freetype version(s)? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ibrahim saricicek Sent: Friday, July 23, 2010 4:59 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Rendering Problem Hi All, Yes the same.. And also tried several fonts, including monospaced fonts.. Ragards.. On Fri, Jul 23, 2010 at 12:03 PM, Gilbertson, Paul > wrote: Ibrahim, Have you checked that the font files are the same on both machines? Regards, Paul Gilbertson > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek > Sent: 23 July 2010 09:47 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Re: Rendering Problem > > > Hi all, > > I couldn't still find a way to solve the problem discussed on; > http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem- > td5069072.html#a5098281. > > Waiting for any advice.. > Thanks in advence.. > -- > View this message in context: http://osgeo- > org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5328796.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wendell at enflight.com Mon Jul 26 12:09:06 2010 From: wendell at enflight.com (Wendell Turner) Date: Mon, 26 Jul 2010 19:09:06 +0000 Subject: [mapserver-users] shapefile error only when zoomed out Message-ID: <20100726190906.GA13436@cloud3.rho.net> Why would a shapefile only display when the map display is zoomed in? When zoomed in, the image displays correctly. When zoomed out, it gets this: msDrawMap(): Image handling error. Failed to draw layer named 'tfr'.; msDrawShape() General error message. Only polygon shapes can be drawn using a POLYGON layer definition. shpdump shows this: Shapefile Type: Polygon # of Shapes: 2 ... Shape:1 (Polygon) nVertices=0, nParts=0 Bounds:( nan, nan, 0, 0) to ( nan, nan, 0, 0) Is that a problem? If so, is there a way of removing that shape (possibly using gdal)? Thanks, Wendell From warmerdam at pobox.com Mon Jul 26 12:25:30 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 26 Jul 2010 15:25:30 -0400 Subject: [mapserver-users] shapefile error only when zoomed out In-Reply-To: <20100726190906.GA13436@cloud3.rho.net> References: <20100726190906.GA13436@cloud3.rho.net> Message-ID: <4C4DE12A.8080509@pobox.com> Wendell Turner wrote: > Why would a shapefile only display when the map display is > zoomed in? > > When zoomed in, the image displays correctly. When zoomed > out, it gets this: > msDrawMap(): Image handling error. Failed to draw > layer named 'tfr'.; msDrawShape() General error > message. Only polygon shapes can be drawn using > a POLYGON layer definition. > > shpdump shows this: > Shapefile Type: Polygon # of Shapes: 2 > ... > Shape:1 (Polygon) nVertices=0, nParts=0 > Bounds:( nan, nan, 0, 0) > to ( nan, nan, 0, 0) > Is that a problem? If so, is there a way of removing that > shape (possibly using gdal)? Wendell, Something like the following might discard a particular shape: ogr2ogr out.shp in.shp -where "OGR_FID != 1" The OGR_FID should be the same as the shape id reported by shpdump. The shape in question is likely getting translated as something not polygon-like whenever the view includes "0,0". Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Steve.Lime at state.mn.us Mon Jul 26 13:19:33 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 26 Jul 2010 15:19:33 -0500 Subject: [mapserver-users] UK Ordnance Survey MasterMap Cartographic Text orientation display problem In-Reply-To: <1279122130160-5293281.post@n2.nabble.com> References: <1279122130160-5293281.post@n2.nabble.com> Message-ID: Don't recall seeing a reply to the list so just in case. Preprocessing is the way to go if you're using shapefiles. In PostGIS you could apply the correction on-the-fly. One other comment, that may or may not be relevant without seeing the whole mapfile. You'll find that string based expressions will execute faster that the logical variety: e.g.: CLASSITEM ' descriptiv' CLASS NAME 'Tidal Water' EXPRESSION 'Tidal Water' ... END Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jez Walters Sent: Wednesday, July 14, 2010 10:42 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] UK Ordnance Survey MasterMap Cartographic Text orientation display problem I'm trying to use MapServer to display UK Ordnance Survey MasterMap vector data, but I've been experiencing problems when it comes to Cartographic Text orientation. The text angle is specifed in the GML as an integer representing 10ths of a degree, rather than as a floating point number. In order to overcome this I've been pre-processing the OS GML using awk, to divide the text orientation value by 10. I'm converting the pre-processed GML to ESRI Shapefiles before displaying the map using MapServer. As an example, here's a snipet of my Mapfile: ... CLASS NAME "Tidal Water" EXPRESSION ("[descriptiv]" == "Tidal Water") STYLE END LABEL TYPE truetype FONT Arial SIZE 7 ANTIALIAS true COLOR 0 153 255 POSITION cc ANGLE [orientatio] END END ... Am I on the right track for rescaling the orientation value, or is there a better way of doing this? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/UK-Ordnance-Survey-MasterMap-Cartographic-Text-orientation-display-problem-tp5293281p5293281.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon Jul 26 13:32:04 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 26 Jul 2010 15:32:04 -0500 Subject: [mapserver-users] RE: [OT] Scaling projected values using proj.4 In-Reply-To: References: Message-ID: Turns out anything is possible if you have the source code. In the end I added scaling parameters to the [shpxy ...] template tag. That change will be available in 6.0. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Thursday, July 22, 2010 10:35 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] [OT] Scaling projected values using proj.4 Hi folks: Anyone know if it's possible to scale coordinate values as after projection but within proj.4? I have a need to project from UTM to epsg:4326 but scale the results by 100000 for consumption by another service. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Mon Jul 26 13:33:32 2010 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 26 Jul 2010 22:33:32 +0200 Subject: [mapserver-users] Java MapScript and Tomcat6 Hanging In-Reply-To: <7F8FCD304F29444ABBE9328A09D6355117F90FC1B9@nerckwmb1.ad.nerc.ac.uk> References: <7F8FCD304F29444ABBE9328A09D6355117F8F17442@nerckwmb1.ad.nerc.ac.uk> <7F8FCD304F29444ABBE9328A09D6355117F90FC15B@nerckwmb1.ad.nerc.ac.uk> <7F8FCD304F29444ABBE9328A09D6355117F90FC1B9@nerckwmb1.ad.nerc.ac.uk> Message-ID: I'm totally clueless as to why it happens. As for the what happens a trace of the java process with http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx Procmon should give us a hint. Regards, Umberto On Thu, Jul 22, 2010 at 4:34 PM, Gilbertson, Paul wrote: > I've left it to run for 5 minutes, still no response. Usual response time ~2s and lower. No processor, no drive activity, just hangs. > > Regards, > Paul Gilbertson > > >> -----Original Message----- >> From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] >> Sent: 22 July 2010 15:16 >> To: Gilbertson, Paul >> Subject: Re: [mapserver-users] Java MapScript and Tomcat6 Hanging >> >> That's pretty weird...will Tomcat respond eventually or does it stay >> locked forever? Is cpu or disk usage high while stalled? >> >> On Thu, Jul 22, 2010 at 4:07 PM, Gilbertson, Paul >> wrote: >> > Umberto, >> > >> > Absolute lock up. Process is running, but never responds to requests. >> Tomcat creates threads for new requests, and accepts them, they just >> never return data. Tomcat/JVM never crashes. >> > >> > The synchronized keyword was an attempt to fix this, symptoms are the >> same with or without it. >> > >> > Regards, >> > Paul Gilbertson >> > >> > >> >> -----Original Message----- >> >> From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] >> >> Sent: 22 July 2010 15:04 >> >> To: Gilbertson, Paul >> >> Cc: mapserver-users at lists.osgeo.org >> >> Subject: Re: [mapserver-users] Java MapScript and Tomcat6 Hanging >> >> >> >> Hi Paul, >> >> please define hang: is it a crash or simply a momentary stall? >> >> >> >> In the case it is the latter I see the synchronized keyword in the >> >> definition of the doLogic method and by looking at the code you have >> >> posted it seems superflous, but there might be some other code that >> >> you didn't post that makes it necessary. Anyway I would start >> looking >> >> there. >> >> >> >> HTH, >> >> Umberto >> >> >> >> On Wed, Jul 21, 2010 at 4:41 PM, Gilbertson, Paul >> >> wrote: >> >> > Good folks, >> >> > >> >> > I am somewhat new to MapServer and MapScript, and I'm trying to do >> a >> >> few experiments with Java Mapscript in order to scope out >> MapServer's >> >> feasibility for a large project. >> >> > >> >> > I've downloaded and installed MS4W 3.0 beta 11, and Netbeans 6.9 >> with >> >> Tomcat 6.0.29 in order to test out Java Mapscript. I created a most >> >> basic servlet to serve up simple map tiles, and it works for serial >> >> requests. When I try to serve two requests at the same time Tomcat >> >> hangs hard. >> >> > >> >> > My map file and Java classes are below: >> >> > >> >> > MAP >> >> > ?IMAGETYPE ? ? ?PNG24 >> >> > ?NAME ? ? ? ? ? "nbndemo" >> >> > ?STATUS ? ? ? ? ON >> >> > ?EXTENT ? ? ? ? -12.5 12.5 700000 1300012.5 >> >> > ?SIZE ? ? ? ? ? 800 800 >> >> > ?IMAGECOLOR ? ? 226 245 255 >> >> > ?CONFIG ? ? ? ? "MS_ERRORFILE" "/ms4w/apps/nbndemo/error.txt" >> >> > ?DEBUG ? ? ? ? ?5 >> >> > >> >> > ?PROJECTION >> >> > ? ?"init=epsg:27700" >> >> > ?END >> >> > >> >> > ?LAYER >> >> > ? ?NAME ? ? ? ? os250k >> >> > ? ?STATUS ? ? ? ON >> >> > ? ?TILEINDEX ? ?"/OSRasterTiles/os_250k/os250k_tindex_srs.shp" >> >> > ? ?TILEITEM ? ? "Location" >> >> > ? ?TYPE ? ? ? ? RASTER >> >> > ? ?OFFSITE ? ? ?71 74 65 >> >> > >> >> > ? ?PROJECTION >> >> > ? ? ?"init=epsg:27700" >> >> > ? ?END >> >> > ? ?EXTENT ? ? ? ? -12.5 12.5 700000 1300012.5 >> >> > ?END >> >> > END >> >> > >> >> > public class SPRewriter { >> >> > ? ?public synchronized void doLogic(HttpServletRequest request, >> >> HttpServletResponse response) throws Exception >> >> > ? ?{ >> >> > ? ? ? ?ServletOutputStream out = response.getOutputStream(); >> >> > ? ? ? ?edu.umn.gis.mapscript.mapObj mo = new >> >> mapObj("/ms4w/apps/nbndemo/mapfiles/test.map"); >> >> > >> >> > ? ? ? ?imageObj image = mo.draw(); >> >> > ? ? ? ?response.setContentType(image.getFormat().getMimetype()); >> >> > ? ? ? ?out.write(image.getBytes()); >> >> > ? ? ? ?image.delete(); >> >> > ? ? ? ?mo.delete(); >> >> > ? ?} >> >> > } >> >> > >> >> > ? ?protected void processRequest(HttpServletRequest request, >> >> HttpServletResponse response) throws ServletException, IOException { >> >> > ? ? ? ?try { >> >> > ? ? ? ? ? ?SPRewriter spr = new SPRewriter(); >> >> > ? ? ? ? ? ?spr.doLogic(request, response); >> >> > ? ? ? ?} ?catch (Exception e) { >> >> > ? ? ? ? ? ?e.printStackTrace(); >> >> > ? ? ? ?} >> >> > ? ?} >> >> > >> >> > Any thoughts why this would hang the moment I try to run parallel >> >> requests? >> >> > >> >> > Regards, >> >> > Paul Gilbertson >> >> > >> >> > >> >> > >> >> > -- >> >> > This message (and any attachments) is for the recipient only. NERC >> >> > is subject to the Freedom of Information Act 2000 and the contents >> >> > of this email and any reply you make may be disclosed by NERC >> unless >> >> > it is exempt from release under the Act. Any material supplied to >> >> > NERC may be stored in an electronic records management system. >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> > >> > -- >> > This message (and any attachments) is for the recipient only. NERC >> > is subject to the Freedom of Information Act 2000 and the contents >> > of this email and any reply you make may be disclosed by NERC unless >> > it is exempt from release under the Act. Any material supplied to >> > NERC may be stored in an electronic records management system. >> > >> > > > -- > This message (and any attachments) is for the recipient only. NERC > is subject to the Freedom of Information Act 2000 and the contents > of this email and any reply you make may be disclosed by NERC unless > it is exempt from release under the Act. Any material supplied to > NERC may be stored in an electronic records management system. > > From Steve.Lime at state.mn.us Mon Jul 26 14:05:24 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 26 Jul 2010 16:05:24 -0500 Subject: [mapserver-users] How do I get a Legend with a variable COLOR in the CLASS In-Reply-To: <99B447FD16064E46A173B0573E059FDA@Worthlaptop> References: <99B447FD16064E46A173B0573E059FDA@Worthlaptop> Message-ID: Hi Worth: At the moment, you can't get a legend in this case. The legend code isn't smart Enough to discover potential colors and render them. Also, class names cannot be bound to an attribute... If you really need legends produced by MapServer then attribute binding probably isn't going to work for you. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz Sent: Monday, July 26, 2010 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How do I get a Legend with a variable COLOR in the CLASS I'm trying to set my colors from a postgres table instead of having many classes in my mapfile. Here is an example of what I think I should use to get a legend for this layer. CLASS NAME [name] STYLE COLOR [color] OUTLINECOLOR 0 0 0 WIDTH 1 END END Only the NAME line dies with a parse error as it appears to be looking for a string ([MapServer Error]: getString(): Parsing error near ([name])). It seems that the NAME line cannot take an attribute. How do I get a legend for this layer? Is this the method I should be using for this use? Worth _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ibrahimsaricicek at gmail.com Mon Jul 26 23:16:00 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Mon, 26 Jul 2010 23:16:00 -0700 (PDT) Subject: [mapserver-users] Re: Rendering Problem In-Reply-To: References: <1274173405434-5069072.post@n2.nabble.com> <4BF27FF1.9070408@gatewaygeomatics.com> <1274776830169-5097451.post@n2.nabble.com> <4BFBC47F.5090303@gatewaygeomatics.com> <1274791745856-5098281.post@n2.nabble.com> <4BFBC93A.7080309@gatewaygeomatics.com> <1279874813661-5328796.post@n2.nabble.com> Message-ID: <1280211360183-5340959.post@n2.nabble.com> ii libfreetype6 2.3.7-2+lenny1 FreeType 2 font engine, shared library files ii libfreetype6-dev 2.3.7-2+lenny1 FreeType 2 font engine, development files -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5340959.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefan.schwarzer at grid.unep.ch Mon Jul 26 23:56:14 2010 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Tue, 27 Jul 2010 08:56:14 +0200 Subject: [mapserver-users] Interactive display of map polygons & attributes (flash, svg, ...) Message-ID: Hi there, we're using mapserver since a very long time for different applications. For an upcoming project, I would like to link more dynamically the map (polygons of communities for example) with the attributes, meaning that when the mouse slides over another polygon it would display a graph linked to that polygon at the side of the map. With this, a user could rapidly browse the different communities and compare the graphs for these. I guess that - if at all this would be achievable with mapserver - this would need flash or eventually svg output, right? Does anyone know of such an enabling framework? I remember many years ago having seen a demo flash version. And how about SVG? As nowadays browser are more capable of displaying SVG, this could be an interesting, open-source solution too. The only other "app" I know of able to do such a thing is ArcGIS Server with Javascript of Flex front end. But I am a bit reluctant to jump on that train. Thanks for any hints, Stefan From Steve.Lime at state.mn.us Tue Jul 27 08:02:32 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 27 Jul 2010 10:02:32 -0500 Subject: [mapserver-users] Interactive display of map polygons & attributes (flash, svg, ...) In-Reply-To: References: Message-ID: There are lots of ways to approach a problem like this, but how you'd approach it depends on your requirements, especially in terms of responsiveness and number of users. A lot of the apps I've seen like this basically use pre-rendered data (map and reports) and really are nothing more than an image map. In fact, you could do something like this with a straight image map. If you don't need to support pan/zoom that would be an easy way to go. OpenLayers has much of this covered already, but again it depends on the exact requirements. For example, OL has a hover or pause control that you can use to trigger queries (e.g. GetInfo, feature server or straight MapServer) against a layer and then you could use AJAX to update the report/graph area. This can work well but isn't as responsive since the client doesn't know what feature it's over, it has to ask a server process. OL has vector display capabilities that you can tie events too as well for more responsiveness. Which makes the most sense depends on the type and volume of data... In any case MapServer's role is that of a data producer, either in batch ahead of time or in real-time. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefan Schwarzer Sent: Tuesday, July 27, 2010 1:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Interactive display of map polygons & attributes (flash, svg, ...) Hi there, we're using mapserver since a very long time for different applications. For an upcoming project, I would like to link more dynamically the map (polygons of communities for example) with the attributes, meaning that when the mouse slides over another polygon it would display a graph linked to that polygon at the side of the map. With this, a user could rapidly browse the different communities and compare the graphs for these. I guess that - if at all this would be achievable with mapserver - this would need flash or eventually svg output, right? Does anyone know of such an enabling framework? I remember many years ago having seen a demo flash version. And how about SVG? As nowadays browser are more capable of displaying SVG, this could be an interesting, open-source solution too. The only other "app" I know of able to do such a thing is ArcGIS Server with Javascript of Flex front end. But I am a bit reluctant to jump on that train. Thanks for any hints, Stefan_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Jul 27 12:13:07 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 27 Jul 2010 14:13:07 -0500 Subject: [mapserver-users] Re: Rendering Problem In-Reply-To: <1280211360183-5340959.post@n2.nabble.com> References: <1274173405434-5069072.post@n2.nabble.com> <4BF27FF1.9070408@gatewaygeomatics.com> <1274776830169-5097451.post@n2.nabble.com> <4BFBC47F.5090303@gatewaygeomatics.com> <1274791745856-5098281.post@n2.nabble.com> <4BFBC93A.7080309@gatewaygeomatics.com> <1279874813661-5328796.post@n2.nabble.com> <1280211360183-5340959.post@n2.nabble.com> Message-ID: And on Windows where things work? -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek Sent: Tuesday, July 27, 2010 1:16 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Rendering Problem ii libfreetype6 2.3.7-2+lenny1 FreeType 2 font engine, shared library files ii libfreetype6-dev 2.3.7-2+lenny1 FreeType 2 font engine, development files -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5340959.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From wal3 at mindspring.com Tue Jul 27 13:24:24 2010 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 27 Jul 2010 16:24:24 -0400 Subject: [mapserver-users] How do I get a Legend with a variable COLOR in the CLASS In-Reply-To: References: <99B447FD16064E46A173B0573E059FDA@Worthlaptop> Message-ID: <7B9DDC83B8294CAEBEE960D1B92A0CA4@Worthlaptop> Thanks, I think I understand the problem from your end. It seemed like a good idea to put the colors in my postgresql tables instead of having 23 or such classes. What would make life easier would be "Named" styles. Then I could have one set of poly background colors to use for the various layers. "Named" Label blocks would be nice too. Instead of editing every layer to change text size in every style in every class... I'm sure you get the idea. Thanks for your help... and MapServer! Worth -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, July 26, 2010 5:05 PM To: Worth Lutz; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] How do I get a Legend with a variable COLOR in the CLASS Hi Worth: At the moment, you can't get a legend in this case. The legend code isn't smart Enough to discover potential colors and render them. Also, class names cannot be bound to an attribute... If you really need legends produced by MapServer then attribute binding probably isn't going to work for you. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Worth Lutz Sent: Monday, July 26, 2010 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How do I get a Legend with a variable COLOR in the CLASS I'm trying to set my colors from a postgres table instead of having many classes in my mapfile. Here is an example of what I think I should use to get a legend for this layer. CLASS NAME [name] STYLE COLOR [color] OUTLINECOLOR 0 0 0 WIDTH 1 END END Only the NAME line dies with a parse error as it appears to be looking for a string ([MapServer Error]: getString(): Parsing error near ([name])). It seems that the NAME line cannot take an attribute. How do I get a legend for this layer? Is this the method I should be using for this use? Worth _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ibrahimsaricicek at gmail.com Tue Jul 27 22:57:42 2010 From: ibrahimsaricicek at gmail.com (ibrahim saricicek) Date: Wed, 28 Jul 2010 08:57:42 +0300 Subject: [mapserver-users] Re: Rendering Problem In-Reply-To: References: <1274173405434-5069072.post@n2.nabble.com> <4BF27FF1.9070408@gatewaygeomatics.com> <1274776830169-5097451.post@n2.nabble.com> <4BFBC47F.5090303@gatewaygeomatics.com> <1274791745856-5098281.post@n2.nabble.com> <4BFBC93A.7080309@gatewaygeomatics.com> <1279874813661-5328796.post@n2.nabble.com> <1280211360183-5340959.post@n2.nabble.com> Message-ID: Hi all, ms4w 5.4.0-rc2 on windows 7. Is there a way to learn ms4w freetype libraries? Regards... On Tue, Jul 27, 2010 at 10:13 PM, Lime, Steve D (DNR) [via OSGeo.org] < ml-node+5343634-1325975678-286135 at n2.nabble.com > wrote: And on Windows where things work? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibrahimsaricicek at gmail.com Tue Jul 27 23:50:23 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Tue, 27 Jul 2010 23:50:23 -0700 (PDT) Subject: [mapserver-users] Re: Rendering Problem In-Reply-To: References: <4BF27FF1.9070408@gatewaygeomatics.com> <1274776830169-5097451.post@n2.nabble.com> <4BFBC47F.5090303@gatewaygeomatics.com> <1274791745856-5098281.post@n2.nabble.com> <4BFBC93A.7080309@gatewaygeomatics.com> <1279874813661-5328796.post@n2.nabble.com> <1280211360183-5340959.post@n2.nabble.com> Message-ID: Hi all, ms4w 5.4.0-rc2 on windows 7. Is there a way to learn ms4w freetype libraries? Regards... On Tue, Jul 27, 2010 at 10:13 PM, Lime, Steve D (DNR) [via OSGeo.org] < ml-node+5343634-1325975678-286135 at n2.nabble.com > wrote: And on Windows where things work? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rendering-Problem-tp5069072p5345276.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.weiss at pik-potsdam.de Wed Jul 28 01:54:41 2010 From: tobias.weiss at pik-potsdam.de (=?ISO-8859-1?Q?Tobias_Wei=DF?=) Date: Wed, 28 Jul 2010 10:54:41 +0200 Subject: [mapserver-users] Raster data performance Message-ID: <4C4FF051.3060309@pik-potsdam.de> Hello list, this is my first email to this list. I am working with MapServer, OpenLayers & TileCache for almost 1 year now and the tools are really working great together, when everything is configured correctly ;-) At the moment I?m facing a performance problem with raster data that serves as input data to render my map tiles. The spatial resolution of this raster data is 720 (rows) x 360 (cols) and it is stored in a simple .txt file (The size of the file is around 2 MB). I use TileCache to prerender maptiles for different zoom levels that are later displayed in a web application using OpenLayers. I discovered, that the rendering speed of MapServer seems to mainly depend on how many different classes I define within my mapfile, meaning how many expressions MapServer has to evaluate during the rendering process. Without any classes MapServer the rendering speed is really fast, the more classes I use the slower it gets. With e.g. 10 different classes defining 10 different styles / pixel colors the rendering time for one tile can increase up to 60 sec. CLASS EXPRESSION ([pixel] >= -4 AND [pixel] < -3) STYLE COLOR 69 117 180 END END While working with shape files I haven?t had this problems and prerendering map tiles was really fast. With raster data the rendering time for one map and 5 different zoom levels can take up to several hours and almost overburdens my CPU. Can anybody give me a hint how I could improve this? Best, Tobi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Jul 28 05:23:40 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 28 Jul 2010 09:23:40 -0300 Subject: [mapserver-users] Re: Rendering Problem In-Reply-To: References: <4BF27FF1.9070408@gatewaygeomatics.com> <1274776830169-5097451.post@n2.nabble.com> <4BFBC47F.5090303@gatewaygeomatics.com> <1274791745856-5098281.post@n2.nabble.com> <4BFBC93A.7080309@gatewaygeomatics.com> <1279874813661-5328796.post@n2.nabble.com> <1280211360183-5340959.post@n2.nabble.com> Message-ID: <4C50214C.8020301@gatewaygeomatics.com> Ibrahim Saricicek wrote: > Hi all, > > ms4w 5.4.0-rc2 on windows 7. Is there a way to learn ms4w freetype > libraries? Yes. Open your /ms4w/README_INSTALL.txt file in a text editor, and there is a section titled "MapServer Build Environment" that lists each library version. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From adube at mapgears.com Wed Jul 28 05:27:10 2010 From: adube at mapgears.com (Alexandre Dube) Date: Wed, 28 Jul 2010 08:27:10 -0400 Subject: [mapserver-users] Raster data performance In-Reply-To: <4C4FF051.3060309@pik-potsdam.de> References: <4C4FF051.3060309@pik-potsdam.de> Message-ID: <4C50221E.6040108@mapgears.com> Hi Tobi, The following documentation topics about raster might help : http://mapserver.org/input/raster.html#rasters-and-tile-indexing http://mapserver.org/input/raster.html#raster-display-performance-tips and about expressions : http://mapserver.org/mapfile/expressions.html The string comparison type is the fastest, so you could try define more classes but using string comparison to see if it gets faster. Also, a good performance tip is to put your most frequent classes types on top first. For example, if 80% of your data has "pixel = -3" then put it on top. Kind regards, Alexandre On 10-07-28 04:54 AM, Tobias Wei? wrote: > Hello list, > > this is my first email to this list. I am working with MapServer, > OpenLayers & TileCache for almost 1 year now and the tools are really > working great together, when everything is configured correctly ;-) > > At the moment I?m facing a performance problem with raster data that > serves as input data to render my map tiles. The spatial resolution of > this raster data is 720 (rows) x 360 (cols) and it is stored in a > simple .txt file (The size of the file is around 2 MB). I use > TileCache to prerender maptiles for different zoom levels that are > later displayed in a web application using OpenLayers. > > I discovered, that the rendering speed of MapServer seems to mainly > depend on how many different classes I define within my mapfile, > meaning how many expressions MapServer has to evaluate during the > rendering process. Without any classes MapServer the rendering speed > is really fast, the more classes I use the slower it gets. With e.g. > 10 different classes defining 10 different styles / pixel colors the > rendering time for one tile can increase up to 60 sec. > > CLASS > EXPRESSION ([pixel]>= -4 AND [pixel]< -3) > STYLE > COLOR 69 117 180 > END > END > > > While working with shape files I haven?t had this problems and > prerendering map tiles was really fast. With raster data the rendering > time for one map and 5 different zoom levels can take up to several > hours and almost overburdens my CPU. > > Can anybody give me a hint how I could improve this? > > Best, Tobi > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.weiss at pik-potsdam.de Wed Jul 28 06:25:21 2010 From: tobias.weiss at pik-potsdam.de (=?ISO-8859-1?Q?Tobias_Wei=DF?=) Date: Wed, 28 Jul 2010 15:25:21 +0200 Subject: [mapserver-users] Raster data performance In-Reply-To: <4C50221E.6040108@mapgears.com> References: <4C4FF051.3060309@pik-potsdam.de> <4C50221E.6040108@mapgears.com> Message-ID: <4C502FC1.20707@pik-potsdam.de> Hi Alex, I tried some of the performance tips you mentioned, e.g. converted the .txt to a tiled TIFF to optimize performance. I can not see significant changes in rendering speed. gdal_translate -co TILED=YES input.txt output.tif The major brake still is the expression stuff. I really wonder what makes this task so time-consuming, it should not be more than a simple comparison. Do you have experiences with this issue? Or do I have to live with this constraint? Best, Tobi === Am 28.07.10 14:27, schrieb Alexandre Dube: > Hi Tobi, > > The following documentation topics about raster might help : > > http://mapserver.org/input/raster.html#rasters-and-tile-indexing > http://mapserver.org/input/raster.html#raster-display-performance-tips > > and about expressions : > > http://mapserver.org/mapfile/expressions.html > > The string comparison type is the fastest, so you could try define > more classes but using string comparison to see if it gets faster. > Also, a good performance tip is to put your most frequent classes > types on top first. For example, if 80% of your data has "pixel = -3" > then put it on top. > > Kind regards, > > Alexandre > > > On 10-07-28 04:54 AM, Tobias Wei? wrote: >> Hello list, >> >> this is my first email to this list. I am working with MapServer, >> OpenLayers & TileCache for almost 1 year now and the tools are really >> working great together, when everything is configured correctly ;-) >> >> At the moment I?m facing a performance problem with raster data that >> serves as input data to render my map tiles. The spatial resolution >> of this raster data is 720 (rows) x 360 (cols) and it is stored in a >> simple .txt file (The size of the file is around 2 MB). I use >> TileCache to prerender maptiles for different zoom levels that are >> later displayed in a web application using OpenLayers. >> >> I discovered, that the rendering speed of MapServer seems to mainly >> depend on how many different classes I define within my mapfile, >> meaning how many expressions MapServer has to evaluate during the >> rendering process. Without any classes MapServer the rendering speed >> is really fast, the more classes I use the slower it gets. With e.g. >> 10 different classes defining 10 different styles / pixel colors the >> rendering time for one tile can increase up to 60 sec. >> >> CLASS >> EXPRESSION ([pixel] >= -4 AND [pixel] < -3) >> STYLE >> COLOR 69 117 180 >> END >> END >> >> >> While working with shape files I haven?t had this problems and >> prerendering map tiles was really fast. With raster data the >> rendering time for one map and 5 different zoom levels can take up to >> several hours and almost overburdens my CPU. >> >> Can anybody give me a hint how I could improve this? >> >> Best, Tobi >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From strunck at bicc.de Wed Jul 28 06:50:49 2010 From: strunck at bicc.de (Strunck, Alexander) Date: Wed, 28 Jul 2010 15:50:49 +0200 Subject: [mapserver-users] Postgresql join with chart Message-ID: Hello List, i am relativly new to mapfiles and mapserver. I am right now trying to bild an chart layer with my data. if i got only one postgresql table i got pie charts with no problem... LAYER NAME 'Grenzen aller L?nder' GROUP 'baselayer' TYPE CHART INCLUDE "postgis.config" DATA "the_geom from (SELECT c.gid, c.area, ST_Centroid(c.the_geom) AS the_geom FROM basemap AS c ) as foo using unique gid using SRID=4326" STATUS on PROCESSING "CHART_TYPE=PIE" METADATA WMS_TITLE 'Grenzen aller L?nder' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END #METADATA CLASS NAME 'Grenzen aller L?nder' STYLE SIZE [gid] COLOR 0 104 55 # CMYK 100, 25, 90, 0 OUTLINECOLOR 1 1 1 WIDTH 2 END #STYLE END # CLASS CLASS NAME 'Grenzen aller L?nder' STYLE SIZE [area] COLOR 49 163 84 # CMYK 81, 0, 76, 0 OUTLINECOLOR 1 1 1 WIDTH 2 END #STYLE END # CLASS END # Layer if i try to make pie charts with a join, i don?t get a map back. LAYER NAME 'Grenzen aller L?nder' GROUP 'bicc_baselayer' TYPE CHART INCLUDE "postgis.config" DATA "the_geom from (SELECT c.gid, gmi.milps, gmi.milpr, ST_Centroid(c.the_geom) AS the_geom FROM bicc_basemap AS c LEFT JOIN bpb_m3_thema1_2008_2 AS gmi ON c.iso3_code = gmi.iso3_code) as foo using unique gid using SRID=4326" gid using SRID=4326" STATUS on PROCESSING "CHART_TYPE=PIE" METADATA WMS_TITLE 'Grenzen aller L?nder' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END #METADATA CLASS NAME 'Grenzen aller L?nder' STYLE SIZE [milps] COLOR 0 104 55 # CMYK 100, 25, 90, 0 OUTLINECOLOR 1 1 1 WIDTH 2 END #STYLE END # CLASS CLASS NAME 'Grenzen aller L?nder' STYLE SIZE [milpr] COLOR 49 163 84 # CMYK 81, 0, 76, 0 OUTLINECOLOR 1 1 1 WIDTH 2 END #STYLE END # CLASS END # Layer Can anyone help me?!? Thanks Alex ________________________________ -- Internationales Konversionszentrum Bonn Bonn International Center for Conversion (BICC) GmbH Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 Internet: www.bicc.de, E-mail: bicc at bicc.de Firmensitz/ Office: Bonn Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 Gesch?ftsf?hrer/ Director: Peter Johannes Croll Prokurist/ Authorized Signatory: Michael Dedek Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: Staatssekret?r/ Deputy Minister Dr. Michael St?ckradt -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Wed Jul 28 07:07:06 2010 From: adube at mapgears.com (Alexandre Dube) Date: Wed, 28 Jul 2010 10:07:06 -0400 Subject: [mapserver-users] Raster data performance In-Reply-To: <4C502FC1.20707@pik-potsdam.de> References: <4C4FF051.3060309@pik-potsdam.de> <4C50221E.6040108@mapgears.com> <4C502FC1.20707@pik-potsdam.de> Message-ID: <4C50398A.4000904@mapgears.com> On 10-07-28 09:25 AM, Tobias Wei? wrote: > The major brake still is the expression stuff. I really wonder what > makes this task so time-consuming, it should not be more than a simple > comparison. > > Do you have experiences with this issue? Or do I have to live with > this constraint? With vector data but not raster. What I did is reorder the data by classification fields and reorder the CLASS objects in the mapfile with the topmost having the more number of features to bottommost the less. I'm not sure how you could do that with rasters though. Regards, -- Alexandre Dub? Mapgears www.mapgears.com From David.Fawcett at state.mn.us Wed Jul 28 07:09:53 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 28 Jul 2010 09:09:53 -0500 Subject: [mapserver-users] Raster data performance In-Reply-To: <4C502FC1.20707@pik-potsdam.de> References: <4C4FF051.3060309@pik-potsdam.de> <4C50221E.6040108@mapgears.com> <4C502FC1.20707@pik-potsdam.de> Message-ID: I don't know anything about your work flow, but if possible, you could add a pre-processing step where you use a script to read your text file and pre-classify the data. You would end up with integers representing each class as 'cell' values. Instead of : EXPRESSION([pixel] >= -4 AND [pixel] < -3) You could have: EXPRESSION "2" Or EXPRESSION /2/ Matching a single string should be the fastest expression to evaluate. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tobias Wei? Sent: Wednesday, July 28, 2010 8:25 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Raster data performance Hi Alex, I tried some of the performance tips you mentioned, e.g. converted the .txt to a tiled TIFF to optimize performance. I can not see significant changes in rendering speed. gdal_translate -co TILED=YES input.txt output.tif The major brake still is the expression stuff. I really wonder what makes this task so time-consuming, it should not be more than a simple comparison. Do you have experiences with this issue? Or do I have to live with this constraint? Best, Tobi === Am 28.07.10 14:27, schrieb Alexandre Dube: Hi Tobi, The following documentation topics about raster might help : http://mapserver.org/input/raster.html#rasters-and-tile-indexing http://mapserver.org/input/raster.html#raster-display-performance-tips and about expressions : http://mapserver.org/mapfile/expressions.html The string comparison type is the fastest, so you could try define more classes but using string comparison to see if it gets faster. Also, a good performance tip is to put your most frequent classes types on top first. For example, if 80% of your data has "pixel = -3" then put it on top. Kind regards, Alexandre On 10-07-28 04:54 AM, Tobias Wei? wrote: Hello list, this is my first email to this list. I am working with MapServer, OpenLayers & TileCache for almost 1 year now and the tools are really working great together, when everything is configured correctly ;-) At the moment I?m facing a performance problem with raster data that serves as input data to render my map tiles. The spatial resolution of this raster data is 720 (rows) x 360 (cols) and it is stored in a simple .txt file (The size of the file is around 2 MB). I use TileCache to prerender maptiles for different zoom levels that are later displayed in a web application using OpenLayers. I discovered, that the rendering speed of MapServer seems to mainly depend on how many different classes I define within my mapfile, meaning how many expressions MapServer has to evaluate during the rendering process. Without any classes MapServer the rendering speed is really fast, the more classes I use the slower it gets. With e.g. 10 different classes defining 10 different styles / pixel colors the rendering time for one tile can increase up to 60 sec. CLASS EXPRESSION ([pixel] >= -4 AND [pixel] < -3) STYLE COLOR 69 117 180 END END While working with shape files I haven?t had this problems and prerendering map tiles was really fast. With raster data the rendering time for one map and 5 different zoom levels can take up to several hours and almost overburdens my CPU. Can anybody give me a hint how I could improve this? Best, Tobi _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dub? Mapgears www.mapgears.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Jul 28 07:49:36 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 28 Jul 2010 10:49:36 -0400 Subject: [mapserver-users] Raster data performance In-Reply-To: References: <4C4FF051.3060309@pik-potsdam.de> <4C50221E.6040108@mapgears.com> <4C502FC1.20707@pik-potsdam.de> Message-ID: <4C504380.9020306@swoodbridge.com> Fawcett, David (MPCA) wrote: > I don?t know anything about your work flow, but if possible, you could > add a pre-processing step where you use a script to read your text file > and pre-classify the data. You would end up with integers representing > each class as ?cell? values. > > > > Instead of : > > EXPRESSION([pixel] >= -4 AND [pixel] < -3) > > > > You could have: EXPRESSION ?2? This is the fastest one. > Or > > EXPRESSION /2/ Be careful with this because the // mean you are doing a regular expression evaluation which is slower. and you need to be more precise in the expression: /2/ match a "2" anywhere in the string so would match any of the follow where "?" is a wildcard: "2" "2?" "?2" "2??" "?2?" "??2" If you want to match exactly "2" with a regex then you would need /^2$/ Complex expressions are compiled into structures that have to be evaluated for each [pixel] so the more pixels you have the more computation you have and the more complex the expression the more computation that is involved. -Steve W > > > Matching a single string should be the fastest expression to evaluate. > > > > David. > > > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Tobias Wei? > *Sent:* Wednesday, July 28, 2010 8:25 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Raster data performance > > > > Hi Alex, > > I tried some of the performance tips you mentioned, e.g. converted the > .txt to a tiled TIFF to optimize performance. I can not see significant > changes in rendering speed. > > gdal_translate -co TILED=YES input.txt output.tif > > The major brake still is the expression stuff. I really wonder what > makes this task so time-consuming, it should not be more than a simple > comparison. > > Do you have experiences with this issue? Or do I have to live with this > constraint? > > Best, Tobi > > === > Am 28.07.10 14:27, schrieb Alexandre Dube: > > Hi Tobi, > > The following documentation topics about raster might help : > > http://mapserver.org/input/raster.html#rasters-and-tile-indexing > http://mapserver.org/input/raster.html#raster-display-performance-tips > > and about expressions : > > http://mapserver.org/mapfile/expressions.html > > The string comparison type is the fastest, so you could try define > more classes but using string comparison to see if it gets faster. > Also, a good performance tip is to put your most frequent classes types > on top first. For example, if 80% of your data has "pixel = -3" then > put it on top. > > Kind regards, > > Alexandre > > > On 10-07-28 04:54 AM, Tobias Wei? wrote: > > Hello list, > > this is my first email to this list. I am working with MapServer, > OpenLayers & TileCache for almost 1 year now and the tools are really > working great together, when everything is configured correctly ;-) > > At the moment I?m facing a performance problem with raster data that > serves as input data to render my map tiles. The spatial resolution of > this raster data is 720 (rows) x 360 (cols) and it is stored in a simple > .txt file (The size of the file is around 2 MB). I use TileCache to > prerender maptiles for different zoom levels that are later displayed in > a web application using OpenLayers. > > I discovered, that the rendering speed of MapServer seems to mainly > depend on how many different classes I define within my mapfile, meaning > how many expressions MapServer has to evaluate during the rendering > process. Without any classes MapServer the rendering speed is really > fast, the more classes I use the slower it gets. With e.g. 10 different > classes defining 10 different styles / pixel colors the rendering time > for one tile can increase up to 60 sec. > > > CLASS > > EXPRESSION ([pixel] >= -4 AND [pixel] < -3) > > STYLE > > COLOR 69 117 180 > > END > > END > > > > > While working with shape files I haven?t had this problems and > prerendering map tiles was really fast. With raster data the rendering > time for one map and 5 different zoom levels can take up to several > hours and almost overburdens my CPU. > > Can anybody give me a hint how I could improve this? > > Best, Tobi > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > -- > > Alexandre Dub? > > Mapgears > > www.mapgears.com > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From tobias.weiss at pik-potsdam.de Wed Jul 28 08:18:51 2010 From: tobias.weiss at pik-potsdam.de (=?ISO-8859-1?Q?Tobias_Wei=DF?=) Date: Wed, 28 Jul 2010 17:18:51 +0200 Subject: [mapserver-users] Raster data performance In-Reply-To: References: <4C4FF051.3060309@pik-potsdam.de> <4C50221E.6040108@mapgears.com> <4C502FC1.20707@pik-potsdam.de> Message-ID: <4C504A5B.2020509@pik-potsdam.de> Thanks, David. I will try if this will bring some significant performance boost ... Tobi === Am 28.07.10 16:09, schrieb Fawcett, David (MPCA): > > I don't know anything about your work flow, but if possible, you could > add a pre-processing step where you use a script to read your text > file and pre-classify the data. You would end up with integers > representing each class as 'cell' values. > > > > Instead of : > > EXPRESSION([pixel] >= -4 AND [pixel] < -3) > > > > You could have: EXPRESSION "2" > > Or > > EXPRESSION /2/ > > > > Matching a single string should be the fastest expression to evaluate. > > > > David. > > > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Tobias > Wei? > *Sent:* Wednesday, July 28, 2010 8:25 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Raster data performance > > > > Hi Alex, > > I tried some of the performance tips you mentioned, e.g. converted the > .txt to a tiled TIFF to optimize performance. I can not see > significant changes in rendering speed. > > gdal_translate -co TILED=YES input.txt output.tif > > The major brake still is the expression stuff. I really wonder what > makes this task so time-consuming, it should not be more than a simple > comparison. > > Do you have experiences with this issue? Or do I have to live with > this constraint? > > Best, Tobi > > === > Am 28.07.10 14:27, schrieb Alexandre Dube: > > Hi Tobi, > > The following documentation topics about raster might help : > > http://mapserver.org/input/raster.html#rasters-and-tile-indexing > http://mapserver.org/input/raster.html#raster-display-performance-tips > > and about expressions : > > http://mapserver.org/mapfile/expressions.html > > The string comparison type is the fastest, so you could try define > more classes but using string comparison to see if it gets faster. > Also, a good performance tip is to put your most frequent classes > types on top first. For example, if 80% of your data has "pixel = -3" > then put it on top. > > Kind regards, > > Alexandre > > > On 10-07-28 04:54 AM, Tobias Wei? wrote: > > Hello list, > > this is my first email to this list. I am working with MapServer, > OpenLayers & TileCache for almost 1 year now and the tools are really > working great together, when everything is configured correctly ;-) > > At the moment I?m facing a performance problem with raster data that > serves as input data to render my map tiles. The spatial resolution of > this raster data is 720 (rows) x 360 (cols) and it is stored in a > simple .txt file (The size of the file is around 2 MB). I use > TileCache to prerender maptiles for different zoom levels that are > later displayed in a web application using OpenLayers. > > I discovered, that the rendering speed of MapServer seems to mainly > depend on how many different classes I define within my mapfile, > meaning how many expressions MapServer has to evaluate during the > rendering process. Without any classes MapServer the rendering speed > is really fast, the more classes I use the slower it gets. With e.g. > 10 different classes defining 10 different styles / pixel colors the > rendering time for one tile can increase up to 60 sec. > > > CLASS > EXPRESSION ([pixel] >= -4 AND [pixel] < -3) > STYLE > COLOR 69 117 180 > END > END > > > > While working with shape files I haven?t had this problems and > prerendering map tiles was really fast. With raster data the rendering > time for one map and 5 different zoom levels can take up to several > hours and almost overburdens my CPU. > > Can anybody give me a hint how I could improve this? > > Best, Tobi > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Dipl.-Ing. Tobias Wei? Potsdam Institute for Climate Impact Research Pappelallee 20, Room 316 14469 Potsdam Germany Phone: +49 / (0)331 / 288-2490 Location: http://bit.ly/1gOr64 -------------- next part -------------- An HTML attachment was scrubbed... URL: From maymerich at argongra.es Wed Jul 28 23:35:29 2010 From: maymerich at argongra.es (Manuel Aymerich) Date: Thu, 29 Jul 2010 08:35:29 +0200 Subject: [mapserver-users] Security issues dealing with mapserver instances Message-ID: <000001cb2ee8$3cfbdae0$2400a8c0@argongra.local> Hi all, I am not sure if this is the right place to ask this question, but I am sure many of you have dealt with this problem at one time or another. I am working with openlayers together with Mapserver CGI (caching with tilecache). I am configuring a public site and I was wondering about the serious security issues dealing with mapserver instances. I am assuming that if too many users try to reach my website to view one of my maps concurrently, or even if a malicious user finds the way too make too many mapserver requests, my Apache server may eventually collapse. Is there a way to limit the number of mapserver child threads created by my server without disturbing in the overall server performance? Is there a way to bound the maximum number of mapserver instances my server can handle? Or even more, is there a way to deny service to users which overload the system? Any help within this topic will be more than welcome. Thanks in advance, Manu maymerich at argongra.es labs.argongra.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From petergoulborn at astuntechnology.com Thu Jul 29 01:24:53 2010 From: petergoulborn at astuntechnology.com (Peter Goulborn) Date: Thu, 29 Jul 2010 09:24:53 +0100 Subject: [mapserver-users] Problem querying MapInfo TAB files (5.6.3 CGI) Message-ID: <4C513AD5.6010304@astuntechnology.com> Hello, Has anyone else come across an issue with Mapserver CGI returning the wrong records from a MapInfo Tab file when using NQUERY? Or know what might be causing it? I've got a couple of installations of 5.6.3 where this is happening, the files affected contain POLYGON geometries which Mapserver draws correctly, and when I do the nquery on a point with a tolerance sufficient to cover a nuber of polygons I get the right number of records found but the wrong field data. As far as I can tell the fields are always coming back in the order in which they are stored in the MapInfo data table. If I convert the files to Shapefile format with OGR2OGR then the queries work correctly. -- Peter Goulborn From enrico.oemi at gmail.com Thu Jul 29 06:35:37 2010 From: enrico.oemi at gmail.com (Kiks) Date: Thu, 29 Jul 2010 06:35:37 -0700 (PDT) Subject: [mapserver-users] what is the way to get feature info in mapserver? Message-ID: <1280410537531-5347323.post@n2.nabble.com> Hi to all, I'm trying to obtain information by clicking on the map and display it on a popup window with Openlayers. First of all, I added to my mapfile the template reference that is this: [COD] [FOG] [NUM] (where COD, FOG and NUM are the name of the fields on the same table where the spatial information of my layer are) then I added to the LAYER section this: ... METADATA "wms_title" "Parcels" "wms_info_format" "text/plain" END TEMPLATE "..\template\Parcel.html" ... then I worked on OpenLayer to make the WMS getFeatureInfo call. I'm sure I'm forgiving or misunderstanding something important, but I can't find what.. Has anybody suggestions or tutorial to do this working? thanks again, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5347323.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Toutant at inspq.qc.ca Thu Jul 29 07:27:42 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 29 Jul 2010 10:27:42 -0400 Subject: RE [Polluriel potentiel] [mapserver-users] what is the way to get feature info in mapserver? In-Reply-To: <1280410537531-5347323.post@n2.nabble.com> Message-ID: What happen when you click on the map? Do you get an error? What's in the mapserver log? Kiks @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 29/07/2010 09:35 AM A mapserver-users at lists.osgeo.org cc Objet [Polluriel potentiel] [mapserver-users] what is the way to get feature info in mapserver? Hi to all, I'm trying to obtain information by clicking on the map and display it on a popup window with Openlayers. First of all, I added to my mapfile the template reference that is this: [COD] [FOG] [NUM] (where COD, FOG and NUM are the name of the fields on the same table where the spatial information of my layer are) then I added to the LAYER section this: ... METADATA "wms_title" "Parcels" "wms_info_format" "text/plain" END TEMPLATE "..\template\Parcel.html" ... then I worked on OpenLayer to make the WMS getFeatureInfo call. I'm sure I'm forgiving or misunderstanding something important, but I can't find what.. Has anybody suggestions or tutorial to do this working? thanks again, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5347323.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Jul 29 08:07:18 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 29 Jul 2010 10:07:18 -0500 Subject: [mapserver-users] what is the way to get feature info in mapserver? In-Reply-To: <1280410537531-5347323.post@n2.nabble.com> References: <1280410537531-5347323.post@n2.nabble.com> Message-ID: Hi Kiks: Basic configuration looks fine, but what problem are you experiencing, what are the symptoms? Have you tried getInfo requests outside of the OL framework? If so, what happens? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kiks Sent: Thursday, July 29, 2010 8:36 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] what is the way to get feature info in mapserver? Hi to all, I'm trying to obtain information by clicking on the map and display it on a popup window with Openlayers. First of all, I added to my mapfile the template reference that is this: [COD] [FOG] [NUM] (where COD, FOG and NUM are the name of the fields on the same table where the spatial information of my layer are) then I added to the LAYER section this: ... METADATA "wms_title" "Parcels" "wms_info_format" "text/plain" END TEMPLATE "..\template\Parcel.html" ... then I worked on OpenLayer to make the WMS getFeatureInfo call. I'm sure I'm forgiving or misunderstanding something important, but I can't find what.. Has anybody suggestions or tutorial to do this working? thanks again, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5347323.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Thu Jul 29 08:20:21 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 29 Jul 2010 18:20:21 +0300 Subject: [mapserver-users] what is the way to get feature info inmapserver? References: <1280410537531-5347323.post@n2.nabble.com> Message-ID: Hi, Even if you'd get it working, without adding wms_include_items the GetFeatureInfo result will not have any useful information. I tried once to understand how GetFeatureInfo is configered in Mapserver, see http://permalink.gmane.org/gmane.comp.gis.mapserver.user/41818 I suggest you to see from the Apache request logs what is coming in and test those GetFeatureInfo queries with browser. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Lime, Steve D (DNR) L?hetetty: to 29.7.2010 18:07 Vastaanottaja: Kiks; mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] what is the way to get feature info inmapserver? Hi Kiks: Basic configuration looks fine, but what problem are you experiencing, what are the symptoms? Have you tried getInfo requests outside of the OL framework? If so, what happens? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kiks Sent: Thursday, July 29, 2010 8:36 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] what is the way to get feature info in mapserver? Hi to all, I'm trying to obtain information by clicking on the map and display it on a popup window with Openlayers. First of all, I added to my mapfile the template reference that is this: [COD] [FOG] [NUM] (where COD, FOG and NUM are the name of the fields on the same table where the spatial information of my layer are) then I added to the LAYER section this: ... METADATA "wms_title" "Parcels" "wms_info_format" "text/plain" END TEMPLATE "..\template\Parcel.html" ... then I worked on OpenLayer to make the WMS getFeatureInfo call. I'm sure I'm forgiving or misunderstanding something important, but I can't find what.. Has anybody suggestions or tutorial to do this working? thanks again, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5347323.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Thu Jul 29 11:01:40 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 29 Jul 2010 21:01:40 +0300 Subject: [mapserver-users] what is the way to get feature info inmapserver? References: <1280410537531-5347323.post@n2.nabble.com> Message-ID: Hi, Apache access log file is logging all the incoming requests. With MS4W installation it is in [drive]:\ms4w\apache\logs\access.log. It is wasting your time to do anything else now before having a look on the log. Next go and fire GetFeatureInfo requests manually with a browser. Edit requests with text editor and you will have a full control on what is happening. Once you know that Mapserver side is OK you can continue to OpenLayers side and make it to send proper requests. I have not used GetFeatureInfo a lot but I think that there is something mixed now. If you want text/plain infoformat then a real html template is not needed nor used. The template file must exist but it does not need to contain anything else than the magic string to pass the validation. It you want to use the template then the outputformat is text/html. I did sent my answer to the mailing list as well, I suppose it will appear sooner or later in the thread. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: Enrico Oemi [mailto:enrico.oemi at gmail.com] L?hetetty: to 29.7.2010 19:03 Vastaanottaja: Rahkonen Jukka Kopio: Lime, Steve D (DNR) Aihe: Re: [mapserver-users] what is the way to get feature info inmapserver? I've added the METADATA "wms_include_items" "all" but I still have to resolve some problems at OpenLayers side, because I cannot understand if the click event is fired, so I cannot say if the server-side is all right or not. PS: I can't see any reply on the web at the page http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html, but only in my email. Is this correct? Thanks, Kiks 2010/7/29 Rahkonen Jukka : > Hi, > > Even if you'd get it working, without adding wms_include_items the GetFeatureInfo result will not have any useful information. I tried once to understand how GetFeatureInfo is configered in Mapserver, see > http://permalink.gmane.org/gmane.comp.gis.mapserver.user/41818 > > I suggest you to see from the Apache request logs what is coming in and test those GetFeatureInfo queries with browser. > > -Jukka Rahkonen- > > > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Lime, Steve D (DNR) > L?hetetty: to 29.7.2010 18:07 > Vastaanottaja: Kiks; mapserver-users at lists.osgeo.org > Aihe: RE: [mapserver-users] what is the way to get feature info inmapserver? > > Hi Kiks: Basic configuration looks fine, but what problem are you experiencing, what are the symptoms? Have you tried getInfo requests outside of the OL framework? If so, what happens? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kiks > Sent: Thursday, July 29, 2010 8:36 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] what is the way to get feature info in mapserver? > > > Hi to all, > I'm trying to obtain information by clicking on the map and display it on a > popup window with Openlayers. > First of all, I added to my mapfile the template reference that is this: > > > ? ? ? ? > ? ? ? ? > ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [COD] > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [FOG] > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [NUM] > ? ? ? ? ? ? ? ? ? ? ? ? > ? ? ? ? > > > (where COD, FOG and NUM are the name of the fields on the same table where > the spatial information of my layer are) > > then I added to the LAYER section this: > ? ? ... > ? ? METADATA > ? ? ? "wms_title" "Parcels" > ? ? ? "wms_info_format" ? ? ? "text/plain" > ? ? END > ? ? TEMPLATE "..\template\Parcel.html" > ? ? ... > > then I worked on OpenLayer to make the WMS getFeatureInfo call. > > I'm sure I'm forgiving or misunderstanding something important, but I can't > find what.. > Has anybody suggestions or tutorial to do this working? > > thanks again, > Kiks > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5347323.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From enrico.oemi at gmail.com Fri Jul 30 03:05:54 2010 From: enrico.oemi at gmail.com (Kiks) Date: Fri, 30 Jul 2010 03:05:54 -0700 (PDT) Subject: [mapserver-users] Re: what is the way to get feature info inmapserver? In-Reply-To: References: <1280410537531-5347323.post@n2.nabble.com> Message-ID: <1280484354804-5354408.post@n2.nabble.com> I tried to send the request directly: http://mymapserver.com/mapserverms4w/map=mapserv.exe?myMapFile.map&REQUEST=GetFeatureInfo&INFO_FORMAT=plain/text&QUERY_LAYERS=CG_GEO_PARCELSE&I=120&J=120&VERSION=1.3.0 But I'm not sure about the parameter passed (I and J as pixel X,Y position on the browser, but map is not present if I make manually the request!) Anyway, the response is 404 - page not found and IIS Log is this: #Software: Microsoft Internet Information Services 5.1 #Version: 1.0 #Date: 2010-07-30 09:36:47 #Fields: time c-ip cs-method cs-uri-stem sc-status 09:36:47 127.0.0.1 GET /mapserverms4w/map=mapserv.exe 404 09:36:47 127.0.0.1 GET /favicon.ico 404 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5354408.html Sent from the Mapserver - User mailing list archive at Nabble.com. From enrico.oemi at gmail.com Fri Jul 30 03:19:14 2010 From: enrico.oemi at gmail.com (Kiks) Date: Fri, 30 Jul 2010 03:19:14 -0700 (PDT) Subject: [mapserver-users] Re: what is the way to get feature info inmapserver? In-Reply-To: <1280484354804-5354408.post@n2.nabble.com> References: <1280410537531-5347323.post@n2.nabble.com> <1280484354804-5354408.post@n2.nabble.com> Message-ID: <1280485154051-5354446.post@n2.nabble.com> I'm sorry, I made I banal mistake in the URL in the CGI request and parameter passing. Now I can see the browser reply to my request and I'm finding errors and missing required parameters. I'll let you know when I'll resolve all of them. Thanks, Kiks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5354446.html Sent from the Mapserver - User mailing list archive at Nabble.com. From socrtwo at s2services.com Fri Jul 30 09:04:07 2010 From: socrtwo at s2services.com (Paul D Pruitt) Date: Fri, 30 Jul 2010 12:04:07 -0400 Subject: [mapserver-users] Need Example of HTML ImageMap Message-ID: Hi, I'm trying to use Mapserver or GeoServer/OpenLayers to display my maps and their respective image in order to make use of the zooming and possibly other features. On my site users can click on countries or states they have visited and the maps entities are flood filled with color by GD-PHP. The site is here: http://wherehaveibeen.info. I'm trying to find an example of imagemap use on MapServer because the link is dead on the doc page on the subject: http://mapserver.org/output/imagemaps.html?highlight=imagemap. Does anyone have a new example they can point me to? Thanks in advance. Sincerely, Paul D Pruitt socrtwo at s2services.com (301) 493-4982 (H) (240) 277-6233 (M) (301) 530-2461 (F) S2 Services 9006 Friars Rd. Bethesda, MD 20817 easyleaves.com - easier ways to pick up leaves in the fall. genealogyoflife.com - tree of life in genealogy format godskingsandheroes.info/software - free software lulu.com/s2press - my books planthormones.info - plant hormone theories s2services.com - data recovery freeware list saveofficedata.com - free service for recovering text from Office files socrtwo.info - Gateway site with my links to computer tutorials and artistic portfolio wherehaveibeen.info - world map you can mark to indicate which countries in the world you have visited -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Jul 30 11:07:33 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 30 Jul 2010 13:07:33 -0500 Subject: [mapserver-users] Need Example of HTML ImageMap In-Reply-To: References: Message-ID: I resurrected the example link you referenced. It can be found here: http://maps.dnr.state.mn.us/cgi-bin/mapserv56?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true Combining imagemaps with pan/zoom functions is difficult I think. The example above is similar, conceptually, to your website. However, the trend is to use a tool like OpenLayers to call query services backed by MapServer or GeoServer via AJAX. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul D Pruitt Sent: Friday, July 30, 2010 11:04 AM To: mapserver-users at lists.osgeo.org Cc: david.fawcett at gmail.com Subject: [mapserver-users] Need Example of HTML ImageMap Hi, I'm trying to use Mapserver or GeoServer/OpenLayers to display my maps and their respective image in order to make use of the zooming and possibly other features. On my site users can click on countries or states they have visited and the maps entities are flood filled with color by GD-PHP. The site is here: http://wherehaveibeen.info. I'm trying to find an example of imagemap use on MapServer because the link is dead on the doc page on the subject: http://mapserver.org/output/imagemaps.html?highlight=imagemap. Does anyone have a new example they can point me to? Thanks in advance. Sincerely, Paul D Pruitt socrtwo at s2services.com (301) 493-4982 (H) (240) 277-6233 (M) (301) 530-2461 (F) S2 Services 9006 Friars Rd. Bethesda, MD 20817 easyleaves.com - easier ways to pick up leaves in the fall. genealogyoflife.com - tree of life in genealogy format godskingsandheroes.info/software - free software lulu.com/s2press - my books planthormones.info - plant hormone theories s2services.com - data recovery freeware list saveofficedata.com - free service for recovering text from Office files socrtwo.info - Gateway site with my links to computer tutorials and artistic portfolio wherehaveibeen.info - world map you can mark to indicate which countries in the world you have visited -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Jul 30 11:12:21 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 30 Jul 2010 13:12:21 -0500 Subject: [mapserver-users] RE: Postgresql join with chart In-Reply-To: References: Message-ID: Can you check your Postgres logs and see what SQL exactly is being passed to the database server? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Strunck, Alexander Sent: Wednesday, July 28, 2010 8:51 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Postgresql join with chart Hello List, i am relativly new to mapfiles and mapserver. I am right now trying to bild an chart layer with my data. if i got only one postgresql table i got pie charts with no problem... LAYER NAME 'Grenzen aller L?nder' GROUP 'baselayer' TYPE CHART INCLUDE "postgis.config" DATA "the_geom from (SELECT c.gid, c.area, ST_Centroid(c.the_geom) AS the_geom FROM basemap AS c ) as foo using unique gid using SRID=4326" STATUS on PROCESSING "CHART_TYPE=PIE" METADATA WMS_TITLE 'Grenzen aller L?nder' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END #METADATA CLASS NAME 'Grenzen aller L?nder' STYLE SIZE [gid] COLOR 0 104 55 # CMYK 100, 25, 90, 0 OUTLINECOLOR 1 1 1 WIDTH 2 END #STYLE END # CLASS CLASS NAME 'Grenzen aller L?nder' STYLE SIZE [area] COLOR 49 163 84 # CMYK 81, 0, 76, 0 OUTLINECOLOR 1 1 1 WIDTH 2 END #STYLE END # CLASS END # Layer if i try to make pie charts with a join, i don?t get a map back. LAYER NAME 'Grenzen aller L?nder' GROUP 'bicc_baselayer' TYPE CHART INCLUDE "postgis.config" DATA "the_geom from (SELECT c.gid, gmi.milps, gmi.milpr, ST_Centroid(c.the_geom) AS the_geom FROM bicc_basemap AS c LEFT JOIN bpb_m3_thema1_2008_2 AS gmi ON c.iso3_code = gmi.iso3_code) as foo using unique gid using SRID=4326" gid using SRID=4326" STATUS on PROCESSING "CHART_TYPE=PIE" METADATA WMS_TITLE 'Grenzen aller L?nder' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END #METADATA CLASS NAME 'Grenzen aller L?nder' STYLE SIZE [milps] COLOR 0 104 55 # CMYK 100, 25, 90, 0 OUTLINECOLOR 1 1 1 WIDTH 2 END #STYLE END # CLASS CLASS NAME 'Grenzen aller L?nder' STYLE SIZE [milpr] COLOR 49 163 84 # CMYK 81, 0, 76, 0 OUTLINECOLOR 1 1 1 WIDTH 2 END #STYLE END # CLASS END # Layer Can anyone help me?!? Thanks Alex ________________________________ -- Internationales Konversionszentrum Bonn Bonn International Center for Conversion (BICC) GmbH Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 Internet: www.bicc.de, E-mail: bicc at bicc.de Firmensitz/ Office: Bonn Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 Gesch?ftsf?hrer/ Director: Peter Johannes Croll Prokurist/ Authorized Signatory: Michael Dedek Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: Staatssekret?r/ Deputy Minister Dr. Michael St?ckradt -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Jul 30 11:24:41 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 30 Jul 2010 15:24:41 -0300 Subject: [mapserver-users] Need Example of HTML ImageMap In-Reply-To: References: Message-ID: <4C5318E9.9060001@gatewaygeomatics.com> Lime, Steve D (DNR) wrote: > I resurrected the example link you referenced. It can be found here: > > > > > http://maps.dnr.state.mn.us/cgi-bin/mapserv56?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true > I updated the document with the new link, thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Bob.Basques at ci.stpaul.mn.us Fri Jul 30 11:26:10 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 30 Jul 2010 13:26:10 -0500 Subject: [mapserver-users] Need Example of HTML ImageMap In-Reply-To: References: Message-ID: <4C52D2F2.163B.00A8.0@ci.stpaul.mn.us> All, Even hough the trend is to use the OL or other interfaces. I feel that there are advantages to using the Imagemaps too. We've put together opmse interesting capabilities via the imagemaps that would not be as easy to implement with the off the shelf tools available. I think it's a good idea to know how the imagemaps work anyway, but that's just me. bobb >>> "Lime, Steve D (DNR)" wrote: I resurrected the example link you referenced. It can be found here: http://maps.dnr.state.mn.us/cgi-bin/mapserv56?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true ( http://maps.dnr.state.mn.us/cgi-bin/mapserv56?map=/usr/local/www/docs_maps/eco/rsg/search/search_example.map&qlayer=county&mode=nquery&searchmap=true ) Combining imagemaps with pan/zoom functions is difficult I think. The example above is similar, conceptually, to your website. However, the trend is to use a tool like OpenLayers to call query services backed by MapServer or GeoServer via AJAX. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul D Pruitt Sent: Friday, July 30, 2010 11:04 AM To: mapserver-users at lists.osgeo.org Cc: david.fawcett at gmail.com Subject: [mapserver-users] Need Example of HTML ImageMap Hi, I'm trying to use Mapserver or GeoServer/OpenLayers to display my maps and their respective image in order to make use of the zooming and possibly other features. On my site users can click on countries or states they have visited and the maps entities are flood filled with color by GD-PHP. The site is here: http://wherehaveibeen.info. I'm trying to find an example of imagemap use on MapServer because the link is dead on the doc page on the subject: http://mapserver.org/output/imagemaps.html?highlight=imagemap ( http://mapserver.org/output/imagemaps.html?highlight=imagemap ). Does anyone have a new example they can point me to? Thanks in advance. Sincerely, Paul D Pruitt socrtwo at s2services.com (301) 493-4982 (H) (240) 277-6233 (M) (301) 530-2461 (F) S2 Services 9006 Friars Rd. Bethesda, MD 20817 easyleaves.com - easier ways to pick up leaves in the fall. genealogyoflife.com - tree of life in genealogy format godskingsandheroes.info/software - free software lulu.com/s2press - my books planthormones.info - plant hormone theories s2services.com - data recovery freeware list saveofficedata.com - free service for recovering text from Office files socrtwo.info - Gateway site with my links to computer tutorials and artistic portfolio wherehaveibeen.info - world map you can mark to indicate which countries in the world you have visited -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at deprem.gov.tr Fri Jul 30 07:43:40 2010 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Fri, 30 Jul 2010 17:43:40 +0300 Subject: [mapserver-users] ogr connection failed In-Reply-To: <2C25AE3D123FF848BFA249A8DE54936E082274D515@MCFE-140-EX001.mc.local> References: <20100723133947.4784FE01D2B@lists.osgeo.org> <2C25AE3D123FF848BFA249A8DE54936E082274D515@MCFE-140-EX001.mc.local> Message-ID: <1280501020.8664.8.camel@sakura.deprem.gov.tr> Hi All, I have installed rpm package of Mapserver 5.6.3 adn I have installed gdal 1.7.2 by using tar.gz file when I attempt to open map file from webpage I faced the following error message msDrawMap(): Image handling error. Failed to draw layer named 'Dhuman'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `Dhuman'. Failed to open datasource `MYSQL:turkey,user=root,password=mysqlpass,host=localhost,port=3306,tables=d_damage m_village'. but when I use terminal for ogrinfo I can connect to database successfully What is wrong could you help me please [murat at sakura cgi-bin]$ ogrinfo "MYSQL:turkey,user=root,password=mysqlpass,host=localhost,port=3306,tables=d_pgadata" INFO: Open of `MYSQL:turkey,user=root,password=mysqlpass,host=localhost,port=3306,tables=d_pgadata' using driver `MySQL' successful. 1: d_pgadata (None) [murat at sakura cgi-bin]$ or [murat at sakura cgi-bin]$ ogrinfo "MySQL:testogr,user=root,password=mysqlpass" INFO: Open of `MySQL:testogr,user=root,password=mysql_123' using driver `MySQL' successful. 1: deniz (Polygon) 2: il_merkezleri (Point) 3: il_sinirlari (Polygon) 4: ilce_merkezleri (Point) 5: ilce_sinirlari (Polygon) 6: iller (Polygon) 7: iller_sil (Polygon) 8: komsular (Polygon) these works fine. ogr also support these formats [murat at sakura cgi-bin]$ ogrinfo --formats Supported Formats: -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) -> "UK .NTF" (readonly) -> "SDTS" (readonly) -> "TIGER" (read/write) -> "S57" (read/write) -> "DGN" (read/write) -> "VRT" (readonly) -> "REC" (readonly) -> "Memory" (read/write) -> "BNA" (read/write) -> "CSV" (read/write) -> "GML" (read/write) -> "GPX" (read/write) -> "KML" (read/write) -> "GeoJSON" (read/write) -> "GMT" (read/write) -> "SQLite" (read/write) -> "ODBC" (read/write) -> "PGeo" (readonly) -> "OGDI" (readonly) -> "MySQL" (read/write) -> "PCIDSK" (readonly) -> "XPlane" (readonly) -> "AVCBin" (readonly) -> "AVCE00" (readonly) -> "DXF" (read/write) -> "Geoconcept" (read/write) -> "GeoRSS" (read/write) -> "GPSTrackMaker" (read/write) -> "VFK" (readonly) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.