From maxphelps at netscape.net Thu Jan 1 08:26:29 2009 From: maxphelps at netscape.net (maxphelps at netscape.net) Date: Thu, 01 Jan 2009 11:26:29 -0500 Subject: [mapserver-users] Map File for Open Street Map symbology Message-ID: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> Anyone have a mapfile with the symbology corresponding to the OSM layers shown on the new MapServer main page?? TIA. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Jan 1 11:28:49 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 01 Jan 2009 11:28:49 -0800 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> Message-ID: <495D1971.5080008@hostgis.com> maxphelps at netscape.net wrote: > Anyone have a mapfile with the symbology corresponding to the OSM layers > shown on the new MapServer main page? TIA. Ooh, that'd be neat. If so, can someone post it to the Symbology Exchange pages of the website's wiki? We do have one "google-style streets" posting up there now. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From donald.kerr at dkerr.co.uk Fri Jan 2 07:57:49 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 2 Jan 2009 15:57:49 -0000 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: Message-ID: <6C6CDBD5048347A58C2590E813DE0EEA@DELL> I have created a number of TrueType symbols most of which are good enough when positioned on the map at their default centre point. There appears to be an issue when these are then rotated using ANGLE. They do not appear to rotate around their centre point which can make them look very odd when placed on the map. Please see attached images one showing without the ANGLE applied and the other with. If the symbol rotated around its centre point then the arrow would simply show pointing the other way (180 degrees). I tried to make a TTF symbol that had the head of the arrow in the centre in the hope that it would rotate on this point. It shows correctly when no ANGLE is applied i.e. the head of the arrow over the point on the map but, when rotated, the error in placement is exaggerated. Here are the CLASS and SYMBOL definitions: CLASS NAME "benchMarkSymbol" EXPRESSION "benchMarkSymbol" STYLE SYMBOL "benchMarkSymbol" SIZE 12 MAXSIZE 12 MINSIZE 4 COLOR 0 0 0 ANTIALIAS TRUE ANGLE [orientation] END # STYLE END # CLASS SYMBOL NAME 'benchMarkSymbol' TYPE TRUETYPE FONT OSMasterMapSymbols FILLED false ANTIALIAS true CHARACTER '7' END # SYMBOL The question is, am I doing something wrong or is this a bug? If the latter, is there a workaround meantime? For me just now, I'd be happy if the symbol rotated around its centre - I could live with that as a workaround. In a previous thread that I started about positioning of LABELs, Thomas Bonfort said, "I'd be in favor of having a way to specify the anchor point, either by fixing it on 0,0 , or by specifying it alongside the symbol, eg ANCHORPOINT 0.3 2". I agree that this would be good for symbols too but it may present a problem with scaled symbols, especially TTF. If it's not a fixed size then how can an anchor point be specified? Many thanks. Regards, Donald Kerr -------------- next part -------------- A non-text attachment was scrubbed... Name: NoANGLE.png Type: image/png Size: 1552 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: WithANGLE.png Type: image/png Size: 1105 bytes Desc: not available URL: From David.Fawcett at state.mn.us Fri Jan 2 08:29:51 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 2 Jan 2009 10:29:51 -0600 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: <6C6CDBD5048347A58C2590E813DE0EEA@DELL> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B1@s-sp22.pca.state.mn.us> Donald, I have seen this same issue using MapServer 5.2.0. I first noticed it when I was doing an attribute binding example, but I can confirm that it also occurs when using a fixed angle. When specifying a fixed angle of 0 or 360, the symbol lands correctly on the point. An angle of 90 sets it off of the point to the left. 180 puts it to the lower left, 270 is lower center, 359 is almost back on center. The more that I look at this, it really looks like it is This related to the proper centering of symbols. My square .ttf character appears to be rotating around the lower left corner of the glyph. When the symbol is placed unrotated, it is correctly centered on the point feature. So, maybe the rotation point needs to be calculated the same way as the placement point. I was quickly trying to pull together a demo, so I abandoned the .ttf approach and used a pixmap symbol of an arrow. I think that it is likely a bug, I should have filed a bug report back then. I will do so now if you aren't interested in doing it. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Friday, January 02, 2009 9:58 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue I have created a number of TrueType symbols most of which are good enough when positioned on the map at their default centre point. There appears to be an issue when these are then rotated using ANGLE. They do not appear to rotate around their centre point which can make them look very odd when placed on the map. Please see attached images one showing without the ANGLE applied and the other with. If the symbol rotated around its centre point then the arrow would simply show pointing the other way (180 degrees). I tried to make a TTF symbol that had the head of the arrow in the centre in the hope that it would rotate on this point. It shows correctly when no ANGLE is applied i.e. the head of the arrow over the point on the map but, when rotated, the error in placement is exaggerated. Here are the CLASS and SYMBOL definitions: CLASS NAME "benchMarkSymbol" EXPRESSION "benchMarkSymbol" STYLE SYMBOL "benchMarkSymbol" SIZE 12 MAXSIZE 12 MINSIZE 4 COLOR 0 0 0 ANTIALIAS TRUE ANGLE [orientation] END # STYLE END # CLASS SYMBOL NAME 'benchMarkSymbol' TYPE TRUETYPE FONT OSMasterMapSymbols FILLED false ANTIALIAS true CHARACTER '7' END # SYMBOL The question is, am I doing something wrong or is this a bug? If the latter, is there a workaround meantime? For me just now, I'd be happy if the symbol rotated around its centre - I could live with that as a workaround. In a previous thread that I started about positioning of LABELs, Thomas Bonfort said, "I'd be in favor of having a way to specify the anchor point, either by fixing it on 0,0 , or by specifying it alongside the symbol, eg ANCHORPOINT 0.3 2". I agree that this would be good for symbols too but it may present a problem with scaled symbols, especially TTF. If it's not a fixed size then how can an anchor point be specified? Many thanks. Regards, Donald Kerr From thomas.bonfort at gmail.com Fri Jan 2 09:02:01 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 2 Jan 2009 18:02:01 +0100 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B1@s-sp22.pca.state.mn.us> References: <6C6CDBD5048347A58C2590E813DE0EEA@DELL> <6246727221874A4FB8D3F9BBC37D9BD5056DA0B1@s-sp22.pca.state.mn.us> Message-ID: ttf rotation is fixed in trunk for agg. the point of rotation is the centre of the symbol. regards, thomas On Fri, Jan 2, 2009 at 17:29, Fawcett, David wrote: > Donald, > > I have seen this same issue using MapServer 5.2.0. I first noticed it > when I was doing an attribute binding example, but I can confirm that it > also occurs when using a fixed angle. > > When specifying a fixed angle of 0 or 360, the symbol lands correctly on > the point. An angle of 90 sets it off of the point to the left. 180 > puts it to the lower left, 270 is lower center, 359 is almost back on > center. > > The more that I look at this, it really looks like it is This related to > the proper centering of symbols. My square .ttf character appears to be > rotating around the lower left corner of the glyph. When the symbol is > placed unrotated, it is correctly centered on the point feature. So, > maybe the rotation point needs to be calculated the same way as the > placement point. > > I was quickly trying to pull together a demo, so I abandoned the .ttf > approach and used a pixmap symbol of an arrow. > > I think that it is likely a bug, I should have filed a bug report back > then. I will do so now if you aren't interested in doing it. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald > Kerr > Sent: Friday, January 02, 2009 9:58 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue > > > I have created a number of TrueType symbols most of which are good > enough when positioned on the map at their default centre point. > > There appears to be an issue when these are then rotated using ANGLE. > They do not appear to rotate around their centre point which can make > them look very odd when placed on the map. > > Please see attached images one showing without the ANGLE applied and the > other with. If the symbol rotated around its centre point then the arrow > would simply show pointing the other way (180 degrees). > > I tried to make a TTF symbol that had the head of the arrow in the > centre in the hope that it would rotate on this point. It shows > correctly when no ANGLE is applied i.e. the head of the arrow over the > point on the map but, when rotated, the error in placement is > exaggerated. > > Here are the CLASS and SYMBOL definitions: > > CLASS > NAME "benchMarkSymbol" > EXPRESSION "benchMarkSymbol" > STYLE > SYMBOL "benchMarkSymbol" > SIZE 12 > MAXSIZE 12 > MINSIZE 4 > COLOR 0 0 0 > ANTIALIAS TRUE > ANGLE [orientation] > END # STYLE > END # CLASS > > SYMBOL > NAME 'benchMarkSymbol' > TYPE TRUETYPE > FONT OSMasterMapSymbols > FILLED false > ANTIALIAS true > CHARACTER '7' > END # SYMBOL > > The question is, am I doing something wrong or is this a bug? If the > latter, is there a workaround meantime? For me just now, I'd be happy if > the symbol rotated around its centre - I could live with that as a > workaround. > > In a previous thread that I started about positioning of LABELs, Thomas > Bonfort said, "I'd be in favor of having a way to specify the anchor > point, either by fixing it on 0,0 , or by specifying it alongside the > symbol, eg ANCHORPOINT 0.3 2". I agree that this would be good for > symbols too but it may present a problem with scaled symbols, especially > TTF. If it's not a fixed size then how can an anchor point be specified? > > Many thanks. > > Regards, > > Donald Kerr > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From donald.kerr at dkerr.co.uk Fri Jan 2 09:41:38 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 2 Jan 2009 17:41:38 -0000 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: Message-ID: <11459F20B0B042179D231C5236AED1DE@DELL> Thomas, > ttf rotation is fixed in trunk for agg. the point of rotation > is the centre of the symbol. That doesn't seem to be the case. If I rotate a TTF symbol then it appears offset as per the images I posted to the group earlier. Regards, Donald From bthoen at gisnet.com Fri Jan 2 10:22:48 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Fri, 02 Jan 2009 11:22:48 -0700 Subject: [mapserver-users] Overriding MapServer Map File Parameters in OpenLayers Message-ID: <495E5B78.80209@gisnet.com> I'm trying to make a map in OpenLayers 2.7 using a MapServer 5.0.3 Map File, and I'm trying to change the Layer color from what's specified in the Map File. In OpenLayers, I have to format the parameter as a key: value pair. So here's what I've tried (without success) in my OL javascript: var baseLayer = new OpenLayers.Layer.MapServer( "USA", "http://206.168.217.244/cgi-bin/mapserv?", { map_imagetype: 'PNG', layer: 'states', map_layer_0_class_0_style_0_color: '255+255+000', map: '/var/www/html/piper/usa.map' }, { singleTile: true }); If I take out this line: map_layer_0_class_0_style_0_color: '255+255+000' the map works fine. The only layer in the map is the US states, and all I want to do is change the color from pale yellow as set in the map file to bright yellow. The relevant part of the map file looks like this: LAYER NAME "states" TYPE POLYGON DATA states CLASS NAME "US States" STYLE OUTLINECOLOR 100 100 100 COLOR 255 255 192 END END PROJECTION "init=epsg:32614" # UTM Zone 14 N WGS84 END STATUS DEFAULT END I think the problem is that I've got the syntax wrong in trying to override the MapServer map file parameter. I've looked at http://mapserver.osgeo.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url but that hasn't helped. So does anyone *here* know how to do this? (I was told on the OpenLayers mailing list to try asking on the MapServer list.) TIA, - Bill Thoen From David.Fawcett at state.mn.us Fri Jan 2 10:31:54 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 2 Jan 2009 12:31:54 -0600 Subject: [mapserver-users] Overriding MapServer Map File Parameters inOpenLayers In-Reply-To: <495E5B78.80209@gisnet.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B4@s-sp22.pca.state.mn.us> Bill, Here is something that I have tested in 5.2 http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/workshop08/runtime_s ub_config.map&mode=map&map.layer[counties].class[0].style[0]=COLOR+178+3 4+34+WIDTH+3 It changes both the color and width of the line feature, just drop the '+WIDTH+3' off of the end. Also, I recommend testing your substitution like this directly in the URL before attempting to pass it from OpenLayers. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bill Thoen Sent: Friday, January 02, 2009 12:23 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Overriding MapServer Map File Parameters inOpenLayers I'm trying to make a map in OpenLayers 2.7 using a MapServer 5.0.3 Map File, and I'm trying to change the Layer color from what's specified in the Map File. In OpenLayers, I have to format the parameter as a key: value pair. So here's what I've tried (without success) in my OL javascript: var baseLayer = new OpenLayers.Layer.MapServer( "USA", "http://206.168.217.244/cgi-bin/mapserv?", { map_imagetype: 'PNG', layer: 'states', map_layer_0_class_0_style_0_color: '255+255+000', map: '/var/www/html/piper/usa.map' }, { singleTile: true }); If I take out this line: map_layer_0_class_0_style_0_color: '255+255+000' the map works fine. The only layer in the map is the US states, and all I want to do is change the color from pale yellow as set in the map file to bright yellow. The relevant part of the map file looks like this: LAYER NAME "states" TYPE POLYGON DATA states CLASS NAME "US States" STYLE OUTLINECOLOR 100 100 100 COLOR 255 255 192 END END PROJECTION "init=epsg:32614" # UTM Zone 14 N WGS84 END STATUS DEFAULT END I think the problem is that I've got the syntax wrong in trying to override the MapServer map file parameter. I've looked at http://mapserver.osgeo.org/cgi/controls.html#changing-map-file-parameter s-via-a-form-or-a-url but that hasn't helped. So does anyone *here* know how to do this? (I was told on the OpenLayers mailing list to try asking on the MapServer list.) TIA, - Bill Thoen _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From drafkind at traversetechnologies.com Fri Jan 2 10:39:06 2009 From: drafkind at traversetechnologies.com (Dave Rafkind) Date: Fri, 02 Jan 2009 13:39:06 -0500 Subject: [mapserver-users] Trouble with mode=tile Message-ID: <495E5F4A.7050205@traversetechnologies.com> Hi list, I'm using the latest ms4w on a windows XP box. When trying to use mapserver's tile mode in a Virtual Earth or Google Maps control, it looks totally wrong (like the wrong projection is being used perhaps?). What is the right way to go about this? Here's mapserver.exe -v: C:\ms4w\Apache\cgi-bin>mapserv -v MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Here's the relevant part of my web page with the map control: map=new VEMap('myMap'); // ... var layerId = "myCustomTileLayer"; var tileSource = "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.map&layers=world&mode=tile&tilemode=ve&tile=%4"; var tileSourceSpec = new VETileSourceSpecification(layerId, tileSource); // ... Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) # google/virtual earth spherical mercator <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> And here's my map file: MAP IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END SHAPEPATH "/src/maps/mapdata" FONTSET "/src/maps/mapdata/fonts.list" IMAGECOLOR 0 0 0 WEB METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.map&" "wms_srs" "EPSG:4326 EPSG:900913" END END PROJECTION "init=epsg:900913" END SYMBOL name "circle" type ellipse filled true POINTS 1 1 END END SYMBOL NAME 'dashed1' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 4 4 END END SYMBOL NAME 'railway' TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 3 STYLE 1 10 1 10 END END LAYER PROJECTION "init=epsg:4326" END NAME world DATA "world/world_adm0.shp" STATUS OFF TYPE LINE LABELITEM "REGION" CLASS STYLE COLOR 255 255 255 OUTLINECOLOR 0 0 0 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 9 ANTIALIAS TRUE PARTIALS FALSE MINDISTANCE 250 BUFFER 4 END END END END From David.Fawcett at state.mn.us Fri Jan 2 11:11:04 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 2 Jan 2009 13:11:04 -0600 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <495E5F4A.7050205@traversetechnologies.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> Dave, I am not sure if this is it, but in your WMS request, you are not specifying a SRS. You are advertising two SRS' in your WEB WMS "wms_srs" metadata. I wonder if MapServer is just defaulting to the first SRS in your list in the absence of an explicit request? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave Rafkind Sent: Friday, January 02, 2009 12:39 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Trouble with mode=tile Hi list, I'm using the latest ms4w on a windows XP box. When trying to use mapserver's tile mode in a Virtual Earth or Google Maps control, it looks totally wrong (like the wrong projection is being used perhaps?). What is the right way to go about this? Here's mapserver.exe -v: C:\ms4w\Apache\cgi-bin>mapserv -v MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Here's the relevant part of my web page with the map control: map=new VEMap('myMap'); // ... var layerId = "myCustomTileLayer"; var tileSource = "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m ap&layers=world&mode=tile&tilemode=ve&tile=%4"; var tileSourceSpec = new VETileSourceSpecification(layerId, tileSource); // ... Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) # google/virtual earth spherical mercator <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> And here's my map file: MAP IMAGETYPE PNG OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END SHAPEPATH "/src/maps/mapdata" FONTSET "/src/maps/mapdata/fonts.list" IMAGECOLOR 0 0 0 WEB METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m ap&" "wms_srs" "EPSG:4326 EPSG:900913" END END PROJECTION "init=epsg:900913" END SYMBOL name "circle" type ellipse filled true POINTS 1 1 END END SYMBOL NAME 'dashed1' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 4 4 END END SYMBOL NAME 'railway' TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 3 STYLE 1 10 1 10 END END LAYER PROJECTION "init=epsg:4326" END NAME world DATA "world/world_adm0.shp" STATUS OFF TYPE LINE LABELITEM "REGION" CLASS STYLE COLOR 255 255 255 OUTLINECOLOR 0 0 0 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 9 ANTIALIAS TRUE PARTIALS FALSE MINDISTANCE 250 BUFFER 4 END END END END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bthoen at gisnet.com Fri Jan 2 11:40:01 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Fri, 02 Jan 2009 12:40:01 -0700 Subject: [mapserver-users] Overriding MapServer Map File Parameters inOpenLayers In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B4@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B4@s-sp22.pca.state.mn.us> Message-ID: <495E6D91.1010209@gisnet.com> Thanks David! You gave me the hint I needed. If I leave out the '+' characters and use spaces instead then this works: var baseLayer = new OpenLayers.Layer.MapServer( "USA", "http://206.168.217.244/cgi-bin/mapserv?", { 'map_imagetype': 'PNG', layer: 'states', "map.layer[states].class[0].style[0]": "COLOR 255 255 0", map: '/var/www/html/piper/usa.map' }, { singleTile: true }); However, if you're doing this via URL, you have to substitute '+' for spaces. - Bill Thoen Fawcett, David wrote: > Bill, > > Here is something that I have tested in 5.2 > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/workshop08/runtime_s > ub_config.map&mode=map&map.layer[counties].class[0].style[0]=COLOR+178+3 > 4+34+WIDTH+3 > > It changes both the color and width of the line feature, just drop the > '+WIDTH+3' off of the end. > > Also, I recommend testing your substitution like this directly in the > URL before attempting to pass it from OpenLayers. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bill Thoen > Sent: Friday, January 02, 2009 12:23 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Overriding MapServer Map File Parameters > inOpenLayers > > > I'm trying to make a map in OpenLayers 2.7 using a MapServer 5.0.3 Map > File, and I'm trying to change the Layer color from what's specified in > the Map File. In OpenLayers, I have to format the parameter as a key: > value pair. So here's what I've tried (without success) in my OL > javascript: > > var baseLayer = new OpenLayers.Layer.MapServer( "USA", > "http://206.168.217.244/cgi-bin/mapserv?", > { > map_imagetype: 'PNG', > layer: 'states', > map_layer_0_class_0_style_0_color: '255+255+000', > map: '/var/www/html/piper/usa.map' > }, { singleTile: true }); > > If I take out this line: > map_layer_0_class_0_style_0_color: '255+255+000' > the map works fine. The only layer in the map is the US states, and all > I want to do is change the color from pale yellow as set in the map file > > to bright yellow. > > The relevant part of the map file looks like this: > LAYER > NAME "states" > TYPE POLYGON > DATA states > CLASS > NAME "US States" > STYLE > OUTLINECOLOR 100 100 100 > COLOR 255 255 192 > END > END > PROJECTION > "init=epsg:32614" # UTM Zone 14 N WGS84 > END > STATUS DEFAULT > END > > I think the problem is that I've got the syntax wrong in trying to > override the MapServer map file parameter. I've looked at > http://mapserver.osgeo.org/cgi/controls.html#changing-map-file-parameter > s-via-a-form-or-a-url > but that hasn't helped. So does anyone *here* know how to do this? (I > was told on the OpenLayers mailing list to try asking on the MapServer > list.) > > TIA, > - Bill Thoen > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From drafkind at traversetechnologies.com Fri Jan 2 12:06:09 2009 From: drafkind at traversetechnologies.com (Dave Rafkind) Date: Fri, 02 Jan 2009 15:06:09 -0500 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> Message-ID: <495E73B1.8000006@traversetechnologies.com> Thanks for the suggestions, but I don't think that's quite it: 1 - removing "epsg:4326" from the wms_srs part of the mapfile didn't fix it 2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" string didn't fix it Is there anything else I can try? Fawcett, David wrote: > Dave, > > I am not sure if this is it, but in your WMS request, you are not > specifying a SRS. You are advertising two SRS' in your WEB WMS > "wms_srs" metadata. I wonder if MapServer is just defaulting to the > first SRS in your list in the absence of an explicit request? > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave > Rafkind > Sent: Friday, January 02, 2009 12:39 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Trouble with mode=tile > > > Hi list, I'm using the latest ms4w on a windows XP box. When trying to > use mapserver's tile mode in a Virtual Earth or Google Maps control, it > looks totally wrong (like the wrong projection is being used > perhaps?). What is the right way to go about this? > > Here's mapserver.exe -v: > > C:\ms4w\Apache\cgi-bin>mapserv -v > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICO > NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUP > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > Here's the relevant part of my web page with the map control: > map=new VEMap('myMap'); > // ... > var layerId = "myCustomTileLayer"; > var tileSource = > "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m > ap&layers=world&mode=tile&tilemode=ve&tile=%4"; > var tileSourceSpec = new VETileSourceSpecification(layerId, > tileSource); > // ... > > Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) > # google/virtual earth spherical mercator > <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 > > +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> > > > And here's my map file: > MAP > IMAGETYPE PNG > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > TRANSPARENT ON > END > > SHAPEPATH "/src/maps/mapdata" > FONTSET "/src/maps/mapdata/fonts.list" > IMAGECOLOR 0 0 0 > > > WEB > METADATA > "wms_title" "WMS Demo Server" > "wms_onlineresource" > "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m > ap&" > "wms_srs" "EPSG:4326 EPSG:900913" > END > END > > > PROJECTION > "init=epsg:900913" > END > > SYMBOL > name "circle" > type ellipse > filled true > POINTS 1 1 END > END > > SYMBOL > NAME 'dashed1' > TYPE ELLIPSE > POINTS 1 1 END > FILLED true > STYLE 4 4 END > END > > SYMBOL > NAME 'railway' > TYPE cartoline > LINECAP butt > LINEJOIN miter > LINEJOINMAXSIZE 3 > STYLE > 1 10 1 10 > END > END > > LAYER > PROJECTION > "init=epsg:4326" > END > NAME world > DATA "world/world_adm0.shp" > STATUS OFF > TYPE LINE > LABELITEM "REGION" > CLASS > STYLE > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > END > LABEL > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT arial > SIZE 9 > ANTIALIAS TRUE > PARTIALS FALSE > MINDISTANCE 250 > BUFFER 4 > END > END > END > END > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at cleverelephant.ca Fri Jan 2 12:59:12 2009 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 2 Jan 2009 12:59:12 -0800 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <495E73B1.8000006@traversetechnologies.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> Message-ID: <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> Dave, - Remove the PROJECTION block from the MAP level (leave the one at the LAYER level). Tile mode constructs its own output projection object, it doesn't need map file configuration for the output projection, just the inputs. - Confirm that the shape file you are using *is* in fact epsg:4326 - Try manually accessing the service using tile=0 or tile=1, and see what comes back - Show some pictures of "wrong" in your next mail P. On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind wrote: > Thanks for the suggestions, but I don't think that's quite it: > > 1 - removing "epsg:4326" from the wms_srs part of the mapfile didn't fix it > 2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" string > didn't fix it > > Is there anything else I can try? > > > Fawcett, David wrote: >> >> Dave, >> I am not sure if this is it, but in your WMS request, you are not >> specifying a SRS. You are advertising two SRS' in your WEB WMS >> "wms_srs" metadata. I wonder if MapServer is just defaulting to the >> first SRS in your list in the absence of an explicit request? >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave >> Rafkind >> Sent: Friday, January 02, 2009 12:39 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Trouble with mode=tile >> >> >> Hi list, I'm using the latest ms4w on a windows XP box. When trying to use >> mapserver's tile mode in a Virtual Earth or Google Maps control, it >> looks totally wrong (like the wrong projection is being used perhaps?). >> What is the right way to go about this? >> >> Here's mapserver.exe -v: >> >> C:\ms4w\Apache\cgi-bin>mapserv -v >> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF >> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=ICO >> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER >> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >> SUPPORTS=FASTCGI SUP >> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS >> INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> Here's the relevant part of my web page with the map control: >> map=new VEMap('myMap'); >> // ... >> var layerId = "myCustomTileLayer"; >> var tileSource = >> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >> ap&layers=world&mode=tile&tilemode=ve&tile=%4"; >> var tileSourceSpec = new VETileSourceSpecification(layerId, >> tileSource); >> // ... >> >> Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) >> # google/virtual earth spherical mercator >> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 >> >> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> >> >> >> And here's my map file: >> MAP >> IMAGETYPE PNG >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> EXTENSION "png" >> TRANSPARENT ON >> END >> >> SHAPEPATH "/src/maps/mapdata" >> FONTSET "/src/maps/mapdata/fonts.list" >> IMAGECOLOR 0 0 0 >> >> WEB >> METADATA >> "wms_title" "WMS Demo Server" >> "wms_onlineresource" >> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >> ap&" >> "wms_srs" "EPSG:4326 EPSG:900913" >> END >> END >> >> PROJECTION >> "init=epsg:900913" >> END >> >> SYMBOL >> name "circle" >> type ellipse >> filled true >> POINTS 1 1 END >> END >> >> SYMBOL >> NAME 'dashed1' >> TYPE ELLIPSE >> POINTS 1 1 END >> FILLED true >> STYLE 4 4 END >> END >> >> SYMBOL >> NAME 'railway' >> TYPE cartoline >> LINECAP butt >> LINEJOIN miter >> LINEJOINMAXSIZE 3 >> STYLE >> 1 10 1 10 >> END >> END >> >> LAYER >> PROJECTION >> "init=epsg:4326" >> END >> NAME world >> DATA "world/world_adm0.shp" >> STATUS OFF >> TYPE LINE >> LABELITEM "REGION" >> CLASS >> STYLE >> COLOR 255 255 255 >> OUTLINECOLOR 0 0 0 >> END >> LABEL >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> TYPE TRUETYPE >> FONT arial >> SIZE 9 >> ANTIALIAS TRUE >> PARTIALS FALSE >> MINDISTANCE 250 >> BUFFER 4 >> END >> END >> END >> END >> >> >> _______________________________________________ >> 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 drafkind at traversetechnologies.com Fri Jan 2 13:12:18 2009 From: drafkind at traversetechnologies.com (Dave Rafkind) Date: Fri, 02 Jan 2009 16:12:18 -0500 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> Message-ID: <495E8332.3050301@traversetechnologies.com> Hi, thanks for your reply. Results follow: I can't remove the PROJECTION block, otherwise I get this error from mapserver: msTileSetProjectionst(): WMS server error. Cannot set new SRS on a map that doesn't have any projection set. Please make sure your mapfile has a PROJECTION defined at the top level. QGis thinks this is the spatial information for my test shapefile, this is 4326 (basically unprojected), right? +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs If I have the PROJECTION block in the mapfile, I can indeed see tiles of some kind, but it looks like each tile overlaps in its spatial extent. See attached for "wrong" results..I changed some of the colors so it would be more obvious. Paul Ramsey wrote: > Dave, > > - Remove the PROJECTION block from the MAP level (leave the one at the > LAYER level). Tile mode constructs its own output projection object, > it doesn't need map file configuration for the output projection, just > the inputs. > - Confirm that the shape file you are using *is* in fact epsg:4326 > - Try manually accessing the service using tile=0 or tile=1, and see > what comes back > - Show some pictures of "wrong" in your next mail > > P. > > On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind > wrote: > >> Thanks for the suggestions, but I don't think that's quite it: >> >> 1 - removing "epsg:4326" from the wms_srs part of the mapfile didn't fix it >> 2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" string >> didn't fix it >> >> Is there anything else I can try? >> >> >> Fawcett, David wrote: >> >>> Dave, >>> I am not sure if this is it, but in your WMS request, you are not >>> specifying a SRS. You are advertising two SRS' in your WEB WMS >>> "wms_srs" metadata. I wonder if MapServer is just defaulting to the >>> first SRS in your list in the absence of an explicit request? >>> David. >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave >>> Rafkind >>> Sent: Friday, January 02, 2009 12:39 PM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Trouble with mode=tile >>> >>> >>> Hi list, I'm using the latest ms4w on a windows XP box. When trying to use >>> mapserver's tile mode in a Virtual Earth or Google Maps control, it >>> looks totally wrong (like the wrong projection is being used perhaps?). >>> What is the right way to go about this? >>> >>> Here's mapserver.exe -v: >>> >>> C:\ms4w\Apache\cgi-bin>mapserv -v >>> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> OUTPUT=PDF >>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>> SUPPORTS=ICO >>> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>> SUPPORTS=WFS_SERVER >>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>> SUPPORTS=FASTCGI SUP >>> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS >>> INPUT=OGR >>> INPUT=GDAL INPUT=SHAPEFILE >>> >>> Here's the relevant part of my web page with the map control: >>> map=new VEMap('myMap'); >>> // ... >>> var layerId = "myCustomTileLayer"; >>> var tileSource = >>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>> ap&layers=world&mode=tile&tilemode=ve&tile=%4"; >>> var tileSourceSpec = new VETileSourceSpecification(layerId, >>> tileSource); >>> // ... >>> >>> Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) >>> # google/virtual earth spherical mercator >>> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 >>> >>> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> >>> >>> >>> And here's my map file: >>> MAP >>> IMAGETYPE PNG >>> OUTPUTFORMAT >>> NAME png >>> DRIVER "GD/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE RGBA >>> EXTENSION "png" >>> TRANSPARENT ON >>> END >>> >>> SHAPEPATH "/src/maps/mapdata" >>> FONTSET "/src/maps/mapdata/fonts.list" >>> IMAGECOLOR 0 0 0 >>> >>> WEB >>> METADATA >>> "wms_title" "WMS Demo Server" >>> "wms_onlineresource" >>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>> ap&" >>> "wms_srs" "EPSG:4326 EPSG:900913" >>> END >>> END >>> >>> PROJECTION >>> "init=epsg:900913" >>> END >>> >>> SYMBOL >>> name "circle" >>> type ellipse >>> filled true >>> POINTS 1 1 END >>> END >>> >>> SYMBOL >>> NAME 'dashed1' >>> TYPE ELLIPSE >>> POINTS 1 1 END >>> FILLED true >>> STYLE 4 4 END >>> END >>> >>> SYMBOL >>> NAME 'railway' >>> TYPE cartoline >>> LINECAP butt >>> LINEJOIN miter >>> LINEJOINMAXSIZE 3 >>> STYLE >>> 1 10 1 10 >>> END >>> END >>> >>> LAYER >>> PROJECTION >>> "init=epsg:4326" >>> END >>> NAME world >>> DATA "world/world_adm0.shp" >>> STATUS OFF >>> TYPE LINE >>> LABELITEM "REGION" >>> CLASS >>> STYLE >>> COLOR 255 255 255 >>> OUTLINECOLOR 0 0 0 >>> END >>> LABEL >>> COLOR 0 0 0 >>> OUTLINECOLOR 255 255 255 >>> TYPE TRUETYPE >>> FONT arial >>> SIZE 9 >>> ANTIALIAS TRUE >>> PARTIALS FALSE >>> MINDISTANCE 250 >>> BUFFER 4 >>> END >>> END >>> END >>> END >>> >>> >>> _______________________________________________ >>> 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 drafkind at traversetechnologies.com Fri Jan 2 13:20:28 2009 From: drafkind at traversetechnologies.com (Dave Rafkind) Date: Fri, 02 Jan 2009 16:20:28 -0500 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <495E8332.3050301@traversetechnologies.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> <495E8332.3050301@traversetechnologies.com> Message-ID: <495E851C.4070306@traversetechnologies.com> Ahh, image hosted here: http://farm4.static.flickr.com/3115/3161140430_b1577f81bf_o.jpg Dave Rafkind wrote: > Hi, thanks for your reply. Results follow: > > I can't remove the PROJECTION block, otherwise I get this error from > mapserver: > msTileSetProjectionst(): WMS server error. Cannot set new SRS on a map > that doesn't have any projection set. Please make sure your mapfile > has a PROJECTION defined at the top level. > > QGis thinks this is the spatial information for my test shapefile, > this is 4326 (basically unprojected), right? > +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs > > If I have the PROJECTION block in the mapfile, I can indeed see tiles > of some kind, but it looks like each tile overlaps in its spatial extent. > > See attached for "wrong" results..I changed some of the colors so it > would be more obvious. > > > > > Paul Ramsey wrote: >> Dave, >> >> - Remove the PROJECTION block from the MAP level (leave the one at the >> LAYER level). Tile mode constructs its own output projection object, >> it doesn't need map file configuration for the output projection, just >> the inputs. >> - Confirm that the shape file you are using *is* in fact epsg:4326 >> - Try manually accessing the service using tile=0 or tile=1, and see >> what comes back >> - Show some pictures of "wrong" in your next mail >> >> P. >> >> On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind >> wrote: >> >>> Thanks for the suggestions, but I don't think that's quite it: >>> >>> 1 - removing "epsg:4326" from the wms_srs part of the mapfile didn't >>> fix it >>> 2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" string >>> didn't fix it >>> >>> Is there anything else I can try? >>> >>> >>> Fawcett, David wrote: >>> >>>> Dave, >>>> I am not sure if this is it, but in your WMS request, you are not >>>> specifying a SRS. You are advertising two SRS' in your WEB WMS >>>> "wms_srs" metadata. I wonder if MapServer is just defaulting to the >>>> first SRS in your list in the absence of an explicit request? >>>> David. >>>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave >>>> Rafkind >>>> Sent: Friday, January 02, 2009 12:39 PM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] Trouble with mode=tile >>>> >>>> >>>> Hi list, I'm using the latest ms4w on a windows XP box. When trying >>>> to use >>>> mapserver's tile mode in a Virtual Earth or Google Maps control, it >>>> looks totally wrong (like the wrong projection is being used >>>> perhaps?). >>>> What is the right way to go about this? >>>> >>>> Here's mapserver.exe -v: >>>> >>>> C:\ms4w\Apache\cgi-bin>mapserv -v >>>> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>> OUTPUT=PDF >>>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>>> SUPPORTS=ICO >>>> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>> SUPPORTS=WFS_SERVER >>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>> SUPPORTS=FASTCGI SUP >>>> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS >>>> INPUT=OGR >>>> INPUT=GDAL INPUT=SHAPEFILE >>>> >>>> Here's the relevant part of my web page with the map control: >>>> map=new VEMap('myMap'); >>>> // ... >>>> var layerId = "myCustomTileLayer"; >>>> var tileSource = >>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>> >>>> ap&layers=world&mode=tile&tilemode=ve&tile=%4"; >>>> var tileSourceSpec = new VETileSourceSpecification(layerId, >>>> tileSource); >>>> // ... >>>> >>>> Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) >>>> # google/virtual earth spherical mercator >>>> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 >>>> +lon_0=0.0 >>>> >>>> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> >>>> >>>> >>>> And here's my map file: >>>> MAP >>>> IMAGETYPE PNG >>>> OUTPUTFORMAT >>>> NAME png >>>> DRIVER "GD/PNG" >>>> MIMETYPE "image/png" >>>> IMAGEMODE RGBA >>>> EXTENSION "png" >>>> TRANSPARENT ON >>>> END >>>> >>>> SHAPEPATH "/src/maps/mapdata" >>>> FONTSET "/src/maps/mapdata/fonts.list" >>>> IMAGECOLOR 0 0 0 >>>> >>>> WEB >>>> METADATA >>>> "wms_title" "WMS Demo Server" >>>> "wms_onlineresource" >>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>> >>>> ap&" >>>> "wms_srs" "EPSG:4326 EPSG:900913" >>>> END >>>> END >>>> >>>> PROJECTION >>>> "init=epsg:900913" >>>> END >>>> >>>> SYMBOL >>>> name "circle" >>>> type ellipse >>>> filled true >>>> POINTS 1 1 END >>>> END >>>> >>>> SYMBOL >>>> NAME 'dashed1' >>>> TYPE ELLIPSE >>>> POINTS 1 1 END >>>> FILLED true >>>> STYLE 4 4 END >>>> END >>>> >>>> SYMBOL >>>> NAME 'railway' >>>> TYPE cartoline >>>> LINECAP butt >>>> LINEJOIN miter >>>> LINEJOINMAXSIZE 3 >>>> STYLE >>>> 1 10 1 10 >>>> END >>>> END >>>> >>>> LAYER >>>> PROJECTION >>>> "init=epsg:4326" >>>> END >>>> NAME world >>>> DATA "world/world_adm0.shp" >>>> STATUS OFF >>>> TYPE LINE >>>> LABELITEM "REGION" >>>> CLASS >>>> STYLE >>>> COLOR 255 255 255 >>>> OUTLINECOLOR 0 0 0 >>>> END >>>> LABEL >>>> COLOR 0 0 0 >>>> OUTLINECOLOR 255 255 255 >>>> TYPE TRUETYPE >>>> FONT arial >>>> SIZE 9 >>>> ANTIALIAS TRUE >>>> PARTIALS FALSE >>>> MINDISTANCE 250 >>>> BUFFER 4 >>>> END >>>> END >>>> END >>>> END >>>> >>>> >>>> _______________________________________________ >>>> 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 crschmidt at metacarta.com Fri Jan 2 13:26:20 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 2 Jan 2009 16:26:20 -0500 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <495E851C.4070306@traversetechnologies.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> <495E8332.3050301@traversetechnologies.com> <495E851C.4070306@traversetechnologies.com> Message-ID: <20090102212620.GL25566@metacarta.com> On Fri, Jan 02, 2009 at 04:20:28PM -0500, Dave Rafkind wrote: > Ahh, image hosted here: > > http://farm4.static.flickr.com/3115/3161140430_b1577f81bf_o.jpg Take one of the broken tiles, and find the URL from it. Share that URL with us, along with the result from it. (Alternatively/preferably, you might want to publish the page you took a screenshot of, but I assume that since it's running on localhost, that' shard.) > Dave Rafkind wrote: > >Hi, thanks for your reply. Results follow: > > > >I can't remove the PROJECTION block, otherwise I get this error from > >mapserver: > >msTileSetProjectionst(): WMS server error. Cannot set new SRS on a map > >that doesn't have any projection set. Please make sure your mapfile > >has a PROJECTION defined at the top level. > > > >QGis thinks this is the spatial information for my test shapefile, > >this is 4326 (basically unprojected), right? > >+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs > > > >If I have the PROJECTION block in the mapfile, I can indeed see tiles > >of some kind, but it looks like each tile overlaps in its spatial extent. > > > >See attached for "wrong" results..I changed some of the colors so it > >would be more obvious. > > > > > > > > > >Paul Ramsey wrote: > >>Dave, > >> > >>- Remove the PROJECTION block from the MAP level (leave the one at the > >>LAYER level). Tile mode constructs its own output projection object, > >>it doesn't need map file configuration for the output projection, just > >>the inputs. > >>- Confirm that the shape file you are using *is* in fact epsg:4326 > >>- Try manually accessing the service using tile=0 or tile=1, and see > >>what comes back > >>- Show some pictures of "wrong" in your next mail > >> > >>P. > >> > >>On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind > >> wrote: > >> > >>>Thanks for the suggestions, but I don't think that's quite it: > >>> > >>>1 - removing "epsg:4326" from the wms_srs part of the mapfile didn't > >>>fix it > >>>2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" string > >>>didn't fix it > >>> > >>>Is there anything else I can try? > >>> > >>> > >>>Fawcett, David wrote: > >>> > >>>>Dave, > >>>>I am not sure if this is it, but in your WMS request, you are not > >>>>specifying a SRS. You are advertising two SRS' in your WEB WMS > >>>>"wms_srs" metadata. I wonder if MapServer is just defaulting to the > >>>>first SRS in your list in the absence of an explicit request? > >>>>David. > >>>> > >>>>-----Original Message----- > >>>>From: mapserver-users-bounces at lists.osgeo.org > >>>>[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave > >>>>Rafkind > >>>>Sent: Friday, January 02, 2009 12:39 PM > >>>>To: mapserver-users at lists.osgeo.org > >>>>Subject: [mapserver-users] Trouble with mode=tile > >>>> > >>>> > >>>>Hi list, I'm using the latest ms4w on a windows XP box. When trying > >>>>to use > >>>>mapserver's tile mode in a Virtual Earth or Google Maps control, it > >>>>looks totally wrong (like the wrong projection is being used > >>>>perhaps?). > >>>>What is the right way to go about this? > >>>> > >>>>Here's mapserver.exe -v: > >>>> > >>>>C:\ms4w\Apache\cgi-bin>mapserv -v > >>>>MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > >>>>OUTPUT=PDF > >>>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > >>>>SUPPORTS=ICO > >>>>NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > >>>>SUPPORTS=WFS_SERVER > >>>>SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > >>>>SUPPORTS=FASTCGI SUP > >>>>PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > >>>>INPUT=OGR > >>>> INPUT=GDAL INPUT=SHAPEFILE > >>>> > >>>>Here's the relevant part of my web page with the map control: > >>>> map=new VEMap('myMap'); > >>>> // ... > >>>> var layerId = "myCustomTileLayer"; > >>>> var tileSource = > >>>>"http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m > >>>> > >>>>ap&layers=world&mode=tile&tilemode=ve&tile=%4"; > >>>> var tileSourceSpec = new VETileSourceSpecification(layerId, > >>>>tileSource); > >>>> // ... > >>>> > >>>>Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) > >>>> # google/virtual earth spherical mercator > >>>> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 > >>>>+lon_0=0.0 > >>>> > >>>>+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> > >>>> > >>>> > >>>>And here's my map file: > >>>>MAP > >>>> IMAGETYPE PNG > >>>> OUTPUTFORMAT > >>>> NAME png > >>>> DRIVER "GD/PNG" > >>>> MIMETYPE "image/png" > >>>> IMAGEMODE RGBA > >>>> EXTENSION "png" > >>>> TRANSPARENT ON > >>>> END > >>>> > >>>> SHAPEPATH "/src/maps/mapdata" > >>>> FONTSET "/src/maps/mapdata/fonts.list" > >>>> IMAGECOLOR 0 0 0 > >>>> > >>>> WEB > >>>> METADATA > >>>> "wms_title" "WMS Demo Server" > >>>> "wms_onlineresource" > >>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m > >>>> > >>>>ap&" > >>>> "wms_srs" "EPSG:4326 EPSG:900913" > >>>> END > >>>>END > >>>> > >>>> PROJECTION > >>>> "init=epsg:900913" > >>>> END > >>>> > >>>> SYMBOL > >>>> name "circle" > >>>> type ellipse > >>>> filled true > >>>> POINTS 1 1 END > >>>> END > >>>> > >>>> SYMBOL > >>>> NAME 'dashed1' > >>>> TYPE ELLIPSE > >>>> POINTS 1 1 END > >>>> FILLED true > >>>> STYLE 4 4 END > >>>> END > >>>> > >>>> SYMBOL > >>>> NAME 'railway' > >>>> TYPE cartoline > >>>> LINECAP butt > >>>> LINEJOIN miter > >>>> LINEJOINMAXSIZE 3 > >>>> STYLE > >>>> 1 10 1 10 > >>>> END > >>>> END > >>>> > >>>> LAYER > >>>> PROJECTION > >>>> "init=epsg:4326" > >>>> END > >>>> NAME world > >>>> DATA "world/world_adm0.shp" > >>>> STATUS OFF > >>>> TYPE LINE > >>>> LABELITEM "REGION" > >>>> CLASS > >>>> STYLE > >>>> COLOR 255 255 255 > >>>> OUTLINECOLOR 0 0 0 > >>>> END > >>>> LABEL > >>>> COLOR 0 0 0 > >>>> OUTLINECOLOR 255 255 255 > >>>> TYPE TRUETYPE > >>>> FONT arial > >>>> SIZE 9 > >>>> ANTIALIAS TRUE > >>>> PARTIALS FALSE > >>>> MINDISTANCE 250 > >>>> BUFFER 4 > >>>> END > >>>> END > >>>> END > >>>>END > >>>> > >>>> > >>>>_______________________________________________ > >>>>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 -- Christopher Schmidt MetaCarta From drafkind at traversetechnologies.com Fri Jan 2 13:47:08 2009 From: drafkind at traversetechnologies.com (Dave Rafkind) Date: Fri, 02 Jan 2009 16:47:08 -0500 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <20090102212620.GL25566@metacarta.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> <495E8332.3050301@traversetechnologies.com> <495E851C.4070306@traversetechnologies.com> <20090102212620.GL25566@metacarta.com> Message-ID: <495E8B5C.9060505@traversetechnologies.com> Christopher Schmidt wrote: > On Fri, Jan 02, 2009 at 04:20:28PM -0500, Dave Rafkind wrote: > >> Ahh, image hosted here: >> >> http://farm4.static.flickr.com/3115/3161140430_b1577f81bf_o.jpg >> > > > Take one of the broken tiles, and find the URL from it. Share that URL > with us, along with the result from it. (Alternatively/preferably, you > might want to publish the page you took a screenshot of, but I assume > that since it's running on localhost, that' shard.) Well I can't easily share my local stuff with the outside world. However, here's some example tile URLs and the tiles that they created: URL: http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.map&layers=world&mode=tile&tilemode=ve&tile=0210 IMAGE: http://farm4.static.flickr.com/3097/3161216778_a8cd05f329_o.png URL: http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.map&layers=world&mode=tile&tilemode=ve&tile=0211 IMAGE: http://farm4.static.flickr.com/3107/3161216828_50d69b31ab_o.png URL: http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.map&layers=world&mode=tile&tilemode=ve&tile=0212 IMAGE: http://farm4.static.flickr.com/3258/3161216844_0642bca3cb_o.png URL: http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.map&layers=world&mode=tile&tilemode=ve&tile=0213 IMAGE: http://farm4.static.flickr.com/3089/3160382205_4a0d51324c_o.png From pramsey at cleverelephant.ca Fri Jan 2 14:36:34 2009 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 2 Jan 2009 14:36:34 -0800 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <495E8332.3050301@traversetechnologies.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> <495E8332.3050301@traversetechnologies.com> Message-ID: <30fe546d0901021436p4a61f1bv74942a0bb69167cb@mail.gmail.com> QGIS doesn't know anything about the SRS of your shape file. If you share your Shape file and Map file, then we can either reproduce your bug or confirm you are doing something wrong and tell you what that something is. Paul On Fri, Jan 2, 2009 at 1:12 PM, Dave Rafkind wrote: > Hi, thanks for your reply. Results follow: > > I can't remove the PROJECTION block, otherwise I get this error from > mapserver: > msTileSetProjectionst(): WMS server error. Cannot set new SRS on a map that > doesn't have any projection set. Please make sure your mapfile has a > PROJECTION defined at the top level. > > QGis thinks this is the spatial information for my test shapefile, this is > 4326 (basically unprojected), right? > +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs > > If I have the PROJECTION block in the mapfile, I can indeed see tiles of > some kind, but it looks like each tile overlaps in its spatial extent. > > See attached for "wrong" results..I changed some of the colors so it would > be more obvious. > > > > > Paul Ramsey wrote: >> >> Dave, >> >> - Remove the PROJECTION block from the MAP level (leave the one at the >> LAYER level). Tile mode constructs its own output projection object, >> it doesn't need map file configuration for the output projection, just >> the inputs. >> - Confirm that the shape file you are using *is* in fact epsg:4326 >> - Try manually accessing the service using tile=0 or tile=1, and see >> what comes back >> - Show some pictures of "wrong" in your next mail >> >> P. >> >> On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind >> wrote: >> >>> >>> Thanks for the suggestions, but I don't think that's quite it: >>> >>> 1 - removing "epsg:4326" from the wms_srs part of the mapfile didn't fix >>> it >>> 2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" string >>> didn't fix it >>> >>> Is there anything else I can try? >>> >>> >>> Fawcett, David wrote: >>> >>>> >>>> Dave, >>>> I am not sure if this is it, but in your WMS request, you are not >>>> specifying a SRS. You are advertising two SRS' in your WEB WMS >>>> "wms_srs" metadata. I wonder if MapServer is just defaulting to the >>>> first SRS in your list in the absence of an explicit request? >>>> David. >>>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave >>>> Rafkind >>>> Sent: Friday, January 02, 2009 12:39 PM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] Trouble with mode=tile >>>> >>>> >>>> Hi list, I'm using the latest ms4w on a windows XP box. When trying to >>>> use >>>> mapserver's tile mode in a Virtual Earth or Google Maps control, it >>>> looks totally wrong (like the wrong projection is being used perhaps?). >>>> What is the right way to go about this? >>>> >>>> Here's mapserver.exe -v: >>>> >>>> C:\ms4w\Apache\cgi-bin>mapserv -v >>>> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>> OUTPUT=PDF >>>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>>> SUPPORTS=ICO >>>> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>> SUPPORTS=WFS_SERVER >>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>> SUPPORTS=FASTCGI SUP >>>> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS >>>> INPUT=OGR >>>> INPUT=GDAL INPUT=SHAPEFILE >>>> >>>> Here's the relevant part of my web page with the map control: >>>> map=new VEMap('myMap'); >>>> // ... >>>> var layerId = "myCustomTileLayer"; >>>> var tileSource = >>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>> ap&layers=world&mode=tile&tilemode=ve&tile=%4"; >>>> var tileSourceSpec = new VETileSourceSpecification(layerId, >>>> tileSource); >>>> // ... >>>> >>>> Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) >>>> # google/virtual earth spherical mercator >>>> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 >>>> >>>> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> >>>> >>>> >>>> And here's my map file: >>>> MAP >>>> IMAGETYPE PNG >>>> OUTPUTFORMAT >>>> NAME png >>>> DRIVER "GD/PNG" >>>> MIMETYPE "image/png" >>>> IMAGEMODE RGBA >>>> EXTENSION "png" >>>> TRANSPARENT ON >>>> END >>>> >>>> SHAPEPATH "/src/maps/mapdata" >>>> FONTSET "/src/maps/mapdata/fonts.list" >>>> IMAGECOLOR 0 0 0 >>>> >>>> WEB >>>> METADATA >>>> "wms_title" "WMS Demo Server" >>>> "wms_onlineresource" >>>> >>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>> ap&" >>>> "wms_srs" "EPSG:4326 EPSG:900913" >>>> END >>>> END >>>> >>>> PROJECTION >>>> "init=epsg:900913" >>>> END >>>> >>>> SYMBOL >>>> name "circle" >>>> type ellipse >>>> filled true >>>> POINTS 1 1 END >>>> END >>>> >>>> SYMBOL >>>> NAME 'dashed1' >>>> TYPE ELLIPSE >>>> POINTS 1 1 END >>>> FILLED true >>>> STYLE 4 4 END >>>> END >>>> >>>> SYMBOL >>>> NAME 'railway' >>>> TYPE cartoline >>>> LINECAP butt >>>> LINEJOIN miter >>>> LINEJOINMAXSIZE 3 >>>> STYLE >>>> 1 10 1 10 >>>> END >>>> END >>>> >>>> LAYER >>>> PROJECTION >>>> "init=epsg:4326" >>>> END >>>> NAME world >>>> DATA "world/world_adm0.shp" >>>> STATUS OFF >>>> TYPE LINE >>>> LABELITEM "REGION" >>>> CLASS >>>> STYLE >>>> COLOR 255 255 255 >>>> OUTLINECOLOR 0 0 0 >>>> END >>>> LABEL >>>> COLOR 0 0 0 >>>> OUTLINECOLOR 255 255 255 >>>> TYPE TRUETYPE >>>> FONT arial >>>> SIZE 9 >>>> ANTIALIAS TRUE >>>> PARTIALS FALSE >>>> MINDISTANCE 250 >>>> BUFFER 4 >>>> END >>>> END >>>> END >>>> END >>>> >>>> >>>> _______________________________________________ >>>> 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 drafkind at traversetechnologies.com Fri Jan 2 14:39:17 2009 From: drafkind at traversetechnologies.com (Dave Rafkind) Date: Fri, 02 Jan 2009 17:39:17 -0500 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <30fe546d0901021436p4a61f1bv74942a0bb69167cb@mail.gmail.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> <495E8332.3050301@traversetechnologies.com> <30fe546d0901021436p4a61f1bv74942a0bb69167cb@mail.gmail.com> Message-ID: <495E9795.9000106@traversetechnologies.com> Map file is at the bottom of this email, world shapefile is the popular "world_adm0" , can be gotten from here: http://www.cipotato.org/diva/data/misc/world_adm0.zip Paul Ramsey wrote: > QGIS doesn't know anything about the SRS of your shape file. > If you share your Shape file and Map file, then we can either > reproduce your bug or confirm you are doing something wrong and tell > you what that something is. > > Paul > > On Fri, Jan 2, 2009 at 1:12 PM, Dave Rafkind > wrote: > >> Hi, thanks for your reply. Results follow: >> >> I can't remove the PROJECTION block, otherwise I get this error from >> mapserver: >> msTileSetProjectionst(): WMS server error. Cannot set new SRS on a map that >> doesn't have any projection set. Please make sure your mapfile has a >> PROJECTION defined at the top level. >> >> QGis thinks this is the spatial information for my test shapefile, this is >> 4326 (basically unprojected), right? >> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs >> >> If I have the PROJECTION block in the mapfile, I can indeed see tiles of >> some kind, but it looks like each tile overlaps in its spatial extent. >> >> See attached for "wrong" results..I changed some of the colors so it would >> be more obvious. >> >> >> >> >> Paul Ramsey wrote: >> >>> Dave, >>> >>> - Remove the PROJECTION block from the MAP level (leave the one at the >>> LAYER level). Tile mode constructs its own output projection object, >>> it doesn't need map file configuration for the output projection, just >>> the inputs. >>> - Confirm that the shape file you are using *is* in fact epsg:4326 >>> - Try manually accessing the service using tile=0 or tile=1, and see >>> what comes back >>> - Show some pictures of "wrong" in your next mail >>> >>> P. >>> >>> On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind >>> wrote: >>> >>> >>>> Thanks for the suggestions, but I don't think that's quite it: >>>> >>>> 1 - removing "epsg:4326" from the wms_srs part of the mapfile didn't fix >>>> it >>>> 2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" string >>>> didn't fix it >>>> >>>> Is there anything else I can try? >>>> >>>> >>>> Fawcett, David wrote: >>>> >>>> >>>>> Dave, >>>>> I am not sure if this is it, but in your WMS request, you are not >>>>> specifying a SRS. You are advertising two SRS' in your WEB WMS >>>>> "wms_srs" metadata. I wonder if MapServer is just defaulting to the >>>>> first SRS in your list in the absence of an explicit request? >>>>> David. >>>>> >>>>> -----Original Message----- >>>>> From: mapserver-users-bounces at lists.osgeo.org >>>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave >>>>> Rafkind >>>>> Sent: Friday, January 02, 2009 12:39 PM >>>>> To: mapserver-users at lists.osgeo.org >>>>> Subject: [mapserver-users] Trouble with mode=tile >>>>> >>>>> >>>>> Hi list, I'm using the latest ms4w on a windows XP box. When trying to >>>>> use >>>>> mapserver's tile mode in a Virtual Earth or Google Maps control, it >>>>> looks totally wrong (like the wrong projection is being used perhaps?). >>>>> What is the right way to go about this? >>>>> >>>>> Here's mapserver.exe -v: >>>>> >>>>> C:\ms4w\Apache\cgi-bin>mapserv -v >>>>> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>>> OUTPUT=PDF >>>>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>>>> SUPPORTS=ICO >>>>> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>>> SUPPORTS=WFS_SERVER >>>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>>> SUPPORTS=FASTCGI SUP >>>>> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS >>>>> INPUT=OGR >>>>> INPUT=GDAL INPUT=SHAPEFILE >>>>> >>>>> Here's the relevant part of my web page with the map control: >>>>> map=new VEMap('myMap'); >>>>> // ... >>>>> var layerId = "myCustomTileLayer"; >>>>> var tileSource = >>>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>>> ap&layers=world&mode=tile&tilemode=ve&tile=%4"; >>>>> var tileSourceSpec = new VETileSourceSpecification(layerId, >>>>> tileSource); >>>>> // ... >>>>> >>>>> Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) >>>>> # google/virtual earth spherical mercator >>>>> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 >>>>> >>>>> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> >>>>> >>>>> >>>>> And here's my map file: >>>>> MAP >>>>> IMAGETYPE PNG >>>>> OUTPUTFORMAT >>>>> NAME png >>>>> DRIVER "GD/PNG" >>>>> MIMETYPE "image/png" >>>>> IMAGEMODE RGBA >>>>> EXTENSION "png" >>>>> TRANSPARENT ON >>>>> END >>>>> >>>>> SHAPEPATH "/src/maps/mapdata" >>>>> FONTSET "/src/maps/mapdata/fonts.list" >>>>> IMAGECOLOR 0 0 0 >>>>> >>>>> WEB >>>>> METADATA >>>>> "wms_title" "WMS Demo Server" >>>>> "wms_onlineresource" >>>>> >>>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>>> ap&" >>>>> "wms_srs" "EPSG:4326 EPSG:900913" >>>>> END >>>>> END >>>>> >>>>> PROJECTION >>>>> "init=epsg:900913" >>>>> END >>>>> >>>>> SYMBOL >>>>> name "circle" >>>>> type ellipse >>>>> filled true >>>>> POINTS 1 1 END >>>>> END >>>>> >>>>> SYMBOL >>>>> NAME 'dashed1' >>>>> TYPE ELLIPSE >>>>> POINTS 1 1 END >>>>> FILLED true >>>>> STYLE 4 4 END >>>>> END >>>>> >>>>> SYMBOL >>>>> NAME 'railway' >>>>> TYPE cartoline >>>>> LINECAP butt >>>>> LINEJOIN miter >>>>> LINEJOINMAXSIZE 3 >>>>> STYLE >>>>> 1 10 1 10 >>>>> END >>>>> END >>>>> >>>>> LAYER >>>>> PROJECTION >>>>> "init=epsg:4326" >>>>> END >>>>> NAME world >>>>> DATA "world/world_adm0.shp" >>>>> STATUS OFF >>>>> TYPE LINE >>>>> LABELITEM "REGION" >>>>> CLASS >>>>> STYLE >>>>> COLOR 255 255 255 >>>>> OUTLINECOLOR 0 0 0 >>>>> END >>>>> LABEL >>>>> COLOR 0 0 0 >>>>> OUTLINECOLOR 255 255 255 >>>>> TYPE TRUETYPE >>>>> FONT arial >>>>> SIZE 9 >>>>> ANTIALIAS TRUE >>>>> PARTIALS FALSE >>>>> MINDISTANCE 250 >>>>> BUFFER 4 >>>>> END >>>>> END >>>>> END >>>>> END >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 iacovlev.pavel at gmail.com Sat Jan 3 15:29:48 2009 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Sun, 4 Jan 2009 01:29:48 +0200 Subject: [mapserver-users] (no subject) Message-ID: <2a37f67a0901031529r7f243020h9fe83f8e4de14a7e@mail.gmail.com> Good day all I have a non rectangular extent and a raster image with known width and height. Using this data I need to create a world file (with rotation parameters). I got my script working with rectangular extents but* I don't know how to calculate the pixel width and pixel height of a non rectangular extent*. At the moment I have: //works only with rectangular extent $this->_pixelWidth = ($extent['topRight']['x'] - $extent['bottomLeft']['x']) / $size['width']; $this->_pixelHeight = ($extent['topRight']['y'] - $extent['bottomLeft']['y']) / $size['height'] * -1; $this->_rotationX = ($this->_pixelHeight * $size['height'] + $extent['topLeft']['y'] - $extent['bottomRight']['y']) / $size['width'] * -1; $this->_rotationY = ($this->_pixelWidth * $size['width'] + $extent['topLeft']['x'] - $extent['bottomRight']['x']) / $size['height'] * -1; $this->_topLeftX = $extent['topLeft']['x']; $this->_topLeftY = $extent['topLeft']['y']; Thank you in advance -- http://iap.md, The future is open -------------- next part -------------- An HTML attachment was scrubbed... URL: From romero619 at hotmail.com Sat Jan 3 16:42:18 2009 From: romero619 at hotmail.com (Pablo Romero) Date: Sat, 3 Jan 2009 16:42:18 -0800 Subject: [mapserver-users] Need help selecting vector data source Message-ID: hello, I need help selecting a datasource to produce the following: a basic, high-resolution land map, showing ONLY coastlines and bodies of water. basically, Im trying to emulate a type of image tiling that I found on another site, which I believe is also being produced using mapserver, but Im unsure about which data source/shapefile is being used. Ive ATTACHED the image. You can see that image includes a high-resolution map of the florida coast, including interior bodies of water. Ive tried using the "admin98.shp" and "world_vector_shorelines.shp" in order to recreate these results, but these two shapefiles dont include interior bodies of water (lakes, ponds, etc.). Ive ALSO tried using the gshhs shapefiles (http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html), and these *seem* like they might work, but they are broken up into separate shapefiles for coastal outline, lakes, ponds, etc., and these shapefiles are IN LINES instead of POLYGONS/POLYLINES, so I cannot figure out how to "fill" the space between "lines" with a different color in order to make the landmasses and interior bodies of water "stand out". So, simply put, my question is: can someone please help me figure out / recommend which data source I should use in order to produce output similiar to the image Ive attached? just high-resolution coastal outline and interior bodies of water IN decimal degrees (WGS1984?), please help.... P.Romero _________________________________________________________________ It?s the same Hotmail?. If by ?same? you mean up to 70% faster. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Sat Jan 3 18:42:43 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Sat, 3 Jan 2009 18:42:43 -0800 Subject: [mapserver-users] Need help selecting vector data source In-Reply-To: References: Message-ID: <9c2015090901031842t5c896492t537eec3e800b202@mail.gmail.com> Version 1.6 of the gshhs shapefiles are polygon features. You can find them at ftp://ftp.ihg.uni-duisburg.de/GIS/GISData/GSHHS/ -- On Sat, Jan 3, 2009 at 4:42 PM, Pablo Romero wrote: > hello, > I need help selecting a datasource to produce the following: a basic, > high-resolution land map, showing ONLY coastlines and bodies of water. > basically, Im trying to emulate a type of image tiling that I found on > another site, which I believe is also being produced using mapserver, but Im > unsure about which data source/shapefile is being used. > > Ive ATTACHED the image. > You can see that image includes a high-resolution map of the florida coast, > including interior bodies of water. > > Ive tried using the "admin98.shp" and "world_vector_shorelines.shp" in > order to recreate these results, but these two shapefiles dont include > interior bodies of water (lakes, ponds, etc.). Ive ALSO tried using the > gshhs shapefiles (http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html), and > these *seem* like they might work, but they are broken up into separate > shapefiles for coastal outline, lakes, ponds, etc., and these shapefiles are > IN LINES instead of POLYGONS/POLYLINES, so I cannot figure out how to "fill" > the space between "lines" with a different color in order to make the > landmasses and interior bodies of water "stand out". > > So, simply put, my question is: can someone please help me figure out / > recommend which data source I should use in order to produce output similiar > to the image Ive attached? just high-resolution coastal outline and interior > bodies of water IN decimal degrees (WGS1984?), please help.... > > P.Romero > > ------------------------------ > It's the same Hotmail(R). If by "same" you mean up to 70% faster. Get your > account now. > > _______________________________________________ > 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 cemre.yilmaz at gmail.com Sun Jan 4 08:35:25 2009 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Sun, 4 Jan 2009 18:35:25 +0200 Subject: [mapserver-users] about making queries Message-ID: <28babe2b0901040835l34c022f9i96e750334de617d3@mail.gmail.com> Hello everybody; I want to make some queries with umn map server. For example, I have got some layers belong to the same area so I want to make some queries such as displaying the parcel only queried in the template file, calculating the area of a selected parcel. For making such examples what do you suggest me? Do you suggest me any examples, tutorials, books or anything else for learning about this subject. P.S: My PC supports windows. Thank you. Happy new year to all. -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Sun Jan 4 12:15:34 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sun, 4 Jan 2009 20:15:34 -0000 Subject: [mapserver-users] MapServer and Heatmap Point Layer In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B4@s-sp22.pca.state.mn.us> Message-ID: <0359D6B7680E4C96879BF2BB206581EE@DELL> I am assuming that someone has tackled the subject of heatmap overlays in MapServer. If anyone has any information they can give me or maybe point me in the right direction, it would be much appreciated. An alternative might be something for OpenLayers with a MapServer/KaMap behind it. Again, any info appreciated. Many thanks. Regards, Donald Kerr From hobu.inc at gmail.com Sun Jan 4 12:58:33 2009 From: hobu.inc at gmail.com (Howard Butler) Date: Sun, 4 Jan 2009 14:58:33 -0600 Subject: [mapserver-users] Re: [mapserver-dev] MapServer Website Migration In-Reply-To: <49591601.5157.008F.0@dnr.state.mn.us> References: <49591601.5157.008F.0@dnr.state.mn.us> Message-ID: On Dec 29, 2008, at 6:25 PM, Steve Lime wrote: > > Oh, the site, it's at: > > http://mapserver.osgeo.org/ Actually, thanks to some sweet talk by Steve and the previous owner's kindness, the site is *really* located at: http://mapserver.org now. Howard From russell at flora.ca Sun Jan 4 15:00:30 2009 From: russell at flora.ca (Russell McOrmond) Date: Sun, 04 Jan 2009 18:00:30 -0500 Subject: [mapserver-users] Confirmation of status of UTF8 support, and where transcoding to Latin-1 may be happening. In-Reply-To: References: <49284AB9.9010407@flora.ca> Message-ID: <49613F8E.7010206@flora.ca> Replying to an older message. Howard Butler wrote on November 24, 2008 @ 05:17 PM: > Yes, I was asking if this was an NSTRING column or a STRING column. The > MapServer ArcSDE code makes an attempt to transcode the data if it is an > nstring column, but it is highly likely this is broken. I didn't have > very extensive data to test this with, and all I looked to ensure was > that a few pictures looked right. The problem might be as simple as the > function msConvertWideStringToUTF8 being broken. Here's where MapServer > tries to convert it: > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapsde.c#L750 The more I look at this, the more confused I get. msConvertWideStringToUTF8 would in our case use iconv. This means that: msConvertWideStringToUTF8((const wchar_t*) wide, "UTF-16"); comes down to: iconv_open("UTF-8", encoding); where encoding is "UTF-16" The characters between 0xa0 and 0xff are the same for Latin-1 and UTF-8, so there must be something I don't know about that differentiates these strings as far as the browser is concerned. The displayed page comes out correct if I force the browser (Firefox) to display as ISO-8859-1, but incorrect if I display as UTF-8 (what we need to use for policy reasons, and thus what the server says the encoding is). I have created a stopgap until we (likely not me, given my lack of familiarity at this point) figure out what is going. It is a patch to msEncodeHTMLEntities to encode these characters. As entities they will work as the browser won't care what encoding it thinks the page should be in. I added the patch here: http://trac.osgeo.org/mapserver/ticket/2842 > The reason that this is such a problem is that MapServer doesn't really > have its unicode/wide character strategy well defined. ArcSDE forces the > issue on us now because by default they're using nstring columns for > loading data by default, so the ArcSDE users are on the front lines of > this, but I think it will be more of a problem as time marches on. Understood. While my customer may not want me to spend much more time on this, I will be monitoring the list/etc to see if there are any patches I should be testing and sending feedback on. In our specific case we are only encoding English and French, so have a much simpler situation than those encoding more complex languages. > Questions the MapServer devs need to answer are: Curious: not knowing who the devs are, did they get your feedback? -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://www.digital-copyright.ca/petition/ict/ "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From attila.borbas at gmail.com Sun Jan 4 16:51:21 2009 From: attila.borbas at gmail.com (=?ISO-8859-1?Q?Borb=E1s_Attila?=) Date: Mon, 5 Jan 2009 01:51:21 +0100 Subject: [mapserver-users] mapfile from jgw Message-ID: <3C8FEBCB-6575-46A2-8602-C11AF8726644@gmail.com> hi, I use qgis for create mapfile from raster or vector data. But what if i haven't got qgis?How can I create a mapfile from a jgw file?For example this is my jgw file: 0.73848858865355 0.00000000000000 0.00000000000000 -0.72697165799776 573189.01746327069000 91732.56826243869700 How can I create a mapfile if I have this jgw file and the raster jpeg? (without qgis) Ty Attila. From randre at gmail.com Sun Jan 4 17:52:41 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Sun, 4 Jan 2009 17:52:41 -0800 Subject: [mapserver-users] MapServer and Heatmap Point Layer In-Reply-To: <0359D6B7680E4C96879BF2BB206581EE@DELL> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B4@s-sp22.pca.state.mn.us> <0359D6B7680E4C96879BF2BB206581EE@DELL> Message-ID: <9c2015090901041752s6f22c7b2uf0a3aeb7f3c32992@mail.gmail.com> Matt Perry wote a gdal-based tool that will read a shapefile and create a heat-density raster from it. You can find it at http://perrygeo.googlecode.com/svn/trunk/gis-bin/point_density.py. If you already have a raster with these values, then you can use the info at http://mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file(look for the "classifying rasters" section). Roger -- On Sun, Jan 4, 2009 at 12:15 PM, Donald Kerr wrote: > I am assuming that someone has tackled the subject of heatmap overlays in > MapServer. If anyone has any information they can give me or maybe point me > in the right direction, it would be much appreciated. An alternative might > be something for OpenLayers with a MapServer/KaMap behind it. Again, any > info appreciated. > > Many thanks. > > Regards, > > Donald Kerr > > _______________________________________________ > 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 vtammineni at roulacglobal.com Mon Jan 5 01:23:50 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 5 Jan 2009 14:53:50 +0530 Subject: [mapserver-users] How to work with joins in Mapfile using Postgresql Message-ID: <006f01c96f17$5366b260$fa341720$@com> Dear All, How can I use join in Mapfile .I am using Postgresql/postgis. I have two tables .One table contains Spatial data and another table contains Non-Spatial data. I want to join both two tables and I need display map. How can I do this .Any can guide me. I am waiting for your great response. Advanced Thanks. Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Mon Jan 5 02:41:22 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 5 Jan 2009 16:11:22 +0530 Subject: [mapserver-users] How to work with joins in Mapfile using Postgresql In-Reply-To: <4961E238.2010505@duif.net> References: <006f01c96f17$5366b260$fa341720$@com> <4961E238.2010505@duif.net> Message-ID: <007d01c96f22$28a89d80$79f9d880$@com> Dear Richard Duivenvoorde, Thanks for your great response.I am working on that , I will let you know if I get any problem about this. Thanks again Regards, Venkat. -----Original Message----- From: Richard Duivenvoorde [mailto:rdmailings at duif.net] Sent: Monday, January 05, 2009 4:05 PM To: Venkat Rao Tammineni Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to work with joins in Mapfile using Postgresql Hi Venkat, isn't it possible to make a 'view' using a normal join-query? and then use the view as your spatial tabledata? There is something in the mapserver docs about it too: http://mapserver.org/input/vector/postgis.html Regards, Richard Duivenvoorde Venkat Rao Tammineni wrote: > Dear All, > > > > How can I use join in Mapfile .I am using Postgresql/postgis. I have > two tables .One table contains Spatial data and another table contains > Non-Spatial data. I want to join both two tables and I need display map. > How can I do this .Any can guide me. > > > > I am waiting for your great response. > > > > Advanced Thanks. > > > > Regards > > Venkat. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From rdmailings at duif.net Mon Jan 5 02:41:41 2009 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Mon, 05 Jan 2009 11:41:41 +0100 Subject: [mapserver-users] mapfile from jgw In-Reply-To: <3C8FEBCB-6575-46A2-8602-C11AF8726644@gmail.com> References: <3C8FEBCB-6575-46A2-8602-C11AF8726644@gmail.com> Message-ID: <4961E3E5.6040607@duif.net> Hi, the jgw file you show is a socalled 'world file': http://en.wikipedia.org/wiki/World_file mapserver will use this file to georeference the jpeg file you give it: see http://mapserver.org/input/raster.html and http://mapserver.org/input/raster.html#georeference-with-world-files Hope this helps, Richard Duivenvoorde Borb?s Attila wrote: > hi, > > I use qgis for create mapfile from raster or vector data. But what if i > haven't got qgis?How can I create a mapfile from a jgw file?For example > this is my jgw file: > > 0.73848858865355 > 0.00000000000000 > 0.00000000000000 > -0.72697165799776 > 573189.01746327069000 > 91732.56826243869700 > > How can I create a mapfile if I have this jgw file and the raster > jpeg?(without qgis) > > Ty > > Attila. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From rdmailings at duif.net Mon Jan 5 02:34:32 2009 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Mon, 05 Jan 2009 11:34:32 +0100 Subject: [mapserver-users] How to work with joins in Mapfile using Postgresql In-Reply-To: <006f01c96f17$5366b260$fa341720$@com> References: <006f01c96f17$5366b260$fa341720$@com> Message-ID: <4961E238.2010505@duif.net> Hi Venkat, isn't it possible to make a 'view' using a normal join-query? and then use the view as your spatial tabledata? There is something in the mapserver docs about it too: http://mapserver.org/input/vector/postgis.html Regards, Richard Duivenvoorde Venkat Rao Tammineni wrote: > Dear All, > > > > How can I use join in Mapfile .I am using Postgresql/postgis. I have > two tables .One table contains Spatial data and another table contains > Non-Spatial data. I want to join both two tables and I need display map. > How can I do this .Any can guide me. > > > > I am waiting for your great response. > > > > Advanced Thanks. > > > > Regards > > Venkat. > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From havard.tveite at umb.no Mon Jan 5 03:48:42 2009 From: havard.tveite at umb.no (Havard Tveite) Date: Mon, 5 Jan 2009 12:48:42 +0100 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: <6C6CDBD5048347A58C2590E813DE0EEA@DELL> References: <6C6CDBD5048347A58C2590E813DE0EEA@DELL> Message-ID: <4961F39A.4020405@umb.no> Donald Kerr wrote: > In a previous thread that I started about positioning of LABELs, Thomas > Bonfort said, "I'd be in favor of having a way to specify the anchor point, > either by fixing it on > 0,0 , or by specifying it alongside the symbol, eg ANCHORPOINT 0.3 2". I > agree that this would be good for symbols too but it may present a problem > with scaled symbols, especially TTF. If it's not a fixed size then how can > an anchor point be specified? Regarding ANCHORPOINT (CENTER / ORIGIN) and scaled symbols: For vector and ellipse symbols it should be specified in the coordinate system that is used in the symbol definition. For pixmaps, one could use the pixel coordinates of the original image (perhaps having (0,0) at the centre of the image, and y increasing upwards?). For truetype symbols, one could perhaps use a font coordinate system that is size-independent? H?vard Tveite From ben at remoteinformation.com.au Mon Jan 5 04:11:20 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Mon, 5 Jan 2009 21:11:20 +0900 Subject: [mapserver-users] Path for errorfile In-Reply-To: <20081219061510.45271E01463@lists.osgeo.org> References: <20081219061510.45271E01463@lists.osgeo.org> Message-ID: <374D588E-8202-4D5E-8A02-0FDA62688607@remoteinformation.com.au> G'day all, as a negative, Can you not use a relative reference for the errorfile? for example, using : CONFIG "MS_ERRORFILE" "/Users/19022662/Sites/marketprices/ mapserver/mserr.log" DEBUG 4 works as expected, writing copious quantities to the log. using : CONFIG "MS_ERRORFILE" "mserr.log" DEBUG 4 does not, although both the .log file and the .map file are in the / Users/19022662/Sites/marketprices/mapserver/ directory. Relative paths work fine for symbol files, data etc. I also note that the RFC28 refers to setting this : It will be possible to specify MS_ERRORFILE either as an environment variable or via a CONFIG directive inside a mapfile: CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" or CONFIG "MS_ERRORFILE" "stderr" but doesn't specify whether or not a relative path could be used. This is inconsistent with all other specifications of path, can/should it be amended? Should I file this as a bug? cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From maxims731 at inbox.ru Mon Jan 5 04:28:50 2009 From: maxims731 at inbox.ru (Maximsu) Date: Mon, 5 Jan 2009 04:28:50 -0800 (PST) Subject: [mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick lines in the grid Message-ID: <1231158530303-2112673.post@n2.nabble.com> I have very thick lines in the grid layer when i use agg/png driver. See the map http://avia.meteonovosti.ru/index.php?index=1&icao=UUEE&iso_cntr=RU here . They must be the 1 pixel width. With the gd/png driver all OK. Width is set to 1 but it does not matter. Is there a way to switch off the line antialiasing for grid layer? Or some another way to solve this problem? There is the layer definition: LAYER NAME grid2 GROUP "Grid" STATUS ON TYPE LINE LABELCACHE ON MINSCALE 1000001 MAXSCALE 3000000 METADATA GridLabelSizeMin "8" GridLabelSizeMax "11" END CLASS NAME "Graticule" STYLE COLOR 72 72 72 width 1 END LABEL COLOR 255 0 0 SIZE 8 POSITION CC PARTIALS TRUE BUFFER 5 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arial" FORCE TRUE END END PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" END GRID LABELFORMAT "DD" MinInterval 1 MaxInterval 5 END END -- View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2112673.html Sent from the Mapserver - User mailing list archive at Nabble.com. From M.Kofahl at gmx.net Mon Jan 5 04:53:14 2009 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Mon, 05 Jan 2009 13:53:14 +0100 Subject: [mapserver-users] Overriding MapServer Map File Parameters in OpenLayers In-Reply-To: <495E5B78.80209@gisnet.com> References: <495E5B78.80209@gisnet.com> Message-ID: <20090105125314.25390@gmx.net> An additional question: can I forbid overriding of map file parameters via form or url? Martin -------- Original-Nachricht -------- > Datum: Fri, 02 Jan 2009 11:22:48 -0700 > Von: Bill Thoen > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Overriding MapServer Map File Parameters in OpenLayers > I'm trying to make a map in OpenLayers 2.7 using a MapServer 5.0.3 Map > File, and I'm trying to change the Layer color from what's specified in > the Map File. In OpenLayers, I have to format the parameter as a key: > value pair. So here's what I've tried (without success) in my OL > javascript: > > var baseLayer = new OpenLayers.Layer.MapServer( "USA", > "http://206.168.217.244/cgi-bin/mapserv?", > { > map_imagetype: 'PNG', > layer: 'states', > map_layer_0_class_0_style_0_color: '255+255+000', > map: '/var/www/html/piper/usa.map' > }, { singleTile: true }); > > If I take out this line: > map_layer_0_class_0_style_0_color: '255+255+000' > the map works fine. The only layer in the map is the US states, and all > I want to do is change the color from pale yellow as set in the map file > to bright yellow. > > The relevant part of the map file looks like this: > LAYER > NAME "states" > TYPE POLYGON > DATA states > CLASS > NAME "US States" > STYLE > OUTLINECOLOR 100 100 100 > COLOR 255 255 192 > END > END > PROJECTION > "init=epsg:32614" # UTM Zone 14 N WGS84 > END > STATUS DEFAULT > END > > I think the problem is that I've got the syntax wrong in trying to > override the MapServer map file parameter. I've looked at > http://mapserver.osgeo.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url > but that hasn't helped. So does anyone *here* know how to do this? (I > was told on the OpenLayers mailing list to try asking on the MapServer > list.) > > TIA, > - Bill Thoen > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Jan 5 06:29:15 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 05 Jan 2009 08:29:15 -0600 Subject: [mapserver-users] MapServer is now at www.mapserver.org... Message-ID: <4961C4DB0200008F0001F2C6@co5.dnr.state.mn.us> Hi all: One more website change announcement. Thanks to the generosity of the domain owner and a bit of persistence, the project has acquired the mapserver.org domain. The good folks doing technical administration for MapServer and OSGeo got things in place over the weekend so the address: http://www.mapserver.org/ is alive and kicking and should be used for access moving forward. Thanks to all involved! Steve From Steve.Lime at dnr.state.mn.us Mon Jan 5 07:42:03 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 05 Jan 2009 09:42:03 -0600 Subject: [mapserver-users] Overriding MapServer Map File Parameters inOpenLayers Message-ID: <4961D5F20200008F0001F304@co5.dnr.state.mn.us> No, although I think this should be supported. Would be easy to do, just need to define the way to trigger it. I may have even proposed a way to do this in an old RFC and just neglected to implement. Will tackle as part of RFC44... BTW Bill, your syntax is wrong below. 5.x uses something like: map.layer[name].class[0].style[0]=COLOR+255+0+0+OUTLINECOLOR+0+0+255 Steve >>> "Martin Kofahl" 01/05/09 6:54 AM >>> An additional question: can I forbid overriding of map file parameters via form or url? Martin -------- Original-Nachricht -------- > Datum: Fri, 02 Jan 2009 11:22:48 -0700 > Von: Bill Thoen > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Overriding MapServer Map File Parameters in OpenLayers > I'm trying to make a map in OpenLayers 2.7 using a MapServer 5.0.3 Map > File, and I'm trying to change the Layer color from what's specified in > the Map File. In OpenLayers, I have to format the parameter as a key: > value pair. So here's what I've tried (without success) in my OL > javascript: > > var baseLayer = new OpenLayers.Layer.MapServer( "USA", > "http://206.168.217.244/cgi-bin/mapserv?", > { > map_imagetype: 'PNG', > layer: 'states', > map_layer_0_class_0_style_0_color: '255+255+000', > map: '/var/www/html/piper/usa.map' > }, { singleTile: true }); > > If I take out this line: > map_layer_0_class_0_style_0_color: '255+255+000' > the map works fine. The only layer in the map is the US states, and all > I want to do is change the color from pale yellow as set in the map file > to bright yellow. > > The relevant part of the map file looks like this: > LAYER > NAME "states" > TYPE POLYGON > DATA states > CLASS > NAME "US States" > STYLE > OUTLINECOLOR 100 100 100 > COLOR 255 255 192 > END > END > PROJECTION > "init=epsg:32614" # UTM Zone 14 N WGS84 > END > STATUS DEFAULT > END > > I think the problem is that I've got the syntax wrong in trying to > override the MapServer map file parameter. I've looked at > http://mapserver.osgeo.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url > but that hasn't helped. So does anyone *here* know how to do this? (I > was told on the OpenLayers mailing list to try asking on the MapServer > list.) > > TIA, > - Bill Thoen > > > _______________________________________________ > 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 randre at gmail.com Mon Jan 5 08:27:15 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 5 Jan 2009 08:27:15 -0800 Subject: [mapserver-users] Need help selecting vector data source In-Reply-To: <9c2015090901032347r2ee91183t57a9e8fd95b72875@mail.gmail.com> References: <9c2015090901031842t5c896492t537eec3e800b202@mail.gmail.com> <9c2015090901032028o2d2de48r5849e3635a7473c6@mail.gmail.com> <9c2015090901032347r2ee91183t57a9e8fd95b72875@mail.gmail.com> Message-ID: <9c2015090901050827m37a32897j79f8d5076e38666e@mail.gmail.com> Hi Paul, This this do what you needed? Thanks, Roger -- On Sat, Jan 3, 2009 at 11:47 PM, Roger Andr? wrote: > Hi Paul, > > This ought to get you started. The "florida.map" is the project mapfile > and looks for the "coastline.map", "lakes.map", and "islands.map" mapfiles > for each of the separate layers. You should just need to change the path in > each of the DATA lines to point at your shapefiles. Attached is the image > this generates, as well as the mapfiles. You'll have to tweak the colors > yourself. > > Roger > -- > > > On Sat, Jan 3, 2009 at 8:47 PM, P.Romero wrote: > >> Ok, Ive attached the image? >> >> >> ------------------------------ >> >> *From:* Roger Andr? [mailto:randre at gmail.com] >> *Sent:* 2009-01-03 10:28 PM >> *To:* P.Romero >> >> *Subject:* Re: [mapserver-users] Need help selecting vector data source >> >> >> >> Hi Paul, >> >> The image of what you want this to look like didn't come through to the >> list. Can you send it to me directly? I'll work up a mapfile that will >> look like it for you. >> >> Roger >> -- >> >> On Sat, Jan 3, 2009 at 8:16 PM, P.Romero wrote: >> >> Roger, >> >> Thanks for the advice, I downloaded the 1.6 version. >> >> Another question: I cant seem to find a way to "merge" the two layers: >> "land" and "lakes", since their each from a separate shapefile, and are on a >> separate layer. Is it even possible to merge the layers? Here's my map file: >> >> >> >> MAP >> >> NAME "dd" >> >> UNITS DD >> >> EXTENT -90 20 -60 35 >> >> SIZE 600 600 >> >> SHAPEPATH "/data/apps/mapserver/shp" >> >> IMAGECOLOR 130 180 200 >> >> WEB >> >> IMAGEPATH /var/www/html/images/mapserver >> >> IMAGEURL /images/mapserver >> >> LOG /var/log/maplog >> >> END >> >> LAYER >> >> NAME "gshhs_land" >> >> TYPE POLYGON >> >> STATUS ON >> >> DATA "gshhs_land.shp" >> >> CLASS >> >> STYLE >> >> COLOR 240 240 230 >> >> OUTLINECOLOR 240 240 230 >> >> END >> >> END >> >> END >> >> END >> >> LAYER >> >> NAME "gshhs_lake" >> >> TYPE POLYGON >> >> STATUS ON >> >> DATA "gshhs_lake.shp" >> >> CLASS >> >> STYLE >> >> COLOR 130 180 200 >> >> END >> >> END >> >> END >> >> END >> >> >> >> The first layer seems to simply overlap and cover the second layer. >> Im not sure how to set the transparency of a layer (I read through the >> documentation, but it wasn't very clear). >> >> Basically, I want land a beige color, and oceans (background) and bodies >> of water (polygons from the "lakes" shapefile) to be a blue color. >> >> >> >> What should I do? Do this require something drastic, like merging the land >> & lakes shapefiles, or something like this? >> >> Please help, >> >> Thanks, >> >> P.Romero >> >> >> >> >> ------------------------------ >> >> *From:* Roger Andr? [mailto:randre at gmail.com] >> *Sent:* 2009-01-03 8:43 PM >> *To:* Pablo Romero >> *Cc:* mapserver-users at lists.osgeo.org >> *Subject:* Re: [mapserver-users] Need help selecting vector data source >> >> >> >> Version 1.6 of the gshhs shapefiles are polygon features. You can find >> them at ftp://ftp.ihg.uni-duisburg.de/GIS/GISData/GSHHS/ >> -- >> >> On Sat, Jan 3, 2009 at 4:42 PM, Pablo Romero >> wrote: >> >> hello, >> I need help selecting a datasource to produce the following: a basic, >> high-resolution land map, showing ONLY coastlines and bodies of water. >> basically, Im trying to emulate a type of image tiling that I found on >> another site, which I believe is also being produced using mapserver, but Im >> unsure about which data source/shapefile is being used. >> >> Ive ATTACHED the image. >> You can see that image includes a high-resolution map of the florida >> coast, including interior bodies of water. >> >> Ive tried using the "admin98.shp" and "world_vector_shorelines.shp" in >> order to recreate these results, but these two shapefiles dont include >> interior bodies of water (lakes, ponds, etc.). Ive ALSO tried using the >> gshhs shapefiles (http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html), >> and these *seem* like they might work, but they are broken up into separate >> shapefiles for coastal outline, lakes, ponds, etc., and these shapefiles are >> IN LINES instead of POLYGONS/POLYLINES, so I cannot figure out how to "fill" >> the space between "lines" with a different color in order to make the >> landmasses and interior bodies of water "stand out". >> >> So, simply put, my question is: can someone please help me figure out / >> recommend which data source I should use in order to produce output similiar >> to the image Ive attached? just high-resolution coastal outline and interior >> bodies of water IN decimal degrees (WGS1984?), please help.... >> >> P.Romero >> >> >> ------------------------------ >> >> It's the same Hotmail(R). If by "same" you mean up to 70% faster. Get your >> account now. >> >> >> _______________________________________________ >> 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 romero619 at hotmail.com Mon Jan 5 08:53:36 2009 From: romero619 at hotmail.com (Pablo Romero) Date: Mon, 5 Jan 2009 08:53:36 -0800 Subject: [mapserver-users] Need help selecting vector data source In-Reply-To: <9c2015090901050827m37a32897j79f8d5076e38666e@mail.gmail.com> References: <9c2015090901031842t5c896492t537eec3e800b202@mail.gmail.com> <9c2015090901032028o2d2de48r5849e3635a7473c6@mail.gmail.com> <9c2015090901032347r2ee91183t57a9e8fd95b72875@mail.gmail.com> <9c2015090901050827m37a32897j79f8d5076e38666e@mail.gmail.com> Message-ID: Roger, YES!!! excellent, this worked perfectly... The documentation doesnt seem to be very clear on how exactly to compose a mapfile with multiple layers, but looking at your examples, everthing made much more sense. Thanks a million for your quick and elaborate help. You're a life-saver and mapserver guru in my book... Cheers, P.Romero Date: Mon, 5 Jan 2009 08:27:15 -0800From: randre at gmail.comTo: romero619 at hotmail.comSubject: Re: [mapserver-users] Need help selecting vector data sourceCC: mapserver-users at lists.osgeo.orgHi Paul,This this do what you needed?Thanks,Roger-- On Sat, Jan 3, 2009 at 11:47 PM, Roger Andr? wrote: Hi Paul,This ought to get you started. The "florida.map" is the project mapfile and looks for the "coastline.map", "lakes.map", and "islands.map" mapfiles for each of the separate layers. You should just need to change the path in each of the DATA lines to point at your shapefiles. Attached is the image this generates, as well as the mapfiles. You'll have to tweak the colors yourself.Roger-- On Sat, Jan 3, 2009 at 8:47 PM, P.Romero wrote: Ok, Ive attached the image? From: Roger Andr? [mailto:randre at gmail.com] Sent: 2009-01-03 10:28 PMTo: P.Romero Subject: Re: [mapserver-users] Need help selecting vector data source Hi Paul,The image of what you want this to look like didn't come through to the list. Can you send it to me directly? I'll work up a mapfile that will look like it for you.Roger-- On Sat, Jan 3, 2009 at 8:16 PM, P.Romero wrote: Roger, Thanks for the advice, I downloaded the 1.6 version. Another question: I cant seem to find a way to "merge" the two layers: "land" and "lakes", since their each from a separate shapefile, and are on a separate layer. Is it even possible to merge the layers? Here's my map file: MAP NAME "dd" UNITS DD EXTENT -90 20 -60 35 SIZE 600 600 SHAPEPATH "/data/apps/mapserver/shp" IMAGECOLOR 130 180 200 WEB IMAGEPATH /var/www/html/images/mapserver IMAGEURL /images/mapserver LOG /var/log/maplog END LAYER NAME "gshhs_land" TYPE POLYGON STATUS ON DATA "gshhs_land.shp" CLASS STYLE COLOR 240 240 230 OUTLINECOLOR 240 240 230 END END END END LAYER NAME "gshhs_lake" TYPE POLYGON STATUS ON DATA "gshhs_lake.shp" CLASS STYLE COLOR 130 180 200 END END END END The first layer seems to simply overlap and cover the second layer.Im not sure how to set the transparency of a layer (I read through the documentation, but it wasn't very clear). Basically, I want land a beige color, and oceans (background) and bodies of water (polygons from the "lakes" shapefile) to be a blue color. What should I do? Do this require something drastic, like merging the land & lakes shapefiles, or something like this? Please help, Thanks, P.Romero From: Roger Andr? [mailto:randre at gmail.com] Sent: 2009-01-03 8:43 PMTo: Pablo RomeroCc: mapserver-users at lists.osgeo.orgSubject: Re: [mapserver-users] Need help selecting vector data source Version 1.6 of the gshhs shapefiles are polygon features. You can find them at ftp://ftp.ihg.uni-duisburg.de/GIS/GISData/GSHHS/-- On Sat, Jan 3, 2009 at 4:42 PM, Pablo Romero wrote: hello,I need help selecting a datasource to produce the following: a basic, high-resolution land map, showing ONLY coastlines and bodies of water. basically, Im trying to emulate a type of image tiling that I found on another site, which I believe is also being produced using mapserver, but Im unsure about which data source/shapefile is being used. Ive ATTACHED the image. You can see that image includes a high-resolution map of the florida coast, including interior bodies of water. Ive tried using the "admin98.shp" and "world_vector_shorelines.shp" in order to recreate these results, but these two shapefiles dont include interior bodies of water (lakes, ponds, etc.). Ive ALSO tried using the gshhs shapefiles (http://www.ngdc.noaa.gov/mgg/shorelines/gshhs.html), and these *seem* like they might work, but they are broken up into separate shapefiles for coastal outline, lakes, ponds, etc., and these shapefiles are IN LINES instead of POLYGONS/POLYLINES, so I cannot figure out how to "fill" the space between "lines" with a different color in order to make the landmasses and interior bodies of water "stand out". So, simply put, my question is: can someone please help me figure out / recommend which data source I should use in order to produce output similiar to the image Ive attached? just high-resolution coastal outline and interior bodies of water IN decimal degrees (WGS1984?), please help.... P.Romero It's the same Hotmail?. If by "same" you mean up to 70% faster. Get your account now. _______________________________________________mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Send e-mail anywhere. No map, no compass. http://windowslive.com/oneline/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Mon Jan 5 14:28:34 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 5 Jan 2009 22:28:34 -0000 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA0CD@s-sp22.pca.state.mn.us> Message-ID: <67263AEC37164C84BE851A4D935B0407@DELL> David > Are you saying that you are using the latest trunk code and > you are still seeing this problem? In a previous reply I got from Thomas Bonfort who asked much the same question as you are above, I asked "Are you referring to "Revision 8379: /trunk"?" and "I'm working with version 5.2.1 downloaded with the MS4W package." To be honest, I don't know if this is the latest or not and I don't really know what "trunk code" is :( I also wrote in the same email to Thomas, "If that's the case, I assume that I would have to download and compile the files then overwrite my existing files. This is my first bash at MapServer and it's a steep learnig curve!" Thomas hasn't replied as yet. So, I suppose my questions are still the same i.e. do I have to recompile using the latest code? Yikes! To give you some more info, I also created a square symbol to see how that rotated and it didn't show correctly at all. I've attached a couple of images showing an arrow symbol (not square) which, when rotated, appears to rotate on the bottom left corner. I could live with the symbol rotating on its centre by creating something with the arrow head in the middle and putting a couple of tiny dots in the font character so that it appears to be a large square - Like so (the following probably won't come out right but it will give you an idea): . <- . Not ideal as the dots would show but they would be tiny - as I say, I could live with that. It would be ideal if an anchor point could be specified but how that could be done with a ttf and scaling I do not know :( Many thanks, Regards, Donald -----Original Message----- From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: 05 January 2009 20:47 To: Donald Kerr; thomas bonfort Subject: RE: [mapserver-users] Rotated TrueType Point Symbols - Issue Donald, Are you saying that you are using the latest trunk code and you are still seeing this problem? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Friday, January 02, 2009 11:42 AM To: 'thomas bonfort'; 'Fawcett, David' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Rotated TrueType Point Symbols - Issue Thomas, > ttf rotation is fixed in trunk for agg. the point of rotation > is the centre of the symbol. That doesn't seem to be the case. If I rotate a TTF symbol then it appears offset as per the images I posted to the group earlier. Regards, Donald _______________________________________________ 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: NoANGLE.png Type: image/png Size: 1552 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: WithANGLE.png Type: image/png Size: 1105 bytes Desc: not available URL: From subha at gslab.com Mon Jan 5 22:04:13 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Tue, 06 Jan 2009 11:34:13 +0530 Subject: [mapserver-users] Showing pop up for a line In-Reply-To: <4961C4DB0200008F0001F2C6@co5.dnr.state.mn.us> References: <4961C4DB0200008F0001F2C6@co5.dnr.state.mn.us> Message-ID: <4962F45D.3010103@gslab.com> Hi, I am using Mapserver 5.0.2 with Openlayers. I've a line layer (from mapserver) shown on my base map(google physical). Now, when i click on a line, i want to show a pop using openlayers. I am able to do this for a polygon layer. I send the lat,lon of the point that is clicked and use the postgis query "ST_Contains(topology,geomFromText('POINT(77.87117958068927 13.491965860913544)',-1))" to find the polygon (and fetch the polygon specific data to show on pop up) and attach the Openlayers popup to the point clicked. I am not able to do this for a line layer as the postgis query doesn't return anything. I tried this query also, "ST_Contains(topology,geomFromText('POINT(77.87117958068927 13.491965860913544)',-1)) AND distance(topology,geomFromText('POINT(77.87117958068927 13.491965860913544)',-1)) <= 1" but it doesn't work. Does any one know how to check if a point is a part of a line or if there is any other way to show the pop up? Thanks a lot for the help. Regards, Subha From adrian_gh.popa at romtelecom.ro Mon Jan 5 23:33:47 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Tue, 06 Jan 2009 09:33:47 +0200 Subject: [mapserver-users] Color palette for road-like layers Message-ID: <4963095B.8080305@romtelecom.ro> Happy new year everyone! I need your help with the aesthetics of my mapserver application. I am drawing the map of a country (with cities and villages) and also a layer of fiber optics (which can be approximated with a road layer). I have the fiber separated by capacity (STM1 being the lowest capacity, going to STM64 witch is the highest capacity). Currently I am differentiating between fiber of different capacities by using different colors and different line thickness. Unfortunately, it isn't so pleasant on the eye (see attachment). Can you share the colors you use to draw the following elements - so I can model my map to look a bit better? - map background (I'm not using raster images) - cities - small towns/villages - roads - rivers - text elements Also, a small screen capture, to show the colors would be nice. I have an additional question: can elements such as roads be drawn in such a way that they look like google maps (see second attachment) - meaning not just a single color, but apparently color + boundries? Thank you for your help -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- A non-text attachment was scrubbed... Name: 2009-01-06-092743_938x668_scrot.png Type: image/png Size: 21524 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2009-01-06-093217_613x440_scrot.png Type: image/png Size: 40244 bytes Desc: not available URL: From adrian_gh.popa at romtelecom.ro Tue Jan 6 00:51:47 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Tue, 06 Jan 2009 10:51:47 +0200 Subject: [mapserver-users] Color palette for road-like layers In-Reply-To: <49630DB0.4010900@gritechnologies.com> References: <4963095B.8080305@romtelecom.ro> <49630DB0.4010900@gritechnologies.com> Message-ID: <49631BA3.7060406@romtelecom.ro> Yes Bob, I like the roads. :) Can you show me how you are able to draw contours around your roads? Thanks Bob Basques wrote: > Adrian, > > Would the lines used for this map work for you? > > https://gis.ci.stpaul.mn.us/gis/gismo_public/html/ > > Looks like the original Mapfile link is broken though, I'll need to > fix that in the morning. > > bobb > > > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Tue Jan 6 05:08:10 2009 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Tue, 6 Jan 2009 08:08:10 -0500 Subject: [mapserver-users] Color palette for road-like layers In-Reply-To: <49631BA3.7060406@romtelecom.ro> References: <4963095B.8080305@romtelecom.ro> <49630DB0.4010900@gritechnologies.com> <49631BA3.7060406@romtelecom.ro> Message-ID: <91461977-EBA9-4642-861E-03710131956E@dmsolutions.ca> Adrian, that is a fairly simple trick, you need to draw roads twice to do it. You can do that with two separate layers or two STYLE objects within a class depending on what effect you want to achieve. In both cases, you just draw the road 2 pixels wider in your 'outline' color (called a casement). For instance, assuming you are using two STYLE objects: LAYER NAME "Major Roads" TYPE LINE DATA myroads CLASS NAME "Major Roads" STYLE #Casement style SIZE 9 COLOR 192 192 192 SYMBOL "circle" END STYLE #Center style SIZE 7 COLOR 255 255 255 SYMBOL "circle" END END END You would use two separate layers to draw the casement and center style if you had several layers and/or classes of roads that you wanted to 'merge' the casements - in your google screenshoot, you should notice that the grey casement on Hollywood St merges with the casement on W 8th St and there is no grey line between the two center colors, this would be how to achieve a similar effect in MapServer. Cheers Paul On 6-Jan-09, at 3:51 AM, Adrian Popa wrote: > Yes Bob, I like the roads. :) > Can you show me how you are able to draw contours around your roads? > > Thanks > > > Bob Basques wrote: >> >> Adrian, >> >> Would the lines used for this map work for you? >> >> https://gis.ci.stpaul.mn.us/gis/gismo_public/html/ >> >> Looks like the original Mapfile link is broken though, I'll need to >> fix that in the morning. >> >> bobb >> >> >> > > > -- > Adrian Popa > > Network Engineer > Romtelecom S.A. > Divizia Centrul National de Operare Retea > Departament Transport IP & Metro > Compartiment IP Core > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://research.dmsolutions.ca/ From danlittle at yahoo.com Tue Jan 6 05:15:55 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 6 Jan 2009 05:15:55 -0800 (PST) Subject: [mapserver-users] Showing pop up for a line References: <4961C4DB0200008F0001F2C6@co5.dnr.state.mn.us> <4962F45D.3010103@gslab.com> Message-ID: <627461.8339.qm@web51412.mail.re2.yahoo.com> In my experience it's easier to do a buffer on the line features first (something nominal) which turns it into a polygon. In this way, the operators you want to use work consistently. ----- Original Message ---- > From: Subha Ramakrishnan > To: Steve Lime > Cc: mapserver-users at lists.osgeo.org > Sent: Tuesday, January 6, 2009 12:04:13 AM > Subject: [mapserver-users] Showing pop up for a line > > Hi, > > I am using Mapserver 5.0.2 with Openlayers. > I've a line layer (from mapserver) shown on my base map(google physical). > Now, when i click on a line, i want to show a pop using openlayers. > I am able to do this for a polygon layer. I send the lat,lon of the point that > is clicked and use the postgis query > "ST_Contains(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1))" to find the polygon (and fetch the polygon specific > data to show on pop up) and attach the Openlayers popup to the point clicked. > > I am not able to do this for a line layer as the postgis query doesn't return > anything. > I tried this query also, > "ST_Contains(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1)) AND > distance(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1)) <= 1" but it doesn't work. > > Does any one know how to check if a point is a part of a line or if there is any > other way to show the pop up? > > Thanks a lot for the help. > > Regards, > Subha > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From subha at gslab.com Tue Jan 6 06:00:18 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Tue, 06 Jan 2009 19:30:18 +0530 Subject: [mapserver-users] Showing pop up for a line In-Reply-To: <627461.8339.qm@web51412.mail.re2.yahoo.com> References: <4961C4DB0200008F0001F2C6@co5.dnr.state.mn.us> <4962F45D.3010103@gslab.com> <627461.8339.qm@web51412.mail.re2.yahoo.com> Message-ID: <496363F2.1050306@gslab.com> Hi, Thanks a lot for the reply. If i use "ST_Contains(topology,st_expand(geomFromText('POINT(77.87117958068927 13.491965860913544)',-1), 10)", can it be the case that more than one record will match the condition? And this will not work for me, as I need to have exactly one record to show the pop up. The constraint I'm facing in using Openlayers to draw the line layer is that the layer is too huge consisting of more than 20,000 features and the browser hangs because of too much memory being used in drawing the layer. Hence I am using mapserver for drawing the line layer. I did try other options here. The operator "~" [A ~ B (A completely contains B)] gives me more than one line(record) that matches the condition. But this cannot be the case to show the pop up. I did try to club it with other operators like "&&" and "=" but none of these seem to work. Thanks again. Regards, Subha Dan Little wrote: > In my experience it's easier to do a buffer on the line features first (something nominal) which turns it into a polygon. In this way, the operators you want to use work consistently. > > > ----- Original Message ---- > >> From: Subha Ramakrishnan >> To: Steve Lime >> Cc: mapserver-users at lists.osgeo.org >> Sent: Tuesday, January 6, 2009 12:04:13 AM >> Subject: [mapserver-users] Showing pop up for a line >> >> Hi, >> >> I am using Mapserver 5.0.2 with Openlayers. >> I've a line layer (from mapserver) shown on my base map(google physical). >> Now, when i click on a line, i want to show a pop using openlayers. >> I am able to do this for a polygon layer. I send the lat,lon of the point that >> is clicked and use the postgis query >> "ST_Contains(topology,geomFromText('POINT(77.87117958068927 >> 13.491965860913544)',-1))" to find the polygon (and fetch the polygon specific >> data to show on pop up) and attach the Openlayers popup to the point clicked. >> >> I am not able to do this for a line layer as the postgis query doesn't return >> anything. >> I tried this query also, >> "ST_Contains(topology,geomFromText('POINT(77.87117958068927 >> 13.491965860913544)',-1)) AND >> distance(topology,geomFromText('POINT(77.87117958068927 >> 13.491965860913544)',-1)) <= 1" but it doesn't work. >> >> Does any one know how to check if a point is a part of a line or if there is any >> other way to show the pop up? >> >> Thanks a lot for the help. >> >> Regards, >> Subha >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > > > From jmckenna at gatewaygeomatics.com Tue Jan 6 06:02:54 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 06 Jan 2009 09:02:54 -0500 Subject: [mapserver-users] Color palette for road-like layers In-Reply-To: <4963095B.8080305@romtelecom.ro> References: <4963095B.8080305@romtelecom.ro> Message-ID: <4963648E.3010704@gatewaygeomatics.com> > > I have an additional question: can elements such as roads be drawn in > such a way that they look like google maps (see second attachment) - > meaning not just a single color, but apparently color + boundries? > This is documented in the Intro to MapServer doc: http://mapserver.org/introduction.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From pal.kristensen at statkart.no Tue Jan 6 06:56:11 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 6 Jan 2009 06:56:11 -0800 (PST) Subject: [mapserver-users] FORMATOPTION "PALETTE_FORCE=TRUE" problem Message-ID: <1231253771773-2117781.post@n2.nabble.com> Hi! I have tried to use the FORMATOPTION "PALETTE_FORCE=TRUE" with no luck. I've goth this error message all the time: [Tue Jan 6 15:26:05 2009].409786 msDrawMap(): Layer 3 (N500Hoydelag), 0.161s [Tue Jan 6 15:26:05 2009].409998 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 6 15:26:05 2009].410010 msDrawMap() total time: 0.170s [Tue Jan 6 15:26:05 2009].416062 Invalid number of colors in palette: Unable to access file. libpng error () [Tue Jan 6 15:26:05 2009].416108 ms_png_write_image_init(): General error message. error writing png header (via longjmp) [Tue Jan 6 15:26:05 2009].416115 msSaveImageRGBAPalette(): General error message. error in png header writing [Tue Jan 6 15:26:05 2009].416122 msSaveImage() total time: 0.006s [Tue Jan 6 15:26:05 2009].416170 mapserv request processing time (msLoadMap not incl.): 0.177s My ouputformat is defined like this: OUTPUTFORMAT NAME "png8bit" DRIVER "AGG/PNG" MIMETYPE "image/png" EXTENSION "png" FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=/opt/maps/kartdata2/mapfiles/palette.txt" FORMATOPTION INTERLACE=OFF END The palette.txt file is attached http://n2.nabble.com/file/n2117781/palette.txt palette.txt Does anyone know whats wrong? BTW: This is MapServer 5.2.1 on RedHat. Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2117781.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Tue Jan 6 07:14:48 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 6 Jan 2009 16:14:48 +0100 Subject: [mapserver-users] FORMATOPTION "PALETTE_FORCE=TRUE" problem In-Reply-To: <1231253771773-2117781.post@n2.nabble.com> References: <1231253771773-2117781.post@n2.nabble.com> Message-ID: are you calling this with a transparent=true ?? in that cas, your palette file should be a list of quadruplets (r,g,b,a) (and it would be better to have an outputformat with imagemode rgba, and use that one instead of passing transparent=true) thomas On Tue, Jan 6, 2009 at 15:56, paalkr wrote: > > Hi! > > I have tried to use the FORMATOPTION "PALETTE_FORCE=TRUE" with no luck. I've > goth this error message all the time: > > [Tue Jan 6 15:26:05 2009].409786 msDrawMap(): Layer 3 (N500Hoydelag), > 0.161s > [Tue Jan 6 15:26:05 2009].409998 msDrawMap(): Drawing Label Cache, 0.000s > [Tue Jan 6 15:26:05 2009].410010 msDrawMap() total time: 0.170s > [Tue Jan 6 15:26:05 2009].416062 Invalid number of colors in palette: > Unable to access file. libpng error () > [Tue Jan 6 15:26:05 2009].416108 ms_png_write_image_init(): General error > message. error writing png header (via longjmp) > [Tue Jan 6 15:26:05 2009].416115 msSaveImageRGBAPalette(): General error > message. error in png header writing > [Tue Jan 6 15:26:05 2009].416122 msSaveImage() total time: 0.006s > [Tue Jan 6 15:26:05 2009].416170 mapserv request processing time (msLoadMap > not incl.): 0.177s > > My ouputformat is defined like this: > > OUTPUTFORMAT > NAME "png8bit" > DRIVER "AGG/PNG" > MIMETYPE "image/png" > EXTENSION "png" > FORMATOPTION "PALETTE_FORCE=TRUE" > FORMATOPTION "PALETTE=/opt/maps/kartdata2/mapfiles/palette.txt" > FORMATOPTION INTERLACE=OFF > END > > The palette.txt file is attached > http://n2.nabble.com/file/n2117781/palette.txt palette.txt > > Does anyone know whats wrong? > BTW: This is MapServer 5.2.1 on RedHat. > > Regards, > P?l Kristensen > -- > View this message in context: http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2117781.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 dnr.state.mn.us Tue Jan 6 07:31:18 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 06 Jan 2009 09:31:18 -0600 Subject: [mapserver-users] Showing pop up for a line In-Reply-To: <4962F45D.3010103@gslab.com> References: <4961C4DB0200008F0001F2C6@co5.dnr.state.mn.us> <4962F45D.3010103@gslab.com> Message-ID: <496324E6.5157.008F.0@dnr.state.mn.us> Why not use straight MapServer queries? Set a reasonable tolerance and that should work ok too. Steve >>> On 1/6/2009 at 12:04 AM, in message <4962F45D.3010103 at gslab.com>, Subha Ramakrishnan wrote: > Hi, > > I am using Mapserver 5.0.2 with Openlayers. > I've a line layer (from mapserver) shown on my base map(google physical). > Now, when i click on a line, i want to show a pop using openlayers. > I am able to do this for a polygon layer. I send the lat,lon of the > point that is clicked and use the postgis query > "ST_Contains(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1))" to find the polygon (and fetch the polygon > specific data to show on pop up) and attach the Openlayers popup to the > point clicked. > > I am not able to do this for a line layer as the postgis query doesn't > return anything. > I tried this query also, > "ST_Contains(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1)) AND > distance(topology,geomFromText('POINT(77.87117958068927 > 13.491965860913544)',-1)) <= 1" but it doesn't work. > > Does any one know how to check if a point is a part of a line or if > there is any other way to show the pop up? > > Thanks a lot for the help. > > Regards, > Subha > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From danlittle at yahoo.com Tue Jan 6 07:52:17 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 6 Jan 2009 07:52:17 -0800 (PST) Subject: [mapserver-users] Showing pop up for a line References: <4961C4DB0200008F0001F2C6@co5.dnr.state.mn.us> <4962F45D.3010103@gslab.com> <496324E6.5157.008F.0@dnr.state.mn.us> Message-ID: <599921.26386.qm@web51411.mail.re2.yahoo.com> You may also want to use mapserver to render the lines as a raster layer instead of vector. ----- Original Message ---- > From: Steve Lime > To: Subha Ramakrishnan > Cc: mapserver-users at lists.osgeo.org > Sent: Tuesday, January 6, 2009 9:31:18 AM > Subject: Re: [mapserver-users] Showing pop up for a line > > Why not use straight MapServer queries? Set a reasonable tolerance and that > should > work ok too. > > Steve > > >>> On 1/6/2009 at 12:04 AM, in message <4962F45D.3010103 at gslab.com>, Subha > Ramakrishnan wrote: > > Hi, > > > > I am using Mapserver 5.0.2 with Openlayers. > > I've a line layer (from mapserver) shown on my base map(google physical). > > Now, when i click on a line, i want to show a pop using openlayers. > > I am able to do this for a polygon layer. I send the lat,lon of the > > point that is clicked and use the postgis query > > "ST_Contains(topology,geomFromText('POINT(77.87117958068927 > > 13.491965860913544)',-1))" to find the polygon (and fetch the polygon > > specific data to show on pop up) and attach the Openlayers popup to the > > point clicked. > > > > I am not able to do this for a line layer as the postgis query doesn't > > return anything. > > I tried this query also, > > "ST_Contains(topology,geomFromText('POINT(77.87117958068927 > > 13.491965860913544)',-1)) AND > > distance(topology,geomFromText('POINT(77.87117958068927 > > 13.491965860913544)',-1)) <= 1" but it doesn't work. > > > > Does any one know how to check if a point is a part of a line or if > > there is any other way to show the pop up? > > > > Thanks a lot for the help. > > > > Regards, > > Subha > > _______________________________________________ > > 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 simone.frigerio at unimib.it Tue Jan 6 09:37:04 2009 From: simone.frigerio at unimib.it (simone.frigerio) Date: Tue, 06 Jan 2009 18:37:04 +0100 Subject: [mapserver-users] error with GRID Message-ID: Hi! I have a problem with Esri GRID raster in my mapfile. If I have a DEM, for example, in the object layer what is the correct path that I have to use? GRID esri has a folder "DEM" and a folder INFO. The error is referred to the path of this layer, but I don't understand the real solution. Thanks. Z From russell at flora.ca Tue Jan 6 10:12:30 2009 From: russell at flora.ca (Russell McOrmond) Date: Tue, 6 Jan 2009 13:12:30 -0500 (EST) Subject: [mapserver-users] Confirmation of status of UTF8 support, and where transcoding to Latin-1 may be happening. In-Reply-To: <49613F8E.7010206@flora.ca> References: <49284AB9.9010407@flora.ca> <49613F8E.7010206@flora.ca> Message-ID: I hope people don't mind me posting as I learn things, hoping that it will spark some ideas from other people. On Sun, 4 Jan 2009, Russell McOrmond wrote: > Howard Butler wrote on November 24, 2008 @ 05:17 PM: >> pictures looked right. The problem might be as simple as the function >> msConvertWideStringToUTF8 being broken. Here's where MapServer tries to >> convert it: >> http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapsde.c#L750 > > > The more I look at this, the more confused I get. I'm now back at the customer (Xmas break), and confirmed that I'm not even making use of this code. The relevant strings are SE_STRING_TYPE and not SE_NSTRING_TYPE. I have also confirmed ( msDebug() statements) that the characters coming out of SE_stream_get_string() are Latin-1 encoded, and not UTF-8 encoded. Our database person confirmed that the data is encoded as UTF-8 in the database. This suggests to me that it is SDE itself or the libsde.so client library that is doing the transcoding to Latin-1 I'm curious if anyone knows if libsde.so has an equivalent to Oracle's NLS_LANG environment variable? It seems the decision to use STRING rather than NSTRING came down to the label functions. I haven't looked at those functions yet to determine if they need Latin-1, and thus this is why things are working with STRING (Which comes in as Latin-1) rather than NSTRING (Which the code suggests should be transcoded to UTF-8). Another issue, this time with iconv. I know this is not a mapserver issue, but it is possible that someone has seen something similar. We created some tables with strings in NSTRING. I then got the error "msConvertWideStringToUTF8(): General error message. Encoding not supported by libiconv(UTF-16)" I'm a bit stuck as any call to iconv_open() returns -1, no matter what I put for the from and to. The manual for iconv_open says that if it returns -1 that it sets errno, but it doesn't change the value. errno = 1; cd = iconv_open("ISO-8859-1", "UTF-8"); msDebug("errno= %d cd=%d\n",errno,cd); errno= 1 cd=-1 errno = 5; cd = iconv_open("UTF-8", "UTF-16"); msDebug("errno= %d cd=%d\n",errno,cd); errno= 5 cd=-1 errno = 123; cd = iconv_open("", "UTF-16"); msDebug("errno= %d cd=%d\n",errno,cd); errno= 123 cd=-1 I've tried loading the gnu iconv first, export LD_PRELOAD=/server/ndevl18/apache-2.2.9/lib/preloadable_libiconv.so ldd then shows that library first, but no difference. When I use the command line 'iconv' utility, it can convert from UTF-8 to ISO-8859-1 with no problem. Has anyone seen a problem like this? OS: Red Hat Enterprise Linux ES release 4 (Nahant Update 4) ICONV: http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.12.tar.gz > familiarity at this point) figure out what is going. It is a patch to > msEncodeHTMLEntities to encode these characters. As entities they will work > as the browser won't care what encoding it thinks the page should be in. > > I added the patch here: http://trac.osgeo.org/mapserver/ticket/2842 Turns out that while this solves my getFeatureInfo problem, it introduces more problems. The various .map files have strings in them that are UTF-8 encoded. In this situatuation we have words like "g?n?rale" coming out as "générale" when we do a request=getcapabilities Seems things are never as simple as you first think. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From jmckenna at gatewaygeomatics.com Tue Jan 6 10:17:06 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 06 Jan 2009 13:17:06 -0500 Subject: [mapserver-users] error with GRID In-Reply-To: References: Message-ID: <4963A022.9050204@gatewaygeomatics.com> simone.frigerio wrote: > Hi! > I have a problem with Esri GRID raster in my mapfile. If I have a DEM, > for example, in the object layer what is the correct path that I have to > use? GRID esri has a folder "DEM" and a folder INFO. The error is > referred to the path of this layer, but I don't understand the real > solution. > Thanks. > I believe there should be a file named "hdr.adf" in your DEM folder. You can then try the command "gdalinfo hdr.adf" on that file to see if GDAL can access that grid file. If successful then I would use that file in your DATA parameter in your mapfile layer. (I believe you can also use the DEM folder for both also, but I cannot verify right at this second) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From MMaganti at oriongis.com Tue Jan 6 11:14:27 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 6 Jan 2009 14:14:27 -0500 Subject: [mapserver-users] queryByRect throws an error Message-ID: mapObj.queryByRect(...) (using C# map script) is throwing following exception when there is an embedded scale bar on map. Exception message: "msShapefileOpen(): Unable to access file. No (NULL) filename provided.;msBuildPath: Unable to access file" Removing the scale bar from map file works fine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Tue Jan 6 11:25:42 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 6 Jan 2009 11:25:42 -0800 (PST) Subject: [mapserver-users] FORMATOPTION "PALETTE_FORCE=TRUE" problem In-Reply-To: References: <1231253771773-2117781.post@n2.nabble.com> Message-ID: <1231269942895-2118972.post@n2.nabble.com> Hi Thomas, thanks for the quick answer! Applying ",255" at the end of every record in the palette.txt file worked, but when I made the WMS GetMap request I got an image in return where all the areas that should have been transparent where black (transparent=true). When using transparent=false I got an image in return where the "nodata" areas were filled with the bgcolor parameter value, which is of course the right response. The original palette.txt file with only r,g,b values caused the mentioned error message with both transparent=true and transparent=false, but I suspected it to work in the latter case. Adding imagemode rgba didn't do any difference in any way. What exactly should the effect of adding this to the outputformat be? Regards, P?l Kristensen thomas bonfort wrote: > > are you calling this with a transparent=true ?? > in that cas, your palette file should be a list of quadruplets > (r,g,b,a) (and it would be better to have an outputformat with > imagemode rgba, and use that one instead of passing transparent=true) > > thomas > > On Tue, Jan 6, 2009 at 15:56, paalkr wrote: >> >> Hi! >> >> I have tried to use the FORMATOPTION "PALETTE_FORCE=TRUE" with no luck. >> I've >> goth this error message all the time: >> >> [Tue Jan 6 15:26:05 2009].409786 msDrawMap(): Layer 3 (N500Hoydelag), >> 0.161s >> [Tue Jan 6 15:26:05 2009].409998 msDrawMap(): Drawing Label Cache, >> 0.000s >> [Tue Jan 6 15:26:05 2009].410010 msDrawMap() total time: 0.170s >> [Tue Jan 6 15:26:05 2009].416062 Invalid number of colors in palette: >> Unable to access file. libpng error () >> [Tue Jan 6 15:26:05 2009].416108 ms_png_write_image_init(): General >> error >> message. error writing png header (via longjmp) >> [Tue Jan 6 15:26:05 2009].416115 msSaveImageRGBAPalette(): General error >> message. error in png header writing >> [Tue Jan 6 15:26:05 2009].416122 msSaveImage() total time: 0.006s >> [Tue Jan 6 15:26:05 2009].416170 mapserv request processing time >> (msLoadMap >> not incl.): 0.177s >> >> My ouputformat is defined like this: >> >> OUTPUTFORMAT >> NAME "png8bit" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> EXTENSION "png" >> FORMATOPTION "PALETTE_FORCE=TRUE" >> FORMATOPTION "PALETTE=/opt/maps/kartdata2/mapfiles/palette.txt" >> FORMATOPTION INTERLACE=OFF >> END >> >> The palette.txt file is attached >> http://n2.nabble.com/file/n2117781/palette.txt palette.txt >> >> Does anyone know whats wrong? >> BTW: This is MapServer 5.2.1 on RedHat. >> >> Regards, >> P?l Kristensen >> -- >> View this message in context: >> http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2117781.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 > > -- View this message in context: http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2118972.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Tue Jan 6 12:33:01 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 6 Jan 2009 21:33:01 +0100 Subject: [mapserver-users] queryByRect throws an error In-Reply-To: References: Message-ID: Hi, Could you provide a code/mapfile sample to reconstruct the issue? I've never experienced such a problem, I've used this function many times though. Best regards, Tamas 2009/1/6 Murty Maganti > mapObj.queryByRect(?) (using C# map script) is throwing following > exception when there is an embedded scale bar on map. > > > > Exception message: "msShapefileOpen(): Unable to access file. No (NULL) > filename provided.;msBuildPath: Unable to access file" > > > > Removing the scale bar from map file works fine. > > > > _______________________________________________ > 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 MMaganti at oriongis.com Tue Jan 6 15:31:02 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 6 Jan 2009 18:31:02 -0500 Subject: [mapserver-users] queryByRect throws an error In-Reply-To: References: Message-ID: Hi Tamas Thanks for reply. These are extracts from my code to replicate the issue //Create map object mapObj map = new mapObj("MyMap.map"); //draw map map.draw() ; //Make sure some template name is defined. Otherwise, query will not be successful. for (int i = 0; i < map.numlayers; i++) { if (string.IsNullOrEmpty(m_map.getLayer(i).template)) { m_map.getLayer(i).template = "abc"; } } //Perform the query now map.queryByRect(map.extents); I think after a call to map.draw(), a new layer '__embed__scalebar' is added to layers collection. Setting template name to it is performing the query on scalebar layer as well. I think the scalebar layer is not satisfying these two conditions in msQueryByRect method of mapquery.c and hence getting used for query if(!msIsLayerQueryable(lp)) continue; if(lp->status == MS_OFF) continue; Please let me know if you need more info or you need any test application. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, January 06, 2009 3:33 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] queryByRect throws an error Hi, Could you provide a code/mapfile sample to reconstruct the issue? I've never experienced such a problem, I've used this function many times though. Best regards, Tamas 2009/1/6 Murty Maganti mapObj.queryByRect(...) (using C# map script) is throwing following exception when there is an embedded scale bar on map. Exception message: "msShapefileOpen(): Unable to access file. No (NULL) filename provided.;msBuildPath: Unable to access file" Removing the scale bar from map file works fine. _______________________________________________ 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 thomas.bonfort at gmail.com Tue Jan 6 23:38:31 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Jan 2009 08:38:31 +0100 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: <67263AEC37164C84BE851A4D935B0407@DELL> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0CD@s-sp22.pca.state.mn.us> <67263AEC37164C84BE851A4D935B0407@DELL> Message-ID: sorry for the late answer, > To be honest, I don't know if this is the latest or not and I don't really > know what "trunk code" is :( it's the latest version from svn > So, I suppose my questions are still the same i.e. do I have to recompile > using the latest code? Yikes! yes, you'd need to recompile > Not ideal as the dots would show but they would be tiny - as I say, I could > live with that. It would be ideal if an anchor point could be specified but > how that could be done with a ttf and scaling I do not know :( the current code rotates the truetype symbol around the center of it's bounding box (the bounding box of the "ink" extent of the symbol, it ignores the advance). Specifying an anchor point (for truetype *and* other symbols) is imo not to be expected soon unless someone either provides a patch or funds the development. regards, thomas From adrian_gh.popa at romtelecom.ro Tue Jan 6 23:47:54 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed, 07 Jan 2009 09:47:54 +0200 Subject: [mapserver-users] Color palette for road-like layers In-Reply-To: <91461977-EBA9-4642-861E-03710131956E@dmsolutions.ca> References: <4963095B.8080305@romtelecom.ro> <49630DB0.4010900@gritechnologies.com> <49631BA3.7060406@romtelecom.ro> <91461977-EBA9-4642-861E-03710131956E@dmsolutions.ca> Message-ID: <49645E2A.6060001@romtelecom.ro> Thank you all for your help, I had the feeling this is how it's done, but I was hoping for a simpler approach. Anyway, now I must only find some decent colors for my layers :) Cheers, Adrian Paul Spencer wrote: > Adrian, > > that is a fairly simple trick, you need to draw roads twice to do it. > You can do that with two separate layers or two STYLE objects within a > class depending on what effect you want to achieve. > > In both cases, you just draw the road 2 pixels wider in your 'outline' > color (called a casement). For instance, assuming you are using two > STYLE objects: > > LAYER > NAME "Major Roads" > TYPE LINE > DATA myroads > CLASS > NAME "Major Roads" > STYLE #Casement style > SIZE 9 > COLOR 192 192 192 > SYMBOL "circle" > END > STYLE #Center style > SIZE 7 > COLOR 255 255 255 > SYMBOL "circle" > END > END > END > > You would use two separate layers to draw the casement and center > style if you had several layers and/or classes of roads that you > wanted to 'merge' the casements - in your google screenshoot, you > should notice that the grey casement on Hollywood St merges with the > casement on W 8th St and there is no grey line between the two center > colors, this would be how to achieve a similar effect in MapServer. > > Cheers > > Paul > > On 6-Jan-09, at 3:51 AM, Adrian Popa wrote: > >> Yes Bob, I like the roads. :) >> Can you show me how you are able to draw contours around your roads? >> >> Thanks >> >> >> Bob Basques wrote: >>> >>> Adrian, >>> >>> Would the lines used for this map work for you? >>> >>> https://gis.ci.stpaul.mn.us/gis/gismo_public/html/ >>> >>> Looks like the original Mapfile link is broken though, I'll need to >>> fix that in the morning. >>> >>> bobb >>> >>> >>> >> >> >> -- >> Adrian Popa >> >> Network Engineer >> Romtelecom S.A. >> Divizia Centrul National de Operare Retea >> Departament Transport IP & Metro >> Compartiment IP Core >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://research.dmsolutions.ca/ > > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core From thomas.bonfort at gmail.com Wed Jan 7 00:08:01 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Jan 2009 09:08:01 +0100 Subject: [mapserver-users] Color palette for road-like layers In-Reply-To: <49645E2A.6060001@romtelecom.ro> References: <4963095B.8080305@romtelecom.ro> <49630DB0.4010900@gritechnologies.com> <49631BA3.7060406@romtelecom.ro> <91461977-EBA9-4642-861E-03710131956E@dmsolutions.ca> <49645E2A.6060001@romtelecom.ro> Message-ID: there are also some planned features to simplify that syntax. (this is how the mapfile to generate the map on the mapserver fron page is written). mapserver code: http://svn.osgeo.org/mapserver/sandbox/graphics (sticking with revision 8254 unless you want to feel daring) mapfile excerpt: http://code.google.com/p/mapserver-utils/source/browse/trunk/highways.map#862 regards, thomas On Wed, Jan 7, 2009 at 08:47, Adrian Popa wrote: > Thank you all for your help, > > I had the feeling this is how it's done, but I was hoping for a simpler > approach. > > Anyway, now I must only find some decent colors for my layers :) > Cheers, > Adrian > > Paul Spencer wrote: >> >> Adrian, >> >> that is a fairly simple trick, you need to draw roads twice to do it. You >> can do that with two separate layers or two STYLE objects within a class >> depending on what effect you want to achieve. >> >> In both cases, you just draw the road 2 pixels wider in your 'outline' >> color (called a casement). For instance, assuming you are using two STYLE >> objects: >> >> LAYER >> NAME "Major Roads" >> TYPE LINE >> DATA myroads >> CLASS >> NAME "Major Roads" >> STYLE #Casement style >> SIZE 9 >> COLOR 192 192 192 >> SYMBOL "circle" >> END >> STYLE #Center style >> SIZE 7 >> COLOR 255 255 255 >> SYMBOL "circle" >> END >> END >> END >> >> You would use two separate layers to draw the casement and center style if >> you had several layers and/or classes of roads that you wanted to 'merge' >> the casements - in your google screenshoot, you should notice that the grey >> casement on Hollywood St merges with the casement on W 8th St and there is >> no grey line between the two center colors, this would be how to achieve a >> similar effect in MapServer. >> >> Cheers >> >> Paul >> >> On 6-Jan-09, at 3:51 AM, Adrian Popa wrote: >> >>> Yes Bob, I like the roads. :) >>> Can you show me how you are able to draw contours around your roads? >>> >>> Thanks >>> >>> >>> Bob Basques wrote: >>>> >>>> Adrian, >>>> >>>> Would the lines used for this map work for you? >>>> >>>> https://gis.ci.stpaul.mn.us/gis/gismo_public/html/ >>>> >>>> Looks like the original Mapfile link is broken though, I'll need to fix >>>> that in the morning. >>>> >>>> bobb >>>> >>>> >>>> >>> >>> >>> -- >>> Adrian Popa >>> >>> Network Engineer >>> Romtelecom S.A. >>> Divizia Centrul National de Operare Retea >>> Departament Transport IP & Metro >>> Compartiment IP Core >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> __________________________________________ >> >> Paul Spencer >> Chief Technology Officer >> DM Solutions Group Inc >> http://research.dmsolutions.ca/ >> >> > > > -- > Adrian Popa > > Network Engineer > Romtelecom S.A. > Divizia Centrul National de Operare Retea > Departament Transport IP & Metro > Compartiment IP Core > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Wed Jan 7 00:17:58 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Jan 2009 09:17:58 +0100 Subject: [mapserver-users] FORMATOPTION "PALETTE_FORCE=TRUE" problem In-Reply-To: <1231269942895-2118972.post@n2.nabble.com> References: <1231253771773-2117781.post@n2.nabble.com> <1231269942895-2118972.post@n2.nabble.com> Message-ID: On Tue, Jan 6, 2009 at 20:25, paalkr wrote: > > Hi Thomas, > > thanks for the quick answer! Applying ",255" at the end of every record in > the palette.txt file worked, but when I made the WMS GetMap request I got an > image in return where all the areas that should have been transparent where > black (transparent=true). When using transparent=false I got an image in > return where the "nodata" areas were filled with the bgcolor parameter > value, which is of course the right response. the quadruplet should represent the palette used by the end image, ie the alpha value cannot just be set to 255. (e.g. to keep transparency, one of the entries should be (0,0,0,0) ). you can have a look at http://trac.osgeo.org/mapserver/ticket/2436 for some examples of how to obtain this palette. > The original palette.txt file with only r,g,b values caused the mentioned > error message with both transparent=true and transparent=false, but I > suspected it to work in the latter case. are you sure you also got this with transparent=false ? > > Adding imagemode rgba didn't do any difference in any way. What exactly > should the effect of adding this to the outputformat be? outputformat with rgba: * used when a transparent background is needed * references a palette with r,g,b,a quadruplets outputformat with rgb: * used when transparency isn't needed * references a palette with r,g,b triplets regards, thomas > > > Regards, > P?l Kristensen > > > thomas bonfort wrote: >> >> are you calling this with a transparent=true ?? >> in that cas, your palette file should be a list of quadruplets >> (r,g,b,a) (and it would be better to have an outputformat with >> imagemode rgba, and use that one instead of passing transparent=true) >> >> thomas >> >> On Tue, Jan 6, 2009 at 15:56, paalkr wrote: >>> >>> Hi! >>> >>> I have tried to use the FORMATOPTION "PALETTE_FORCE=TRUE" with no luck. >>> I've >>> goth this error message all the time: >>> >>> [Tue Jan 6 15:26:05 2009].409786 msDrawMap(): Layer 3 (N500Hoydelag), >>> 0.161s >>> [Tue Jan 6 15:26:05 2009].409998 msDrawMap(): Drawing Label Cache, >>> 0.000s >>> [Tue Jan 6 15:26:05 2009].410010 msDrawMap() total time: 0.170s >>> [Tue Jan 6 15:26:05 2009].416062 Invalid number of colors in palette: >>> Unable to access file. libpng error () >>> [Tue Jan 6 15:26:05 2009].416108 ms_png_write_image_init(): General >>> error >>> message. error writing png header (via longjmp) >>> [Tue Jan 6 15:26:05 2009].416115 msSaveImageRGBAPalette(): General error >>> message. error in png header writing >>> [Tue Jan 6 15:26:05 2009].416122 msSaveImage() total time: 0.006s >>> [Tue Jan 6 15:26:05 2009].416170 mapserv request processing time >>> (msLoadMap >>> not incl.): 0.177s >>> >>> My ouputformat is defined like this: >>> >>> OUTPUTFORMAT >>> NAME "png8bit" >>> DRIVER "AGG/PNG" >>> MIMETYPE "image/png" >>> EXTENSION "png" >>> FORMATOPTION "PALETTE_FORCE=TRUE" >>> FORMATOPTION "PALETTE=/opt/maps/kartdata2/mapfiles/palette.txt" >>> FORMATOPTION INTERLACE=OFF >>> END >>> >>> The palette.txt file is attached >>> http://n2.nabble.com/file/n2117781/palette.txt palette.txt >>> >>> Does anyone know whats wrong? >>> BTW: This is MapServer 5.2.1 on RedHat. >>> >>> Regards, >>> P?l Kristensen >>> -- >>> View this message in context: >>> http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2117781.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 >> >> > > -- > View this message in context: http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2118972.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 thomas.bonfort at gmail.com Wed Jan 7 00:21:58 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Jan 2009 09:21:58 +0100 Subject: [mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick lines in the grid In-Reply-To: <1231158530303-2112673.post@n2.nabble.com> References: <1231158530303-2112673.post@n2.nabble.com> Message-ID: that's what antialiasing is supposed to do, as your 1 pixel wide grid doesn't fall exactly on a pixel. I don't think there is a workaround. regards, thomas On Mon, Jan 5, 2009 at 13:28, Maximsu wrote: > > I have very thick lines in the grid layer when i use agg/png driver. See the > map http://avia.meteonovosti.ru/index.php?index=1&icao=UUEE&iso_cntr=RU > here . They must be the 1 pixel width. With the gd/png driver all OK. Width > is set to 1 but it does not matter. Is there a way to switch off the line > antialiasing for grid layer? Or some another way to solve this problem? > There is the layer definition: > > LAYER > NAME grid2 > GROUP "Grid" > STATUS ON > TYPE LINE > LABELCACHE ON > MINSCALE 1000001 > MAXSCALE 3000000 > METADATA > GridLabelSizeMin "8" > GridLabelSizeMax "11" > END > CLASS > NAME "Graticule" > STYLE > COLOR 72 72 72 > width 1 > END > LABEL > COLOR 255 0 0 > SIZE 8 > POSITION CC > PARTIALS TRUE > BUFFER 5 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT "arial" > FORCE TRUE > END > END > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > GRID > LABELFORMAT "DD" > MinInterval 1 > MaxInterval 5 > END > END > > -- > View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2112673.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 thomas.bonfort at gmail.com Wed Jan 7 00:28:02 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Jan 2009 09:28:02 +0100 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: <495D1971.5080008@hostgis.com> References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <495D1971.5080008@hostgis.com> Message-ID: http://code.google.com/p/mapserver-utils/source/browse/trunk/ you'll need the code from the mapserver graphics sandbox (rev 8254 is preferred as it doesn't have the cairo code in it yet) regards, thomas On Thu, Jan 1, 2009 at 20:28, Gregor at HostGIS wrote: > maxphelps at netscape.net wrote: >> >> Anyone have a mapfile with the symbology corresponding to the OSM layers >> shown on the new MapServer main page? TIA. > > Ooh, that'd be neat. If so, can someone post it to the Symbology Exchange > pages of the website's wiki? We do have one "google-style streets" posting > up there now. > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mhd.muzaffar at gmail.com Wed Jan 7 01:32:14 2009 From: mhd.muzaffar at gmail.com (muzaffar hussain) Date: Wed, 7 Jan 2009 15:02:14 +0530 Subject: [mapserver-users] Getting error while executing sample application in FGS in fedora 7 Message-ID: hi all. First of all i have installed the FGS mapserver in /opt/fgs in 9000 port . after that i checked in browser by loading this URL:* http://localhost:9000/cgi-bin/mapserv* then it displays the message as * No query information to decode. QUERY_STRING is set, but empty. *Then i have created one Sample Helloworld application . For this i have created one hello.html file and i have placed that file in /*opt/fgs/www/htdocs/* * *my* **Hello.html * MapServer Hello World11
Then i have created one hello.map file and placed that file in * /opt/fgs/www/cgi-bin/ *my *hello.map *# This is our "Hello World" mapfile NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "/opt/fgs/www/htdocs/hello.html" IMAGEPATH "/opt/fgs/www/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "HELLO WORLD" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END After that i run the HTML file (hello.html) in browser as the *URL:http://localhost:9000/hello.html * It displays one button *"Click Me"* and *broken image* If i press the "Click Me" button it shows errors as * loadWeb(): Unknown identifier. Parsing error near (/opt/fgs/www/htdocs/tmp/):(line 1) *Please help me out from this problem,because i am very newbee to this mapserver and FGS Thanks in advance regards Muzaffar -------------- next part -------------- An HTML attachment was scrubbed... URL: From bokhorst at argoss.nl Wed Jan 7 02:07:36 2009 From: bokhorst at argoss.nl (Reinoud Bokhorst) Date: Wed, 07 Jan 2009 11:07:36 +0100 Subject: [mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick lines in the grid In-Reply-To: References: <1231158530303-2112673.post@n2.nabble.com> Message-ID: <49647EE8.5060005@argoss.nl> I experienced the same problem a while ago and reverted to using a separate mapfile for the graticule using the GD driver. In your 'main' mapfile you could then create a graticule layer with CONNECTIONTYPE WMS that connects to a URL using the graticule mapfile (f.ex. something like this: http://localhost/cgi/mapserv?map=graticule.map&). This way you still have one entry point for all your layers. Regards, Reinoud thomas bonfort wrote: > that's what antialiasing is supposed to do, as your 1 pixel wide grid > doesn't fall exactly on a pixel. > I don't think there is a workaround. > > regards, > thomas > > On Mon, Jan 5, 2009 at 13:28, Maximsu wrote: >> I have very thick lines in the grid layer when i use agg/png driver. See the >> map http://avia.meteonovosti.ru/index.php?index=1&icao=UUEE&iso_cntr=RU >> here . They must be the 1 pixel width. With the gd/png driver all OK. Width >> is set to 1 but it does not matter. Is there a way to switch off the line >> antialiasing for grid layer? Or some another way to solve this problem? >> There is the layer definition: >> >> LAYER >> NAME grid2 >> GROUP "Grid" >> STATUS ON >> TYPE LINE >> LABELCACHE ON >> MINSCALE 1000001 >> MAXSCALE 3000000 >> METADATA >> GridLabelSizeMin "8" >> GridLabelSizeMax "11" >> END >> CLASS >> NAME "Graticule" >> STYLE >> COLOR 72 72 72 >> width 1 >> END >> LABEL >> COLOR 255 0 0 >> SIZE 8 >> POSITION CC >> PARTIALS TRUE >> BUFFER 5 >> OUTLINECOLOR 255 255 255 >> TYPE TRUETYPE >> FONT "arial" >> FORCE TRUE >> END >> END >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> GRID >> LABELFORMAT "DD" >> MinInterval 1 >> MaxInterval 5 >> END >> END >> >> -- >> View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2112673.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 > > -- Reinoud Bokhorst Advisor Oceanography & ICT Tel: +31 (0)527-242 299 Fax: +31 (0)527-242 016 Web: www.bmtargoss.com BMT ARGOSS P.O. Box 61, 8325 ZH Vollenhove Voorsterweg 28, 8316 PT Marknesse The Netherlands ----Confidentiality Notice & Disclaimer---- The contents of this e-mail and any attachments are intended for the use of the mail addressee(s) shown. If you are not that person, you are not allowed to read it, to take any action based upon it or to copy it, forward, distribute or disclose the contents of it and you should please delete it from your system. BMT ARGOSS does not accept liability for any errors or omissions in the context of this e-mail or its attachments which arise as a result of internet transmission, nor accept liability for statements which are those of the author and clearly not made on behalf of BMT ARGOSS. From sadiqueshadab at gmail.com Wed Jan 7 03:02:53 2009 From: sadiqueshadab at gmail.com (MOHAMMED SADIQUE SHADAB) Date: Wed, 7 Jan 2009 16:32:53 +0530 Subject: [mapserver-users] Fwd: Getting error while running helloworld sample application in FGS in fedora 7 Message-ID: hi all. First of all i have installed the FGS mapserver in /opt/fgs in 9000 port . after that i checked in browser by loading this URL:* http://localhost:9000/cgi-bin/mapserv* then it displays the message as * No query information to decode. QUERY_STRING is set, but empty. *Then i have created one Sample Helloworld application . For this i have created one hello.html file and i have placed that file in /*opt/fgs/www/htdocs/* * *my* **Hello.html * MapServer Hello World11
Then i have created one hello.map file and placed that file in * /opt/fgs/www/cgi-bin/ *my *hello.map *# This is our "Hello World" mapfile NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "/opt/fgs/www/htdocs/hello.html" IMAGEPATH "/opt/fgs/www/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "HELLO WORLD" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END After that i run the HTML file (hello.html) in browser as the *URL:http://localhost:9000/hello.html * It displays one button *"Click Me"* and *broken image* If i press the "Click Me" button it shows errors as * loadWeb(): Unknown identifier. Parsing error near (/opt/fgs/www/htdocs/tmp/):(line 1) *Please help me out from this problem,because i am very newbee to this mapserver and FGS Thanks in advance regards SHADAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandricionut at yahoo.com Wed Jan 7 02:56:30 2009 From: sandricionut at yahoo.com (sandric ionut) Date: Wed, 7 Jan 2009 02:56:30 -0800 (PST) Subject: [mapserver-users] error compilation for mapserver 5.2.1 References: <1231158530303-2112673.post@n2.nabble.com> <49647EE8.5060005@argoss.nl> Message-ID: <948862.60206.qm@web51302.mail.re2.yahoo.com> Hello: ? I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I have made the proper modifications to the nmake.opt file and run the compile command as: ? nmake -f makefile.vc charp ? After several errors (which I've managed to pass), I've the following error (see bellow) ? How can I correct this? ? Thank you in advance ? Ionut ? ?... -DUSE_THREAD??? -DIGNORE_MISSING_DATA?? -DENABLE_STDERR_DEBUG??????????? -DUSE_ GD_ANTIALIAS?????? -DUSE_ZLIB??? -DUSE_AGG?? -DWIN32 -D_WIN32 /c mapraster.c /Fo mapraster.obj mapraster.c C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(327) : ?warning C4005: 'TEXT' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of 'TEXT ' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(343) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(345) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(346) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(357) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(98) : ?warning C4005: 'ERROR' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of 'ERROR ' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(879) : error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880) : error C2061: syntax error : identifier 'szlMillimeters' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880) : error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890) : error C2061: syntax error : identifier 'szlMicrometers' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890) : error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(893) : error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1103) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1104) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1105) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1106) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1557) ?: warning C4005: 'TRANSPARENT' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of 'TRAN SPARENT' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3204) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3213) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2146: syntax error : missing ')' before identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2061: syntax error : identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3228) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2146: syntax error : missing ')' before identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2061: syntax error : identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3237) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2146: syntax error : missing ')' before identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2061: syntax error : identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3255) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2146: syntax error : missing ')' before identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2061: syntax error : identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3267) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2146: syntax error : missing ')' before identifier 'lpEnhMetaHeader' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2081: 'LPENHMETAHEADER' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2061: syntax error : identifier 'lpEnhMetaHeader' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4477) ?: error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4478) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4531) ?: error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4532) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4571) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4572) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592) ?: fatal error C1003: error count exceeds 100; stopping compilation NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c l.EXE"' : return code '0x2' Stop. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sadiqueshadab at gmail.com Wed Jan 7 03:13:28 2009 From: sadiqueshadab at gmail.com (MOHAMMED SADIQUE SHADAB) Date: Wed, 7 Jan 2009 16:43:28 +0530 Subject: [mapserver-users] Unable to open file /opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing Message-ID: hi unable to generate image that is (.png) in FGS after giving the URL as URL:http://localhost:9000/cgi-bin/mapserv please help me immediately thanks regards SHADAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Jan 7 05:19:52 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 07 Jan 2009 08:19:52 -0500 Subject: [mapserver-users] Getting error while executing sample application in FGS in fedora 7 In-Reply-To: References: Message-ID: <4964ABF8.3070009@mapgears.com> muzaffar hussain wrote: > > If i press the "Click Me" button it shows errors as > > _* loadWeb(): Unknown identifier. Parsing error near > (/opt/fgs/www/htdocs/tmp/):(line 1) > > Remove the hidden form parameter for map_web_imagepath in your hello.html, it is redundant since the value is already set in your .map file. The reason for the error is that the syntax to set mapfile parameters via the URL has changed in MapServer 5.0 and using "map_web_imagepath" is no longer supported. Daniel -- Daniel Morissette http://www.mapgears.com/ From danlittle at yahoo.com Wed Jan 7 05:41:56 2009 From: danlittle at yahoo.com (Dan Little) Date: Wed, 7 Jan 2009 05:41:56 -0800 (PST) Subject: [mapserver-users] Unable to open file /opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing References: Message-ID: <496950.53540.qm@web51402.mail.re2.yahoo.com> Make sure your apache user can write to that directory, also make sure they can cd into that directory. -Duck ________________________________ From: MOHAMMED SADIQUE SHADAB To: mapserver-users at lists.osgeo.org Sent: Wednesday, January 7, 2009 5:13:28 AM Subject: [mapserver-users] Unable to open file /opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing hi unable to generate image that is (.png) in FGS after giving the URL as URL:http://localhost:9000/cgi-bin/mapserv please help me immediately thanks regards SHADAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Wed Jan 7 05:43:30 2009 From: danlittle at yahoo.com (Dan Little) Date: Wed, 7 Jan 2009 05:43:30 -0800 (PST) Subject: [mapserver-users] Fwd: Getting error while running helloworld sample application in FGS in fedora 7 References: Message-ID: <929180.72118.qm@web51403.mail.re2.yahoo.com> It's saying that because you haven't actually set any CGI parameters. Try something more like this... http:/localhost:9000/cgi-bin/mapserv?map=hello.map&mode=browse ________________________________ From: MOHAMMED SADIQUE SHADAB To: mapserver-users at lists.osgeo.org Sent: Wednesday, January 7, 2009 5:02:53 AM Subject: [mapserver-users] Fwd: Getting error while running helloworld sample application in FGS in fedora 7 hi all. First of all i have installed the FGS mapserver in /opt/fgs in 9000 port . after that i checked in browser by loading this URL:http://localhost:9000/cgi-bin/mapserv then it displays the message as No query information to decode. QUERY_STRING is set, but empty. Then i have created one Sample Helloworld application . For this i have created one hello.html file and i have placed that file in /opt/fgs/www/htdocs/ my Hello.html MapServer Hello World11
Then i have created one hello.map file and placed that file in /opt/fgs/www/cgi-bin/ my hello.map # This is our "Hello World" mapfile NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "/opt/fgs/www/htdocs/hello.html" IMAGEPATH "/opt/fgs/www/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "HELLO WORLD" END CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END After that i run the HTML file (hello.html) in browser as the URL:http://localhost:9000/hello.html It displays one button "Click Me" and broken image If i press the "Click Me" button it shows errors as loadWeb(): Unknown identifier. Parsing error near (/opt/fgs/www/htdocs/tmp/):(line 1) Please help me out from this problem,because i am very newbee to this mapserver and FGS Thanks in advance regards SHADAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Wed Jan 7 07:12:03 2009 From: pal.kristensen at statkart.no (paalkr) Date: Wed, 7 Jan 2009 07:12:03 -0800 (PST) Subject: [mapserver-users] FORMATOPTION "PALETTE_FORCE=TRUE" problem In-Reply-To: References: <1231253771773-2117781.post@n2.nabble.com> <1231269942895-2118972.post@n2.nabble.com> Message-ID: <1231341123992-2122929.post@n2.nabble.com> thomas bonfort wrote: > > >> Adding imagemode rgba didn't do any difference in any way. What exactly >> should the effect of adding this to the outputformat be? > > outputformat with rgba: > * used when a transparent background is needed > * references a palette with r,g,b,a quadruplets > > outputformat with rgb: > * used when transparency isn't needed > * references a palette with r,g,b triplets > > regards, > thomas > > Hi Thomas! Unfortunately I it does not work like you described in my situation. 1) A palette file with only r,g,b values does not work, regardless of imagemode "rgb" or imagemode "rgba". It should have worked with imagemode "rgb" (or am I wrong?) 2)Imagemode "rgb" produces transparent pictures (which should not happen if I understood you correct) if the WMS parameter transparent=true. This is with quantize_force=on and quantize_colors=256 is set, or no color reduction at all. 3)Palette_force=true with palette file and the WMS transparent=true parameter produces an image where nodata areas is filled with blacks, regardless of imagemode "rgb" or imagemode "rgba" Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2122929.html Sent from the Mapserver - User mailing list archive at Nabble.com. From maxims731 at inbox.ru Wed Jan 7 09:14:00 2009 From: maxims731 at inbox.ru (Maxim Savchenko) Date: Wed, 7 Jan 2009 09:14:00 -0800 (PST) Subject: [mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick lines in the grid In-Reply-To: References: <1231158530303-2112673.post@n2.nabble.com> Message-ID: <1231348440640-2123611.post@n2.nabble.com> But sometimes (in the over scales) it has 1px of width what i want. This problem is because the all keywords "ANTIALIASING" in the map file is ignoring by agg/png driver and no way to disable antialiasing for layer if it is not need. It is not good, i think. thomas bonfort wrote: > > that's what antialiasing is supposed to do, as your 1 pixel wide grid > doesn't fall exactly on a pixel. > I don't think there is a workaround. > > regards, > thomas > > On Mon, Jan 5, 2009 at 13:28, Maximsu wrote: >> >> I have very thick lines in the grid layer when i use agg/png driver. See >> the >> map http://avia.meteonovosti.ru/index.php?index=1&icao=UUEE&iso_cntr=RU >> here . They must be the 1 pixel width. With the gd/png driver all OK. >> Width >> is set to 1 but it does not matter. Is there a way to switch off the line >> antialiasing for grid layer? Or some another way to solve this problem? > -- View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2123611.html Sent from the Mapserver - User mailing list archive at Nabble.com. From maxims731 at inbox.ru Wed Jan 7 10:05:02 2009 From: maxims731 at inbox.ru (Maxim Savchenko) Date: Wed, 7 Jan 2009 10:05:02 -0800 (PST) Subject: [mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick lines in the grid In-Reply-To: <49647EE8.5060005@argoss.nl> References: <1231158530303-2112673.post@n2.nabble.com> <49647EE8.5060005@argoss.nl> Message-ID: <1231351502708-2123874.post@n2.nabble.com> It's too heavy way, but it is a way... Thank you for idea but i will not be using it :-) I leave this "as is" or will fallback to the gd driver better. Reinoud Bokhorst wrote: > > I experienced the same problem a while ago and reverted to using a > separate mapfile for the graticule using the GD driver. In your 'main' > mapfile you could then create a graticule layer with CONNECTIONTYPE WMS > that connects to a URL using the graticule mapfile (f.ex. something like > this: http://localhost/cgi/mapserv?map=graticule.map&). This way you still > have one entry point for all your layers. > > Regards, > Reinoud > > > thomas bonfort wrote: >> that's what antialiasing is supposed to do, as your 1 pixel wide grid >> doesn't fall exactly on a pixel. >> I don't think there is a workaround. >> >> regards, >> thomas >> >> On Mon, Jan 5, 2009 at 13:28, Maximsu wrote: >>> I have very thick lines in the grid layer when i use agg/png driver. See >>> the >>> map http://avia.meteonovosti.ru/index.php?index=1&icao=UUEE&iso_cntr=RU >>> here . They must be the 1 pixel width. With the gd/png driver all OK. >>> Width >>> is set to 1 but it does not matter. Is there a way to switch off the >>> line >>> antialiasing for grid layer? Or some another way to solve this problem? > -- View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2123874.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Wed Jan 7 10:12:08 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 7 Jan 2009 12:12:08 -0600 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA0E3@s-sp22.pca.state.mn.us> Thomas (or I guess the rest of the developers), Do you know when the next incremental MapServer release might be cut? 5.2.2? Thanks, David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Wednesday, January 07, 2009 1:39 AM To: Donald Kerr Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue sorry for the late answer, > To be honest, I don't know if this is the latest or not and I don't > really know what "trunk code" is :( it's the latest version from svn > So, I suppose my questions are still the same i.e. do I have to > recompile using the latest code? Yikes! yes, you'd need to recompile From zachc1980 at gmail.com Wed Jan 7 14:29:04 2009 From: zachc1980 at gmail.com (zach cruise) Date: Wed, 7 Jan 2009 17:29:04 -0500 Subject: [mapserver-users] website upgrade for older documentation Message-ID: great website upgrade at http://www.mapserver.org/. how can i search for older documentation like with postgresql.org? http://www.postgresql.org/docs/8.1/interactive/sql-select.html http://www.postgresql.org/docs/8.1/static/sql-select.html http://www.postgresql.org/docs/8.2/interactive/sql-select.html http://www.postgresql.org/docs/8.2/static/sql-select.html From szekerest at gmail.com Wed Jan 7 14:42:45 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 7 Jan 2009 23:42:45 +0100 Subject: [mapserver-users] error compilation for mapserver 5.2.1 In-Reply-To: <948862.60206.qm@web51302.mail.re2.yahoo.com> References: <1231158530303-2112673.post@n2.nabble.com> <49647EE8.5060005@argoss.nl> <948862.60206.qm@web51302.mail.re2.yahoo.com> Message-ID: Hi Ionut, I'm guessing the library files and the includes you're compiling against might not relate to the same version. Could you provide a diff how you alter nmake.opt when compiling mapserver? Do you use the Visual Studio Command prompt or set up the environment manually (like using vcvars32.bat or something). Best regards, Tamas 2009/1/7 sandric ionut > Hello: > > > > I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I > have made the proper modifications to the nmake.opt file and run the compile > command as: > > > > nmake -f makefile.vc charp > > > > After several errors (which I've managed to pass), I've the following error > (see bellow) > > > > How can I correct this? > > > > Thank you in advance > > > > Ionut > > > > ... > > -DUSE_THREAD -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG > -DUSE_ > GD_ANTIALIAS -DUSE_ZLIB -DUSE_AGG -DWIN32 -D_WIN32 /c > mapraster.c /Fo > mapraster.obj > mapraster.c > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\winnt.h(327) : > warning C4005: 'TEXT' : macro redefinition > h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of > 'TEXT > ' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\windef.h(343) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\windef.h(345) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\windef.h(346) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\windef.h(357) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(98) : > warning C4005: 'ERROR' : macro redefinition > h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of > 'ERROR > ' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(879) > : error C2061: syntax error : identifier 'SIZEL' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(880) > : error C2061: syntax error : identifier 'szlMillimeters' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(880) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(890) > : error C2061: syntax error : identifier 'szlMicrometers' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(890) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(893) > : error C2059: syntax error : '}' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(1103) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(1104) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(1105) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(1106) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(1557) > : warning C4005: 'TRANSPARENT' : macro redefinition > h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of > 'TRAN > SPARENT' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3025) > : error C2146: syntax error : missing ')' before identifier 'lpsize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3025) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3025) > : error C2061: syntax error : identifier 'lpsize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3025) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3025) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3049) > : error C2146: syntax error : missing ')' before identifier 'lpsize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3049) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3049) > : error C2061: syntax error : identifier 'lpsize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3049) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3049) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3203) > : error C2146: syntax error : missing ')' before identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3203) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3203) > : error C2061: syntax error : identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3203) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3204) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3212) > : error C2146: syntax error : missing ')' before identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3212) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3212) > : error C2061: syntax error : identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3212) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3213) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3227) > : error C2146: syntax error : missing ')' before identifier 'psizl' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3227) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3227) > : error C2061: syntax error : identifier 'psizl' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3227) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3228) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3236) > : error C2146: syntax error : missing ')' before identifier 'psizl' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3236) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3236) > : error C2061: syntax error : identifier 'psizl' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3236) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3237) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3254) > : error C2146: syntax error : missing ')' before identifier 'lpSize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3254) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3254) > : error C2061: syntax error : identifier 'lpSize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3254) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3255) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3266) > : error C2146: syntax error : missing ')' before identifier 'lpSize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3266) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3266) > : error C2061: syntax error : identifier 'lpSize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3266) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3267) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3489) > : error C2146: syntax error : missing ')' before identifier 'lpsize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3489) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3489) > : error C2061: syntax error : identifier 'lpsize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3489) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3489) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3491) > : error C2146: syntax error : missing ')' before identifier 'lpsize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3491) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3491) > : error C2061: syntax error : identifier 'lpsize' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3491) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3491) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3727) > : error C2146: syntax error : missing ')' before identifier > 'lpEnhMetaHeader' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3727) > : error C2081: 'LPENHMETAHEADER' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3727) > : error C2061: syntax error : identifier 'lpEnhMetaHeader' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3727) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(3727) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4009) > : error C2146: syntax error : missing ')' before identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4009) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4009) > : error C2061: syntax error : identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4009) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4009) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4011) > : error C2146: syntax error : missing ')' before identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4011) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4011) > : error C2061: syntax error : identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4011) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4011) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4016) > : error C2146: syntax error : missing ')' before identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4016) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4016) > : error C2061: syntax error : identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4016) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4016) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4017) > : error C2146: syntax error : missing ')' before identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4017) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4017) > : error C2061: syntax error : identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4017) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4017) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4018) > : error C2146: syntax error : missing ')' before identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4018) > : error C2081: 'LPSIZE' : name in formal parameter list illegal > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4018) > : error C2061: syntax error : identifier 'lpsz' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4018) > : error C2059: syntax error : ';' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4018) > : error C2059: syntax error : ')' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4477) > : error C2061: syntax error : identifier 'SIZEL' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4478) > : error C2059: syntax error : '}' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4531) > : error C2061: syntax error : identifier 'SIZEL' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4532) > : error C2059: syntax error : '}' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4571) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4572) > : error C2059: syntax error : '}' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4592) > : error C2059: syntax error : 'constant' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\wingdi.h(4592) > : fatal error C1003: error count exceeds 100; stopping compilation > NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio > 8\VC\BIN\c > l.EXE"' : return code '0x2' > Stop. > > > _______________________________________________ > 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 dnr.state.mn.us Wed Jan 7 14:52:19 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 07 Jan 2009 16:52:19 -0600 Subject: [mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick linesin the grid In-Reply-To: <1231351502708-2123874.post@n2.nabble.com> References: <1231158530303-2112673.post@n2.nabble.com> <49647EE8.5060005@argoss.nl> <1231351502708-2123874.post@n2.nabble.com> Message-ID: <4964DDC4.5157.008F.0@dnr.state.mn.us> If you're adventurous you could try the dev trunk from svn. It supports fractional line widths so it's easier to get very fine line work from AGG. Steve >>> On 1/7/2009 at 12:05 PM, in message <1231351502708-2123874.post at n2.nabble.com>, Maxim Savchenko wrote: > It's too heavy way, but it is a way... Thank you for idea but i will not be > using it :-) I leave this "as is" or will fallback to the gd driver better. > > > Reinoud Bokhorst wrote: >> >> I experienced the same problem a while ago and reverted to using a >> separate mapfile for the graticule using the GD driver. In your 'main' >> mapfile you could then create a graticule layer with CONNECTIONTYPE WMS >> that connects to a URL using the graticule mapfile (f.ex. something like >> this: http://localhost/cgi/mapserv?map=graticule.map&). This way you still >> have one entry point for all your layers. >> >> Regards, >> Reinoud >> >> >> thomas bonfort wrote: >>> that's what antialiasing is supposed to do, as your 1 pixel wide grid >>> doesn't fall exactly on a pixel. >>> I don't think there is a workaround. >>> >>> regards, >>> thomas >>> >>> On Mon, Jan 5, 2009 at 13:28, Maximsu wrote: >>>> I have very thick lines in the grid layer when i use agg/png driver. See >>>> the >>>> map http://avia.meteonovosti.ru/index.php?index=1&icao=UUEE&iso_cntr=RU >>>> here . They must be the 1 pixel width. With the gd/png driver all OK. >>>> Width >>>> is set to 1 but it does not matter. Is there a way to switch off the >>>> line >>>> antialiasing for grid layer? Or some another way to solve this problem? >> From szekerest at gmail.com Wed Jan 7 15:10:59 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 8 Jan 2009 00:10:59 +0100 Subject: [mapserver-users] queryByRect throws an error In-Reply-To: References: Message-ID: Hi Murty, Yes, you're correct. By setting the template parameter of these internal layers like __embed__legend or __embed__scalebar causes the behaviour you've reported before. However I'm not sure it should be denoted as a bug since you could easily skip setting these parameters in your code. Skipping these layers in the mapserver query code may cause slower execution which is undesirable in most cases. I'm guessing there might be some other occurrences where altering these special layers in mapscript may also cause unexpected results. Best regards, Tamas 2009/1/7 Murty Maganti > Hi Tamas > > > > Thanks for reply. > > > > These are extracts from my code to replicate the issue > > > > //Create map object > > mapObj map = new mapObj("MyMap.map"); > > > > //draw map > > map.draw() ; > > > > //Make sure some template name is defined. Otherwise, query will not be > successful. > > for (int i = 0; i < map.numlayers; i++) > > { > > if (string.IsNullOrEmpty(m_map.getLayer(i).template)) > > { > > m_map.getLayer(i).template = "abc"; > > } > > } > > > > //Perform the query now > > map.queryByRect(map.extents); > > > > > > I think after a call to map.draw(), a new layer '__embed__scalebar' is > added to layers collection. Setting template name to it is performing the > query on scalebar layer as well. > > > > I think the scalebar layer is not satisfying these two conditions in > msQueryByRect method of mapquery.c and hence getting used for query > > > > if(!msIsLayerQueryable(lp)) continue; > > if(lp->status == MS_OFF) continue; > > > > > > Please let me know if you need more info or you need any test application. > > > > > > Thanks > > Murty > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Tuesday, January 06, 2009 3:33 PM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] queryByRect throws an error > > > > Hi, > > Could you provide a code/mapfile sample to reconstruct the issue? I've > never experienced such a problem, I've used this function many times though. > > Best regards, > > Tamas > > > 2009/1/6 Murty Maganti > > mapObj.queryByRect(?) (using C# map script) is throwing following > exception when there is an embedded scale bar on map. > > > > Exception message: "msShapefileOpen(): Unable to access file. No (NULL) > filename provided.;msBuildPath: Unable to access file" > > > > Removing the scale bar from map file works fine. > > > > > _______________________________________________ > 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 randre at gmail.com Wed Jan 7 15:50:18 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 7 Jan 2009 15:50:18 -0800 Subject: [mapserver-users] RESAMPLE types available as PROCESSING directives Message-ID: <9c2015090901071550y501ac5fahdf06228897dd2da7@mail.gmail.com> Hi All, I'm curious to know if the BICUBIC resampling option is available as a processing directive in Mapserver 5.2? I see it mentioned in an RFC, http://mapserver.org/development/rfc/ms-rfc-4.html#rfc4, but not in the raster data documentation at http://mapserver.org/input/raster.html#special-processing-directives. I've tried using BICUBIC and it doesn't seem to do anything. Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Wed Jan 7 16:20:29 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 7 Jan 2009 16:20:29 -0800 Subject: [mapserver-users] Re: RESAMPLE types available as PROCESSING directives In-Reply-To: <9c2015090901071618n2e5ab21es5d77113b2ce53797@mail.gmail.com> References: <9c2015090901071550y501ac5fahdf06228897dd2da7@mail.gmail.com> <9c2015090901071618n2e5ab21es5d77113b2ce53797@mail.gmail.com> Message-ID: <9c2015090901071620p4da8cc2co1accdee144c11e54@mail.gmail.com> Wait... maybe they are not gdal-based. Never mind. That's a fair bit of code to implement. -- On Wed, Jan 7, 2009 at 4:18 PM, Roger Andr? wrote: > Ok, I've kind of answered my own question. mapresample.c only has the > following 3 resampling options below, but is it possible to add BICUBIC into > this? It seems like these are gdal reasampling methods, so it should be > possible. > > /* -------------------------------------------------------------------- */ > /* Perform the resampling. */ > /* -------------------------------------------------------------------- */ > if( EQUAL(resampleMode,"AVERAGE") ) > result = > msAverageRasterResampler( srcImage, layer->offsite, image, > anCMap, msApproxTransformer, > pACBData, > layer->debug ); > else if( EQUAL(resampleMode,"BILINEAR") ) > result = > msBilinearRasterResampler( srcImage, layer->offsite, image, > anCMap, msApproxTransformer, > pACBData, > layer->debug ); > else > result = > msNearestRasterResampler( srcImage, layer->offsite, image, > anCMap, msApproxTransformer, > pACBData, > layer->debug ); > > > > On Wed, Jan 7, 2009 at 3:50 PM, Roger Andr? wrote: > >> Hi All, >> >> I'm curious to know if the BICUBIC resampling option is available as a >> processing directive in Mapserver 5.2? I see it mentioned in an RFC, >> http://mapserver.org/development/rfc/ms-rfc-4.html#rfc4, but not in the >> raster data documentation at >> http://mapserver.org/input/raster.html#special-processing-directives. >> >> I've tried using BICUBIC and it doesn't seem to do anything. >> >> Thanks, >> >> Roger >> -- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Wed Jan 7 16:18:07 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 7 Jan 2009 16:18:07 -0800 Subject: [mapserver-users] Re: RESAMPLE types available as PROCESSING directives In-Reply-To: <9c2015090901071550y501ac5fahdf06228897dd2da7@mail.gmail.com> References: <9c2015090901071550y501ac5fahdf06228897dd2da7@mail.gmail.com> Message-ID: <9c2015090901071618n2e5ab21es5d77113b2ce53797@mail.gmail.com> Ok, I've kind of answered my own question. mapresample.c only has the following 3 resampling options below, but is it possible to add BICUBIC into this? It seems like these are gdal reasampling methods, so it should be possible. /* -------------------------------------------------------------------- */ /* Perform the resampling. */ /* -------------------------------------------------------------------- */ if( EQUAL(resampleMode,"AVERAGE") ) result = msAverageRasterResampler( srcImage, layer->offsite, image, anCMap, msApproxTransformer, pACBData, layer->debug ); else if( EQUAL(resampleMode,"BILINEAR") ) result = msBilinearRasterResampler( srcImage, layer->offsite, image, anCMap, msApproxTransformer, pACBData, layer->debug ); else result = msNearestRasterResampler( srcImage, layer->offsite, image, anCMap, msApproxTransformer, pACBData, layer->debug ); On Wed, Jan 7, 2009 at 3:50 PM, Roger Andr? wrote: > Hi All, > > I'm curious to know if the BICUBIC resampling option is available as a > processing directive in Mapserver 5.2? I see it mentioned in an RFC, > http://mapserver.org/development/rfc/ms-rfc-4.html#rfc4, but not in the > raster data documentation at > http://mapserver.org/input/raster.html#special-processing-directives. > > I've tried using BICUBIC and it doesn't seem to do anything. > > Thanks, > > Roger > -- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian_gh.popa at romtelecom.ro Wed Jan 7 23:21:24 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Thu, 08 Jan 2009 09:21:24 +0200 Subject: [mapserver-users] Color palette for road-like layers In-Reply-To: <49648E69020000A80000FDCC@jeckle> References: <49648E69020000A80000FDCC@jeckle> Message-ID: <4965A974.1090608@romtelecom.ro> Hello Bob, Your resources are very useful! Thank you very much! Bob Basques wrote: > Adrian, > > There are a few online color schemers that you might be interested in. They set up some nice complimentary color schemes for you automatically. > > Some of them also address the fact that there are also color blind folks out there. > > Some that I know of: > > http://www.colorschemer.com/online.html > http://www.wellstyled.com/tools/colorscheme2/index-en.html > http://www.wellstyled.com/tools/colorscheme2/index-en.html > > bobb > > > > > >>>> Adrian Popa 01/07/09 11:03 AM >>> >>>> > Yeah, but sadly I am stuck with mapserver 4.10, which doesn't even have > AGG support :( I'll have to wait until we upgrade to a newer server to > start fresh with the new version > > Bob Basques wrote: > >> Adrian, >> >> No problem. >> >> You should be aware, that the newer versions of MapServer (I think still dev) have the option of setting outline/edge colors and widths. My approach is really old school. The newer methods only involve cycling through the data once and painting vs my stacking approach. >> >> Once that stuff boils down some more I'll probably examine it for conversion of the googlish map file as well. >> >> bobb >> >> >> >> >> >>>>> Adrian Popa 01/07/09 12:55 AM >>> >>>>> >>>>> >> Hello Bob, >> Thank you for your help. I had a feeling that you would get those nice >> road features by overlaying layers, but I was keeping my fingers crossed >> for a simpler, alternate method. >> I will shamelessly steal the colors in your map :) >> >> Thanks again, >> Adrian >> >> Bob Basques wrote: >> >> >>> Adrian, >>> >>> See attached for example Mapfile. Basically think layering, as in drawing the line more than one, by stacking lines on top of each other. >>> >>> bobb >>> >>> >>> >>> >>> >>> >>>>>> Adrian Popa 01/06/09 1:48 AM >>> >>>>>> >>>>>> >>>>>> >>> Happy new year everyone! >>> >>> I need your help with the aesthetics of my mapserver application. I am >>> drawing the map of a country (with cities and villages) and also a layer >>> of fiber optics (which can be approximated with a road layer). I have >>> the fiber separated by capacity (STM1 being the lowest capacity, going >>> to STM64 witch is the highest capacity). >>> >>> Currently I am differentiating between fiber of different capacities by >>> using different colors and different line thickness. Unfortunately, it >>> isn't so pleasant on the eye (see attachment). >>> >>> Can you share the colors you use to draw the following elements - so I >>> can model my map to look a bit better? >>> - map background (I'm not using raster images) >>> - cities >>> - small towns/villages >>> - roads >>> - rivers >>> - text elements >>> >>> Also, a small screen capture, to show the colors would be nice. >>> >>> I have an additional question: can elements such as roads be drawn in >>> such a way that they look like google maps (see second attachment) - >>> meaning not just a single color, but apparently color + boundries? >>> >>> Thank you for your help >>> >>> >>> >>> >> >> > > > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandricionut at yahoo.com Thu Jan 8 00:10:42 2009 From: sandricionut at yahoo.com (sandric ionut) Date: Thu, 8 Jan 2009 00:10:42 -0800 (PST) Subject: [mapserver-users] error compilation for mapserver 5.2.1 References: <1231158530303-2112673.post@n2.nabble.com> <49647EE8.5060005@argoss.nl> <948862.60206.qm@web51302.mail.re2.yahoo.com> Message-ID: <120555.10973.qm@web51310.mail.re2.yahoo.com> Hi Tamas: I have attached the nmake.opt file. I have downloaded the source code for mapserver 5.2.1. from the mapserver website and than I have followed the intructions to compile mapserver I have tried with both visual studio command promt and vcvars32.bat. I get the same error Thank you, Ionut ________________________________ From: Tamas Szekeres To: sandric ionut Cc: mapserver-users at lists.osgeo.org Sent: Thursday, January 8, 2009 12:42:45 AM Subject: Re: [mapserver-users] error compilation for mapserver 5.2.1 Hi Ionut, I'm guessing the library files and the includes you're compiling against might not relate to the same version. Could you provide a diff how you alter nmake.opt when compiling mapserver? Do you use the Visual Studio Command prompt or set up the environment manually (like using vcvars32.bat or something). Best regards, Tamas 2009/1/7 sandric ionut Hello: ? I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I have made the proper modifications to the nmake.opt file and run the compile command as: ? nmake -f makefile.vc charp ? After several errors (which I've managed to pass), I've the following error (see bellow) ? How can I correct this? ? Thank you in advance ? Ionut ? ?... -DUSE_THREAD??? -DIGNORE_MISSING_DATA?? -DENABLE_STDERR_DEBUG??????????? -DUSE_ GD_ANTIALIAS?????? -DUSE_ZLIB??? -DUSE_AGG?? -DWIN32 -D_WIN32 /c mapraster.c /Fo mapraster.obj mapraster.c C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(327) : ?warning C4005: 'TEXT' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of 'TEXT ' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(343) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(345) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(346) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(357) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(98) : ?warning C4005: 'ERROR' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of 'ERROR ' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(879) : error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880) : error C2061: syntax error : identifier 'szlMillimeters' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880) : error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890) : error C2061: syntax error : identifier 'szlMicrometers' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890) : error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(893) : error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1103) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1104) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1105) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1106) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1557) ?: warning C4005: 'TRANSPARENT' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of 'TRAN SPARENT' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3204) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3213) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2146: syntax error : missing ')' before identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2061: syntax error : identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3228) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2146: syntax error : missing ')' before identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2061: syntax error : identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3237) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2146: syntax error : missing ')' before identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2061: syntax error : identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3255) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2146: syntax error : missing ')' before identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2061: syntax error : identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3267) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2146: syntax error : missing ')' before identifier 'lpEnhMetaHeader' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2081: 'LPENHMETAHEADER' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2061: syntax error : identifier 'lpEnhMetaHeader' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4477) ?: error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4478) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4531) ?: error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4532) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4571) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4572) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592) ?: fatal error C1003: error count exceeds 100; stopping compilation NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c l.EXE"' : return code '0x2' Stop. _______________________________________________ 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 sandricionut at yahoo.com Thu Jan 8 00:17:32 2009 From: sandricionut at yahoo.com (sandric ionut) Date: Thu, 8 Jan 2009 00:17:32 -0800 (PST) Subject: Fw: [mapserver-users] error compilation for mapserver 5.2.1 Message-ID: <825507.28809.qm@web51308.mail.re2.yahoo.com> Sorry: And the nmake.opt file Hi Tamas: I have attached the nmake.opt file. I have downloaded the source code for mapserver 5.2.1. from the mapserver website and than I have followed the intructions to compile mapserver I have tried with both visual studio command promt and vcvars32.bat. I get the same error Thank you, Ionut ________________________________ From: Tamas Szekeres To: sandric ionut Cc: mapserver-users at lists.osgeo.org Sent: Thursday, January 8, 2009 12:42:45 AM Subject: Re: [mapserver-users] error compilation for mapserver 5.2.1 Hi Ionut, I'm guessing the library files and the includes you're compiling against might not relate to the same version. Could you provide a diff how you alter nmake.opt when compiling mapserver? Do you use the Visual Studio Command prompt or set up the environment manually (like using vcvars32.bat or something). Best regards, Tamas 2009/1/7 sandric ionut Hello: ? I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I have made the proper modifications to the nmake.opt file and run the compile command as: ? nmake -f makefile.vc charp ? After several errors (which I've managed to pass), I've the following error (see bellow) ? How can I correct this? ? Thank you in advance ? Ionut ? ?... -DUSE_THREAD??? -DIGNORE_MISSING_DATA?? -DENABLE_STDERR_DEBUG??????????? -DUSE_ GD_ANTIALIAS?????? -DUSE_ZLIB??? -DUSE_AGG?? -DWIN32 -D_WIN32 /c mapraster.c /Fo mapraster.obj mapraster.c C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(327) : ?warning C4005: 'TEXT' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of 'TEXT ' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(343) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(345) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(346) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(357) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(98) : ?warning C4005: 'ERROR' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of 'ERROR ' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(879) : error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880) : error C2061: syntax error : identifier 'szlMillimeters' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880) : error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890) : error C2061: syntax error : identifier 'szlMicrometers' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890) : error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(893) : error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1103) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1104) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1105) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1106) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1557) ?: warning C4005: 'TRANSPARENT' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of 'TRAN SPARENT' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3204) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3213) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2146: syntax error : missing ')' before identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2061: syntax error : identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3228) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2146: syntax error : missing ')' before identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2061: syntax error : identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3237) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2146: syntax error : missing ')' before identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2061: syntax error : identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3255) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2146: syntax error : missing ')' before identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2061: syntax error : identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3267) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2146: syntax error : missing ')' before identifier 'lpEnhMetaHeader' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2081: 'LPENHMETAHEADER' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2061: syntax error : identifier 'lpEnhMetaHeader' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4477) ?: error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4478) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4531) ?: error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4532) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4571) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4572) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592) ?: fatal error C1003: error count exceeds 100; stopping compilation NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c l.EXE"' : return code '0x2' Stop. _______________________________________________ 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: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nmake.opt URL: From szekerest at gmail.com Thu Jan 8 01:28:17 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 8 Jan 2009 10:28:17 +0100 Subject: Fw: [mapserver-users] error compilation for mapserver 5.2.1 In-Reply-To: <825507.28809.qm@web51308.mail.re2.yahoo.com> References: <825507.28809.qm@web51308.mail.re2.yahoo.com> Message-ID: Hi, We use MSVC_VER=1400 setting with MSVC2005 and SWIG-1-3-33, but I'll also try to compile with a newer version. Does this problem occurs when compiling the csharp stuff solely? Best regards, Tamas 2009/1/8 sandric ionut > Sorry: > > And the nmake.opt file > > > Hi Tamas: > > I have attached the nmake.opt file. I have downloaded the source code for > mapserver 5.2.1. from the mapserver website and than I have followed the > intructions to compile mapserver > > I have tried with both visual studio command promt and vcvars32.bat. I get > the same error > > Thank you, > > Ionut > > ------------------------------ > *From:* Tamas Szekeres > *To:* sandric ionut > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Thursday, January 8, 2009 12:42:45 AM > *Subject:* Re: [mapserver-users] error compilation for mapserver 5.2.1 > > Hi Ionut, > > I'm guessing the library files and the includes you're compiling against > might not relate to the same version. Could you provide a diff how you alter > nmake.opt when compiling mapserver? Do you use the Visual Studio Command > prompt or set up the environment manually (like using vcvars32.bat or > something). > > Best regards, > > Tamas > > > > 2009/1/7 sandric ionut > >> Hello: >> >> >> >> I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I >> have made the proper modifications to the nmake.opt file and run the compile >> command as: >> >> >> >> nmake -f makefile.vc charp >> >> >> >> After several errors (which I've managed to pass), I've the following >> error (see bellow) >> >> >> >> How can I correct this? >> >> >> >> Thank you in advance >> >> >> >> Ionut >> >> >> >> ... >> >> -DUSE_THREAD -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG >> -DUSE_ >> GD_ANTIALIAS -DUSE_ZLIB -DUSE_AGG -DWIN32 -D_WIN32 /c >> mapraster.c /Fo >> mapraster.obj >> mapraster.c >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\winnt.h(327) : >> warning C4005: 'TEXT' : macro redefinition >> h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of >> 'TEXT >> ' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\windef.h(343) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\windef.h(345) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\windef.h(346) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\windef.h(357) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(98) : >> warning C4005: 'ERROR' : macro redefinition >> h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of >> 'ERROR >> ' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(879) >> : error C2061: syntax error : identifier 'SIZEL' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(880) >> : error C2061: syntax error : identifier 'szlMillimeters' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(880) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(890) >> : error C2061: syntax error : identifier 'szlMicrometers' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(890) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(893) >> : error C2059: syntax error : '}' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(1103) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(1104) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(1105) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(1106) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(1557) >> : warning C4005: 'TRANSPARENT' : macro redefinition >> h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of >> 'TRAN >> SPARENT' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3025) >> : error C2146: syntax error : missing ')' before identifier 'lpsize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3025) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3025) >> : error C2061: syntax error : identifier 'lpsize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3025) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3025) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3049) >> : error C2146: syntax error : missing ')' before identifier 'lpsize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3049) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3049) >> : error C2061: syntax error : identifier 'lpsize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3049) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3049) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3203) >> : error C2146: syntax error : missing ')' before identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3203) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3203) >> : error C2061: syntax error : identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3203) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3204) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3212) >> : error C2146: syntax error : missing ')' before identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3212) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3212) >> : error C2061: syntax error : identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3212) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3213) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3227) >> : error C2146: syntax error : missing ')' before identifier 'psizl' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3227) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3227) >> : error C2061: syntax error : identifier 'psizl' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3227) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3228) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3236) >> : error C2146: syntax error : missing ')' before identifier 'psizl' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3236) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3236) >> : error C2061: syntax error : identifier 'psizl' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3236) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3237) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3254) >> : error C2146: syntax error : missing ')' before identifier 'lpSize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3254) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3254) >> : error C2061: syntax error : identifier 'lpSize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3254) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3255) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3266) >> : error C2146: syntax error : missing ')' before identifier 'lpSize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3266) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3266) >> : error C2061: syntax error : identifier 'lpSize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3266) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3267) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3489) >> : error C2146: syntax error : missing ')' before identifier 'lpsize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3489) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3489) >> : error C2061: syntax error : identifier 'lpsize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3489) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3489) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3491) >> : error C2146: syntax error : missing ')' before identifier 'lpsize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3491) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3491) >> : error C2061: syntax error : identifier 'lpsize' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3491) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3491) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3727) >> : error C2146: syntax error : missing ')' before identifier >> 'lpEnhMetaHeader' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3727) >> : error C2081: 'LPENHMETAHEADER' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3727) >> : error C2061: syntax error : identifier 'lpEnhMetaHeader' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3727) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(3727) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4009) >> : error C2146: syntax error : missing ')' before identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4009) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4009) >> : error C2061: syntax error : identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4009) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4009) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4011) >> : error C2146: syntax error : missing ')' before identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4011) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4011) >> : error C2061: syntax error : identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4011) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4011) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4016) >> : error C2146: syntax error : missing ')' before identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4016) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4016) >> : error C2061: syntax error : identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4016) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4016) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4017) >> : error C2146: syntax error : missing ')' before identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4017) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4017) >> : error C2061: syntax error : identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4017) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4017) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4018) >> : error C2146: syntax error : missing ')' before identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4018) >> : error C2081: 'LPSIZE' : name in formal parameter list illegal >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4018) >> : error C2061: syntax error : identifier 'lpsz' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4018) >> : error C2059: syntax error : ';' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4018) >> : error C2059: syntax error : ')' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4477) >> : error C2061: syntax error : identifier 'SIZEL' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4478) >> : error C2059: syntax error : '}' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4531) >> : error C2061: syntax error : identifier 'SIZEL' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4532) >> : error C2059: syntax error : '}' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4571) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4572) >> : error C2059: syntax error : '}' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4592) >> : error C2059: syntax error : 'constant' >> C:\Program Files\Microsoft Visual Studio >> 8\VC\PlatformSDK\include\wingdi.h(4592) >> : fatal error C1003: error count exceeds 100; stopping compilation >> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio >> 8\VC\BIN\c >> l.EXE"' : return code '0x2' >> Stop. >> >> >> _______________________________________________ >> 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 maxims731 at inbox.ru Thu Jan 8 01:41:49 2009 From: maxims731 at inbox.ru (Maxim Savchenko) Date: Thu, 8 Jan 2009 01:41:49 -0800 (PST) Subject: [mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick linesin the grid In-Reply-To: <4964DDC4.5157.008F.0@dnr.state.mn.us> References: <1231158530303-2112673.post@n2.nabble.com> <49647EE8.5060005@argoss.nl> <1231351502708-2123874.post@n2.nabble.com> <4964DDC4.5157.008F.0@dnr.state.mn.us> Message-ID: <1231407709704-2127104.post@n2.nabble.com> Do you know is this option will be available in the next version? Steve Lime wrote: > > If you're adventurous you could try the dev trunk from svn. It supports > fractional line widths so > it's easier to get very fine line work from AGG. > > Steve > >>>> On 1/7/2009 at 12:05 PM, in message >>>> <1231351502708-2123874.post at n2.nabble.com>, > Maxim Savchenko wrote: > >> It's too heavy way, but it is a way... Thank you for idea but i will not >> be >> using it :-) I leave this "as is" or will fallback to the gd driver >> better. >> >> >> Reinoud Bokhorst wrote: >>> >>> I experienced the same problem a while ago and reverted to using a >>> separate mapfile for the graticule using the GD driver. In your 'main' >>> mapfile you could then create a graticule layer with CONNECTIONTYPE WMS >>> that connects to a URL using the graticule mapfile (f.ex. something like >>> this: http://localhost/cgi/mapserv?map=graticule.map&). This way you >>> still >>> have one entry point for all your layers. >>> > -- View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2127104.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sandricionut at yahoo.com Thu Jan 8 02:04:28 2009 From: sandricionut at yahoo.com (sandric ionut) Date: Thu, 8 Jan 2009 02:04:28 -0800 (PST) Subject: Fw: Fw: [mapserver-users] error compilation for mapserver 5.2.1 Message-ID: <239170.66383.qm@web51312.mail.re2.yahoo.com> ----- Forwarded Message ---- From: sandric ionut To: Tamas Szekeres Sent: Thursday, January 8, 2009 12:04:00 PM Subject: Re: Fw: [mapserver-users] error compilation for mapserver 5.2.1 Hi: I have modified with MSVC_VER = 1400 I have downloaded the swigwin-1.3.37-rc1, which is the newest version. I didn't understood what to modify for SWIG ? This problem occurs when I try to compile the Mapserver 5.2.1, not the mapscript solely. If I try to compile only the mapscript I get LINK : fatal error LNK1104: cannot open file '../../mapserver_i.lib' (I think because mapserver is not compiled yet) Thank you, Ionut ________________________________ From: Tamas Szekeres To: sandric ionut Cc: MapserverList OSGEO Sent: Thursday, January 8, 2009 11:28:17 AM Subject: Re: Fw: [mapserver-users] error compilation for mapserver 5.2.1 Hi, We use MSVC_VER=1400 setting with MSVC2005 and SWIG-1-3-33, but I'll also try to compile with a newer version. Does this problem occurs when compiling the csharp stuff solely? Best regards, Tamas ? 2009/1/8 sandric ionut Sorry: And the nmake.opt file Hi Tamas: I have attached the nmake.opt file. I have downloaded the source code for mapserver 5.2.1. from the mapserver website and than I have followed the intructions to compile mapserver I have tried with both visual studio command promt and vcvars32.bat. I get the same error Thank you, Ionut ________________________________ From: Tamas Szekeres To: sandric ionut Cc: mapserver-users at lists.osgeo.org Sent: Thursday, January 8, 2009 12:42:45 AM Subject: Re: [mapserver-users] error compilation for mapserver 5.2.1 Hi Ionut, I'm guessing the library files and the includes you're compiling against might not relate to the same version. Could you provide a diff how you alter nmake.opt when compiling mapserver? Do you use the Visual Studio Command prompt or set up the environment manually (like using vcvars32.bat or something). Best regards, Tamas 2009/1/7 sandric ionut Hello: ? I try to compile mapserver 5.2.1. using Microsoft Visual Studio 2005. I have made the proper modifications to the nmake.opt file and run the compile command as: ? nmake -f makefile.vc charp ? After several errors (which I've managed to pass), I've the following error (see bellow) ? How can I correct this? ? Thank you in advance ? Ionut ? ?... -DUSE_THREAD??? -DIGNORE_MISSING_DATA?? -DENABLE_STDERR_DEBUG??????????? -DUSE_ GD_ANTIALIAS?????? -DUSE_ZLIB??? -DUSE_AGG?? -DWIN32 -D_WIN32 /c mapraster.c /Fo mapraster.obj mapraster.c C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(327) : ?warning C4005: 'TEXT' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(123) : see previous definition of 'TEXT ' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(343) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(345) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(346) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(357) : error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(98) : ?warning C4005: 'ERROR' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(52) : see previous definition of 'ERROR ' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(879) : error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880) : error C2061: syntax error : identifier 'szlMillimeters' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(880) : error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890) : error C2061: syntax error : identifier 'szlMicrometers' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(890) : error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(893) : error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1103) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1104) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1105) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1106) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(1557) ?: warning C4005: 'TRANSPARENT' : macro redefinition ??????? h:\kit\mapserver-5.2.1\mapfile.h(130) : see previous definition of 'TRAN SPARENT' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3025) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3049) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3203) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3204) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3212) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3213) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2146: syntax error : missing ')' before identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2061: syntax error : identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3227) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3228) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2146: syntax error : missing ')' before identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2061: syntax error : identifier 'psizl' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3236) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3237) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2146: syntax error : missing ')' before identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2061: syntax error : identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3254) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3255) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2146: syntax error : missing ')' before identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2061: syntax error : identifier 'lpSize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3266) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3267) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3489) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2146: syntax error : missing ')' before identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2061: syntax error : identifier 'lpsize' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3491) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2146: syntax error : missing ')' before identifier 'lpEnhMetaHeader' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2081: 'LPENHMETAHEADER' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2061: syntax error : identifier 'lpEnhMetaHeader' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(3727) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4009) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4011) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4016) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4017) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2146: syntax error : missing ')' before identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2081: 'LPSIZE' : name in formal parameter list illegal C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2061: syntax error : identifier 'lpsz' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2059: syntax error : ';' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4018) ?: error C2059: syntax error : ')' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4477) ?: error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4478) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4531) ?: error C2061: syntax error : identifier 'SIZEL' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4532) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4571) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4572) ?: error C2059: syntax error : '}' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592) ?: error C2059: syntax error : 'constant' C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\wingdi.h(4592) ?: fatal error C1003: error count exceeds 100; stopping compilation NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c l.EXE"' : return code '0x2' Stop. _______________________________________________ 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 thomas.bonfort at gmail.com Thu Jan 8 04:06:04 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 8 Jan 2009 13:06:04 +0100 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA0E3@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0E3@s-sp22.pca.state.mn.us> Message-ID: I didn't backport this to the 5.2 branch, so 5.2.2 wouldn't be of any use for this case. I can backport if it's something you need asap. cheers, thomas On Wed, Jan 7, 2009 at 19:12, Fawcett, David wrote: > Thomas (or I guess the rest of the developers), > > Do you know when the next incremental MapServer release might be cut? > 5.2.2? > > Thanks, > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas > bonfort > Sent: Wednesday, January 07, 2009 1:39 AM > To: Donald Kerr > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue > > > sorry for the late answer, > >> To be honest, I don't know if this is the latest or not and I don't >> really know what "trunk code" is :( > it's the latest version from svn > >> So, I suppose my questions are still the same i.e. do I have to >> recompile using the latest code? Yikes! > yes, you'd need to recompile > From thomas.bonfort at gmail.com Thu Jan 8 04:08:25 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 8 Jan 2009 13:08:25 +0100 Subject: [mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick linesin the grid In-Reply-To: <1231407709704-2127104.post@n2.nabble.com> References: <1231158530303-2112673.post@n2.nabble.com> <49647EE8.5060005@argoss.nl> <1231351502708-2123874.post@n2.nabble.com> <4964DDC4.5157.008F.0@dnr.state.mn.us> <1231407709704-2127104.post@n2.nabble.com> Message-ID: it will be available in the next major release (i.e. 5.4 or 6.0 depending on what it gets called). It will not be in 5.2.2. regards, thomas On Thu, Jan 8, 2009 at 10:41, Maxim Savchenko wrote: > > Do you know is this option will be available in the next version? > > > Steve Lime wrote: >> >> If you're adventurous you could try the dev trunk from svn. It supports >> fractional line widths so >> it's easier to get very fine line work from AGG. >> >> Steve >> >>>>> On 1/7/2009 at 12:05 PM, in message >>>>> <1231351502708-2123874.post at n2.nabble.com>, >> Maxim Savchenko wrote: >> >>> It's too heavy way, but it is a way... Thank you for idea but i will not >>> be >>> using it :-) I leave this "as is" or will fallback to the gd driver >>> better. >>> >>> >>> Reinoud Bokhorst wrote: >>>> >>>> I experienced the same problem a while ago and reverted to using a >>>> separate mapfile for the graticule using the GD driver. In your 'main' >>>> mapfile you could then create a graticule layer with CONNECTIONTYPE WMS >>>> that connects to a URL using the graticule mapfile (f.ex. something like >>>> this: http://localhost/cgi/mapserv?map=graticule.map&). This way you >>>> still >>>> have one entry point for all your layers. >>>> >> > > -- > View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2127104.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 yjacolin at free.fr Thu Jan 8 04:18:17 2009 From: yjacolin at free.fr (Jacolin Yves) Date: Thu, 8 Jan 2009 13:18:17 +0100 Subject: [mapserver-users] libgdal error with php/MapScript Message-ID: <200901081318.17607.yjacolin@free.fr> Hello, I get an error when loading php_mapscript.so in my apache config. Here is my config: * Centos 4 (in an openvz system) * PHP 4.3.9 (with GD 2.0.28) * Apache 2 * GD 2.0.35 * AGG 2.4 * Mapserver 5.2.1 * geos 3.0.3 * gdal-ogr 1.6.0 * proj 4.6.1 MapServer configure: ./configure --with-agg=/usr/local/src/build/agg-2.4 --with-postgis --with-wmsclient --with-wfsclient --with-geos --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-php=/usr/include/php/ --with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/local/ --with-python GDAL-OGR configure: ./configure --with-python --with-pg=/usr/local/pgsql/bin/pg_config --without-grass After installing all dependance and set up php config to enable php_mapscript, I try to look if php/mapscript is really enabled: $ php -i | grep mapscript give: PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open shared object file: No such file or directory in Unknown on line 0 /etc/php.d/mapscript.ini There is no mapscript table in phpinfo() function. Any tips to find a solution? Thanks in advance. Y. -- Yves Jacolin --- http://softlibre.gloobe.org From donald.kerr at dkerr.co.uk Thu Jan 8 05:29:46 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 8 Jan 2009 13:29:46 -0000 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: Message-ID: Sooner rather than later would be better for me :) Regards, Donald -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: 08 January 2009 12:06 To: Fawcett, David Cc: Donald Kerr; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue I didn't backport this to the 5.2 branch, so 5.2.2 wouldn't be of any use for this case. I can backport if it's something you need asap. cheers, thomas On Wed, Jan 7, 2009 at 19:12, Fawcett, David wrote: > Thomas (or I guess the rest of the developers), > > Do you know when the next incremental MapServer release might be cut? > 5.2.2? > > Thanks, > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas > bonfort > Sent: Wednesday, January 07, 2009 1:39 AM > To: Donald Kerr > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue > > > sorry for the late answer, > >> To be honest, I don't know if this is the latest or not and I don't >> really know what "trunk code" is :( > it's the latest version from svn > >> So, I suppose my questions are still the same i.e. do I have to >> recompile using the latest code? Yikes! > yes, you'd need to recompile > From donald.kerr at dkerr.co.uk Thu Jan 8 05:33:46 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 8 Jan 2009 13:33:46 -0000 Subject: [mapserver-users] Mapserver MS SQL Server Spacial In-Reply-To: <200901081318.17607.yjacolin@free.fr> Message-ID: <56A80C82A51346C089EE8ECC381C1ABF@DELL> Is it possible to connect to MS SQL Server Spacial in the same was as PostGis? CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=MasterMap host=localhost" DATA "geom FROM topographicline USING UNIQUE toid" Or CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=MasterMap host=localhost" DATA "geom FROM (SELECT toid, featurecode, textstring, orientation/10 AS orientation, fontnumber, anchorposition, textstyle, geom FROM cartographictext) AS foo USING UNIQUE toid" If not, is there an alternative method without altering the database? Many thanks. Regards, Donald From drafkind at traversetechnologies.com Thu Jan 8 05:54:35 2009 From: drafkind at traversetechnologies.com (Dave Rafkind) Date: Thu, 08 Jan 2009 08:54:35 -0500 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <495E9795.9000106@traversetechnologies.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> <495E8332.3050301@traversetechnologies.com> <30fe546d0901021436p4a61f1bv74942a0bb69167cb@mail.gmail.com> <495E9795.9000106@traversetechnologies.com> Message-ID: <4966059B.7020103@traversetechnologies.com> Say, was there any final answer on the tile stuff (ie was I doing it wrong somehow)? Thanks! Dave Dave Rafkind wrote: > Map file is at the bottom of this email, world shapefile is the > popular "world_adm0" , can be gotten from here: > > http://www.cipotato.org/diva/data/misc/world_adm0.zip > > Paul Ramsey wrote: >> QGIS doesn't know anything about the SRS of your shape file. >> If you share your Shape file and Map file, then we can either >> reproduce your bug or confirm you are doing something wrong and tell >> you what that something is. >> >> Paul >> >> On Fri, Jan 2, 2009 at 1:12 PM, Dave Rafkind >> wrote: >> >>> Hi, thanks for your reply. Results follow: >>> >>> I can't remove the PROJECTION block, otherwise I get this error from >>> mapserver: >>> msTileSetProjectionst(): WMS server error. Cannot set new SRS on a >>> map that >>> doesn't have any projection set. Please make sure your mapfile has a >>> PROJECTION defined at the top level. >>> >>> QGis thinks this is the spatial information for my test shapefile, >>> this is >>> 4326 (basically unprojected), right? >>> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs >>> >>> If I have the PROJECTION block in the mapfile, I can indeed see >>> tiles of >>> some kind, but it looks like each tile overlaps in its spatial extent. >>> >>> See attached for "wrong" results..I changed some of the colors so it >>> would >>> be more obvious. >>> >>> >>> >>> >>> Paul Ramsey wrote: >>> >>>> Dave, >>>> >>>> - Remove the PROJECTION block from the MAP level (leave the one at the >>>> LAYER level). Tile mode constructs its own output projection object, >>>> it doesn't need map file configuration for the output projection, just >>>> the inputs. >>>> - Confirm that the shape file you are using *is* in fact epsg:4326 >>>> - Try manually accessing the service using tile=0 or tile=1, and see >>>> what comes back >>>> - Show some pictures of "wrong" in your next mail >>>> >>>> P. >>>> >>>> On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind >>>> wrote: >>>> >>>> >>>>> Thanks for the suggestions, but I don't think that's quite it: >>>>> >>>>> 1 - removing "epsg:4326" from the wms_srs part of the mapfile >>>>> didn't fix >>>>> it >>>>> 2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" >>>>> string >>>>> didn't fix it >>>>> >>>>> Is there anything else I can try? >>>>> >>>>> >>>>> Fawcett, David wrote: >>>>> >>>>> >>>>>> Dave, >>>>>> I am not sure if this is it, but in your WMS request, you are not >>>>>> specifying a SRS. You are advertising two SRS' in your WEB WMS >>>>>> "wms_srs" metadata. I wonder if MapServer is just defaulting to the >>>>>> first SRS in your list in the absence of an explicit request? >>>>>> David. >>>>>> >>>>>> -----Original Message----- >>>>>> From: mapserver-users-bounces at lists.osgeo.org >>>>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave >>>>>> Rafkind >>>>>> Sent: Friday, January 02, 2009 12:39 PM >>>>>> To: mapserver-users at lists.osgeo.org >>>>>> Subject: [mapserver-users] Trouble with mode=tile >>>>>> >>>>>> >>>>>> Hi list, I'm using the latest ms4w on a windows XP box. When >>>>>> trying to >>>>>> use >>>>>> mapserver's tile mode in a Virtual Earth or Google Maps control, it >>>>>> looks totally wrong (like the wrong projection is being used >>>>>> perhaps?). >>>>>> What is the right way to go about this? >>>>>> >>>>>> Here's mapserver.exe -v: >>>>>> >>>>>> C:\ms4w\Apache\cgi-bin>mapserv -v >>>>>> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>>>>> OUTPUT=WBMP >>>>>> OUTPUT=PDF >>>>>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>>>>> SUPPORTS=ICO >>>>>> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>>>> SUPPORTS=WFS_SERVER >>>>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>>>> SUPPORTS=FASTCGI SUP >>>>>> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG >>>>>> INPUT=POSTGIS >>>>>> INPUT=OGR >>>>>> INPUT=GDAL INPUT=SHAPEFILE >>>>>> >>>>>> Here's the relevant part of my web page with the map control: >>>>>> map=new VEMap('myMap'); >>>>>> // ... >>>>>> var layerId = "myCustomTileLayer"; >>>>>> var tileSource = >>>>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>>>> >>>>>> ap&layers=world&mode=tile&tilemode=ve&tile=%4"; >>>>>> var tileSourceSpec = new VETileSourceSpecification(layerId, >>>>>> tileSource); >>>>>> // ... >>>>>> >>>>>> Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) >>>>>> # google/virtual earth spherical mercator >>>>>> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 >>>>>> +lon_0=0.0 >>>>>> >>>>>> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> >>>>>> >>>>>> >>>>>> And here's my map file: >>>>>> MAP >>>>>> IMAGETYPE PNG >>>>>> OUTPUTFORMAT >>>>>> NAME png >>>>>> DRIVER "GD/PNG" >>>>>> MIMETYPE "image/png" >>>>>> IMAGEMODE RGBA >>>>>> EXTENSION "png" >>>>>> TRANSPARENT ON >>>>>> END >>>>>> >>>>>> SHAPEPATH "/src/maps/mapdata" >>>>>> FONTSET "/src/maps/mapdata/fonts.list" >>>>>> IMAGECOLOR 0 0 0 >>>>>> >>>>>> WEB >>>>>> METADATA >>>>>> "wms_title" "WMS Demo Server" >>>>>> "wms_onlineresource" >>>>>> >>>>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>>>> >>>>>> ap&" >>>>>> "wms_srs" "EPSG:4326 EPSG:900913" >>>>>> END >>>>>> END >>>>>> >>>>>> PROJECTION >>>>>> "init=epsg:900913" >>>>>> END >>>>>> >>>>>> SYMBOL >>>>>> name "circle" >>>>>> type ellipse >>>>>> filled true >>>>>> POINTS 1 1 END >>>>>> END >>>>>> >>>>>> SYMBOL >>>>>> NAME 'dashed1' >>>>>> TYPE ELLIPSE >>>>>> POINTS 1 1 END >>>>>> FILLED true >>>>>> STYLE 4 4 END >>>>>> END >>>>>> >>>>>> SYMBOL >>>>>> NAME 'railway' >>>>>> TYPE cartoline >>>>>> LINECAP butt >>>>>> LINEJOIN miter >>>>>> LINEJOINMAXSIZE 3 >>>>>> STYLE >>>>>> 1 10 1 10 >>>>>> END >>>>>> END >>>>>> >>>>>> LAYER >>>>>> PROJECTION >>>>>> "init=epsg:4326" >>>>>> END >>>>>> NAME world >>>>>> DATA "world/world_adm0.shp" >>>>>> STATUS OFF >>>>>> TYPE LINE >>>>>> LABELITEM "REGION" >>>>>> CLASS >>>>>> STYLE >>>>>> COLOR 255 255 255 >>>>>> OUTLINECOLOR 0 0 0 >>>>>> END >>>>>> LABEL >>>>>> COLOR 0 0 0 >>>>>> OUTLINECOLOR 255 255 255 >>>>>> TYPE TRUETYPE >>>>>> FONT arial >>>>>> SIZE 9 >>>>>> ANTIALIAS TRUE >>>>>> PARTIALS FALSE >>>>>> MINDISTANCE 250 >>>>>> BUFFER 4 >>>>>> END >>>>>> END >>>>>> END >>>>>> END >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 boesiii at yahoo.com Thu Jan 8 06:03:08 2009 From: boesiii at yahoo.com (boesiii) Date: Thu, 8 Jan 2009 06:03:08 -0800 (PST) Subject: [mapserver-users] ippj-5.3.dll was not found Message-ID: <1231423388316-2128008.post@n2.nabble.com> I just downloaded and installed OSGeo4w. I tried to test out mapserv.exe at the command line but I get and error stating "Application failed to start because ippj-5.3.dll was not found. Reinstalling the application may fix this problem" I tried to reinstall but I still get the same error. -- View this message in context: http://n2.nabble.com/ippj-5.3.dll-was-not-found-tp2128008p2128008.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Thu Jan 8 06:39:14 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 08 Jan 2009 09:39:14 -0500 Subject: [mapserver-users] libgdal error with php/MapScript In-Reply-To: <200901081318.17607.yjacolin@free.fr> References: <200901081318.17607.yjacolin@free.fr> Message-ID: <49661012.1000206@mapgears.com> Jacolin Yves wrote: > ... --with-gdal=/usr/local/bin/gdal-config ... > [...] > PHP Warning: Unknown(): Unable to load dynamic > library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open shared > object file: No such file or directory in Unknown on line 0 > /etc/php.d/mapscript.ini > Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure that directory is in the system's library path. The simple way to do that is to add /usr/local/lib to the file /etc/ld.so.conf and then run /sbin/ldconfig as root to update the runtime linker's cache. Daniel -- Daniel Morissette http://www.mapgears.com/ From yjacolin at free.fr Thu Jan 8 06:42:33 2009 From: yjacolin at free.fr (Jacolin Yves) Date: Thu, 8 Jan 2009 15:42:33 +0100 Subject: [mapserver-users] libgdal error with php/MapScript In-Reply-To: <49661012.5050107@mapgears.com> References: <200901081318.17607.yjacolin@free.fr> <49661012.5050107@mapgears.com> Message-ID: <200901081542.34132.yjacolin@free.fr> Le Thursday 08 January 2009 15:39:14 Alan Boudreault, vous avez ?crit?: > Yves, > > Did you look is there is any "libgdal.so*" file in the lib directory? > If there's one... but it's not named "libgdal.so.1" .... maybe you could > try to make a symbolic link to it. > > Alan Alan, the libgdal.so.1 exist, ls /usr/local/lib/libgdal* gives: /usr/local/lib/libgdal.a /usr/local/lib/libgdal.la /usr/local/lib/libgdal.so /usr/local/lib/libgdal.so.1 /usr/local/lib/libgdal.so.1.13.0 thanks Y. -- Yves Jacolin --- http://softlibre.gloobe.org From yjacolin at free.fr Thu Jan 8 06:45:43 2009 From: yjacolin at free.fr (Jacolin Yves) Date: Thu, 8 Jan 2009 15:45:43 +0100 Subject: [mapserver-users] libgdal error with php/MapScript In-Reply-To: <49661012.1000206@mapgears.com> References: <200901081318.17607.yjacolin@free.fr> <49661012.1000206@mapgears.com> Message-ID: <200901081545.44005.yjacolin@free.fr> Le Thursday 08 January 2009 15:39:14 Daniel Morissette, vous avez ?crit?: > Jacolin Yves wrote: > > ... --with-gdal=/usr/local/bin/gdal-config ... > > [...] > > > PHP Warning: Unknown(): Unable to load dynamic > > library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open > > shared object file: No such file or directory in Unknown on line 0 > > /etc/php.d/mapscript.ini > > Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure > that directory is in the system's library path. The simple way to do > that is to add /usr/local/lib to the file /etc/ld.so.conf and then run > /sbin/ldconfig as root to update the runtime linker's cache. > > Daniel Daniel, /etc/ld.so.conf and ldconfig command was already edited or run :( I am building PHP5 to see if this changes something, Thanks anyway, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From aboudreault at mapgears.com Thu Jan 8 06:39:14 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 08 Jan 2009 09:39:14 -0500 Subject: [mapserver-users] libgdal error with php/MapScript In-Reply-To: <200901081318.17607.yjacolin@free.fr> References: <200901081318.17607.yjacolin@free.fr> Message-ID: <49661012.5050107@mapgears.com> Yves, Did you look is there is any "libgdal.so*" file in the lib directory? If there's one... but it's not named "libgdal.so.1" .... maybe you could try to make a symbolic link to it. Alan Jacolin Yves wrote: > Hello, > > I get an error when loading php_mapscript.so in my apache config. > > Here is my config: > * Centos 4 (in an openvz system) > * PHP 4.3.9 (with GD 2.0.28) > * Apache 2 > * GD 2.0.35 > * AGG 2.4 > * Mapserver 5.2.1 > * geos 3.0.3 > * gdal-ogr 1.6.0 > * proj 4.6.1 > > MapServer configure: > ./configure > --with-agg=/usr/local/src/build/agg-2.4 > --with-postgis > --with-wmsclient --with-wfsclient > --with-geos --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config > --with-php=/usr/include/php/ > --with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/local/ --with-python > > GDAL-OGR configure: > ./configure > --with-python > --with-pg=/usr/local/pgsql/bin/pg_config > --without-grass > > After installing all dependance and set up php config to enable php_mapscript, > I try to look if php/mapscript is really enabled: > $ php -i | grep mapscript > give: > PHP Warning: Unknown(): Unable to load dynamic > library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open shared > object file: No such file or directory in Unknown on line 0 > /etc/php.d/mapscript.ini > > There is no mapscript table in phpinfo() function. > > Any tips to find a solution? > > Thanks in advance. > > Y. > -- Alan Boudreault Mapgears http://www.mapgears.com From MMaganti at oriongis.com Thu Jan 8 07:12:35 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 8 Jan 2009 10:12:35 -0500 Subject: [mapserver-users] queryByRect throws an error In-Reply-To: References: Message-ID: Hi Tamas Yes, there is a workaround to prevent this issue. I am already taking care in my code. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, January 07, 2009 6:11 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] queryByRect throws an error Hi Murty, Yes, you're correct. By setting the template parameter of these internal layers like __embed__legend or __embed__scalebar causes the behaviour you've reported before. However I'm not sure it should be denoted as a bug since you could easily skip setting these parameters in your code. Skipping these layers in the mapserver query code may cause slower execution which is undesirable in most cases. I'm guessing there might be some other occurrences where altering these special layers in mapscript may also cause unexpected results. Best regards, Tamas 2009/1/7 Murty Maganti Hi Tamas Thanks for reply. These are extracts from my code to replicate the issue //Create map object mapObj map = new mapObj("MyMap.map"); //draw map map.draw() ; //Make sure some template name is defined. Otherwise, query will not be successful. for (int i = 0; i < map.numlayers; i++) { if (string.IsNullOrEmpty(m_map.getLayer(i).template)) { m_map.getLayer(i).template = "abc"; } } //Perform the query now map.queryByRect(map.extents); I think after a call to map.draw(), a new layer '__embed__scalebar' is added to layers collection. Setting template name to it is performing the query on scalebar layer as well. I think the scalebar layer is not satisfying these two conditions in msQueryByRect method of mapquery.c and hence getting used for query if(!msIsLayerQueryable(lp)) continue; if(lp->status == MS_OFF) continue; Please let me know if you need more info or you need any test application. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, January 06, 2009 3:33 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] queryByRect throws an error Hi, Could you provide a code/mapfile sample to reconstruct the issue? I've never experienced such a problem, I've used this function many times though. Best regards, Tamas 2009/1/6 Murty Maganti mapObj.queryByRect(...) (using C# map script) is throwing following exception when there is an embedded scale bar on map. Exception message: "msShapefileOpen(): Unable to access file. No (NULL) filename provided.;msBuildPath: Unable to access file" Removing the scale bar from map file works fine. _______________________________________________ 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 danlittle at yahoo.com Thu Jan 8 07:11:11 2009 From: danlittle at yahoo.com (Dan Little) Date: Thu, 8 Jan 2009 07:11:11 -0800 (PST) Subject: [mapserver-users] Mapserver MS SQL Server Spacial References: <56A80C82A51346C089EE8ECC381C1ABF@DELL> Message-ID: <238314.17215.qm@web51402.mail.re2.yahoo.com> I think one of the key problems will be using the postgis connector to connect to MSSQL... ----- Original Message ---- > From: Donald Kerr > To: mapserver-users at lists.osgeo.org > Sent: Thursday, January 8, 2009 7:33:46 AM > Subject: [mapserver-users] Mapserver MS SQL Server Spacial > > Is it possible to connect to MS SQL Server Spacial in the same was as > PostGis? > > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM topographicline USING UNIQUE toid" > > Or > > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM (SELECT toid, featurecode, textstring, orientation/10 AS > orientation, fontnumber, anchorposition, textstyle, geom FROM > cartographictext) AS foo USING UNIQUE toid" > > If not, is there an alternative method without altering the database? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From danlittle at yahoo.com Thu Jan 8 07:12:35 2009 From: danlittle at yahoo.com (Dan Little) Date: Thu, 8 Jan 2009 07:12:35 -0800 (PST) Subject: [mapserver-users] ippj-5.3.dll was not found References: <1231423388316-2128008.post@n2.nabble.com> Message-ID: <151963.58333.qm@web51410.mail.re2.yahoo.com> Did you make sure all the paths were properly setup? I think you need to set an env variable to point to where the DLL's are located. Also, Mapserver tends not to run really well from the commandline. You'd need to set all of the environmental variables to account for the QUERY_STRING, etc. ----- Original Message ---- > From: boesiii > To: mapserver-users at lists.osgeo.org > Sent: Thursday, January 8, 2009 8:03:08 AM > Subject: [mapserver-users] ippj-5.3.dll was not found > > > I just downloaded and installed OSGeo4w. I tried to test out mapserv.exe at > the command line but I get and error stating "Application failed to start > because ippj-5.3.dll was not found. Reinstalling the application may fix > this problem" > > I tried to reinstall but I still get the same error. > -- > View this message in context: > http://n2.nabble.com/ippj-5.3.dll-was-not-found-tp2128008p2128008.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 danlittle at yahoo.com Thu Jan 8 07:14:45 2009 From: danlittle at yahoo.com (Dan Little) Date: Thu, 8 Jan 2009 07:14:45 -0800 (PST) Subject: [mapserver-users] libgdal error with php/MapScript References: <200901081318.17607.yjacolin@free.fr> <49661012.5050107@mapgears.com> <200901081542.34132.yjacolin@free.fr> Message-ID: <218628.80570.qm@web51407.mail.re2.yahoo.com> Another test would be to do this.. (assumes a Bourne shell) export $LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib Also, do a check on libgdal.so itself... ldd /usr/local/lib/libgdal.so.1 Look for any "not found"s If php_mapscript.so is trying to link to libgdal.so and libgdal.so is linked to something it cannot find then the error will show up as not being able to link to libgdal. ----- Original Message ---- > From: Jacolin Yves > To: Mapserver ML > Sent: Thursday, January 8, 2009 8:42:33 AM > Subject: Re: [mapserver-users] libgdal error with php/MapScript > > Le Thursday 08 January 2009 15:39:14 Alan Boudreault, vous avez ?crit : > > Yves, > > > > Did you look is there is any "libgdal.so*" file in the lib directory? > > If there's one... but it's not named "libgdal.so.1" .... maybe you could > > try to make a symbolic link to it. > > > > Alan > > Alan, > > the libgdal.so.1 exist, ls /usr/local/lib/libgdal* gives: > /usr/local/lib/libgdal.a > /usr/local/lib/libgdal.la > /usr/local/lib/libgdal.so > /usr/local/lib/libgdal.so.1 > /usr/local/lib/libgdal.so.1.13.0 > > thanks > > Y. > -- > Yves Jacolin > --- > http://softlibre.gloobe.org > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From yjacolin at free.fr Thu Jan 8 07:19:33 2009 From: yjacolin at free.fr (Jacolin Yves) Date: Thu, 8 Jan 2009 16:19:33 +0100 Subject: [mapserver-users] libgdal error with php/MapScript In-Reply-To: <4966143D.2000606@neogeo-online.net> References: <200901081318.17607.yjacolin@free.fr> <200901081545.44005.yjacolin@free.fr> <4966143D.2000606@neogeo-online.net> Message-ID: <200901081619.33149.yjacolin@free.fr> Le Thursday 08 January 2009 15:57:01 Guillaume Sueur, vous avez ?crit?: > Can't it comes from an external lib dynamiccaly linked to gdal, like > Ecwlib or other ? did you try to call your php page from the command > line, which can give more information on missing dependancies ? > > regards, > > Guillaume > > Jacolin Yves a ?crit : > > Le Thursday 08 January 2009 15:39:14 Daniel Morissette, vous avez ?crit : > >> Jacolin Yves wrote: > >>> ... --with-gdal=/usr/local/bin/gdal-config ... > >> > >> [...] > >> > >>> PHP Warning: Unknown(): Unable to load dynamic > >>> library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open > >>> shared object file: No such file or directory in Unknown on line 0 > >>> /etc/php.d/mapscript.ini > >> > >> Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure > >> that directory is in the system's library path. The simple way to do > >> that is to add /usr/local/lib to the file /etc/ld.so.conf and then run > >> /sbin/ldconfig as root to update the runtime linker's cache. > >> > >> Daniel > > > > Daniel, > > > > /etc/ld.so.conf and ldconfig command was already edited or run :( > > > > I am building PHP5 to see if this changes something, > > > > Thanks anyway, > > > > Y. Sorry to Guillaume and Daniel :) I built php5 and tested it: same problem. I realised that I stoped to test php with command line ;) and indeed php -i | grep mapscript send same issue. Daniel, I tried again to run ldconfig and it is now working! The problem was resolved by removing the "build" file in /etc/ld.so.conf/build containing "/usr/local/lib/" and adding this dir directly in /etc/ld.so.conf ("include" command inside doesn't seems working !) Many thanks to all, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From yjacolin at free.fr Thu Jan 8 07:20:45 2009 From: yjacolin at free.fr (Jacolin Yves) Date: Thu, 8 Jan 2009 16:20:45 +0100 Subject: [mapserver-users] libgdal error with php/MapScript In-Reply-To: <218628.80570.qm@web51407.mail.re2.yahoo.com> References: <200901081318.17607.yjacolin@free.fr> <200901081542.34132.yjacolin@free.fr> <218628.80570.qm@web51407.mail.re2.yahoo.com> Message-ID: <200901081620.45417.yjacolin@free.fr> Hi Dan, the test failed but now all is working, thanks :) Y. Le Thursday 08 January 2009 16:14:45 Dan Little, vous avez ?crit?: > Another test would be to do this.. > > (assumes a Bourne shell) > export $LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib > > Also, do a check on libgdal.so itself... > ldd /usr/local/lib/libgdal.so.1 > > Look for any "not found"s > > If php_mapscript.so is trying to link to libgdal.so and libgdal.so is > linked to something it cannot find then the error will show up as not being > able to link to libgdal. > > > > ----- Original Message ---- > > > From: Jacolin Yves > > To: Mapserver ML > > Sent: Thursday, January 8, 2009 8:42:33 AM > > Subject: Re: [mapserver-users] libgdal error with php/MapScript > > > > Le Thursday 08 January 2009 15:39:14 Alan Boudreault, vous avez ?crit : > > > Yves, > > > > > > Did you look is there is any "libgdal.so*" file in the lib directory? > > > If there's one... but it's not named "libgdal.so.1" .... maybe you > > > could try to make a symbolic link to it. > > > > > > Alan > > > > Alan, > > > > the libgdal.so.1 exist, ls /usr/local/lib/libgdal* gives: > > /usr/local/lib/libgdal.a > > /usr/local/lib/libgdal.la > > /usr/local/lib/libgdal.so > > /usr/local/lib/libgdal.so.1 > > /usr/local/lib/libgdal.so.1.13.0 > > > > thanks > > > > Y. > > -- > > Yves Jacolin > > --- > > http://softlibre.gloobe.org > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Yves Jacolin --- http://softlibre.gloobe.org From no-reply at neogeo-online.net Thu Jan 8 06:57:01 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Thu, 08 Jan 2009 15:57:01 +0100 Subject: [mapserver-users] libgdal error with php/MapScript In-Reply-To: <200901081545.44005.yjacolin@free.fr> References: <200901081318.17607.yjacolin@free.fr> <49661012.1000206@mapgears.com> <200901081545.44005.yjacolin@free.fr> Message-ID: <4966143D.2000606@neogeo-online.net> Can't it comes from an external lib dynamiccaly linked to gdal, like Ecwlib or other ? did you try to call your php page from the command line, which can give more information on missing dependancies ? regards, Guillaume Jacolin Yves a ?crit : > Le Thursday 08 January 2009 15:39:14 Daniel Morissette, vous avez ?crit : >> Jacolin Yves wrote: >>> ... --with-gdal=/usr/local/bin/gdal-config ... >> [...] >> >>> PHP Warning: Unknown(): Unable to load dynamic >>> library '/usr/lib/php4/php_mapscript.so' - libgdal.so.1: cannot open >>> shared object file: No such file or directory in Unknown on line 0 >>> /etc/php.d/mapscript.ini >> Your libgdal.so.1 is installed in /usr/local/lib. You need to make sure >> that directory is in the system's library path. The simple way to do >> that is to add /usr/local/lib to the file /etc/ld.so.conf and then run >> /sbin/ldconfig as root to update the runtime linker's cache. >> >> Daniel > Daniel, > > /etc/ld.so.conf and ldconfig command was already edited or run :( > > I am building PHP5 to see if this changes something, > > Thanks anyway, > > Y. From warmerdam at pobox.com Thu Jan 8 08:04:09 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 08 Jan 2009 11:04:09 -0500 Subject: [mapserver-users] ippj-5.3.dll was not found In-Reply-To: <1231423388316-2128008.post@n2.nabble.com> References: <1231423388316-2128008.post@n2.nabble.com> Message-ID: <496623F9.6030706@pobox.com> boesiii wrote: > I just downloaded and installed OSGeo4w. I tried to test out mapserv.exe at > the command line but I get and error stating "Application failed to start > because ippj-5.3.dll was not found. Reinstalling the application may fix > this problem" > > I tried to reinstall but I still get the same error. Hi, Did you by any chance install *all* OSGeo4W packages? This is really not wise because several packages depend on external items. One of these is the libjpeg-ipp package which depends on your having a special external package installed. To correct this particular item go into the advanced install, and select "reinstall" for the libjpeg package. This will replace the special IPP enhanced libjpeg with the standard one. However, if you have installed everything you will also likely have plugins for stuff like oracle, sde and ecw that depend on external components and may cause problems. It might be better to wipe your C:\OSGeo4W tree and reinstall somewhat more selectively. I think I may need to remove the libjpeg-ipp package since you aren't the first person to fall into the same trap. 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 zachc1980 at gmail.com Thu Jan 8 08:32:16 2009 From: zachc1980 at gmail.com (zach cruise) Date: Thu, 8 Jan 2009 11:32:16 -0500 Subject: [mapserver-users] website upgrade for older documentation In-Reply-To: References: Message-ID: On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote: > great website upgrade at http://www.mapserver.org/. how can i search > for older documentation like with postgresql.org? > > http://www.postgresql.org/docs/8.1/interactive/sql-select.html > http://www.postgresql.org/docs/8.1/static/sql-select.html > http://www.postgresql.org/docs/8.2/interactive/sql-select.html > http://www.postgresql.org/docs/8.2/static/sql-select.html From boesiii at yahoo.com Thu Jan 8 09:08:37 2009 From: boesiii at yahoo.com (boesiii) Date: Thu, 8 Jan 2009 09:08:37 -0800 (PST) Subject: [mapserver-users] ippj-5.3.dll was not found In-Reply-To: <496623F9.6030706@pobox.com> References: <1231423388316-2128008.post@n2.nabble.com> <496623F9.6030706@pobox.com> Message-ID: <1231434517569-2128911.post@n2.nabble.com> Thanks Franks, I wiped out the folder and started from scratch, this time I only installed what was necessary and that worked. I now have a functioning MapServer now I need to figure out how built a webpage using it. I was only running it from the command line to see if it was working. Frank Warmerdam wrote: > > boesiii wrote: >> I just downloaded and installed OSGeo4w. I tried to test out mapserv.exe >> at >> the command line but I get and error stating "Application failed to start >> because ippj-5.3.dll was not found. Reinstalling the application may fix >> this problem" >> >> I tried to reinstall but I still get the same error. > > Hi, > > Did you by any chance install *all* OSGeo4W packages? This is really not > wise because several packages depend on external items. One of these is > the > libjpeg-ipp package which depends on your having a special external > package > installed. To correct this particular item go into the advanced install, > and select "reinstall" for the libjpeg package. This will replace the > special > IPP enhanced libjpeg with the standard one. > > However, if you have installed everything you will also likely have > plugins > for stuff like oracle, sde and ecw that depend on external components and > may > cause problems. It might be better to wipe your C:\OSGeo4W tree and > reinstall > somewhat more selectively. > > I think I may need to remove the libjpeg-ipp package since you aren't the > first person to fall into the same trap. > > 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 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/ippj-5.3.dll-was-not-found-tp2128008p2128911.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu Jan 8 09:21:54 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 08 Jan 2009 12:21:54 -0500 Subject: [mapserver-users] website upgrade for older documentation In-Reply-To: References: Message-ID: <49663632.7070309@gatewaygeomatics.com> zach cruise wrote: > On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote: >> great website upgrade at http://www.mapserver.org/. how can i search >> for older documentation like with postgresql.org? The current (5.2.1) documents should have MapServer version references inside them for specific functionality (such as a specific mapfile parameter added in 5.0). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From donald.kerr at dkerr.co.uk Thu Jan 8 09:47:09 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 8 Jan 2009 17:47:09 -0000 Subject: [mapserver-users] CGI mapserv.exe - BUFFER Message-ID: <5EC288BFDF7B4EA1BD428F79EC870822@DELL> I'd appreciate it if someone could give me some clarification please? I am using the following url to return an image: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.map&mode=map&mapsize=500+4 00&mapxy=258544+665909&layers=all&buffer=2000 The documentation states, "BUFFER [distance] - A distance, in the same coordinate system as the map file, used in conjunction with MAPXY to create an new map extent". The coordinate system is in metres so I would expect that the width of the image (500px) would be 2000m (2km). That doesn't seem to be the case i.e. the returned images is, at a guess, double that. I need clarification on what "buffer" is actually doing. No doubt I'm way off the mark with the deduction above! Many thanks. Regards, Donald Kerr From boesiii at yahoo.com Thu Jan 8 10:11:16 2009 From: boesiii at yahoo.com (boesiii) Date: Thu, 8 Jan 2009 10:11:16 -0800 (PST) Subject: [mapserver-users] Help, Error Message: CGI variable "map" is not set. Message-ID: <1231438276015-2129226.post@n2.nabble.com> I just trying to get a static map to show up in my browser. I have a map file created and I have a shapefile. When I type "http://127.0.0.1/cgi-bin/mapserv.exe? map=/osgeo4w/apps/tutorial/htdocs/nira1.map&layer=roads&mode=map" in the address bar in Firefox. I get an error message "loadMap(): Web application error. CGI variable "map" is not set." What do I need to do get a working static map? -- View this message in context: http://n2.nabble.com/Help%2C-Error-Message%3A-CGI-variable-%22map%22-is-not-set.-tp2129226p2129226.html Sent from the Mapserver - User mailing list archive at Nabble.com. From zachc1980 at gmail.com Thu Jan 8 10:31:26 2009 From: zachc1980 at gmail.com (zach cruise) Date: Thu, 8 Jan 2009 13:31:26 -0500 Subject: [mapserver-users] website upgrade for older documentation In-Reply-To: <49663632.7070309@gatewaygeomatics.com> References: <49663632.7070309@gatewaygeomatics.com> Message-ID: thanks. any way to search 4.8 documentation? any one got archived copy other than http://web.archive.org/web/20060701050731/http://mapserver.gis.umn.edu/? On Thu, Jan 8, 2009 at 12:21 PM, Jeff McKenna wrote: > zach cruise wrote: >> >> On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote: >>> >>> great website upgrade at http://www.mapserver.org/. how can i search >>> for older documentation like with postgresql.org? > > The current (5.2.1) documents should have MapServer version references > inside them for specific functionality (such as a specific mapfile parameter > added in 5.0). > > -jeff > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Basques at ci.stpaul.mn.us Thu Jan 8 11:17:10 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 08 Jan 2009 13:17:10 -0600 Subject: [mapserver-users] CGI mapserv.exe - BUFFER Message-ID: <4965FCD6020000A80000FECD@jeckle> Donald, I haven't tried this, but di you try using Image (pixel) values for the buffer? bobb >>> "Donald Kerr" 01/08/09 11:47 AM >>> I'd appreciate it if someone could give me some clarification please? I am using the following url to return an image: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.map&mode=map&mapsize=500+4 00&mapxy=258544+665909&layers=all&buffer=2000 The documentation states, "BUFFER [distance] - A distance, in the same coordinate system as the map file, used in conjunction with MAPXY to create an new map extent". The coordinate system is in metres so I would expect that the width of the image (500px) would be 2000m (2km). That doesn't seem to be the case i.e. the returned images is, at a guess, double that. I need clarification on what "buffer" is actually doing. No doubt I'm way off the mark with the deduction above! Many thanks. Regards, Donald Kerr _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Thu Jan 8 11:23:16 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 8 Jan 2009 19:23:16 -0000 Subject: [mapserver-users] CGI mapserv.exe - BUFFER In-Reply-To: <4965FCD6020000A80000FECD@jeckle> Message-ID: <72EC24EAA44A44FB9830E91071F6DC83@DELL> Bobb, I don't quite follow you there to be honest. The BUFFER states that it's "in the same coordinate system as the map file". How could that be changed to image pixel values? What I'm try to do effectively is set the width of the created image to a certain distance e.g. BUFFER=10000 which (hopefully) will give me an image that's 10km across no matter what pizel size I set in the querystring. Regards, Donald -----Original Message----- From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: 08 January 2009 19:17 To: donald.kerr at dkerr.co.uk; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] CGI mapserv.exe - BUFFER Donald, I haven't tried this, but di you try using Image (pixel) values for the buffer? bobb >>> "Donald Kerr" 01/08/09 11:47 AM >>> I'd appreciate it if someone could give me some clarification please? I am using the following url to return an image: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.map&mode=map&mapsize=500+4 00&mapxy=258544+665909&layers=all&buffer=2000 The documentation states, "BUFFER [distance] - A distance, in the same coordinate system as the map file, used in conjunction with MAPXY to create an new map extent". The coordinate system is in metres so I would expect that the width of the image (500px) would be 2000m (2km). That doesn't seem to be the case i.e. the returned images is, at a guess, double that. I need clarification on what "buffer" is actually doing. No doubt I'm way off the mark with the deduction above! Many thanks. Regards, Donald Kerr _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From crschmidt at metacarta.com Thu Jan 8 11:24:26 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu, 8 Jan 2009 14:24:26 -0500 Subject: [mapserver-users] CGI mapserv.exe - BUFFER In-Reply-To: <5EC288BFDF7B4EA1BD428F79EC870822@DELL> References: <5EC288BFDF7B4EA1BD428F79EC870822@DELL> Message-ID: <20090108192426.GC26349@metacarta.com> On Thu, Jan 08, 2009 at 05:47:09PM -0000, Donald Kerr wrote: > I'd appreciate it if someone could give me some clarification please? > > I am using the following url to return an image: > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.map&mode=map&mapsize=500+4 > 00&mapxy=258544+665909&layers=all&buffer=2000 > > The documentation states, "BUFFER [distance] - A distance, in the same > coordinate system as the map file, used in conjunction with MAPXY to create > an new map extent". > > The coordinate system is in metres so I would expect that the width of the > image (500px) would be 2000m (2km). That doesn't seem to be the case i.e. > the returned images is, at a guess, double that. "Buffer" is usually a 'radius' -- so, you've got 2000M on each side (4k total, instead of the 2k you expect). If you imagine picking the center piont, and drawing a $buffer_size circle around it -- that's your extent. Regards, -- Christopher Schmidt MetaCarta From donald.kerr at dkerr.co.uk Thu Jan 8 11:25:50 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 8 Jan 2009 19:25:50 -0000 Subject: [mapserver-users] CGI mapserv.exe - BUFFER In-Reply-To: <5EC288BFDF7B4EA1BD428F79EC870822@DELL> Message-ID: I've just had a thought on this one! I wonder if the BUFFER is actually a buffer to both sides of the XY specified in "MAPXY". That would account for the resultant image looking approximately twice the distance across that I'm looking for e.g. a BUFFER of 2000 would result in an image that's actually 4000m (4km) across. I'll have to go back do a bit of experimenting. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: 08 January 2009 17:47 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI mapserv.exe - BUFFER I'd appreciate it if someone could give me some clarification please? I am using the following url to return an image: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.map&mode=map&mapsize=500+4 00&mapxy=258544+665909&layers=all&buffer=2000 The documentation states, "BUFFER [distance] - A distance, in the same coordinate system as the map file, used in conjunction with MAPXY to create an new map extent". The coordinate system is in metres so I would expect that the width of the image (500px) would be 2000m (2km). That doesn't seem to be the case i.e. the returned images is, at a guess, double that. I need clarification on what "buffer" is actually doing. No doubt I'm way off the mark with the deduction above! Many thanks. Regards, Donald Kerr _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Thu Jan 8 11:28:49 2009 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 8 Jan 2009 19:28:49 -0000 Subject: [mapserver-users] CGI mapserv.exe - BUFFER In-Reply-To: <20090108192426.GC26349@metacarta.com> Message-ID: Christopher, Your email came in just as I posted a thought on my original posting. I said that "I wonder if the BUFFER is actually a buffer to both sides of the XY specified in "MAPXY"! You've confirmed that I was nearly right! If it's a radius and the width of the image is greater than the height then the width in metres is indeed twice what is specified in BUFFER. Many thanks indeed. Regards, Donald -----Original Message----- From: Christopher Schmidt [mailto:crschmidt at metacarta.com] Sent: 08 January 2009 19:24 To: Donald Kerr Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] CGI mapserv.exe - BUFFER On Thu, Jan 08, 2009 at 05:47:09PM -0000, Donald Kerr wrote: > I'd appreciate it if someone could give me some clarification please? > > I am using the following url to return an image: > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.map&mode=map&mapsize=500+4 > 00&mapxy=258544+665909&layers=all&buffer=2000 > > The documentation states, "BUFFER [distance] - A distance, in the same > coordinate system as the map file, used in conjunction with MAPXY to create > an new map extent". > > The coordinate system is in metres so I would expect that the width of the > image (500px) would be 2000m (2km). That doesn't seem to be the case i.e. > the returned images is, at a guess, double that. "Buffer" is usually a 'radius' -- so, you've got 2000M on each side (4k total, instead of the 2k you expect). If you imagine picking the center piont, and drawing a $buffer_size circle around it -- that's your extent. Regards, -- Christopher Schmidt MetaCarta From David.Fawcett at state.mn.us Thu Jan 8 11:29:48 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 8 Jan 2009 13:29:48 -0600 Subject: [mapserver-users] CGI mapserv.exe - BUFFER In-Reply-To: <72EC24EAA44A44FB9830E91071F6DC83@DELL> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA0F7@s-sp22.pca.state.mn.us> Donald, I haven't played with BUFFER, but from the docs, my assumption is that it builds a new extent by creating a buffer of the value BUFFER around the point coordinate that you specify. So, if you buffer out 10000 meters from a point, you are going to get an extent that is 20000 meters wide. Think of the buffer value as a radius, not a diameter. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Thursday, January 08, 2009 1:23 PM To: 'Bob Basques'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] CGI mapserv.exe - BUFFER Bobb, I don't quite follow you there to be honest. The BUFFER states that it's "in the same coordinate system as the map file". How could that be changed to image pixel values? What I'm try to do effectively is set the width of the created image to a certain distance e.g. BUFFER=10000 which (hopefully) will give me an image that's 10km across no matter what pizel size I set in the querystring. Regards, Donald -----Original Message----- From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: 08 January 2009 19:17 To: donald.kerr at dkerr.co.uk; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] CGI mapserv.exe - BUFFER Donald, I haven't tried this, but di you try using Image (pixel) values for the buffer? bobb >>> "Donald Kerr" 01/08/09 11:47 AM >>> I'd appreciate it if someone could give me some clarification please? I am using the following url to return an image: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.map&mode=map&mapsize=5 00+4 00&mapxy=258544+665909&layers=all&buffer=2000 The documentation states, "BUFFER [distance] - A distance, in the same coordinate system as the map file, used in conjunction with MAPXY to create an new map extent". The coordinate system is in metres so I would expect that the width of the image (500px) would be 2000m (2km). That doesn't seem to be the case i.e. the returned images is, at a guess, double that. I need clarification on what "buffer" is actually doing. No doubt I'm way off the mark with the deduction above! Many thanks. Regards, Donald Kerr _______________________________________________ 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 Bob.Basques at ci.stpaul.mn.us Thu Jan 8 11:31:19 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 08 Jan 2009 13:31:19 -0600 Subject: [mapserver-users] CGI mapserv.exe - BUFFER Message-ID: <49660028020000A80000FEDE@jeckle> Donald, Ahh, I misunderstood your original question, I thought you were trying to buufer a feature. You want to buffer the view with the features edges. I ran into this same stuff a while back. I think I eneded up (at the time) building a whole new BBOX value set with a serverside call. It was a couple of trips to the server to get thing right, because you needed to get the feature BBOX first, then add in a buffer value to retrieve the real (desired) mapsize. I think there has been some work on this since my trials with it though. I'll need to deferr this to someone else I'm afraid. Sorry about that. bobb >>> "Donald Kerr" 01/08/09 1:23 PM >>> Bobb, I don't quite follow you there to be honest. The BUFFER states that it's "in the same coordinate system as the map file". How could that be changed to image pixel values? What I'm try to do effectively is set the width of the created image to a certain distance e.g. BUFFER=10000 which (hopefully) will give me an image that's 10km across no matter what pizel size I set in the querystring. Regards, Donald -----Original Message----- From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: 08 January 2009 19:17 To: donald.kerr at dkerr.co.uk; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] CGI mapserv.exe - BUFFER Donald, I haven't tried this, but di you try using Image (pixel) values for the buffer? bobb >>> "Donald Kerr" 01/08/09 11:47 AM >>> I'd appreciate it if someone could give me some clarification please? I am using the following url to return an image: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/os.map&mode=map&mapsize=500+4 00&mapxy=258544+665909&layers=all&buffer=2000 The documentation states, "BUFFER [distance] - A distance, in the same coordinate system as the map file, used in conjunction with MAPXY to create an new map extent". The coordinate system is in metres so I would expect that the width of the image (500px) would be 2000m (2km). That doesn't seem to be the case i.e. the returned images is, at a guess, double that. I need clarification on what "buffer" is actually doing. No doubt I'm way off the mark with the deduction above! Many thanks. Regards, Donald Kerr _______________________________________________ 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 danlittle at yahoo.com Thu Jan 8 11:31:43 2009 From: danlittle at yahoo.com (Dan Little) Date: Thu, 8 Jan 2009 11:31:43 -0800 (PST) Subject: [mapserver-users] website upgrade for older documentation References: <49663632.7070309@gatewaygeomatics.com> Message-ID: <358062.2108.qm@web51401.mail.re2.yahoo.com> Zach, Not trying to be a pushy guy... but is there a feature missing in 5.0 prevents you from upgrading? ----- Original Message ---- > From: zach cruise > To: Jeff McKenna > Cc: mapserver-users at lists.osgeo.org > Sent: Thursday, January 8, 2009 12:31:26 PM > Subject: Re: [mapserver-users] website upgrade for older documentation > > thanks. any way to search 4.8 documentation? any one got archived copy > other than > http://web.archive.org/web/20060701050731/http://mapserver.gis.umn.edu/? > > On Thu, Jan 8, 2009 at 12:21 PM, Jeff McKenna > wrote: > > zach cruise wrote: > >> > >> On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote: > >>> > >>> great website upgrade at http://www.mapserver.org/. how can i search > >>> for older documentation like with postgresql.org? > > > > The current (5.2.1) documents should have MapServer version references > > inside them for specific functionality (such as a specific mapfile parameter > > added in 5.0). > > > > -jeff > > -- > > Jeff McKenna > > FOSS4G Consulting and Training Services > > http://www.gatewaygeomatics.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 thomas.bonfort at gmail.com Thu Jan 8 11:34:06 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 8 Jan 2009 20:34:06 +0100 Subject: [mapserver-users] Rotated TrueType Point Symbols - Issue In-Reply-To: References: Message-ID: just backported to the 5.2 branch. Now for some nagging to release 5.2.2 :) thomas On Thu, Jan 8, 2009 at 14:29, Donald Kerr wrote: > Sooner rather than later would be better for me :) > > Regards, > > Donald > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: 08 January 2009 12:06 > To: Fawcett, David > Cc: Donald Kerr; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue > > > I didn't backport this to the 5.2 branch, so 5.2.2 wouldn't be of any > use for this case. > > I can backport if it's something you need asap. > > cheers, > thomas > > On Wed, Jan 7, 2009 at 19:12, Fawcett, David > wrote: >> Thomas (or I guess the rest of the developers), >> >> Do you know when the next incremental MapServer release might be cut? >> 5.2.2? >> >> Thanks, >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas >> bonfort >> Sent: Wednesday, January 07, 2009 1:39 AM >> To: Donald Kerr >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Rotated TrueType Point Symbols - Issue >> >> >> sorry for the late answer, >> >>> To be honest, I don't know if this is the latest or not and I don't >>> really know what "trunk code" is :( >> it's the latest version from svn >> >>> So, I suppose my questions are still the same i.e. do I have to >>> recompile using the latest code? Yikes! >> yes, you'd need to recompile >> > > From richard.greenwood at gmail.com Thu Jan 8 19:56:43 2009 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 8 Jan 2009 20:56:43 -0700 Subject: [mapserver-users] Mapserver MS SQL Server Spacial In-Reply-To: <56A80C82A51346C089EE8ECC381C1ABF@DELL> References: <200901081318.17607.yjacolin@free.fr> <56A80C82A51346C089EE8ECC381C1ABF@DELL> Message-ID: On Thu, Jan 8, 2009 at 6:33 AM, Donald Kerr wrote: > Is it possible to connect to MS SQL Server Spacial in the same was as > PostGis? I do not think that Microsoft SQL Server is officially supported in MapServer yet, however you can get it working using binaries at: http://vbkto.dyndns.org:1280/tests/release-1400-20081013.zip read the thread at: http://mail.google.com/mail/?ui=2&ik=a8159b4950&view=cv&fs=1&tf=1&ver=a9SCC6X1Wbg&am=x_k6ocT3aCEJBf1qUObqFA&q=release-1400-20081013.zip&search=query&th=11cf6af5d8018b96&qt=release.1.1400.1.20081013.1.zip.1 The relevant line in the layer object in the MapFile: CONNECTIONTYPE PLUGIN PLUGIN "msplugin_mssql2008.dll" CONNECTION "server=.\SQLEXPRRESS; database=sc_lands; Integrated Security=true" DATA "geom FROM ownership WITH (INDEX(geom_sidx)) USING SRID=0 USING UNIQUE id" HTH, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From pcreso at pcreso.com Thu Jan 8 21:19:14 2009 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Thu, 8 Jan 2009 21:19:14 -0800 (PST) Subject: [mapserver-users] Mapserver MS SQL Server Spacial In-Reply-To: Message-ID: <177694.82996.qm@web33205.mail.mud.yahoo.com> --- On Fri, 1/9/09, Richard Greenwood wrote: > From: Richard Greenwood > Subject: Re: [mapserver-users] Mapserver MS SQL Server Spacial > To: "Donald Kerr" > Cc: mapserver-users at lists.osgeo.org > Date: Friday, January 9, 2009, 4:56 PM > On Thu, Jan 8, 2009 at 6:33 AM, Donald Kerr > wrote: > > Is it possible to connect to MS SQL Server Spacial in > the same was as > > PostGis? > > > I do not think that Microsoft SQL Server is officially > supported in > MapServer yet, however you can get it working using > binaries at: > > http://vbkto.dyndns.org:1280/tests/release-1400-20081013.zip > > read the thread at: > > http://mail.google.com/mail/?ui=2&ik=a8159b4950&view=cv&fs=1&tf=1&ver=a9SCC6X1Wbg&am=x_k6ocT3aCEJBf1qUObqFA&q=release-1400-20081013.zip&search=query&th=11cf6af5d8018b96&qt=release.1.1400.1.20081013.1.zip.1 > > The relevant line in the layer object in the MapFile: > CONNECTIONTYPE PLUGIN > PLUGIN "msplugin_mssql2008.dll" > CONNECTION "server=.\SQLEXPRRESS; > database=sc_lands; Integrated > Security=true" > DATA "geom FROM ownership WITH (INDEX(geom_sidx)) > USING SRID=0 > USING UNIQUE id" > > HTH, > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Thu Jan 8 22:28:30 2009 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 8 Jan 2009 22:28:30 -0800 Subject: [mapserver-users] Trouble with mode=tile In-Reply-To: <4966059B.7020103@traversetechnologies.com> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA0B6@s-sp22.pca.state.mn.us> <495E73B1.8000006@traversetechnologies.com> <30fe546d0901021259x598b709bt2c3cf2af495f43bb@mail.gmail.com> <495E8332.3050301@traversetechnologies.com> <30fe546d0901021436p4a61f1bv74942a0bb69167cb@mail.gmail.com> <495E9795.9000106@traversetechnologies.com> <4966059B.7020103@traversetechnologies.com> Message-ID: <30fe546d0901082228r6d37356fqd8b4d535968f7b9d@mail.gmail.com> Sorry life has intervened... :/ Still on my to-do list though... Actually, to ensure it never falls off, if you ticket it with your map file as an attachment and cc: me on the ticket, I'll not lose it. P On Thu, Jan 8, 2009 at 5:54 AM, Dave Rafkind wrote: > Say, was there any final answer on the tile stuff (ie was I doing it wrong > somehow)? > > Thanks! > Dave > > Dave Rafkind wrote: >> >> Map file is at the bottom of this email, world shapefile is the popular >> "world_adm0" , can be gotten from here: >> >> http://www.cipotato.org/diva/data/misc/world_adm0.zip >> >> Paul Ramsey wrote: >>> >>> QGIS doesn't know anything about the SRS of your shape file. >>> If you share your Shape file and Map file, then we can either >>> reproduce your bug or confirm you are doing something wrong and tell >>> you what that something is. >>> >>> Paul >>> >>> On Fri, Jan 2, 2009 at 1:12 PM, Dave Rafkind >>> wrote: >>> >>>> >>>> Hi, thanks for your reply. Results follow: >>>> >>>> I can't remove the PROJECTION block, otherwise I get this error from >>>> mapserver: >>>> msTileSetProjectionst(): WMS server error. Cannot set new SRS on a map >>>> that >>>> doesn't have any projection set. Please make sure your mapfile has a >>>> PROJECTION defined at the top level. >>>> >>>> QGis thinks this is the spatial information for my test shapefile, this >>>> is >>>> 4326 (basically unprojected), right? >>>> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs >>>> >>>> If I have the PROJECTION block in the mapfile, I can indeed see tiles of >>>> some kind, but it looks like each tile overlaps in its spatial extent. >>>> >>>> See attached for "wrong" results..I changed some of the colors so it >>>> would >>>> be more obvious. >>>> >>>> >>>> >>>> >>>> Paul Ramsey wrote: >>>> >>>>> >>>>> Dave, >>>>> >>>>> - Remove the PROJECTION block from the MAP level (leave the one at the >>>>> LAYER level). Tile mode constructs its own output projection object, >>>>> it doesn't need map file configuration for the output projection, just >>>>> the inputs. >>>>> - Confirm that the shape file you are using *is* in fact epsg:4326 >>>>> - Try manually accessing the service using tile=0 or tile=1, and see >>>>> what comes back >>>>> - Show some pictures of "wrong" in your next mail >>>>> >>>>> P. >>>>> >>>>> On Fri, Jan 2, 2009 at 12:06 PM, Dave Rafkind >>>>> wrote: >>>>> >>>>> >>>>>> >>>>>> Thanks for the suggestions, but I don't think that's quite it: >>>>>> >>>>>> 1 - removing "epsg:4326" from the wms_srs part of the mapfile didn't >>>>>> fix >>>>>> it >>>>>> 2 - adding "&SRS=EPSG:900913" to the Virtual Earth "tileSource" string >>>>>> didn't fix it >>>>>> >>>>>> Is there anything else I can try? >>>>>> >>>>>> >>>>>> Fawcett, David wrote: >>>>>> >>>>>> >>>>>>> >>>>>>> Dave, >>>>>>> I am not sure if this is it, but in your WMS request, you are not >>>>>>> specifying a SRS. You are advertising two SRS' in your WEB WMS >>>>>>> "wms_srs" metadata. I wonder if MapServer is just defaulting to the >>>>>>> first SRS in your list in the absence of an explicit request? >>>>>>> David. >>>>>>> >>>>>>> -----Original Message----- >>>>>>> From: mapserver-users-bounces at lists.osgeo.org >>>>>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dave >>>>>>> Rafkind >>>>>>> Sent: Friday, January 02, 2009 12:39 PM >>>>>>> To: mapserver-users at lists.osgeo.org >>>>>>> Subject: [mapserver-users] Trouble with mode=tile >>>>>>> >>>>>>> >>>>>>> Hi list, I'm using the latest ms4w on a windows XP box. When trying >>>>>>> to >>>>>>> use >>>>>>> mapserver's tile mode in a Virtual Earth or Google Maps control, it >>>>>>> looks totally wrong (like the wrong projection is being used >>>>>>> perhaps?). >>>>>>> What is the right way to go about this? >>>>>>> >>>>>>> Here's mapserver.exe -v: >>>>>>> >>>>>>> C:\ms4w\Apache\cgi-bin>mapserv -v >>>>>>> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>>>>>> OUTPUT=PDF >>>>>>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>>>>>> SUPPORTS=ICO >>>>>>> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>>>>> SUPPORTS=WFS_SERVER >>>>>>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >>>>>>> SUPPORTS=FASTCGI SUP >>>>>>> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG >>>>>>> INPUT=POSTGIS >>>>>>> INPUT=OGR >>>>>>> INPUT=GDAL INPUT=SHAPEFILE >>>>>>> >>>>>>> Here's the relevant part of my web page with the map control: >>>>>>> map=new VEMap('myMap'); >>>>>>> // ... >>>>>>> var layerId = "myCustomTileLayer"; >>>>>>> var tileSource = >>>>>>> >>>>>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>>>>> ap&layers=world&mode=tile&tilemode=ve&tile=%4"; >>>>>>> var tileSourceSpec = new VETileSourceSpecification(layerId, >>>>>>> tileSource); >>>>>>> // ... >>>>>>> >>>>>>> Here's the last line of my EPSG file (from c:\ms4w\proj\nad\epsg) >>>>>>> # google/virtual earth spherical mercator >>>>>>> <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 >>>>>>> >>>>>>> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <> >>>>>>> >>>>>>> >>>>>>> And here's my map file: >>>>>>> MAP >>>>>>> IMAGETYPE PNG >>>>>>> OUTPUTFORMAT >>>>>>> NAME png >>>>>>> DRIVER "GD/PNG" >>>>>>> MIMETYPE "image/png" >>>>>>> IMAGEMODE RGBA >>>>>>> EXTENSION "png" >>>>>>> TRANSPARENT ON >>>>>>> END >>>>>>> >>>>>>> SHAPEPATH "/src/maps/mapdata" >>>>>>> FONTSET "/src/maps/mapdata/fonts.list" >>>>>>> IMAGECOLOR 0 0 0 >>>>>>> >>>>>>> WEB >>>>>>> METADATA >>>>>>> "wms_title" "WMS Demo Server" >>>>>>> "wms_onlineresource" >>>>>>> >>>>>>> >>>>>>> "http://localhost/cgi-bin/mapserv.exe?map=/src/maps/mapdata/maps/dave1.m >>>>>>> ap&" >>>>>>> "wms_srs" "EPSG:4326 EPSG:900913" >>>>>>> END >>>>>>> END >>>>>>> >>>>>>> PROJECTION >>>>>>> "init=epsg:900913" >>>>>>> END >>>>>>> >>>>>>> SYMBOL >>>>>>> name "circle" >>>>>>> type ellipse >>>>>>> filled true >>>>>>> POINTS 1 1 END >>>>>>> END >>>>>>> >>>>>>> SYMBOL >>>>>>> NAME 'dashed1' >>>>>>> TYPE ELLIPSE >>>>>>> POINTS 1 1 END >>>>>>> FILLED true >>>>>>> STYLE 4 4 END >>>>>>> END >>>>>>> >>>>>>> SYMBOL >>>>>>> NAME 'railway' >>>>>>> TYPE cartoline >>>>>>> LINECAP butt >>>>>>> LINEJOIN miter >>>>>>> LINEJOINMAXSIZE 3 >>>>>>> STYLE >>>>>>> 1 10 1 10 >>>>>>> END >>>>>>> END >>>>>>> >>>>>>> LAYER >>>>>>> PROJECTION >>>>>>> "init=epsg:4326" >>>>>>> END >>>>>>> NAME world >>>>>>> DATA "world/world_adm0.shp" >>>>>>> STATUS OFF >>>>>>> TYPE LINE >>>>>>> LABELITEM "REGION" >>>>>>> CLASS >>>>>>> STYLE >>>>>>> COLOR 255 255 255 >>>>>>> OUTLINECOLOR 0 0 0 >>>>>>> END >>>>>>> LABEL >>>>>>> COLOR 0 0 0 >>>>>>> OUTLINECOLOR 255 255 255 >>>>>>> TYPE TRUETYPE >>>>>>> FONT arial >>>>>>> SIZE 9 >>>>>>> ANTIALIAS TRUE >>>>>>> PARTIALS FALSE >>>>>>> MINDISTANCE 250 >>>>>>> BUFFER 4 >>>>>>> END >>>>>>> END >>>>>>> END >>>>>>> END >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 ben at remoteinformation.com.au Thu Jan 8 23:51:26 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Fri, 9 Jan 2009 16:51:26 +0900 Subject: [mapserver-users] Query result attribute sums / totals In-Reply-To: <20090108192856.44DD3E013B9@lists.osgeo.org> References: <20090108192856.44DD3E013B9@lists.osgeo.org> Message-ID: G'day all, I have a straightforward query setup on a line layer showing movements between locations over a selected time period. When I select query mode, the data is returned beautifully (well, it's nice to see it!) # Date Species Number Purpose Origin Destination Movement id 1 07/07/2008 Cattle 40 Slaughter Luangprabang Vientiane Capital More Information 2 15/07/2008 Cattle 7 Sell To Middle Man Luangprabang Vientiane Capital More Information 3 27/07/2008 Cattle 5 Slaughter Luangprabang Vientiane Capital More Information etc However it would be really really great if the total Number over this time could be calculated as a total, and put in the footer row. (I have done this previously using mapscript, but for time reasons don't want to go there at the moment.) Is there an [attribute_sum] type of tag I can embed in the footer... or any other suggestions? cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From Neil.Young at Freenet.de Fri Jan 9 00:32:27 2009 From: Neil.Young at Freenet.de (Neil.Young) Date: Fri, 09 Jan 2009 09:32:27 +0100 Subject: [mapserver-users] Mapserver MS SQL Server Spacial In-Reply-To: <177694.82996.qm@web33205.mail.mud.yahoo.com> References: <177694.82996.qm@web33205.mail.mud.yahoo.com> Message-ID: <49670B9B.8070504@Freenet.de> It is supported. See this sample: http://johanneskebeck.spaces.live.com/blog/cns!42E1F70205EC8A96!7718.entry?_c=BlogPart pcreso at pcreso.com schrieb: > > --- On Fri, 1/9/09, Richard Greenwood wrote: > > >> From: Richard Greenwood >> Subject: Re: [mapserver-users] Mapserver MS SQL Server Spacial >> To: "Donald Kerr" >> Cc: mapserver-users at lists.osgeo.org >> Date: Friday, January 9, 2009, 4:56 PM >> On Thu, Jan 8, 2009 at 6:33 AM, Donald Kerr >> wrote: >> >>> Is it possible to connect to MS SQL Server Spacial in >>> >> the same was as >> >>> PostGis? >>> >> I do not think that Microsoft SQL Server is officially >> supported in >> MapServer yet, however you can get it working using >> binaries at: >> >> http://vbkto.dyndns.org:1280/tests/release-1400-20081013.zip >> >> read the thread at: >> >> http://mail.google.com/mail/?ui=2&ik=a8159b4950&view=cv&fs=1&tf=1&ver=a9SCC6X1Wbg&am=x_k6ocT3aCEJBf1qUObqFA&q=release-1400-20081013.zip&search=query&th=11cf6af5d8018b96&qt=release.1.1400.1.20081013.1.zip.1 >> >> The relevant line in the layer object in the MapFile: >> CONNECTIONTYPE PLUGIN >> PLUGIN "msplugin_mssql2008.dll" >> CONNECTION "server=.\SQLEXPRRESS; >> database=sc_lands; Integrated >> Security=true" >> DATA "geom FROM ownership WITH (INDEX(geom_sidx)) >> USING SRID=0 >> USING UNIQUE id" >> >> HTH, >> Rich >> >> -- >> Richard Greenwood >> richard.greenwood at gmail.com >> www.greenwoodmap.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 szekerest at gmail.com Fri Jan 9 01:07:06 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 9 Jan 2009 10:07:06 +0100 Subject: [mapserver-users] Mapserver MS SQL Server Spacial In-Reply-To: <56A80C82A51346C089EE8ECC381C1ABF@DELL> References: <200901081318.17607.yjacolin@free.fr> <56A80C82A51346C089EE8ECC381C1ABF@DELL> Message-ID: You can use the mssql2008 plugin on Windows platforms to access MSSQL2008 spatial, the latest fixes have been incorporated in MapServer version 5.2.1 (2008-12-01) Best regards, Tamas 2009/1/8 Donald Kerr > Is it possible to connect to MS SQL Server Spacial in the same was as > PostGis? > > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM topographicline USING UNIQUE toid" > > Or > > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM (SELECT toid, featurecode, textstring, orientation/10 AS > orientation, fontnumber, anchorposition, textstyle, geom FROM > cartographictext) AS foo USING UNIQUE toid" > > If not, is there an alternative method without altering the database? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > 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 alexandre.rodier at carm.es Fri Jan 9 01:16:30 2009 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Fri, 9 Jan 2009 10:16:30 +0100 Subject: [mapserver-users] Problem with template Message-ID: <8DB813E500220E49824A37D46669749D56C9C6@CORREO06.carm.msda> Hi everyone, Before to explain my problem I wish a happy new year. Well, my problem is relationed with a mail than i sent past dicember about problem with template. I define a map file with template definition in layer object (I attach it). I define also MIME format for query in the web object like "wms_feature_info_mime_type" "text/html,text/plain". And finaly I define the templates files (I also attach them). The mapfile define a vector layer from shape file with few atrributes. The problem appears when I perform a GetFeatureinfo request: A GetFeatureInfo request in my web browser like this "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/datos/map/prueba.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=ENP&STYLES=&QUERY_LAYERS=ENP&x=300&y=300&SRS=EPSG:23030&BBox= 610822.81,4137430.54,707593.47,4266594&WIDTH=800&HEIGHT=500&INFO_FORMAT=text/html" returns this result: GetFeatureInfo results: Layer 'ENP' Feature 6: As you can see, the query doesn't return attribute from shape file. When X,Y coordinates doesn't match with any feature, the request returns: GetFeatureInfo results: Search returned no results. Someone knows the source of the problem. Thanks. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: prueba.map Type: application/octet-stream Size: 5010 bytes Desc: prueba.map URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre.rodier at carm.es Fri Jan 9 02:19:39 2009 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Fri, 9 Jan 2009 11:19:39 +0100 Subject: [mapserver-users] Problem with template References: <8DB813E500220E49824A37D46669749D56C9C6@CORREO06.carm.msda> <9771eb540901090123w28672f2dt6b28989940014599@mail.gmail.com> Message-ID: <8DB813E500220E49824A37D46669749D56C9CC@CORREO06.carm.msda> Hola David, No he conseguido a?n que me funcionen las plantillas, pero lo que s? he conseguido es que me devuelva todos los atributos en texto plano. Lo he conseguido a?adiendo lo siguiente: "wms_include_items" "all" en el objeto LAYER. Y entonces me devuelve lo correcto (aunque de momento sin formato html): GetFeatureInfo results: Layer 'ENP' Feature 6: ENP_NOMBRE = 'Carrascoy y El Valle' ENP_CAT = 'Parque Regional' HECTAREAS = '11873.77004420' ENP_FECHA = '20050610' LINK = 'http://www.carm.es/medioambiente/articulos.html?id=2469' SHAPE_AREA = '1.18737700435e+008' SHAPE_LEN = '1.31916887359e+005' En fin, voy a seguir probando. Un saludo. Hi David, Template still does not work, but i get full results with plain text. I get it adding this tag "wms_include_items" "all" in the LAYER object. And then it returns correct results (though without html format). Well, I continue testing. Bye. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- ________________________________ De: David Martinez Morata [mailto:damarmo at gmail.com] Enviado el: viernes, 09 de enero de 2009 10:23 Para: RODIER BATISSE, ALEXANDRE Asunto: Re: [mapserver-users] Problem with template No se si esto te ayudara, pero elimina ciertos elementos html de tus ficheros plantilla imaginate que los tres forman un solo fichero html, es decir que no cierres el contenido html (/html) en la cabecera ni en el cuerpo, hazlo solo en el pie, no pongas cabeceras a los ficheros cuerpo y pie... Suerte 2009/1/9 RODIER BATISSE, ALEXANDRE Hi everyone, Before to explain my problem I wish a happy new year. Well, my problem is relationed with a mail than i sent past dicember about problem with template. I define a map file with template definition in layer object (I attach it). I define also MIME format for query in the web object like "wms_feature_info_mime_type" "text/html,text/plain". And finaly I define the templates files (I also attach them). The mapfile define a vector layer from shape file with few atrributes. The problem appears when I perform a GetFeatureinfo request: A GetFeatureInfo request in my web browser like this "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/datos/map/prueba.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=ENP&STYLES=&QUERY_LAYERS=ENP&x=300&y=300&SRS=EPSG:23030&BBox= 610822.81,4137430.54,707593.47,4266594&WIDTH=800&HEIGHT=500&INFO_FORMAT=text/html" returns this result: GetFeatureInfo results: Layer 'ENP' Feature 6: As you can see, the query doesn't return attribute from shape file. When X,Y coordinates doesn't match with any feature, the request returns: GetFeatureInfo results: Search returned no results. Someone knows the source of the problem. Thanks. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From simone.frigerio at unimib.it Fri Jan 9 02:39:58 2009 From: simone.frigerio at unimib.it (simone.frigerio) Date: Fri, 09 Jan 2009 11:39:58 +0100 Subject: [mapserver-users] RASTER CLASSES AND QUERY ERROR Message-ID: Dear all, I had some problem to visualize a GRID ESRI, but it was solved passing through a geodatabase, importing the GRID and extracting like other type of raster (img raster in my case). The layer was correctly visualized in the map. But at this level I want to check two points: - if I have a DEM for example (resolution 1 meter) and I want to visualize it with this same resolution, how I can define the class and the the style? The range of height goes from 900 m to 1324 m, but I can not create a class for every meter! Is there a way to represent in continous this range in the map? - for the query on this layer, I proceed in this way: I have an .img image raster and an associated table with a field "VALUE" with height value, "COUNT" with number of pixel and "OGC_FID", created for the metadata necessary for query. This is a part of the table: VALUE COUNT OGC_FID 900 4073 0 901 13132 1 902 7475 2 ... .... ... And this is a part of the mapfile referred to query on raster: LAYER NAME "DEM" TYPE raster DATA "rrdd33_id" TEMPLATE "ttt" METADATA "id_attribute_string" "OGC_FID|string" "query_returned_attributes" "VALUE" END ... thanks Simone From alexandre.rodier at carm.es Fri Jan 9 04:25:21 2009 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Fri, 9 Jan 2009 13:25:21 +0100 Subject: [mapserver-users] Problem with template References: <8DB813E500220E49824A37D46669749D56C9C6@CORREO06.carm.msda> <9771eb540901090123w28672f2dt6b28989940014599@mail.gmail.com> <8DB813E500220E49824A37D46669749D56C9CC@CORREO06.carm.msda> <9771eb540901090237h13da608fodd6ea05bd43dd366@mail.gmail.com> Message-ID: <8DB813E500220E49824A37D46669749D56C9D3@CORREO06.carm.msda> Hola David, Muchas gracias por la ayuda porque ahora funciona. Y adem?s entiendo por fin como funciona (aunque sigo teniendo alg?n peque?o desajuste entre la cabecera y el pie, cuando activo el fichero de pie). Te adjunto el fichero map y las dos plantillas para que veas como se han quedado. Muchas gracias. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- ________________________________ De: David Martinez Morata [mailto:damarmo at gmail.com] Enviado el: viernes, 09 de enero de 2009 11:38 Para: RODIER BATISSE, ALEXANDRE Asunto: Re: [mapserver-users] Problem with template Intenta eliminar las lineas 67 y 68 (definiciopn de header y footer de tu pagina web) y la linea 119 (footer de la tabla) he modificado tus ficher header.html Y Template.html intenta suprimir tambien en "wms_feature_info_mime_type" el valor "text/plain" El 9 de enero de 2009 11:19, RODIER BATISSE, ALEXANDRE escribi?: Hola David, No he conseguido a?n que me funcionen las plantillas, pero lo que s? he conseguido es que me devuelva todos los atributos en texto plano. Lo he conseguido a?adiendo lo siguiente: "wms_include_items" "all" en el objeto LAYER. Y entonces me devuelve lo correcto (aunque de momento sin formato html): GetFeatureInfo results: Layer 'ENP' Feature 6: ENP_NOMBRE = 'Carrascoy y El Valle' ENP_CAT = 'Parque Regional' HECTAREAS = '11873.77004420' ENP_FECHA = '20050610' LINK = 'http://www.carm.es/medioambiente/articulos.html?id=2469' SHAPE_AREA = '1.18737700435e+008' SHAPE_LEN = '1.31916887359e+005' En fin, voy a seguir probando. Un saludo. Hi David, Template still does not work, but i get full results with plain text. I get it adding this tag "wms_include_items" "all" in the LAYER object. And then it returns correct results (though without html format). Well, I continue testing. Bye. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- ________________________________ De: David Martinez Morata [mailto:damarmo at gmail.com] Enviado el: viernes, 09 de enero de 2009 10:23 Para: RODIER BATISSE, ALEXANDRE Asunto: Re: [mapserver-users] Problem with template No se si esto te ayudara, pero elimina ciertos elementos html de tus ficheros plantilla imaginate que los tres forman un solo fichero html, es decir que no cierres el contenido html (/html) en la cabecera ni en el cuerpo, hazlo solo en el pie, no pongas cabeceras a los ficheros cuerpo y pie... Suerte 2009/1/9 RODIER BATISSE, ALEXANDRE Hi everyone, Before to explain my problem I wish a happy new year. Well, my problem is relationed with a mail than i sent past dicember about problem with template. I define a map file with template definition in layer object (I attach it). I define also MIME format for query in the web object like "wms_feature_info_mime_type" "text/html,text/plain". And finaly I define the templates files (I also attach them). The mapfile define a vector layer from shape file with few atrributes. The problem appears when I perform a GetFeatureinfo request: A GetFeatureInfo request in my web browser like this "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/datos/map/prueba.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=ENP&STYLES=&QUERY_LAYERS=ENP&x=300&y=300&SRS=EPSG:23030&BBox= 610822.81,4137430.54,707593.47,4266594&WIDTH=800&HEIGHT=500&INFO_FORMAT=text/html" returns this result: GetFeatureInfo results: Layer 'ENP' Feature 6: As you can see, the query doesn't return attribute from shape file. When X,Y coordinates doesn't match with any feature, the request returns: GetFeatureInfo results: Search returned no results. Someone knows the source of the problem. Thanks. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Martinez Morata David Thinking GIS -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: prueba.map Type: application/octet-stream Size: 5031 bytes Desc: prueba.map URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From Neil.Young at Freenet.de Fri Jan 9 05:08:35 2009 From: Neil.Young at Freenet.de (Neil.Young) Date: Fri, 09 Jan 2009 14:08:35 +0100 Subject: [mapserver-users] Mapserver MS SQL Server Spacial In-Reply-To: References: <200901081318.17607.yjacolin@free.fr> <56A80C82A51346C089EE8ECC381C1ABF@DELL> Message-ID: <49674C53.8000505@Freenet.de> ...but it is by far not that "performant", as e.g. MapDotNet is.... I'm sorry to say that, but that's the way it is.. Tamas Szekeres schrieb: > You can use the mssql2008 plugin on Windows platforms to access > MSSQL2008 spatial, the latest fixes have been incorporated in > MapServer version 5.2.1 (2008-12-01) > > Best regards, > > Tamas > > > > 2009/1/8 Donald Kerr > > > Is it possible to connect to MS SQL Server Spacial in the same was as > PostGis? > > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM topographicline USING UNIQUE toid" > > Or > > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=MasterMap host=localhost" > DATA "geom FROM (SELECT toid, featurecode, textstring, > orientation/10 AS > orientation, fontnumber, anchorposition, textstyle, geom FROM > cartographictext) AS foo USING UNIQUE toid" > > If not, is there an alternative method without altering the database? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > 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 richard.greenwood at gmail.com Fri Jan 9 05:30:30 2009 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Fri, 9 Jan 2009 06:30:30 -0700 Subject: [mapserver-users] Query result attribute sums / totals In-Reply-To: References: <20090108192856.44DD3E013B9@lists.osgeo.org> Message-ID: On Fri, Jan 9, 2009 at 12:51 AM, Ben Madin wrote: > G'day all, > > I have a straightforward query setup on a line layer showing movements > between locations over a selected time period. > > When I select query mode, the data is returned beautifully (well, it's nice > to see it!) > > # Date Species Number Purpose Origin > Destination Movement id > 1 07/07/2008 Cattle 40 Slaughter Luangprabang > Vientiane Capital More Information > 2 15/07/2008 Cattle 7 Sell To Middle Man Luangprabang > Vientiane Capital More Information > 3 27/07/2008 Cattle 5 Slaughter Luangprabang > Vientiane Capital More Information > > etc > > However it would be really really great if the total Number over this time > could be calculated as a total, and put in the footer row. > > (I have done this previously using mapscript, but for time reasons don't > want to go there at the moment.) > > Is there an [attribute_sum] type of tag I can embed in the footer... or any > other suggestions? > You could easily calculate the sum with JavaScript in the browser. Declare a variable "total" and then for each row, within a JavaScript tag, something like: total += [Number] -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From szekerest at gmail.com Fri Jan 9 05:45:40 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 9 Jan 2009 14:45:40 +0100 Subject: [mapserver-users] Mapserver MS SQL Server Spacial In-Reply-To: <4967477A.6040606@freenet.de> References: <200901081318.17607.yjacolin@free.fr> <56A80C82A51346C089EE8ECC381C1ABF@DELL> <4967477A.6040606@freenet.de> Message-ID: 2009/1/9 Roland Klabunde > ...but it is by far not that "performant", as e.g. MapDotNet is.... I'm > sorry to say that, but that's the way it is.. > Do you have some measures to compare the performance? As far as I know MapDotNet use this same driver along with MapServer as the drawing kernel. The mssql2008 plugin have been contributed by ISC furthermore. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Jan 9 05:47:13 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 09 Jan 2009 08:47:13 -0500 Subject: [mapserver-users] Path for errorfile In-Reply-To: <374D588E-8202-4D5E-8A02-0FDA62688607@remoteinformation.com.au> References: <20081219061510.45271E01463@lists.osgeo.org> <374D588E-8202-4D5E-8A02-0FDA62688607@remoteinformation.com.au> Message-ID: <49675561.2090506@mapgears.com> Ben, You are correct that relative paths are not supported for MS_ERRORFILE. You could file a ticket about this, and if/when time permits we'll look at the implications of supporting relative paths in all possible scenarios and see if this could safely be added. i.e. it may be possible to get predictable results with a relative path only when setting MS_ERRORFILE in the mapfile but not when setting it via an environment variable, we'll have to see. Daniel Ben Madin wrote: > G'day all, > > as a negative, Can you not use a relative reference for the errorfile? > > for example, using : > > CONFIG "MS_ERRORFILE" > "/Users/19022662/Sites/marketprices/mapserver/mserr.log" > DEBUG 4 > > works as expected, writing copious quantities to the log. > > using : > > CONFIG "MS_ERRORFILE" "mserr.log" > DEBUG 4 > > does not, although both the .log file and the .map file are in the > /Users/19022662/Sites/marketprices/mapserver/ directory. Relative paths > work fine for symbol files, data etc. > > I also note that the RFC28 refers to setting this : > > It will be possible to specify MS_ERRORFILE either as an environment > variable or via a CONFIG directive inside a mapfile: > CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" > or > CONFIG "MS_ERRORFILE" "stderr" > but doesn't specify whether or not a relative path could be used. > > This is inconsistent with all other specifications of path, can/should > it be amended? Should I file this as a bug? > > cheers > > Ben > > > > -- Daniel Morissette http://www.mapgears.com/ From szekerest at gmail.com Fri Jan 9 07:12:08 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 9 Jan 2009 16:12:08 +0100 Subject: [mapserver-users] Mapserver MS SQL Server Spacial In-Reply-To: <49675D67.2070201@freenet.de> References: <200901081318.17607.yjacolin@free.fr> <56A80C82A51346C089EE8ECC381C1ABF@DELL> <4967477A.6040606@freenet.de> <49675D67.2070201@freenet.de> Message-ID: We would normally require an exact measure to interpret this conclusion by describing the test environment settings and the data source settings in both cases. You cannot easily place the equal-sign between the performance of a cgi, fast cgi, or a mapscript application or even a single point layer may highly outperform a layer with complex symbology for instance. Best regards, Tamas 2009/1/9 Roland Klabunde > No, not at all. It is just an impression. I was comparing MapDotNet Ux vs. > MS24W. The latter is much more less performing... > > Tamas Szekeres schrieb: > >> >> 2009/1/9 Roland Klabunde > roland.klabunde at freenet.de>> >> >> >> ...but it is by far not that "performant", as e.g. MapDotNet >> is.... I'm sorry to say that, but that's the way it is.. >> >> >> Do you have some measures to compare the performance? As far as I know >> MapDotNet use this same driver along with MapServer as the drawing kernel. >> The mssql2008 plugin have been contributed by ISC furthermore. >> >> Best regards, >> >> Tamas >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 boesiii at yahoo.com Fri Jan 9 09:06:43 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 9 Jan 2009 09:06:43 -0800 (PST) Subject: [mapserver-users] Help, Error Message: CGI variable "map" is not set. In-Reply-To: <1231438276015-2129226.post@n2.nabble.com> References: <1231438276015-2129226.post@n2.nabble.com> Message-ID: <1231520803114-2134229.post@n2.nabble.com> There was an extra space in the address, it works now. boesiii wrote: > > I just trying to get a static map to show up in my browser. > > I have a map file created and I have a shapefile. > > When I type "http://127.0.0.1/cgi-bin/mapserv.exe? > map=/osgeo4w/apps/tutorial/htdocs/nira1.map&layer=roads&mode=map" in the > address bar in Firefox. I get an error message "loadMap(): Web > application error. CGI variable "map" is not set." > > What do I need to do get a working static map? > -- View this message in context: http://n2.nabble.com/Help%2C-Error-Message%3A-CGI-variable-%22map%22-is-not-set.-tp2129226p2134229.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boesiii at yahoo.com Fri Jan 9 10:26:31 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 9 Jan 2009 10:26:31 -0800 (PST) Subject: [mapserver-users] Problem with dynamic map Message-ID: <1231525591506-2134557.post@n2.nabble.com> http://n2.nabble.com/file/n2134557/nira2.html nira2.html http://n2.nabble.com/file/n2134557/nira2.map nira2.map I am trying to create a dynamic map but when I open my html in firefox the map doesn't show up and when I click on the map it asks if I want to save mapserv.exe I attached my html file and map file. I tried going thru the demo with no luck. Could someone help? -- View this message in context: http://n2.nabble.com/Problem-with-dynamic-map-tp2134557p2134557.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sorenscott at gmail.com Fri Jan 9 10:47:52 2009 From: sorenscott at gmail.com (sscottgis) Date: Fri, 9 Jan 2009 10:47:52 -0800 (PST) Subject: [mapserver-users] Imagemap size doesn't match display map Message-ID: <1231526872372-2134663.post@n2.nabble.com> I have created an imagemap/image for the lower 48 states using 2 mapfiles to define the polygons following the demo in the wiki. They noted that if you use separate maps, the SIZE and EXTENT should be the same. I have those set the same in both files, but the imagemap that gets returned is vertically squished. Here's the map file for the imagemap layer: MAP NAME "droughtplan_imgmap" STATUS ON SIZE 500 275 # set projection for map PROJECTION "init=epsg:4326" END EXTENT -126 24 -66 50 UNITS METERS STATUS ON IMAGECOLOR 255 255 255 WEB IMAGEPATH "e:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END #QUERYMAP # STATUS ON # STYLE NORMAL #END LAYER NAME "droughtplans_imgmap" STATUS DEFAULT TYPE POLYGON DATA "../data/droughtplans_imgmap" TEMPLATE "planbody.html" HEADER "planheader.html" FOOTER "planfooter.html" CLASSITEM "State" CLASS COLOR -1 -1 -1 NAME "State" OUTLINECOLOR 110 110 110 END END END END and the file for the display layer: MAP NAME "droughtplan_wms" STATUS ON SIZE 500 275 # set projection for map PROJECTION "init=epsg:4326" END EXTENT -126 24 -66 50 UNITS METERS STATUS ON IMAGECOLOR 255 255 255 # image format OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END WEB IMAGEPATH "e:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" HEADER "../templates/query_header.html" FOOTER "../templates/query_footer.html" END QUERYMAP STATUS ON STYLE NORMAL END LAYER NAME "droughtplans" STATUS DEFAULT TYPE POLYGON DATA "../data/droughtplans" DUMP TRUE HEADER ../templates/ndmc_query_header.html TEMPLATE ../templates/ndmc_query_body.html CLASSITEM "Status" CLASS COLOR 255 255 255 OUTLINECOLOR 110 110 110 EXPRESSION "0" NAME "No Plan" SYMBOL 0 END CLASS COLOR 139 209 0 OUTLINECOLOR 110 110 110 EXPRESSION "1" NAME "Emphasizing Mitigation" SYMBOL 0 END CLASS COLOR 255 255 0 OUTLINECOLOR 110 110 110 EXPRESSION "2" NAME "Emphasizing Response" SYMBOL 0 END CLASS COLOR 255 128 0 OUTLINECOLOR 110 110 110 EXPRESSION "3" NAME "Emphasizing Disaster" SYMBOL 0 END CLASS COLOR 255 0 0 OUTLINECOLOR 110 110 110 EXPRESSION "4" NAME "Local Plans" SYMBOL 0 END END END END The header and footer are the basic tags described in the wiki, but with the map height and width set to the 500, 275 dimensions from the files. Here's the body template: [State] and the call to the image layer (these are part of an ASP.NET 2.0 web page and added as part of an httprequest): http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/drmon/service/droughtplans_wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=droughtplans&WIDTH=500&HEIGHT=275&srs=EPSG:4326&styles=default&format=image/png&bbox=-126,24,-66,50 I've got the extents and sizes set to the same 500, 275 dimensions everywhere, but the imagemap is still flattened (more like a box at 500 x 200). Everything else works fine--all of the areas are defined, the links work,etc; it just isn't aligned properly. Is there something missing or something else going on here? Any help/ideas are greatly appreciated. Soren -- View this message in context: http://n2.nabble.com/Imagemap-size-doesn%27t-match-display-map-tp2134663p2134663.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rwburgholzer at deq.virginia.gov Fri Jan 9 10:58:49 2009 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Fri, 9 Jan 2009 13:58:49 -0500 Subject: [mapserver-users] Online Dynamic Systems Modeling Suite - release 1.0 Message-ID: <6C097DA58429B743A67070F98BE73A370379B76B@deqex01.deq.local> (Sorry for cross-posting) This is an announcement of the official release of software for creating system dynamics models using nothing but a web-browser. This software is constructed of 100% Open Source software, and leverages such geospatial products as PostGIS, UMN MapServer and OpenLayers. User accounts are free, and registration is simple. The system can be accessed at: http://www.soulswimmer.net/wooomm/ A set of basic tutorials for using the system can be found at: http://www.soulswimmer.net/wooomm/doc/tutorials.html All feedback is welcome!! WOOOMM 1.0 (WOOOMM is Online Object Oriented Meta Modeling) is the initial release of a system for creating collaborative models of dynamic systems. This release was actually preceded by the WHO (Web Hydrology Objects) system, and is repackaged and renamed in recognition that the goals of the system extend far beyond the realm of hydrology. This modeling system aims to be a robust tool for creating models of dynamic systems in a collaborative web-based environment. These models may be created from scratch, using only the standard object components in WOOOMM, or by integrating other existing models that have been coupled with WOOOMM, and thus creating an integrated meta-model. -- Robert W. Burgholzer Home Page: http://www.soulswimmer.net/wooomm/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From zachc1980 at gmail.com Fri Jan 9 11:04:38 2009 From: zachc1980 at gmail.com (zach cruise) Date: Fri, 9 Jan 2009 14:04:38 -0500 Subject: [mapserver-users] website upgrade for older documentation In-Reply-To: <358062.2108.qm@web51401.mail.re2.yahoo.com> References: <49663632.7070309@gatewaygeomatics.com> <358062.2108.qm@web51401.mail.re2.yahoo.com> Message-ID: actually we just need to refer to old documentation for upgrading and porting, thanks though. if possible, we prefer something like http://www.mapserver.org/4.8/mapfile/map.html http://www.mapserver.org/5.2/mapfile/map.html much like http://www.postgresql.org/docs/8.1/interactive/sql-select.html http://www.postgresql.org/docs/8.1/static/sql-select.html http://www.postgresql.org/docs/8.2/interactive/sql-select.html http://www.postgresql.org/docs/8.2/static/sql-select.html On Thu, Jan 8, 2009 at 2:31 PM, Dan Little wrote: > Zach, > > Not trying to be a pushy guy... but is there a feature missing in 5.0 prevents you from upgrading? > > ----- Original Message ---- >> From: zach cruise >> To: Jeff McKenna >> Cc: mapserver-users at lists.osgeo.org >> Sent: Thursday, January 8, 2009 12:31:26 PM >> Subject: Re: [mapserver-users] website upgrade for older documentation >> >> thanks. any way to search 4.8 documentation? any one got archived copy >> other than >> http://web.archive.org/web/20060701050731/http://mapserver.gis.umn.edu/? >> >> On Thu, Jan 8, 2009 at 12:21 PM, Jeff McKenna >> wrote: >> > zach cruise wrote: >> >> >> >> On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote: >> >>> >> >>> great website upgrade at http://www.mapserver.org/. how can i search >> >>> for older documentation like with postgresql.org? >> > >> > The current (5.2.1) documents should have MapServer version references >> > inside them for specific functionality (such as a specific mapfile parameter >> > added in 5.0). >> > >> > -jeff >> > -- >> > Jeff McKenna >> > FOSS4G Consulting and Training Services >> > http://www.gatewaygeomatics.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 David.Fawcett at state.mn.us Fri Jan 9 11:07:39 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 9 Jan 2009 13:07:39 -0600 Subject: [mapserver-users] Imagemap size doesn't match display map In-Reply-To: <1231526872372-2134663.post@n2.nabble.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA0FD@s-sp22.pca.state.mn.us> Soren, I think that you are running into the issue where a WMS request can return non-square pixels, and that the ratio of height:width in your extent is not the same as the ratio of height:width in your image size. If you can make this as a regular CGI call, you won't see this problem. If you need to use WMS, make sure that you make the ratio's the same. e.g. 500/275 does not equal 60/26. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of sscottgis Sent: Friday, January 09, 2009 12:48 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Imagemap size doesn't match display map I have created an imagemap/image for the lower 48 states using 2 mapfiles to define the polygons following the demo in the wiki. They noted that if you use separate maps, the SIZE and EXTENT should be the same. I have those set the same in both files, but the imagemap that gets returned is vertically squished. Here's the map file for the imagemap layer: MAP NAME "droughtplan_imgmap" STATUS ON SIZE 500 275 # set projection for map PROJECTION "init=epsg:4326" END EXTENT -126 24 -66 50 UNITS METERS STATUS ON IMAGECOLOR 255 255 255 WEB IMAGEPATH "e:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END #QUERYMAP # STATUS ON # STYLE NORMAL #END LAYER NAME "droughtplans_imgmap" STATUS DEFAULT TYPE POLYGON DATA "../data/droughtplans_imgmap" TEMPLATE "planbody.html" HEADER "planheader.html" FOOTER "planfooter.html" CLASSITEM "State" CLASS COLOR -1 -1 -1 NAME "State" OUTLINECOLOR 110 110 110 END END END END and the file for the display layer: MAP NAME "droughtplan_wms" STATUS ON SIZE 500 275 # set projection for map PROJECTION "init=epsg:4326" END EXTENT -126 24 -66 50 UNITS METERS STATUS ON IMAGECOLOR 255 255 255 # image format OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END WEB IMAGEPATH "e:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" HEADER "../templates/query_header.html" FOOTER "../templates/query_footer.html" END QUERYMAP STATUS ON STYLE NORMAL END LAYER NAME "droughtplans" STATUS DEFAULT TYPE POLYGON DATA "../data/droughtplans" DUMP TRUE HEADER ../templates/ndmc_query_header.html TEMPLATE ../templates/ndmc_query_body.html CLASSITEM "Status" CLASS COLOR 255 255 255 OUTLINECOLOR 110 110 110 EXPRESSION "0" NAME "No Plan" SYMBOL 0 END CLASS COLOR 139 209 0 OUTLINECOLOR 110 110 110 EXPRESSION "1" NAME "Emphasizing Mitigation" SYMBOL 0 END CLASS COLOR 255 255 0 OUTLINECOLOR 110 110 110 EXPRESSION "2" NAME "Emphasizing Response" SYMBOL 0 END CLASS COLOR 255 128 0 OUTLINECOLOR 110 110 110 EXPRESSION "3" NAME "Emphasizing Disaster" SYMBOL 0 END CLASS COLOR 255 0 0 OUTLINECOLOR 110 110 110 EXPRESSION "4" NAME "Local Plans" SYMBOL 0 END END END END The header and footer are the basic tags described in the wiki, but with the map height and width set to the 500, 275 dimensions from the files. Here's the body template: [State] and the call to the image layer (these are part of an ASP.NET 2.0 web page and added as part of an httprequest): http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/drmon/service/drought plans_wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=droughtpla ns&WIDTH=500&HEIGHT=275&srs=EPSG:4326&styles=default&format=image/png&bb ox=-126,24,-66,50 I've got the extents and sizes set to the same 500, 275 dimensions everywhere, but the imagemap is still flattened (more like a box at 500 x 200). Everything else works fine--all of the areas are defined, the links work,etc; it just isn't aligned properly. Is there something missing or something else going on here? Any help/ideas are greatly appreciated. Soren -- View this message in context: http://n2.nabble.com/Imagemap-size-doesn%27t-match-display-map-tp2134663 p2134663.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 earevaloch at gmail.com Fri Jan 9 11:27:12 2009 From: earevaloch at gmail.com (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Fri, 9 Jan 2009 14:27:12 -0500 Subject: [mapserver-users] on Mapserver and php5_MapScript Message-ID: <95f68e530901091127p299b6ac7h3e7838c6527a66db@mail.gmail.com> As I write this line is highlighted in black php5_MapScript code in mapfile LAYER NAME Peru_dep DATA "departamentos.shp" STATUS ON TYPE POLYGON CLASSITEM NOMB_DEP CLASS NAME "LIMA" *EXPRESSION /LIMA/* STYLE COLOR 200 150 2 OUTLINECOLOR 0 0 0 END END y los quiero pasar a PHP version php coce // Creamos un Layer dentro de nuestro MapObj y seteamos sus propiedades $jLayer = ms_newLayerObj($jMap); $jLayer->set( "name", "Peru_dep"); $jLayer->set( "type", MS_LAYER_POLYGON); $jLayer->set( "status", MS_ON); $jLayer->set( "data", "departamentos.shp"); $jLayer->set( "classitem", "NOMB_DEP"); //Creamos un classObj dentro del LayerObj $jClass = ms_newClassObj($jLayer); $jClass->set( "name", "LIMA"); *$jClass->set( "Expression", "/LIMA/");* //Creamos un styleObj dentro del classObj $jStyle = ms_newStyleObj($jClass); $jStyle->color->setRGB(200, 150, 2); $jStyle->outlinecolor->setRGB(200, 200, 200); -------------- next part -------------- An HTML attachment was scrubbed... URL: From geosigmat at yahoo.ca Fri Jan 9 13:31:40 2009 From: geosigmat at yahoo.ca (Geosig) Date: Fri, 9 Jan 2009 13:31:40 -0800 (PST) Subject: [mapserver-users] how MapServer manage the hyperlinks in the shapefile data table Message-ID: <1231536700128-2135378.post@n2.nabble.com> Hi everybody I am new in using MapServer so excuse me if my question it seems to you somehow... strange. There is any possibility to ad hyperlinks to the shapefile data table used by MapServer, so that when we see a querry table to be capable to follow these links? Thank you -- View this message in context: http://n2.nabble.com/how-MapServer-manage-the-hyperlinks-in-the-shapefile-data-table-tp2135378p2135378.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Fri Jan 9 14:24:47 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 09 Jan 2009 17:24:47 -0500 Subject: [mapserver-users] website upgrade for older documentation In-Reply-To: References: <49663632.7070309@gatewaygeomatics.com> <358062.2108.qm@web51401.mail.re2.yahoo.com> Message-ID: <4967CEAF.20802@swoodbridge.com> Zach, et al, It might be possible to do something like you are suggesting going forward, as the documentation is been migrated into svn and should get tagged with each release we do. Since this was not done in the past it is unlikely that we can go backward in time with this type a scenario. I think it will be up to the doc and web team to look into doing something like this, but I believe the 1st step of having the docs in svn is the critical pieces to be able to do anything like this. I think you should write a ticket in the bug tracking system and then post the tick number so interested parties can sign up to be CC on it. Thanks, -Steve zach cruise wrote: > actually we just need to refer to old documentation for upgrading and > porting, thanks though. if possible, we prefer something like > > http://www.mapserver.org/4.8/mapfile/map.html > http://www.mapserver.org/5.2/mapfile/map.html > much like > http://www.postgresql.org/docs/8.1/interactive/sql-select.html > http://www.postgresql.org/docs/8.1/static/sql-select.html > http://www.postgresql.org/docs/8.2/interactive/sql-select.html > http://www.postgresql.org/docs/8.2/static/sql-select.html > > On Thu, Jan 8, 2009 at 2:31 PM, Dan Little wrote: >> Zach, >> >> Not trying to be a pushy guy... but is there a feature missing in 5.0 prevents you from upgrading? >> >> ----- Original Message ---- >>> From: zach cruise >>> To: Jeff McKenna >>> Cc: mapserver-users at lists.osgeo.org >>> Sent: Thursday, January 8, 2009 12:31:26 PM >>> Subject: Re: [mapserver-users] website upgrade for older documentation >>> >>> thanks. any way to search 4.8 documentation? any one got archived copy >>> other than >>> http://web.archive.org/web/20060701050731/http://mapserver.gis.umn.edu/? >>> >>> On Thu, Jan 8, 2009 at 12:21 PM, Jeff McKenna >>> wrote: >>>> zach cruise wrote: >>>>> On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote: >>>>>> great website upgrade at http://www.mapserver.org/. how can i search >>>>>> for older documentation like with postgresql.org? >>>> The current (5.2.1) documents should have MapServer version references >>>> inside them for specific functionality (such as a specific mapfile parameter >>>> added in 5.0). >>>> >>>> -jeff >>>> -- >>>> Jeff McKenna >>>> FOSS4G Consulting and Training Services >>>> http://www.gatewaygeomatics.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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ben at remoteinformation.com.au Fri Jan 9 18:25:44 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Sat, 10 Jan 2009 11:25:44 +0900 Subject: [mapserver-users] Path for errorfile In-Reply-To: <49675561.2090506@mapgears.com> References: <20081219061510.45271E01463@lists.osgeo.org> <374D588E-8202-4D5E-8A02-0FDA62688607@remoteinformation.com.au> <49675561.2090506@mapgears.com> Message-ID: <183D41F1-8215-4D15-A872-F750951C6CC0@remoteinformation.com.au> G'day Daniel, On 09/01/2009, at 10:47 PM, Daniel Morissette wrote: > You are correct that relative paths are not supported for > MS_ERRORFILE. You could file a ticket about this, and if/when time > permits we'll look at the implications of supporting relative paths > in all possible scenarios and see if this could safely be added. > i.e. it may be possible to get predictable results with a relative > path only when setting MS_ERRORFILE in the mapfile but not when > setting it via an environment variable, we'll have to see. Thanks for the response, I have submitted it as a low priority enhancement (#2853), maybe just updating the documentation to clarify this point is enough for now. (Because I'm building on Mac OSX and deploying on FreeBSD, I'm a shameless user of relative references!) cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From ben at remoteinformation.com.au Fri Jan 9 18:46:30 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Sat, 10 Jan 2009 11:46:30 +0900 Subject: [mapserver-users] Query result attribute sums / totals In-Reply-To: References: <20090108192856.44DD3E013B9@lists.osgeo.org> Message-ID: <5E2CDF1A-764F-48FF-9BB0-3D63685A2ADE@remoteinformation.com.au> G'day Richard, On 09/01/2009, at 10:30 PM, Richard Greenwood wrote: > On Fri, Jan 9, 2009 at 12:51 AM, Ben Madin > wrote: >> However it would be really really great if the total Number over >> this time >> could be calculated as a total, and put in the footer row. > You could easily calculate the sum with JavaScript in the browser. > Declare a variable "total" and then for each row, within a JavaScript > tag, something like: > total += [Number] thank you - works perfectly! (and knowing this works opens up enormous opportunities for enhancing the output) cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From metlud at yahoo.it Sat Jan 10 00:09:39 2009 From: metlud at yahoo.it (Ludovico Bianchini) Date: Sat, 10 Jan 2009 09:09:39 +0100 Subject: [mapserver-users] How to draw a specific image per point element? Message-ID: <496857C3.7020404@yahoo.it> - Windows Vista Home Premium - Postgres 8.1 - jvm 1.6.0 - tomcat 5.5 - struts2 - ms4w 2.3.0 (mapscript.jar, mapscript.dll, all other dlls taken from this pack) - postgresql-8.2-505.jdbc4.jar Hi all, I have a database table of this type: TB_POINT (id NUMBER, geo GEOMETRY, title VARCHAR, icon VARCHAR, photo_path VARCHAR) and a mapfile's layer as: LAYER NAME "tb_point" STATUS off TYPE POINT TRANSFORM true POSTLABELCACHE true CONNECTION "user=xxxxx password=xxxxx dbname=xxxxx host=xxxxx port=xxxxx" CONNECTIONTYPE postgis DATA "geo from xxxxx.tb_point" MAXSCALE 50000 CLASSITEM "icon" CLASS EXPRESSION "1" STYLE BACKGROUNDCOLOR 255 255 255 COLOR 0 0 0 SYMBOL "a" MAXSIZE 10 END END CLASS EXPRESSION "2" STYLE BACKGROUNDCOLOR 255 255 255 COLOR 0 0 0 SYMBOL "b" MAXSIZE 10 END END END Based on value of field "icon" mapserver draw symbol "a" or symbol "b". What I am trying to do is to draw, based on value on field "photo_path", an image saved in file system. I'll appreciate very much any suggestions, ideas or links to tutorials and related documentation. Thanks in advance Ludovico Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From jmckenna at gatewaygeomatics.com Sat Jan 10 06:19:53 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 10 Jan 2009 09:19:53 -0500 Subject: [mapserver-users] Path for errorfile In-Reply-To: <183D41F1-8215-4D15-A872-F750951C6CC0@remoteinformation.com.au> References: <20081219061510.45271E01463@lists.osgeo.org> <374D588E-8202-4D5E-8A02-0FDA62688607@remoteinformation.com.au> <49675561.2090506@mapgears.com> <183D41F1-8215-4D15-A872-F750951C6CC0@remoteinformation.com.au> Message-ID: <4968AE89.50106@gatewaygeomatics.com> Ben Madin wrote: > G'day Daniel, > > On 09/01/2009, at 10:47 PM, Daniel Morissette wrote: > >> You are correct that relative paths are not supported for >> MS_ERRORFILE. You could file a ticket about this, and if/when time >> permits we'll look at the implications of supporting relative paths in >> all possible scenarios and see if this could safely be added. i.e. it >> may be possible to get predictable results with a relative path only >> when setting MS_ERRORFILE in the mapfile but not when setting it via >> an environment variable, we'll have to see. > > Thanks for the response, I have submitted it as a low priority > enhancement (#2853), maybe just updating the documentation to clarify > this point is enough for now. (Because I'm building on Mac OSX and > deploying on FreeBSD, I'm a shameless user of relative references!) > > cheers > > Ben Ben can you also file a ticket for the doc changes (in the "MapServer Documentation" component)? I'll update them for you when you do that, thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From mike at barrodale.com Sat Jan 10 09:32:45 2009 From: mike at barrodale.com (Mike Dunham-Wilkie) Date: Sat, 10 Jan 2009 09:32:45 -0800 Subject: [mapserver-users] Map file color value from shapefile attribute - what is the appropriate format? Message-ID: <85f0a7d50901100932r5760ffc2yecee5750e56002f5@mail.gmail.com> I understand that with Mapserver 5, values for mapfile COLOR, OUTLINECOLOR, etc. attributes can come from a shapefile attribute, but I cannot figure out what format this value should take in the shapefile. E.g., if the mapfile refers to a shapefile column called MY_COLOR, what would an appropriate format for the MY_COLOR value: e.g. '100 255 0', '#FF3355', etc. Many thanks,... Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From msieczka at sieczka.org Sat Jan 10 14:30:53 2009 From: msieczka at sieczka.org (Maciej Sieczka) Date: Sat, 10 Jan 2009 23:30:53 +0100 Subject: [mapserver-users] missing colors with an xml color table Message-ID: <4969219D.7000506@sieczka.org> Hi! There are missing colors when rendering a raster map with a colortable stored in an xml file. Example: I have an ESRI ASCII GRID with a colortable in xml (the files along with a mapfile all available at http://www.sieczka.org/tmp/smp.zip). Rendering the raster in QGIS I get a picture as the attached smp_qgis.png - which is OK. Rendering it with MapServer the result is as in the attached smp_ms.png - lacking the grey&black tones. Why the difference? Could/should MapServer follow QGIS behaviour? Using GDAL 1.6, MapServer 5.2.0 and QGIS 1.0 on Debian testing amd64. The command to reproduce the smp_ms.png: shp2img -e -4 20 36 61 -s 640 480 -m smp.map -o smp_ms.png Maciek -- Maciej Sieczka www.sieczka.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smp_qgis.png Type: image/png Size: 8738 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smp_ms.png Type: image/png Size: 5286 bytes Desc: not available URL: From boesiii at yahoo.com Sun Jan 11 10:43:55 2009 From: boesiii at yahoo.com (boesiii) Date: Sun, 11 Jan 2009 10:43:55 -0800 (PST) Subject: [mapserver-users] Problem with MS101 demo Message-ID: <1231699435868-2142314.post@n2.nabble.com> http://n2.nabble.com/file/n2142314/ms101_demo.png I have gone through all the examples and still can't get the final html code to work. I attached a picture of what I get when I open "file:///C:/ms4w/apps/ms101/htdocs/ms101final.html" in my browser. What could I be doing wrong? I need to get a working demo of a dynamic page so I can modify with my own conteent. -- View this message in context: http://n2.nabble.com/Problem-with-MS101-demo-tp2142314p2142314.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Sun Jan 11 10:53:49 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 11 Jan 2009 13:53:49 -0500 Subject: [mapserver-users] Problem with MS101 demo In-Reply-To: <1231699435868-2142314.post@n2.nabble.com> References: <1231699435868-2142314.post@n2.nabble.com> Message-ID: <496A403D.20502@swoodbridge.com> boesiii wrote: > http://n2.nabble.com/file/n2142314/ms101_demo.png > > I have gone through all the examples and still can't get the final html code > to work. I attached a picture of what I get when I open > "file:///C:/ms4w/apps/ms101/htdocs/ms101final.html" in my browser. > > What could I be doing wrong? > > I need to get a working demo of a dynamic page so I can modify with my own > conteent. I think you need to have apache running on your box and you need to access the file via apache like: http://localhost/ms101final.html You may need to fix the url based on where and how it is installed under apache. If you have the browser access the file using file:///.... then it will not run mapserver as a cgi-bin. -Steve W From bean at warbaby.com Sun Jan 11 17:54:26 2009 From: bean at warbaby.com (bean at warbaby.com) Date: Sun, 11 Jan 2009 18:54:26 -0700 Subject: [mapserver-users] GPX format supported? Message-ID: Hello, I am building an application with Mapserver 5.20. I am trying to include the ability for a local user to display GPX files downloaded from their GPS unit. I compiled OGR and Mapserver with the latest version of expat. I have found very few examples of how to write this layer and have ad no success in displaying the data. I have verified the GPX XML and have tried KML files as well. Has anyone had any luck with this feature? I have included the layer from the mapfile. It currently fails to parse on "LABELITEM" if that is removed it fails on "CLASS". Any help would be much appreciated! Thank You, Bean LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'Waypoints' STATUS ON DEBUG 5 OPACITY 100 END LABELITEM 'name' CLASS NAME 'name = Waypoint' STYLE SYMBOL 'circle' SIZE 8 OUTLINECOLOR 0 0 0 COLOR 255 255 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 1 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at remoteinformation.com.au Sun Jan 11 21:08:04 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Mon, 12 Jan 2009 14:08:04 +0900 Subject: [mapserver-users] Re: Path for errorfile In-Reply-To: <20090110170016.0D484E014B0@lists.osgeo.org> References: <20090110170016.0D484E014B0@lists.osgeo.org> Message-ID: G'day Jeff, On 11/01/2009, at 2:00 AM, mapserver-users-request at lists.osgeo.org wrote: > Ben can you also file a ticket for the doc changes (in the > "MapServer Documentation" component)? I'll update them for you when > you do that, thanks. > > -jeff done - 2854 cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From luca76 at gmail.com Mon Jan 12 01:01:41 2009 From: luca76 at gmail.com (Luca Manganelli) Date: Mon, 12 Jan 2009 10:01:41 +0100 Subject: [mapserver-users] AGG libraries and mapserver Message-ID: Hi, if i do a "ldd mapserv" I cannot find the reference to the AGG libraries. Are they compiled statically into mapserv binary? From sadiqueshadab at gmail.com Mon Jan 12 01:29:53 2009 From: sadiqueshadab at gmail.com (MOHAMMED SADIQUE SHADAB) Date: Mon, 12 Jan 2009 14:59:53 +0530 Subject: [mapserver-users] how to set fonts in fgs Message-ID: hi to all how to set fonts in fgs with the filename fontset.txt please help me thanks regards SHADAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Mon Jan 12 02:01:54 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Mon, 12 Jan 2009 15:31:54 +0530 Subject: [mapserver-users] Mapserver queries for line layer In-Reply-To: References: Message-ID: <496B1512.8000805@gslab.com> Hi All, I using Mapserver 5.0.2 and Openlayers. I had posted a query before on how to show pop up for a line layer. I am trying to use the mapserver queries for the same. I find documentation that uses a shapefile for the data and use variables from that on the template file. But all the data I've is in a postgresql DB. Can someone please give me an example as to how to query DB for the features' details and show it on the map as a pop up? And is there anything on Openlayers side that I've to do to enable this mapserver queries?( like sending a request to fetch a map) Thanks a lot for the help. Regards, Subha From valemunoz at gmail.com Mon Jan 12 07:52:34 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 12 Jan 2009 12:52:34 -0300 Subject: [mapserver-users] Conexion with postgres-postgis Message-ID: <4b56aefe0901120752p599f8be7r642bc028a6732964@mail.gmail.com> HI I am trying to connect postgres with my Mapfile, but I get the following error: msDrawMap(): Image handling error. Failed to draw layer named 'chile_comuna'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT "NAME"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from chile_comuna WHERE the_geom && setSRID('BOX3D(-71.2556639435156 -29.9271886101172,-71.2540857172265 -29.9256103838281)'::BOX3D, find_srid('','chile_comuna','the_geom') )' Postgresql reports the error as 'ERROR: column "NAME" does not exist LINE 1: DECLARE mycursor BINARY CURSOR FOR SELECT "NAME"::text,asbin... ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/Mappostgis.c - version of Jan 23/2004. I use the command shp2pgsql to pass the information of the shapefile to postgres table. MapFile LAYER NAME 'chile_comuna' TYPE POLYGON #DATA 'chile_comuna.shp' CONNECTIONTYPE postgis CONNECTION "user=postgres password=1234 dbname=geo_referencia host=localhost" DATA "the_geom from chile_comuna" ..... can anyone help me? pleasee... rgs -------------- next part -------------- An HTML attachment was scrubbed... URL: From danperl88 at gmail.com Mon Jan 12 08:28:20 2009 From: danperl88 at gmail.com (Daniel Peralta) Date: Mon, 12 Jan 2009 17:28:20 +0100 Subject: [mapserver-users] =?iso-8859-1?q?can=B4t_get_dbox_demo_to_work?= Message-ID: Hi Everyone, I am having a hard trying to get this demo to work. I have configured Apache web server to run Python25 via CGI and the result is a display with no errors of the itaca aplication example but without any layers loaded in the legend object. It just shows Foreground Layers: only. Any idea of what is going on? Thanks, D. -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Mon Jan 12 08:35:08 2009 From: danlittle at yahoo.com (Dan Little) Date: Mon, 12 Jan 2009 08:35:08 -0800 (PST) Subject: [mapserver-users] how MapServer manage the hyperlinks in the shapefile data table References: <1231536700128-2135378.post@n2.nabble.com> Message-ID: <506376.19255.qm@web51409.mail.re2.yahoo.com> Yes there is. Look into the query and template functions in MapServer. In the shapefile you should try to store a minimal representation of the hyperlink. Like a ID or a relative URL. That way if the look up system, or server, changes you do not need to do a complete update of your shapefile. So, for example, say you had a column called "OBJECTID" that contained a unique identifier for the feature that is used in other systems. In a template file you can do the following: View in The Other System ----- Original Message ---- > From: Geosig > To: mapserver-users at lists.osgeo.org > Sent: Friday, January 9, 2009 3:31:40 PM > Subject: [mapserver-users] how MapServer manage the hyperlinks in the shapefile data table > > > Hi everybody > > I am new in using MapServer so excuse me if my question it seems to you > somehow... strange. > > There is any possibility to ad hyperlinks to the shapefile data table used > by MapServer, so that when we see a querry table to be capable to follow > these links? > > Thank you > -- > View this message in context: > http://n2.nabble.com/how-MapServer-manage-the-hyperlinks-in-the-shapefile-data-table-tp2135378p2135378.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 boesiii at yahoo.com Mon Jan 12 09:55:02 2009 From: boesiii at yahoo.com (boesiii) Date: Mon, 12 Jan 2009 09:55:02 -0800 (PST) Subject: [mapserver-users] Problem with MS101 demo In-Reply-To: <496A403D.20502@swoodbridge.com> References: <1231699435868-2142314.post@n2.nabble.com> <496A403D.20502@swoodbridge.com> Message-ID: <1231782902222-2146974.post@n2.nabble.com> Thanks that worked! -- View this message in context: http://n2.nabble.com/Problem-with-MS101-demo-tp2142314p2146974.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adube at mapgears.com Mon Jan 12 10:11:37 2009 From: adube at mapgears.com (Alexandre Dube) Date: Mon, 12 Jan 2009 13:11:37 -0500 Subject: [mapserver-users] Conexion with postgres-postgis In-Reply-To: <4b56aefe0901120752p599f8be7r642bc028a6732964@mail.gmail.com> References: <4b56aefe0901120752p599f8be7r642bc028a6732964@mail.gmail.com> Message-ID: <496B87D9.8040803@mapgears.com> Hi Valeria, What was the options you used with your shp2pgsql script execution ? Did you specify a -s property ? Alexandre Valeria Mu?oz wrote: > HI > > I am trying to connect postgres with my Mapfile, but I get the > following error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'chile_comuna'. prepare_database(): Query error. Error executing > POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY > CURSOR FOR SELECT > "NAME"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from chile_comuna WHERE the_geom && setSRID('BOX3D(-71.2556639435156 > -29.9271886101172,-71.2540857172265 -29.9256103838281)'::BOX3D, > find_srid('','chile_comuna','the_geom') )' Postgresql reports the > error as 'ERROR: column "NAME" does not exist LINE 1: DECLARE mycursor > BINARY CURSOR FOR SELECT "NAME"::text,asbin... ^ ' More Help: Error > with POSTGIS data variable. You specified 'check your .map file'. > Standard ways of specifiying are : (1) 'geometry_column from > geometry_table' (2) 'geometry_column from (sub query) as foo using > unique column name using SRID=srid#' Make sure you put in the 'using > unique column name' and 'using SRID=#' clauses in. For more help, > please see http://postgis.refractions.net/documentation/ Mappostgis.c > - version of Jan 23/2004. > > I use the command shp2pgsql to pass the information of the shapefile > to postgres table. > > MapFile > LAYER > NAME 'chile_comuna' > TYPE POLYGON > #DATA 'chile_comuna.shp' > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=1234 dbname=geo_referencia > host=localhost" > DATA "the_geom from chile_comuna" > ..... > > can anyone help me? pleasee... > rgs > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From ltrevinoh at gmail.com Mon Jan 12 10:34:47 2009 From: ltrevinoh at gmail.com (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Mon, 12 Jan 2009 12:34:47 -0600 Subject: [mapserver-users] Conexion with postgres-postgis In-Reply-To: <4b56aefe0901120752p599f8be7r642bc028a6732964@mail.gmail.com> References: <4b56aefe0901120752p599f8be7r642bc028a6732964@mail.gmail.com> Message-ID: Valeria: I think the problem is that your data statment is incomplete. You should write something like: DATA: "the_geom from chile_comuna as foo using unique using srid=" Hope it helps, Saludos Luis 2009/1/12 Valeria Mu?oz > HI > > I am trying to connect postgres with my Mapfile, but I get the following > error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'chile_comuna'. prepare_database(): Query error. Error executing POSTGIS > DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR > SELECT > "NAME"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from chile_comuna WHERE the_geom && setSRID('BOX3D(-71.2556639435156 > -29.9271886101172,-71.2540857172265 -29.9256103838281)'::BOX3D, > find_srid('','chile_comuna','the_geom') )' Postgresql reports the error as > 'ERROR: column "NAME" does not exist LINE 1: DECLARE mycursor BINARY CURSOR > FOR SELECT "NAME"::text,asbin... ^ ' More Help: Error with POSTGIS data > variable. You specified 'check your .map file'. Standard ways of specifiying > are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from > (sub query) as foo using unique column name using SRID=srid#' Make sure you > put in the 'using unique column name' and 'using SRID=#' clauses in. For > more help, please see http://postgis.refractions.net/documentation/Mappostgis.c - version of Jan 23/2004. > > I use the command shp2pgsql to pass the information of the shapefile to > postgres table. > > MapFile > LAYER > NAME 'chile_comuna' > TYPE POLYGON > #DATA 'chile_comuna.shp' > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=1234 dbname=geo_referencia > host=localhost" > DATA "the_geom from chile_comuna" > ..... > > can anyone help me? pleasee... > rgs > > _______________________________________________ > 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 luigi.cardeles at gmail.com Mon Jan 12 10:39:04 2009 From: luigi.cardeles at gmail.com (Luigi Castro Cardeles) Date: Mon, 12 Jan 2009 15:39:04 -0300 Subject: [mapserver-users] Conexion with postgres-postgis In-Reply-To: <4b56aefe0901120752p599f8be7r642bc028a6732964@mail.gmail.com> References: <4b56aefe0901120752p599f8be7r642bc028a6732964@mail.gmail.com> Message-ID: Hi, is chile_comuna a table with the_geom column? "Postgresql reports the error as 'ERROR: column "NAME" does not exist LINE 1" the "NAME"::text,asbinary(force_collection(force_2d(the_geom)),'NDR')" doest not exist, so maybe your table do not have a the geom column. Did you create that column with addgeometrycolumn(...) function? se if you have a entry in geometry_columns table. []'s 2009/1/12 Valeria Mu?oz > HI > > I am trying to connect postgres with my Mapfile, but I get the following > error: > > msDrawMap(): Image handling error. Failed to draw layer named > 'chile_comuna'. prepare_database(): Query error. Error executing POSTGIS > DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR > SELECT > "NAME"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from chile_comuna WHERE the_geom && setSRID('BOX3D(-71.2556639435156 > -29.9271886101172,-71.2540857172265 -29.9256103838281)'::BOX3D, > find_srid('','chile_comuna','the_geom') )' Postgresql reports the error as > 'ERROR: column "NAME" does not exist LINE 1: DECLARE mycursor BINARY CURSOR > FOR SELECT "NAME"::text,asbin... ^ ' More Help: Error with POSTGIS data > variable. You specified 'check your .map file'. Standard ways of specifiying > are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from > (sub query) as foo using unique column name using SRID=srid#' Make sure you > put in the 'using unique column name' and 'using SRID=#' clauses in. For > more help, please see http://postgis.refractions.net/documentation/Mappostgis.c - version of Jan 23/2004. > > I use the command shp2pgsql to pass the information of the shapefile to > postgres table. > > MapFile > LAYER > NAME 'chile_comuna' > TYPE POLYGON > #DATA 'chile_comuna.shp' > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=1234 dbname=geo_referencia > host=localhost" > DATA "the_geom from chile_comuna" > ..... > > can anyone help me? pleasee... > rgs > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Luigi Castro Cardeles -------------- next part -------------- An HTML attachment was scrubbed... URL: From sorenscott at gmail.com Mon Jan 12 11:17:01 2009 From: sorenscott at gmail.com (sscottgis) Date: Mon, 12 Jan 2009 11:17:01 -0800 (PST) Subject: [mapserver-users] Imagemap size doesn't match display map In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA0FD@s-sp22.pca.state.mn.us> References: <1231526872372-2134663.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA0FD@s-sp22.pca.state.mn.us> Message-ID: <1231787821859-2147423.post@n2.nabble.com> David, That did the trick. Thanks. Fawcett, David wrote: > > Soren, > > I think that you are running into the issue where a WMS request can > return non-square pixels, and that the ratio of height:width in your > extent is not the same as the ratio of height:width in your image size. > > > If you can make this as a regular CGI call, you won't see this problem. > If you need to use WMS, make sure that you make the ratio's the same. > > e.g. 500/275 does not equal 60/26. > > David. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of sscottgis > Sent: Friday, January 09, 2009 12:48 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Imagemap size doesn't match display map > > > > I have created an imagemap/image for the lower 48 states using 2 > mapfiles to define the polygons following the demo in the wiki. They > noted that if you use separate maps, the SIZE and EXTENT should be the > same. I have those set the same in both files, but the imagemap that > gets returned is vertically squished. > > Here's the map file for the imagemap layer: > > MAP > NAME "droughtplan_imgmap" > STATUS ON > SIZE 500 275 > > # set projection for map > PROJECTION > "init=epsg:4326" > END > > EXTENT -126 24 -66 50 > UNITS METERS > STATUS ON > IMAGECOLOR 255 255 255 > > WEB > IMAGEPATH "e:/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > > #QUERYMAP > # STATUS ON > # STYLE NORMAL > #END > > LAYER > NAME "droughtplans_imgmap" > STATUS DEFAULT > TYPE POLYGON > DATA "../data/droughtplans_imgmap" > TEMPLATE "planbody.html" > HEADER "planheader.html" > FOOTER "planfooter.html" > > CLASSITEM "State" > CLASS > COLOR -1 -1 -1 > NAME "State" > OUTLINECOLOR 110 110 110 > END > END > END > END > > and the file for the display layer: > MAP > NAME "droughtplan_wms" > STATUS ON > SIZE 500 275 > > # set projection for map > PROJECTION > "init=epsg:4326" > END > > EXTENT -126 24 -66 50 > UNITS METERS > STATUS ON > IMAGECOLOR 255 255 255 > > # image format > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > WEB > IMAGEPATH "e:/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > HEADER "../templates/query_header.html" > FOOTER "../templates/query_footer.html" > END > > QUERYMAP > STATUS ON > STYLE NORMAL > END > > LAYER > NAME "droughtplans" > STATUS DEFAULT > TYPE POLYGON > DATA "../data/droughtplans" > > DUMP TRUE > > HEADER ../templates/ndmc_query_header.html > TEMPLATE ../templates/ndmc_query_body.html > > CLASSITEM "Status" > CLASS > COLOR 255 255 255 > OUTLINECOLOR 110 110 110 > EXPRESSION "0" > NAME "No Plan" > SYMBOL 0 > END > CLASS > COLOR 139 209 0 > OUTLINECOLOR 110 110 110 > EXPRESSION "1" > NAME "Emphasizing Mitigation" > SYMBOL 0 > END > CLASS > COLOR 255 255 0 > OUTLINECOLOR 110 110 110 > EXPRESSION "2" > NAME "Emphasizing Response" > SYMBOL 0 > END > CLASS > COLOR 255 128 0 > OUTLINECOLOR 110 110 110 > EXPRESSION "3" > NAME "Emphasizing Disaster" > SYMBOL 0 > END > CLASS > COLOR 255 0 0 > OUTLINECOLOR 110 110 110 > EXPRESSION "4" > NAME "Local Plans" > SYMBOL 0 > END > END > END > END > > The header and footer are the basic tags described in the wiki, > but with the map height and width set to the 500, 275 dimensions from > the files. > > Here's the body template: > href="http://myserver/Resources/state.aspx?state=[State]" > title="[State]" alt="[State]"> > > and the call to the image layer (these are part of an ASP.NET 2.0 web > page and added as part of an httprequest): > > http://myserver/cgi-bin/mapserv.exe?map=/ms4w/apps/drmon/service/drought > plans_wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=droughtpla > ns&WIDTH=500&HEIGHT=275&srs=EPSG:4326&styles=default&format=image/png&bb > ox=-126,24,-66,50 > > I've got the extents and sizes set to the same 500, 275 dimensions > everywhere, but the imagemap is still flattened (more like a box at 500 > x 200). Everything else works fine--all of the areas are defined, the > links work,etc; it just isn't aligned properly. Is there something > missing or something else going on here? > > Any help/ideas are greatly appreciated. > Soren > -- > View this message in context: > http://n2.nabble.com/Imagemap-size-doesn%27t-match-display-map-tp2134663 > p2134663.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 > > -- View this message in context: http://n2.nabble.com/Imagemap-size-doesn%27t-match-display-map-tp2134663p2147423.html Sent from the Mapserver - User mailing list archive at Nabble.com. From zachc1980 at gmail.com Mon Jan 12 12:32:56 2009 From: zachc1980 at gmail.com (zach cruise) Date: Mon, 12 Jan 2009 15:32:56 -0500 Subject: [mapserver-users] website upgrade for older documentation In-Reply-To: <4967CEAF.20802@swoodbridge.com> References: <49663632.7070309@gatewaygeomatics.com> <358062.2108.qm@web51401.mail.re2.yahoo.com> <4967CEAF.20802@swoodbridge.com> Message-ID: http://trac.osgeo.org/mapserver/ticket/2855 On 1/9/09, Stephen Woodbridge wrote: > Zach, et al, > > It might be possible to do something like you are suggesting going > forward, as the documentation is been migrated into svn and should get > tagged with each release we do. Since this was not done in the past it > is unlikely that we can go backward in time with this type a scenario. > > I think it will be up to the doc and web team to look into doing > something like this, but I believe the 1st step of having the docs in > svn is the critical pieces to be able to do anything like this. > > I think you should write a ticket in the bug tracking system and then > post the tick number so interested parties can sign up to be CC on it. > > Thanks, > -Steve > > zach cruise wrote: >> actually we just need to refer to old documentation for upgrading and >> porting, thanks though. if possible, we prefer something like >> >> http://www.mapserver.org/4.8/mapfile/map.html >> http://www.mapserver.org/5.2/mapfile/map.html >> much like >> http://www.postgresql.org/docs/8.1/interactive/sql-select.html >> http://www.postgresql.org/docs/8.1/static/sql-select.html >> http://www.postgresql.org/docs/8.2/interactive/sql-select.html >> http://www.postgresql.org/docs/8.2/static/sql-select.html >> >> On Thu, Jan 8, 2009 at 2:31 PM, Dan Little wrote: >>> Zach, >>> >>> Not trying to be a pushy guy... but is there a feature missing in 5.0 >>> prevents you from upgrading? >>> >>> ----- Original Message ---- >>>> From: zach cruise >>>> To: Jeff McKenna >>>> Cc: mapserver-users at lists.osgeo.org >>>> Sent: Thursday, January 8, 2009 12:31:26 PM >>>> Subject: Re: [mapserver-users] website upgrade for older documentation >>>> >>>> thanks. any way to search 4.8 documentation? any one got archived copy >>>> other than >>>> http://web.archive.org/web/20060701050731/http://mapserver.gis.umn.edu/? >>>> >>>> On Thu, Jan 8, 2009 at 12:21 PM, Jeff McKenna >>>> wrote: >>>>> zach cruise wrote: >>>>>> On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote: >>>>>>> great website upgrade at http://www.mapserver.org/. how can i search >>>>>>> for older documentation like with postgresql.org? >>>>> The current (5.2.1) documents should have MapServer version references >>>>> inside them for specific functionality (such as a specific mapfile >>>>> parameter >>>>> added in 5.0). >>>>> >>>>> -jeff >>>>> -- >>>>> Jeff McKenna >>>>> FOSS4G Consulting and Training Services >>>>> http://www.gatewaygeomatics.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 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ben at remoteinformation.com.au Mon Jan 12 12:53:25 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Tue, 13 Jan 2009 05:53:25 +0900 Subject: [mapserver-users] Re: Conexion with postgres-postgis In-Reply-To: <20090112162823.627AAE00CAE@lists.osgeo.org> References: <20090112162823.627AAE00CAE@lists.osgeo.org> Message-ID: <99D81E33-C5F0-4CD2-8D0D-F5A462B4DEF3@remoteinformation.com.au> I'm certainly no expert, and I'm guessing it would have helped if you had included more of your layer definition: On 13/01/2009, at 1:28 AM, mapserver-users-request at lists.osgeo.org wrote: > msDrawMap(): Image handling error. Failed to draw layer named > 'chile_comuna'. prepare_database(): Query error. Error executing > POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor > BINARY CURSOR FOR Here's (essentially) the query MapServer asked of PostGIS : > SELECT > "NAME > "::text > ,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from > chile_comuna WHERE the_geom && setSRID('BOX3D(-71.2556639435156 > -29.9271886101172,-71.2540857172265 -29.9256103838281)'::BOX3D, > find_srid('','chile_comuna','the_geom') )' Here's the problem PostGIS reported with it. > Postgresql reports the error as 'ERROR: column "NAME" does not exist > LINE 1: DECLARE mycursor BINARY CURSOR FOR SELECT > "NAME"::text,asbin... ^ ' It looks to my inexperienced eyes that somewhere in the layer (classitem?) it includes a reference to a field NAME. It may be that it needs to be specified in the query. Check the table you imported into PostgreSQL, ie: (I made this up) # \d chile_comuna Column | Type | Modifiers ---------------------+------------------------- +--------------------------------------------------------- gid | integer | not null default nextval('gis_urban_gid_seq'::regclass) commune_name | character varying(24) | the_geom | geometry | > More Help: Error with POSTGIS data variable. You specified 'check > your .map file'. Standard ways of specifiying are : (1) > 'geometry_column from geometry_table' This is what you have used, but it only returns the_geom, you need to specify the table column AS name > (2) 'geometry_column from (sub query) as foo using unique column > name using SRID=srid#' Make sure you put in the 'using unique column > name' and 'using SRID=#' clauses in. Try also specifying the name column (assuming it does exist in the table): the_geom from (gid, the_geom, commune_name AS name from chile_comuna) as foo using unique column gid using SRID= 4326; > For more help, please see http://postgis.refractions.net/documentation/ > Mappostgis.c - version of Jan 23/2004. > > I use the command shp2pgsql to pass the information of the shapefile > to postgres table. > > MapFile > LAYER > NAME 'chile_comuna' > TYPE POLYGON > #DATA 'chile_comuna.shp' > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=1234 dbname=geo_referencia > host=localhost" > DATA "the_geom from chile_comuna" > ..... > > can anyone help me? pleasee... cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From valemunoz at gmail.com Mon Jan 12 12:57:28 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 12 Jan 2009 17:57:28 -0300 Subject: [mapserver-users] Re: Conexion with postgres-postgis In-Reply-To: <99D81E33-C5F0-4CD2-8D0D-F5A462B4DEF3@remoteinformation.com.au> References: <20090112162823.627AAE00CAE@lists.osgeo.org> <99D81E33-C5F0-4CD2-8D0D-F5A462B4DEF3@remoteinformation.com.au> Message-ID: <4b56aefe0901121257g31e9fb25ndad185fa46c612ca@mail.gmail.com> thank you all, I solved the problem... 2009/1/12 Ben Madin > I'm certainly no expert, and I'm guessing it would have helped if you had > included more of your layer definition: > > > On 13/01/2009, at 1:28 AM, mapserver-users-request at lists.osgeo.org wrote: > > msDrawMap(): Image handling error. Failed to draw layer named >> 'chile_comuna'. prepare_database(): Query error. Error executing POSTGIS >> DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR >> > > Here's (essentially) the query MapServer asked of PostGIS : > > SELECT >> "NAME"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >> from chile_comuna WHERE the_geom && setSRID('BOX3D(-71.2556639435156 >> -29.9271886101172,-71.2540857172265 -29.9256103838281)'::BOX3D, >> find_srid('','chile_comuna','the_geom') )' >> > > Here's the problem PostGIS reported with it. > > Postgresql reports the error as 'ERROR: column "NAME" does not exist LINE >> 1: DECLARE mycursor BINARY CURSOR FOR SELECT "NAME"::text,asbin... ^ ' >> > > It looks to my inexperienced eyes that somewhere in the layer (classitem?) > it includes a reference to a field NAME. > > It may be that it needs to be specified in the query. Check the table you > imported into PostgreSQL, ie: (I made this up) > > # \d chile_comuna > > Column | Type | > Modifiers > > ---------------------+-------------------------+--------------------------------------------------------- > gid | integer | not null default > nextval('gis_urban_gid_seq'::regclass) > commune_name | character varying(24) | > the_geom | geometry | > > > More Help: Error with POSTGIS data variable. You specified 'check your .map >> file'. Standard ways of specifiying are : (1) 'geometry_column from >> geometry_table' >> > > This is what you have used, but it only returns the_geom, you need to > specify the table column AS name > > (2) 'geometry_column from (sub query) as foo using unique column name using >> SRID=srid#' Make sure you put in the 'using unique column name' and 'using >> SRID=#' clauses in. >> > > Try also specifying the name column (assuming it does exist in the table): > > the_geom from (gid, the_geom, commune_name AS name from chile_comuna) as > foo using unique column gid using SRID= 4326; > > > For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c >> - version of Jan 23/2004. >> >> I use the command shp2pgsql to pass the information of the shapefile to >> postgres table. >> >> MapFile >> LAYER >> NAME 'chile_comuna' >> TYPE POLYGON >> #DATA 'chile_comuna.shp' >> CONNECTIONTYPE postgis >> CONNECTION "user=postgres password=1234 dbname=geo_referencia >> host=localhost" >> DATA "the_geom from chile_comuna" >> ..... >> >> can anyone help me? pleasee... >> > > cheers > > Ben > > > > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > Out here, it pays to > know... > > > _______________________________________________ > 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 kreshna_iceheart at yahoo.com Mon Jan 12 18:09:15 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Mon, 12 Jan 2009 18:09:15 -0800 (PST) Subject: [mapserver-users] MapServer on Intel Atom? Message-ID: <542943.81142.qm@web110612.mail.gq1.yahoo.com> I'll be doing a lot of MapServer demo in the future. I'm quite interested in Intel Atom-based subnotebooks for the purpose (like Lenovo IdeaPad S10), since they are light and mobile. However, I wonder if Intel Atom is adequate to run MapServer. The MapServer will be run on either ms4w on Windows XP, or directly on Linux. The layers are stored on postGIS (there are fifteen layers or so), and there is also a 476 megabytes raster file in .TIFF format. Will Intel Atom be adequate for the purpose? Will 2GB of memory help? Has anyone ever done such thing before? Many thanks, -Kresh From danlittle at yahoo.com Mon Jan 12 18:18:46 2009 From: danlittle at yahoo.com (Dan Little) Date: Mon, 12 Jan 2009 18:18:46 -0800 (PST) Subject: [mapserver-users] MapServer on Intel Atom? References: <542943.81142.qm@web110612.mail.gq1.yahoo.com> Message-ID: <120039.33442.qm@web51407.mail.re2.yahoo.com> I think the atom will be more than adequate... depending on the dataset. :-) Serving 100 points is significantly less intensive than serving 100 city-boundary polygons. (Oops forgot to send to the list) ----- Original Message ---- > From: "kreshna_iceheart at yahoo.com" > To: mapserver-users at lists.osgeo.org > Sent: Monday, January 12, 2009 8:09:15 PM > Subject: [mapserver-users] MapServer on Intel Atom? > > I'll be doing a lot of MapServer demo in the future. I'm quite interested in > Intel Atom-based subnotebooks for the purpose (like Lenovo IdeaPad S10), since > they are light and mobile. > > However, I wonder if Intel Atom is adequate to run MapServer. The MapServer will > be run on either ms4w on Windows XP, or directly on Linux. The layers are stored > on postGIS (there are fifteen layers or so), and there is also a 476 megabytes > raster file in .TIFF format. > > Will Intel Atom be adequate for the purpose? Will 2GB of memory help? Has anyone > ever done such thing before? > > Many thanks, > -Kresh > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Mon Jan 12 23:38:34 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Tue, 13 Jan 2009 08:38:34 +0100 Subject: AW: [mapserver-users] GPX format supported? References: Message-ID: Hi, I think the 'END' keyword after 'OPACITY 100' shouldn't be there since it terminates the LAYER block. LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'Waypoints' STATUS ON DEBUG 5 OPACITY 100 # END <-- terminates LAYER LABELITEM 'name' CLASS NAME 'name = Waypoint' STYLE SYMBOL 'circle' SIZE 8 OUTLINECOLOR 0 0 0 COLOR 255 255 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 1 END END END ________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von bean at warbaby.com Gesendet: Montag, 12. Januar 2009 02:54 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] GPX format supported? Hello, I am building an application with Mapserver 5.20. I am trying to include the ability for a local user to display GPX files downloaded from their GPS unit. I compiled OGR and Mapserver with the latest version of expat. I have found very few examples of how to write this layer and have ad no success in displaying the data. I have verified the GPX XML and have tried KML files as well. Has anyone had any luck with this feature? I have included the layer from the mapfile. It currently fails to parse on "LABELITEM" if that is removed it fails on "CLASS". Any help would be much appreciated! Thank You, Bean LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'Waypoints' STATUS ON DEBUG 5 OPACITY 100 END LABELITEM 'name' CLASS NAME 'name = Waypoint' STYLE SYMBOL 'circle' SIZE 8 OUTLINECOLOR 0 0 0 COLOR 255 255 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 1 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at yahoo.com Tue Jan 13 02:35:24 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Tue, 13 Jan 2009 02:35:24 -0800 (PST) Subject: [mapserver-users] MapServer on Intel Atom? In-Reply-To: <120039.33442.qm@web51407.mail.re2.yahoo.com> Message-ID: <304939.29799.qm@web110601.mail.gq1.yahoo.com> Hi, thanks. The vectors are quite simple. I've never experienced slow down when displayed vector data, not even on an old Toshiba M20 laptop. Raster, on the other hand, is always the biggest problem. Compared to polygons, my raster is always slower to zoom, to pan, etc (despite the size is only 500 Mb). Is displaying raster more CPU-intensive or memory-intensive? If I'm using Intel Atom, will my raster be affected severely? Also, can using bigger RAM (let say, 2GB or so) compensate for the lack of processing power of Intel Atom? Thanks again, -Kresh --- On Mon, 1/12/09, Dan Little wrote: > From: Dan Little > Subject: Re: [mapserver-users] MapServer on Intel Atom? > To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org > Date: Monday, January 12, 2009, 9:18 PM > I think the atom will be more than adequate... depending on > the dataset. :-) > > Serving 100 points is significantly less intensive than > serving 100 city-boundary polygons. > > > (Oops forgot to send to the list) > > > ----- Original Message ---- > > From: "kreshna_iceheart at yahoo.com" > > > To: mapserver-users at lists.osgeo.org > > Sent: Monday, January 12, 2009 8:09:15 PM > > Subject: [mapserver-users] MapServer on Intel Atom? > > > > I'll be doing a lot of MapServer demo in the > future. I'm quite interested in > > Intel Atom-based subnotebooks for the purpose (like > Lenovo IdeaPad S10), since > > they are light and mobile. > > > > However, I wonder if Intel Atom is adequate to run > MapServer. The MapServer will > > be run on either ms4w on Windows XP, or directly on > Linux. The layers are stored > > on postGIS (there are fifteen layers or so), and there > is also a 476 megabytes > > raster file in .TIFF format. > > > > Will Intel Atom be adequate for the purpose? Will 2GB > of memory help? Has anyone > > ever done such thing before? > > > > Many thanks, > > -Kresh > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From openlayers at tauris.be Tue Jan 13 03:06:37 2009 From: openlayers at tauris.be (Peesjee) Date: Tue, 13 Jan 2009 03:06:37 -0800 (PST) Subject: [mapserver-users] Show WFS layer Message-ID: <1231844797098-2150639.post@n2.nabble.com> Hi, i'm new to Mapserver, i succesfully added a WMS layer from a shapefile, but now i want to add a WFS layer that connects to my Sybase (via ODBC). I followed the doc on "Virtual Spatial data". This connection works well (tested with ogrinfo). The shp2img tool gives me a map image, with my features on, so far so good... I can do a "getcapabilities" and a "getfeature". The last one return my two test records nicely. But here i'm stuck, now i want to display this data. I tried the following: - I added this WFS layer with OpenLayers (which i also used for my WMS layer), nothing shows... - i used uDig to open this WFS layer, the layer opens, but i get an RenderingError (and saying 0 features) These are my "getcapabilities" and a "getfeature". I also added my Map-file. I've been stuck since two days on this, so some properties maybe just there for testing... http://n2.nabble.com/file/n2150639/getcapabilities.xml getcapabilities.xml http://n2.nabble.com/file/n2150639/getfeature.xml getfeature.xml http://n2.nabble.com/file/n2150639/test3.map test3.map So whats my next step? I don't know what i can do here... Greetz Peesjee -- View this message in context: http://n2.nabble.com/Show-WFS-layer-tp2150639p2150639.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kreshna_iceheart at yahoo.com Tue Jan 13 03:24:56 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Tue, 13 Jan 2009 03:24:56 -0800 (PST) Subject: [mapserver-users] MapServer on Intel Atom? In-Reply-To: <304939.29799.qm@web110601.mail.gq1.yahoo.com> Message-ID: <443273.49529.qm@web110614.mail.gq1.yahoo.com> Update: I saw an Intel Atom benchmark here: http://laptoping.com/intel-atom-benchmark.html It has about similar performance with Pentium III Tualatin (1.13 GHz), so I think it's not really bad for MapServer (and postgreSQL), isn't it? I mean, most open source applications don't have resource-hogging overhead, so it's quite okay, isn't it? -Kresh --- On Tue, 1/13/09, kreshna_iceheart at yahoo.com wrote: > From: kreshna_iceheart at yahoo.com > Subject: Re: [mapserver-users] MapServer on Intel Atom? > To: mapserver-users at lists.osgeo.org, "Dan Little" > Date: Tuesday, January 13, 2009, 5:35 AM > Hi, thanks. > > The vectors are quite simple. I've never experienced > slow down when displayed vector data, not even on an old > Toshiba M20 laptop. > > Raster, on the other hand, is always the biggest problem. > Compared to polygons, my raster is always slower to zoom, to > pan, etc (despite the size is only 500 Mb). Is displaying > raster more CPU-intensive or memory-intensive? If I'm > using Intel Atom, will my raster be affected severely? > > Also, can using bigger RAM (let say, 2GB or so) compensate > for the lack of processing power of Intel Atom? > > Thanks again, > -Kresh > > > --- On Mon, 1/12/09, Dan Little > wrote: > > > From: Dan Little > > Subject: Re: [mapserver-users] MapServer on Intel > Atom? > > To: kreshna_iceheart at yahoo.com, > mapserver-users at lists.osgeo.org > > Date: Monday, January 12, 2009, 9:18 PM > > I think the atom will be more than adequate... > depending on > > the dataset. :-) > > > > Serving 100 points is significantly less intensive > than > > serving 100 city-boundary polygons. > > > > > > (Oops forgot to send to the list) > > > > > > ----- Original Message ---- > > > From: "kreshna_iceheart at yahoo.com" > > > > > To: mapserver-users at lists.osgeo.org > > > Sent: Monday, January 12, 2009 8:09:15 PM > > > Subject: [mapserver-users] MapServer on Intel > Atom? > > > > > > I'll be doing a lot of MapServer demo in the > > future. I'm quite interested in > > > Intel Atom-based subnotebooks for the purpose > (like > > Lenovo IdeaPad S10), since > > > they are light and mobile. > > > > > > However, I wonder if Intel Atom is adequate to > run > > MapServer. The MapServer will > > > be run on either ms4w on Windows XP, or directly > on > > Linux. The layers are stored > > > on postGIS (there are fifteen layers or so), and > there > > is also a 476 megabytes > > > raster file in .TIFF format. > > > > > > Will Intel Atom be adequate for the purpose? Will > 2GB > > of memory help? Has anyone > > > ever done such thing before? > > > > > > Many thanks, > > > -Kresh > > > > > > > > > > > > _______________________________________________ > > > 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 Tue Jan 13 04:04:07 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 13 Jan 2009 14:04:07 +0200 Subject: [mapserver-users] MapServer on Intel Atom? In-Reply-To: <304939.29799.qm@web110601.mail.gq1.yahoo.com> Message-ID: Hi, You say that your raster layer is slower than vector layers, but do you feel it is too slow? Your image should be served pretty fast by Mapserver. The key is that tiff file is tiled (for zoom-in situation) and that it has overviews (for zoom-out case). Could you send the gdalinfo report about your image if you suffer from slowness? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > kreshna_iceheart at yahoo.com > L?hetetty: 13. tammikuuta 2009 12:35 > Vastaanottaja: mapserver-users at lists.osgeo.org; Dan Little > Aihe: Re: [mapserver-users] MapServer on Intel Atom? > > Hi, thanks. > > The vectors are quite simple. I've never experienced slow > down when displayed vector data, not even on an old Toshiba > M20 laptop. > > Raster, on the other hand, is always the biggest problem. > Compared to polygons, my raster is always slower to zoom, to > pan, etc (despite the size is only 500 Mb). Is displaying > raster more CPU-intensive or memory-intensive? If I'm using > Intel Atom, will my raster be affected severely? > > Also, can using bigger RAM (let say, 2GB or so) compensate > for the lack of processing power of Intel Atom? > > Thanks again, > -Kresh > > > --- On Mon, 1/12/09, Dan Little wrote: > > > From: Dan Little > > Subject: Re: [mapserver-users] MapServer on Intel Atom? > > To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org > > Date: Monday, January 12, 2009, 9:18 PM I think the atom > will be more > > than adequate... depending on the dataset. :-) > > > > Serving 100 points is significantly less intensive than serving 100 > > city-boundary polygons. > > > > > > (Oops forgot to send to the list) > > > > > > ----- Original Message ---- > > > From: "kreshna_iceheart at yahoo.com" > > > > > To: mapserver-users at lists.osgeo.org > > > Sent: Monday, January 12, 2009 8:09:15 PM > > > Subject: [mapserver-users] MapServer on Intel Atom? > > > > > > I'll be doing a lot of MapServer demo in the > > future. I'm quite interested in > > > Intel Atom-based subnotebooks for the purpose (like > > Lenovo IdeaPad S10), since > > > they are light and mobile. > > > > > > However, I wonder if Intel Atom is adequate to run > > MapServer. The MapServer will > > > be run on either ms4w on Windows XP, or directly on > > Linux. The layers are stored > > > on postGIS (there are fifteen layers or so), and there > > is also a 476 megabytes > > > raster file in .TIFF format. > > > > > > Will Intel Atom be adequate for the purpose? Will 2GB > > of memory help? Has anyone > > > ever done such thing before? > > > > > > Many thanks, > > > -Kresh > > > > > > > > > > > > _______________________________________________ > > > 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 danlittle at yahoo.com Tue Jan 13 04:40:21 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 13 Jan 2009 04:40:21 -0800 (PST) Subject: [mapserver-users] MapServer on Intel Atom? References: Message-ID: <773031.4732.qm@web51411.mail.re2.yahoo.com> I agree with where Jukka is going... Raster layers are usually pretty fast so long as they are tuned correctly. ----- Original Message ---- > From: Rahkonen Jukka > To: kreshna_iceheart at yahoo.com; mapserver-users at lists.osgeo.org > Sent: Tuesday, January 13, 2009 6:04:07 AM > Subject: Re: [mapserver-users] MapServer on Intel Atom? > > Hi, > > You say that your raster layer is slower than vector layers, but do you feel it > is too slow? Your image should be served pretty fast by Mapserver. The key is > that tiff file is tiled (for zoom-in situation) and that it has overviews (for > zoom-out case). Could you send the gdalinfo report about your image if you > suffer from slowness? > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > > kreshna_iceheart at yahoo.com > > L?hetetty: 13. tammikuuta 2009 12:35 > > Vastaanottaja: mapserver-users at lists.osgeo.org; Dan Little > > Aihe: Re: [mapserver-users] MapServer on Intel Atom? > > > > Hi, thanks. > > > > The vectors are quite simple. I've never experienced slow > > down when displayed vector data, not even on an old Toshiba > > M20 laptop. > > > > Raster, on the other hand, is always the biggest problem. > > Compared to polygons, my raster is always slower to zoom, to > > pan, etc (despite the size is only 500 Mb). Is displaying > > raster more CPU-intensive or memory-intensive? If I'm using > > Intel Atom, will my raster be affected severely? > > > > Also, can using bigger RAM (let say, 2GB or so) compensate > > for the lack of processing power of Intel Atom? > > > > Thanks again, > > -Kresh > > > > > > --- On Mon, 1/12/09, Dan Little wrote: > > > > > From: Dan Little > > > Subject: Re: [mapserver-users] MapServer on Intel Atom? > > > To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org > > > Date: Monday, January 12, 2009, 9:18 PM I think the atom > > will be more > > > than adequate... depending on the dataset. :-) > > > > > > Serving 100 points is significantly less intensive than serving 100 > > > city-boundary polygons. > > > > > > > > > (Oops forgot to send to the list) > > > > > > > > > ----- Original Message ---- > > > > From: "kreshna_iceheart at yahoo.com" > > > > > > > To: mapserver-users at lists.osgeo.org > > > > Sent: Monday, January 12, 2009 8:09:15 PM > > > > Subject: [mapserver-users] MapServer on Intel Atom? > > > > > > > > I'll be doing a lot of MapServer demo in the > > > future. I'm quite interested in > > > > Intel Atom-based subnotebooks for the purpose (like > > > Lenovo IdeaPad S10), since > > > > they are light and mobile. > > > > > > > > However, I wonder if Intel Atom is adequate to run > > > MapServer. The MapServer will > > > > be run on either ms4w on Windows XP, or directly on > > > Linux. The layers are stored > > > > on postGIS (there are fifteen layers or so), and there > > > is also a 476 megabytes > > > > raster file in .TIFF format. > > > > > > > > Will Intel Atom be adequate for the purpose? Will 2GB > > > of memory help? Has anyone > > > > ever done such thing before? > > > > > > > > Many thanks, > > > > -Kresh > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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 mlinden at zeelandnet.nl Tue Jan 13 05:28:30 2009 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 13 Jan 2009 14:28:30 +0100 Subject: [mapserver-users] MapServer on Intel Atom? In-Reply-To: <773031.4732.qm@web51411.mail.re2.yahoo.com> References: <773031.4732.qm@web51411.mail.re2.yahoo.com> Message-ID: <496C96FE.7010405@zeelandnet.nl> Just out of curiosity, With what reason would you like to have a mapserver on a mobile device? I assume mostly to have some sort of localhost connection from a local application, and in that case, I would opt for a solution where one can for instance download raster-tiles from a server to the mobile device that are then used by the application through more simplified functions, for vector the same procedure, download vectors and make them available through libraries. Installing a httpserver with mapserver as a cgi app sounds like a bit of overkill. Perhaps the mobile app can simply use gdal and ogr libraries. Dan Little wrote: > I agree with where Jukka is going... Raster layers are usually pretty fast so long as they are tuned correctly. > > > ----- Original Message ---- > >> From: Rahkonen Jukka >> To: kreshna_iceheart at yahoo.com; mapserver-users at lists.osgeo.org >> Sent: Tuesday, January 13, 2009 6:04:07 AM >> Subject: Re: [mapserver-users] MapServer on Intel Atom? >> >> Hi, >> >> You say that your raster layer is slower than vector layers, but do you feel it >> is too slow? Your image should be served pretty fast by Mapserver. The key is >> that tiff file is tiled (for zoom-in situation) and that it has overviews (for >> zoom-out case). Could you send the gdalinfo report about your image if you >> suffer from slowness? >> >> -Jukka Rahkonen- >> >> >>> -----Alkuper?inen viesti----- >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >>> kreshna_iceheart at yahoo.com >>> L?hetetty: 13. tammikuuta 2009 12:35 >>> Vastaanottaja: mapserver-users at lists.osgeo.org; Dan Little >>> Aihe: Re: [mapserver-users] MapServer on Intel Atom? >>> >>> Hi, thanks. >>> >>> The vectors are quite simple. I've never experienced slow >>> down when displayed vector data, not even on an old Toshiba >>> M20 laptop. >>> >>> Raster, on the other hand, is always the biggest problem. >>> Compared to polygons, my raster is always slower to zoom, to >>> pan, etc (despite the size is only 500 Mb). Is displaying >>> raster more CPU-intensive or memory-intensive? If I'm using >>> Intel Atom, will my raster be affected severely? >>> >>> Also, can using bigger RAM (let say, 2GB or so) compensate >>> for the lack of processing power of Intel Atom? >>> >>> Thanks again, >>> -Kresh >>> >>> >>> --- On Mon, 1/12/09, Dan Little wrote: >>> >>> >>>> From: Dan Little >>>> Subject: Re: [mapserver-users] MapServer on Intel Atom? >>>> To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org >>>> Date: Monday, January 12, 2009, 9:18 PM I think the atom >>>> >>> will be more >>> >>>> than adequate... depending on the dataset. :-) >>>> >>>> Serving 100 points is significantly less intensive than serving 100 >>>> city-boundary polygons. >>>> >>>> >>>> (Oops forgot to send to the list) >>>> >>>> >>>> ----- Original Message ---- >>>> >>>>> From: "kreshna_iceheart at yahoo.com" >>>>> >>>>> To: mapserver-users at lists.osgeo.org >>>>> Sent: Monday, January 12, 2009 8:09:15 PM >>>>> Subject: [mapserver-users] MapServer on Intel Atom? >>>>> >>>>> I'll be doing a lot of MapServer demo in the >>>>> >>>> future. I'm quite interested in >>>> >>>>> Intel Atom-based subnotebooks for the purpose (like >>>>> >>>> Lenovo IdeaPad S10), since >>>> >>>>> they are light and mobile. >>>>> >>>>> However, I wonder if Intel Atom is adequate to run >>>>> >>>> MapServer. The MapServer will >>>> >>>>> be run on either ms4w on Windows XP, or directly on >>>>> >>>> Linux. The layers are stored >>>> >>>>> on postGIS (there are fifteen layers or so), and there >>>>> >>>> is also a 476 megabytes >>>> >>>>> raster file in .TIFF format. >>>>> >>>>> Will Intel Atom be adequate for the purpose? Will 2GB >>>>> >>>> of memory help? Has anyone >>>> >>>>> ever done such thing before? >>>>> >>>>> Many thanks, >>>>> -Kresh >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 mlinden at zeelandnet.nl Tue Jan 13 05:30:52 2009 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 13 Jan 2009 14:30:52 +0100 Subject: [mapserver-users] MapServer on Intel Atom? In-Reply-To: <773031.4732.qm@web51411.mail.re2.yahoo.com> References: <773031.4732.qm@web51411.mail.re2.yahoo.com> Message-ID: <496C978C.6050802@zeelandnet.nl> Oops, sorry. Should have read the initial post, for demonstration purposes, using datasets that are not to big sounds possible to me. Dan Little wrote: > I agree with where Jukka is going... Raster layers are usually pretty fast so long as they are tuned correctly. > > > ----- Original Message ---- > >> From: Rahkonen Jukka >> To: kreshna_iceheart at yahoo.com; mapserver-users at lists.osgeo.org >> Sent: Tuesday, January 13, 2009 6:04:07 AM >> Subject: Re: [mapserver-users] MapServer on Intel Atom? >> >> Hi, >> >> You say that your raster layer is slower than vector layers, but do you feel it >> is too slow? Your image should be served pretty fast by Mapserver. The key is >> that tiff file is tiled (for zoom-in situation) and that it has overviews (for >> zoom-out case). Could you send the gdalinfo report about your image if you >> suffer from slowness? >> >> -Jukka Rahkonen- >> >> >>> -----Alkuper?inen viesti----- >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >>> kreshna_iceheart at yahoo.com >>> L?hetetty: 13. tammikuuta 2009 12:35 >>> Vastaanottaja: mapserver-users at lists.osgeo.org; Dan Little >>> Aihe: Re: [mapserver-users] MapServer on Intel Atom? >>> >>> Hi, thanks. >>> >>> The vectors are quite simple. I've never experienced slow >>> down when displayed vector data, not even on an old Toshiba >>> M20 laptop. >>> >>> Raster, on the other hand, is always the biggest problem. >>> Compared to polygons, my raster is always slower to zoom, to >>> pan, etc (despite the size is only 500 Mb). Is displaying >>> raster more CPU-intensive or memory-intensive? If I'm using >>> Intel Atom, will my raster be affected severely? >>> >>> Also, can using bigger RAM (let say, 2GB or so) compensate >>> for the lack of processing power of Intel Atom? >>> >>> Thanks again, >>> -Kresh >>> >>> >>> --- On Mon, 1/12/09, Dan Little wrote: >>> >>> >>>> From: Dan Little >>>> Subject: Re: [mapserver-users] MapServer on Intel Atom? >>>> To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org >>>> Date: Monday, January 12, 2009, 9:18 PM I think the atom >>>> >>> will be more >>> >>>> than adequate... depending on the dataset. :-) >>>> >>>> Serving 100 points is significantly less intensive than serving 100 >>>> city-boundary polygons. >>>> >>>> >>>> (Oops forgot to send to the list) >>>> >>>> >>>> ----- Original Message ---- >>>> >>>>> From: "kreshna_iceheart at yahoo.com" >>>>> >>>>> To: mapserver-users at lists.osgeo.org >>>>> Sent: Monday, January 12, 2009 8:09:15 PM >>>>> Subject: [mapserver-users] MapServer on Intel Atom? >>>>> >>>>> I'll be doing a lot of MapServer demo in the >>>>> >>>> future. I'm quite interested in >>>> >>>>> Intel Atom-based subnotebooks for the purpose (like >>>>> >>>> Lenovo IdeaPad S10), since >>>> >>>>> they are light and mobile. >>>>> >>>>> However, I wonder if Intel Atom is adequate to run >>>>> >>>> MapServer. The MapServer will >>>> >>>>> be run on either ms4w on Windows XP, or directly on >>>>> >>>> Linux. The layers are stored >>>> >>>>> on postGIS (there are fifteen layers or so), and there >>>>> >>>> is also a 476 megabytes >>>> >>>>> raster file in .TIFF format. >>>>> >>>>> Will Intel Atom be adequate for the purpose? Will 2GB >>>>> >>>> of memory help? Has anyone >>>> >>>>> ever done such thing before? >>>>> >>>>> Many thanks, >>>>> -Kresh >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 adube at mapgears.com Tue Jan 13 05:50:43 2009 From: adube at mapgears.com (Alexandre Dube) Date: Tue, 13 Jan 2009 08:50:43 -0500 Subject: [mapserver-users] Show WFS layer In-Reply-To: <1231844797098-2150639.post@n2.nabble.com> References: <1231844797098-2150639.post@n2.nabble.com> Message-ID: <496C9C33.5030302@mapgears.com> Maybe this could help : http://faq.openlayers.org/wfs/ Best of luck, Alexandre Peesjee wrote: > Hi, > > i'm new to Mapserver, i succesfully added a WMS layer from a shapefile, but > now i want to add a WFS layer that connects to my Sybase (via ODBC). I > followed the doc on "Virtual Spatial data". This connection works well > (tested with ogrinfo). The shp2img tool gives me a map image, with my > features on, so far so good... > > I can do a "getcapabilities" and a "getfeature". The last one return my two > test records nicely. But here i'm stuck, now i want to display this data. > > I tried the following: > - I added this WFS layer with OpenLayers (which i also used for my WMS > layer), nothing shows... > - i used uDig to open this WFS layer, the layer opens, but i get an > RenderingError (and saying 0 features) > > These are my "getcapabilities" and a "getfeature". I also added my Map-file. > I've been stuck since two days on this, so some properties maybe just there > for testing... > > http://n2.nabble.com/file/n2150639/getcapabilities.xml getcapabilities.xml > http://n2.nabble.com/file/n2150639/getfeature.xml getfeature.xml > http://n2.nabble.com/file/n2150639/test3.map test3.map > > So whats my next step? I don't know what i can do here... > > Greetz > Peesjee > -- Alexandre Dub? Mapgears www.mapgears.com From Jukka.Rahkonen at mmmtike.fi Tue Jan 13 06:18:11 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 13 Jan 2009 16:18:11 +0200 Subject: [mapserver-users] Show WFS layer In-Reply-To: <1231844797098-2150639.post@n2.nabble.com> Message-ID: Hi, I am not sure how strict uDig is with the getCapabilities response, but if uDig is trying to utilise the information it is reading from the document then I suppose it will fail. Your server is advertising the following as getMap onlineResource: ... Try to edit onlineResource to be something like -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Peesjee > L?hetetty: 13. tammikuuta 2009 13:07 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Show WFS layer > > > Hi, > > i'm new to Mapserver, i succesfully added a WMS layer from a > shapefile, but now i want to add a WFS layer that connects to > my Sybase (via ODBC). I followed the doc on "Virtual Spatial > data". This connection works well (tested with ogrinfo). The > shp2img tool gives me a map image, with my features on, so > far so good... > > I can do a "getcapabilities" and a "getfeature". The last one > return my two test records nicely. But here i'm stuck, now i > want to display this data. > > I tried the following: > - I added this WFS layer with OpenLayers (which i also used > for my WMS layer), nothing shows... > - i used uDig to open this WFS layer, the layer opens, but > i get an RenderingError (and saying 0 features) > > These are my "getcapabilities" and a "getfeature". I also > added my Map-file. > I've been stuck since two days on this, so some properties > maybe just there for testing... > > http://n2.nabble.com/file/n2150639/getcapabilities.xml > getcapabilities.xml > http://n2.nabble.com/file/n2150639/getfeature.xml > getfeature.xml http://n2.nabble.com/file/n2150639/test3.map test3.map > > So whats my next step? I don't know what i can do here... > > Greetz > Peesjee > -- > View this message in context: > http://n2.nabble.com/Show-WFS-layer-tp2150639p2150639.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 pauljame at gmail.com Tue Jan 13 07:27:02 2009 From: pauljame at gmail.com (Paul james) Date: Tue, 13 Jan 2009 12:27:02 -0300 Subject: [mapserver-users] Mapserver.org sample ... Message-ID: <33fad6880901130727n11e03f31k65aff45221c6a313@mail.gmail.com> Hello guys... Looking at mapserver.org map sample. I?d like to know how can I do something like that ... Can someone point me the right direction to do that? Is it possible to use mapscript c# to do that? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Jan 13 07:47:23 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 13 Jan 2009 16:47:23 +0100 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: <33fad6880901130727n11e03f31k65aff45221c6a313@mail.gmail.com> References: <33fad6880901130727n11e03f31k65aff45221c6a313@mail.gmail.com> Message-ID: Paul, This kind of functionality requires some client side scripting like javascript implemented by OpenLayers in this particular case. Best regards, Tamas 2009/1/13 Paul james > Hello guys... > Looking at mapserver.org map sample. I?d like to know how can I do > something like that ... Can someone point me the right direction to do that? > Is it possible to use mapscript c# to do that? > > Thanks > > _______________________________________________ > 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 pauljame at gmail.com Tue Jan 13 07:57:24 2009 From: pauljame at gmail.com (Paul james) Date: Tue, 13 Jan 2009 12:57:24 -0300 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: References: <33fad6880901130727n11e03f31k65aff45221c6a313@mail.gmail.com> Message-ID: <33fad6880901130757v90a4a91q49faed300443a0aa@mail.gmail.com> Thanks Tamas... Is It possible to use OpenLayers with mapscript? On Tue, Jan 13, 2009 at 12:47 PM, Tamas Szekeres wrote: > Paul, > > This kind of functionality requires some client side scripting like > javascript implemented by OpenLayers in this particular case. > > Best regards, > > Tamas > > > 2009/1/13 Paul james > >> Hello guys... >> Looking at mapserver.org map sample. I?d like to know how can I do >> something like that ... Can someone point me the right direction to do that? >> Is it possible to use mapscript c# to do that? >> >> Thanks >> >> _______________________________________________ >> 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 openlayers at tauris.be Tue Jan 13 08:03:32 2009 From: openlayers at tauris.be (Peesjee) Date: Tue, 13 Jan 2009 08:03:32 -0800 (PST) Subject: [mapserver-users] Show WFS layer In-Reply-To: References: <1231844797098-2150639.post@n2.nabble.com> Message-ID: <1231862612822-2151774.post@n2.nabble.com> Hi, i tried it, no luck here. I added some WMS specs in my mapfile, and i can see my two test records when i open the layer as a WMS in openlayers... but, if i may, let me ask another question... I'm very new in this technology, i'm just testing all this, because we want to now if we can develop ourself what our customer asks us, or do we have to 'buy' the solution from another company (who is more an expert is this kind of software). The requirement is simple: i need to show some raster data (will be delivered to me) together with positions of ships (that come from a database). The ships need to be clickable and of course, some information about the ship comes up (classic hugh ;)) Because of the heavy amount of ships (> 1000), i do not want to use javascript-code to add my objects. (our current project does that in Googlemaps, which act slow if many "markers' are added) So, I'm able to show a WMS layer (based on my test shapefile). i guess if that works, i will be able to show some raster data aswell. Now comes the 'unknown' part for me. I know i can show my ships as an WMS layer, as a pure image, (i tested this) but can i add my clickable funtionality? or is a WFS layer better here...? i know the site mentions books to read about Mapserver, but the books date from 2005, are there any more recent good books out there? Greetz Peesjee Jukka Rahkonen wrote: > > Hi, > > I am not sure how strict uDig is with the getCapabilities response, but if > uDig is trying to utilise the information it is reading from the document > then I suppose it will fail. Your server is advertising the following as > getMap onlineResource: > > > ... > onlineResource="http://localhost/cgi-bin/mapserv.exe?map=test3.map&"/> > > Try to edit onlineResource to be something like > onlineResource="http://localhost/cgi-bin/mapserv.exe?service=WFS&version=1.0.0&request=getFeature&map=test3.map&"/> > > -Jukka Rahkonen- > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Peesjee >> L?hetetty: 13. tammikuuta 2009 13:07 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] Show WFS layer >> >> >> Hi, >> >> i'm new to Mapserver, i succesfully added a WMS layer from a >> shapefile, but now i want to add a WFS layer that connects to >> my Sybase (via ODBC). I followed the doc on "Virtual Spatial >> data". This connection works well (tested with ogrinfo). The >> shp2img tool gives me a map image, with my features on, so >> far so good... >> >> I can do a "getcapabilities" and a "getfeature". The last one >> return my two test records nicely. But here i'm stuck, now i >> want to display this data. >> >> I tried the following: >> - I added this WFS layer with OpenLayers (which i also used >> for my WMS layer), nothing shows... >> - i used uDig to open this WFS layer, the layer opens, but >> i get an RenderingError (and saying 0 features) >> >> These are my "getcapabilities" and a "getfeature". I also >> added my Map-file. >> I've been stuck since two days on this, so some properties >> maybe just there for testing... >> >> http://n2.nabble.com/file/n2150639/getcapabilities.xml >> getcapabilities.xml >> http://n2.nabble.com/file/n2150639/getfeature.xml >> getfeature.xml http://n2.nabble.com/file/n2150639/test3.map test3.map >> >> So whats my next step? I don't know what i can do here... >> >> Greetz >> Peesjee >> -- >> View this message in context: >> http://n2.nabble.com/Show-WFS-layer-tp2150639p2150639.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 > > -- View this message in context: http://n2.nabble.com/Show-WFS-layer-tp2150639p2151774.html Sent from the Mapserver - User mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue Jan 13 09:03:17 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 13 Jan 2009 12:03:17 -0500 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: <33fad6880901130757v90a4a91q49faed300443a0aa@mail.gmail.com> References: <33fad6880901130727n11e03f31k65aff45221c6a313@mail.gmail.com> <33fad6880901130757v90a4a91q49faed300443a0aa@mail.gmail.com> Message-ID: <20090113170316.GE4568@metacarta.com> On Tue, Jan 13, 2009 at 12:57:24PM -0300, Paul james wrote: > Thanks Tamas... > Is It possible to use OpenLayers with mapscript? In what way? OpenLayers would typically take over many of the roles that a custom application would -- building your application in Javascript instead of PHP. Depending on what you are doing with mapScript, it may be possibl t simply use MapServer as a CGI instead, or it may be possible to implement what you want such that OpenLayers can ccomplish it. > > > On Tue, Jan 13, 2009 at 12:47 PM, Tamas Szekeres wrote: > > > Paul, > > > > This kind of functionality requires some client side scripting like > > javascript implemented by OpenLayers in this particular case. > > > > Best regards, > > > > Tamas > > > > > > 2009/1/13 Paul james > > > >> Hello guys... > >> Looking at mapserver.org map sample. I?d like to know how can I do > >> something like that ... Can someone point me the right direction to do that? > >> Is it possible to use mapscript c# to do that? > >> > >> Thanks > >> > >> _______________________________________________ > >> 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 -- Christopher Schmidt MetaCarta From thilo.wehrmann at dlr.de Tue Jan 13 09:05:35 2009 From: thilo.wehrmann at dlr.de (Thilo Wehrmann) Date: Tue, 13 Jan 2009 18:05:35 +0100 Subject: [mapserver-users] Problems with =?utf-8?q?sld=C2=B4s_polgonsymbolizer_interpretatio?= =?utf-8?q?n?= Message-ID: <496CC9DF.7040708@dlr.de> hello together, sorry for possible double submission. Currently we work at the dynamic generation of wms service layers for our project data. For styling issues we use slds stored in exist database. The access to the sld works straight but we figure out some problems with line/polygonsymbolizer interpretation of the returned slds. For the raster data everything works fine but for all vector data the fill colours won?t be used (standard grey is used instead. Mapserver 5.2.1 uses the sld because changes of the font settings are recognized and correctly rendered. Output of Style request: vaf67858756a74379b99f4573d785a76e Vietnam country boundary 5000000.000000 #009b9b 1.00 #730000 15 corresponding SLD part: vaf67858756a74379b99f4573d785a76e Style1 Default Styler name title abstract DCW_0000_country_vietnam_poly generic:geometry DCW_0000_country_vietnam_poly DCW_0000_country_vietnam_poly #009b9b 1 #730000 miter butt 1 15 The compiled map file after sld interpretation says nothing about these settings and standard colours are used for painting. I read that there were some problems in earlier versions of mapserver concerning stroke colours... Does anybody know about this problem or knows a workaround? mapserver is quite an impressive piece of software. Thank you and best regards, Thilo Wehrmann From pauljame at gmail.com Tue Jan 13 09:30:39 2009 From: pauljame at gmail.com (Paul james) Date: Tue, 13 Jan 2009 14:30:39 -0300 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: <20090113170316.GE4568@metacarta.com> References: <33fad6880901130727n11e03f31k65aff45221c6a313@mail.gmail.com> <33fad6880901130757v90a4a91q49faed300443a0aa@mail.gmail.com> <20090113170316.GE4568@metacarta.com> Message-ID: <33fad6880901130930g3d64bdfcl305d89ccf2684ec8@mail.gmail.com> Thanks ! Can you point me some quickstart with openlayer + mapserver + tilecache? I?m kind lost on it... I have a custom app using mapscript + postgis... And I?d like to make a version using openlayers and tilecache... On Tue, Jan 13, 2009 at 2:03 PM, Christopher Schmidt < crschmidt at metacarta.com> wrote: > On Tue, Jan 13, 2009 at 12:57:24PM -0300, Paul james wrote: > > Thanks Tamas... > > Is It possible to use OpenLayers with mapscript? > > In what way? OpenLayers would typically take over many of the roles that > a custom application would -- building your application in Javascript > instead of PHP. Depending on what you are doing with mapScript, it may > be possibl t simply use MapServer as a CGI instead, or it may be > possible to implement what you want such that OpenLayers can ccomplish > it. > > > > > > > On Tue, Jan 13, 2009 at 12:47 PM, Tamas Szekeres >wrote: > > > > > Paul, > > > > > > This kind of functionality requires some client side scripting like > > > javascript implemented by OpenLayers in this particular case. > > > > > > Best regards, > > > > > > Tamas > > > > > > > > > 2009/1/13 Paul james > > > > > >> Hello guys... > > >> Looking at mapserver.org map sample. I?d like to know how can I do > > >> something like that ... Can someone point me the right direction to do > that? > > >> Is it possible to use mapscript c# to do that? > > >> > > >> Thanks > > >> > > >> _______________________________________________ > > >> 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 > > > -- > Christopher Schmidt > MetaCarta > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Tue Jan 13 09:35:37 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 13 Jan 2009 12:35:37 -0500 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: <33fad6880901130930g3d64bdfcl305d89ccf2684ec8@mail.gmail.com> References: <33fad6880901130727n11e03f31k65aff45221c6a313@mail.gmail.com> <33fad6880901130757v90a4a91q49faed300443a0aa@mail.gmail.com> <20090113170316.GE4568@metacarta.com> <33fad6880901130930g3d64bdfcl305d89ccf2684ec8@mail.gmail.com> Message-ID: <20090113173537.GG4568@metacarta.com> On Tue, Jan 13, 2009 at 02:30:39PM -0300, Paul james wrote: > Thanks ! > Can you point me some quickstart with openlayer + mapserver + tilecache? I?m > kind lost on it... I would recommend first reading: http://workshops.opengeo.org/openlayers/intro/doc/en/ Which is an excellent introductin to OpenLayers. After that, get something working as a WMS, then: http://geoserver.org/display/GEOSDOC/TileCache+Tutorial Is a good TileCache Tutorial. -- Chris > I have a custom app using mapscript + postgis... And I?d like to make a > version using openlayers and tilecache... > > > > On Tue, Jan 13, 2009 at 2:03 PM, Christopher Schmidt < > crschmidt at metacarta.com> wrote: > > > On Tue, Jan 13, 2009 at 12:57:24PM -0300, Paul james wrote: > > > Thanks Tamas... > > > Is It possible to use OpenLayers with mapscript? > > > > In what way? OpenLayers would typically take over many of the roles that > > a custom application would -- building your application in Javascript > > instead of PHP. Depending on what you are doing with mapScript, it may > > be possibl t simply use MapServer as a CGI instead, or it may be > > possible to implement what you want such that OpenLayers can ccomplish > > it. > > > > > > > > > > > On Tue, Jan 13, 2009 at 12:47 PM, Tamas Szekeres > >wrote: > > > > > > > Paul, > > > > > > > > This kind of functionality requires some client side scripting like > > > > javascript implemented by OpenLayers in this particular case. > > > > > > > > Best regards, > > > > > > > > Tamas > > > > > > > > > > > > 2009/1/13 Paul james > > > > > > > >> Hello guys... > > > >> Looking at mapserver.org map sample. I?d like to know how can I do > > > >> something like that ... Can someone point me the right direction to do > > that? > > > >> Is it possible to use mapscript c# to do that? > > > >> > > > >> Thanks > > > >> > > > >> _______________________________________________ > > > >> 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 > > > > > > -- > > Christopher Schmidt > > MetaCarta > > -- Christopher Schmidt MetaCarta From woodbri at swoodbridge.com Tue Jan 13 11:12:34 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 13 Jan 2009 14:12:34 -0500 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <495D1971.5080008@hostgis.com> Message-ID: <496CE7A2.6030009@swoodbridge.com> thomas bonfort wrote: > http://code.google.com/p/mapserver-utils/source/browse/trunk/ > > you'll need the code from the mapserver graphics sandbox (rev 8254 is > preferred as it doesn't have the cairo code in it yet) Hi Thomas, I have been looking over your osm mapfile and have a few questions. 1) As you mentioned in your original post, I should grab some code from a sandbox, what does this have in it over say todays svn? 2) I noticed you have both: LABELITEM "name" and TEXT ([ref]) Does the TEXT override the LABELITEM for the given class it is in? and then default to the LABELITEM if it is not present? I guess this seems logical, but I never thought about it before. 3) This looks a little strange. It looks like you are drawing the outline first without the body of the road, then drawing the body of the road afterwards. STYLE WIDTH _motorway_width OUTLINEWIDTH 1 OUTLINECOLOR _motorway_ol_clr MINWIDTH _motorway_minwidth MAXWIDTH _motorway_maxwidth END STYLE WIDTH _motorway_width COLOR _motorway_clr MINWIDTH _motorway_minwidth MAXWIDTH _motorway_maxwidth END Why not draw it like in a single pass? are there quality issues with this? STYLE WIDTH _motorway_width COLOR _motorway_clr OUTLINEWIDTH 1 OUTLINECOLOR _motorway_ol_clr MINWIDTH _motorway_minwidth MAXWIDTH _motorway_maxwidth END Or draw it like where (_motorway_width + 2) is a value not an expression: STYLE WIDTH _motorway_width + 2 COLOR _motorway_ol_clr MINWIDTH _motorway_minwidth MAXWIDTH _motorway_maxwidth END STYLE WIDTH _motorway_width COLOR _motorway_clr MINWIDTH _motorway_minwidth MAXWIDTH _motorway_maxwidth END I assume this is slower because you have to draw all the pixels between the outlines. 4) I have not seen MINWIDTH and MAXWIDTH before. What do these do? Isn't the width fixed? Or is this controlling the how wide the antialiasing is allowed to propagate? Wow! After 10 years of working with mapfile files there is still a lot of new interesting stuff to learn! Thank you for sharing this! Best regards, -Steve W From russell at flora.ca Tue Jan 13 11:19:56 2009 From: russell at flora.ca (Russell McOrmond) Date: Tue, 13 Jan 2009 14:19:56 -0500 (EST) Subject: [mapserver-users] Need help with build-order of libraries used by mapserver (UTF8 support, SDE, etc) In-Reply-To: References: <49284AB9.9010407@flora.ca> <49613F8E.7010206@flora.ca> Message-ID: On Tue, 6 Jan 2009, Russell McOrmond wrote with Subject: Re: [mapserver-users] Confirmation of status of UTF8 support, and where transcoding to Latin-1 may be happening. > I hope people don't mind me posting as I learn things, hoping that it will > spark some ideas from other people. > Another issue, this time with iconv. I know this is not a mapserver issue, > but it is possible that someone has seen something similar. As an update, I am still tracking this problem. Like the binary created by the FGS folks http://maptools.org/fgs/ , we are trying to compile mapserver against libraries we build ourselves so that mapserver is not as dependant on the operating system environment. The problem we are having comes down to some library incompatability between iconv_open and some other library. I have a simple test program. #include int main() { iconv_t cd; cd = iconv_open("UTF-8", "UTF-16"); printf("iconv_open returns %d\n\n", (int)cd); iconv_close(cd); return 0; } If I compile this against the standard libc (gcc iconvbroke.c ; ./a.out) , then I get a value other than -1. If I compile with the same linking that mapserver is using, then I always get -1 My successful test had the following environement: 1) all libraries/etc built with sepatate libiconv 2) back up and then remove libiconv and separate iconv.h 3) rebuild libxml2 and mapserver (now not linked against libiconv) 4) restore libiconv files. If I build my 'iconvbroke' test after these steps then I get numbers other than (-1). That is, it is not linking against libiconv (as it was removed in step 2), but is linked against a libgd that was built with libiconv still there. If I put libiconv back and build just configure and build mapserver, it is broken again. This suggests it isn't just something specific to libxml2. If I leave the library there, but just don't restore the iconv.h, then mapserver also seems to be fine (it's linked against libiconv likely because of libxml2, but its own usage of iconv isn't using that version). This seems a bit odd to me and I expect that there is something else broken when things are built this way (IE: things that gd, xml2, and other libraries are using). I'm just testing data coming from SDE, and haven't yet re-tested things like labels/etc. Here is a list of all the stuff we are building. Not all of these components are libraries that mapserver links against, but it is complete. I'd rather be complete than manage to not mention something that turns out to be relevant. # 1. JDK 1.5.0_16 # 2. Oracle Client 10.2.0 # 3. ArcSDE 9.2 SP5 # 4. Zlib 1.2.3 # 5. Expat 2.0.1 # 6. iconv 1.12 # 7. Sablot 1.0.3 # 8. Python 2.5.2 # 9. Libxml2 2.6.30 # 10. LibJPEG 6b # 11. Libpng 1.2.24 # 12. Libtiff 3.8.4 # 13. PDFlib Lite 7.0.2 # 14. curl 7.18.0 # 15. Freetype 2.3.5 # 16. Gettext 0.17 # 17. GD 2.0.35 # 18. GDBM 1.8.3 # 19. cronolog 1.6.2 # 20. GEOS 3.0.0rc4 # 21. Xerces 2.8.0 # 22. PROJ 4.5.0 # 23. Apache 2.2.9 # 24. PHP 5.2.6 # 25. Flex 2.5.35 # 26. Mod_python 3.3.1 # 27. TileCache 2.04 # 28. GDAL 1.4.4 # 29. Modjk 1.2.18 # 30. Tomcat 5.5.26 # 31. Swig 1.3.31 # 32. Open Market fcgi 2.4.0 # 33. mod_fastcgi 2.4.6 # 34. UMN MapServer 5.2.1 The build environment is CentOS 5, but I'm soon going to try to build in RHEL4 (the ultimate target OS for the customer). I don't expect a difference as other binaries targeted for this environment are broken in the same way. Any suggestions greatly appreciated. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From bean at warbaby.com Tue Jan 13 11:44:35 2009 From: bean at warbaby.com (bean at warbaby.com) Date: Tue, 13 Jan 2009 12:44:35 -0700 Subject: [mapserver-users] GPX format supported? Message-ID: Thanks Andreas, An obvious and simple mistake. Sorry to have bothered the list with such a simple question. I am still getting msLoadMap(): Premature End-of-File. I am a relative newbie with mapserver although I have managed to build a 2800 line mapfile of many layer types. This is my first CONNECTIONTYPE OGR layer and I just don't seem to get the context. Included is my current mapfile that fails with msLoadMap(): Premature End-of-File. OGR reads the file fine from the command line so my problem must be in my mapfile right? LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'waypoints' STATUS ON DEBUG 5 CLASS STYLE SYMBOL 'CIRCLE' SIZE 3 OUTLINECOLOR 0 0 0 COLOR 106 7 182 END END END bean Hi, I think the 'END' keyword after 'OPACITY 100' shouldn't be there since it terminates the LAYER block. LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'Waypoints' STATUS ON DEBUG 5 OPACITY 100 # END <-- terminates LAYER LABELITEM 'name' CLASS NAME 'name = Waypoint' STYLE SYMBOL 'circle' SIZE 8 OUTLINECOLOR 0 0 0 COLOR 255 255 0 END LABEL SIZE medium COLOR 0 0 0 ANGLE 0 BUFFER 1 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Jan 13 11:46:32 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 13 Jan 2009 20:46:32 +0100 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: <496CE7A2.6030009@swoodbridge.com> References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <495D1971.5080008@hostgis.com> <496CE7A2.6030009@swoodbridge.com> Message-ID: Hi Steve, On Tue, Jan 13, 2009 at 20:12, Stephen Woodbridge wrote: > thomas bonfort wrote: >> >> http://code.google.com/p/mapserver-utils/source/browse/trunk/ >> >> you'll need the code from the mapserver graphics sandbox (rev 8254 is >> preferred as it doesn't have the cairo code in it yet) > > Hi Thomas, > > I have been looking over your osm mapfile and have a few questions. > > 1) As you mentioned in your original post, I should grab some code from a > sandbox, what does this have in it over say todays svn? I haven't had time to wrap up the comments on rfc49 and call for vote on it. The graphics sandbox is a placeholder for that code until that is done. > > 2) I noticed you have both: > > LABELITEM "name" > and > TEXT ([ref]) > > Does the TEXT override the LABELITEM for the given class it is in? and then > default to the LABELITEM if it is not present? I guess this seems logical, > but I never thought about it before. I didn't think about it when doing it either. haven't looked at the code, but the behavior you show correspond to the results of that mapfile. > > 3) This looks a little strange. It looks like you are drawing the outline > first without the body of the road, then drawing the body of the road > afterwards. > > STYLE > WIDTH _motorway_width > OUTLINEWIDTH 1 > OUTLINECOLOR _motorway_ol_clr > MINWIDTH _motorway_minwidth > MAXWIDTH _motorway_maxwidth > END > STYLE > WIDTH _motorway_width > COLOR _motorway_clr > MINWIDTH _motorway_minwidth > MAXWIDTH _motorway_maxwidth > END > > Why not draw it like in a single pass? are there quality issues with this? the mapfile is a bit complex with the taking into account of bridges and tunnels. Doing things how I have done ensure the outlines for normal roads are drawn simultaneoulsy with those of the other roads, and likewise for the fill. without this the joining between normal streets and bridges or tunnels was less satisfying. > > STYLE > WIDTH _motorway_width > COLOR _motorway_clr > OUTLINEWIDTH 1 > OUTLINECOLOR _motorway_ol_clr > MINWIDTH _motorway_minwidth > MAXWIDTH _motorway_maxwidth > END > > Or draw it like where (_motorway_width + 2) is a value not an expression: > > STYLE > WIDTH _motorway_width + 2 > COLOR _motorway_ol_clr > MINWIDTH _motorway_minwidth > MAXWIDTH _motorway_maxwidth > END > STYLE > WIDTH _motorway_width > COLOR _motorway_clr > MINWIDTH _motorway_minwidth > MAXWIDTH _motorway_maxwidth > END > > I assume this is slower because you have to draw all the pixels between the > outlines. the outline keyword is just a shorthand for not having to define 2 style blocks. internally, mapserver splits a block with an outlinecolor into 2 blocks with the corresponfing widths ( more importantly, using the outlinewidth keyword is the only way of defining a fixed width outline when using scaledependant rendering ) > > 4) I have not seen MINWIDTH and MAXWIDTH before. What do these do? Isn't the > width fixed? Or is this controlling the how wide the antialiasing is allowed > to propagate? this is the reason why the outlinecolor becomes so useful: as you see, there's only one mapserver class for each road class, they haven't been split up with scale-dependant widths (well, except for when they thin down to a single color line). at the beginning of the layer you'll see "sizeunits meters", which means all roads will be drawn to scale with their ground width. the min/max widths place pixel limits on this scaling, e.g. draw a 30(width) meter wide road, but don't let it get thinner than 1(minwidth) pixel, or wider than 12(maxwidth) pixels. This dramatically reduces mapfile size and eases maintainance, although it is of course a bit less flexible than defining a mapfile class for each scale. > > Wow! After 10 years of working with mapfile files there is still a lot of > new interesting stuff to learn! and I'm sure there's still lots more! cheers, thomas From woodbri at swoodbridge.com Tue Jan 13 11:57:14 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 13 Jan 2009 14:57:14 -0500 Subject: [mapserver-users] GPX format supported? In-Reply-To: References: Message-ID: <496CF21A.4020808@swoodbridge.com> Bean, You probably have some other layer that does not have the block ... ENDs match up correctly. Try making a mapfile with just the single layer below and see if that works, then add another layer and test it, and so on until it breaks. Also check the all quoted strings are properly terminated. No magic here, just take it layer by layer until you find the problem. -Steve W bean at warbaby.com wrote: > > Thanks Andreas, > > An obvious and simple mistake. Sorry to have bothered the list with such > a simple question. > > I am still getting msLoadMap(): Premature End-of-File. I am a relative > newbie with mapserver although I have managed to build a 2800 line > mapfile of many layer types. This is my first CONNECTIONTYPE OGR layer > and I just don't seem to get the context. > > Included is my current mapfile that fails with msLoadMap(): Premature > End-of-File. OGR reads the file fine from the command line so my problem > must be in my mapfile right? > > > LAYER > NAME 'GPS' > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION > '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' > DATA 'waypoints' > STATUS ON > DEBUG 5 > CLASS > STYLE > SYMBOL 'CIRCLE' > SIZE 3 > OUTLINECOLOR 0 0 0 > COLOR 106 7 182 > END > END > END > > bean > > Hi, > > I think the 'END' keyword after 'OPACITY 100' shouldn't be there since > it terminates the LAYER block. > LAYER > NAME 'GPS' > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION > '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' > DATA 'Waypoints' > STATUS ON > DEBUG 5 > OPACITY 100 > # END <-- terminates LAYER > LABELITEM 'name' > CLASS > NAME 'name = Waypoint' > STYLE > SYMBOL 'circle' > SIZE 8 > OUTLINECOLOR 0 0 0 > COLOR 255 255 0 > END > LABEL > SIZE medium > COLOR 0 0 0 > ANGLE 0 > BUFFER 1 > END > END > END > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue Jan 13 12:10:28 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 13 Jan 2009 15:10:28 -0500 Subject: [mapserver-users] Re: [mapserver-dev] Change the Scale In-Reply-To: <1231876733567-2153037.post@n2.nabble.com> References: <1231876733567-2153037.post@n2.nabble.com> Message-ID: <496CF534.6020904@swoodbridge.com> Acibi wrote: > Hi, > > I'm new in the world of MapServer. I have to add some fonction to an > existing MapServer application in the Intranet. > > One of those is the be able to chose a scale from a drop-down menu. > > How can I apply a scale (for example 1:15 000) to my map? > > Thanks > > Acibi, This is probably more apropriate to the mapserver-users list than the dev list, so I am moving it there. Your question really does not have anything to do with mapserver , but has more to do with you client application. Your client application interfaces with the user and then makes a request to mapserver for a map image. So you will have to tell us more about your client application. If you have not picked one yet, I would recommend OpenLayers which is a very nice web 2.0 javascript library that does all the map management for you. But you might be doing something with php, or who knows what, so more info is needed. Thanks, -Steve W From simon.langevin2 at mtq.gouv.qc.ca Tue Jan 13 12:12:14 2009 From: simon.langevin2 at mtq.gouv.qc.ca (Acibi) Date: Tue, 13 Jan 2009 12:12:14 -0800 (PST) Subject: [mapserver-users] [mapserver-dev] Change the Scale In-Reply-To: <496CF534.6020904@swoodbridge.com> References: <496CF534.6020904@swoodbridge.com> Message-ID: <1231877534574-2153105.post@n2.nabble.com> Stephen Woodbridge wrote: > > Acibi, > > This is probably more apropriate to the mapserver-users list than the > dev list, so I am moving it there. > > Your question really does not have anything to do with mapserver , but > has more to do with you client application. Your client application > interfaces with the user and then makes a request to mapserver for a map > image. > > So you will have to tell us more about your client application. If you > have not picked one yet, I would recommend OpenLayers which is a very > nice web 2.0 javascript library that does all the map management for > you. But you might be doing something with php, or who knows what, so > more info is needed. > > Thanks, > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > In fact I think that the project I currently work on is made with JBox.. But i'm not sure of it.. THe previous guy who work on that project don't work here anymore and he left almost none documentation... -- View this message in context: http://n2.nabble.com/Re%3A--mapserver-dev--Change-the-Scale-tp2153091p2153105.html Sent from the Mapserver - User mailing list archive at Nabble.com. From randre at gmail.com Tue Jan 13 13:03:05 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 13 Jan 2009 13:03:05 -0800 Subject: [mapserver-users] Accessing a different type of raster data type Message-ID: <9c2015090901131303o75e77ebet7e3fe053feb8141c@mail.gmail.com> Hi All, I'm curious if you could give me an idea of the level of effort this would take. I have access to a data service at work that will render an array of values in response to a bbox geographic query. I'd like the ability to create a Mapserver raster Layer that uses this service as a data source, so that I can populate a web map using dynamically generated data, rather than pre-rendering a raster set. How hard would it be to write a new "connector" that could read this data service? Thanks in advance for any advice you can give me, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Jan 13 13:17:59 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 13 Jan 2009 16:17:59 -0500 Subject: [mapserver-users] Accessing a different type of raster data type In-Reply-To: <9c2015090901131303o75e77ebet7e3fe053feb8141c@mail.gmail.com> References: <9c2015090901131303o75e77ebet7e3fe053feb8141c@mail.gmail.com> Message-ID: <496D0507.2050903@pobox.com> Roger Andr? wrote: > Hi All, > > I'm curious if you could give me an idea of the level of effort this > would take. I have access to a data service at work that will render an > array of values in response to a bbox geographic query. I'd like the > ability to create a Mapserver raster Layer that uses this service as a > data source, so that I can populate a web map using dynamically > generated data, rather than pre-rendering a raster set. How hard would > it be to write a new "connector" that could read this data service? > > Thanks in advance for any advice you can give me, Roger, It should be reasonable easy to add this as a new GDAL format driver, or alternatively as an extension of the existing "WMS" driver which has a "minidriver" mechanism to add new web service types beyond WMS. Some helpful resources: * The driver implementation tutorial: http://www.gdal.org/gdal_drivertut.html * The WMS driver code (see mini drivers for examples of new protocols): http://svn.osgeo.org/gdal/trunk/gdal/frmts/wms/ 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 bean at warbaby.com Tue Jan 13 13:21:03 2009 From: bean at warbaby.com (bean at warbaby.com) Date: Tue, 13 Jan 2009 14:21:03 -0700 Subject: [mapserver-users] GPX format supported? Message-ID: Hi Steve, Thanks for the rapid reply. I have removed the layers one by one. They all parse right but this GPX layer. Curiously if I remove the class statement (including the first end statement) I get no parse errors but the layer fails to render. Still puzzled, bean >Bean, > >You probably have some other layer that does not have the block ... >ENDs match up correctly. Try making a mapfile with just the single >layer below and see if that works, then add another layer and test >it, and so on until it breaks. Also check the all quoted strings are >properly terminated. > >No magic here, just take it layer by layer until you find the problem. > >-Steve W >>LAYER >> NAME 'GPS' >> TYPE POINT >> CONNECTIONTYPE OGR >> CONNECTION >>'/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' >> DATA 'waypoints' >> STATUS ON >> DEBUG 5 >> CLASS >> STYLE >> SYMBOL 'CIRCLE' >> SIZE 3 >> OUTLINECOLOR 0 0 0 >> COLOR 106 7 182 >> END >> END END From Steve.Lime at dnr.state.mn.us Tue Jan 13 13:20:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 13 Jan 2009 15:20:27 -0600 Subject: [mapserver-users] Mapserver queries for line layer In-Reply-To: <496B1512.8000805@gslab.com> References: <496B1512.8000805@gslab.com> Message-ID: <496CB13C.5157.008F.0@dnr.state.mn.us> Here's an example that uses OpenLayers with a hover event to fire queries off to MapServer: http://www.dnr.state.mn.us/waters/csg/index_copy.html The relevant javascript is at: http://maps.dnr.state.mn.us/waters/csg/current_test.js When ever the user pauses the app fires a query off to MapServer. In this case I'm querying points but the same code would work for lines. If the query fails (e.g. nothing found) I use the webObj EMPTY parameter to return content that just contains a -1. If it succeeds, templated query results are passed back and displayed. In this case I'm using an Ext.js window but you could just as easily update a div or use another popup library. Hope it helps... Steve >>> On 1/12/2009 at 4:01 AM, in message <496B1512.8000805 at gslab.com>, Subha Ramakrishnan wrote: > Hi All, > > I using Mapserver 5.0.2 and Openlayers. I had posted a query before on > how to show pop up for a line layer. > > I am trying to use the mapserver queries for the same. I find > documentation that uses a shapefile for the data and use variables from > that on the template file. But all the data I've is in a postgresql DB. > > Can someone please give me an example as to how to query DB for the > features' details and show it on the map as a pop up? > And is there anything on Openlayers side that I've to do to enable this > mapserver queries?( like sending a request to fetch a map) > > Thanks a lot for the help. > > Regards, > Subha > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From randre at gmail.com Tue Jan 13 13:39:44 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 13 Jan 2009 13:39:44 -0800 Subject: [mapserver-users] Accessing a different type of raster data type In-Reply-To: <496D0507.2050903@pobox.com> References: <9c2015090901131303o75e77ebet7e3fe053feb8141c@mail.gmail.com> <496D0507.2050903@pobox.com> Message-ID: <9c2015090901131339l670b0427r19e62b84dcafad8e@mail.gmail.com> Frank, you rock. Thanks for the links. Roger -- On Tue, Jan 13, 2009 at 1:17 PM, Frank Warmerdam wrote: > Roger Andr? wrote: > >> Hi All, >> >> I'm curious if you could give me an idea of the level of effort this would >> take. I have access to a data service at work that will render an array of >> values in response to a bbox geographic query. I'd like the ability to >> create a Mapserver raster Layer that uses this service as a data source, so >> that I can populate a web map using dynamically generated data, rather than >> pre-rendering a raster set. How hard would it be to write a new "connector" >> that could read this data service? >> >> Thanks in advance for any advice you can give me, >> > > Roger, > > It should be reasonable easy to add this as a new GDAL format driver, > or alternatively as an extension of the existing "WMS" driver which > has a "minidriver" mechanism to add new web service types beyond > WMS. > > Some helpful resources: > > * The driver implementation tutorial: > > http://www.gdal.org/gdal_drivertut.html > > * The WMS driver code (see mini drivers for examples of new protocols): > > http://svn.osgeo.org/gdal/trunk/gdal/frmts/wms/ > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Tue Jan 13 13:44:46 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 13 Jan 2009 13:44:46 -0800 Subject: [mapserver-users] Where is the raster classifier code in Mapserver? Message-ID: <9c2015090901131344kc055f33yc5075a8245bf4fba@mail.gmail.com> This is probably a question for Frank W.. I'd like to re-write the raster classifier in Mapserver so that it can apply a linear color gradient using LUTs. I've got code written already to do this with the Python API to GDAL, and would like to be able to do the same thing in Mapserver. Can someone point me to the right C code? Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Jan 13 13:58:50 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 13 Jan 2009 16:58:50 -0500 Subject: [mapserver-users] GPX format supported? In-Reply-To: References: Message-ID: <496D0E9A.20902@swoodbridge.com> bean at warbaby.com wrote: > Hi Steve, > > Thanks for the rapid reply. I have removed the layers one by one. They > all parse right but this GPX layer. > Curiously if I remove the class statement (including the first end > statement) I get no parse errors but the layer fails to render. > > Still puzzled, > bean > >> Bean, >> >> You probably have some other layer that does not have the block ... >> ENDs match up correctly. Try making a mapfile with just the single >> layer below and see if that works, then add another layer and test it, >> and so on until it breaks. Also check the all quoted strings are >> properly terminated. >> >> No magic here, just take it layer by layer until you find the problem. >> >> -Steve W > So the following nesting of tags looks correct: LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'waypoints' STATUS ON DEBUG 5 CLASS STYLE SYMBOL 'CIRCLE' SIZE 3 OUTLINECOLOR 0 0 0 COLOR 106 7 182 END END END I a can't help you a lot with the the OGR connection, as I don't use it that often. Are sure that DATA 'waypoints' is correct? You might try at the command line, something like: ogrinfo --formats and verify that GPX is supported. ogrinfo /Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx and see what it says. I would also ask OGR specific question on the GDAL/OGR list, as they might have more info on ogr related problems. -Steve From warmerdam at pobox.com Tue Jan 13 14:02:25 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 13 Jan 2009 17:02:25 -0500 Subject: [mapserver-users] Where is the raster classifier code in Mapserver? In-Reply-To: <9c2015090901131344kc055f33yc5075a8245bf4fba@mail.gmail.com> References: <9c2015090901131344kc055f33yc5075a8245bf4fba@mail.gmail.com> Message-ID: <496D0F71.5080608@pobox.com> Roger Andr? wrote: > This is probably a question for Frank W.. I'd like to re-write the > raster classifier in Mapserver so that it can apply a linear color > gradient using LUTs. I've got code written already to do this with the > Python API to GDAL, and would like to be able to do the same thing in > Mapserver. Can someone point me to the right C code? Roger, The core of the existing classification logic is msGetClass() in mapraster.c. Also if you search on "classified" in mapdrawgdal.c you will see most of the places it gets used. I believe that ramp based gradients should be written up as an RFC. There was a previous effort which I think was partially implemented. I would suggest you dig up information on it, before going too far. http://mapserver.org/development/rfc/ms-rfc-6.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 David.Fawcett at state.mn.us Tue Jan 13 13:59:44 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 13 Jan 2009 15:59:44 -0600 Subject: [mapserver-users] GPX format supported? In-Reply-To: <496D0E9A.20902@swoodbridge.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA124@s-sp22.pca.state.mn.us> Don't forget to set STATUS to DEFAULT, or explicitly request the layer by name in the URL request. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Tuesday, January 13, 2009 3:59 PM To: bean at warbaby.com Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GPX format supported? bean at warbaby.com wrote: > Hi Steve, > > Thanks for the rapid reply. I have removed the layers one by one. They > all parse right but this GPX layer. > Curiously if I remove the class statement (including the first end > statement) I get no parse errors but the layer fails to render. > > Still puzzled, > bean > >> Bean, >> >> You probably have some other layer that does not have the block ... >> ENDs match up correctly. Try making a mapfile with just the single >> layer below and see if that works, then add another layer and test it, >> and so on until it breaks. Also check the all quoted strings are >> properly terminated. >> >> No magic here, just take it layer by layer until you find the >> problem. >> >> -Steve W > So the following nesting of tags looks correct: LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'waypoints' STATUS ON DEBUG 5 CLASS STYLE SYMBOL 'CIRCLE' SIZE 3 OUTLINECOLOR 0 0 0 COLOR 106 7 182 END END END I a can't help you a lot with the the OGR connection, as I don't use it that often. Are sure that DATA 'waypoints' is correct? You might try at the command line, something like: ogrinfo --formats and verify that GPX is supported. ogrinfo /Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx and see what it says. I would also ask OGR specific question on the GDAL/OGR list, as they might have more info on ogr related problems. -Steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From randre at gmail.com Tue Jan 13 15:05:17 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 13 Jan 2009 15:05:17 -0800 Subject: [mapserver-users] Where is the raster classifier code in Mapserver? In-Reply-To: <496D0F71.5080608@pobox.com> References: <9c2015090901131344kc055f33yc5075a8245bf4fba@mail.gmail.com> <496D0F71.5080608@pobox.com> Message-ID: <9c2015090901131505gda6c4e8k7bdc6855df025c24@mail.gmail.com> Very cool. Looks like it is scheduled for inclusion in Release 5.4., and even better, the code is still functional. I'm playing around with it now, and am easily applying a gradient to a single range of values, but have not yet figured out how to apply different color gradients to different ranges. Will keep working on it. Thanks for the lead. -- On Tue, Jan 13, 2009 at 2:02 PM, Frank Warmerdam wrote: > Roger Andr? wrote: > >> This is probably a question for Frank W.. I'd like to re-write the raster >> classifier in Mapserver so that it can apply a linear color gradient using >> LUTs. I've got code written already to do this with the Python API to GDAL, >> and would like to be able to do the same thing in Mapserver. Can someone >> point me to the right C code? >> > > Roger, > > The core of the existing classification logic is msGetClass() in > mapraster.c. > Also if you search on "classified" in mapdrawgdal.c you will see most > of the places it gets used. > > I believe that ramp based gradients should be written up as an RFC. There > was a previous effort which I think was partially implemented. I would > suggest you dig up information on it, before going too far. > > http://mapserver.org/development/rfc/ms-rfc-6.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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Jan 13 15:01:55 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 13 Jan 2009 18:01:55 -0500 Subject: [mapserver-users] GPX format supported? In-Reply-To: References: Message-ID: <496D1D63.9000406@gatewaygeomatics.com> bean at warbaby.com wrote: > Thanks Andreas, > > An obvious and simple mistake. Sorry to have bothered the list with such > a simple question. > > I am still getting msLoadMap(): Premature End-of-File. I am a relative > newbie with mapserver although I have managed to build a 2800 line > mapfile of many layer types. This is my first CONNECTIONTYPE OGR layer > and I just don't seem to get the context. > > Included is my current mapfile that fails with msLoadMap(): Premature > End-of-File. OGR reads the file fine from the command line so my problem > must be in my mapfile right? > While testing gpx just now I realized that we don't have a GPX page in the MapServer Vector Data Access doc, so I have added it into SVN. In my testing I was forced to use the "track_points" feature, as there was no actual data in the "waypoints" feature (you can test this through ogrinfo). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From bean at warbaby.com Tue Jan 13 16:20:02 2009 From: bean at warbaby.com (bean at warbaby.com) Date: Tue, 13 Jan 2009 17:20:02 -0700 Subject: [mapserver-users] GPX format supported? Message-ID: Hi Jeff, Thanks for the reply. I ran ogrinfo on both "waypoints" and "track_points". "waypoints" returns 147 entries and "track_points" returns 0 entries (there are no tracks recorded in my GPS unit at this point, just trying to keep it simple for now). This is returned from a Garmin eTrex Venture through gps babel. Thanks for entering the SVN. I am still puzzled about my mapfile layer however. It fails to parse when CLASS is added and the layer fails to load when CLASS is deleted. I feel sure my mapfile layer syntax is correct (although my previous blooper with the errant END statement says I shouldn't be so sure). Would you mind looking for obvious errors for the following? LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'waypoints' STATUS ON DEBUG 5 CLASS STYLE SYMBOL 'CIRCLE' SIZE 3 OUTLINECOLOR 0 0 0 COLOR 106 7 182 END END END Thanks, bean > >While testing gpx just now I realized that we don't have a GPX page >in the MapServer Vector Data Access doc, so I have added it into SVN. > >In my testing I was forced to use the "track_points" feature, as >there was no actual data in the "waypoints" feature (you can test >this through ogrinfo). > >-jeff > > > >-- >Jeff McKenna >FOSS4G Consulting and Training Services >http://www.gatewaygeomatics.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 ben at remoteinformation.com.au Tue Jan 13 18:47:48 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Wed, 14 Jan 2009 11:47:48 +0900 Subject: [mapserver-users] Can I turn off bounding box check for postgis query? Message-ID: <8784D128-49AD-46D4-BFE6-D9359C1D3045@remoteinformation.com.au> G'day all, This might be a postgis list question, but I thought I'd try here first. I have a table with approx 4 million rows, each with a date and start and end point (and some other). This table would probably increase by around 300 000 rows per month. The table is indexed and clustered by date, and the table has no specific geometry information, just a code to link to a geometry table. To produce a useful sense of the activity, I am collecting all the start and end points in a given time frame, and making line segments, then aggregating by start and end point, and counting the total number of each line. EXPLAIN ANALYZE SELECT "bucket"::text,asbinary(force_collection(force_2d(route)),'NDR'),mid::text from ( SELECT (ogid*1000 + dgid)::int as mid, origtta, desttta, ST_MakeLine(s.orig, s.dest) as route, total_head, ceiling(log(total_head))::int as bucket FROM ( SELECT o.gid as ogid, d.gid as dgid, o.area_name as origtta, d.area_name as desttta, st_centroid(o.the_geom) as orig, st_centroid(d.the_geom) as dest, count(n.id) as total_head FROM nlis n JOIN tailtagarea o ON n.sourceshire = o.shortcode JOIN tailtagarea d ON n.destinationshire = d.shortcode WHERE sourceshire is not null AND sourceshire not like ' ' AND destinationshire is not null AND destinationshire not like ' ' AND transferdate >= '13/06/2008' AND transferdate <= '15/06/2008' GROUP BY o.gid, d.gid, o.area_name, d.area_name, st_centroid(o.the_geom), st_centroid(d.the_geom) ) AS s ) AS foo in the terminal, this runs in either about 4 or 9 seconds depending on the date range - if it becomes more than about 3 days of reports the query analyzer notes moving to disk based sorts etc. However, when I run it in MapServer, the following statement is added : WHERE route && setSRID('BOX3D(105.204213080645 -37.0327214193548,143.604244080645 -9.31123074193548)'::BOX3D, 4326 ) and it never completes, and neither does it if I take the final statement and run it directly in psql. So, I read the documentation, and read about moving the BBOX statement using !BOX!, which I did (using st_within on both the joins, but in fact, this is not the behaviour I want, as it stops any lines being created if they start or end outside the window ( I want to see these ones as well). Additionally, it didn't stop the final bbox statement being added, which I thought it was meant to? So can I just trick MapServer into not adding the BBOX? After aggregation, there is unlikely to be more than about 200 lines to be rendered, so whether or not they are in the map window shouldn't damage rendering performance too much - should it? cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From ben at remoteinformation.com.au Tue Jan 13 18:55:09 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Wed, 14 Jan 2009 11:55:09 +0900 Subject: [mapserver-users] Querymap with raster layer active References: <4B8AD223-E074-4D69-9FF0-C9C12F9164AB@remoteinformation.com.au> Message-ID: <639FD00F-E4AF-4827-A480-B60E05E3F85C@remoteinformation.com.au> G'day all, It just occurred to me (slow night) that when I click on a point that has a template set on a number of layers of data, if one of them is a raster the querymap is not generated. So for instance, if I have a movement line (top layer) with a population density raster underneath, when I click on the point I get the information about the movement and the information about the population density, but no map. If I turn the raster off, I get the map. I've read the documtation and know querymaps don't work with rasters (understandably), but I was surprised I get nothing for any of the other layers. Have I missed something - is it be possible to make it such that it ignores the querymap directive for raster layers, and just paints the normal layer with the vector layers highlighted (but still return the pixel values from the raster at that point for the query results). That way I could have my map segments (not highlighted here obviously!) next to my psuedo-legend on the query results page: -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture 5.png Type: image/png Size: 13310 bytes Desc: not available URL: -------------- next part -------------- And my movement line details reflecting the point I clicked. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From Bob.Basques at ci.stpaul.mn.us Tue Jan 13 19:23:40 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 13 Jan 2009 21:23:40 -0600 Subject: [mapserver-users] Mapserver.org sample ... Message-ID: <496D065C020000A8000100AB@jeckle> All, Ok, since there seems to be a push to use OpenLayers as a Client for Mapserver, where do I add in a GeoMoose demo? (simply stirring the pot. :c) Thanks bobb >>> Christopher Schmidt 01/13/09 11:35 AM >>> On Tue, Jan 13, 2009 at 02:30:39PM -0300, Paul james wrote: > Thanks ! > Can you point me some quickstart with openlayer + mapserver + tilecache? I?m > kind lost on it... I would recommend first reading: http://workshops.opengeo.org/openlayers/intro/doc/en/ Which is an excellent introductin to OpenLayers. After that, get something working as a WMS, then: http://geoserver.org/display/GEOSDOC/TileCache+Tutorial Is a good TileCache Tutorial. -- Chris > I have a custom app using mapscript + postgis... And I?d like to make a > version using openlayers and tilecache... > > > > On Tue, Jan 13, 2009 at 2:03 PM, Christopher Schmidt < > crschmidt at metacarta.com> wrote: > > > On Tue, Jan 13, 2009 at 12:57:24PM -0300, Paul james wrote: > > > Thanks Tamas... > > > Is It possible to use OpenLayers with mapscript? > > > > In what way? OpenLayers would typically take over many of the roles that > > a custom application would -- building your application in Javascript > > instead of PHP. Depending on what you are doing with mapScript, it may > > be possibl t simply use MapServer as a CGI instead, or it may be > > possible to implement what you want such that OpenLayers can ccomplish > > it. > > > > > > > > > > > On Tue, Jan 13, 2009 at 12:47 PM, Tamas Szekeres > >wrote: > > > > > > > Paul, > > > > > > > > This kind of functionality requires some client side scripting like > > > > javascript implemented by OpenLayers in this particular case. > > > > > > > > Best regards, > > > > > > > > Tamas > > > > > > > > > > > > 2009/1/13 Paul james > > > > > > > >> Hello guys... > > > >> Looking at mapserver.org map sample. I?d like to know how can I do > > > >> something like that ... Can someone point me the right direction to do > > that? > > > >> Is it possible to use mapscript c# to do that? > > > >> > > > >> Thanks > > > >> > > > >> _______________________________________________ > > > >> 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 > > > > > > -- > > Christopher Schmidt > > MetaCarta > > -- Christopher Schmidt MetaCarta _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From kreshna_iceheart at yahoo.com Tue Jan 13 19:49:49 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Tue, 13 Jan 2009 19:49:49 -0800 (PST) Subject: [mapserver-users] MapServer on Intel Atom? In-Reply-To: <496C978C.6050802@zeelandnet.nl> Message-ID: <513558.228.qm@web110602.mail.gq1.yahoo.com> Hi Jukka, actually I'm quite surprised, because based on my experience, raster layer is always slower than vector layer regardless of system. I attached the gdal info result with this mail. And Milo, yes, I have both MapServer and browser running on my notebook. The browser accesses MapServer using localhost connection. I'm interested in your idea though. Do you mean I can create a web-based interactive map solely using ogr and gdal, without MapServer component? But how? Is it possible for a web application to interactively display .SHPs and .TIFFs without MapServer? Or do you mean I have to stay connected to the internet (to access the remote MapServer) during my demo? Unfortunately, in most cases I won't be able to connect to the internet during the demo. Nonetheless, is MapServer more CPU-dependent or memory-dependent? How far large RAM can compensate for weak CPU like Intel Atom? Thanks, --- On Tue, 1/13/09, Milo van der Linden wrote: > From: Milo van der Linden > Subject: Re: [mapserver-users] MapServer on Intel Atom? > To: mapserver-users at lists.osgeo.org > Date: Tuesday, January 13, 2009, 8:30 AM > Oops, sorry. Should have read the initial post, for > demonstration purposes, using datasets that are not to big > sounds possible to me. > > Dan Little wrote: > > I agree with where Jukka is going... Raster layers > are usually pretty fast so long as they are tuned correctly. > > > > > > ----- Original Message ---- > > > >> From: Rahkonen Jukka > > >> To: kreshna_iceheart at yahoo.com; > mapserver-users at lists.osgeo.org > >> Sent: Tuesday, January 13, 2009 6:04:07 AM > >> Subject: Re: [mapserver-users] MapServer on Intel > Atom? > >> > >> Hi, > >> > >> You say that your raster layer is slower than > vector layers, but do you feel it is too slow? Your image > should be served pretty fast by Mapserver. The key is that > tiff file is tiled (for zoom-in situation) and that it has > overviews (for zoom-out case). Could you send the gdalinfo > report about your image if you suffer from slowness? > >> > >> -Jukka Rahkonen- > >> > >> > >>> -----Alkuper?inen viesti----- > >>> L?hett?j?: > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > kreshna_iceheart at yahoo.com > >>> L?hetetty: 13. tammikuuta 2009 12:35 > >>> Vastaanottaja: > mapserver-users at lists.osgeo.org; Dan Little > >>> Aihe: Re: [mapserver-users] MapServer on Intel > Atom? > >>> > >>> Hi, thanks. > >>> > >>> The vectors are quite simple. I've never > experienced slow down when displayed vector data, not even > on an old Toshiba M20 laptop. > >>> > >>> Raster, on the other hand, is always the > biggest problem. Compared to polygons, my raster is always > slower to zoom, to pan, etc (despite the size is only 500 > Mb). Is displaying raster more CPU-intensive or > memory-intensive? If I'm using Intel Atom, will my > raster be affected severely? > >>> > >>> Also, can using bigger RAM (let say, 2GB or > so) compensate for the lack of processing power of Intel > Atom? > >>> > >>> Thanks again, > >>> -Kresh > >>> > >>> > >>> --- On Mon, 1/12/09, Dan Little wrote: > >>> > >>> > >>>> From: Dan Little Subject: Re: > [mapserver-users] MapServer on Intel Atom? > >>>> To: kreshna_iceheart at yahoo.com, > mapserver-users at lists.osgeo.org > >>>> Date: Monday, January 12, 2009, 9:18 PM I > think the atom > >>> will be more > >>>> than adequate... depending on the dataset. > :-) > >>>> > >>>> Serving 100 points is significantly less > intensive than serving 100 city-boundary polygons. > >>>> > >>>> > >>>> (Oops forgot to send to the list) > >>>> > >>>> > >>>> ----- Original Message ---- > >>>> > >>>>> From: > "kreshna_iceheart at yahoo.com" > >>>>> To: > mapserver-users at lists.osgeo.org > >>>>> Sent: Monday, January 12, 2009 8:09:15 > PM > >>>>> Subject: [mapserver-users] MapServer > on Intel Atom? > >>>>> > >>>>> I'll be doing a lot of MapServer > demo in the > >>>>> > >>>> future. I'm quite interested in > >>>> > >>>>> Intel Atom-based subnotebooks for the > purpose (like > >>>>> > >>>> Lenovo IdeaPad S10), since > >>>> > >>>>> they are light and mobile. > >>>>> > >>>>> However, I wonder if Intel Atom is > adequate to run > >>>>> > >>>> MapServer. The MapServer will > >>>> > >>>>> be run on either ms4w on Windows XP, > or directly on > >>>>> > >>>> Linux. The layers are stored > >>>> > >>>>> on postGIS (there are fifteen layers > or so), and there > >>>>> > >>>> is also a 476 megabytes > >>>> > >>>>> raster file in .TIFF format. > >>>>> > >>>>> Will Intel Atom be adequate for the > purpose? Will 2GB > >>>>> > >>>> of memory help? Has anyone > >>>> > >>>>> ever done such thing before? > >>>>> > >>>>> Many thanks, > >>>>> -Kresh > >>>>> > >>>>> > >>>>> > _______________________________________________ > >>>>> 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 > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gdalinforesult.txt URL: From crschmidt at metacarta.com Tue Jan 13 22:37:51 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 14 Jan 2009 01:37:51 -0500 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: <496D065C020000A8000100AB@jeckle> References: <496D065C020000A8000100AB@jeckle> Message-ID: <20090114063750.GM4568@metacarta.com> On Tue, Jan 13, 2009 at 09:23:40PM -0600, Bob Basques wrote: > All, > > Ok, since there seems to be a push to use OpenLayers as a Client for > Mapserver, where do I add in a GeoMoose demo? > > (simply stirring the pot. :c) There are a number of ways that integrating GeoMoose into the MapServer documentation makes sense. 1. Extend the MapServer documentation with a section for 'client development applications' or something similar. This section would be ideal for describing a number of suppoting applications to MapServer, such as TileCache, OpenLayers, GeoMose, and a small demo for each of those wouldn't be inappropriate if it can be done within a dozen or so lines of HTML in an ReST doc. 2. Add a general section with descriptions + pointers to other tools. This would be a less complete solutin than above, pointing to the GeoMoose site rather than documenting strongly its use within MapServer. 3. Work towards getting a MapServer gallery, similar to the existing OpenLayers Gallery, set up for MapServer/OSGeo. This i a task that Howard and I have discussed, but no serious work has been done on yet. This would allow you to share the GeoMoose demonstrations with more people. (Though I will note that every GeoMoose demo I've gone to in the past 6 months has been a pain for me, because I have to accept an expired security certificate... that might be worth fixing.) You seem to think that the curent demo on the MapServer homepage is a demonstration of OpenLayers, which I would disagree with strongly. It's entirely designed to be a demonstration of MapServer -- there is practically no UI or features of OpenLayers used, just a set of pretty Map tiles. If GeoMoose really creates a more compelling demonstration of *MapServer* functionality -- as opposed to GeoMoose functionality -- that a 'normal' user -- one without GIS experience, for example -- can appreciate, it might make more sense to have that be the case. Does GeoMoose use advanced features of MapServer that non-GIS users would be interested in? I haven't seen that thus far, personally, but would be glad to be wrong. Regards, -- Christopher Schmidt MetaCarta From Jukka.Rahkonen at mmmtike.fi Wed Jan 14 00:09:18 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 14 Jan 2009 10:09:18 +0200 Subject: [mapserver-users] MapServer on Intel Atom? In-Reply-To: <513558.228.qm@web110602.mail.gq1.yahoo.com> Message-ID: > > Hi Jukka, actually I'm quite surprised, because based on my > experience, raster layer is always slower than vector layer > regardless of system. I attached the gdal info result with this mail. Do the following with your tiff image: gdal_translate -of GTiff -co TILED=YES gabungan.tif gabungan_tiled.tif And next: gdaladdo -r average gabungan_tiled.tif 2 4 8 16 32 64 Add gabungan_tiled.tif as a nee layer to your mapfile and compare it with the gabungan.tif layer. -Jukka Rahkonen- > Nonetheless, is MapServer more CPU-dependent or > memory-dependent? How far large RAM can compensate for weak > CPU like Intel Atom? > > Thanks, > > > --- On Tue, 1/13/09, Milo van der Linden > wrote: > > > From: Milo van der Linden > > Subject: Re: [mapserver-users] MapServer on Intel Atom? > > To: mapserver-users at lists.osgeo.org > > Date: Tuesday, January 13, 2009, 8:30 AM Oops, sorry. > Should have read > > the initial post, for demonstration purposes, using > datasets that are > > not to big sounds possible to me. > > > > Dan Little wrote: > > > I agree with where Jukka is going... Raster layers > > are usually pretty fast so long as they are tuned correctly. > > > > > > > > > ----- Original Message ---- > > > > > >> From: Rahkonen Jukka > > > > >> To: kreshna_iceheart at yahoo.com; > > mapserver-users at lists.osgeo.org > > >> Sent: Tuesday, January 13, 2009 6:04:07 AM > > >> Subject: Re: [mapserver-users] MapServer on Intel > > Atom? > > >> > > >> Hi, > > >> > > >> You say that your raster layer is slower than > > vector layers, but do you feel it is too slow? Your image > should be > > served pretty fast by Mapserver. The key is that tiff file > is tiled > > (for zoom-in situation) and that it has overviews (for > zoom-out case). > > Could you send the gdalinfo report about your image if you > suffer from > > slowness? > > >> > > >> -Jukka Rahkonen- > > >> > > >> > > >>> -----Alkuper?inen viesti----- > > >>> L?hett?j?: > > mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > > kreshna_iceheart at yahoo.com > > >>> L?hetetty: 13. tammikuuta 2009 12:35 > > >>> Vastaanottaja: > > mapserver-users at lists.osgeo.org; Dan Little > > >>> Aihe: Re: [mapserver-users] MapServer on Intel > > Atom? > > >>> > > >>> Hi, thanks. > > >>> > > >>> The vectors are quite simple. I've never > > experienced slow down when displayed vector data, not even > on an old > > Toshiba M20 laptop. > > >>> > > >>> Raster, on the other hand, is always the > > biggest problem. Compared to polygons, my raster is always > slower to > > zoom, to pan, etc (despite the size is only 500 Mb). Is displaying > > raster more CPU-intensive or memory-intensive? If I'm using Intel > > Atom, will my raster be affected severely? > > >>> > > >>> Also, can using bigger RAM (let say, 2GB or > > so) compensate for the lack of processing power of Intel Atom? > > >>> > > >>> Thanks again, > > >>> -Kresh > > >>> > > >>> > > >>> --- On Mon, 1/12/09, Dan Little wrote: > > >>> > > >>> > > >>>> From: Dan Little Subject: Re: > > [mapserver-users] MapServer on Intel Atom? > > >>>> To: kreshna_iceheart at yahoo.com, > > mapserver-users at lists.osgeo.org > > >>>> Date: Monday, January 12, 2009, 9:18 PM I > > think the atom > > >>> will be more > > >>>> than adequate... depending on the dataset. > > :-) > > >>>> > > >>>> Serving 100 points is significantly less > > intensive than serving 100 city-boundary polygons. > > >>>> > > >>>> > > >>>> (Oops forgot to send to the list) > > >>>> > > >>>> > > >>>> ----- Original Message ---- > > >>>> > > >>>>> From: > > "kreshna_iceheart at yahoo.com" > > >>>>> To: > > mapserver-users at lists.osgeo.org > > >>>>> Sent: Monday, January 12, 2009 8:09:15 > > PM > > >>>>> Subject: [mapserver-users] MapServer > > on Intel Atom? > > >>>>> > > >>>>> I'll be doing a lot of MapServer > > demo in the > > >>>>> > > >>>> future. I'm quite interested in > > >>>> > > >>>>> Intel Atom-based subnotebooks for the > > purpose (like > > >>>>> > > >>>> Lenovo IdeaPad S10), since > > >>>> > > >>>>> they are light and mobile. > > >>>>> > > >>>>> However, I wonder if Intel Atom is > > adequate to run > > >>>>> > > >>>> MapServer. The MapServer will > > >>>> > > >>>>> be run on either ms4w on Windows XP, > > or directly on > > >>>>> > > >>>> Linux. The layers are stored > > >>>> > > >>>>> on postGIS (there are fifteen layers > > or so), and there > > >>>>> > > >>>> is also a 476 megabytes > > >>>> > > >>>>> raster file in .TIFF format. > > >>>>> > > >>>>> Will Intel Atom be adequate for the > > purpose? Will 2GB > > >>>>> > > >>>> of memory help? Has anyone > > >>>> > > >>>>> ever done such thing before? > > >>>>> > > >>>>> Many thanks, > > >>>>> -Kresh > > >>>>> > > >>>>> > > >>>>> > > _______________________________________________ > > >>>>> 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 > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > From thilo.wehrmann at dlr.de Wed Jan 14 01:26:44 2009 From: thilo.wehrmann at dlr.de (Thilo Wehrmann) Date: Wed, 14 Jan 2009 01:26:44 -0800 (PST) Subject: =?UTF-8?Q?Re:_[mapserver-users]_Problems_with_?= =?UTF-8?Q?sld=C2=B4s_polgonsymbolizer_interpretation?= In-Reply-To: <496CC9DF.7040708@dlr.de> References: <496CC9DF.7040708@dlr.de> Message-ID: <1231925204885-2155896.post@n2.nabble.com> I could identify why my sld could not be interpreted but it doesn?t make sense to me. The problem is that without the value in the ogc:Literal context it worked like: #FFECBF 1 instead of this one: #FFECBF 1 And that was the reason why fonts are interpreted, too. There were no ogc:Literal specifications used. For working purpose I can replace all the ogc:Literal tag but I think this can be only a transitional solution. Thilo Wehrmann Thilo Wehrmann wrote: > > hello together, > sorry for possible double submission. Currently we work at the dynamic > generation of wms service layers for our project data. For styling > issues we use slds stored in exist database. The access to the sld works > straight but we figure out some problems with line/polygonsymbolizer > interpretation of the returned slds. For the raster data everything > works fine but for all vector data the fill colours won?t be used > (standard grey is used instead. Mapserver 5.2.1 uses the sld because > changes of the font settings are recognized and correctly rendered. > > [SLDs deleted...] > > The compiled map file after sld interpretation says nothing about these > settings and standard colours are used for painting. I read that there > were some problems in earlier versions of mapserver concerning stroke > colours... > > Does anybody know about this problem or knows a workaround? mapserver is > quite an impressive piece of software. > > Thank you and best regards, > Thilo Wehrmann > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Problems-with-sld%C2%B4s-polgonsymbolizer-interpretation-tp2152137p2155896.html Sent from the Mapserver - User mailing list archive at Nabble.com. From srph124 at yahoo.com Wed Jan 14 02:33:56 2009 From: srph124 at yahoo.com (Saka Royban) Date: Wed, 14 Jan 2009 02:33:56 -0800 (PST) Subject: [mapserver-users] Problem in replacing Template parameter via URL!!! Message-ID: <334970.56878.qm@web58203.mail.re3.yahoo.com> hi everyone. i have some problem in replacing Template parameter via URL to alter the whole html template file. I have tested both template=Cadatsre and map_web_template=Cadastre but no diffrence. Although templatepattern is set to "Cad*" anyone knows what is the problem. maybe i'm unaware of a particular configuration Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Wed Jan 14 05:19:16 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 14 Jan 2009 14:19:16 +0100 Subject: [mapserver-users] GIF output with AGG renderer Message-ID: Hi all, I wanted to configure MS 5.2.0 to use the AGG renderer when generating GIF output. The web site doesn't mention the AGG renderer at all on the general output format page. The AGG rendering specifics page only tells about PNG and JPEG. So I'm wondering if it is possible at all. Since AGG can quantize the image it should be no problem to put it out as GIF. I use the graphic stroke but that only works with AGG... Any ideas about that? Thanks. From thomas.ellett at statkart.no Wed Jan 14 06:01:49 2009 From: thomas.ellett at statkart.no (tellett) Date: Wed, 14 Jan 2009 06:01:49 -0800 (PST) Subject: [mapserver-users] Problem with dynamic map In-Reply-To: <1231525591506-2134557.post@n2.nabble.com> References: <1231525591506-2134557.post@n2.nabble.com> Message-ID: <1231941709615-2156992.post@n2.nabble.com> Hi, just had a very quick look at this and one thing I noticed, in your html file, in the '' section, you are calling the mapserv.exe file from /bin/, should that be from /cgi-bin/? As I say, just a quick thought. Cheers Tom boesiii wrote: > > http://n2.nabble.com/file/n2134557/nira2.html nira2.html > http://n2.nabble.com/file/n2134557/nira2.map nira2.map > > I am trying to create a dynamic map but when I open my html in firefox the > map doesn't show up and when I click on the map it asks if I want to save > mapserv.exe > > I attached my html file and map file. > > I tried going thru the demo with no luck. Could someone help? > -- View this message in context: http://n2.nabble.com/Problem-with-dynamic-map-tp2134557p2156992.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Wed Jan 14 06:43:27 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 14 Jan 2009 08:43:27 -0600 Subject: [mapserver-users] GPX format supported? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA127@s-sp22.pca.state.mn.us> Bean, Can you post your gpx file (or a sample file that demonstrates the problem)? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of bean at warbaby.com Sent: Tuesday, January 13, 2009 6:20 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] GPX format supported? Hi Jeff, Thanks for the reply. I ran ogrinfo on both "waypoints" and "track_points". "waypoints" returns 147 entries and "track_points" returns 0 entries (there are no tracks recorded in my GPS unit at this point, just trying to keep it simple for now). This is returned from a Garmin eTrex Venture through gps babel. Thanks for entering the SVN. I am still puzzled about my mapfile layer however. It fails to parse when CLASS is added and the layer fails to load when CLASS is deleted. I feel sure my mapfile layer syntax is correct (although my previous blooper with the errant END statement says I shouldn't be so sure). Would you mind looking for obvious errors for the following? LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'waypoints' STATUS ON DEBUG 5 CLASS STYLE SYMBOL 'CIRCLE' SIZE 3 OUTLINECOLOR 0 0 0 COLOR 106 7 182 END END END Thanks, bean While testing gpx just now I realized that we don't have a GPX page in the MapServer Vector Data Access doc, so I have added it into SVN. In my testing I was forced to use the "track_points" feature, as there was no actual data in the "waypoints" feature (you can test this through ogrinfo). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.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 bob.b at gritechnologies.com Wed Jan 14 07:21:38 2009 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 14 Jan 2009 09:21:38 -0600 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: <20090114063750.GM4568@metacarta.com> References: <496D065C020000A8000100AB@jeckle> <20090114063750.GM4568@metacarta.com> Message-ID: <496E0302.8070103@gritechnologies.com> All, The only reason I brought it up at all, was that I was playing around with Openlayers myself this week. I pretty much copied the "Demo" from the MapServer website. Sounds like that was the wrong to go :c) The Certificate thing is an issue here. I really need to start putting something together for GeoMoose on an external server because of it, it's painful for me as well. Hear you load and clear on this one. Benefits of GeoMoose (Main ones) for the normal user. * Fast (because of MapServer tuning.). Smaller footprint * Handles many layers with ease. The limit is the client hardware, and the control is given to the user as to how many to display. * The publishing of the data can be distributed, down to the layer level, including the contents of the popups. Each layer can be managed separately without consequence to the rest of the interface, if it breaks, only that layer is not available. * More interface user Control, layer fading, on/off, stacking order, popup on/off. * And it's all a client lib as well, just like Openlayers. Closer than you think. * If I had to teach MapServer request strategies, I would use MapServer + GeoMoose + Firebug to do it. GeoMoose uses the CGI functionality for images, imagemaps, and querying. Not that I'm trying to defend GeoMoose. Just wanted to know how to join in on popularizing MapServer. Also, I think our definitions of RESTful are slightly different. I would say that GeoMoose is very (VERY) ReSTfully designed. bobb Christopher Schmidt wrote: > On Tue, Jan 13, 2009 at 09:23:40PM -0600, Bob Basques wrote: > >> All, >> >> Ok, since there seems to be a push to use OpenLayers as a Client for >> Mapserver, where do I add in a GeoMoose demo? >> >> (simply stirring the pot. :c) >> > > There are a number of ways that integrating GeoMoose into the MapServer > documentation makes sense. > > 1. Extend the MapServer documentation with a section for 'client > development applications' or something similar. This section would > be ideal for describing a number of suppoting applications to > MapServer, such as TileCache, OpenLayers, GeoMose, and a small demo > for each of those wouldn't be inappropriate if it can be done within > a dozen or so lines of HTML in an ReST doc. > > 2. Add a general section with descriptions + pointers to other tools. > This would be a less complete solutin than above, pointing to the > GeoMoose site rather than documenting strongly its use within > MapServer. > > 3. Work towards getting a MapServer gallery, similar to the existing > OpenLayers Gallery, set up for MapServer/OSGeo. This i a task that > Howard and I have discussed, but no serious work has been done on > yet. This would allow you to share the GeoMoose demonstrations with > more people. (Though I will note that every GeoMoose demo I've gone > to in the past 6 months has been a pain for me, because I have to > accept an expired security certificate... that might be worth > fixing.) > > You seem to think that the curent demo on the MapServer homepage is a > demonstration of OpenLayers, which I would disagree with strongly. It's > entirely designed to be a demonstration of MapServer -- there is > practically no UI or features of OpenLayers used, just a set of pretty > Map tiles. If GeoMoose really creates a more compelling demonstration of > *MapServer* functionality -- as opposed to GeoMoose functionality -- > that a 'normal' user -- one without GIS experience, for example -- can > appreciate, it might make more sense to have that be the case. Does > GeoMoose use advanced features of MapServer that non-GIS users would be > interested in? I haven't seen that thus far, personally, but would be > glad to be wrong. > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Jan 14 07:34:50 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 14 Jan 2009 09:34:50 -0600 Subject: [mapserver-users] Problem in replacing Template parameter via URL!!! Message-ID: <496DB1BB0200008F0001F9B6@co5.dnr.state.mn.us> The patterns are regexes so "^Cad" should work. The URL syntax also varies depending on version. Pre-5.0 uses the syntax you mention. 5.0+ uses: ...&map_web=TEMPLATE+Cadatsre&... Steve >>> Saka Royban 01/14/09 4:41 AM >>> hi everyone. i have some problem in replacing Template parameter via URL to alter the whole html template file. I have tested both template=Cadatsre and map_web_template=Cadastre but no diffrence. Although templatepattern is set to "Cad*" anyone knows what is the problem. maybe i'm unaware of a particular configuration Thanks in advance From boesiii at yahoo.com Wed Jan 14 07:43:26 2009 From: boesiii at yahoo.com (boesiii) Date: Wed, 14 Jan 2009 07:43:26 -0800 (PST) Subject: [mapserver-users] Problem with dashed lines Message-ID: <1231947806075-2157454.post@n2.nabble.com> I am trying to draw a line as dashed and I tried using the example from the Mapserver documentation but I keep getting an error when it reads the symbols file. The error is on line 170 and I can't figure out how to fix it, below is a snippet from the symbol file. SYMBOL NAME ?point? TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME ?rectangle-train? TYPE VECTOR POINTS 0 0 0 0.6 1 0.6 1 0 0 0 END FILLED TRUE STYLE 8 12 8 12 END END -- View this message in context: http://n2.nabble.com/Problem-with-dashed-lines-tp2157454p2157454.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Wed Jan 14 07:40:35 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 14 Jan 2009 10:40:35 -0500 Subject: [mapserver-users] Problems with =?UTF-8?B?c2xkwrRzIHBvbGdvbnM=?= =?UTF-8?B?eW1ib2xpemVyIGludGVycHJldGF0aW9u?= In-Reply-To: <1231925204885-2155896.post@n2.nabble.com> References: <496CC9DF.7040708@dlr.de> <1231925204885-2155896.post@n2.nabble.com> Message-ID: <496E0773.3040306@dmsolutions.ca> Thilo, Both ways of specifying css parameters are valid according to the specs. Only the first way is currently supported. I have update mapserver bug http://trac.osgeo.org/mapserver/ticket/1076 to be able to support the Literal expression for css parameters for the upcoming 5.4 release. Best Regards Thilo Wehrmann wrote: > I could identify why my sld could not be interpreted but it doesn?t make > sense to me. The problem is that without the value in the ogc:Literal > context it worked like: > > #FFECBF > > 1 > > > > instead of this one: > > > #FFECBF > > > 1 > > > > And that was the reason why fonts are interpreted, too. There were no > ogc:Literal specifications used. For working purpose I can replace all the > ogc:Literal tag but I think this can be only a transitional solution. > > Thilo Wehrmann > > > Thilo Wehrmann wrote: >> hello together, >> sorry for possible double submission. Currently we work at the dynamic >> generation of wms service layers for our project data. For styling >> issues we use slds stored in exist database. The access to the sld works >> straight but we figure out some problems with line/polygonsymbolizer >> interpretation of the returned slds. For the raster data everything >> works fine but for all vector data the fill colours won?t be used >> (standard grey is used instead. Mapserver 5.2.1 uses the sld because >> changes of the font settings are recognized and correctly rendered. >> >> [SLDs deleted...] >> >> The compiled map file after sld interpretation says nothing about these >> settings and standard colours are used for painting. I read that there >> were some problems in earlier versions of mapserver concerning stroke >> colours... >> >> Does anybody know about this problem or knows a workaround? mapserver is >> quite an impressive piece of software. >> >> Thank you and best regards, >> Thilo Wehrmann >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From crschmidt at metacarta.com Wed Jan 14 08:36:51 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 14 Jan 2009 11:36:51 -0500 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: <496E0302.8070103@gritechnologies.com> References: <496D065C020000A8000100AB@jeckle> <20090114063750.GM4568@metacarta.com> <496E0302.8070103@gritechnologies.com> Message-ID: <20090114163651.GT4568@metacarta.com> On Wed, Jan 14, 2009 at 09:21:38AM -0600, Bob Basques wrote: > All, > > The only reason I brought it up at all, was that I was playing around > with Openlayers myself this week. > > I pretty much copied the "Demo" from the MapServer website. Sounds like > that was the wrong to go :c) Absolutely. The demo on the MapServer site is using a layer that is generally not needed in any application -- at least not until you're looking for something that can be deployed without a MapServer 'server' in the mix. > Benefits of GeoMoose (Main ones) for the normal user. > > * Fast (because of MapServer tuning.). Smaller footprint The dem on the MapServer main site seems pretty fast to me. Much faster than any non-cached demo I've seen. Are you saying that GeoMoose has tuned MapServer t such an extent that it is faster to render images than it is to serve pre-rendered tiles that demonstrate MapServer's rendering skills? > * Handles many layers with ease. The limit is the client hardware, > and the control is given to the user as to how many to display. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * The publishing of the data can be distributed, down to the layer > level, including the contents of the popups. Each layer can be > managed separately without consequence to the rest of the > interface, if it breaks, only that layer is not available. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * More interface user Control, layer fading, on/off, stacking order, > popup on/off. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * And it's all a client lib as well, just like Openlayers. Closer > than you think. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * If I had to teach MapServer request strategies, I would use > MapServer + GeoMoose + Firebug to do it. GeoMoose uses the CGI > functionality for images, imagemaps, and querying. I don't knwo what you mean by this, so I can't comment on it. > Not that I'm trying to defend GeoMoose. Just wanted to know how to join > in on popularizing MapServer. GeoMoose has many advantages over other client software, if you are demonstrating client software. The MapServer homepage should be a quick, simple, easy to use demonstration of MapServer capabilties -- in this case, a pretty map. I can see an argument that the MapSerer homepage should use a static image instead, but I think that is a less effective demonstration of the pretty rendering. I do not think that changing from OpenLayers givves a better demonstration of *MapServer*'s rendering capabilties, and I can't imagine a more effective demo could be created against static content. > Also, I think our definitions of RESTful are slightly different. I > would say that GeoMoose is very (VERY) ReSTfully designed. ReST is "Restructured Text", the format used by the MapServer documentation. Regards, -- Christopher Schmidt MetaCarta From David.Fawcett at state.mn.us Wed Jan 14 08:47:14 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 14 Jan 2009 10:47:14 -0600 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: <20090114163651.GT4568@metacarta.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA12B@s-sp22.pca.state.mn.us> > Also, I think our definitions of RESTful are slightly different. I > would say that GeoMoose is very (VERY) ReSTfully designed. ... I hear the distant sound of someone spitting their organic coffee all over a computer monitor in Ft. Collins, CO ; / From Bob.Basques at ci.stpaul.mn.us Wed Jan 14 09:13:24 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 14 Jan 2009 11:13:24 -0600 Subject: [mapserver-users] Mapserver.org sample ... Message-ID: <496DC8D4020000A8000100C0@jeckle> Chris, The biggest piece I see GeoMoose contributing to, is the CGI calling methods. GeoMoose makes extensive use of the ImageMap building and Query Mechanisms available with MapServer, not just the image rendering. Although the stacking of the images inside of the GeoMoose interface is and has been a novel way of presenting the MapServer contructs (IMO). OpenLayers does this as well to some degree, but I believe the GeoMoose interface provides a greater degree of end user control. I'm interested in promoting more than just MapServer image rendering. Using Mapserver's CGI capabilities with a Client LIB is pretty much the way I've used MapServer since starting up with it over ten years ago. The imagemap (templating) and Query capabilities are just as important as the image rendering. The teaching reference below, was aimed squarely at the idea of using MapServer via it's CGI calling structure, which I've always thought should be demo-ified in some location. But since MapServer (and it's community) hasn't in the past had any particular interest in ratifying a client for use, I never pursued the idea. But now, with that nice OpenLayers window on the MapServer page, the sky's the limit so to speak, as far as setting up demos and including them in the MapServer site, or at least it seems like it should be. :c) bobb >>> Christopher Schmidt 01/14/09 10:37 AM >>> On Wed, Jan 14, 2009 at 09:21:38AM -0600, Bob Basques wrote: > All, > > The only reason I brought it up at all, was that I was playing around > with Openlayers myself this week. > > I pretty much copied the "Demo" from the MapServer website. Sounds like > that was the wrong to go :c) Absolutely. The demo on the MapServer site is using a layer that is generally not needed in any application -- at least not until you're looking for something that can be deployed without a MapServer 'server' in the mix. > Benefits of GeoMoose (Main ones) for the normal user. > > * Fast (because of MapServer tuning.). Smaller footprint The dem on the MapServer main site seems pretty fast to me. Much faster than any non-cached demo I've seen. Are you saying that GeoMoose has tuned MapServer t such an extent that it is faster to render images than it is to serve pre-rendered tiles that demonstrate MapServer's rendering skills? > * Handles many layers with ease. The limit is the client hardware, > and the control is given to the user as to how many to display. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * The publishing of the data can be distributed, down to the layer > level, including the contents of the popups. Each layer can be > managed separately without consequence to the rest of the > interface, if it breaks, only that layer is not available. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * More interface user Control, layer fading, on/off, stacking order, > popup on/off. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * And it's all a client lib as well, just like Openlayers. Closer > than you think. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * If I had to teach MapServer request strategies, I would use > MapServer + GeoMoose + Firebug to do it. GeoMoose uses the CGI > functionality for images, imagemaps, and querying. I don't knwo what you mean by this, so I can't comment on it. > Not that I'm trying to defend GeoMoose. Just wanted to know how to join > in on popularizing MapServer. GeoMoose has many advantages over other client software, if you are demonstrating client software. The MapServer homepage should be a quick, simple, easy to use demonstration of MapServer capabilties -- in this case, a pretty map. I can see an argument that the MapSerer homepage should use a static image instead, but I think that is a less effective demonstration of the pretty rendering. I do not think that changing from OpenLayers givves a better demonstration of *MapServer*'s rendering capabilties, and I can't imagine a more effective demo could be created against static content. > Also, I think our definitions of RESTful are slightly different. I > would say that GeoMoose is very (VERY) ReSTfully designed. ReST is "Restructured Text", the format used by the MapServer documentation. Regards, -- Christopher Schmidt MetaCarta From boesiii at yahoo.com Wed Jan 14 09:34:00 2009 From: boesiii at yahoo.com (boesiii) Date: Wed, 14 Jan 2009 09:34:00 -0800 (PST) Subject: [mapserver-users] Is there a way to add a single click zoom button Message-ID: <1231954440585-2158109.post@n2.nabble.com> by just using the map file and html template file. -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2158109.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jayzee.smith at gmail.com Wed Jan 14 09:42:02 2009 From: jayzee.smith at gmail.com (John Smith) Date: Wed, 14 Jan 2009 12:42:02 -0500 Subject: [mapserver-users] Mapserver.org sample ... Message-ID: personally don't prefer openlayers except for its drag feature. openlayers appears tied to py. map rendered using layer = new OpenLayers.Layer.MapServer( "map", "/cgi-bin/mapserv.exe", {map: '/openlayers.map'} ); is sometimes jagged at outer zoom (with fewer dpi). may just need to tune but i agree mapserver.org could feature many maps - openlayers, geomoose. my 2 cents. thks, jzs On Wed, Jan 14, 2009 at 12:13 PM, Bob Basques wrote: Chris, The biggest piece I see GeoMoose contributing to, is the CGI calling methods. GeoMoose makes extensive use of the ImageMap building and Query Mechanisms available with MapServer, not just the image rendering. Although the stacking of the images inside of the GeoMoose interface is and has been a novel way of presenting the MapServer contructs (IMO). OpenLayers does this as well to some degree, but I believe the GeoMoose interface provides a greater degree of end user control. I'm interested in promoting more than just MapServer image rendering. Using Mapserver's CGI capabilities with a Client LIB is pretty much the way I've used MapServer since starting up with it over ten years ago. The imagemap (templating) and Query capabilities are just as important as the image rendering. The teaching reference below, was aimed squarely at the idea of using MapServer via it's CGI calling structure, which I've always thought should be demo-ified in some location. But since MapServer (and it's community) hasn't in the past had any particular interest in ratifying a client for use, I never pursued the idea. But now, with that nice OpenLayers window on the MapServer page, the sky's the limit so to speak, as far as setting up demos and including them in the MapServer site, or at least it seems like it should be. :c) bobb >>> Christopher Schmidt 01/14/09 10:37 AM >>> On Wed, Jan 14, 2009 at 09:21:38AM -0600, Bob Basques wrote: > All, > > The only reason I brought it up at all, was that I was playing around > with Openlayers myself this week. > > I pretty much copied the "Demo" from the MapServer website. Sounds like > that was the wrong to go :c) Absolutely. The demo on the MapServer site is using a layer that is generally not needed in any application -- at least not until you're looking for something that can be deployed without a MapServer 'server' in the mix. > Benefits of GeoMoose (Main ones) for the normal user. > > * Fast (because of MapServer tuning.). Smaller footprint The dem on the MapServer main site seems pretty fast to me. Much faster than any non-cached demo I've seen. Are you saying that GeoMoose has tuned MapServer t such an extent that it is faster to render images than it is to serve pre-rendered tiles that demonstrate MapServer's rendering skills? > * Handles many layers with ease. The limit is the client hardware, > and the control is given to the user as to how many to display. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * The publishing of the data can be distributed, down to the layer > level, including the contents of the popups. Each layer can be > managed separately without consequence to the rest of the > interface, if it breaks, only that layer is not available. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * More interface user Control, layer fading, on/off, stacking order, > popup on/off. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * And it's all a client lib as well, just like Openlayers. Closer > than you think. This is a GeoMoose benefit over other client software, but I don't see how it makes a better demo of MapServer's rendering capabilities. > * If I had to teach MapServer request strategies, I would use > MapServer + GeoMoose + Firebug to do it. GeoMoose uses the CGI > functionality for images, imagemaps, and querying. I don't knwo what you mean by this, so I can't comment on it. > Not that I'm trying to defend GeoMoose. Just wanted to know how to join > in on popularizing MapServer. GeoMoose has many advantages over other client software, if you are demonstrating client software. The MapServer homepage should be a quick, simple, easy to use demonstration of MapServer capabilties -- in this case, a pretty map. I can see an argument that the MapSerer homepage should use a static image instead, but I think that is a less effective demonstration of the pretty rendering. I do not think that changing from OpenLayers givves a better demonstration of *MapServer*'s rendering capabilties, and I can't imagine a more effective demo could be created against static content. > Also, I think our definitions of RESTful are slightly different. I > would say that GeoMoose is very (VERY) ReSTfully designed. ReST is "Restructured Text", the format used by the MapServer documentation. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From danlittle at yahoo.com Wed Jan 14 09:43:10 2009 From: danlittle at yahoo.com (Dan Little) Date: Wed, 14 Jan 2009 09:43:10 -0800 (PST) Subject: [mapserver-users] Mapserver.org sample ... References: <496DC8D4020000A8000100C0@jeckle> Message-ID: <220239.48116.qm@web51406.mail.re2.yahoo.com> Bob & Chris, OpenLayers and GeoMOOSE are entirely non-competitive projects. The OL is a library on which to build mapping interfaces such as GeoMOOSE. Which is why we're using it for GeoMOOSE 2... it gets rid of a lot of the tedium of maintaining code for the more basic aspects of the application (like Zooming, Drawing, etc.). The real advantage to GeoMOOSE is the service model, and the litany of services we try to make easy to configure for users. Out of the box GeoMOOSE is high customizable but also highly useful. The goal is to provide an interface to mapserver that works WITHOUT any coding. I want people to know ZERO javascript, php, or python, and still be able to use the web-mapping client. ----- Original Message ---- > From: Bob Basques > To: bob.b at gritechnologies.com; crschmidt at metacarta.com > Cc: mapserver-users at lists.osgeo.org > Sent: Wednesday, January 14, 2009 11:13:24 AM > Subject: Re: [mapserver-users] Mapserver.org sample ... > > Chris, > > The biggest piece I see GeoMoose contributing to, is the CGI calling methods. > GeoMoose makes extensive use of the ImageMap building and Query Mechanisms > available with MapServer, not just the image rendering. Although the stacking > of the images inside of the GeoMoose interface is and has been a novel way of > presenting the MapServer contructs (IMO). OpenLayers does this as well to some > degree, but I believe the GeoMoose interface provides a greater degree of end > user control. > > I'm interested in promoting more than just MapServer image rendering. Using > Mapserver's CGI capabilities with a Client LIB is pretty much the way I've used > MapServer since starting up with it over ten years ago. The imagemap > (templating) and Query capabilities are just as important as the image > rendering. The teaching reference below, was aimed squarely at the idea of > using MapServer via it's CGI calling structure, which I've always thought should > be demo-ified in some location. But since MapServer (and it's community) hasn't > in the past had any particular interest in ratifying a client for use, I never > pursued the idea. But now, with that nice OpenLayers window on the MapServer > page, the sky's the limit so to speak, as far as setting up demos and including > them in the MapServer site, or at least it seems like it should be. > > :c) > > > bobb > > > > >>> Christopher Schmidt 01/14/09 10:37 AM >>> > On Wed, Jan 14, 2009 at 09:21:38AM -0600, Bob Basques wrote: > > All, > > > > The only reason I brought it up at all, was that I was playing around > > with Openlayers myself this week. > > > > I pretty much copied the "Demo" from the MapServer website. Sounds like > > that was the wrong to go :c) > > Absolutely. The demo on the MapServer site is using a layer that is > generally not needed in any application -- at least not until you're > looking for something that can be deployed without a MapServer 'server' > in the mix. > > Benefits of GeoMoose (Main ones) for the normal user. > > > > * Fast (because of MapServer tuning.). Smaller footprint > > The dem on the MapServer main site seems pretty fast to me. Much faster > than any non-cached demo I've seen. Are you saying that GeoMoose has > tuned MapServer t such an extent that it is faster to render images than > it is to serve pre-rendered tiles that demonstrate MapServer's rendering > skills? > > > * Handles many layers with ease. The limit is the client hardware, > > and the control is given to the user as to how many to display. > > This is a GeoMoose benefit over other client software, but I don't see > how it makes a better demo of MapServer's rendering capabilities. > > > * The publishing of the data can be distributed, down to the layer > > level, including the contents of the popups. Each layer can be > > managed separately without consequence to the rest of the > > interface, if it breaks, only that layer is not available. > > This is a GeoMoose benefit over other client software, but I don't see > how it makes a better demo of MapServer's rendering capabilities. > > > * More interface user Control, layer fading, on/off, stacking order, > > popup on/off. > > This is a GeoMoose benefit over other client software, but I don't see > how it makes a better demo of MapServer's rendering capabilities. > > > * And it's all a client lib as well, just like Openlayers. Closer > > than you think. > > This is a GeoMoose benefit over other client software, but I don't see > how it makes a better demo of MapServer's rendering capabilities. > > > * If I had to teach MapServer request strategies, I would use > > MapServer + GeoMoose + Firebug to do it. GeoMoose uses the CGI > > functionality for images, imagemaps, and querying. > > I don't knwo what you mean by this, so I can't comment on it. > > > Not that I'm trying to defend GeoMoose. Just wanted to know how to join > > in on popularizing MapServer. > > GeoMoose has many advantages over other client software, if you are > demonstrating client software. The MapServer homepage should be a quick, > simple, easy to use demonstration of MapServer capabilties -- in this > case, a pretty map. I can see an argument that the MapSerer homepage > should use a static image instead, but I think that is a less effective > demonstration of the pretty rendering. I do not think that changing from > OpenLayers givves a better demonstration of *MapServer*'s rendering > capabilties, and I can't imagine a more effective demo could be created > against static content. > > > Also, I think our definitions of RESTful are slightly different. I > > would say that GeoMoose is very (VERY) ReSTfully designed. > > ReST is "Restructured Text", the format used by the MapServer > documentation. > > Regards, > -- > Christopher Schmidt > MetaCarta > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Jan 14 10:11:44 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 14 Jan 2009 12:11:44 -0600 Subject: [mapserver-users] Mapserver.org sample ... In-Reply-To: References: Message-ID: <496DD681.5157.008F.0@dnr.state.mn.us> Just an FYI, there is an effort underway to build a collection of MapServer samples to replace or compliment the MapServer Itasca demo. A simple version of Itasca is in fact a sample. These are really meant to demonstrate succinct functional elements (e.g. attribute bindings or inline features) and are generally not using any particular client. I am using OL for a couple of them (e.g. scale dependent display) simply because it's so darn easy to do and there's nothing to install. That said, the structure of the samples interface is such that samples can exist outside of what I'm developing so I can point to sample interfaces hosted by other folks (e.g. GeoMoose, p.mapper, OL and so on). Steve >>> On 1/14/2009 at 11:42 AM, in message , John Smith wrote: > personally don't prefer openlayers except for its drag feature. > openlayers appears tied to py. map rendered using layer = new > OpenLayers.Layer.MapServer( "map", "/cgi-bin/mapserv.exe", {map: > '/openlayers.map'} ); is sometimes jagged at outer zoom (with fewer > dpi). may just need to tune but i agree mapserver.org could feature > many maps - openlayers, geomoose. my 2 cents. > thks, jzs > > On Wed, Jan 14, 2009 at 12:13 PM, Bob Basques > wrote: > > Chris, > > The biggest piece I see GeoMoose contributing to, is the CGI > calling methods. GeoMoose makes extensive use of the ImageMap > building and Query Mechanisms available with MapServer, not just the > image rendering. Although the stacking of the images inside of the > GeoMoose interface is and has been a novel way of presenting the > MapServer contructs (IMO). OpenLayers does this as well to some > degree, but I believe the GeoMoose interface provides a greater degree > of end user control. > > I'm interested in promoting more than just MapServer image > rendering. Using Mapserver's CGI capabilities with a Client LIB is > pretty much the way I've used MapServer since starting up with it over > ten years ago. The imagemap (templating) and Query capabilities are > just as important as the image rendering. The teaching reference > below, was aimed squarely at the idea of using MapServer via it's CGI > calling structure, which I've always thought should be demo-ified in > some location. But since MapServer (and it's community) hasn't in the > past had any particular interest in ratifying a client for use, I > never pursued the idea. But now, with that nice OpenLayers window on > the MapServer page, the sky's the limit so to speak, as far as setting > up demos and including them in the MapServer site, or at least it > seems like it should be. > > :c) > > bobb > > >>> Christopher Schmidt 01/14/09 10:37 AM >>> > On Wed, Jan 14, 2009 at 09:21:38AM -0600, Bob Basques wrote: > > All, > > > > The only reason I brought it up at all, was that I was playing around > > with Openlayers myself this week. > > > > I pretty much copied the "Demo" from the MapServer website. Sounds > like > > that was the wrong to go :c) > > Absolutely. The demo on the MapServer site is using a layer that is > generally not needed in any application -- at least not until you're > looking for something that can be deployed without a MapServer 'server' > in the mix. > > Benefits of GeoMoose (Main ones) for the normal user. > > > > * Fast (because of MapServer tuning.). Smaller footprint > > The dem on the MapServer main site seems pretty fast to me. Much faster > than any non-cached demo I've seen. Are you saying that GeoMoose has > tuned MapServer t such an extent that it is faster to render images than > it is to serve pre-rendered tiles that demonstrate MapServer's rendering > skills? > > > * Handles many layers with ease. The limit is the client hardware, > > and the control is given to the user as to how many to display. > > This is a GeoMoose benefit over other client software, but I don't see > how it makes a better demo of MapServer's rendering capabilities. > > > * The publishing of the data can be distributed, down to the layer > > level, including the contents of the popups. Each layer can be > > managed separately without consequence to the rest of the > > interface, if it breaks, only that layer is not available. > > This is a GeoMoose benefit over other client software, but I don't see > how it makes a better demo of MapServer's rendering capabilities. > > > * More interface user Control, layer fading, on/off, stacking order, > > popup on/off. > > This is a GeoMoose benefit over other client software, but I don't see > how it makes a better demo of MapServer's rendering capabilities. > > > * And it's all a client lib as well, just like Openlayers. Closer > > than you think. > > This is a GeoMoose benefit over other client software, but I don't see > how it makes a better demo of MapServer's rendering capabilities. > > > * If I had to teach MapServer request strategies, I would use > > MapServer + GeoMoose + Firebug to do it. GeoMoose uses the CGI > > functionality for images, imagemaps, and querying. > > I don't knwo what you mean by this, so I can't comment on it. > > > Not that I'm trying to defend GeoMoose. Just wanted to know how to > join > > in on popularizing MapServer. > > GeoMoose has many advantages over other client software, if you are > demonstrating client software. The MapServer homepage should be a quick, > simple, easy to use demonstration of MapServer capabilties -- in this > case, a pretty map. I can see an argument that the MapSerer homepage > should use a static image instead, but I think that is a less effective > demonstration of the pretty rendering. I do not think that changing from > OpenLayers givves a better demonstration of *MapServer*'s rendering > capabilties, and I can't imagine a more effective demo could be created > against static content. > > > Also, I think our definitions of RESTful are slightly different. I > > would say that GeoMoose is very (VERY) ReSTfully designed. > > ReST is "Restructured Text", the format used by the MapServer > documentation. > > Regards, > -- > Christopher Schmidt > MetaCarta > > _______________________________________________ > 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 bean at warbaby.com Wed Jan 14 10:40:33 2009 From: bean at warbaby.com (bean at warbaby.com) Date: Wed, 14 Jan 2009 11:40:33 -0700 Subject: [mapserver-users] GPX format supported? Message-ID: Can you post your gpx file (or a sample file that demonstrates the problem)? David. Hi David, Thanks again for helping me. I looked through ms_error log and discovered that the file is now loading, I include the error file as an attachment. The layer only loads when STATUS is DEFAULT. This concerns me going forward as I want the user to control the display of this layer. The problem I'm having is displaying that load. Any thing added to the layer file below the DEBUG statement (CLASS, LABEL, SYMBOL etc) causes the layer file to fail to parse. Without symbols or labels loading the GPX file does me no good. I went through the entire mapfile three times yesterday looking for potential errors that could fall through to this layer. I imagine I will do the same today. I am concerned that I just don't understand the needs of this layer structure. I have not been able to find a single example of a working local GPX layer. Bean, This Layer file loads: LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'waypoints' STATUS DEFAULT DEBUG 5 END END This Layer file fails at CLASS: LAYER NAME 'GPS' TYPE POINT CONNECTIONTYPE OGR CONNECTION '/Applications/MAMP/d/DATA/NonGrassFiles/GPX/gpsbabel_output.gpx' DATA 'waypoints' STATUS DEFAULT DEBUG 5 CLASS STYLE SYMBOL 'CIRCLE' SIZE 3 OUTLINECOLOR 0 0 0 COLOR 106 7 182 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms_error.rtf Type: application/octet-stream Size: 4815 bytes Desc: not available URL: From jmckenna at gatewaygeomatics.com Wed Jan 14 10:52:02 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 14 Jan 2009 13:52:02 -0500 Subject: [mapserver-users] GPX format supported? In-Reply-To: References: Message-ID: <496E3452.6080006@gatewaygeomatics.com> bean at warbaby.com wrote: > I have not been able to find a single example > of a working local GPX layer. > This page contains my layer (at the bottom) that I used yesterday for testing: http://www.mapserver.org/input/vector/gpx.html I grabbed the gpx file from here I believe: http://www.openstreetmap.org/user/holdend/traces/180736 -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From bean at warbaby.com Wed Jan 14 11:13:55 2009 From: bean at warbaby.com (bean at warbaby.com) Date: Wed, 14 Jan 2009 12:13:55 -0700 Subject: [mapserver-users] GPX format supported? Message-ID: Wow Jeff, Fast work and another incredible resource for the community. Thank you. We are all very blessed to have such an active and giving community for mapserver. I will work with your example today. One small suggestion. The packages you suggest for those without OGR GPX support are one alternative. Another would be to compile OGR with expat. Thanks again for your great work, bean >I have not been able to find a single example of a working local GPX layer. > This page contains my layer (at the bottom) that I used yesterday for testing: http://www.mapserver.org/input/vector/gpx.html I grabbed the gpx file from here I believe: http://www.openstreetmap.org/user/holdend/traces/180736 -jeff From Bob.Bistrais at maine.gov Wed Jan 14 14:05:02 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 14 Jan 2009 17:05:02 -0500 Subject: [mapserver-users] Strange symbols with WMS in ArcGIS Message-ID: <4EFF8BB964547748A07CA32961810C0412C48270@SOM-TEAQASMAIL1.som.w2k.state.me.us> This is probably more of an ArcGIS question than MapServer, but perhaps somebody here has an idea. I am building a WMS-enabled service with MapServer and have been testing it out. I am using a True Type Font for the highway route shields, the .ttf file is located in the Windows/Fonts directory on the server. As expected, the service looks fine when consumed by MapServer and Ka-Map. It also looks fine when using the open source QuantumGIS (QGIS). But when the WMS service is consumed by ArcGIS, the Interstate Highway shields look like ampersands (the "&" symbol). I have not been able to determine why the symbols look correct by some consumers, but not ArcGIS. Does anyone have any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Jan 14 15:13:58 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 14 Jan 2009 17:13:58 -0600 Subject: [mapserver-users] Strange symbols with WMS in ArcGIS In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C48270@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C48270@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <496E1D58.5157.008F.0@dnr.state.mn.us> Very weird and I'm not sure it's even possible. That would mean ArcGIS is somehow affecting the *rendering* performed by MapServer. I'd start with capturing the exact WMS requests being created by ArcGIS... Steve >>> On 1/14/2009 at 4:05 PM, in message <4EFF8BB964547748A07CA32961810C0412C48270 at SOM-TEAQASMAIL1.som.w2k.state.me.us>, "Bistrais, Bob" wrote: > This is probably more of an ArcGIS question than MapServer, but perhaps > somebody here has an idea. I am building a WMS-enabled service with > MapServer and have been testing it out. I am using a True Type Font for > the highway route shields, the .ttf file is located in the Windows/Fonts > directory on the server. > > As expected, the service looks fine when consumed by MapServer and > Ka-Map. It also looks fine when using the open source QuantumGIS > (QGIS). But when the WMS service is consumed by ArcGIS, the Interstate > Highway shields look like ampersands (the "&" symbol). I have not been > able to determine why the symbols look correct by some consumers, but > not ArcGIS. Does anyone have any suggestions? From Bob.Bistrais at maine.gov Wed Jan 14 15:20:21 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 14 Jan 2009 18:20:21 -0500 Subject: [mapserver-users] Strange symbols with WMS in ArcGIS In-Reply-To: <496E1D58.5157.008F.0@dnr.state.mn.us> References: <4EFF8BB964547748A07CA32961810C0412C48270@SOM-TEAQASMAIL1.som.w2k.state.me.us> <496E1D58.5157.008F.0@dnr.state.mn.us> Message-ID: <4EFF8BB964547748A07CA32961810C0412C48272@SOM-TEAQASMAIL1.som.w2k.state.me.us> Thanks Steve. I should also note that on Localhost, I can consume the WMS service in ArcGIS and the shields look OK! It's on the test server that the strange symbols show up. I verified that the .ttf file is located in the C:\Windows\fonts directory. -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Wednesday, January 14, 2009 6:14 PM To: mapserver-users at lists.osgeo.org; Bistrais, Bob Subject: Re: [mapserver-users] Strange symbols with WMS in ArcGIS Very weird and I'm not sure it's even possible. That would mean ArcGIS is somehow affecting the *rendering* performed by MapServer. I'd start with capturing the exact WMS requests being created by ArcGIS... Steve >>> On 1/14/2009 at 4:05 PM, in message <4EFF8BB964547748A07CA32961810C0412C48270 at SOM-TEAQASMAIL1.som.w2k.state. me.us>, "Bistrais, Bob" wrote: > This is probably more of an ArcGIS question than MapServer, but > perhaps somebody here has an idea. I am building a WMS-enabled > service with MapServer and have been testing it out. I am using a > True Type Font for the highway route shields, the .ttf file is located > in the Windows/Fonts directory on the server. > > As expected, the service looks fine when consumed by MapServer and > Ka-Map. It also looks fine when using the open source QuantumGIS > (QGIS). But when the WMS service is consumed by ArcGIS, the > Interstate Highway shields look like ampersands (the "&" symbol). I > have not been able to determine why the symbols look correct by some > consumers, but not ArcGIS. Does anyone have any suggestions? From mitchelljj98 at gmail.com Wed Jan 14 22:42:14 2009 From: mitchelljj98 at gmail.com (John Mitchell) Date: Thu, 15 Jan 2009 01:42:14 -0500 Subject: [mapserver-users] How do you configure a server to have two or more different MapServers running on it? Message-ID: Hi, How do you configure a server to have two or more different MapServers running on it? Thanks, John -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at terrestris.de Thu Jan 15 00:13:49 2009 From: adams at terrestris.de (Till Adams) Date: Thu, 15 Jan 2009 09:13:49 +0100 Subject: [mapserver-users] How do you configure a server to have two or more different MapServers running on it? In-Reply-To: References: Message-ID: <496EF03D.8070005@terrestris.de> John Mitchell schrieb: > Hi, > > How do you configure a server to have two or more different MapServers > running on it? > > Thanks, > > John > > -- > John J. Mitchell > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > John, no problem, if you have one (physical or virtual) server and one cgi-dir just give the mapservers different namens e.g. "mapserv52", "mapserv50", ... If there is just one server (and one CPU) keep in mind, that every mapserver-thread runs on it's own, so there is no difference between having two mapserv's in one cgi-dir or just one, which wil be started twice. Regards, Till -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From boommonge at gmail.com Thu Jan 15 01:11:02 2009 From: boommonge at gmail.com (LMonge) Date: Thu, 15 Jan 2009 01:11:02 -0800 Subject: [mapserver-users] How to develop in Mapserver? Message-ID: <390b64100901150111h707cbde0n39ea5f8b53673ad6@mail.gmail.com> Hello I want to develop and adapt an algorithm to the source code of MapServer, but I don't have idea what tool I need to develop in the mapserver. For example: I want to verify step by step that my algorithm run!, verify errors in declarations and fuctions, compile my algorithm with the source code of mapserver and check my algorithm with the define values of .MAPFILE Goal: Verify operation of the algorithm with data of the (.MAP) <-- TOOL-->Compile and run the source code of mapserver and my algorithm I hope somebody help me!, and can write me some good tips pleasee My best regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Thu Jan 15 02:05:17 2009 From: mitchelljj98 at gmail.com (John Mitchell) Date: Thu, 15 Jan 2009 05:05:17 -0500 Subject: [mapserver-users] What is the size limit in KB for a map file and how can I increase this limit? Message-ID: Hi, What is the size limit in KB for a map file and how can I increase this limit? Thanks, John -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Thu Jan 15 02:06:12 2009 From: srph124 at yahoo.com (Saka Royban) Date: Thu, 15 Jan 2009 02:06:12 -0800 (PST) Subject: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? Message-ID: <749300.75708.qm@web58201.mail.re3.yahoo.com> Hi everyone. i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn postgis along with its data. but there is a problem i got this error in first attempt to retrieve data from postgis: msDrawMap(): Image handling error. Failed to draw layer named 'bc_municipality'. prepare_database(): Query error. Error declaring cursor: ERROR: column "oid" does not exist LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from bc_municipality WHERE the_geom && setSRID('BOX3D(458426.1 260651.497368421,1943216.4 1373313.90263158)'::BOX3D, find_srid('','bc_municipality ','the_geom') ) msPOSTGISLayerRetrievePGVersion(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for (position('on' in version()) - 13)) i don't know what causes the problem although it sounds easy. THX -----Inline Attachment Follows----- _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Thu Jan 15 02:32:52 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 15 Jan 2009 11:32:52 +0100 (CET) Subject: [mapserver-users] Is there a way to add a single click zoom button In-Reply-To: <1231954440585-2158109.post@n2.nabble.com> References: <1231954440585-2158109.post@n2.nabble.com> Message-ID: <53461.89.97.235.106.1232015572.squirrel@localhost.localdomain> Yes, but using some javascript in template html. if you want to zoomin 2x: called from a button control: assuming that you have an hidden field named 'imgxy' and a control (select, radio, another hidden fiedl...) named 'zoom' in a form named 'mapserv'. ciao .......................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Gennaio 14, 2009 18:34, boesiii wrote: > > by just using the map file and html template file. > -- > View this message in context: > http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2158109.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 Neil.Young at Freenet.de Thu Jan 15 02:50:40 2009 From: Neil.Young at Freenet.de (Neil.Young) Date: Thu, 15 Jan 2009 11:50:40 +0100 Subject: [mapserver-users] MS4W and map tiles Message-ID: <496F1500.2060708@Freenet.de> Hi, I managed to connect MS42 with SQL Server 2008, so I can consume on-the-fly map tiles in either VE or GoogleMaps. Is there a way to use MS4W locally with some script to generate the map tiles w/o having to invoke the webserver? Regards From Andreas.Eichner at sid.sachsen.de Thu Jan 15 02:58:12 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 15 Jan 2009 11:58:12 +0100 Subject: AW: [mapserver-users] newbie: Error in first atttempt to use postgiswith mapserver? References: <749300.75708.qm@web58201.mail.re3.yahoo.com> Message-ID: You don't have a column "oid" in your table. May be this is because OIDs are disabled. I assume you (or the workshop) tries to use something like "...USING UNIQUE oid..." in the DATA definition. You can create a integer column in the table, fill it with a sequence and use that in the DATA definition in your map file. For example: BEGIN; ALTER TABLE bc_municipality ADD id; CREATE SEQUENCE bc_municipality_id_seq OWNED BY bc_municipality.id; UPDATE bc_municipality SET id = nextval('bc_municipality_id_seq'::regclass); COMMIT; ________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Saka Royban Gesendet: Donnerstag, 15. Januar 2009 11:06 An: MapServer Betreff: [mapserver-users] newbie: Error in first atttempt to use postgiswith mapserver? Hi everyone. i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn postgis along with its data. but there is a problem i got this error in first attempt to retrieve data from postgis: msDrawMap(): Image handling error. Failed to draw layer named 'bc_municipality'. prepare_database(): Query error. Error declaring cursor: ERROR: column "oid" does not exist LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from bc_municipality WHERE the_geom && setSRID('BOX3D(458426.1 260651.497368421,1943216.4 1373313.90263158)'::BOX3D, find_srid('','bc_municipality ','the_geom') ) msPOSTGISLayerRetrievePGVersion(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for (position('on' in version()) - 13)) i don't know what causes the problem although it sounds easy. THX -----Inline Attachment Follows----- _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From aditi.kolstudygroup at gmail.com Thu Jan 15 03:18:20 2009 From: aditi.kolstudygroup at gmail.com (aditigroup project) Date: Thu, 15 Jan 2009 03:18:20 -0800 Subject: [mapserver-users] aditigroup project wants to chat Message-ID: ----------------------------------------------------------------------- aditigroup project wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-7fb7a1abad-8c13487d20-a5299b278edf22fb You'll need to click this link to be able to chat with aditigroup project. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with aditigroup project, visit: http://mail.google.com/mail/a-7fb7a1abad-8c13487d20-5b727ad4fb Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into "conversations" - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client Gmail and Google Talk are still in beta. We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). From vtammineni at roulacglobal.com Thu Jan 15 03:31:17 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 15 Jan 2009 17:01:17 +0530 Subject: [mapserver-users] What is the size limit in KB for a map file and how can I increase this limit? In-Reply-To: References: Message-ID: <00f801c97704$c95b7b00$5c127100$@com> Hi You can you different mapfiles for different layer by using INCLUDE property. So that map file looks simple. You have to call this property in Main mapfie. Exp :- INCLUDE "Test.map" I hope this helps you .. Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of John Mitchell Sent: Thursday, January 15, 2009 3:35 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] What is the size limit in KB for a map file and how can I increase this limit? Hi, What is the size limit in KB for a map file and how can I increase this limit? Thanks, John -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Thu Jan 15 03:33:35 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 15 Jan 2009 17:03:35 +0530 Subject: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? In-Reply-To: <749300.75708.qm@web58201.mail.re3.yahoo.com> References: <749300.75708.qm@web58201.mail.re3.yahoo.com> Message-ID: <010301c97705$1be516b0$53af4410$@com> Hi, I think OID column may not be with your table.Can you check that .. Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saka Royban Sent: Thursday, January 15, 2009 3:36 PM To: MapServer Subject: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? Hi everyone. i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn postgis along with its data. but there is a problem i got this error in first attempt to retrieve data from postgis: msDrawMap(): Image handling error. Failed to draw layer named 'bc_municipality'. prepare_database(): Query error. Error declaring cursor: ERROR: column "oid" does not exist LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from bc_municipality WHERE the_geom && setSRID('BOX3D(458426.1 260651.497368421,1943216.4 1373313.90263158)'::BOX3D, find_srid('','bc_municipality ','the_geom') ) msPOSTGISLayerRetrievePGVersion(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for (position('on' in version()) - 13)) i don't know what causes the problem although it sounds easy. THX -----Inline Attachment Follows----- _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From hrodriguez at siscat.com.ar Thu Jan 15 03:34:40 2009 From: hrodriguez at siscat.com.ar (Rodriguez, Heraldo) Date: Thu, 15 Jan 2009 09:34:40 -0200 Subject: [mapserver-users] Java mapscript Crash in Ubuntu Hardy Message-ID: <296E5F9B6BB1C445BDDC9C94FC83835E1F4BB9@ZEUS-Exchg2k3.sc.com> Hi everyone, We are having problems using a java mapscript application in Ubuntu hardy Heron ( server edition). After calling the drawQuery method the VM crashes with the following error message An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xb1af4d6d, pid=16666, tid=2982337424 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_15-b04 mixed mode, sharing) # Problematic frame: # C [libmapscript.so+0xa4d6d] msPolylineLabelPath+0x74d This application is already working in a debian etch server with same vm and mapserver version . Differences are postgres 8.1 instead of postgres 8.3 and some libraries such as swig 1.3.22 vs 1.3.33 We tested upgrading to mapserver 5.2.1 with same results. Thanks in advance . Heraldo Additional Info SO Ubuntu 8.04 Kernel 2.6.24-22 JVM VERSION jdk-1_5_0_15 MAPSERVER VERSION 5.2.0 Configure setting ./configure --with-postgis=/usr/bin/pg_config --enable-debug --with-threads --without-pdf --without-tiff --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config --with-freetype=/usr/bin --with-png=/usr/bin --with-libiconv=/usr/bin/iconv --without-xpm --with-zlib=/usr --without-eppl --with-agg=/usr/local --without-mygis --with-gd=/usr LOG POST ( configure) ## --------- ## ## Platform. ## ## --------- ## hostname = mapserver uname -m = i686 uname -r = 2.6.24-22 uname -s = Linux uname -v = #1 SMP Mon Nov 24 19:55:07 UTC 2008 /usr/bin/uname -p = unknown /bin/uname -X = unknown configure:1955: checking for gcc configure:1971: found /usr/bin/gcc configure:1982: result: gcc configure:2220: checking for C compiler version configure:2227: gcc --version >&5 gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Lic. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TEL: 54-11-4326-4002 int 255 Dpto. Desarrollo Sistemas Catastrales S.A -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1283 bytes Desc: image001.jpg URL: From szekerest at gmail.com Thu Jan 15 04:47:32 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 15 Jan 2009 13:47:32 +0100 Subject: [mapserver-users] MS4W and map tiles In-Reply-To: <496F1500.2060708@Freenet.de> References: <496F1500.2060708@Freenet.de> Message-ID: Hi, You can use mapscript (PHP/Java/C#/Python etc.) to incorporate the MapServer functionality in your application. For more information refer to: http://www.mapserver.org/mapscript/index.html Best regards, Tamas 2009/1/15 Neil.Young > Hi, > I managed to connect MS42 with SQL Server 2008, so I can consume on-the-fly > map tiles in either VE or GoogleMaps. Is there a way to use MS4W locally > with some script to generate the map tiles w/o having to invoke the > webserver? > > Regards > > _______________________________________________ > 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 szekerest at gmail.com Thu Jan 15 04:58:07 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 15 Jan 2009 13:58:07 +0100 Subject: [mapserver-users] How to develop in Mapserver? In-Reply-To: <390b64100901150111h707cbde0n39ea5f8b53673ad6@mail.gmail.com> References: <390b64100901150111h707cbde0n39ea5f8b53673ad6@mail.gmail.com> Message-ID: Hi, Do you have an example where you'd like to plug your code into the mapserver codebase, what kind of algorithm you'd like to implement? The debugging options may be specific to the platform and the compiler/debugger beilg used. For example you could compile mapserver with debug info by using MSVC and setting up the debug option in the nmake.opt file. Best regards, Tamas 2009/1/15 LMonge > Hello > > I want to develop and adapt an algorithm to the source code of MapServer, > but I don't have idea what tool I need to develop in the mapserver. For > example: I want to verify step by step that my algorithm run!, verify errors > in declarations and fuctions, compile my algorithm with the source code of > mapserver and check my algorithm with the define values of .MAPFILE > > > > > Goal: > > Verify operation of the algorithm with data of the (.MAP) <-- TOOL-->Compile and run the source code of mapserver and my algorithm > > > > I hope somebody help me!, and can write me some good tips pleasee > > > > My best regards > > > _______________________________________________ > 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 geotech.sarel at gmail.com Thu Jan 15 05:08:16 2009 From: geotech.sarel at gmail.com (Sarel Coetzer) Date: Thu, 15 Jan 2009 15:08:16 +0200 Subject: [mapserver-users] JAVA & Tomcat Message-ID: <89f54d350901150508x7b54e12et8e7b8528baf33fcf@mail.gmail.com> Hi Mapserver is my favorite app and want to stay with mapserver in a new project we are bout to undertake. The stack includes: Tomcat server and JAVA., no browser. The JAVA appp will apparently emulate a browser. Sorry I don't have more info than this. Will mapserver function on this stack? I know it will require more searching but theirmight be someone that might want to share similar experience. Regards Sarel -- http://sarelgis.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From simone.frigerio at unimib.it Thu Jan 15 05:38:38 2009 From: simone.frigerio at unimib.it (simone.frigerio) Date: Thu, 15 Jan 2009 14:38:38 +0100 Subject: [mapserver-users] error with OGR in mapfile In-Reply-To: <20090115125810.DAF2DE013AC@lists.osgeo.org> References: <20090115125810.DAF2DE013AC@lists.osgeo.org> Message-ID: I want to connect in map file a raster that is present in the geodatabase. The layer was so written: LAYER NAME "shadow_exp1" TYPE RASTER DATA "shadow_exp1" TEMPLATE "ttt" CONNECTIONTYPE OGR CONNECTION "riskcity.mdb" METADATA "force_imagetype" "jpeg" END END The failure is linked to CONNECTIONTYPE, I suppose. OGR is the string to retrieve remote data, but probably for vectorial type. Should you indicate me the string to raster connection? Thanks Simone From Steve.Lime at dnr.state.mn.us Thu Jan 15 06:30:26 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 15 Jan 2009 08:30:26 -0600 Subject: [mapserver-users] What is the size limit in KB for a map file andhow can I increase this limit? Message-ID: <496EF4220200008F0001FA93@co5.dnr.state.mn.us> John: There is no limit. Depending on what version you're referring too there might be limits on the number of certain types of objects. Most of those limits were removed in the 5.0 release. Why do you think you're running into a size limit? Steve >>> John Mitchell 01/15/09 4:06 AM >>> Hi, What is the size limit in KB for a map file and how can I increase this limit? Thanks, John -- John J. Mitchell From Steve.Lime at dnr.state.mn.us Thu Jan 15 07:02:35 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 15 Jan 2009 09:02:35 -0600 Subject: [mapserver-users] Strange symbols with WMS in ArcGIS Message-ID: <496EFBAB0200008F0001FAA6@co5.dnr.state.mn.us> I would assume then that all maps coming off your test machine would have the goofy symbols then. I'd debug using plain mapserv cgi (mode=map) or with shp2img. Check to make sure the fonts you're referencing in each environment are identical. Perhaps you're not referencing the symbol you thought you were? Steve >>> "Bistrais, Bob" 01/14/09 5:24 PM >>> Thanks Steve. I should also note that on Localhost, I can consume the WMS service in ArcGIS and the shields look OK! It's on the test server that the strange symbols show up. I verified that the .ttf file is located in the C:\Windows\fonts directory. -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Wednesday, January 14, 2009 6:14 PM To: mapserver-users at lists.osgeo.org; Bistrais, Bob Subject: Re: [mapserver-users] Strange symbols with WMS in ArcGIS Very weird and I'm not sure it's even possible. That would mean ArcGIS is somehow affecting the *rendering* performed by MapServer. I'd start with capturing the exact WMS requests being created by ArcGIS... Steve >>> On 1/14/2009 at 4:05 PM, in message <4EFF8BB964547748A07CA32961810C0412C48270 at SOM-TEAQASMAIL1.som.w2k.state. me.us>, "Bistrais, Bob" wrote: > This is probably more of an ArcGIS question than MapServer, but > perhaps somebody here has an idea. I am building a WMS-enabled > service with MapServer and have been testing it out. I am using a > True Type Font for the highway route shields, the .ttf file is located > in the Windows/Fonts directory on the server. > > As expected, the service looks fine when consumed by MapServer and > Ka-Map. It also looks fine when using the open source QuantumGIS > (QGIS). But when the WMS service is consumed by ArcGIS, the > Interstate Highway shields look like ampersands (the "&" symbol). I > have not been able to determine why the symbols look correct by some > consumers, but not ArcGIS. Does anyone have any suggestions? From russell at flora.ca Thu Jan 15 07:32:11 2009 From: russell at flora.ca (Russell McOrmond) Date: Thu, 15 Jan 2009 10:32:11 -0500 (EST) Subject: [mapserver-users] Mapserver,RASTER, GDAL & SDE Message-ID: In tracking why our connections to SDE for Raster wasn't working, I noticed that the same string for gdal_translate doesn't work eithor with how we are buildingthings. I know this is a GDAL question and not mapserver, but I hope folks here may know the magic as this may turn out to be similar to my iconv.h build problem. Type of command line I am trying to make work: gdal_translate "SDE:ndevsde_xdm,5150,sde,username,password,PLANT_XDATA.BIO_CA_PLANT_HARDINESS_2000,RASTER" a.tif Equivalent in the mapfile: CONNECTIONTYPE SDE DATA 'SDE:ndevsde_xdm,5150,sde,username,password,PLANT_XDATA.BIO_CA_PLANT_HARDINESS_2000,RASTER' I note that mapserver simply makes a call to GDALOpen() for this connection type, which is why I'm focusing looking at how the GDAL library is built/etc. Here is how I'm compiling: bash-3.00$ sh config.status --recheck running /bin/sh ./configure --prefix=/server/ndevl18/apache-2.2.9 --with-xerces=/server/ndevl18/apache-2.2.9 --with-sde=/server/ndevl18/arcsde-9.2sp5/sdeexe92/ --with-sde-version=92 --with-oci=yes --with-expat=/server/ndevl18/apache-2.2.9 --with-geos=/server/ndevl18/apache-2.2.9/bin/geos-config .. configure: checking whether we should include ESRI SDE support... checking for main in -lpthread... yes checking for main in -lsocket... no checking for main in -ldl... yes using ESRI SDE from /server/ndevl18/arcsde-9.2sp5/sdeexe92/. ... SDE support: yes ... After config runs I have a GDALmake.opt file which contains: ... # # SDE # HAVE_SDE = yes SDE_LIB = -L/server/ndevl18/arcsde-9.2sp5/sdeexe92//lib -lsde -lpe -lsg -lpthread -ldl SDE_INC = -I/server/ndevl18/arcsde-9.2sp5/sdeexe92//include When I build everything and try what I've seen work elsewhere I get: ./apps/gdal_translate "SDE:ndevsde_xdm,5150,sde,username,password,PLANT_XDATA.BIO_CA_PLANT_HARDINESS_2000,RASTER" a.tif ERROR 4: `SDE:ndevsde_xdm,5150,sde,username,password,PLANT_XDATA.BIO_CA_PLANT_HARDINESS_2000,RASTER' does not exist in the file system, and is not recognised as a supported dataset name. GDALOpen failed - 4 `SDE:ndevsde_xdm,5150,sde,username,password,PLANT_XDATA.BIO_CA_PLANT_HARDINESS_2000,RASTER' does not exist in the file system, and is not recognised as a supported dataset name. Quick thoughts? Is there something I've thus far been missing? Should I be asking in the GDAL lists instead? Note: All this building/testing/etc are on RHEL4 machines. We are trying to create a build environment where we include the libraries we need, and are less dependant on the OS library versions/etc. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From boesiii at yahoo.com Thu Jan 15 08:01:09 2009 From: boesiii at yahoo.com (boesiii) Date: Thu, 15 Jan 2009 08:01:09 -0800 (PST) Subject: [mapserver-users] Problem with north arrow image not showing up Message-ID: <1232035269762-2163246.post@n2.nabble.com> I placed the code below into my html template but for some reason the image will not display. In my map file I have IMAGETYPE set to GIF. I tried to copy the image to any folder I can think of but it still will not display. What could be the problem? ../images/north.gif -- View this message in context: http://n2.nabble.com/Problem-with-north-arrow-image-not-showing-up-tp2163246p2163246.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Thu Jan 15 08:04:31 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 15 Jan 2009 11:04:31 -0500 Subject: [mapserver-users] Mapserver,RASTER, GDAL & SDE In-Reply-To: References: Message-ID: <496F5E8F.2020107@pobox.com> Russell, I have only limited familiarity with the GDAL SDE driver, but I thought I might mention: 1) If you added the SDE support to your configure after a preliminary build of GDAL make sure you do a "make clean" in the source tree after the configure and before rebuilding with SDE. 2) Confirm that you are actually installing and replacing the old libgdal.so. Check the date, or even use locate to confirm you know which libgdal's exist on the system. 3) Try "gdalinfo --format sde" to confirm that the SDE driver is built into the GDAL you are using. It should report a few details about the driver if it is enabled, otherwise it will report there is no such driver. 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 Jan 15 08:08:42 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 15 Jan 2009 11:08:42 -0500 Subject: [mapserver-users] error with OGR in mapfile In-Reply-To: References: <20090115125810.DAF2DE013AC@lists.osgeo.org> Message-ID: <496F5F8A.3090507@pobox.com> simone.frigerio wrote: > > I want to connect in map file a raster that is present in the > geodatabase. > The layer was so written: > > LAYER > NAME "shadow_exp1" > TYPE RASTER > DATA "shadow_exp1" > TEMPLATE "ttt" > CONNECTIONTYPE OGR > CONNECTION "riskcity.mdb" > METADATA > "force_imagetype" "jpeg" > END > END > > The failure is linked to CONNECTIONTYPE, I suppose. OGR is the > string to retrieve remote data, but probably for vectorial type. > Should you indicate me the string to raster connection? Simone, GDAL/OGR has no support for rasters in geodatabases so I believe you are out of luck. 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 dnr.state.mn.us Thu Jan 15 08:13:38 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 15 Jan 2009 10:13:38 -0600 Subject: [mapserver-users] Problem with north arrow image not showing up Message-ID: <496F0C560200008F0001FAD3@co5.dnr.state.mn.us> Assuming you're talking about displaying the image in a page generated by MapServer CGI you won't be able to use relative links like that. The browser will interpret relative paths based on /cgi-bin. If you place your north arrow on your website and reference with a fully qualified path (e.g. /images/north.gif) then it should work. The IMAGETYPE should have no bearing on this... Steve >>> boesiii 01/15/09 10:02 AM >>> I placed the code below into my html template but for some reason the image will not display. In my map file I have IMAGETYPE set to GIF. I tried to copy the image to any folder I can think of but it still will not display. What could be the problem? ../images/north.gif -- View this message in context: http://n2.nabble.com/Problem-with-north-arrow-image-not-showing-up-tp2163246p2163246.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 dave.potts at pinan.co.uk Thu Jan 15 08:47:07 2009 From: dave.potts at pinan.co.uk (Dave Potts) Date: Thu, 15 Jan 2009 16:47:07 +0000 Subject: [mapserver-users] JAVA & Tomcat In-Reply-To: <89f54d350901150508x7b54e12et8e7b8528baf33fcf@mail.gmail.com> References: <89f54d350901150508x7b54e12et8e7b8528baf33fcf@mail.gmail.com> Message-ID: <496F688B.3080401@pinan.co.uk> Sarel Coetzer wrote: You would have to enabled the "cgi " support in tomcat for this to work, otherwise there should not be a problem. By default Tomcat disabled support for cgi and ssi on the grounds of secuirty. The method for turning on cgi support depends on the version of Tomcat. D. > Hi > > Mapserver is my favorite app and want to stay with mapserver in a new > project we are bout to undertake. > > The stack includes: Tomcat server and JAVA., no browser. The JAVA appp > will apparently emulate a browser. Sorry I don't have more info than this. > > Will mapserver function on this stack? > > I know it will require more searching but theirmight be someone that > might want to share similar experience. > > > Regards > Sarel > -- > http://sarelgis.blogspot.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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: dave_potts.vcf Type: text/x-vcard Size: 92 bytes Desc: not available URL: From rafaelchacon at gmail.com Thu Jan 15 08:51:17 2009 From: rafaelchacon at gmail.com (rafael) Date: Thu, 15 Jan 2009 08:51:17 -0800 (PST) Subject: [mapserver-users] Problems after compiling mapserver Message-ID: <1232038277960-2163554.post@n2.nabble.com> Hi, I read the instructions to compile and downloads all the needed libraries and packages. I made the configure with all the options I need and everything seems fine. After that I did the make and it generates the mapserv bin. But when I try to use it is throws the following error: ./mapserv: error while loading shared libraries: libgdal.so.1: Cannot open shared object file: No such file or directory. Why could this happen?? -- View this message in context: http://n2.nabble.com/Problems-after-compiling--mapserver-tp2163554p2163554.html Sent from the Mapserver - User mailing list archive at Nabble.com. From russell at flora.ca Thu Jan 15 09:10:45 2009 From: russell at flora.ca (Russell McOrmond) Date: Thu, 15 Jan 2009 12:10:45 -0500 (EST) Subject: [mapserver-users] Problems after compiling mapserver In-Reply-To: <1232038277960-2163554.post@n2.nabble.com> References: <1232038277960-2163554.post@n2.nabble.com> Message-ID: On Thu, 15 Jan 2009, rafael wrote: > ./mapserv: error while loading shared libraries: libgdal.so.1: Cannot open > shared object file: No such file or directory. Is where you built and installed libgdal on your library path? IE: local environment variable LD_LIBRARY_PATH or listed somewhere within /etc/ld.so.conf -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From rafaelchacon at gmail.com Thu Jan 15 09:12:23 2009 From: rafaelchacon at gmail.com (=?ISO-8859-1?Q?Rafael_chac=F3n?=) Date: Fri, 16 Jan 2009 12:42:23 +1930 Subject: [mapserver-users] Problems after compiling mapserver In-Reply-To: <1232038277960-2163554.post@n2.nabble.com> References: <1232038277960-2163554.post@n2.nabble.com> Message-ID: <128785280901150912g477a2detb3239fcc658438e8@mail.gmail.com> I just find the answer... The problem is that mapserv can't find libgdal even though is installed.If you are in debian and compile libgdal by hand you can do this doing the following: vim /etc/ld.so.conf.d/i486-linux-gnu.con add /usr/local/lib run ldconfig,, That should fix it. On Fri, Jan 16, 2009 at 12:21 PM, rafael wrote: > > Hi, I read the instructions to compile and downloads all the needed > libraries > and packages. I made the configure with all the options I need and > everything seems fine. After that I did the make and it generates the > mapserv bin. But when I try to use it is throws the following error: > > ./mapserv: error while loading shared libraries: libgdal.so.1: Cannot open > shared object file: No such file or directory. > > Why could this happen?? > -- > View this message in context: > http://n2.nabble.com/Problems-after-compiling--mapserver-tp2163554p2163554.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 > -- Rafael Chacon, "El hombre es la medida de todas las cosas". Protagoras -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Thu Jan 15 09:31:32 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 15 Jan 2009 12:31:32 -0500 Subject: [mapserver-users] Junk text field values for ArcSDE layers Message-ID: Hello I am having some issue with attribute (field) values for ArcSDE or Oracle Spatial layers. All text field values are becoming junk characters (after calling queryByRect() method). I am using C# map script and VS 2008. This is happening for text fields. Number and date fields seems to be fine. Is there any special encoding I need to handle in .Net when values are retrieved (shapeObj.values)? Same field values looks fine in ArcIMS and ArcMap. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Jan 15 09:50:31 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 15 Jan 2009 11:50:31 -0600 Subject: [mapserver-users] error with OGR in mapfile In-Reply-To: <496F5F8A.3090507@pobox.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA13B@s-sp22.pca.state.mn.us> Simon, I believe that in the case of an ESRI Personal Geodatabase (Access db), the rasters are not actually stored in the database. The data that creates the image catalog is in the database, but the image files are actually just stored on the filesystem. If have enough information about each individual image, you should just be able to pull them into MapServer using a raster layer. Once you create a MapServer raster layer to display one of the images to confirm that this works, you would likely want to create a tileindex shapefile so you could put all of your images in the same layer. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Thursday, January 15, 2009 10:09 AM To: simone.frigerio Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] error with OGR in mapfile simone.frigerio wrote: > > I want to connect in map file a raster that is present in the > geodatabase. > The layer was so written: > > LAYER > NAME "shadow_exp1" > TYPE RASTER > DATA "shadow_exp1" > TEMPLATE "ttt" > CONNECTIONTYPE OGR > CONNECTION "riskcity.mdb" > METADATA > "force_imagetype" "jpeg" > END > END > > The failure is linked to CONNECTIONTYPE, I suppose. OGR is the > string to retrieve remote data, but probably for vectorial type. > Should you indicate me the string to raster connection? Simone, GDAL/OGR has no support for rasters in geodatabases so I believe you are out of luck. 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 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Thu Jan 15 10:17:02 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 15 Jan 2009 13:17:02 -0500 Subject: [mapserver-users] Strange symbols with WMS in ArcGIS In-Reply-To: <496EFBAB0200008F0001FAA6@co5.dnr.state.mn.us> References: <496EFBAB0200008F0001FAA6@co5.dnr.state.mn.us> Message-ID: <4EFF8BB964547748A07CA32961810C0412C48280@SOM-TEAQASMAIL1.som.w2k.state.me.us> Hi again Steve, Well, I think I have the problem solved, but in a funny sort of way. Previously, I had been using ANSI equivalents for the symbols that I picked. As previously noted, that worked everywhere except ArcGIS over this particular server. So, I experimented and tried the actual keyboard values. For instance, a plus sign for the Interstate shield. And it works! Both in ArcGIS and in Quantum GIS. Must be something weird with the keyboard mapping, but it works now, so I guess I'll go with it. -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Thursday, January 15, 2009 10:03 AM To: mapserver-users at lists.osgeo.org; Bistrais, Bob Subject: RE: [mapserver-users] Strange symbols with WMS in ArcGIS I would assume then that all maps coming off your test machine would have the goofy symbols then. I'd debug using plain mapserv cgi (mode=map) or with shp2img. Check to make sure the fonts you're referencing in each environment are identical. Perhaps you're not referencing the symbol you thought you were? Steve >>> "Bistrais, Bob" 01/14/09 5:24 PM >>> Thanks Steve. I should also note that on Localhost, I can consume the WMS service in ArcGIS and the shields look OK! It's on the test server that the strange symbols show up. I verified that the .ttf file is located in the C:\Windows\fonts directory. -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Wednesday, January 14, 2009 6:14 PM To: mapserver-users at lists.osgeo.org; Bistrais, Bob Subject: Re: [mapserver-users] Strange symbols with WMS in ArcGIS Very weird and I'm not sure it's even possible. That would mean ArcGIS is somehow affecting the *rendering* performed by MapServer. I'd start with capturing the exact WMS requests being created by ArcGIS... Steve >>> On 1/14/2009 at 4:05 PM, in message <4EFF8BB964547748A07CA32961810C0412C48270 at SOM-TEAQASMAIL1.som.w2k.state. me.us>, "Bistrais, Bob" wrote: > This is probably more of an ArcGIS question than MapServer, but > perhaps somebody here has an idea. I am building a WMS-enabled > service with MapServer and have been testing it out. I am using a > True Type Font for the highway route shields, the .ttf file is located > in the Windows/Fonts directory on the server. > > As expected, the service looks fine when consumed by MapServer and > Ka-Map. It also looks fine when using the open source QuantumGIS > (QGIS). But when the WMS service is consumed by ArcGIS, the > Interstate Highway shields look like ampersands (the "&" symbol). I > have not been able to determine why the symbols look correct by some > consumers, but not ArcGIS. Does anyone have any suggestions? From danlittle at yahoo.com Thu Jan 15 10:47:06 2009 From: danlittle at yahoo.com (Dan Little) Date: Thu, 15 Jan 2009 10:47:06 -0800 (PST) Subject: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? References: <749300.75708.qm@web58201.mail.re3.yahoo.com> <010301c97705$1be516b0$53af4410$@com> Message-ID: <852364.42137.qm@web51404.mail.re2.yahoo.com> Newer versions of Postgres do not automatically create an OID column, as it was a limited 32-bit construct. Try add "using unique XXX" where XXX is the column name of the primary key (or at least a unique key). If you've uploaded the layer from a shapefile using ogr2ogr you can use the column "ogc_fid" ________________________________ From: Venkat Rao Tammineni To: Saka Royban ; MapServer Sent: Thursday, January 15, 2009 5:33:35 AM Subject: RE: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? Hi, I think OID column may not be with your table?Can you check that .. Thanks Venkat. From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saka Royban Sent: Thursday, January 15, 2009 3:36 PM To: MapServer Subject: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? Hi everyone. i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn postgis along with its data. but there is a problem i got this error in first attempt to retrieve data from postgis: msDrawMap(): Image handling error. Failed to draw layer named 'bc_municipality'. prepare_database(): Query error. Error declaring cursor: ERROR: column "oid" does not exist LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from bc_municipality WHERE the_geom && setSRID('BOX3D(458426.1 260651.497368421,1943216.4 1373313.90263158)'::BOX3D, find_srid('','bc_municipality ','the_geom') ) msPOSTGISLayerRetrievePGVersion(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for (position('on' in version()) - 13)) i don't know what causes the problem although it sounds easy. THX -----Inline Attachment Follows----- _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Jan 15 12:32:55 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 15 Jan 2009 21:32:55 +0100 Subject: [mapserver-users] Junk text field values for ArcSDE layers In-Reply-To: References: Message-ID: Hi, As far as I know the driver doesn't do any character encodings with the values retieved from the database, according to your default database setting you may try to convert those strings manually. For example if your database has the 1252 codepage by default, the character conversion may look something like: byte[] bytes = Encoding.Convert(Encoding.Unicode, Encoding.Default, Encoding .Unicode.GetBytes(shape.getValue(index))); string str = Encoding.GetEncoding(1252).GetString(bytes); Best regards, Tamas 2009/1/15 Murty Maganti > Hello > > > > I am having some issue with attribute (field) values for ArcSDE or Oracle > Spatial layers. All text field values are becoming junk characters (after > calling queryByRect() method). I am using C# map script and VS 2008. This is > happening for text fields. Number and date fields seems to be fine. Is there > any special encoding I need to handle in .Net when values are retrieved > (shapeObj.values)? Same field values looks fine in ArcIMS and ArcMap. > > > > Thanks > > Murty > > > > _______________________________________________ > 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 russell at flora.ca Thu Jan 15 13:33:02 2009 From: russell at flora.ca (Russell McOrmond) Date: Thu, 15 Jan 2009 16:33:02 -0500 (EST) Subject: [mapserver-users] Mapserver,RASTER, GDAL & SDE In-Reply-To: <496F5E8F.2020107@pobox.com> References: <496F5E8F.2020107@pobox.com> Message-ID: On Thu, 15 Jan 2009, Frank Warmerdam wrote: > 2) Confirm that you are actually installing and replacing the old libgdal.so. > Check the date, or even use locate to confirm you know which libgdal's exist > on the system. 4) Confirm that I am trying to build a recent gdal (Such as the latest, 1.6.0) rather than 1.4.4 which may not have support anyway. Sorry for the unnecesary question. Now back to mapserver tomorrow now that libgdal and the command line tools are talking to SDE. Thanks for the reply. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From bthoen at gisnet.com Thu Jan 15 15:26:40 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Thu, 15 Jan 2009 16:26:40 -0700 Subject: [mapserver-users] Invalid SRS Error Message-ID: <496FC630.1080105@gisnet.com> I'm trying to map a shape file of contours as a WMS layer but I'm getting an error, "Invalid SRS given: SRS must be valid for all requested layers." When I run OGRinfo on the shape file I get: Geometry: 3D Line String Feature Count: 1308 Extent: (2155250.804139, 1608590.426636) - (2158723.886638, 1612063.531662) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_Colorado_Central_FIPS_0502_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.2572221]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["False_Easting",3000000.0], PARAMETER["False_Northing",1000000.0], PARAMETER["Central_Meridian",-105.5], PARAMETER["Standard_Parallel_1",39.75], PARAMETER["Standard_Parallel_2",38.45], PARAMETER["Latitude_Of_Origin",37.83333333333333], UNIT["Foot_US",0.30480060960122]] Layer: String (254.0) Elevation: Real (19.11) I'm pretty sure this is EPSG:2232 (Colorado State Plane Central zone feet NAD83) and it's is what I'm specifying in my WMS map file. Does anyone know what's wrong here and how to fix it? From crschmidt at metacarta.com Thu Jan 15 15:25:49 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu, 15 Jan 2009 18:25:49 -0500 Subject: [mapserver-users] Invalid SRS Error In-Reply-To: <496FC630.1080105@gisnet.com> References: <496FC630.1080105@gisnet.com> Message-ID: <20090115232547.GA5575@metacarta.com> On Thu, Jan 15, 2009 at 04:26:40PM -0700, Bill Thoen wrote: > I'm trying to map a shape file of contours as a WMS layer but I'm > getting an error, "Invalid SRS given: SRS must be valid for all > requested layers." When I run OGRinfo on the shape file I get: OGR is not the problem. Your wms_srs string in metadata->web is not set correctly; it doesn't include whatever SRS is being requested by your WMS client. -- Chris > Geometry: 3D Line String > Feature Count: 1308 > Extent: (2155250.804139, 1608590.426636) - (2158723.886638, 1612063.531662) > Layer SRS WKT: > PROJCS["NAD_1983_StatePlane_Colorado_Central_FIPS_0502_Feet", > GEOGCS["GCS_North_American_1983", > DATUM["North_American_Datum_1983", > SPHEROID["GRS_1980",6378137.0,298.2572221]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Lambert_Conformal_Conic_2SP"], > PARAMETER["False_Easting",3000000.0], > PARAMETER["False_Northing",1000000.0], > PARAMETER["Central_Meridian",-105.5], > PARAMETER["Standard_Parallel_1",39.75], > PARAMETER["Standard_Parallel_2",38.45], > PARAMETER["Latitude_Of_Origin",37.83333333333333], > UNIT["Foot_US",0.30480060960122]] > Layer: String (254.0) > Elevation: Real (19.11) > > I'm pretty sure this is EPSG:2232 (Colorado State Plane Central zone > feet NAD83) and it's is what I'm specifying in my WMS map file. Does > anyone know what's wrong here and how to fix it? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From vtammineni at roulacglobal.com Thu Jan 15 22:09:39 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 16 Jan 2009 11:39:39 +0530 Subject: [mapserver-users] How to Remove Layer Message-ID: <003901c977a1$05073c10$0f15b430$@com> Dear All, How to remove layer based on not based on index. Is it possible to remove layer based on name. I am waiting for your great response. Advanced Thanks Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at remoteinformation.com.au Thu Jan 15 22:18:02 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Fri, 16 Jan 2009 15:18:02 +0900 Subject: [mapserver-users] Turn off bounding box on PostGIS Layer Message-ID: <74AB5D7A-D6E1-488A-BBF1-5A1E1BE065C5@remoteinformation.com.au> Apologies for cross posting. I'm having an indexing nightmare due to the geom && bbox added by mapserver to my query. I tried using the !BOX! to put a constraint nearer the tables in the query, but MapServer is still adding the final where statement to my query. Is there any way to turn off the auto BBOX behaviour. My query goes from 4 seconds to never completing with it added. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... From snaperski at gmail.com Fri Jan 16 00:50:51 2009 From: snaperski at gmail.com (Raivo Alla) Date: Fri, 16 Jan 2009 10:50:51 +0200 Subject: [mapserver-users] mapserver 0-values problem Message-ID: <49dc012b0901160050h1473a696qbad0cc15a6dc534@mail.gmail.com> Hi! I have strange situation where my mapfile EXPRESSION "[way] eq 0" does not find rows in a table where there is value 0. The type of the shapefile [way] attribute is double. I heard that mapserver 5 handles values as "0" for numbers, so maybe the problem is that my filter is searching for null-values? Maybe someone can fix my incompetence? Sincerely, Raivo From james.mapserver at gmail.com Fri Jan 16 01:57:57 2009 From: james.mapserver at gmail.com (James Mapserver) Date: Fri, 16 Jan 2009 09:57:57 +0000 Subject: [mapserver-users] Sqlite / Spatialite as a layer Message-ID: Hi does anyone have any examples of using this ? I see that Sqlite is included as an option with OGR - but the only reference I can see is: http://www.gdal.org/ogr/drv_sqlite.html Does anyone have any examples of the layer statement needed in a mapserver .map file Also - can the spatialite extension be used at all ? It looks similar to PostGIS - and whilst not having all the power may have application for simpler datasets / setups where a full PostGIS install is not possible Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Fri Jan 16 02:37:12 2009 From: srph124 at yahoo.com (Saka Royban) Date: Fri, 16 Jan 2009 02:37:12 -0800 (PST) Subject: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? References: <749300.75708.qm@web58201.mail.re3.yahoo.com> <010301c97705$1be516b0$53af4410$@com> <852364.42137.qm@web51404.mail.re2.yahoo.com> Message-ID: <129336.58429.qm@web58203.mail.re3.yahoo.com> Thanks alot you are right. although i could understand from error message to have a OID column (it is gid in my table), my mistake was about ignoring 'USING' in 'USING UNIQUE gid). thanks again to help me ________________________________ From: Dan Little To: Venkat Rao Tammineni ; Saka Royban ; MapServer Sent: Thursday, January 15, 2009 10:17:06 PM Subject: Re: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? Newer versions of Postgres do not automatically create an OID column, as it was a limited 32-bit construct. Try add "using unique XXX" where XXX is the column name of the primary key (or at least a unique key). If you've uploaded the layer from a shapefile using ogr2ogr you can use the column "ogc_fid" ________________________________ From: Venkat Rao Tammineni To: Saka Royban ; MapServer Sent: Thursday, January 15, 2009 5:33:35 AM Subject: RE: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? Hi, I think OID column may not be with your table?Can you check that .. Thanks Venkat. From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saka Royban Sent: Thursday, January 15, 2009 3:36 PM To: MapServer Subject: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? Hi everyone. i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn postgis along with its data. but there is a problem i got this error in first attempt to retrieve data from postgis: msDrawMap(): Image handling error. Failed to draw layer named 'bc_municipality'. prepare_database(): Query error. Error declaring cursor: ERROR: column "oid" does not exist LINE 1: ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from bc_municipality WHERE the_geom && setSRID('BOX3D(458426.1 260651.497368421,1943216.4 1373313.90263158)'::BOX3D, find_srid('','bc_municipality ','the_geom') ) msPOSTGISLayerRetrievePGVersion(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for (position('on' in version()) - 13)) i don't know what causes the problem although it sounds easy. THX -----Inline Attachment Follows----- _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From boommonge at gmail.com Fri Jan 16 03:25:07 2009 From: boommonge at gmail.com (LMonge) Date: Fri, 16 Jan 2009 03:25:07 -0800 Subject: [mapserver-users] How to develop in Mapserver? In-Reply-To: References: <390b64100901150111h707cbde0n39ea5f8b53673ad6@mail.gmail.com> Message-ID: <390b64100901160325w156a0170i94cc3f01bf9af2c6@mail.gmail.com> Thank you very much for answer! Tamas!! Sorry I dont have any example code! Only I have documentation about analysis of the algorithm..Still I have not began the phases of design and development. In this moment, I am interested to learn how can i to do for develop in MapServer codebase and I am a little worried because I dont know how to do it.. About the algorithm: In very general terms is a kind of search algorithm. it must get some data of MAPFILE and manipulate them.And I need to add some new reserved words in the MAPFILE for activate my algorithm. (I think i will need to create a new files for my algorithm and modify: mapfile.h,mapfile.dtd,etc) I am reading about compile mapserver with MSVC, but I am not understanding very clearly.. (http://www.mapserver.org/installation/win32.html#compiling). For example: -Only can I compile the mapserver code base with CMD.exe? what about the graphical mode? -I need to see the values that get my variables of the MAPFILE,check my loops (for,while),etc. Thanks On Thu, Jan 15, 2009 at 4:58 AM, Tamas Szekeres wrote: > Hi, > > Do you have an example where you'd like to plug your code into the > mapserver codebase, what kind of algorithm you'd like to implement? > The debugging options may be specific to the platform and the > compiler/debugger beilg used. For example you could compile mapserver with > debug info by using MSVC and setting up the debug option in the nmake.opt > file. > > Best regards, > > Tamas > > > > 2009/1/15 LMonge > >> Hello >> >> I want to develop and adapt an algorithm to the source code of MapServer, >> but I don't have idea what tool I need to develop in the mapserver. For >> example: I want to verify step by step that my algorithm run!, verify errors >> in declarations and fuctions, compile my algorithm with the source code of >> mapserver and check my algorithm with the define values of .MAPFILE >> >> >> >> >> Goal: >> >> Verify operation of the algorithm with data of the (.MAP) <-- TOOL-->Compile and run the source code of mapserver and my algorithm >> >> >> >> I hope somebody help me!, and can write me some good tips pleasee >> >> >> >> My best regards >> >> >> _______________________________________________ >> 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 szekerest at gmail.com Fri Jan 16 04:03:29 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 16 Jan 2009 13:03:29 +0100 Subject: [mapserver-users] How to develop in Mapserver? In-Reply-To: <390b64100901160325w156a0170i94cc3f01bf9af2c6@mail.gmail.com> References: <390b64100901150111h707cbde0n39ea5f8b53673ad6@mail.gmail.com> <390b64100901160325w156a0170i94cc3f01bf9af2c6@mail.gmail.com> Message-ID: 2009/1/16 LMonge > -Only can I compile the mapserver code base with CMD.exe? what about the > graphical mode? There's no solution/project file provided with mapserver therefore you should do a command line commpilation. Assuming you're using Microsoft Visual Studio and Windows Platform you should open the Visual Studio command prompt compile the project. You may require the libs and the includes of the dependencies like gdal, proj, geos if you require those features (see nmake opt for more details) > > -I need to see the values that get my variables of the MAPFILE,check my > loops (for,while),etc. > So as to add new keywords to the lexer you may have to modify maplexer.l and regenerate maplexer.c by using flex 2.5.33 or later flex --nounistd -Pmsyy -i -omaplexer.c maplexer.l You could however add metadata for various elements in the mapfile and you won't need to add new keywords in this case. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Fri Jan 16 04:26:27 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 16 Jan 2009 13:26:27 +0100 (CET) Subject: [mapserver-users] How to Remove Layer In-Reply-To: <003901c977a1$05073c10$0f15b430$@com> References: <003901c977a1$05073c10$0f15b430$@com> Message-ID: <49391.192.168.1.59.1232108787.squirrel@localhost.localdomain> getLayerByName("NameOfTheLayer"); $mapObj->removeLayer($layerObj->index); ?> C# is similar. ciao ......................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Ven, Gennaio 16, 2009 07:09, Venkat Rao Tammineni wrote: > Dear All, > > > > How to remove layer based on not based on index. Is it possible to > remove > layer based on name. > > > > I am waiting for your great response. > > > > Advanced Thanks > > > > Regards > > Venkat. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From richard.greenwood at gmail.com Fri Jan 16 05:07:37 2009 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Fri, 16 Jan 2009 06:07:37 -0700 Subject: [mapserver-users] Sqlite / Spatialite as a layer In-Reply-To: References: Message-ID: On Fri, Jan 16, 2009 at 2:57 AM, James Mapserver wrote: > Hi does anyone have any examples of using this ? > > I see that Sqlite is included as an option with OGR - but the only reference > I can see is: > http://www.gdal.org/ogr/drv_sqlite.html > > Does anyone have any examples of the layer statement needed in a mapserver > .map file > > Also - can the spatialite extension be used at all ? > > It looks similar to PostGIS - and whilst not having all the power may have > application for simpler datasets / setups where a full PostGIS install is > not possible ### SQLite/SpatiaLite CONNECTIONTYPE OGR CONNECTION "/data/23_Sublette_GIS/sqlite/sublette.sqlite" # full path to SQLite db file DATA "ownership" # table in db file The geometry must be in WKT format. You can import w/ GDAL like: ogr2ogr -f "SQLite" -lco FORMAT=WKT dest.db source.shp source Or import w/ SpatiaLite and the convert to WKT like: sqlite> alter table ownership add column WKT_GEOMETRY; sqlite> update ownership set WKT_GEOMETRY=astext(geom); You don't do select statements like w/ PostGIS. Treat it like a shape file and use FILTER and FILTERITEM. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bamerbalazs at gmail.com Fri Jan 16 05:28:33 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Fri, 16 Jan 2009 14:28:33 +0100 Subject: [mapserver-users] php ini location in ms4w Message-ID: Hi All, Where should I put my php.ini file in ms4w? I tried some locations, but no effect. thank you in advance: Bal?zs B?mer From jochen at remote.org Fri Jan 16 05:35:37 2009 From: jochen at remote.org (Jochen Topf) Date: Fri, 16 Jan 2009 14:35:37 +0100 Subject: [mapserver-users] Error messages contain private info Message-ID: <20090116133537.GA25563@localhost.localdomain> When using Mapserver with a database and there is an error connecting to the database the error message sent to the client contains the database connect string including the password! Thats never a good idea. Can this be changed somehow? Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From warmerdam at pobox.com Fri Jan 16 06:02:21 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 16 Jan 2009 09:02:21 -0500 Subject: [mapserver-users] Error messages contain private info In-Reply-To: <20090116133537.GA25563@localhost.localdomain> References: <20090116133537.GA25563@localhost.localdomain> Message-ID: <4970936D.5070407@pobox.com> Jochen Topf wrote: > When using Mapserver with a database and there is an error connecting to > the database the error message sent to the client contains the database > connect string including the password! Thats never a good idea. Can this > be changed somehow? Jochen, I would suggest you review: http://mapserver.org/development/rfc/ms-rfc-18.html I believe this has been implemented since roughly MapServer 5.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 nsavard at mapgears.com Fri Jan 16 05:32:26 2009 From: nsavard at mapgears.com (Normand Savard) Date: Fri, 16 Jan 2009 08:32:26 -0500 Subject: [mapserver-users] php ini location in ms4w In-Reply-To: References: Message-ID: <49708C6A.6030402@mapgears.com> Bal?zs B?mer wrote: > Hi All, > > Where should I put my php.ini file in ms4w? I tried some locations, > but no effect. > > thank you in advance: Bal?zs B?mer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Balazs, The php.ini file resides in /ms4w/Apache/cgi-bin Norm From james.perrins at gmail.com Fri Jan 16 06:30:49 2009 From: james.perrins at gmail.com (James Perrins) Date: Fri, 16 Jan 2009 14:30:49 +0000 Subject: [mapserver-users] Sqlite / Spatialite as a layer In-Reply-To: References: Message-ID: Many thanks Richard, I'll have a go with that. If I understand you correctly the OGR doesn't support Spatalite (hence the need for WKT) - but as you point out you can use spatialite to generate the WKT Best wishes James On Fri, Jan 16, 2009 at 1:07 PM, Richard Greenwood wrote: > On Fri, Jan 16, 2009 at 2:57 AM, James Mapserver > wrote: >> Hi does anyone have any examples of using this ? >> >> I see that Sqlite is included as an option with OGR - but the only reference >> I can see is: >> http://www.gdal.org/ogr/drv_sqlite.html >> >> Does anyone have any examples of the layer statement needed in a mapserver >> .map file >> >> Also - can the spatialite extension be used at all ? >> >> It looks similar to PostGIS - and whilst not having all the power may have >> application for simpler datasets / setups where a full PostGIS install is >> not possible > > > > ### SQLite/SpatiaLite > CONNECTIONTYPE OGR > CONNECTION "/data/23_Sublette_GIS/sqlite/sublette.sqlite" # full > path to SQLite db file > DATA "ownership" # table in db file > > The geometry must be in WKT format. You can import w/ GDAL like: > ogr2ogr -f "SQLite" -lco FORMAT=WKT dest.db source.shp source > > Or import w/ SpatiaLite and the convert to WKT like: > sqlite> alter table ownership add column WKT_GEOMETRY; > sqlite> update ownership set WKT_GEOMETRY=astext(geom); > > You don't do select statements like w/ PostGIS. Treat it like a shape > file and use FILTER and FILTERITEM. > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Dr James Perrins exeGesIS SDM Ltd Great House Barn New Street, Talgarth Powys LD3 0AH. Direct Line: 01646 686650 Tel: 01874 711145 Fax: 01874 711156 Email: JamesP at esdm.co.uk This E-mail and any files transmitted with it are private and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, the E-mail and any files have been transmitted to you in error and any copying, distribution or other use of the information contained in them is strictly prohibited. Nothing in this E-mail message amounts to a contractual or other legal commitment on the part of exeGesIS SDM Ltd unless confirmed by a signed communication. exeGesIS SDM Ltd will make every effort to keep its network free of viruses. However, the recipient of this message will need to scan this message, and any attachments, for viruses, as exeGesIS SDM Ltd can take no responsibility for any computer virus that might be transferred by this e-mail. From kreshna_iceheart at yahoo.com Fri Jan 16 06:41:16 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Fri, 16 Jan 2009 06:41:16 -0800 (PST) Subject: [mapserver-users] Will MapServer benefit from hyperthreading? Message-ID: <635249.36530.qm@web110602.mail.gq1.yahoo.com> Will MapServer benefit from hyperthreading? And does it need to be compiled in particular way to benefit from HT? How about MS4W? Thanks, -Kresh From nikos at maich.gr Fri Jan 16 05:40:46 2009 From: nikos at maich.gr (nikos at maich.gr) Date: Fri, 16 Jan 2009 15:40:46 +0200 (EET) Subject: [mapserver-users] differences in query modes In-Reply-To: <20090116140520.5D5BBE015CC@lists.osgeo.org> References: <20090116140520.5D5BBE015CC@lists.osgeo.org> Message-ID: <1882.193.218.36.79.1232113246.squirrel@193.218.36.79> Hello, Maybe this is a simplistic question, but can some one expand a bit on some of the query modes? I've read the docs and trying to come to grips.. If a tolerance is not set in layers, is a query/nquery mode the same as a feature/featurenquery? Also, can some one explain the itemfeature, itemfeaturenquery please. thanx in advance, nikos From Steve.Lime at dnr.state.mn.us Fri Jan 16 09:35:00 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 16 Jan 2009 11:35:00 -0600 Subject: [mapserver-users] differences in query modes In-Reply-To: <1882.193.218.36.79.1232113246.squirrel@193.218.36.79> References: <20090116140520.5D5BBE015CC@lists.osgeo.org> <1882.193.218.36.79.1232113246.squirrel@193.218.36.79> Message-ID: <497070E4.5157.008F.0@dnr.state.mn.us> Hi Nikos: Here are some examples that might clarify things I hope - query: - find the first geometry that intersects point x,y in layer A - find the first geometry that intersects point x,y in all layers nquery: - find all geometries that intersect point x,y in layer A - find all geometries that intersect point x,y in all layers - find all geometries that intersect bbox x1,y1,x2,y2 in layer A - find all geometries that intersect bbox x1,y1,x2,y2 all layers itemquery: - find the first geometry that matches the expression foo in layer A itemnquery: - find all geometries that matches the expression foo in layer A featurequery: (layer A *must* be a polygon layer, version 5.4 supports LINE layers as well) - find the first geometry that intersects point x,y in layer A and use it to select geometries that intersect it in layer B - find the first geometry that intersects point x,y in layer A and use it to select geometries that intersect it in all other layers featurenquery: (layer A *must* be a polygon layer, version 5.4 supports LINE layers as well) - find all geometries that intersect point x,y in layer A and use it to select geometries that intersect it in layer B - find all geometries that intersect point x,y in layer A and use it to select geometries that intersect it in all other layers - find all geometries that intersect bbox x1,y1,x2,y2 in layer A and use it to select geometries that intersect it in layer B - find all geometries that intersect bbox x1,y1,x2,y2 in layer A and use it to select geometries that intersect it in all other layers itemfeaturequery: (layer A *must* be a polygon layer, version 5.4 supports LINE layers as well) - find the first geometry that matches expression foo in layer A and use it to select geometries that intersect it in layer B - find the first geometry that matches expression foo in layer A and use it to select geometries that intersect it in all other layers itemfeaturenquery: (layer A *must* be a polygon layer, version 5.4 supports LINE layers as well) - find all geometries that match expression foo in layer A and use it to select geometries that intersect it in layer B - find all geometries that match expression foo in layer A and use it to select geometries that intersect it in all other layers - find all geometries that match expression foo in layer A and use it to select geometries that intersect it in layer B - find all geometries that match expression foo in layer A and use it to select geometries that intersect it in all other layers The TOLERANCE/TOLERANCEUNITS value helps define what is meant by "intersect". You can do some interesting things once you understand these modes. For example, I just added support to 5.4 to use line geometries from one layer to select features from another layer. The use case is that someone clicks on a road and we find all parcels within 150 ft of that road. That's done with mode=featurequery. Steve >>> On 1/16/2009 at 7:40 AM, in message <1882.193.218.36.79.1232113246.squirrel at 193.218.36.79>, wrote: > Hello, > > Maybe this is a simplistic question, but can some one expand a bit on some > of the query modes? I've read the docs and trying to come to grips.. > > If a tolerance is not set in layers, is a query/nquery mode the same as a > feature/featurenquery? > > Also, can some one explain the itemfeature, itemfeaturenquery please. > > thanx in advance, > > nikos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From romero619 at hotmail.com Fri Jan 16 10:05:23 2009 From: romero619 at hotmail.com (Pablo Romero) Date: Fri, 16 Jan 2009 10:05:23 -0800 Subject: [mapserver-users] questions about GRIB2 data and mapserver Message-ID: Hello, i use a graphics program named "GrADS" to weather forecast data in GRIB2 format. these plots are mostly of shaded contours. In the past, Ive been able to create tile overlays for google maps, so that I can add my shaded contours of weather forecast data overlaid onto a google map. The process was very inefficient & slow, because the GrADS graphics program wasnt designed for this type of use, so I had to implement many workarounds. I am wondering if mapserver has any native ability to produce such tiles with shaded contours/overlays from data that's stored in GRIB2 format? has anything like this ever been done before??? an example would be creating a plot such as the following image. http://charts.metcentral.com/nww3/bfc8790c6b820cd30410fce22673e420/6.png minus the text surrounding the image, just the map and an overlay of contours & vector arrows that were created from data stored in a GRIB1/GRIB2 file. is this remotely possible??? Please help, P.Romero _________________________________________________________________ Windows Live? Hotmail?: Chat. Store. Share. Do more with mail. http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t1_hm_justgotbetter_howitworks_012009 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bthoen at gisnet.com Fri Jan 16 10:10:43 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Fri, 16 Jan 2009 11:10:43 -0700 Subject: [mapserver-users] LAYER Definition for a Large Data Set Message-ID: <4970CDA3.5030609@gisnet.com> I've got 80 shape files of contour data that are all part of a single layer (as in a tiled coverage) that I want to serve as a WMS layer. Is there an alternative to writing out 80 LAYER definitions in the mapfile? In other words, these blocks of contours all have the same attributes (type, projection, class style, etc.) with the only differences between them being their file name and location. I'm just looking for a shortcut to having to write out the following (with only minor changes each time) 80 times: LAYER NAME "0683" METADATA "wms_title" "0683" END TYPE LINE STATUS ON DATA "Contours/0683" PROJECTION "init=epsg:2232" END CLASS NAME "Contours" STYLE OUTLINECOLOR 0 192 112 WIDTH 1 END END END From frodewj at gmail.com Fri Jan 16 10:13:35 2009 From: frodewj at gmail.com (=?ISO-8859-1?Q?Frode_Wiseth_J=F8rgensen?=) Date: Fri, 16 Jan 2009 19:13:35 +0100 Subject: [mapserver-users] LAYER Definition for a Large Data Set In-Reply-To: <4970CDA3.5030609@gisnet.com> References: <4970CDA3.5030609@gisnet.com> Message-ID: Hi Using TILEINDEX is one option. Have a look at this: http://mapserver.org/optimization/tileindex.html#tileindex Frode 2009/1/16 Bill Thoen : > I've got 80 shape files of contour data that are all part of a single layer > (as in a tiled coverage) that I want to serve as a WMS layer. Is there an > alternative to writing out 80 LAYER definitions in the mapfile? In other > words, these blocks of contours all have the same attributes (type, > projection, class style, etc.) with the only differences between them being > their file name and location. I'm just looking for a shortcut to having to > write out the following (with only minor changes each time) 80 times: > LAYER > NAME "0683" > METADATA > "wms_title" "0683" > END > TYPE LINE > STATUS ON > DATA "Contours/0683" > PROJECTION > "init=epsg:2232" > END > CLASS > NAME "Contours" > STYLE > OUTLINECOLOR 0 192 112 > WIDTH 1 > END > END > END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Frode Wiseth J?rgensen +47 99 03 41 42 From boesiii at yahoo.com Fri Jan 16 10:15:50 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 16 Jan 2009 10:15:50 -0800 (PST) Subject: [mapserver-users] How to open a new window for print layout Message-ID: <1232129750495-2169826.post@n2.nabble.com> I have a working MapServer application and would like to add a button somewhere on the page that will open a new window just for printing purposes, it doesn't need layers control, zooms or pan. How do I grab the current map extent and scale and put it in a new window. The new window will be setup so that it will fit nicely onto a 8 1/2" x 11" paper. Also, I don't know anything about php or javascript. Thanks, Ed -- View this message in context: http://n2.nabble.com/How-to-open-a-new-window-for-print-layout-tp2169826p2169826.html Sent from the Mapserver - User mailing list archive at Nabble.com. From russell at flora.ca Fri Jan 16 10:29:09 2009 From: russell at flora.ca (Russell McOrmond) Date: Fri, 16 Jan 2009 13:29:09 -0500 (EST) Subject: [mapserver-users] Mapserver --> ESRI sde --> zlib -->core dump Message-ID: Again, apologies for asking a non-Mapserver question in this forum. This is a group of people I suspect might have come up against this problem and a solution. We're trying to get mapserver to connect to SDE to get RASTER data. I know that mapserver just uses GDAL to handle this type of connection. At first I was trying to get this connection to work with GDAL 1.4.4 and it wasn't connecting, but with GDAL 1.6.0 it connects fine. The command line gdal_translate from this version can grab data without a problem. In mapserver I use: DATA "SDE:dome,5150,sde,username,password,XDM_XDATA.ELV_NA_GEBCO_BATHYMETRY,RASTER" Mapserver will connect to the server ( GDALOpen() isn't NULL), but I then get a core dump. With gdb I found that the problem happens when inflate_fast() in libz is called by inflate_codes() in libsde. Googling I found this problem being discussed back in 2007 http://forums.esri.com/Thread.asp?c=2&f=1718&t=212867 (Started by Howard Butler). I see a bug tracking ID, but I can't find that ID anywhere but in that message (IE: there doesn't seem to be a bug with that ID on support.esri.com ). Has anyone in this forum bumped up with this problem and found a workaround? I'm currently using ArcSDE 9.2sp5 . Is this something that is known to be fixed in 9.3? -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From Steve.Lime at dnr.state.mn.us Fri Jan 16 10:30:26 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 16 Jan 2009 12:30:26 -0600 Subject: [mapserver-users] How to open a new window for print layout In-Reply-To: <1232129750495-2169826.post@n2.nabble.com> References: <1232129750495-2169826.post@n2.nabble.com> Message-ID: <49707DE2.5157.008F.0@dnr.state.mn.us> Here's an older templated application that does this. It uses the current map extent and layers to make another call to MapServer that changes the output template. Click on the print button so see how it works. It's complete trial and error though to make it fit on one sheet of paper. http://www.dnr.state.mn.us/maps/animap/mapper.html?map=ANIMAP_MAPFILE&imgext=125105.727952+4680758.883785+788393.592828+5593403.088840&imgxy=200.0+275.0&zoomsize=3&zoomdir=0&mode=browse&layers=all&type=mammals&property=cname&species=TAXTAX&queryby=base_geography&geography=county&place=&placetype=any This is MapServer 4.6 wrapped in our content management system which functions as a proxy. Steve >>> On 1/16/2009 at 12:15 PM, in message <1232129750495-2169826.post at n2.nabble.com>, boesiii wrote: > I have a working MapServer application and would like to add a button > somewhere on the page that will open a new window just for printing > purposes, it doesn't need layers control, zooms or pan. How do I grab the > current map extent and scale and put it in a new window. The new window > will be setup so that it will fit nicely onto a 8 1/2" x 11" paper. Also, I > don't know anything about php or javascript. > > Thanks, > Ed From hobu.inc at gmail.com Fri Jan 16 10:34:26 2009 From: hobu.inc at gmail.com (Howard Butler) Date: Fri, 16 Jan 2009 12:34:26 -0600 Subject: [mapserver-users] Mapserver --> ESRI sde --> zlib -->core dump In-Reply-To: References: Message-ID: <33AB5AD0-5170-4BFD-ACF3-2A6BBC5DED29@gmail.com> On Jan 16, 2009, at 12:29 PM, Russell McOrmond wrote: > > Has anyone in this forum bumped up with this problem and found a > workaround? I'm currently using ArcSDE 9.2sp5 . Is this something > that is known to be fixed in 9.3? This was supposedly fixed in 9.3. The only work around is to not store the raster data as LZW or compressed in any way ( can be set with a keyword option using the normal SDE mechanisms for such things). Another thing to try is to ensure that GDAL links with the zlib in $SDEHOME/lib by linking to the sde.so and remove all instances of -lz in GDALMake.opt and ensure that GDAL is configured with an external zlib (so it doesn't use its own). IIRC, I was able to get things to work with this messy hackery as well. Sorry, I can't be of much help. ESRI made the situation even better for 9.3. They don't even ship the *nix SDE SDKs. You have to ask for them to mail them to you :( Howard From Steve.Lime at dnr.state.mn.us Fri Jan 16 10:39:19 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 16 Jan 2009 12:39:19 -0600 Subject: [mapserver-users] How to draw a specific image per point element? In-Reply-To: <496857C3.7020404@yahoo.it> References: <496857C3.7020404@yahoo.it> Message-ID: <49707FF7.5157.008F.0@dnr.state.mn.us> You could bind the symbol to the photo_path item: CLASS STYLE SYMBOL [photo_path] END END Assuming the file pointed to by photo path is usable by MapServer as a marker (e.g. a gif or png) then this might work nicely. You wouldn't need the various classes in this scenario. Steve >>> On 1/10/2009 at 2:09 AM, in message <496857C3.7020404 at yahoo.it>, Ludovico Bianchini wrote: > - Windows Vista Home Premium > - Postgres 8.1 > - jvm 1.6.0 > - tomcat 5.5 > - struts2 > - ms4w 2.3.0 (mapscript.jar, mapscript.dll, all other dlls taken from this > pack) > - postgresql-8.2-505.jdbc4.jar > > Hi all, > I have a database table of this type: > TB_POINT (id NUMBER, > geo GEOMETRY, > title VARCHAR, > icon VARCHAR, > photo_path VARCHAR) > > and a mapfile's layer as: > LAYER > NAME "tb_point" > STATUS off > TYPE POINT > TRANSFORM true > POSTLABELCACHE true > CONNECTION "user=xxxxx password=xxxxx dbname=xxxxx host=xxxxx port=xxxxx" > CONNECTIONTYPE postgis > DATA "geo from xxxxx.tb_point" > MAXSCALE 50000 > CLASSITEM "icon" > > CLASS > EXPRESSION "1" > STYLE > BACKGROUNDCOLOR 255 255 255 > COLOR 0 0 0 > SYMBOL "a" > MAXSIZE 10 > END > END > > CLASS > EXPRESSION "2" > STYLE > BACKGROUNDCOLOR 255 255 255 > COLOR 0 0 0 > SYMBOL "b" > MAXSIZE 10 > END > END > > END > > Based on value of field "icon" mapserver draw symbol "a" or symbol "b". > What I am trying to do is to draw, based on value on field "photo_path", > an image saved in file system. > I'll appreciate very much any suggestions, ideas or links to tutorials > and related documentation. > > Thanks in advance > Ludovico > > Chiacchiera con i tuoi amici in tempo reale! > http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.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 Fri Jan 16 10:45:53 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 16 Jan 2009 12:45:53 -0600 Subject: [mapserver-users] Mapserver --> ESRI sde --> zlib -->core dump In-Reply-To: <33AB5AD0-5170-4BFD-ACF3-2A6BBC5DED29@gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA145@s-sp22.pca.state.mn.us> FYI, the SDK comes as part of 9.3 sp1 -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Howard Butler Sent: Friday, January 16, 2009 12:34 PM To: Russell McOrmond Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver --> ESRI sde --> zlib -->core dump On Jan 16, 2009, at 12:29 PM, Russell McOrmond wrote: > > Has anyone in this forum bumped up with this problem and found a > workaround? I'm currently using ArcSDE 9.2sp5 . Is this something > that is known to be fixed in 9.3? This was supposedly fixed in 9.3. The only work around is to not store the raster data as LZW or compressed in any way ( can be set with a keyword option using the normal SDE mechanisms for such things). Another thing to try is to ensure that GDAL links with the zlib in $SDEHOME/lib by linking to the sde.so and remove all instances of -lz in GDALMake.opt and ensure that GDAL is configured with an external zlib (so it doesn't use its own). IIRC, I was able to get things to work with this messy hackery as well. Sorry, I can't be of much help. ESRI made the situation even better for 9.3. They don't even ship the *nix SDE SDKs. You have to ask for them to mail them to you :( Howard _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bthoen at gisnet.com Fri Jan 16 10:51:26 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Fri, 16 Jan 2009 11:51:26 -0700 Subject: [mapserver-users] LAYER Definition for a Large Data Set In-Reply-To: References: <4970CDA3.5030609@gisnet.com> Message-ID: <4970D72E.5040209@gisnet.com> Perfect!! That's just what I was looking for. Thanks, Frode! Frode Wiseth J?rgensen wrote: > Hi > > Using TILEINDEX is one option. > > Have a look at this: > http://mapserver.org/optimization/tileindex.html#tileindex > > > Frode > From Steve.Lime at dnr.state.mn.us Fri Jan 16 11:40:40 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 16 Jan 2009 13:40:40 -0600 Subject: [mapserver-users] mapserver 0-values problem In-Reply-To: <49dc012b0901160050h1473a696qbad0cc15a6dc534@mail.gmail.com> References: <49dc012b0901160050h1473a696qbad0cc15a6dc534@mail.gmail.com> Message-ID: <49708E58.5157.008F.0@dnr.state.mn.us> I'll start with the obvious question, do you really mean: EXPRESSION "[way] eq 0" That should be: EXPRESSION ([way] eq 0) Steve >>> On 1/16/2009 at 2:50 AM, in message <49dc012b0901160050h1473a696qbad0cc15a6dc534 at mail.gmail.com>, Raivo Alla wrote: > Hi! > > I have strange situation where my mapfile EXPRESSION "[way] eq 0" does > not find rows in a table where there is value 0. > The type of the shapefile [way] attribute is double. > I heard that mapserver 5 handles values as "0" for numbers, so > maybe the problem is that my filter is searching for null-values? > Maybe someone can fix my incompetence? > > > Sincerely, > Raivo > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From patilvikram at gmail.com Fri Jan 16 12:13:32 2009 From: patilvikram at gmail.com (vikram_vap) Date: Fri, 16 Jan 2009 12:13:32 -0800 (PST) Subject: [mapserver-users] umn map server requested url not found on this server error In-Reply-To: <1232013592926-2161659.post@n2.nabble.com> References: <28babe2b0812300332w49185431pbe16aae6541ab26a@mail.gmail.com> <495A2D30.2020300@gatewaygeomatics.com> <1232013592926-2161659.post@n2.nabble.com> Message-ID: <1232136812941-2170396.post@n2.nabble.com> Hello , I figure out solution for this problem .As windows service can not be restarted using apache-restart.bat ,so apache is not updated with new conf file . So I would say it will be better use Services console from windows to restart Ms4w app server. Also do check if cache is activated on http server before restarting as it can be one of the reason too. Thanks , Vikram Newbie in Mapserver vikram_vap wrote: > > > > Jeff McKenna wrote: >> >> cemre yilmaz wrote: >>> Hello everybody; >>> >>> I have installed ms4w on my PC succesfully. I have typed >>> "http://localhost/" on my web browser and main page of map server >>> opened. After I tested if the server is working properly then I have >>> create a folder called "tfc" in *C:/ms4w/apps* and I have created a >>> configuration file in the folder *c:/ms4w/httpd.d* folder called >>> *httpd_tfc.conf *and I typed; >>> >>> Alias /tfc/ "/ms4w/apps/tfc/" >>> >>> AllowOverride None >>> Options Indexes FollowSymLinks Multiviews >>> Order allow,deny >>> Allow from all >>> >>> >>> >>> When I typed "http://localhost/tfc/" on web browser normally I should >>> see the empty file but there is a message on the opened page that >>> "server requested url not found on this server " error 404. What should >>> be the reason? I don't understand what is wrong. Why server can't find >>> the folder. >>> >>> Note: I have restarted the apache server after the configuration file. >>> >>> Could you please inform me about this problem it is very urgent. Thanks >>> a lot. >>> >>> >> >> Your steps look valid. I don't have the answer, but if that was me I >> would try the following: >> >> - I might purposely make an error in httpd_tfc.conf (such as have >> "AllowOverride None1") and open a Command window and execute >> c:/ms4w/apache-restart.bat .......just to verify that an error is >> reported and I am modifying the correct Apache >> - I might also download another MS4W add-on package (such as the >> "PHP/MapScript Sample Application") and restart apache, and see if I can >> access it in the web browser >> _ I would then just copy that add-on folder in /ms4w/apps/ and give the >> new folder a name, and copy/rename the /ms4w/httpd.d/httpd_gmap.conf >> file and restart Apache....that process should work if the other add-on >> application worked in Apache. >> >> Happy holidays to all. >> >> -- >> Jeff McKenna >> FOSS4G Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > Hello Jeff, > > I am facing same problem as Cemre . Hey Cemre if you have found solution > please let me know soon > > Thanks in advance. > Thanks & Regards, > vikram > -- View this message in context: http://n2.nabble.com/umn-map-server-requested-url-not-found-on-this-server-error-tp2092066p2170396.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ml at lingner.eu Fri Jan 16 12:31:25 2009 From: ml at lingner.eu (Lars Lingner) Date: Fri, 16 Jan 2009 21:31:25 +0100 Subject: [mapserver-users] LABELMAXSCALEDENOM at class level possibly? Message-ID: <4970EE9D.3000903@lingner.eu> Hello, since I can have several classes in an layer and a class can have a label object, I thought I can use LABELMAXSCALEDENOM (or LABELMINSCALEDENOM) at class level. But LABELMAXSCALEDENOM seems only valid at layer level. Of course I can use MAXSCALEDENOM at class level, but this effects the whole class not just the label. Am I doing something wrong, do I oversee something? Or is this behavior intended like it is? I'm using current trunk: ./mapserv -v MapServer version 5.3-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Lars From Steve.Lime at dnr.state.mn.us Fri Jan 16 12:34:18 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 16 Jan 2009 14:34:18 -0600 Subject: [mapserver-users] LABELMAXSCALEDENOM at class level possibly? In-Reply-To: <4970EE9D.3000903@lingner.eu> References: <4970EE9D.3000903@lingner.eu> Message-ID: <49709AEA.5157.008F.0@dnr.state.mn.us> It may not be intended exactly but that's how it works. -Steve >>> On 1/16/2009 at 2:31 PM, in message <4970EE9D.3000903 at lingner.eu>, Lars Lingner wrote: > Hello, > > since I can have several classes in an layer and a class can have a > label object, I thought I can use LABELMAXSCALEDENOM (or > LABELMINSCALEDENOM) at class level. But LABELMAXSCALEDENOM seems only > valid at layer level. > > Of course I can use MAXSCALEDENOM at class level, but this effects the > whole class not just the label. > > Am I doing something wrong, do I oversee something? Or is this behavior > intended like it is? > > I'm using current trunk: > > ./mapserv -v > MapServer version 5.3-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > Lars > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From snaperski at gmail.com Fri Jan 16 13:23:39 2009 From: snaperski at gmail.com (Raivo Alla) Date: Fri, 16 Jan 2009 23:23:39 +0200 Subject: [mapserver-users] mapserver 0-values problem In-Reply-To: <49708E58.5157.008F.0@dnr.state.mn.us> References: <49dc012b0901160050h1473a696qbad0cc15a6dc534@mail.gmail.com> <49708E58.5157.008F.0@dnr.state.mn.us> Message-ID: <49dc012b0901161323h3c7dce9v766bb3e4bf82c915@mail.gmail.com> Thank you for answering! Sorry about absent parentheses, manuallly typing mistake:( In mapfile it's with parentheses.. In ArcGIS i can select those rows with "[way]=0" filter, successfully. The origin of the data table is oracle table, where those fields were originally with values. After generating shapefiles on that table, these values were substituted by 0-s. Raivo On Fri, Jan 16, 2009 at 9:40 PM, Steve Lime wrote: > I'll start with the obvious question, do you really mean: > > EXPRESSION "[way] eq 0" > > That should be: > > EXPRESSION ([way] eq 0) > > Steve > >>>> On 1/16/2009 at 2:50 AM, in message > <49dc012b0901160050h1473a696qbad0cc15a6dc534 at mail.gmail.com>, Raivo Alla > wrote: >> Hi! >> >> I have strange situation where my mapfile EXPRESSION "[way] eq 0" does >> not find rows in a table where there is value 0. >> The type of the shapefile [way] attribute is double. >> I heard that mapserver 5 handles values as "0" for numbers, so >> maybe the problem is that my filter is searching for null-values? >> Maybe someone can fix my incompetence? >> >> >> Sincerely, >> Raivo >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From boesiii at yahoo.com Fri Jan 16 18:51:07 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 16 Jan 2009 18:51:07 -0800 (PST) Subject: [mapserver-users] umn map server requested url not found on this server error In-Reply-To: <1232136812941-2170396.post@n2.nabble.com> References: <28babe2b0812300332w49185431pbe16aae6541ab26a@mail.gmail.com> <495A2D30.2020300@gatewaygeomatics.com> <1232013592926-2161659.post@n2.nabble.com> <1232136812941-2170396.post@n2.nabble.com> Message-ID: <1232160667613-2171800.post@n2.nabble.com> I don't think you need the "/" after every where you have "tfc" Below is my alias file: #This is the Apache config file for Nira Map. Alias /awa_map "/ms4w/apps/awa_map/htdocs" AllowOverride None Options Indexes MultiViews Order allow,deny Allow from all Also, you need to have an index.html file located in your tfc directory to initialize mapserver. -- View this message in context: http://n2.nabble.com/umn-map-server-requested-url-not-found-on-this-server-error-tp2092066p2171800.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jochen at remote.org Sat Jan 17 02:39:25 2009 From: jochen at remote.org (Jochen Topf) Date: Sat, 17 Jan 2009 11:39:25 +0100 Subject: [mapserver-users] Error messages contain private info In-Reply-To: <4970936D.5070407@pobox.com> References: <20090116133537.GA25563@localhost.localdomain> <4970936D.5070407@pobox.com> Message-ID: <20090117103925.GA12668@eldorado.topf.org> On Fri, Jan 16, 2009 at 09:02:21AM -0500, Frank Warmerdam wrote: > Jochen Topf wrote: >> When using Mapserver with a database and there is an error connecting to >> the database the error message sent to the client contains the database >> connect string including the password! Thats never a good idea. Can this >> be changed somehow? > > Jochen, > > I would suggest you review: > > http://mapserver.org/development/rfc/ms-rfc-18.html That seems like a rather complex solution and it falls short in several aspects: * Security should be the default, not some add-on * It only protects passwords not the rest of the information. Generally services should not leak any internal information to the outside world. Passwords are only the worst case here. But anything like host names, file names, database names, URLs auf cascaded WMSes etc. should not ever get outside! If there is an error this information should go into a log file. You can output a time stamp or some kind of id in the error message so that you can find the corresponding log messages. For servers only used internally where you don't mind the information leak or for debugging of a new setup there could be an option to output error messages to the client. But thats would only be an option which is off by default. See http://www.owasp.org/index.php/Top_10_2007-A6 for more on this. Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From metlud at yahoo.it Sun Jan 18 02:12:58 2009 From: metlud at yahoo.it (Ludovico Bianchini) Date: Sun, 18 Jan 2009 11:12:58 +0100 Subject: [mapserver-users] How to draw a specific image per point element? In-Reply-To: <49707FF7.5157.008F.0@dnr.state.mn.us> References: <496857C3.7020404@yahoo.it> <49707FF7.5157.008F.0@dnr.state.mn.us> Message-ID: <497300AA.7040702@yahoo.it> It works nicely! Thank you very much. Ludovico Steve Lime ha scritto: > You could bind the symbol to the photo_path item: > > CLASS > STYLE > SYMBOL [photo_path] > END > END > > Assuming the file pointed to by photo path is usable by MapServer as a marker (e.g. a gif or png) then > this might work nicely. You wouldn't need the various classes in this scenario. > > Steve > > >>>> On 1/10/2009 at 2:09 AM, in message <496857C3.7020404 at yahoo.it>, Ludovico >>>> > Bianchini wrote: > >> - Windows Vista Home Premium >> - Postgres 8.1 >> - jvm 1.6.0 >> - tomcat 5.5 >> - struts2 >> - ms4w 2.3.0 (mapscript.jar, mapscript.dll, all other dlls taken from this >> pack) >> - postgresql-8.2-505.jdbc4.jar >> >> Hi all, >> I have a database table of this type: >> TB_POINT (id NUMBER, >> geo GEOMETRY, >> title VARCHAR, >> icon VARCHAR, >> photo_path VARCHAR) >> >> and a mapfile's layer as: >> LAYER >> NAME "tb_point" >> STATUS off >> TYPE POINT >> TRANSFORM true >> POSTLABELCACHE true >> CONNECTION "user=xxxxx password=xxxxx dbname=xxxxx host=xxxxx port=xxxxx" >> CONNECTIONTYPE postgis >> DATA "geo from xxxxx.tb_point" >> MAXSCALE 50000 >> CLASSITEM "icon" >> >> CLASS >> EXPRESSION "1" >> STYLE >> BACKGROUNDCOLOR 255 255 255 >> COLOR 0 0 0 >> SYMBOL "a" >> MAXSIZE 10 >> END >> END >> >> CLASS >> EXPRESSION "2" >> STYLE >> BACKGROUNDCOLOR 255 255 255 >> COLOR 0 0 0 >> SYMBOL "b" >> MAXSIZE 10 >> END >> END >> >> END >> >> Based on value of field "icon" mapserver draw symbol "a" or symbol "b". >> What I am trying to do is to draw, based on value on field "photo_path", >> an image saved in file system. >> I'll appreciate very much any suggestions, ideas or links to tutorials >> and related documentation. >> >> Thanks in advance >> Ludovico >> >> Chiacchiera con i tuoi amici in tempo reale! >> http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.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 bamerbalazs at gmail.com Sun Jan 18 12:41:57 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Sun, 18 Jan 2009 21:41:57 +0100 Subject: [mapserver-users] Converting pixel coordinates to georeferenced Message-ID: Hi All, What is the practical way of converting pixel coordinates (a click on the map) into georeferenced coordinates? I can hack with MapObj.zoompoint to extract the georeferenced ones from the extent, but It seems reasonable to have a more straightforward way. thanx in advance! Best regards: Bal?zs B?mer From cemre.yilmaz at gmail.com Sun Jan 18 14:01:02 2009 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Mon, 19 Jan 2009 00:01:02 +0200 Subject: [mapserver-users] wms and maplab application error Message-ID: <28babe2b0901181401k6f04b482y363638f846a118dd@mail.gmail.com> Hello everybody; I am trying to apply an application about OGC Web Map services and SLD with UMN mapserver. I found an application on the web. I have already installed MS4W and then I have installed the maplab applicaiton on MS4W. My problem is that, there is a tutorial map file with the application and I need to edit it with MapLab. When I wrote in the browser http://localhost/maplab/ I can see the main page of the maplab but when I try to edit the tutorial map file there is an error aperaring and I can't be able to open the tutorial map file. The error is below; *Warning*: dl(): Unable to load dynamic library '/ms4w/Apache/php/extensions/php_mapscript.dll' - Belirtilen mod?l bulunamad?. in *C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\mapeditapp.php* on line *150* *Fatal error*: Call to undefined function: ms_tokenizemap() in * C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\mapeditapp.php* on line *168 * ** *What should I do to open the map file. What is the problem?..* ** *If you know about the error could you please inform me. It is very urgent for me. * ** *Thanks..* ** *Cemre Y.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From boesiii at yahoo.com Sun Jan 18 19:29:28 2009 From: boesiii at yahoo.com (boesiii) Date: Sun, 18 Jan 2009 19:29:28 -0800 (PST) Subject: [mapserver-users] How to show html legend with multiple columns. Message-ID: <1232335768734-2179676.post@n2.nabble.com> I am using html to display my legend. Is there a way to tell it to display across multiple columns? -- View this message in context: http://n2.nabble.com/How-to-show-html-legend-with-multiple-columns.-tp2179676p2179676.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Sun Jan 18 21:06:39 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 19 Jan 2009 10:36:39 +0530 Subject: [mapserver-users] How to Remove Layer In-Reply-To: <49391.192.168.1.59.1232108787.squirrel@localhost.localdomain> References: <003901c977a1$05073c10$0f15b430$@com> <49391.192.168.1.59.1232108787.squirrel@localhost.localdomain> Message-ID: <006901c979f3$b78636d0$2692a470$@com> Dear ciao, Its working great, Thanks a lot... Here is my code.... layer = Map.getLayerByName("test"); Map.removeLayer(layer.index); Thanks again Regards, Venkat -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro Giannini Sent: Friday, January 16, 2009 5:56 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to Remove Layer getLayerByName("NameOfTheLayer"); $mapObj->removeLayer($layerObj->index); ?> C# is similar. ciao ......................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Ven, Gennaio 16, 2009 07:09, Venkat Rao Tammineni wrote: > Dear All, > > > > How to remove layer based on not based on index. Is it possible to > remove > layer based on name. > > > > I am waiting for your great response. > > > > Advanced Thanks > > > > Regards > > Venkat. > > _______________________________________________ > 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 Sun Jan 18 23:24:12 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 19 Jan 2009 09:24:12 +0200 Subject: [mapserver-users] wms and maplab application error In-Reply-To: <28babe2b0901181401k6f04b482y363638f846a118dd@mail.gmail.com> Message-ID: Hi, Maplab project is no more active. Latest Maplab works only with Mapserver 4.2 or 4.1 and with some older php version. If you are just learning Mapserver and applications built on it and you don't have any special interest towards Maplab I would recommend you to forget it and start learning some other, still active application framework. Start reading the list at http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#ms4w-applications. Maplab was indeed quite a nice application. With it it was possible to made working interactive map applications without any programming in any language once there was a working mapfile available. I wonder if any of the living projects can offer as low threshold for new users. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta cemre yilmaz L?hetetty: 19. tammikuuta 2009 0:01 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] wms and maplab application error Hello everybody; I am trying to apply an application about OGC Web Map services and SLD with UMN mapserver. I found an application on the web. I have already installed MS4W and then I have installed the maplab applicaiton on MS4W. My problem is that, there is a tutorial map file with the application and I need to edit it with MapLab. When I wrote in the browser http://localhost/maplab/ I can see the main page of the maplab but when I try to edit the tutorial map file there is an error aperaring and I can't be able to open the tutorial map file. The error is below; Warning: dl(): Unable to load dynamic library '/ms4w/Apache/php/extensions/php_mapscript.dll' - Belirtilen mod?l bulunamad?. in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\mapeditapp.php on line 150 Fatal error: Call to undefined function: ms_tokenizemap() in C:\ms4w\apps\maplab-2.2.1\htdocs\mapedit\mapeditapp.php on line 168 What should I do to open the map file. What is the problem?.. If you know about the error could you please inform me. It is very urgent for me. Thanks.. Cemre Y. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Jan 19 00:30:10 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 19 Jan 2009 09:30:10 +0100 Subject: [mapserver-users] How to Remove Layer In-Reply-To: <006901c979f3$b78636d0$2692a470$@com> References: <003901c977a1$05073c10$0f15b430$@com> <49391.192.168.1.59.1232108787.squirrel@localhost.localdomain> <006901c979f3$b78636d0$2692a470$@com> Message-ID: Venkat, I just wanted to mention that this topic have already been discussed with the same suggestion a month ago, see: http://n2.nabble.com/Remove-Layer-based-on-layer-Name-C--td1974078.html However it haven't satisfied with your requirements at that time ;-) Best regards, Tamas 2009/1/19 Venkat Rao Tammineni > Dear ciao, > > Its working great, Thanks a lot... > > Here is my code.... > > layer = Map.getLayerByName("test"); > Map.removeLayer(layer.index); > > Thanks again > > Regards, > Venkat > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro > Giannini > Sent: Friday, January 16, 2009 5:56 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to Remove Layer > > $layerObj = $mapObj->getLayerByName("NameOfTheLayer"); > $mapObj->removeLayer($layerObj->index); > ?> > C# is similar. > > ciao > ......................pg > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > On Ven, Gennaio 16, 2009 07:09, Venkat Rao Tammineni wrote: > > Dear All, > > > > > > > > How to remove layer based on not based on index. Is it possible to > > remove > > layer based on name. > > > > > > > > I am waiting for your great response. > > > > > > > > Advanced Thanks > > > > > > > > Regards > > > > Venkat. > > > > _______________________________________________ > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From snaperski at gmail.com Mon Jan 19 00:22:40 2009 From: snaperski at gmail.com (Raivo Alla) Date: Mon, 19 Jan 2009 10:22:40 +0200 Subject: [mapserver-users] mapserver 0-values problem In-Reply-To: <49dc012b0901161323h3c7dce9v766bb3e4bf82c915@mail.gmail.com> References: <49dc012b0901160050h1473a696qbad0cc15a6dc534@mail.gmail.com> <49708E58.5157.008F.0@dnr.state.mn.us> <49dc012b0901161323h3c7dce9v766bb3e4bf82c915@mail.gmail.com> Message-ID: <49dc012b0901190022t762ba558jdac0ee6757352895@mail.gmail.com> Hi again, I have to add that this expression: EXPRESSION ([way] >= 1000000 OR [way]<=0) worked fine when I substituted those 0-values with -1. As I mentioned before, expression like that EXPRESSION ([way] >= 1000000 OR [way]<=0 OR [way] eq 0) does'nt filter out rows that had 0 value on "way" field. Raivo On Fri, Jan 16, 2009 at 11:23 PM, Raivo Alla wrote: > Thank you for answering! > > Sorry about absent parentheses, manuallly typing mistake:( In mapfile > it's with parentheses.. > In ArcGIS i can select those rows with "[way]=0" filter, successfully. > The origin of the data table is oracle table, where those fields were > originally with values. After generating shapefiles on that > table, these values were substituted by 0-s. > > > Raivo > > On Fri, Jan 16, 2009 at 9:40 PM, Steve Lime wrote: >> I'll start with the obvious question, do you really mean: >> >> EXPRESSION "[way] eq 0" >> >> That should be: >> >> EXPRESSION ([way] eq 0) >> >> Steve >> >>>>> On 1/16/2009 at 2:50 AM, in message >> <49dc012b0901160050h1473a696qbad0cc15a6dc534 at mail.gmail.com>, Raivo Alla >> wrote: >>> Hi! >>> >>> I have strange situation where my mapfile EXPRESSION "[way] eq 0" does >>> not find rows in a table where there is value 0. >>> The type of the shapefile [way] attribute is double. >>> I heard that mapserver 5 handles values as "0" for numbers, so >>> maybe the problem is that my filter is searching for null-values? >>> Maybe someone can fix my incompetence? >>> >>> >>> Sincerely, >>> Raivo >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From bamerbalazs at gmail.com Mon Jan 19 01:33:45 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Mon, 19 Jan 2009 10:33:45 +0100 Subject: [mapserver-users] mapObj.getlayersdrawingorder Message-ID: Hi All, I tried to call MapObj.getlayersdrawingorder() from PHP Mapscript (ms4w 2.3.1 with MapServer 5.2.1, PHP 5.2.6). PHP script terminates. Same result for MapObj.getLayersDrawingOrder() (the PDF description is ambiguous about these names). How it is called? Is it really usable? In the appropriate .dll file both names appear. thanx in advance: Bal?zs B?mer From amiyapatra188 at gmail.com Mon Jan 19 05:18:37 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Mon, 19 Jan 2009 18:48:37 +0530 Subject: [mapserver-users] Unable to open file for writing in windows(plz immediate response) Message-ID: But in windows how I will check wheather apache user can write to that folder. Actually in linux my application is running ok. but in windows vista, I cant find the daemon apache user as in httpd.conf file daemon is mentioned as usr and group. But how I will give permission to this user for writing to that folder. Please help immediate...... On Wed, Jan 7, 2009 at 7:11 PM, Dan Little wrote: > Make sure your apache user can write to that directory, also make sure they > can cd into that directory. > > -Duck > > ------------------------------ > *From:* MOHAMMED SADIQUE SHADAB > *To:* mapserver-users at lists.osgeo.org > *Sent:* Wednesday, January 7, 2009 5:13:28 AM > *Subject:* [mapserver-users] Unable to open file > /opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing > > hi > > > unable to generate image that is (.png) in FGS after giving the URL as > URL:http://localhost:9000/cgi-bin/mapserv > > please help me immediately > > thanks > > regards > SHADAB > > > _______________________________________________ > 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 Mon Jan 19 05:20:52 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 19 Jan 2009 08:20:52 -0500 Subject: [mapserver-users] mapObj.getlayersdrawingorder In-Reply-To: References: Message-ID: <49747E34.3090002@mapgears.com> Bal?zs B?mer, Note that in PHP, all functions names are case INsensitive.... but variable are case sensitive.... weird but true ;) So your call should work. Maybe you could try to execute "php -f youFile.php" in console to see if php report errors. Regards, Alan Bal?zs B?mer wrote: > Hi All, > > I tried to call MapObj.getlayersdrawingorder() from PHP Mapscript > (ms4w 2.3.1 with MapServer 5.2.1, PHP 5.2.6). PHP script terminates. > Same result for MapObj.getLayersDrawingOrder() (the PDF description is > ambiguous about these names). > > How it is called? Is it really usable? In the appropriate .dll file > both names appear. > > thanx in advance: Bal?zs B?mer > _______________________________________________ > 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 amiyapatra188 at gmail.com Mon Jan 19 05:42:31 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Mon, 19 Jan 2009 19:12:31 +0530 Subject: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing) Message-ID: Hi I got the error but unable to solve.The apache user don have permision to write to that folder .In windows how I will check wheather apache user can write to that folder. Actually in linux my application is running ok. but in windows vista, I cant find the daemon apache user as in httpd.conf file "daemon" is mentioned as usr and group. But how I will give permission to this user for writing to that folder. Please help immediate...... Thanks..........and hope positive immidiate response -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Mon Jan 19 06:18:51 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Mon, 19 Jan 2009 19:48:51 +0530 Subject: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing) In-Reply-To: References: Message-ID: hi Thanks 4 reply.but already I have tried that but no result. Actually I want to know how to change the ownership of that folder...I have to change the ownership to apache user and then needs to give permission...... On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain wrote: > hi > > right click on the folder,then select the property and change the read and > write option to its folder and to its sub folder. > > regards > muzaffar > > On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra wrote: > >> Hi >> I got the error but unable to solve.The apache user don have permision to >> write to that folder .In windows how I will check wheather apache user can >> write to that folder. Actually in linux my application is running ok. but in >> windows vista, I cant find the daemon apache user as in httpd.conf file >> "daemon" is mentioned as usr and group. But how I will give permission to >> this user for writing to that folder. Please help immediate...... >> >> Thanks..........and hope positive immidiate response >> >> _______________________________________________ >> 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 Mon Jan 19 06:19:54 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 19 Jan 2009 09:19:54 -0500 Subject: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing) In-Reply-To: References: Message-ID: <49748C0A.5020102@mapgears.com> Try this: http://www.mydigitallife.info/2007/05/25/how-to-take-ownership-and-grant-permissions-in-windows-vista/ Alan Amiya Patra wrote: > hi > Thanks 4 reply.but already I have tried that but no result. Actually > I want to know how to change the ownership of that folder...I have to > change the ownership to apache user and then needs to give > permission...... > > On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain > > wrote: > > hi > > right click on the folder,then select the property and change the > read and write option to its folder and to its sub folder. > > regards > muzaffar > > On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra > > wrote: > > Hi > I got the error but unable to solve.The apache user don have > permision to write to that folder .In windows how I will check > wheather apache user can write to that folder. Actually in > linux my application is running ok. but in windows vista, I > cant find the daemon apache user as in httpd.conf file > "daemon" is mentioned as usr and group. But how I will give > permission to this user for writing to that folder. Please > help immediate...... > > Thanks..........and hope positive immidiate response > > _______________________________________________ > 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 > -- Alan Boudreault Mapgears http://www.mapgears.com From russell at flora.ca Mon Jan 19 06:40:09 2009 From: russell at flora.ca (Russell McOrmond) Date: Mon, 19 Jan 2009 09:40:09 -0500 (EST) Subject: [mapserver-users] Mapserver --> ESRI sde --> zlib -->core dump In-Reply-To: References: Message-ID: On Fri, 16 Jan 2009, Russell McOrmond wrote: > Googling I found this problem being discussed back in 2007 > http://forums.esri.com/Thread.asp?c=2&f=1718&t=212867 (Started by Howard > Butler). I see a bug tracking ID, but I can't find that ID anywhere but in > that message (IE: there doesn't seem to be a bug with that ID on > support.esri.com ). I asked for a comment from ESRI, and in the thread listed above. They said that this issue has not been fixed for 9.3, but planned for 9.4. So we'll have to continue our library liking order hack stuff until then. I haven't quite got this working yet, but have been told it does work. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From cclabaugh at centwire.com Mon Jan 19 06:50:22 2009 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Mon, 19 Jan 2009 09:50:22 -0500 Subject: [mapserver-users] google tiles Message-ID: <009a01c97a45$411cac20$c3560460$@com> Greetings, I have been trying to generate google tiles from shapefiles using mapserver. I have been able to successfully generate maps by calling the url http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map &mode=map . but when I attempt to use the url http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage .map &mode=tile&tile=4+6+4 I receive only empty images, regardless of tile specified. Thanks for any help! MAP NAME COVERAGE STATUS ON SIZE 1400 900 EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000 UNITS METERS SHAPEPATH "shapefiles" IMAGECOLOR 220 220 220 IMAGETYPE PNG PROJECTION "init=epsg:4326" END LAYER NAME CoverageMap TYPE POLYGON STATUS DEFAULT DATA notforchad CLASS STYLE OUTLINECOLOR 255 128 128 COLOR 225 0 0 END END END END Chad Clabaugh Technical Support, Engineering Office: 260.760.6398 Mobile: 260.466.8861 -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Mon Jan 19 07:26:37 2009 From: danlittle at yahoo.com (Dan Little) Date: Mon, 19 Jan 2009 07:26:37 -0800 (PST) Subject: [mapserver-users] Unable to open file for writing in windows(plz immediate response) References: Message-ID: <677460.5989.qm@web51408.mail.re2.yahoo.com> Do you even have a "/opt" directory (and the related sub-paths in windows)? It just seems to be a very Linux construction. Regardless, are you running Apache as a windows service? ________________________________ From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Monday, January 19, 2009 7:18:37 AM Subject: Re: [mapserver-users] Unable to open file for writing in windows(plz immediate response) But in windows how I will check wheather apache user can write to that folder. Actually in linux my application is running ok. but in windows vista, I cant find the daemon apache user as in httpd.conf file daemon is mentioned as usr and group. But how I will give permission to this user for writing to that folder. Please help immediate...... On Wed, Jan 7, 2009 at 7:11 PM, Dan Little wrote: Make sure your apache user can write to that directory, also make sure they can cd into that directory. -Duck ________________________________ From: MOHAMMED SADIQUE SHADAB To: mapserver-users at lists.osgeo.org Sent: Wednesday, January 7, 2009 5:13:28 AM Subject: [mapserver-users] Unable to open file /opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing hi unable to generate image that is (.png) in FGS after giving the URL as URL:http://localhost:9000/cgi-bin/mapserv please help me immediately thanks regards SHADAB _______________________________________________ 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 yassefa at dmsolutions.ca Mon Jan 19 07:25:15 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 19 Jan 2009 10:25:15 -0500 Subject: [mapserver-users] mapObj.getlayersdrawingorder In-Reply-To: References: Message-ID: <49749B5B.7040001@dmsolutions.ca> Hi there, You probably meant you did a call like this $oMap->getLayersDrawingOrder(), which is the correct syntax to use in php ? Quick test using ms4w 2.3.1 environment returns expected result: getLayersDrawingOrder()); ?> Assefa Bal?zs B?mer wrote: > Hi All, > > I tried to call MapObj.getlayersdrawingorder() from PHP Mapscript > (ms4w 2.3.1 with MapServer 5.2.1, PHP 5.2.6). PHP script terminates. > Same result for MapObj.getLayersDrawingOrder() (the PDF description is > ambiguous about these names). > > How it is called? Is it really usable? In the appropriate .dll file > both names appear. > > thanx in advance: Bal?zs B?mer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at pobox.com Mon Jan 19 08:52:06 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 19 Jan 2009 11:52:06 -0500 Subject: [mapserver-users] Error messages contain private info In-Reply-To: <20090117103925.GA12668@eldorado.topf.org> References: <20090116133537.GA25563@localhost.localdomain> <4970936D.5070407@pobox.com> <20090117103925.GA12668@eldorado.topf.org> Message-ID: <4974AFB6.4010005@pobox.com> Jochen Topf wrote: > On Fri, Jan 16, 2009 at 09:02:21AM -0500, Frank Warmerdam wrote: >> Jochen Topf wrote: >>> When using Mapserver with a database and there is an error connecting to >>> the database the error message sent to the client contains the database >>> connect string including the password! Thats never a good idea. Can this >>> be changed somehow? >> Jochen, >> >> I would suggest you review: >> >> http://mapserver.org/development/rfc/ms-rfc-18.html > > That seems like a rather complex solution and it falls short in several > aspects: > * Security should be the default, not some add-on > * It only protects passwords not the rest of the information. > > Generally services should not leak any internal information to the outside > world. Passwords are only the worst case here. But anything like host > names, file names, database names, URLs auf cascaded WMSes etc. should > not ever get outside! > > If there is an error this information should go into a log file. You can > output a time stamp or some kind of id in the error message so that you > can find the corresponding log messages. For servers only used > internally where you don't mind the information leak or for debugging of > a new setup there could be an option to output error messages to the > client. But thats would only be an option which is off by default. > > See http://www.owasp.org/index.php/Top_10_2007-A6 for more on this. Jochen, Well, luckily we are an open community. Perhaps you would like to prepare an RFC on a comprehensive solution and once approved begin work on an implementation. Be aware we are somewhat itchy about backward compatibility on this project. 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 randre at gmail.com Mon Jan 19 09:02:52 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 19 Jan 2009 09:02:52 -0800 Subject: [mapserver-users] google tiles In-Reply-To: <009a01c97a45$411cac20$c3560460$@com> References: <009a01c97a45$411cac20$c3560460$@com> Message-ID: <9c2015090901190902lfa978c2u71cdb36bd95b2776@mail.gmail.com> Hi Chad, I wasn't aware that "tile" is a valid mode of operation for Mapserver. I looked on http://mapserver.org/cgi/controls.html and didn't see it referenced there, but its entirely possible that it exists and that I've just missed it. In any case, the way I'm familiar with generating google map tiles is via the use of Tilecache. Tilecache works as in intermediary between Mapserver and your Google map. It make the appropriate request to Mapserver for a tile, and then returns the tile to your map. I think this might be the solution you're looking for, http://tilecache.org/. Best of luck, Roger -- On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh wrote: > Greetings, > > I have been trying to generate google tiles from shapefiles using > mapserver. I have been able to successfully generate maps by calling the > url > http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map&mode=map. but when I attempt to use the url > http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map&mode=tile&tile=4+6+4 > I receive only empty images, regardless of tile specified. > > > > Thanks for any help! > > > > MAP > > NAME COVERAGE > > STATUS ON > > SIZE 1400 900 > > EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000 > > UNITS METERS > > SHAPEPATH "shapefiles" > > IMAGECOLOR 220 220 220 > > > > IMAGETYPE PNG > > > > PROJECTION > > "init=epsg:4326" > > END > > > > LAYER > > NAME CoverageMap > > TYPE POLYGON > > STATUS DEFAULT > > DATA notforchad > > > > CLASS > > STYLE > > OUTLINECOLOR 255 128 128 > > COLOR 225 0 0 > > END > > END > > > > END > > END > > > > Chad Clabaugh > > Technical Support, Engineering > > Office: 260.760.6398 > > Mobile: 260.466.8861 > > > > _______________________________________________ > 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 msieczka at sieczka.org Sat Jan 10 13:21:52 2009 From: msieczka at sieczka.org (Maciej Sieczka) Date: Sat, 10 Jan 2009 22:21:52 +0100 Subject: [mapserver-users] missing colors with an xml color table Message-ID: <49691170.5000706@sieczka.org> Hi! There are missing colors when rendering a raster map with a colortable stored in an xml file. Example: I have an ESRI ASCII GRID with a colortable in xml (the files along with a mapfile all attached as smp.zip). Rendering the raster in QGIS I get a picture as the attached smp_qgis.png - which is OK. Rendering it with MapServer the result is as in the attached smp_ms.png - lacking the grey&black tones. Why the difference? Could/should MapServer follow QGIS behaviour? Using GDAL 1.6, MapServer 5.2.0 and QGIS 1.0 on Debian testing amd64. The command to reproduce the smp_ms.png: shp2img -e -4 20 36 61 -s 640 480 -m smp.map -o smp_ms.png Maciek -- Maciej Sieczka www.sieczka.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smp_qgis.png Type: image/png Size: 12949 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smp_ms.png Type: image/png Size: 25694 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smp.zip Type: application/zip Size: 22179 bytes Desc: not available URL: From msieczka at sieczka.org Sat Jan 10 14:24:22 2009 From: msieczka at sieczka.org (Maciej Sieczka) Date: Sat, 10 Jan 2009 23:24:22 +0100 Subject: [mapserver-users] missing colors with an xml color table Message-ID: <49692016.90102@sieczka.org> Hi! There are missing colors when rendering a raster map with a colortable stored in an xml file. Example: I have an ESRI ASCII GRID with a colortable in xml (the files along with a mapfile all attached as smp.tar.bz). Rendering the raster in QGIS I get a picture as the attached smp_qgis.png - which is OK. Rendering it with MapServer the result is as in the attached smp_ms.png - lacking the grey&black tones. Why the difference? Could/should MapServer follow QGIS behaviour? Using GDAL 1.6, MapServer 5.2.0 and QGIS 1.0 on Debian testing amd64. The command to reproduce the smp_ms.png: shp2img -e -4 20 36 61 -s 640 480 -m smp.map -o smp_ms.png Maciek -- Maciej Sieczka www.sieczka.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smp_qgis.png Type: image/png Size: 8738 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smp_ms.png Type: image/png Size: 5286 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smp.tar.bz2 Type: application/x-bzip Size: 16835 bytes Desc: not available URL: From msieczka at sieczka.org Sat Jan 10 14:28:30 2009 From: msieczka at sieczka.org (Maciej Sieczka) Date: Sat, 10 Jan 2009 23:28:30 +0100 Subject: [mapserver-users] missing colors with an xml color table Message-ID: <4969210E.1050403@sieczka.org> Hi! There are missing colors when rendering a raster map with a colortable stored in an xml file. Example: I have an ESRI ASCII GRID with a colortable in xml (the files along with a mapfile all available at http://www.sieczka.org/tmp/smp.zip). Rendering the raster in QGIS I get a picture as the attached smp_qgis.png - which is OK. Rendering it with MapServer the result is as in the attached smp_ms.png - lacking the grey&black tones. Why the difference? Could/should MapServer follow QGIS behaviour? Using GDAL 1.6, MapServer 5.2.0 and QGIS 1.0 on Debian testing amd64. The command to reproduce the smp_ms.png: shp2img -e -4 20 36 61 -s 640 480 -m smp.map -o smp_ms.png Maciek -- Maciej Sieczka www.sieczka.org -------------- next part -------------- A non-text attachment was scrubbed... Name: smp_qgis.png Type: image/png Size: 12949 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smp_ms.png Type: image/png Size: 25694 bytes Desc: not available URL: From hrodriguez at siscat.com.ar Tue Jan 13 08:01:19 2009 From: hrodriguez at siscat.com.ar (Rodriguez, Heraldo) Date: Tue, 13 Jan 2009 14:01:19 -0200 Subject: [mapserver-users] Java mapscript Crash in Ubuntu Hardy Message-ID: <296E5F9B6BB1C445BDDC9C94FC83835E1F4B09@ZEUS-Exchg2k3.sc.com> Hi everyone, We are having problems using a java mapscript application in Ubuntu hardy Heron ( server edition). After calling the drawQuery method the VM crashes with the following error message An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xb1af4d6d, pid=16666, tid=2982337424 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_15-b04 mixed mode, sharing) # Problematic frame: # C [libmapscript.so+0xa4d6d] msPolylineLabelPath+0x74d This application is already working in a debian etch server with same vm and mapserver version . Differences are postgres 8.1 instead of postgres 8.3 and some libraries such as swig 1.3.22 vs 1.3.33 We tested upgrading to mapserver 5.2.1 with same results. Thanks in advance . Heraldo Additional Info SO Ubuntu 8.04 Kernel 2.6.24-22 JVM VERSION jdk-1_5_0_15 MAPSERVER VERSION 5.2.0 Configure setting ./configure --with-postgis=/usr/bin/pg_config --enable-debug --with-threads --without-pdf --without-tiff --with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config --with-freetype=/usr/bin --with-png=/usr/bin --with-libiconv=/usr/bin/iconv --without-xpm --with-zlib=/usr --without-eppl --with-agg=/usr/local --without-mygis --with-gd=/usr LOG POST ( configure) ## --------- ## ## Platform. ## ## --------- ## hostname = mapserver uname -m = i686 uname -r = 2.6.24-22 uname -s = Linux uname -v = #1 SMP Mon Nov 24 19:55:07 UTC 2008 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/java/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1955: checking for gcc configure:1971: found /usr/bin/gcc configure:1982: result: gcc configure:2220: checking for C compiler version configure:2227: gcc --version >&5 gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2230: $? = 0 configure:2237: gcc -v >&5 Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3) configure:2240: $? = 0 configure:2247: gcc -V >&5 gcc: '-V' option must have argument configure:2250: $? = 1 configure:2273: checking for C compiler default output file name configure:2300: gcc conftest.c >&5 configure:2303: $? = 0 configure:2341: result: a.out configure:2358: checking whether the C compiler works configure:2368: ./a.out configure:2371: $? = 0 configure:2388: result: yes configure:2395: checking whether we are cross compiling configure:2397: result: no configure:2400: checking for suffix of executables configure:2407: gcc -o conftest conftest.c >&5 configure:2410: $? = 0 configure:2434: result: configure:2440: checking for suffix of object files configure:2466: gcc -c conftest.c >&5 configure:2469: $? = 0 configure:2492: result: o configure:2496: checking whether we are using the GNU C compiler configure:2525: gcc -c conftest.c >&5 configure:2531: $? = 0 configure:2548: result: yes configure:2553: checking whether gcc accepts -g configure:2583: gcc -c -g conftest.c >&5 configure:2589: $? = 0 configure:2688: result: yes configure:2705: checking for gcc option to accept ISO C89 configure:2779: gcc -c -g -O2 conftest.c >&5 configure:2785: $? = 0 configure:2808: result: none needed configure:2884: checking for g++ configure:2900: found /usr/bin/g++ configure:2911: result: g++ configure:2942: checking for C++ compiler version configure:2949: g++ --version >&5 g++ (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2952: $? = 0 configure:2959: g++ -v >&5 Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3) configure:2962: $? = 0 configure:2969: g++ -V >&5 g++: '-V' option must have argument configure:2972: $? = 1 configure:2975: checking whether we are using the GNU C++ compiler configure:3004: g++ -c conftest.cpp >&5 configure:3010: $? = 0 configure:3027: result: yes configure:3032: checking whether g++ accepts -g configure:3062: g++ -c -g conftest.cpp >&5 configure:3068: $? = 0 configure:3167: result: yes configure:3233: checking for ranlib configure:3249: found /usr/bin/ranlib configure:3260: result: ranlib configure:3291: checking for flex configure:3321: result: no configure:3291: checking for lex configure:3321: result: no configure:3495: checking for bison configure:3525: result: no configure:3495: checking for byacc configure:3525: result: no configure:3535: checking if compiler supports -R configure:3564: gcc -o conftest -g -O2 conftest.c -R /usr/lib >&5 gcc: unrecognized option '-R' /usr/bin/ld: /usr/lib: No such file: File format not recognized collect2: ld returned 1 exit status configure:3570: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3589: result: no configure:3596: checking if compiler supports -Wl,-rpath, configure:3625: gcc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib >&5 configure:3631: $? = 0 configure:3650: result: yes configure:3726: checking for exp in -lm configure:3761: gcc -o conftest -g -O2 conftest.c -lm >&5 conftest.c:15: warning: conflicting types for built-in function 'exp' configure:3767: $? = 0 configure:3785: result: yes configure:3794: checking for __gxx_personality_v0 in -lstdc++ configure:3829: gcc -o conftest -g -O2 conftest.c -lstdc++ >&5 configure:3835: $? = 0 configure:3853: result: yes configure:3869: checking how to run the C preprocessor configure:3909: gcc -E conftest.c configure:3915: $? = 0 configure:3946: gcc -E conftest.c conftest.c:8:28: error: ac_nonexistent.h: No such file or directory configure:3952: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include configure:3985: result: gcc -E configure:4014: gcc -E conftest.c configure:4020: $? = 0 configure:4051: gcc -E conftest.c conftest.c:8:28: error: ac_nonexistent.h: No such file or directory configure:4057: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | #include configure:4095: checking for grep that handles long lines and -e configure:4169: result: /bin/grep configure:4174: checking for egrep configure:4252: result: /bin/grep -E configure:4257: checking for ANSI C header files configure:4287: gcc -c -g -O2 conftest.c >&5 configure:4293: $? = 0 configure:4392: gcc -o conftest -g -O2 conftest.c -lm -lstdc++ >&5 configure:4395: $? = 0 configure:4401: ./conftest configure:4404: $? = 0 configure:4421: result: yes configure:4447: checking for strcasecmp configure:4503: gcc -o conftest -g -O2 -fPIC conftest.c -lm -lstdc++ >&5 conftest.c:32: warning: conflicting types for built-in function 'strcasecmp' configure:4509: $? = 0 configure:4526: result: yes configure:4534: checking for strncasecmp configure:4590: gcc -o conftest -g -O2 -fPIC conftest.c -lm -lstdc++ >&5 conftest.c:32: warning: conflicting types for built-in function 'strncasecmp' configure:4596: $? = 0 configure:4613: result: yes configure:4621: checking for strdup configure:4677: gcc -o conftest -g -O2 -fPIC conftest.c -lm -lstdc++ >&5 conftest.c:32: warning: conflicting types for built-in function 'strdup' configure:4683: $? = 0 configure:4700: result: yes configure:4708: checking for strrstr configure:4764: gcc -o conftest -g -O2 -fPIC conftest.c -lm -lstdc++ >&5 /tmp/ccig9Kke.o: In function `main': /usr/local/src/mapserver-5.2.0/conftest.c:43: undefined reference to `strrstr' collect2: ld returned 1 exit status configure:4770: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define STDC_HEADERS 1 | /* end confdefs.h. */ | /* Define strrstr to an innocuous variant, in case declares strrstr. | For example, HP-UX 11i declares gettimeofday. */ | #define strrstr innocuous_strrstr | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char strrstr (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef strrstr | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char strrstr (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_strrstr || defined __stub___strrstr | choke me | #endif | | int | main () | { | return strrstr (); | ; | return 0; | } configure:4787: result: no configure:4795: checking for strlcat configure:4851: gcc -o conftest -g -O2 -fPIC conftest.c -lm -lstdc++ >&5 /tmp/ccOjfdAB.o: In function `main': /usr/local/src/mapserver-5.2.0/conftest.c:43: undefined reference to `strlcat' collect2: ld returned 1 exit status configure:4857: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define STDC_HEADERS 1 | /* end confdefs.h. */ | /* Define strlcat to an innocuous variant, in case declares strlcat. | For example, HP-UX 11i declares gettimeofday. */ | #define strlcat innocuous_strlcat | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char strlcat (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef strlcat | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char strlcat (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_strlcat || defined __stub___strlcat | choke me | #endif | | int | main () | { | return strlcat (); | ; | return 0; | } configure:4874: result: no configure:4882: checking for vsnprintf configure:4938: gcc -o conftest -g -O2 -fPIC conftest.c -lm -lstdc++ >&5 conftest.c:32: warning: conflicting types for built-in function 'vsnprintf' configure:4944: $? = 0 configure:4961: result: yes configure:4971: result: MapServer Version from mapserver.h: '5.2.0' configure:4977: checking if pkg-config path is provided configure:5001: checking for pkg-config configure:5019: found /usr/bin/pkg-config configure:5032: result: /usr/bin/pkg-config configure:5076: checking where FreeType 2.x is installed... configure:5089: checking for freetype-config configure:5107: found /usr/bin/freetype-config configure:5120: result: /usr/bin/freetype-config configure:5133: result: using libfreetype from -lfreetype -lz configure:5195: checking for FT_Init_FreeType in -lfreetype configure:5230: gcc -o conftest -g -O2 -fPIC conftest.c -lfreetype -lm -lstdc++ >&5 configure:5236: $? = 0 configure:5254: result: yes configure:5262: result: using libfreetype -lfreetype from system libs. configure:5290: checking where Zlib is installed... configure:5362: checking for zlibVersion in -lz configure:5397: gcc -o conftest -g -O2 -fPIC conftest.c -lz -lm -lstdc++ >&5 configure:5403: $? = 0 configure:5421: result: yes configure:5430: result: using libz from system libs (-DUSE_ZLIB). configure:5470: checking where PNG is installed... configure:5509: checking for png_init_io in -lpng configure:5544: gcc -o conftest -g -O2 -fPIC conftest.c -lpng -lz -lm -lstdc++ >&5 configure:5550: $? = 0 configure:5568: result: yes configure:5576: result: using libpng from system libs. configure:5588: checking whether we should include JPEG support... configure:5743: checking for jpeg_read_header in -ljpeg configure:5778: gcc -o conftest -g -O2 -fPIC conftest.c -ljpeg -lm -lstdc++ >&5 configure:5784: $? = 0 configure:5802: result: yes configure:5811: result: using libjpeg from system libs. configure:5982: checking where libiconv is installed... configure:6001: checking for iconv_open in -lc configure:6036: gcc -o conftest -g -O2 -fPIC conftest.c -lc -L -lm -lstdc++ >&5 configure:6042: $? = 0 configure:6060: result: yes configure:6066: checking for libiconv_open in -liconv configure:6101: gcc -o conftest -g -O2 -fPIC conftest.c -liconv -L -lm -lstdc++ >&5 /usr/bin/ld: cannot find -liconv collect2: ld returned 1 exit status configure:6107: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char libiconv_open (); | int | main () | { | return libiconv_open (); | ; | return 0; | } configure:6125: result: no configure:6131: checking for iconv_open in -liconv configure:6166: gcc -o conftest -g -O2 -fPIC conftest.c -liconv -L -lm -lstdc++ >&5 /usr/bin/ld: cannot find -liconv collect2: ld returned 1 exit status configure:6172: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define STDC_HEADERS 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char iconv_open (); | int | main () | { | return iconv_open (); | ; | return 0; | } configure:6190: result: no configure:6203: result: using libiconv from -L -lc configure:6441: result: libiconv found. Enabling internationalization (-DUSE_ICONV) configure:6483: checking for GD 2.0.16 or higher... configure:6710: checking for gdFontCacheSetup in -lgd configure:6745: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:6751: $? = 0 configure:6769: result: yes configure:6852: result: using libgd 2.0.16 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz ). configure:7451: checking for gdImageCreate in -lgd configure:7486: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:7492: $? = 0 configure:7510: result: yes configure:7522: checking for gdImageGif in -lgd configure:7557: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:7563: $? = 0 configure:7581: result: yes configure:7587: checking for gdImagePng in -lgd configure:7622: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:7628: $? = 0 configure:7646: result: yes configure:7652: checking for gdImageJpeg in -lgd configure:7687: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:7693: $? = 0 configure:7711: result: yes configure:7717: checking for gdImageWBMP in -lgd configure:7752: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:7758: $? = 0 configure:7776: result: yes configure:7783: checking for gdImageStringFT in -lgd configure:7818: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:7824: $? = 0 configure:7842: result: yes configure:7849: checking for gdImageOpenPolygon in -lgd configure:7884: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:7890: $? = 0 configure:7908: result: yes configure:7915: checking for gdImageGifPtr in -lgd configure:7950: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:7956: $? = 0 configure:7974: result: yes configure:7981: checking for gdFontGetTiny in -lgd configure:8016: gcc -o conftest -g -O2 -fPIC conftest.c -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lm -lstdc++ >&5 configure:8022: $? = 0 configure:8040: result: yes configure:8049: result: using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS) from system libs. configure:8087: checking whether we should include PDF support... configure:8096: result: disabled by --without-pdf configure:9023: checking if AGG support requested configure:9043: result: looking for agg libs in /usr configure:9090: result: using libagg from /usr configure:9097: result: using libaggfontfreetype from /usr configure:9163: checking if RGBA palette png support requested configure:9173: result: no configure:9689: checking whether we should include EPPL7 support... configure:9698: result: disabled by --without-eppl configure:9722: checking whether we should include PROJ.4 support... configure:10013: result: PROJ.4 support not requested. configure:10032: checking whether we should include thread safe support... configure:10043: checking for pthread_create in -lpthread configure:10078: gcc -o conftest -g -O2 -fPIC conftest.c -lpthread -lm -lstdc++ >&5 configure:10084: $? = 0 configure:10102: result: yes configure:10111: result: using -lpthread from system libs. configure:10141: checking whether we should include ESRI SDE support... configure:10654: result: ESRI SDE support not requested. configure:10670: checking if GEOS support requested configure:10801: result: no configure:10807: checking whether we should include OGR support... configure:10823: checking for gdal-config configure:10841: found /usr/bin/gdal-config configure:10854: result: /usr/bin/gdal-config configure:10875: result: OGR enabled (-DUSE_OGR). configure:10889: checking if GDAL support requested configure:10901: result: yes configure:11005: checking checking ms JPEG output configure:11009: result: no we, have GDAL available. configure:11023: checking whether we should include TIFF support... configure:11036: result: disabled by --without-tiff configure:11191: checking if PostGIS support requested configure:11206: result: yes configure:11210: checking for pg_config configure:11228: found /usr/bin/pg_config configure:11241: result: /usr/bin/pg_config configure:11258: result: yes, user supplied pg_config configure:11277: checking if MyGIS support requested configure:11288: result: no configure:11365: checking if OracleSpatial support requested configure:11375: result: no configure:11443: checking if MING/Flash support requested configure:11453: result: no configure:11484: checking whether we should include WMS Server support... configure:11500: result: OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). configure:11518: checking whether we should include WFS Server support... configure:11529: result: OGC WFS Server support not requested. configure:11559: checking whether we should include WCS Server support... configure:11569: result: OGC WCS Server support not requested. configure:11591: checking whether we should include WMS Client Connections support... configure:11607: result: OGC WMS Client Connections not enabled (PROJ.4 and libcurl required). configure:11617: checking whether we should include WFS Client Connections support... configure:11633: result: OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR required). configure:11643: checking whether we should include OGC SOS Server support... configure:11654: result: OGC SOS Server support not requested. configure:11677: checking for curl-config... configure:11782: checking for libxml2 configure:11810: result: libxml2 not required. configure:11906: checking if FriBidi support requested configure:11917: result: no configure:12016: checking FastCGI support configure:12027: result: not requested. configure:12129: checking HTTPD server (Apache) version... configure:12165: checking for httpd configure:12200: result: no configure:12208: result: 'httpd' not found, skipping Apache version detection. You may want to use --with-httpd=/path/to/httpd configure:12310: result: Compiling with fast MS_NINT configure:12318: checking compiler warnings configure:12346: result: basic configure:12372: checking whether we should enable debug features... configure:12383: result: Enabling debug features: -g in CFLAGS. configure:12406: checking for PHP/MapScript module options... configure:12774: result: PHP/MapScript module not configured. configure:13045: checking if --enable-runpath requested configure:13055: result: no configure:13063: checking if --with-java-include-os-name specified configure:13084: result: no, autodetected linux configure:13235: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on mapserver config.status:703: creating Makefile config.status:703: creating mapscript/java/Makefile config.status:703: creating mapscript/csharp/Makefile configure:14281: result: configure:14283: result: MapServer is now configured for configure:14285: result: configure:14287: result: -------------- Compiler Info ------------- configure:14289: result: C compiler: gcc -g -O2 -fPIC -Wall configure:14291: result: C++ compiler: g++ -g -O2 -fPIC -Wall configure:14293: result: Debug: -g configure:14295: result: Generic NINT: configure:14297: result: configure:14299: result: -------------- Renderer Settings --------- configure:14301: result: zlib support: -DUSE_ZLIB configure:14303: result: png support: configure:14305: result: palette rgba png support: configure:14307: result: jpeg support: configure:14309: result: iconv support: -DUSE_ICONV configure:14311: result: AGG support: -DUSE_AGG configure:14313: result: AGG Freetype support: -laggfontfreetype configure:14315: result: Ming(flash) support: configure:14317: result: PDFLib support: configure:14319: result: configure:14322: result: -------------- Support Libraries --------- configure:14324: result: Proj.4 support: configure:14326: result: Libxml2 support: configure:14328: result: FriBidi support: configure:14330: result: Curl support: configure:14332: result: FastCGI support: configure:14334: result: Threading support: -DUSE_THREAD configure:14336: result: GEOS support: configure:14338: result: configure:14341: result: -------------- Data Format Drivers ------- configure:14343: result: native tiff support: configure:14345: result: PostGIS support: -DUSE_POSTGIS configure:14347: result: EPPL7 support: configure:14349: result: ArcSDE support: configure:14351: result: OGR support: -DUSE_OGR configure:14353: result: GDAL support: -DUSE_GDAL configure:14355: result: Oracle Spatial support: configure:14357: result: configure:14360: result: -------------- OGC Services -------------- configure:14362: result: WMS Server: configure:14364: result: WMS Client: configure:14366: result: WFS Server: configure:14368: result: WFS Client: configure:14370: result: WCS Server: configure:14372: result: SOS Server: configure:14374: result: configure:14377: result: -------------- MapScript ----------------- configure:14383: result: PHP MapScript: no configure:14387: result: ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_YACC_set= ac_cv_env_YACC_value= ac_cv_env_YFLAGS_set= ac_cv_env_YFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_func_strcasecmp=yes ac_cv_func_strdup=yes ac_cv_func_strlcat=no ac_cv_func_strncasecmp=yes ac_cv_func_strrstr=no ac_cv_func_vsnprintf=yes ac_cv_header_stdc=yes ac_cv_lib_c_iconv_open=yes ac_cv_lib_freetype_FT_Init_FreeType=yes ac_cv_lib_gd_gdFontCacheSetup=yes ac_cv_lib_gd_gdFontGetTiny=yes ac_cv_lib_gd_gdImageCreate=yes ac_cv_lib_gd_gdImageGif=yes ac_cv_lib_gd_gdImageGifPtr=yes ac_cv_lib_gd_gdImageJpeg=yes ac_cv_lib_gd_gdImageOpenPolygon=yes ac_cv_lib_gd_gdImagePng=yes ac_cv_lib_gd_gdImageStringFT=yes ac_cv_lib_gd_gdImageWBMP=yes ac_cv_lib_iconv_iconv_open=no ac_cv_lib_iconv_libiconv_open=no ac_cv_lib_jpeg_jpeg_read_header=yes ac_cv_lib_m_exp=yes ac_cv_lib_png_png_init_io=yes ac_cv_lib_pthread_pthread_create=yes ac_cv_lib_stdcpp___gxx_personality_v0=yes ac_cv_lib_z_zlibVersion=yes ac_cv_objext=o ac_cv_path_EGREP='/bin/grep -E' ac_cv_path_FT_BIN=/usr/bin/freetype-config ac_cv_path_GDAL_CONFIG=/usr/bin/gdal-config ac_cv_path_GREP=/bin/grep ac_cv_path_HTTPD= ac_cv_path_PG_CONFIG=/usr/bin/pg_config ac_cv_path_PKG_CONFIG=/usr/bin/pkg-config ac_cv_prog_CPP='gcc -E' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes php_cv_cc_dashr=no php_cv_cc_rpath=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## AGG_ENABLED='-DUSE_AGG' AGG_FT_DIR='' AGG_FT_OBJ='' AGG_INC='-I/usr/include/agg2 -I/usr/include/freetype2' AGG_LIB='-L/usr/lib -lagg -laggfontfreetype' ALL_ENABLED=' -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB ' ALL_INC=' -I/usr/include/postgresql -I/usr/include/gdal -I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/include ' ALL_LIB=' -L/usr/lib -lpq -ljpeg -lfreetype -lpng -lz -L/usr/lib -lgdal1.4.0 -L/usr/lib -lgeos -lgeos_c -lodbc -lodbcinst -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdf -ldf -logdi -lgif -ljpeg -ltiff -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lsqlite3 -lcurl -lgssapi_krb5 -L/usr/lib/mysql -lmysqlclient -lpthread -L/usr/lib -lagg -laggfontfreetype -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -L -lc -lz ' ALL_STATIC_LIB=' ' APACHE_INC='' CC='gcc' CFLAGS='-g -O2 -fPIC -Wall ' CPP='gcc -E' CPPFLAGS='' CURL_INC='' CURL_LIB='' CXX='g++' CXXFLAGS='-g -O2 -fPIC -Wall ' C_PIC='-fPIC' DEBUG_FLAGS='' DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' EPPL_ENABLED='' EPPL_OBJ='' EXEEXT='' FASTCGI_ENABLED='' FASTCGI_INC='' FASTCGI_LIB='' FRIBIDI_CONFIG='no' FRIBIDI_ENABLED='' FRIBIDI_INC='' FRIBIDI_LIB='' FT_BIN='/usr/bin/freetype-config' GDAL_CONFIG='/usr/bin/gdal-config' GDAL_ENABLED='-DUSE_GDAL' GDAL_INC='-I/usr/include/gdal' GDAL_LIB='-L/usr/lib -lgdal1.4.0 -L/usr/lib -lgeos -lgeos_c -lodbc -lodbcinst -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdf -ldf -logdi -lgif -ljpeg -ltiff -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lsqlite3 -lcurl -lgssapi_krb5 -L/usr/lib/mysql -lmysqlclient' GD_DEF=' -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS' GD_INC='-I/usr/include' GD_LIB='-lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz ' GD_STATIC='' GEOS_CONFIG='' GEOS_ENABLED='' GEOS_INC='' GEOS_LIB='' GREP='/bin/grep' HTTPD='' ICONV_ENABLED='-DUSE_ICONV' ICONV_INC='' ICONV_LIB='-L -lc' IGNORE_MISSING_DATA='' JPEG_ENABLED='' JPEG_INC='' JPEG_LIB='-ljpeg' LDFLAGS='' LD_SHARED='g++ -shared ' LEX=':' LEXLIB='' LEX_OUTPUT_ROOT='' LIBCURL_CONFIG='' LIBOBJS='' LIBS=' -lm -lstdc++ ' LIBXML2_CONFIG='' LTLIBOBJS='' MAKE_GD='' MAKE_GD_CLEAN='' MAKE_PHPMS='' MAKE_PHPMS_CLEAN='' MING_ENABLED='' MING_INC='' MING_LIB='' MS_INC='-I/usr/local/src/mapserver-5.2.0' MS_LIB='-L/usr/local/src/mapserver-5.2.0 -lmapserver' MS_VERSION='5.2.0' MYGIS_ENABLED='' MYGIS_INC='' MYGIS_LIB='' MY_CONFIG='no' OBJEXT='o' OGR_ENABLED='-DUSE_OGR' ORACLESPATIAL_ENABLED='' ORACLESPATIAL_INC='' ORACLESPATIAL_LIB='' OS_INCLUDE_DIR='linux' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PDF_ENABLED='' PDF_INC='' PDF_LIB='' PG_CONFIG='/usr/bin/pg_config' PHP_CC='' PHP_LD='' PHP_LD_SHARED='' PHP_REGEX_INC='' PHP_REGEX_OBJ='' PHP_SRC_DIR='' PHP_VERSION_FLAG='' PKG_CONFIG='/usr/bin/pkg-config' PNG_INC='' PNG_LIB='-lpng' POSTGIS_ENABLED='-DUSE_POSTGIS' POSTGIS_INC='-I/usr/include/postgresql' POSTGIS_LIB='-L/usr/lib -lpq' PROJ_ENABLED='' PROJ_INC='' PROJ_LIBS='' RANLIB='ranlib' RGBA_PNG_ENABLED='' RPATHS='' SDE_ENABLED='' SDE_INC='' SDE_LIB='' SHELL='/bin/bash' SOS_SVR_ENABLED='' SO_COMMAND_NAME='-soname' SO_EXT='so' STRINGS='-DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR ' THREAD_FLAG='-DUSE_THREAD' THREAD_LIB='-lpthread' TIFF_ENABLED='' TIFF_INC='' TIFF_LIB=' -ljpeg -lfreetype -lpng -lz ' USE_NINT='' USE_PHP_REGEX='' USE_POINT_Z_M='' WCS_SVR_ENABLED='' WFS_LYR_ENABLED='' WFS_SVR_ENABLED='' WMS_LYR_ENABLED='' WMS_SVR_ENABLED='' XML2_INC='' XML2_LIB='' XTRALIBS=' -lm -lstdc++' YACC='yacc' YFLAGS='' ZLIB_ENABLED='-DUSE_ZLIB' ZLIB_INC='' ZLIB_LIB='-lz' ac_ct_CC='gcc' ac_ct_CXX='g++' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='${prefix}' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define STDC_HEADERS 1 configure: exit 0 Lic. Heraldo G. Rodriguez hrodriguez at siscat.com.ar TEL: 54-11-4326-4002 int 255 Dpto. Desarrollo Sistemas Catastrales S.A -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 1283 bytes Desc: image001.jpg URL: From pcreso at pcreso.com Sat Jan 17 15:17:13 2009 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sat, 17 Jan 2009 15:17:13 -0800 (PST) Subject: [mapserver-users] Government Open Source Software Resource Center Message-ID: <687882.41531.qm@web33204.mail.mud.yahoo.com> Apologies for scatter posting this, but I have not seen it mentioned anywhere before, and it seems an interesting initiative for anyone using or planning to use FOSS tools, etc, in government related projects. Generally: http://www.gossrc.org/ And specifically geographically related: http://www.gossrc.org/geographical Cheers, Brent Wood From cclabaugh at centwire.com Mon Jan 19 10:29:35 2009 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Mon, 19 Jan 2009 13:29:35 -0500 Subject: [mapserver-users] google tiles In-Reply-To: <9c2015090901190902lfa978c2u71cdb36bd95b2776@mail.gmail.com> References: <009a01c97a45$411cac20$c3560460$@com> <9c2015090901190902lfa978c2u71cdb36bd95b2776@mail.gmail.com> Message-ID: <00be01c97a63$e15d9f50$a418ddf0$@com> Thanks for your reply Roger. The spec for tilemode is at http://mapserver.org/output/tile_mode.html But I?ll definitely look into TileCache as well. From: Roger Andr? [mailto:randre at gmail.com] Sent: Monday, January 19, 2009 12:03 PM To: Chad Clabaugh Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] google tiles Hi Chad, I wasn't aware that "tile" is a valid mode of operation for Mapserver. I looked on http://mapserver.org/cgi/controls.html and didn't see it referenced there, but its entirely possible that it exists and that I've just missed it. In any case, the way I'm familiar with generating google map tiles is via the use of Tilecache. Tilecache works as in intermediary between Mapserver and your Google map. It make the appropriate request to Mapserver for a tile, and then returns the tile to your map. I think this might be the solution you're looking for, http://tilecache.org/. Best of luck, Roger -- On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh wrote: Greetings, I have been trying to generate google tiles from shapefiles using mapserver. I have been able to successfully generate maps by calling the url http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map &mode=map . but when I attempt to use the url http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage .map &mode=tile&tile=4+6+4 I receive only empty images, regardless of tile specified. Thanks for any help! MAP NAME COVERAGE STATUS ON SIZE 1400 900 EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000 UNITS METERS SHAPEPATH "shapefiles" IMAGECOLOR 220 220 220 IMAGETYPE PNG PROJECTION "init=epsg:4326" END LAYER NAME CoverageMap TYPE POLYGON STATUS DEFAULT DATA notforchad CLASS STYLE OUTLINECOLOR 255 128 128 COLOR 225 0 0 END END END END Chad Clabaugh Technical Support, Engineering Office: 260.760.6398 Mobile: 260.466.8861 _______________________________________________ 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 valemunoz at gmail.com Mon Jan 19 10:43:58 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 19 Jan 2009 15:43:58 -0300 Subject: [mapserver-users] optimal path between two points. Message-ID: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> Hi I would like to implement the service "optimum path between 2 points," can someone help me to be able to implement it?. The general idea is that a user picks a point A and point B and a display on the map the best route to get from point A to B. RG... -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Jan 19 10:54:03 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 19 Jan 2009 13:54:03 -0500 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> Message-ID: <4974CC4B.8030107@pobox.com> Valeria Mu?oz wrote: > Hi > > I would like to implement the service "optimum path between 2 points," > can someone help me to be able to implement it?. The general idea is > that a user picks a point A and point B and a display on the map the > best route to get from point A to B. Valeria, MapServer itself does not do route calculation. You might find some useful pointers on this page: http://wiki.osgeo.org/wiki/OpenRouter I think the pgRouting (built on postgres/postgis) is the best bet for integration with MapServer. 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 valemunoz at gmail.com Mon Jan 19 12:19:31 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 19 Jan 2009 17:19:31 -0300 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4974CC4B.8030107@pobox.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4974CC4B.8030107@pobox.com> Message-ID: <4b56aefe0901191219k4cb85560t50e6aad8210e164@mail.gmail.com> frank thanks for the tips. I use prRouting and create the table dijsktra_result. Now how can I implement with my mapfile? , how deliver the data .. have some sample code? thanks for your help. 2009/1/19 Frank Warmerdam > Valeria Mu?oz wrote: > >> Hi >> I would like to implement the service "optimum path between 2 points," >> can someone help me to be able to implement it?. The general idea is that a >> user picks a point A and point B and a display on the map the best route to >> get from point A to B. >> > > Valeria, > > MapServer itself does not do route calculation. You might find some > useful pointers on this page: > > http://wiki.osgeo.org/wiki/OpenRouter > > I think the pgRouting (built on postgres/postgis) is the best bet for > integration with MapServer. > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jan 19 12:37:53 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 19 Jan 2009 15:37:53 -0500 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0901191219k4cb85560t50e6aad8210e164@mail.gmail.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4974CC4B.8030107@pobox.com> <4b56aefe0901191219k4cb85560t50e6aad8210e164@mail.gmail.com> Message-ID: <4974E4A1.8090402@swoodbridge.com> Valeria Mu?oz wrote: > frank > > thanks for the tips. I use prRouting and create the table > dijsktra_result. Now how can I implement with my mapfile? , how deliver > the data .. have some sample code? > > thanks for your help. > > 2009/1/19 Frank Warmerdam > > > Valeria Mu?oz wrote: > > Hi > I would like to implement the service "optimum path between 2 > points," can someone help me to be able to implement it?. The > general idea is that a user picks a point A and point B and a > display on the map the best route to get from point A to B. > > > Valeria, > > MapServer itself does not do route calculation. You might find some > useful pointers on this page: > > http://wiki.osgeo.org/wiki/OpenRouter > > I think the pgRouting (built on postgres/postgis) is the best bet for > integration with MapServer. So you have various options depending on the client software you are using. So here are some ideas for you: 1) put the route into a results table with a unique id, and pass the unique id back to the client where it can then request the route image via a mapserver mapfile the connects to the postgis database and requests the layer be drawn with the unique id to select the appropriate route. 2) make an ajax request to generate the route and return the polyline as an xml or json object back to the client. The client then parses the result document and displays the route over the map. 3) if you use OpenLayers for the client then you can use it to help you do 1) as an image, or 1) as a wfs layer, or 2) as a vector layer. You can look at the source for my demo page http://imaptools.com/leaddog/routing/dd.html which does this with a modified version of pgRouting (pgRouting does not return turn-by-turn directions), but you should be able to modify my code to work with pgRouting. I wrote a simple php script to proxy the route request into postgres and to format the results back to the client. Look this over and see how far you can get with this. If you get stuck, ask and I'm sure we can get you moving in the right direction. From boesiii at yahoo.com Mon Jan 19 13:30:32 2009 From: boesiii at yahoo.com (boesiii) Date: Mon, 19 Jan 2009 13:30:32 -0800 (PST) Subject: [mapserver-users] Is there a way to add a single click zoom button In-Reply-To: <53461.89.97.235.106.1232015572.squirrel@localhost.localdomain> References: <1231954440585-2158109.post@n2.nabble.com> <53461.89.97.235.106.1232015572.squirrel@localhost.localdomain> Message-ID: <1232400632747-2183552.post@n2.nabble.com> PG I added the script and the button control but I am not sure about the third item you mentioned. I added the lines " " in the mapserver variables section but when I click the button nothing happens? What is the problem? Pietro Giannini wrote: > > Yes, but using some javascript in template html. > > if you want to zoomin 2x: > > > > called from a button control: > > > assuming that you have an hidden field named 'imgxy' and a control > (select, radio, another hidden fiedl...) named 'zoom' in a form named > 'mapserv'. > > ciao > .......................pg > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > On Mer, Gennaio 14, 2009 18:34, boesiii wrote: >> >> by just using the map file and html template file. >> -- >> View this message in context: >> http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2158109.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 > > -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2183552.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boesiii at yahoo.com Mon Jan 19 13:58:21 2009 From: boesiii at yahoo.com (boesiii) Date: Mon, 19 Jan 2009 13:58:21 -0800 (PST) Subject: [mapserver-users] How to add rubberband zoom? Message-ID: <1232402301184-2183681.post@n2.nabble.com> What is the easiest way to add a rubberband type of zoom control? -- View this message in context: http://n2.nabble.com/How-to-add-rubberband-zoom--tp2183681p2183681.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Mon Jan 19 14:08:00 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 19 Jan 2009 17:08:00 -0500 Subject: [mapserver-users] How to add rubberband zoom? In-Reply-To: <1232402301184-2183681.post@n2.nabble.com> References: <1232402301184-2183681.post@n2.nabble.com> Message-ID: <4974F9C0.2090103@swoodbridge.com> boesiii wrote: > What is the easiest way to add a rubberband type of zoom control? My favorite way of doing that is to use OpenLayers for my client side code. The JavaScript API have options for most anything you would want to do with a map. It support shift-click-drag out of the box to do rubberband zooms. -Steve W. From Phil.Fong at ec.gc.ca Mon Jan 19 15:23:09 2009 From: Phil.Fong at ec.gc.ca (Fong,Phil [Burlington]) Date: Mon, 19 Jan 2009 18:23:09 -0500 Subject: [mapserver-users] WFS Getfeature returning incorrect features Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F06EC975F@ecburexch1.ontario.int.ec.gc.ca> Hello, I have a mapserver (5.2.1) setup that is returning incorrect features from a WFS getfeature request. For example, if a bbox is specified: bbox=-100,50,-99,51, then some point features outside of bbox get returned. However, the overall bounding box of the features (in the gml:boundedBy element) looks right and is inside the bbox, but is not representative of the features that are returned (see below). Also, if I try different bboxes, it would appear that it's always taking the first N (which varies) features in the layer (sites.1, sites.2 always appear). What is going on and how to fix? Has anyone else encountered this odd behaviour? The point features are stored in a database table (mssql to be specific) and connection is using OGR (through ODBC). Mapserver is running in Windows Server 2003 (64-bit). Thanks for any help. -Phil -99.976390,50.190280 -99.675000,50.675000 -97.429440,49.679170 -97.429440,49.679170 -97.429440,49.679170 -97.261670,49.696670 -97.261670,49.696670 -97.261670,49.696670 -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Mon Jan 19 18:43:24 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 19 Jan 2009 18:43:24 -0800 Subject: [mapserver-users] google tiles In-Reply-To: <00be01c97a63$e15d9f50$a418ddf0$@com> References: <009a01c97a45$411cac20$c3560460$@com> <9c2015090901190902lfa978c2u71cdb36bd95b2776@mail.gmail.com> <00be01c97a63$e15d9f50$a418ddf0$@com> Message-ID: <9c2015090901191843ue6edc74nb57ce42133a294e@mail.gmail.com> Fascinating, thanks for sending the link! Since you state that you only get blank images when you try it out, perhaps it is a projection mis-match? It appears that your mapfile extents are defined in meters, which would match spherical mercator, but your layer is in EPSG 4326. What if you make your extents be in lat/lon instead? Roger -- On Mon, Jan 19, 2009 at 10:29 AM, Chad Clabaugh wrote: > Thanks for your reply Roger. The spec for tilemode is at > http://mapserver.org/output/tile_mode.html But I'll definitely look into > TileCache as well. > > > > > > *From:* Roger Andr? [mailto:randre at gmail.com] > *Sent:* Monday, January 19, 2009 12:03 PM > *To:* Chad Clabaugh > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] google tiles > > > > Hi Chad, > > I wasn't aware that "tile" is a valid mode of operation for Mapserver. I > looked on http://mapserver.org/cgi/controls.html and didn't see it > referenced there, but its entirely possible that it exists and that I've > just missed it. In any case, the way I'm familiar with generating google > map tiles is via the use of Tilecache. Tilecache works as in intermediary > between Mapserver and your Google map. It make the appropriate request to > Mapserver for a tile, and then returns the tile to your map. I think this > might be the solution you're looking for, http://tilecache.org/. > > Best of luck, > > Roger > -- > > On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh > wrote: > > Greetings, > > I have been trying to generate google tiles from shapefiles using > mapserver. I have been able to successfully generate maps by calling the > url > http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map&mode=map. but when I attempt to use the url > http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map&mode=tile&tile=4+6+4 > I receive only empty images, regardless of tile specified. > > > > Thanks for any help! > > > > MAP > > NAME COVERAGE > > STATUS ON > > SIZE 1400 900 > > EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000 > > UNITS METERS > > SHAPEPATH "shapefiles" > > IMAGECOLOR 220 220 220 > > > > IMAGETYPE PNG > > > > PROJECTION > > "init=epsg:4326" > > END > > > > LAYER > > NAME CoverageMap > > TYPE POLYGON > > STATUS DEFAULT > > DATA notforchad > > > > CLASS > > STYLE > > OUTLINECOLOR 255 128 128 > > COLOR 225 0 0 > > END > > END > > > > END > > END > > > > Chad Clabaugh > > Technical Support, Engineering > > Office: 260.760.6398 > > Mobile: 260.466.8861 > > > > > _______________________________________________ > 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 boesiii at yahoo.com Mon Jan 19 19:05:41 2009 From: boesiii at yahoo.com (boesiii) Date: Mon, 19 Jan 2009 19:05:41 -0800 (PST) Subject: [mapserver-users] How to add rubberband zoom? In-Reply-To: <4974F9C0.2090103@swoodbridge.com> References: <1232402301184-2183681.post@n2.nabble.com> <4974F9C0.2090103@swoodbridge.com> Message-ID: <1232420741167-2184773.post@n2.nabble.com> I am not familiar with javascript. Couyld you give an example? Do I just need a copy of openlayers.js in my root? -- View this message in context: http://n2.nabble.com/How-to-add-rubberband-zoom--tp2183681p2184773.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gluker at scu.edu.au Mon Jan 19 20:34:16 2009 From: gluker at scu.edu.au (Greg Luker) Date: Tue, 20 Jan 2009 14:34:16 +1000 Subject: [mapserver-users] how to stop extent being visible? Message-ID: <200901200334.n0K3YYcp007709@atom.scu.edu.au> Hi mapservers, Is there any way to stop the MapServer image extent being visible to the outside world? ie in cgi the imgext= is visible in the URL line, and in php-mapscript a simple View/Source in the browser will show the extent value. In my app it's important that the extent not be visible. Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From pramsey at cleverelephant.ca Mon Jan 19 20:16:28 2009 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 19 Jan 2009 20:16:28 -0800 Subject: [mapserver-users] google tiles In-Reply-To: <009a01c97a45$411cac20$c3560460$@com> References: <009a01c97a45$411cac20$c3560460$@com> Message-ID: <30fe546d0901192016u1ad26e6fy7ec54e13da416c18@mail.gmail.com> You need to specify the PROJECTION of your LAYER. P. On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh wrote: > Greetings, > > I have been trying to generate google tiles from shapefiles using > mapserver. I have been able to successfully generate maps by calling the > url > http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map&mode=map > . but when I attempt to use the url > http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map&mode=tile&tile=4+6+4 > I receive only empty images, regardless of tile specified. > > > > Thanks for any help! > > > > MAP > > NAME COVERAGE > > STATUS ON > > SIZE 1400 900 > > EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000 > > UNITS METERS > > SHAPEPATH "shapefiles" > > IMAGECOLOR 220 220 220 > > > > IMAGETYPE PNG > > > > PROJECTION > > "init=epsg:4326" > > END > > > > LAYER > > NAME CoverageMap > > TYPE POLYGON > > STATUS DEFAULT > > DATA notforchad > > > > CLASS > > STYLE > > OUTLINECOLOR 255 128 128 > > COLOR 225 0 0 > > END > > END > > > > END > > END > > > > Chad Clabaugh > > Technical Support, Engineering > > Office: 260.760.6398 > > Mobile: 260.466.8861 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From woodbri at swoodbridge.com Mon Jan 19 20:33:42 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 19 Jan 2009 23:33:42 -0500 Subject: [mapserver-users] How to add rubberband zoom? In-Reply-To: <1232420741167-2184773.post@n2.nabble.com> References: <1232402301184-2183681.post@n2.nabble.com> <4974F9C0.2090103@swoodbridge.com> <1232420741167-2184773.post@n2.nabble.com> Message-ID: <49755426.5090107@swoodbridge.com> boesiii wrote: > I am not familiar with javascript. Couyld you give an example? Do I just > need a copy of openlayers.js in my root? Start here: http://openlayers.org/ http://trac.openlayers.org/wiki/UserGuide Here is an example: http://openlayers.org/dev/examples/mapserver_untiled.html Sign up on the OpenLayers Users list which will give you great support http://openlayers.org/mailman/listinfo -Steve W From devboyng at gmail.com Tue Jan 20 00:45:08 2009 From: devboyng at gmail.com (Muizudeen Kusimo) Date: Tue, 20 Jan 2009 00:45:08 -0800 Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input Message-ID: <95e403810901200045hd20cebfyddab6125c79616d8@mail.gmail.com> Hello Everyone, I am new to MapServer, however I am working on an application that is similar to Google Maps albeit with my own custom maps. The problem is: 1) I have several maps mostly in .jpeg format and would like to use them as Data Inputs for this Web Application. I can't seem to get it done correctly. Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I convert them? My development platform is: - Microsoft Windows XP - Ka-Map - MapServer (MS4W) Thanks. NB: I am re-reading the documentation for a solution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jan 20 01:04:26 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 20 Jan 2009 11:04:26 +0200 Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input In-Reply-To: <95e403810901200045hd20cebfyddab6125c79616d8@mail.gmail.com> Message-ID: Hi, First of all your jpeg files need to be georeferenced. Jpeg files are most often georeferenced with world files which are named as .jgw. Sometimes they are named as .tfw, even that name is actually reserved for tiff files. And Mapserver understands also world files named as .wld. If your images are georeferenced you can continue to building one single layer from all of your images. It is done with gdaltindex utility program. Gdaltindex is building a shapefile that records the extents of all the images to be indexed. Third step is to make a new raster layer that is using the shapefile index as a catalogue for finding the actual image files that needs to be opened when user is requesting a map from a certain area. This should be enough to show you images as a single layer. It would be a benefit to know the projection where the images are because otherwise they cannot be reprojected. And for optimising performance it may be good to convert jpeg images to tiffs, but you can just start from jpegs and see if you are happy with the speed. In conclusion: 1. Check georeferencing and projection, gdalinfo program is a good help in this. 2. Make tileindex with gdaltindex 3. Make a new raster layer in mapfile referring to just created tileindex file. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Muizudeen Kusimo L?hetetty: 20. tammikuuta 2009 10:45 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Need Help with Custom (Raster) Data as Input Hello Everyone, I am new to MapServer, however I am working on an application that is similar to Google Maps albeit with my own custom maps. The problem is: 1) I have several maps mostly in .jpeg format and would like to use them as Data Inputs for this Web Application. I can't seem to get it done correctly. Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I convert them? My development platform is: - Microsoft Windows XP - Ka-Map - MapServer (MS4W) Thanks. NB: I am re-reading the documentation for a solution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Tue Jan 20 01:46:52 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 20 Jan 2009 15:16:52 +0530 Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input In-Reply-To: <95e403810901200045hd20cebfyddab6125c79616d8@mail.gmail.com> References: <95e403810901200045hd20cebfyddab6125c79616d8@mail.gmail.com> Message-ID: <001e01c97ae4$07a70bd0$16f52370$@com> Hi, You can use raster data .but here I have some questions 1) The is georefrenced ? 2) Is data is projected ? If it is you can use raster data into mapserver.. If you have done all above things , refer below url http://mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file I hope this will help you. Thanks, Venkat From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Muizudeen Kusimo Sent: Tuesday, January 20, 2009 2:15 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input Hello Everyone, I am new to MapServer, however I am working on an application that is similar to Google Maps albeit with my own custom maps. The problem is: 1) I have several maps mostly in .jpeg format and would like to use them as Data Inputs for this Web Application. I can't seem to get it done correctly. Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I convert them? My development platform is: - Microsoft Windows XP - Ka-Map - MapServer (MS4W) Thanks. NB: I am re-reading the documentation for a solution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Tue Jan 20 02:36:13 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 20 Jan 2009 11:36:13 +0100 (CET) Subject: [mapserver-users] Is there a way to add a single click zoom button In-Reply-To: <1232400632747-2183552.post@n2.nabble.com> References: <1231954440585-2158109.post@n2.nabble.com> <53461.89.97.235.106.1232015572.squirrel@localhost.localdomain> <1232400632747-2183552.post@n2.nabble.com> Message-ID: <49423.192.168.1.59.1232447773.squirrel@localhost.localdomain> Your code seems correct... maybe a javascript error. If you use firefox you can intercept javascript errors with the error console. my code, simplified, is:
this work, try it. ciao ...........pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Lun, Gennaio 19, 2009 22:30, boesiii wrote: > > PG > > > I added the script and the button control but I am not sure about the > third > item you mentioned. I added the lines " value="[center]" /> > " in the mapserver variables > section but when I click the button nothing happens? > > What is the problem? > > > From devboyng at gmail.com Tue Jan 20 03:42:33 2009 From: devboyng at gmail.com (Muizudeen Kusimo) Date: Tue, 20 Jan 2009 03:42:33 -0800 Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input In-Reply-To: References: <95e403810901200045hd20cebfyddab6125c79616d8@mail.gmail.com> Message-ID: <95e403810901200342y6df85cfw105a5f5a9c4b51cf@mail.gmail.com> Dear Rahkonen, Thank you for your mail, it was very helpful. I have done the following: 1) Converted my .jpeg files to .tif and run the gdaltindex program to georeference them. It returned a .shp, .shx and .dbf files. But I don't have any .tfw file yet. Please see output of GDALTINDEX below. 2) I tested my .map file with the shp2img utility and it generated a blank (white) .png file for me. Expectedly, the same blank file displays as blank in the browser (i.e. Ka-Map UI). My new questions: 1) My maps were scanned from a paper map, does this affect my ability to Georeference them? 2) How do I determine the Projection of the scanned map images? Thanks. GDALTINDEX OUTPUT (condensed): ========================== C:\ms4w\Apache\cgi-bin>gdalinfo c:\ms4w\apps\test\tmp\pg19.tif Driver: GTiff/GeoTIFF Files: c:\ms4w\apps\test\tmp\pg19.tif Size is 1098, 1696 Coordinate System is `' Metadata: TIFFTAG_XRESOLUTION=200 TIFFTAG_YRESOLUTION=200 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=BAND Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 1696.0) Upper Right ( 1098.0, 0.0) Lower Right ( 1098.0, 1696.0) Center ( 549.0, 848.0) Band 1 Block=1098x8 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 165,171,167,255 2: 255,197,98,255 3: 239,168,102,255 4: 206,150,75,255 . . #removed to conserve space . 255: 177,169,148,255 C:\ms4w\Apache\cgi-bin> The test.map file I used: ================= MAP NAME test STATUS ON SIZE 1280 1280 EXTENT -2200000 -712631 3072800 3840000 UNITS DD #IMAGECOLOR 255 255 255 IMAGETYPE JPEG WEB IMAGEPATH "c:\ms4w\apps\test\tmp\" IMAGEURL "c:\ms4w\apps\test\" END LEGEND TRANSPARENT TRUE END SCALEBAR TRANSPARENT TRUE END LAYER NAME "My Sample Location" TYPE RASTER STATUS ON TILEINDEX "tmp\pg19.shp" TILEITEM "Location" END END #MAP END @Venkat I hope my mail gives a clearer picture of my status for your further advice. Thanks. On Tue, Jan 20, 2009 at 1:04 AM, Rahkonen Jukka wrote: > Hi, > > First of all your jpeg files need to be georeferenced. Jpeg files are most > often georeferenced with world files which are named as .jgw. Sometimes > they are named as .tfw, even that name is actually reserved for tiff files. > And Mapserver understands also world files named as .wld. > If your images are georeferenced you can continue to building one single > layer from all of your images. It is done with gdaltindex utility program. > Gdaltindex is building a shapefile that records the extents of all the > images to be indexed. > Third step is to make a new raster layer that is using the shapefile index > as a catalogue for finding the actual image files that needs to be opened > when user is requesting a map from a certain area. > > This should be enough to show you images as a single layer. It would be a > benefit to know the projection where the images are because otherwise they > cannot be reprojected. And for optimising performance it may be good to > convert jpeg images to tiffs, but you can just start from jpegs and see if > you are happy with the speed. > In conclusion: > 1. Check georeferencing and projection, gdalinfo program is a good help in > this. > 2. Make tileindex with gdaltindex > 3. Make a new raster layer in mapfile referring to just created tileindex > file. > > -Jukka Rahkonen- > > > ------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Muizudeen Kusimo > *L?hetetty:* 20. tammikuuta 2009 10:45 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] Need Help with Custom (Raster) Data as Input > > Hello Everyone, > > I am new to MapServer, however I am working on an application that is > similar to Google Maps albeit with my own custom maps. > > The problem is: > > 1) I have several maps mostly in .jpeg format and would like to use them as > Data Inputs for this Web Application. I can't seem to get it done correctly. > Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I > convert them? > > My development platform is: > > - Microsoft Windows XP > - Ka-Map > - MapServer (MS4W) > > Thanks. > > NB: I am re-reading the documentation for a solution. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at agt.bme.hu Tue Jan 20 08:37:12 2009 From: siki at agt.bme.hu (Siki Zoltan) Date: Tue, 20 Jan 2009 15:37:12 -0100 (GMT+1) Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input In-Reply-To: <95e403810901200342y6df85cfw105a5f5a9c4b51cf@mail.gmail.com> References: <95e403810901200045hd20cebfyddab6125c79616d8@mail.gmail.com> <95e403810901200342y6df85cfw105a5f5a9c4b51cf@mail.gmail.com> Message-ID: Dear Muizudeen, On Tue, 20 Jan 2009, Muizudeen Kusimo wrote: > I have done the following: > > 1) Converted my .jpeg files to .tif and run the gdaltindex program to > georeference them. It returned a .shp, .shx and .dbf files. But I don't have > any .tfw file yet. Please see output of GDALTINDEX below. gdaltindex doesn't create a georeference to your raster, it is usefull if you have many tiled georeferenced rasters. You should get information about the coordinates of the corner of the scanned map or coordinates for any visible point on your scanned map. Than you may create the tfw file by hand (if the sides of the scanned map are parelel to the coordinate axices it is simple). Or you can use GRASS or gdal utilities to calculate the transformation between your image coordinatesystem to the map coordinate system (e.g. UTM). > > 2) I tested my .map file with the shp2img utility and it generated a blank > (white) .png file for me. Expectedly, the same blank file displays as blank > in the browser (i.e. Ka-Map UI). AFAIK if you have a raster without georeference then Mapserver will use the pixel row and column number as coordinates. So now the extent sould be 0 0 1098 1696 or if the given extent in your map file are the corners of your map then create the following georeference file (tfw) ----- start of twf file 4802.18579 0 0 -2684.334316 -2200000 3840000 ------ end of tfw file But I am not sure the resolution of your raster is so different in northing and easting direction. > > My new questions: > > 1) My maps were scanned from a paper map, does this affect my ability to > Georeference them? No. But you need reference points on the map where the coordinates are known. > 2) How do I determine the Projection of the scanned map images? Usually it is written on. The projection is not so important if all of your maps use the same projection (coordinate system). Best regards Zoltan > > Thanks. > > GDALTINDEX OUTPUT (condensed): > ========================== > C:\ms4w\Apache\cgi-bin>gdalinfo c:\ms4w\apps\test\tmp\pg19.tif > Driver: GTiff/GeoTIFF > Files: c:\ms4w\apps\test\tmp\pg19.tif > Size is 1098, 1696 > Coordinate System is `' > Metadata: > TIFFTAG_XRESOLUTION=200 > TIFFTAG_YRESOLUTION=200 > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > Image Structure Metadata: > COMPRESSION=LZW > INTERLEAVE=BAND > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 1696.0) > Upper Right ( 1098.0, 0.0) > Lower Right ( 1098.0, 1696.0) > Center ( 549.0, 848.0) > Band 1 Block=1098x8 Type=Byte, ColorInterp=Palette > Color Table (RGB with 256 entries) > 0: 0,0,0,255 > 1: 165,171,167,255 > 2: 255,197,98,255 > 3: 239,168,102,255 > 4: 206,150,75,255 > . > . #removed to conserve space > . > 255: 177,169,148,255 > > C:\ms4w\Apache\cgi-bin> > > The test.map file I used: > ================= > MAP > NAME test > STATUS ON > SIZE 1280 1280 > EXTENT -2200000 -712631 3072800 3840000 > UNITS DD > #IMAGECOLOR 255 255 255 > IMAGETYPE JPEG > > WEB > IMAGEPATH "c:\ms4w\apps\test\tmp\" > IMAGEURL "c:\ms4w\apps\test\" > END > > LEGEND > TRANSPARENT TRUE > END > > SCALEBAR > TRANSPARENT TRUE > END > > LAYER > NAME "My Sample Location" > TYPE RASTER > STATUS ON > TILEINDEX "tmp\pg19.shp" > TILEITEM "Location" > END > END #MAP END > > > @Venkat > > I hope my mail gives a clearer picture of my status for your further advice. > > Thanks. > > On Tue, Jan 20, 2009 at 1:04 AM, Rahkonen Jukka > wrote: > >> Hi, >> >> First of all your jpeg files need to be georeferenced. Jpeg files are most >> often georeferenced with world files which are named as .jgw. Sometimes >> they are named as .tfw, even that name is actually reserved for tiff files. >> And Mapserver understands also world files named as .wld. >> If your images are georeferenced you can continue to building one single >> layer from all of your images. It is done with gdaltindex utility program. >> Gdaltindex is building a shapefile that records the extents of all the >> images to be indexed. >> Third step is to make a new raster layer that is using the shapefile index >> as a catalogue for finding the actual image files that needs to be opened >> when user is requesting a map from a certain area. >> >> This should be enough to show you images as a single layer. It would be a >> benefit to know the projection where the images are because otherwise they >> cannot be reprojected. And for optimising performance it may be good to >> convert jpeg images to tiffs, but you can just start from jpegs and see if >> you are happy with the speed. >> In conclusion: >> 1. Check georeferencing and projection, gdalinfo program is a good help in >> this. >> 2. Make tileindex with gdaltindex >> 3. Make a new raster layer in mapfile referring to just created tileindex >> file. >> >> -Jukka Rahkonen- >> >> >> ------------------------------ >> *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *Puolesta *Muizudeen Kusimo >> *L?hetetty:* 20. tammikuuta 2009 10:45 >> *Vastaanottaja:* mapserver-users at lists.osgeo.org >> *Aihe:* [mapserver-users] Need Help with Custom (Raster) Data as Input >> >> Hello Everyone, >> >> I am new to MapServer, however I am working on an application that is >> similar to Google Maps albeit with my own custom maps. >> >> The problem is: >> >> 1) I have several maps mostly in .jpeg format and would like to use them as >> Data Inputs for this Web Application. I can't seem to get it done correctly. >> Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I >> convert them? >> >> My development platform is: >> >> - Microsoft Windows XP >> - Ka-Map >> - MapServer (MS4W) >> >> Thanks. >> >> NB: I am re-reading the documentation for a solution. >> >> > From Jukka.Rahkonen at mmmtike.fi Tue Jan 20 04:41:51 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 20 Jan 2009 14:41:51 +0200 Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input In-Reply-To: <95e403810901200342y6df85cfw105a5f5a9c4b51cf@mail.gmail.com> Message-ID: Hi, You have decided to take the most rocky road that exists. Georeferencing scanned paper maps is not extra easy and I have not seen many good, easy to use free utilities for doing that. If you just want to learn Mapserver I would recommend you to acquire some ready, georeferenced images to start with. But if you are not afraid then just go ahead. First, your Mapserver map will remain empty because your output extents are EXTENT -2200000 -712631 3072800 3840000 UNITS DD while all your scanned maps have their upper left corner at point zero, zero Upper Left ( 0.0, 0.0) By the way, unit DD in the mapfile means decimal degrees but judged by number values in extent line I guess that they mean meters. What you should do is to georeference your scanned images. It means that in some way you must tell Mapserver what place on Earth the images are presenting. In most simple case giving coordinates of one corner and pixel sizes in east-west and south-north direction is enough. That is the information that ESRI style world file is giving. For scanned maps it may not give very good results because images are more or less rotated. Therefore more ground control points (GCP) would be needed. If the original map has coordinate grid then finding good GPSs is easy. A rather simple to use georeferencing utility that I have tried is available as Quantum GIS plugin. Unfortunately it did not do very good job for me but it may have been improved since then. I have been mostly feeding coordinates manually for gdal_translate utility and warped images then to target projection with gdalwarp but I wouldn't say that its a great pleasure to work like that. Combining the user interface of QGis and gdal_translate-gdalwarp chain would give rather a nice tool for georeferencing. Or maybe the same functionality could be added to OpenEV that comes with FWTools package. By the way, most simple way to get your scanned image visible is to adjust mapfile extents to suit your imagery there around point 0,0. No other data would suit with your image but at least you can see that the system works. -Jukka Rahkonen- ________________________________ L?hett?j?: Muizudeen Kusimo [mailto:devboyng at gmail.com] L?hetetty: 20. tammikuuta 2009 13:43 Vastaanottaja: Rahkonen Jukka; vtammineni at roulacglobal.com; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Need Help with Custom (Raster) Data as Input Dear Rahkonen, Thank you for your mail, it was very helpful. I have done the following: 1) Converted my .jpeg files to .tif and run the gdaltindex program to georeference them. It returned a .shp, .shx and .dbf files. But I don't have any .tfw file yet. Please see output of GDALTINDEX below. 2) I tested my .map file with the shp2img utility and it generated a blank (white) .png file for me. Expectedly, the same blank file displays as blank in the browser (i.e. Ka-Map UI). My new questions: 1) My maps were scanned from a paper map, does this affect my ability to Georeference them? 2) How do I determine the Projection of the scanned map images? Thanks. GDALTINDEX OUTPUT (condensed): ========================== C:\ms4w\Apache\cgi-bin>gdalinfo c:\ms4w\apps\test\tmp\pg19.tif Driver: GTiff/GeoTIFF Files: c:\ms4w\apps\test\tmp\pg19.tif Size is 1098, 1696 Coordinate System is `' Metadata: TIFFTAG_XRESOLUTION=200 TIFFTAG_YRESOLUTION=200 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=BAND Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 1696.0) Upper Right ( 1098.0, 0.0) Lower Right ( 1098.0, 1696.0) Center ( 549.0, 848.0) Band 1 Block=1098x8 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 165,171,167,255 2: 255,197,98,255 3: 239,168,102,255 4: 206,150,75,255 . . #removed to conserve space . 255: 177,169,148,255 C:\ms4w\Apache\cgi-bin> The test.map file I used: ================= MAP NAME test STATUS ON SIZE 1280 1280 EXTENT -2200000 -712631 3072800 3840000 UNITS DD #IMAGECOLOR 255 255 255 IMAGETYPE JPEG WEB IMAGEPATH "c:\ms4w\apps\test\tmp\" IMAGEURL "c:\ms4w\apps\test\" END LEGEND TRANSPARENT TRUE END SCALEBAR TRANSPARENT TRUE END LAYER NAME "My Sample Location" TYPE RASTER STATUS ON TILEINDEX "tmp\pg19.shp" TILEITEM "Location" END END #MAP END @Venkat I hope my mail gives a clearer picture of my status for your further advice. Thanks. On Tue, Jan 20, 2009 at 1:04 AM, Rahkonen Jukka wrote: Hi, First of all your jpeg files need to be georeferenced. Jpeg files are most often georeferenced with world files which are named as .jgw. Sometimes they are named as .tfw, even that name is actually reserved for tiff files. And Mapserver understands also world files named as .wld. If your images are georeferenced you can continue to building one single layer from all of your images. It is done with gdaltindex utility program. Gdaltindex is building a shapefile that records the extents of all the images to be indexed. Third step is to make a new raster layer that is using the shapefile index as a catalogue for finding the actual image files that needs to be opened when user is requesting a map from a certain area. This should be enough to show you images as a single layer. It would be a benefit to know the projection where the images are because otherwise they cannot be reprojected. And for optimising performance it may be good to convert jpeg images to tiffs, but you can just start from jpegs and see if you are happy with the speed. In conclusion: 1. Check georeferencing and projection, gdalinfo program is a good help in this. 2. Make tileindex with gdaltindex 3. Make a new raster layer in mapfile referring to just created tileindex file. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Muizudeen Kusimo L?hetetty: 20. tammikuuta 2009 10:45 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Need Help with Custom (Raster) Data as Input Hello Everyone, I am new to MapServer, however I am working on an application that is similar to Google Maps albeit with my own custom maps. The problem is: 1) I have several maps mostly in .jpeg format and would like to use them as Data Inputs for this Web Application. I can't seem to get it done correctly. Must I convert these maps to a SHAPEFILE i.e. .shp or what? If so, how do I convert them? My development platform is: - Microsoft Windows XP - Ka-Map - MapServer (MS4W) Thanks. NB: I am re-reading the documentation for a solution. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matej at matnet.net Tue Jan 20 05:58:40 2009 From: matej at matnet.net (Matej) Date: Tue, 20 Jan 2009 14:58:40 +0100 Subject: [mapserver-users] Mapserver PROJECTION - MapInfo Non-Earth (meters) projection Message-ID: <68436869D33D445C96BDBCAE625AD745@Leeml> Hi, I have a bunch of MapInfo layers which are saved in a Non-Earth (meters) projection. When doing ogrinfo on one of such files, I get: Geometry: Line String Feature Count: 177 Extent: (577197.926321, 163752.612753) - (583056.262978, 168205.527060) Layer SRS WKT: LOCAL_CS["Nonearth", UNIT["Meter",1.0]] What would be the best procedure to get Mapserver's WMS server working on it? I have no idea which projection to choose in mapfile, is my only option left to change projections in MapInfo and use changed layers? Thank you for ideas. Cheers, Matej Serc matej at matnet.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From rafaelchacon at gmail.com Tue Jan 20 06:16:02 2009 From: rafaelchacon at gmail.com (rafael) Date: Tue, 20 Jan 2009 06:16:02 -0800 (PST) Subject: [mapserver-users] PHP Mapscript question Message-ID: <1232460962364-2186664.post@n2.nabble.com> Sorry If shouldn't post php mapscript questions here. But I have I doubt and didn't find a mapscript forum. So the question is the following. How do I set the mapserver information in PHP Mapscript?? What happen if my mapserver is running in other machine and I want to connect to that server from another host where I'm developing the web application??? Thanks in advance. Rafael -- View this message in context: http://n2.nabble.com/PHP-Mapscript-question-tp2186664p2186664.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cclabaugh at centwire.com Tue Jan 20 06:28:35 2009 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Tue, 20 Jan 2009 09:28:35 -0500 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73 In-Reply-To: <20090120094313.3836DE011C9@lists.osgeo.org> References: <20090120094313.3836DE011C9@lists.osgeo.org> Message-ID: <000601c97b0b$60f00850$22d018f0$@com> Am I not specifying my projection by using "init=epsg:4326" within the PROJECTION BLOCK???? I have tried as many different projections as I can find. Including 4326, 900913, 3785, and the following block... PROJECTION "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "wktext" "no_defs" END ...which didn't work for me. ------------------------------ Message: 3 Date: Mon, 19 Jan 2009 20:16:28 -0800 From: "Paul Ramsey" Subject: Re: [mapserver-users] google tiles To: "Chad Clabaugh" Cc: mapserver-users at lists.osgeo.org Message-ID: <30fe546d0901192016u1ad26e6fy7ec54e13da416c18 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 You need to specify the PROJECTION of your LAYER. P. On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh wrote: > Greetings, > > I have been trying to generate google tiles from shapefiles using > mapserver. I have been able to successfully generate maps by calling the > url > http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage.map&mo de=map > . but when I attempt to use the url > http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/coverage .map&mode=tile&tile=4+6+4 > I receive only empty images, regardless of tile specified. > > > > Thanks for any help! > > > > MAP > > NAME COVERAGE > > STATUS ON > > SIZE 1400 900 > > EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000 > > UNITS METERS > > SHAPEPATH "shapefiles" > > IMAGECOLOR 220 220 220 > > > > IMAGETYPE PNG > > > > PROJECTION > > "init=epsg:4326" > > END > > > > LAYER > > NAME CoverageMap > > TYPE POLYGON > > STATUS DEFAULT > > DATA notforchad > > > > CLASS > > STYLE > > OUTLINECOLOR 255 128 128 > > COLOR 225 0 0 > > END > > END > > > > END > > END > > > > Chad Clabaugh > > Technical Support, Engineering > > Office: 260.760.6398 > > Mobile: 260.466.8861 > > > > _______________________________________________ > 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 Tue Jan 20 06:31:29 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 20 Jan 2009 08:31:29 -0600 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0901191219k4cb85560t50e6aad8210e164@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA14B@s-sp22.pca.state.mn.us> You may also want to look at the Workshops posted at the pgRouting site. Here is a link to the workshop from FOSS4G2008: http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2008 -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Valeria Mu?oz Sent: Monday, January 19, 2009 2:20 PM To: Frank Warmerdam Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] optimal path between two points. frank thanks for the tips. I use prRouting and create the table dijsktra_result. Now how can I implement with my mapfile? , how deliver the data .. have some sample code? thanks for your help. 2009/1/19 Frank Warmerdam Valeria Mu?oz wrote: Hi I would like to implement the service "optimum path between 2 points," can someone help me to be able to implement it?. The general idea is that a user picks a point A and point B and a display on the map the best route to get from point A to B. Valeria, MapServer itself does not do route calculation. You might find some useful pointers on this page: http://wiki.osgeo.org/wiki/OpenRouter I think the pgRouting (built on postgres/postgis) is the best bet for integration with MapServer. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Tue Jan 20 06:32:59 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Tue, 20 Jan 2009 20:02:59 +0530 Subject: [mapserver-users] integration php with tomcat Message-ID: hi I am unable to integrate php with tomcat as I cant find php servlet jar file(in linux as well as windows).It is not in my system.where I will get that file plz help me....... Thanks......... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jan 20 06:34:06 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 20 Jan 2009 16:34:06 +0200 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73 In-Reply-To: <000601c97b0b$60f00850$22d018f0$@com> Message-ID: Have you specified the projection also inside LAYER? There are two places for giving projections, in MAP section to give the set of available output projections, and in LAYER section to tell Mapserver which projection the layer data are in. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Chad Clabaugh > L?hetetty: 20. tammikuuta 2009 16:29 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73 > > Am I not specifying my projection by using "init=epsg:4326" > within the PROJECTION BLOCK???? I have tried as many > different projections as I can find. Including 4326, 900913, > 3785, and the following block... > > PROJECTION > "proj=merc" > "a=6378137" > "b=6378137" > "lat_ts=0.0" > "lon_0=0.0" > "x_0=0.0" > "y_0=0" > "k=1.0" > "units=m" > "nadgrids=@null" > "wktext" > "no_defs" > END > > ...which didn't work for me. > > ------------------------------ > > Message: 3 > Date: Mon, 19 Jan 2009 20:16:28 -0800 > From: "Paul Ramsey" > Subject: Re: [mapserver-users] google tiles > To: "Chad Clabaugh" > Cc: mapserver-users at lists.osgeo.org > Message-ID: > <30fe546d0901192016u1ad26e6fy7ec54e13da416c18 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > You need to specify the PROJECTION of your LAYER. > > P. > > On Mon, Jan 19, 2009 at 6:50 AM, Chad Clabaugh > > wrote: > > Greetings, > > > > I have been trying to generate google tiles from shapefiles using > > mapserver. I have been able to successfully generate maps > by calling > > the url > > > http://0.0.0.0/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver/c > overage.map&mo > de=map > > . but when I attempt to use the url > > > http://172.18.154.186/cgi-bin/mapserv?map=/srv/www/htdocs/maps > erver/coverage > .map&mode=tile&tile=4+6+4 > > I receive only empty images, regardless of tile specified. > > > > > > > > Thanks for any help! > > > > > > > > MAP > > > > NAME COVERAGE > > > > STATUS ON > > > > SIZE 1400 900 > > > > EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000 > > > > UNITS METERS > > > > SHAPEPATH "shapefiles" > > > > IMAGECOLOR 220 220 220 > > > > > > > > IMAGETYPE PNG > > > > > > > > PROJECTION > > > > "init=epsg:4326" > > > > END > > > > > > > > LAYER > > > > NAME CoverageMap > > > > TYPE POLYGON > > > > STATUS DEFAULT > > > > DATA notforchad > > > > > > > > CLASS > > > > STYLE > > > > OUTLINECOLOR 255 128 128 > > > > COLOR 225 0 0 > > > > END > > > > END > > > > > > > > END > > > > END > > > > > > > > Chad Clabaugh > > > > Technical Support, Engineering > > > > Office: 260.760.6398 > > > > Mobile: 260.466.8861 > > > > > > > > _______________________________________________ > > 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 danlittle at yahoo.com Tue Jan 20 06:37:24 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 20 Jan 2009 06:37:24 -0800 (PST) Subject: [mapserver-users] PHP Mapscript question References: <1232460962364-2186664.post@n2.nabble.com> Message-ID: <47559.82142.qm@web51408.mail.re2.yahoo.com> Rafeal, I think you'll need to clarify a little bit more. Mapscript is a library you use inside of a PHP script. If you're trying to access data on another server then you'll need to be more specific about what that data might be. If you're trying to retrieve an image from another server then you might want to look into php curl. ----- Original Message ---- > From: rafael > To: mapserver-users at lists.osgeo.org > Sent: Tuesday, January 20, 2009 8:16:02 AM > Subject: [mapserver-users] PHP Mapscript question > > > Sorry If shouldn't post php mapscript questions here. But I have I doubt and > didn't find a mapscript forum. So the question is the following. How do I > set the mapserver information in PHP Mapscript?? What happen if my mapserver > is running in other machine and I want to connect to that server from > another host where I'm developing the web application??? > > Thanks in advance. > > Rafael > -- > View this message in context: > http://n2.nabble.com/PHP-Mapscript-question-tp2186664p2186664.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 danlittle at yahoo.com Tue Jan 20 06:38:18 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 20 Jan 2009 06:38:18 -0800 (PST) Subject: [mapserver-users] integration php with tomcat References: Message-ID: <859101.24280.qm@web51405.mail.re2.yahoo.com> Did a google search, maybe this will help... http://wiki.apache.org/tomcat/UsingPhp ________________________________ From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Tuesday, January 20, 2009 8:32:59 AM Subject: [mapserver-users] integration php with tomcat hi I am unable to integrate php with tomcat as I cant find php servlet jar file(in linux as well as windows).It is not in my system.where I will get that file plz help me....... Thanks......... -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Tue Jan 20 06:38:54 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 20 Jan 2009 09:38:54 -0500 Subject: [mapserver-users] PHP Mapscript question In-Reply-To: <1232460962364-2186664.post@n2.nabble.com> References: <1232460962364-2186664.post@n2.nabble.com> Message-ID: <4975E1FE.8090800@mapgears.com> Hi Rafael, PHP MapScript needs the libmapserver to work. You said that your MapServer is running on another machine... so what are you trying to do ? using WMS ? open a map file ? btw, it's ok to post php mapscript questions here. It's the right place. Regards, Alan rafael wrote: > Sorry If shouldn't post php mapscript questions here. But I have I doubt and > didn't find a mapscript forum. So the question is the following. How do I > set the mapserver information in PHP Mapscript?? What happen if my mapserver > is running in other machine and I want to connect to that server from > another host where I'm developing the web application??? > > Thanks in advance. > > Rafael > -- Alan Boudreault Mapgears http://www.mapgears.com From woodbri at swoodbridge.com Tue Jan 20 07:38:06 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 20 Jan 2009 10:38:06 -0500 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0901200430g1110cb6dqd6ffa3d75d6acd39@mail.gmail.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4974CC4B.8030107@pobox.com> <4b56aefe0901191219k4cb85560t50e6aad8210e164@mail.gmail.com> <4974E4A1.8090402@swoodbridge.com> <4b56aefe0901200430g1110cb6dqd6ffa3d75d6acd39@mail.gmail.com> Message-ID: <4975EFDE.3060001@swoodbridge.com> Valeria, You should really look at the example provided with: http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007 This is what I started with and then made my own modifications. The above workshop should walk you through how to setup a pgRouting without my additional hacks which will only confuse you at the moment. My dd_routing.php is a modified version of ax_routing.php that is included in the tutorial tarball. You might also want to read some of these pages if you have not already: http://www.google.com/search?hl=en&q=pgRouting&btnG=Google+Search Best regards, -Steve W Valeria Mu?oz wrote: > hi Stephen.. thank for the tips... > I have reviewed the code but can only see the dd.html. can you send me > the dd_routing.php? . > > please > > thanks for everything > 2009/1/19 Stephen Woodbridge > > > Valeria Mu?oz wrote: > > frank > thanks for the tips. I use prRouting and create the table > dijsktra_result. Now how can I implement with my mapfile? , how > deliver the data .. have some sample code? > > thanks for your help. > > 2009/1/19 Frank Warmerdam >> > > > Valeria Mu?oz wrote: > > Hi > I would like to implement the service "optimum path > between 2 > points," can someone help me to be able to implement it?. The > general idea is that a user picks a point A and point B and a > display on the map the best route to get from point A to B. > > > Valeria, > > MapServer itself does not do route calculation. You might > find some > useful pointers on this page: > > http://wiki.osgeo.org/wiki/OpenRouter > > I think the pgRouting (built on postgres/postgis) is the best > bet for > integration with MapServer. > > > So you have various options depending on the client software you are > using. So here are some ideas for you: > > 1) put the route into a results table with a unique id, and pass the > unique id back to the client where it can then request the route > image via a mapserver mapfile the connects to the postgis database > and requests the layer be drawn with the unique id to select the > appropriate route. > > 2) make an ajax request to generate the route and return the > polyline as an xml or json object back to the client. The client > then parses the result document and displays the route over the map. > > 3) if you use OpenLayers for the client then you can use it to help > you do 1) as an image, or 1) as a wfs layer, or 2) as a vector layer. > > You can look at the source for my demo page > http://imaptools.com/leaddog/routing/dd.html which does this with a > modified version of pgRouting (pgRouting does not return > turn-by-turn directions), but you should be able to modify my code > to work with pgRouting. I wrote a simple php script to proxy the > route request into postgres and to format the results back to the > client. > > Look this over and see how far you can get with this. If you get > stuck, ask and I'm sure we can get you moving in the right direction. > > From warmerdam at pobox.com Tue Jan 20 07:38:05 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 20 Jan 2009 10:38:05 -0500 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 12, Issue 73 In-Reply-To: <000601c97b0b$60f00850$22d018f0$@com> References: <20090120094313.3836DE011C9@lists.osgeo.org> <000601c97b0b$60f00850$22d018f0$@com> Message-ID: <4975EFDD.4020009@pobox.com> Chad Clabaugh wrote: > Am I not specifying my projection by using "init=epsg:4326" within the > PROJECTION BLOCK???? I have tried as many different projections as I can > find. Including 4326, 900913, 3785, and the following block... Chad, You need to specify a PROJECTION block on your LAYER *as well as* on your MAP object. If everything is in the same coordinate system then they can match. Your sample map (fragment?) only had a projection declaration on the map. Best regards, > Message: 3 > Date: Mon, 19 Jan 2009 20:16:28 -0800 > From: "Paul Ramsey" > > You need to specify the PROJECTION of your LAYER. > > P. ... >> >> MAP >> >> NAME COVERAGE >> >> STATUS ON >> >> SIZE 1400 900 >> >> EXTENT 639000.000000 4535300.000000 689900.000000 4582600.000000 >> >> UNITS METERS >> >> SHAPEPATH "shapefiles" >> >> IMAGECOLOR 220 220 220 >> >> >> >> IMAGETYPE PNG >> >> >> >> PROJECTION >> >> "init=epsg:4326" >> >> END >> >> >> >> LAYER >> >> NAME CoverageMap >> >> TYPE POLYGON >> >> STATUS DEFAULT >> >> DATA notforchad >> >> >> >> CLASS >> >> STYLE >> >> OUTLINECOLOR 255 128 128 >> >> COLOR 225 0 0 >> >> END >> >> END >> >> >> >> END >> >> END -- ---------------------------------------+-------------------------------------- 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 Tue Jan 20 07:47:50 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 20 Jan 2009 10:47:50 -0500 Subject: [mapserver-users] Mapserver PROJECTION - MapInfo Non-Earth (meters) projection In-Reply-To: <68436869D33D445C96BDBCAE625AD745@Leeml> References: <68436869D33D445C96BDBCAE625AD745@Leeml> Message-ID: <4975F226.1020402@pobox.com> Matej wrote: > Hi, > > I have a bunch of MapInfo layers which are saved in a Non-Earth (meters) > projection. When doing ogrinfo on one of such files, I get: > Geometry: Line String > Feature Count: 177 > Extent: (577197.926321, 163752.612753) - (583056.262978, 168205.527060) > Layer SRS WKT: > LOCAL_CS["Nonearth", > UNIT["Meter",1.0]] > What would be the best procedure to get Mapserver's WMS server working > on it? I have no idea which projection to choose in mapfile, is my only > option left to change projections in MapInfo and use changed layers? Matej, If you are not too concerned about where you are in the world, you can just fake the coordinate system. Just declare it to be some EPSG coordinate system that is well behaved over a large range. Perhaps EPSG:3349 and global mercator projection. So, just use PROJECTION "init=epsg:3349" END for your map and layers, and use EPSG:3349 in the WMS metadata anywhere it needs to know the area. Then any custom WMS client hardcoded to your region of interest should be ok. But this setup won't work with general purpose clients that are trying to integrate the results with datasets in other projections. 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 ivan.mincik at gmail.com Tue Jan 20 08:13:25 2009 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 20 Jan 2009 17:13:25 +0100 Subject: [mapserver-users] Mapserver WMS client without SERVICE parameter Message-ID: <200901201713.25867.ivan.mincik@gista.sk> Dear users, We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request doesn't contain "SERVICE " parameter. (It should be a bug on the Manifold side. It was already submitted. No response since now .) If mapserver will receive request without SERVICE parameter, it will process it as WFS request. We want WMS response. Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present ? Thanks Ivan From crschmidt at metacarta.com Tue Jan 20 08:29:27 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 20 Jan 2009 11:29:27 -0500 Subject: [mapserver-users] Mapserver WMS client without SERVICE parameter In-Reply-To: <200901201713.25867.ivan.mincik@gista.sk> References: <200901201713.25867.ivan.mincik@gista.sk> Message-ID: <20090120162927.GC10998@metacarta.com> On Tue, Jan 20, 2009 at 05:13:25PM +0100, Ivan Mincik wrote: > Dear users, > We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request doesn't contain "SERVICE " parameter. (It should be a bug on the Manifold side. It was already submitted. No response since now .) Actually, SERVICE=WMS is not required for GetMap requests. This is a bug in MapServer that requires it. This was fixed in http://trac.osgeo.org/mapserver/ticket/2737, fixed in 2737, and released in 5.2.1 , according to the ticket. -- Chris > If mapserver will receive request without SERVICE parameter, it will process it as WFS request. We want WMS response. > Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present ? > > Thanks > Ivan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From yassefa at dmsolutions.ca Tue Jan 20 08:33:47 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 20 Jan 2009 11:33:47 -0500 Subject: [mapserver-users] Mapserver WMS client without SERVICE parameter In-Reply-To: <200901201713.25867.ivan.mincik@gista.sk> References: <200901201713.25867.ivan.mincik@gista.sk> Message-ID: <4975FCEB.6020205@dmsolutions.ca> One possibility would be to use the WXS sevice of Mapserver if that is an option for you : http://mapserver.org/ogc/mapscript.html You can then add the Service parameter to the request and proceed. Best Regards Ivan Mincik wrote: > Dear users, > We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request doesn't contain "SERVICE " parameter. (It should be a bug on the Manifold side. It was already submitted. No response since now .) > If mapserver will receive request without SERVICE parameter, it will process it as WFS request. We want WMS response. > Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present ? > > Thanks > Ivan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bartvde at osgis.nl Tue Jan 20 08:28:08 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 20 Jan 2009 17:28:08 +0100 Subject: [mapserver-users] Mapserver WMS client without SERVICE parameter In-Reply-To: <200901201713.25867.ivan.mincik@gista.sk> References: <200901201713.25867.ivan.mincik@gista.sk> Message-ID: <4975FB98.5090108@osgis.nl> Hi, this was fixed in Mapserver 5.2.1. So please upgrade. Best regards, Bart Ivan Mincik wrote: > Dear users, > We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request doesn't contain "SERVICE " parameter. (It should be a bug on the Manifold side. It was already submitted. No response since now .) > If mapserver will receive request without SERVICE parameter, it will process it as WFS request. We want WMS response. > Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present ? > > Thanks > Ivan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From ivan.mincik at gmail.com Tue Jan 20 09:01:41 2009 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 20 Jan 2009 18:01:41 +0100 Subject: [mapserver-users] Mapserver WMS client without SERVICE parameter In-Reply-To: <20090120162927.GC10998@metacarta.com> References: <200901201713.25867.ivan.mincik@gista.sk> <20090120162927.GC10998@metacarta.com> Message-ID: <200901201801.41080.ivan.mincik@gista.sk> Thanks a lot. I thought it is a feature :). I will upgrade as suggested. Ivan On Tuesday 20 January 2009, you wrote: > On Tue, Jan 20, 2009 at 05:13:25PM +0100, Ivan Mincik wrote: > > Dear users, > > We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request doesn't contain "SERVICE " parameter. (It should be a bug on the Manifold side. It was already submitted. No response since now .) > > Actually, SERVICE=WMS is not required for GetMap requests. This is a bug > in MapServer that requires it. This was fixed in > http://trac.osgeo.org/mapserver/ticket/2737, fixed in 2737, and released > in 5.2.1 , according to the ticket. > > -- Chris > > > If mapserver will receive request without SERVICE parameter, it will process it as WFS request. We want WMS response. > > Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present ? > > > > Thanks > > Ivan > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From valemunoz at gmail.com Tue Jan 20 10:57:48 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 20 Jan 2009 15:57:48 -0300 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4975EFDE.3060001@swoodbridge.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4974CC4B.8030107@pobox.com> <4b56aefe0901191219k4cb85560t50e6aad8210e164@mail.gmail.com> <4974E4A1.8090402@swoodbridge.com> <4b56aefe0901200430g1110cb6dqd6ffa3d75d6acd39@mail.gmail.com> <4975EFDE.3060001@swoodbridge.com> Message-ID: <4b56aefe0901201057k57aec199v76cf64ff255058ba@mail.gmail.com> Hi Stephen thanks for the tip... I read the example and implements it with my data. Now my problem is :how to rescue the data for instructions,distance,time etc? .. how can I know whether to turn right or left? RG. 2009/1/20 Stephen Woodbridge > Valeria, > > You should really look at the example provided with: > http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007 > > This is what I started with and then made my own modifications. The above > workshop should walk you through how to setup a pgRouting without my > additional hacks which will only confuse you at the moment. > > My dd_routing.php is a modified version of ax_routing.php that is included > in the tutorial tarball. > > You might also want to read some of these pages if you have not already: > http://www.google.com/search?hl=en&q=pgRouting&btnG=Google+Search > > Best regards, > -Steve W > > Valeria Mu?oz wrote: > >> hi Stephen.. thank for the tips... >> I have reviewed the code but can only see the dd.html. can you send me the >> dd_routing.php? . >> please >> >> thanks for everything >> 2009/1/19 Stephen Woodbridge > woodbri at swoodbridge.com>> >> >> Valeria Mu?oz wrote: >> >> frank >> thanks for the tips. I use prRouting and create the table >> dijsktra_result. Now how can I implement with my mapfile? , how >> deliver the data .. have some sample code? >> >> thanks for your help. >> >> 2009/1/19 Frank Warmerdam > > >> >> >> >> >> Valeria Mu?oz wrote: >> >> Hi >> I would like to implement the service "optimum path >> between 2 >> points," can someone help me to be able to implement it?. >> The >> general idea is that a user picks a point A and point B and >> a >> display on the map the best route to get from point A to B. >> >> >> Valeria, >> >> MapServer itself does not do route calculation. You might >> find some >> useful pointers on this page: >> >> http://wiki.osgeo.org/wiki/OpenRouter >> >> I think the pgRouting (built on postgres/postgis) is the best >> bet for >> integration with MapServer. >> >> >> So you have various options depending on the client software you are >> using. So here are some ideas for you: >> >> 1) put the route into a results table with a unique id, and pass the >> unique id back to the client where it can then request the route >> image via a mapserver mapfile the connects to the postgis database >> and requests the layer be drawn with the unique id to select the >> appropriate route. >> >> 2) make an ajax request to generate the route and return the >> polyline as an xml or json object back to the client. The client >> then parses the result document and displays the route over the map. >> >> 3) if you use OpenLayers for the client then you can use it to help >> you do 1) as an image, or 1) as a wfs layer, or 2) as a vector layer. >> >> You can look at the source for my demo page >> http://imaptools.com/leaddog/routing/dd.html which does this with a >> modified version of pgRouting (pgRouting does not return >> turn-by-turn directions), but you should be able to modify my code >> to work with pgRouting. I wrote a simple php script to proxy the >> route request into postgres and to format the results back to the >> client. >> >> Look this over and see how far you can get with this. If you get >> stuck, ask and I'm sure we can get you moving in the right direction. >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Jan 20 12:18:56 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 20 Jan 2009 15:18:56 -0500 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0901201057k57aec199v76cf64ff255058ba@mail.gmail.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4974CC4B.8030107@pobox.com> <4b56aefe0901191219k4cb85560t50e6aad8210e164@mail.gmail.com> <4974E4A1.8090402@swoodbridge.com> <4b56aefe0901200430g1110cb6dqd6ffa3d75d6acd39@mail.gmail.com> <4975EFDE.3060001@swoodbridge.com> <4b56aefe0901201057k57aec199v76cf64ff255058ba@mail.gmail.com> Message-ID: <497631B0.7040402@swoodbridge.com> Valeria Mu?oz wrote: > Hi Stephen > > thanks for the tip... I read the example and implements it with my data. > > Now my problem is :how to rescue the data for instructions,distance,time > etc? .. > how can I know whether to turn right or left? Assume you have two segments a->b and a->c and we want to evaluate it at a 1) you need to check if segment a->b needs to be flipped end to end. 2) because segments can be curves like highway exit ramps you can not just use the endpoints, instead you have to use: ab[npoints], ab[npoints-1] and compute the azimuth of this ac[1], ac[2] and compute the azimuth of this 3) then based on the change in azimuth you and determine if the route is changing directions and turning right or left See postGIS functions: ST_NumPoints() ST_pointN() Reverse() Azimuth() -Steve > RG. > 2009/1/20 Stephen Woodbridge > > > Valeria, > > You should really look at the example provided with: > http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2007 > > This is what I started with and then made my own modifications. The > above workshop should walk you through how to setup a pgRouting > without my additional hacks which will only confuse you at the moment. > > My dd_routing.php is a modified version of ax_routing.php that is > included in the tutorial tarball. > > You might also want to read some of these pages if you have not already: > http://www.google.com/search?hl=en&q=pgRouting&btnG=Google+Search > > > Best regards, > -Steve W > > Valeria Mu?oz wrote: > > hi Stephen.. thank for the tips... > I have reviewed the code but can only see the dd.html. can you > send me the dd_routing.php? . > please > > thanks for everything > 2009/1/19 Stephen Woodbridge >> > > > Valeria Mu?oz wrote: > > frank > thanks for the tips. I use prRouting and create the table > dijsktra_result. Now how can I implement with my mapfile? > , how > deliver the data .. have some sample code? > > thanks for your help. > > 2009/1/19 Frank Warmerdam > > > > > >>> > > > Valeria Mu?oz wrote: > > Hi > I would like to implement the service "optimum path > between 2 > points," can someone help me to be able to > implement it?. The > general idea is that a user picks a point A and > point B and a > display on the map the best route to get from > point A to B. > > > Valeria, > > MapServer itself does not do route calculation. You might > find some > useful pointers on this page: > > http://wiki.osgeo.org/wiki/OpenRouter > > I think the pgRouting (built on postgres/postgis) is > the best > bet for > integration with MapServer. > > > So you have various options depending on the client software > you are > using. So here are some ideas for you: > > 1) put the route into a results table with a unique id, and > pass the > unique id back to the client where it can then request the route > image via a mapserver mapfile the connects to the postgis > database > and requests the layer be drawn with the unique id to select the > appropriate route. > > 2) make an ajax request to generate the route and return the > polyline as an xml or json object back to the client. The client > then parses the result document and displays the route over > the map. > > 3) if you use OpenLayers for the client then you can use it > to help > you do 1) as an image, or 1) as a wfs layer, or 2) as a > vector layer. > > You can look at the source for my demo page > http://imaptools.com/leaddog/routing/dd.html which does this > with a > modified version of pgRouting (pgRouting does not return > turn-by-turn directions), but you should be able to modify my > code > to work with pgRouting. I wrote a simple php script to proxy the > route request into postgres and to format the results back to the > client. > > Look this over and see how far you can get with this. If you get > stuck, ask and I'm sure we can get you moving in the right > direction. > > > > From orkney at gmx.de Tue Jan 20 16:47:28 2009 From: orkney at gmx.de (Daniel Kastl) Date: Wed, 21 Jan 2009 09:47:28 +0900 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA14B@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA14B@s-sp22.pca.state.mn.us> Message-ID: <497670A0.6000502@gmx.de> Actually there is wiki page on the pgRouting website how to use Mapserver with pgRouting: http://pgrouting.postlbs.org/wiki/MapServerOutput And there is also a tutorial that makes use of Mapserver: http://pgrouting.postlbs.org/wiki/pgRoutingDocs#Tutorials I didn't try the tutorial myself and it could use an older version of pgRouting. If something doesn't work (anymore), you can also ask on the pgRouting forum (http://pgrouting.postlbs.org/discussion). Daniel Fawcett, David schrieb: > You may also want to look at the Workshops posted at the pgRouting > site. Here is a link to the workshop from FOSS4G2008: > http://pgrouting.postlbs.org/wiki/WorkshopFOSS4G2008 > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Valeria Mu?oz > *Sent:* Monday, January 19, 2009 2:20 PM > *To:* Frank Warmerdam > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] optimal path between two points. > > frank > > thanks for the tips. I use prRouting and create the table > dijsktra_result. Now how can I implement with my mapfile? , how > deliver the data .. have some sample code? > > thanks for your help. > > 2009/1/19 Frank Warmerdam > > > Valeria Mu?oz wrote: > > Hi > I would like to implement the service "optimum path > between 2 points," can someone help me to be able to > implement it?. The general idea is that a user picks a > point A and point B and a display on the map the best > route to get from point A to B. > > > Valeria, > > MapServer itself does not do route calculation. You might > find some > useful pointers on this page: > > http://wiki.osgeo.org/wiki/OpenRouter > > I think the pgRouting (built on postgres/postgis) is the best > bet for > integration with MapServer. > > 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 > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mrk.leslie at gmail.com Tue Jan 20 17:01:37 2009 From: mrk.leslie at gmail.com (Mark Leslie) Date: Wed, 21 Jan 2009 12:01:37 +1100 Subject: [mapserver-users] Re: [Foss4g2009] Integration Showcase Machine 1 In-Reply-To: <4976725A.20908@gmail.com> References: <4976725A.20908@gmail.com> Message-ID: <497673F1.5020201@gmail.com> I'm looking for some feedback on the requirements of our first machine for the FOSS4G 2009 integration showcase. We are planning on having this up and running early next month as a first kick at the cat. Can any comment on the proposed requirements below? Mark Leslie Geospatial Software Architect LISAsoft ------------------------------------------------------------- Ph: +61 2 8570 5000 Fax: +61 2 8570 5099 Mob: +61 Suite 112, Jones Bay Wharf 19-21 Pirrama Rd Pyrmont NSW 2009 ------------------------------------------------------------- LISAsoft is part of the A2end Group of Companies http://www.ardec.com.au http://www.lisasoft.com http://www.terrapages.com Jody Garnett wrote: > Good Afternoon, > > Mark and myself are going to try and set up the first integration > showcase machine; as I would like to have a sample server to point > people to when the call for workshops goes out early next month. > Sticking with what we are comfortable with this machine will be set up > with MapServer/GeoServer/PostGIS and such sample data as people actually > donate in time (I am hoping for a range of raster and vector data). > > So the question is .... > > How is this for machine specifications (based on this I am going to go > and try and round up the hardware). > - 512 G Disk RAID 0 > - 4 gigs ram > - 2 cpu (2 core each) > > We can go bounce this off the mapserver, geoserver, postgis developer > lists but I though I would start here. > Jody > _______________________________________________ > Foss4g2009 mailing list > Foss4g2009 at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/foss4g2009 From boesiii at yahoo.com Tue Jan 20 19:14:47 2009 From: boesiii at yahoo.com (boesiii) Date: Tue, 20 Jan 2009 19:14:47 -0800 (PST) Subject: [mapserver-users] Overlapping lines not shown correctly Message-ID: <1232507687674-2190301.post@n2.nabble.com> I have a shapefile layer which is a polygon layer drawn as a line that has a dashed apperance. All the lines don't show up correctly because dashed lines overlap other dashed lines. How do I get them to show up correctly? -- View this message in context: http://n2.nabble.com/Overlapping-lines-not-shown-correctly-tp2190301p2190301.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Tue Jan 20 19:53:02 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 20 Jan 2009 21:53:02 -0600 Subject: [mapserver-users] Re: [Foss4g2009] Integration Showcase Machine 1 Message-ID: <497647BE0200008F0001FD74@co5.dnr.state.mn.us> MapServer should run comfortably on that box. Better than what I have services running on at work. ;-) Steve >>> Mark Leslie 01/20/09 7:02 PM >>> I'm looking for some feedback on the requirements of our first machine for the FOSS4G 2009 integration showcase. We are planning on having this up and running early next month as a first kick at the cat. Can any comment on the proposed requirements below? Mark Leslie Geospatial Software Architect LISAsoft ------------------------------------------------------------- Ph: +61 2 8570 5000 Fax: +61 2 8570 5099 Mob: +61 Suite 112, Jones Bay Wharf 19-21 Pirrama Rd Pyrmont NSW 2009 ------------------------------------------------------------- LISAsoft is part of the A2end Group of Companies http://www.ardec.com.au http://www.lisasoft.com http://www.terrapages.com Jody Garnett wrote: > Good Afternoon, > > Mark and myself are going to try and set up the first integration > showcase machine; as I would like to have a sample server to point > people to when the call for workshops goes out early next month. > Sticking with what we are comfortable with this machine will be set up > with MapServer/GeoServer/PostGIS and such sample data as people actually > donate in time (I am hoping for a range of raster and vector data). > > So the question is .... > > How is this for machine specifications (based on this I am going to go > and try and round up the hardware). > - 512 G Disk RAID 0 > - 4 gigs ram > - 2 cpu (2 core each) > > We can go bounce this off the mapserver, geoserver, postgis developer > lists but I though I would start here. > Jody > _______________________________________________ > Foss4g2009 mailing list > Foss4g2009 at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/foss4g2009 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From amiyapatra188 at gmail.com Tue Jan 20 23:47:32 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 21 Jan 2009 13:17:32 +0530 Subject: [mapserver-users] regarding to draw a line between two points.(urgent deadline) Message-ID: Hi I have two points(lat long) in map. Now I want to draw a line for connectivity. Please help me ..its urgent because deadline is near.....Plese help me...(php mapscript) Thanks.......... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Morten.Sickel at nrpa.no Wed Jan 21 01:22:56 2009 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Wed, 21 Jan 2009 10:22:56 +0100 Subject: [mapserver-users] Mapserver etopo projection problem Message-ID: <0CE0A03D0F390E46B12B64489D20B1D40559403149@MAILHUB.NRPA.LOCAL> Hi, As a many year gis user, but fairly new to internet mapping applications, I am getting my feet wet by experimenting a bit with mapserver. As I am doing a lot of mapping of marine areas, I want to use the etopo dataset as a backdrop, but something goes terribly wrong when I try to project it. In my mapfile, I have defined the extent and projetion as: EXTENT -800000 -1500000 850000 1300000 #LAEA UNITS METERS PROJECTION "proj=laea" # "lat_0=70" "lon_0=15" END And the etopo dataset is fetched as: LAYER PROJECTION "init=epsg:4326" END NAME Etopo2 TYPE RASTER OFFSITE 0 0 0 STATUS ON CONNECTIONTYPE WMS CONNECTION "http://map.ngdc.noaa.gov/servlet/com.esri.wms.Esrimap?servicename=Deck41" METADATA "wms_srs" "EPSG:4326" "wms_name" "MODIS/ETOPO2 Relief" "wms_server_version" "1.1.0" "wms_format" "image/jpeg" END END # Etopo2 WMS image ends here What I end up with then can be seen in http://radioecology.info/images/etopo_laea.png (the red lines are administrative borders in Norway) if I make the same map without projection, it ends up like http://radioecology.info/images/etopo_geo.png (the borders are supposed to extend a bit out into the sea) If I try to ue the topographical gtopo map, I fetch it with etop LAYER NAME GTOPO TYPE RASTER OFFSITE 0 0 0 STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://imsref.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_GTOPO?" METADATA "wms_srs" "EPSG:4326" "wms_name" "GLOBAL.GTOPO60_COLOR_RELIEF" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" END PROJECTION "init=epsg:4326" END END And I get http://radioecology.info/images/gtopo_laea.png which looks just right. Any Idea of what goes wrong? The etopo dataset obiously gets projected, but I have no idea about how, I have also tried a few other projections, getting the same result, etopo freaking out, gtopo working nicely... Have anyone had any success in reprojecting etopo? Are there any other wms sources I can use? (Of cource, I can download the tiles I need and reproject and mess around with them as I like to, but it would also be useful to be able to use the etopo wms server. Morten -- Morten Sickel Norwegian Radiation Protection Authority From mario at geosar.ch Wed Jan 21 01:11:19 2009 From: mario at geosar.ch (mario at geosar.ch) Date: Wed, 21 Jan 2009 10:11:19 +0100 Subject: [mapserver-users] regarding to draw a line between two points.(urgent deadline) In-Reply-To: References: <4976DF99.9050204@geosar.ch> Message-ID: <4976E6B7.2090303@geosar.ch> Amiya Patra ha scritto: > hi > thank u 4 reply..But I am not getting.U mean to say this LAYER > NAME "Layer" > TYPE LINE > STATUS ON > DATA "st_makeline(88,21,78,25)" > END > Plz help........ > Thanks..... > > On Wed, Jan 21, 2009 at 2:10 PM, mario at geosar.ch wrote: > > Amiya Patra ha scritto: > > Hi > > I have two points(lat long) in map. Now I want to draw a line > for connectivity. Please help me ..its urgent because > deadline is near.....Plese help me...(php mapscript) > > > > Thanks.......... > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus > Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 > > > > Hello, > create new layer with the data st_makline(point1,point2) where > point1 and point2 are given. > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 > > Hi, if your are using a postgresql/postgis database you can use the function st_makeline see the postgisreference of the function. You can also add dynamic geom to layer via mapscript see http://mapserver.org/mapscript/php/ look at the ShapeObj. From hiicharles at gmail.com Wed Jan 21 01:42:14 2009 From: hiicharles at gmail.com (KBlade) Date: Wed, 21 Jan 2009 01:42:14 -0800 (PST) Subject: [mapserver-users] Help needed on rendering large shp file on mapserver In-Reply-To: <1232442890480-2185617.post@n2.nabble.com> References: <1232442890480-2185617.post@n2.nabble.com> Message-ID: <1232530934120-2191329.post@n2.nabble.com> I would like to add more - After reconstruct the map file from zero, I found that the error was caused by LABEL. - I have many road with name. MapServer take lots of time to display the road label. - When I filter the label using CLASSITEM and EXPRESSION, I manage to display it. Is there any way to display all the road label? KBlade wrote: > > I have a shp file of size 10894 KB. > The ms4w that I setup fail to display it in the browser. > I was trying to output it as png pc256. > The test was done localhost. > > When I try on smaller shp file, 85kb it will show me the map. > Of course, I didn't use any client (eg. openlayers) to retrieve the raster > in tiles. > Please advise on this matter. > Thanks. > > Symptons: > CPU process running high when I try to retrieve the map from browser. > It run like 10 - 20 mins then show: > Internal Server Error > > The server encountered an internal error or misconfiguration and was > unable to complete your request. > Please contact the server administrator, admin at local.domain and inform > them of the time the error occurred, and anything you might have done that > may have caused the error. > More information about this error may be available in the server error > log. > > > I think the ms4w apache timeout. > > -- View this message in context: http://n2.nabble.com/Help-needed-on-rendering-large-shp-file-on-mapserver-tp2185617p2191329.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mario at geosar.ch Wed Jan 21 01:45:02 2009 From: mario at geosar.ch (mario at geosar.ch) Date: Wed, 21 Jan 2009 10:45:02 +0100 Subject: [mapserver-users] regarding to draw a line between two points.(urgent deadline) In-Reply-To: References: <4976DF99.9050204@geosar.ch> <4976E6B7.2090303@geosar.ch> Message-ID: <4976EE9E.9000004@geosar.ch> Amiya Patra ha scritto: > Hi > Thanks. Actually I am using Mysql database. And I am able to paste the > symbol at a point. Now I need to connect those point i.e, drawing > line. So plz help me regardoing this. And one more thing I need to run > my application via cgi-bin tomcat server. And already I configured > those options so that I am able to run cgi script. but for php I cant > find php5servlet.jar file. So plz can u help me. > Plz help > Thanks. > > On Wed, Jan 21, 2009 at 2:41 PM, mario at geosar.ch wrote: > > Amiya Patra ha scritto: > > hi > thank u 4 reply..But I am not getting.U mean to say this LAYER > NAME "Layer" > TYPE LINE > STATUS ON > DATA "st_makeline(88,21,78,25)" > END > Plz help........ > Thanks..... > On Wed, Jan 21, 2009 at 2:10 PM, mario at geosar.ch > wrote: > > Amiya Patra ha scritto: > > Hi > > I have two points(lat long) in map. Now I want to draw > a line > for connectivity. Please help me ..its urgent because > deadline is near.....Plese help me...(php mapscript) > > > > Thanks.......... > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com Version: 8.0.176 / > Virus > Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 > > > Hello, > create new layer with the data st_makline(point1,point2) where > point1 and point2 are given. > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus > Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 > > > > Hi, > if your are using a postgresql/postgis database you can use the > function st_makeline see the postgisreference of the function. > You can also add dynamic geom to layer via mapscript see > http://mapserver.org/mapscript/php/ look at the ShapeObj. > > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 > > Hi, for configuring tomcat to execute php look at the web for some how_to, for drawing lines between given points from mysql, you can in php script connect to db load the points and add them via mapscript ShapeObj to a layer. Regards Mario From amiyapatra188 at gmail.com Wed Jan 21 02:45:13 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 21 Jan 2009 16:15:13 +0530 Subject: [mapserver-users] plz response immediate (deadline) Message-ID: hi But I am not getting how to addtwo points via shapeobj as I already placed points in my map file. my function is like this.... function AddPoints ( $map, $qresult ) { $i = 0; foreach($qresult as $row) { $poi[$i] = ms_newPointObj(); $ln[$i] = ms_newLineObj(); $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT); $poi[$i]->setXY($row[1],$row[2]); $ln[$i]->add($poi[$i]); $shp[$i]->add($ln[$i]); $shp[$i]->set(index, $row[0]); $this_layer->addFeature( $shp[$i] ); $i++; } } // end AddPoints plz response ....... thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Wed Jan 21 02:52:52 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 21 Jan 2009 16:22:52 +0530 Subject: [mapserver-users] plz response immediate (deadline) Message-ID: Hi I mean to say how I will connect two points. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario at geosar.ch Wed Jan 21 03:12:33 2009 From: mario at geosar.ch (mario at geosar.ch) Date: Wed, 21 Jan 2009 12:12:33 +0100 Subject: [mapserver-users] regarding to draw a line between two points.(urgent deadline) Message-ID: <49770321.5030706@geosar.ch> Amiya Patra ha scritto: > hi > But I am not getting how to add them as I already placed points in my > map file. my functio is like this.... > function AddPoints ( $map, $qresult ) > { $i = 0; > foreach($qresult as $row) > { > $poi[$i] = ms_newPointObj(); > $ln[$i] = ms_newLineObj(); > $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT); > $poi[$i]->setXY($row[1],$row[2]); > $ln[$i]->add($poi[$i]); > $shp[$i]->add($ln[$i]); > $shp[$i]->set(index, $row[0]); > $this_layer->addFeature( $shp[$i] ); > $i++; > } > } // end AddPoints > plz response ....... > thanks > On Wed, Jan 21, 2009 at 3:15 PM, mario at geosar.ch wrote: > > Amiya Patra ha scritto: > > Hi > Thanks. Actually I am using Mysql database. And I am able to > paste the symbol at a point. Now I need to connect those point > i.e, drawing line. So plz help me regardoing this. And one > more thing I need to run my application via cgi-bin tomcat > server. And already I configured those options so that I am > able to run cgi script. but for php I cant find > php5servlet.jar file. So plz can u help me. > Plz help > Thanks. > > On Wed, Jan 21, 2009 at 2:41 PM, mario at geosar.ch > wrote: > > Amiya Patra ha scritto: > > hi > thank u 4 reply..But I am not getting.U mean to say > this LAYER > NAME "Layer" > TYPE LINE > STATUS ON > DATA "st_makeline(88,21,78,25)" > END > Plz help........ > Thanks..... On Wed, Jan 21, 2009 at 2:10 PM, > mario at geosar.ch > wrote: > > Amiya Patra ha scritto: > > Hi > > I have two points(lat long) in map. Now I want > to draw > a line > for connectivity. Please help me ..its urgent > because > deadline is near.....Plese help me...(php > mapscript) > > > > Thanks.......... > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > > > > >> > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com Version: > 8.0.176 / > Virus > Database: 270.10.10/1905 - Release Date: > 20.01.2009 14:34 > > Hello, > create new layer with the data > st_makline(point1,point2) where > point1 and point2 are given. > > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com Version: 8.0.176 / > Virus > Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 > > Hi, > if your are using a postgresql/postgis database you can use > the > function st_makeline see the postgisreference of the function. > You can also add dynamic geom to layer via mapscript see > http://mapserver.org/mapscript/php/ look at the ShapeObj. > > > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus > Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 > > > Hi, > for configuring tomcat to execute php look at the web for some > how_to, for drawing lines between given points from mysql, > you can in php script connect to db load the points and add them > via mapscript ShapeObj to a layer. > > Regards > Mario > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: > 270.10.10/1905 - Release Date: 20.01.2009 14:34 > > Make another function addLine that works in the same way, I really will not do it for you. From amiyapatra188 at gmail.com Wed Jan 21 04:25:41 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 21 Jan 2009 17:55:41 +0530 Subject: [mapserver-users] regarding drawing lines between 2 points Message-ID: Hi plz any one tell me how I will draw lines betweens 2 points by shapeobject (php mapscript) -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Wed Jan 21 05:08:05 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Wed, 21 Jan 2009 18:38:05 +0530 Subject: [mapserver-users] plz help Message-ID: hi can anyone help me by telling that how to draw line between two points via php-mapscript using shapeobject I mean to say what methods I will use. Plz help ............ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bea at ixsea.com Wed Jan 21 05:24:07 2009 From: bea at ixsea.com (=?ISO-8859-15?Q?Beno=EEt_Andrieu?=) Date: Wed, 21 Jan 2009 14:24:07 +0100 Subject: [mapserver-users] regarding to draw a line between twopoints.(urgent deadline) In-Reply-To: <49770321.5030706@geosar.ch> References: <49770321.5030706@geosar.ch> Message-ID: Hi all, By doing some google, I found this page http://n2.nabble.com/Drawing-a-Line-From-A-Set-Start-Point-to-End-Point-td1970791.html I never did this kind of thing by myself Regards, Beno?t Andrieu bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: To: Sent: Wednesday, January 21, 2009 12:12 PM Subject: Re: [mapserver-users] regarding to draw a line between twopoints.(urgent deadline) > Amiya Patra ha scritto: >> hi >> But I am not getting how to add them as I already placed points in my map file. my functio is like this.... >> function AddPoints ( $map, $qresult ) >> { $i = 0; >> foreach($qresult as $row) >> { >> $poi[$i] = ms_newPointObj(); >> $ln[$i] = ms_newLineObj(); >> $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT); >> $poi[$i]->setXY($row[1],$row[2]); >> $ln[$i]->add($poi[$i]); >> $shp[$i]->add($ln[$i]); >> $shp[$i]->set(index, $row[0]); >> $this_layer->addFeature( $shp[$i] ); >> $i++; >> } >> } // end AddPoints >> plz response ....... >> thanks >> On Wed, Jan 21, 2009 at 3:15 PM, mario at geosar.ch wrote: >> >> Amiya Patra ha scritto: >> >> Hi >> Thanks. Actually I am using Mysql database. And I am able to >> paste the symbol at a point. Now I need to connect those point >> i.e, drawing line. So plz help me regardoing this. And one >> more thing I need to run my application via cgi-bin tomcat >> server. And already I configured those options so that I am >> able to run cgi script. but for php I cant find >> php5servlet.jar file. So plz can u help me. >> Plz help >> Thanks. >> >> On Wed, Jan 21, 2009 at 2:41 PM, mario at geosar.ch >> wrote: >> >> Amiya Patra ha scritto: >> >> hi >> thank u 4 reply..But I am not getting.U mean to say >> this LAYER >> NAME "Layer" >> TYPE LINE >> STATUS ON >> DATA "st_makeline(88,21,78,25)" >> END >> Plz help........ >> Thanks..... On Wed, Jan 21, 2009 at 2:10 PM, >> mario at geosar.ch >> wrote: >> >> Amiya Patra ha scritto: >> >> Hi >> >> I have two points(lat long) in map. Now I want >> to draw >> a line >> for connectivity. Please help me ..its urgent >> because >> deadline is near.....Plese help me...(php >> mapscript) >> >> >> >> Thanks.......... >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> > > >> > >> > >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - http://www.avg.com Version: >> 8.0.176 / >> Virus >> Database: 270.10.10/1905 - Release Date: >> 20.01.2009 14:34 >> >> Hello, >> create new layer with the data >> st_makline(point1,point2) where >> point1 and point2 are given. >> >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - http://www.avg.com Version: 8.0.176 / >> Virus >> Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 >> >> Hi, >> if your are using a postgresql/postgis database you can use the >> function st_makeline see the postgisreference of the function. >> You can also add dynamic geom to layer via mapscript see >> http://mapserver.org/mapscript/php/ look at the ShapeObj. >> >> >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus >> Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 >> >> Hi, >> for configuring tomcat to execute php look at the web for some >> how_to, for drawing lines between given points from mysql, >> you can in php script connect to db load the points and add them >> via mapscript ShapeObj to a layer. >> >> Regards >> Mario >> >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.10/1905 - Release Date: 20.01.2009 14:34 >> >> > > Make another function addLine that works in the same way, I really will not do it for you. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jlacroix at mapgears.com Wed Jan 21 05:27:42 2009 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed, 21 Jan 2009 08:27:42 -0500 Subject: [mapserver-users] regarding drawing lines between 2 points In-Reply-To: References: Message-ID: <497722CE.8040809@mapgears.com> Hi, Something like this (not tested): $point1 = ms_newPointObj(); $point1->setXY($X1, $Y1); $point2 = ms_newPointObj(); $point2->setXY($X2, $Y2); $line = ms_newLineObj(); $line->add($point1); $line->add($point2); $shape = ms_newShapeObj(MS_SHAPE_LINE); $shape->add($line); $layer = $gpoMap->getLayerByName('selpoint'); $layer->addFeature($shape); $img = $gpoMap->draw(); $img->saveWebImage(); Julien Amiya Patra wrote: > Hi > > plz any one tell me how I will draw lines betweens 2 points by > shapeobject (php mapscript) > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From Schoenhammer.Herbert at Regensburg.de Wed Jan 21 06:46:23 2009 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Wed, 21 Jan 2009 15:46:23 +0100 Subject: WG: [mapserver-users] Again: WFS: How to sort the WFS output in MS5.x.x ? Message-ID: -----Urspr?ngliche Nachricht----- Von: Sch?nhammer, Herbert Gesendet: Mittwoch, 21. Januar 2009 13:14 An: 'Steve Lime' Betreff: AW: [mapserver-users] Again: WFS: How to sort the WFS output in MS5.x.x ? Hi Steve, sorry for the delay. I want a wfs - result in a certain order. So I made a wfs - mapfile. The mapfile uses postgres/postgis. The DATA-statement in my mapfile is: ==================================== DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, haus_nr_zusatz, str_such_string, ... FROM stgk_hausnummern ORDER BY str_name,haus_nr,haus_nr_zusatz) as foo using unique fid using SRID=31468' My application generates a wfs-request of this form: ==================================================== ....map=/data-umn/wfs/rgb_wfs_adressen.map&REQUEST=getFeature&Typename=adressen&Version=1.0.0&service=WFS&filter=str_such_string<%2Fogc%3APropertyName>*STEINWEG*<%2Fogc%3ALiteral><%2Fogc%3APropertyIsLike><%2Fogc%3AFilter> Generating errors in the request above, I was able to have a look at the sql-statments, which are done by mapserver in postgres: Mapserver 4.10.x (in combination with postges version 8.2.3) ============================================================ STATEMENT: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from (SELECT the_geom, fid, str_name, str_schluessel, str_such_string, h_nummer, orientation, haus_nr, haus_nr_zusatz FROM stgk_hausnummern ORDER BY str_name,haus_nr,haus_nr_zusatz) as foo WHERE (str_such_strings like '%STEINWEG%' escape '!') and (the_geom && setSRID( 'BOX3D(4501274 5424202,4515870 5438587)'::BOX3D,31468) ) I get a xml-document containing all addresses in order by str_name,haus_nr,haus_nr_zusatz !! Changing the mapfile sql-statement to DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, haus_nr_zusatz, str_such_string, ... FROM stgk_hausnummern ORDER BY haus_nr,haus_nr_zusatz,str_name) as foo using unique fid using SRID=31468' causes a sql-stament of STATEMENT: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),fid::text from (SELECT the_geom, fid, str_name, str_schluessel, str_such_string, h_nummer, orientation, haus_nr, haus_nr_zusatz FROM stgk_hausnummern ORDER BY haus_nr,haus_nr_zusatz,str_name) as foo WHERE (str_such_strings like '%STEINWEG%' escape '!') and (the_geom && setSRID( 'BOX3D(4501274 5424202,4515870 5438587)'::BOX3D,31468) ) Now I get a xml-document containing all addresses in order by haus_nr,haus_nr_zusatz,str_name !! This is, what I expect from mapserver 5.x too. But I don't get this. Mapserver 5.x.x (in combination with postges version 8.3.1) =========================================================== The DATA - statement in the mapfile: DATA 'the_geom from (SELECT the_geom, oid, fid, str_name, str_schluessel, str_such_string, h_nummer, orientation, haus_nr, haus_nr_zusatz FROM stgk_hausnummern ORDER BY str_name, haus_nr,haus_nr_zusatz) as foo using unique oid using SRID=31468' The sql-statement now looks like this: STATEMENT: DECLARE mycursor BINARY CURSOR FOR SELECT "str_such_strings"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from (SELECT the_geom, oid, fid, str_name, str_schluessel, str_such_string, h_nummer, orientation, haus_nr, haus_nr_zusatz FROM stgk_hausnummern ORDER BY str_name,haus_nr,haus_nr_zusatz) as foo WHERE the_geom && setSRID('BOX3D(-25000000 -25000000,25000000 25000000)'::BOX3D, 31468 ) I get a xml-document, but the order of the data IS NOT "ORDER BY str_name,haus_nr,haus_nr_zusatz". The records are ordered by "oid" !!!! Changing the sql-statement in the mapfile for example: DATA 'the_geom from (SELECT the_geom, oid, fid, str_name, str_schluessel, str_such_string, h_nummer, orientation, haus_nr, haus_nr_zusatz FROM stgk_hausnummern ORDER BY haus_nr,haus_nr_zusatz,str_name) as foo using unique oid using SRID=31468' changes also the sql-statement which is generated by mapserver STATEMENT: DECLARE mycursor BINARY CURSOR FOR SELECT "str_such_strings"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from (SELECT the_geom, oid, fid, str_name, str_schluessel, str_such_string, h_nummer, orientation, haus_nr, haus_nr_zusatz FROM stgk_hausnummern ORDER BY haus_nr,haus_nr_zusatz, str_name) as foo WHERE the_geom && setSRID('BOX3D(-25000000 -25000000,25000000 25000000)'::BOX3D, 31468 ) But (unfortenately) this has no effect, the result is also ordered by "oid". Changing the sort-order ======================= Changing the order is only possible by using another " using unique " - clause: for exampe fid is another unique identifier. So "using unique fid" changes the order, but the order of the result is now "fid". Question ======== How may I determine the sort order of the result using mapserver 5.x.x ? This must be possible for a combination of several attributes, even if this combination is not unique ! Regards Herbert >-----Urspr?ngliche Nachricht----- >Von: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] >Gesendet: Dienstag, 16. Dezember 2008 22:54 >An: Mapserver-users (mapserver-users at lists.osgeo.org); >Sch?nhammer, Herbert >Betreff: Re: [mapserver-users] Again: WFS: How to sort the WFS >output in MS5.x.x ? > > >The presentation side of the WFS code doesn't do any sorting so that's >not the culprit. Looks like you're >using PostGIS. Is there any way you can capture the SQL actually being >generated by MapServer and >executed by PostGIS? That would help us track this down. > >Steve > >>>> On 12/16/2008 at 4:13 AM, in message >, >Sch?nhammer, Herbert wrote: >> Hi list, >> >> I have posted this item some days ago, but I didn't get some help. So >I want >> to repeat my question: >> >> Until now I've been using mapserver 4.10.2 for generating wfs (for >use with >> wfs-gazetteers). I determined the order of the wfs-output with the >ORDER BY >> clause of the DATA-statement. >> >> Example: >> DATA 'the_geom from (SELECT the_geom, fid, str_name, haus_nr, >> haus_nr_zusatz, str_such_string, ... FROM stgk_hausnummern ORDER BY >> str_name,haus_nr,haus_nr_zusatz) as foo using unique fid using >SRID=31468' >> >> Changing the ORDER BY - clause caused changing the sort order of the >output. >> ============================================================== >> >> Using mapserver 5.2.0 and mapserver 5.2.1 the ORDER BY - clause has >obviously >> no effect. The wfs - output is always sorted by sort order given from > >> attribute fid. (could be another attribute like oid, but it is alwas >used the >> attribute after USING UNIQUE ..) >> >> Is it possible to change the sort order in mapserver 5.x.x too? >> Has anybody a tipp for me, how this could be done ? >> >> Thanks >> Schoenhammer Herbert >> >> P.S. >> The generated urls are looking like: >> >http://myserver/cgi-bin/getows?map=/data-umn/wfs/rgb_wfs_adress en.map&REQUEST=g > etFeature&Typename=adressen&Version=1.0.0&service=WFS&filter=%3Cogc:Filter+xmlns: > ogc=%27http://ogc.org%27+xmlns:gml=%27http://www.opengis.net/gml%27%3E%3Cogc: > PropertyIsLike+wildCard=%27*%27+singleChar=%27.%27+escape=%27!%27%3E%3Cogc:Pr > opertyName%3Estr_such_string%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*MARTIN*% > 3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E From pgiannini at bytewise.it Wed Jan 21 08:29:36 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 21 Jan 2009 17:29:36 +0100 (CET) Subject: [mapserver-users] dynamically added shapes and their values Message-ID: <55312.89.97.235.106.1232555376.squirrel@localhost.localdomain> Hi all, I'm working to a c# asp.net project embedding a mapscript application. My attempt is to add dynamically features to a layer object and classify them in different colors. The features are INLINE features: I don't add the features to the source of the layer. I'm able to create different classes and styles in the layer, set a field as classitem and set an EXPRESSION string to the class. I found the shapeObj.initValues(numOfFields) method, which cannot set the field names, only the number, and also the shapeObj.setValue(indexOfField, valueAsString) for setting the value. Now I need a field name to set a CLASSITEM property of the layer!!! I found no methods to add a named field to the layer. Maybe I follow a wrong way... Someone has an idea? thanks in advance ...........................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From jose.maria.michia at gmail.com Wed Jan 21 10:23:05 2009 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Wed, 21 Jan 2009 16:23:05 -0200 Subject: [mapserver-users] plz response immediate (deadline) In-Reply-To: References: Message-ID: 2009/1/21 Amiya Patra : > hi > But I am not getting how to addtwo points via shapeobj as I already placed > points in my map file. my function is like this.... > function AddPoints ( $map, $qresult ) > { > $i = 0; > foreach($qresult as $row) > { > > $poi[$i] = ms_newPointObj(); > $ln[$i] = ms_newLineObj(); Maybe one problem is the following line: > $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT) You must create a new shape of type LINE, not POINT. Change this line to: > $shp[$i] = ms_newShapeObj(MS_SHAPE_LINE) > ; > $poi[$i]->setXY($row[1],$row[2]); > $ln[$i]->add($poi[$i]); > $shp[$i]->add($ln[$i]); > $shp[$i]->set(index, $row[0]); > $this_layer->addFeature( $shp[$i] ); > $i++; > } > > } // end AddPoints > plz response ....... > thanks Perhaps there are other issues with your problem, I hope not! Saludos Jos? Mar?a From boesiii at yahoo.com Wed Jan 21 10:47:48 2009 From: boesiii at yahoo.com (boesiii) Date: Wed, 21 Jan 2009 10:47:48 -0800 (PST) Subject: [mapserver-users] Is there a way to add a single click zoom button In-Reply-To: <49423.192.168.1.59.1232447773.squirrel@localhost.localdomain> References: <1231954440585-2158109.post@n2.nabble.com> <53461.89.97.235.106.1232015572.squirrel@localhost.localdomain> <1232400632747-2183552.post@n2.nabble.com> <49423.192.168.1.59.1232447773.squirrel@localhost.localdomain> Message-ID: <1232563668363-2193900.post@n2.nabble.com> PG, The button is not working because of I have a refresh button with a "submit" value I think. The refresh button is for updating layers. How can I make is so both buttons work. Code:
-- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2193900.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boesiii at yahoo.com Wed Jan 21 10:53:57 2009 From: boesiii at yahoo.com (boesiii) Date: Wed, 21 Jan 2009 10:53:57 -0800 (PST) Subject: [mapserver-users] How to open a new window for print layout In-Reply-To: <49707DE2.5157.008F.0@dnr.state.mn.us> References: <1232129750495-2169826.post@n2.nabble.com> <49707DE2.5157.008F.0@dnr.state.mn.us> Message-ID: <1232564037674-2193940.post@n2.nabble.com> Thanks Steve! Below are lines of code that I added to my HTML and MAP file to make it happen HTML Code: MAP FILE Code added to MAP definition TEMPLATEPATTERN '.' You also need to have an html file called print.html, this is the file that it opens to put the map file image into. The only problem I have now is that when I print, my browser adds headers and footers. -- View this message in context: http://n2.nabble.com/How-to-open-a-new-window-for-print-layout-tp2169826p2193940.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Wed Jan 21 12:43:31 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 21 Jan 2009 14:43:31 -0600 Subject: [mapserver-users] dynamically added shapes and their values In-Reply-To: <55312.89.97.235.106.1232555376.squirrel@localhost.localdomain> References: <55312.89.97.235.106.1232555376.squirrel@localhost.localdomain> Message-ID: <49773493.5157.008F.0@dnr.state.mn.us> PG: At this point inline feature can carry no attributes and as a result cannot be classified. So I don't think you're going to be able to make this work. The work around is to use separate layers for what would have been a class and add features to the appropriate layer. Steve >>> On 1/21/2009 at 10:29 AM, in message <55312.89.97.235.106.1232555376.squirrel at localhost.localdomain>, "Pietro Giannini" wrote: > Hi all, > > I'm working to a c# asp.net project embedding a mapscript application. > > My attempt is to add dynamically features to a layer object and classify > them in different colors. > The features are INLINE features: I don't add the features to the source > of the layer. > > I'm able to create different classes and styles in the layer, set a field > as classitem and set an EXPRESSION string to the class. > > I found the > shapeObj.initValues(numOfFields) > method, which cannot set the field names, only the number, and also the > shapeObj.setValue(indexOfField, valueAsString) > for setting the value. > > Now I need a field name to set a CLASSITEM property of the layer!!! > I found no methods to add a named field to the layer. > > Maybe I follow a wrong way... > > Someone has an idea? > thanks in advance > ...........................pg > > From danlittle at yahoo.com Wed Jan 21 13:09:06 2009 From: danlittle at yahoo.com (Dan Little) Date: Wed, 21 Jan 2009 13:09:06 -0800 (PST) Subject: [mapserver-users] dynamically added shapes and their values References: <55312.89.97.235.106.1232555376.squirrel@localhost.localdomain> <49773493.5157.008F.0@dnr.state.mn.us> Message-ID: <60518.92104.qm@web51405.mail.re2.yahoo.com> Totally spit balling... What about writing your layer to a temp. file that's KML/GML. The file size is small, it carries the attributes you want, and it's easy to write the file using anything that writes text files (presumable C# can write text files ... but I know Microsoft misses little details from time to time). Then write yourself a little mapfile you can open... maybe following this as a guide... http://mapserver.org/input/vector/gml.html -or- http://mapserver.org/input/vector/kml.html And just change "CONNECTION" using Mapscript to whatever the location of your newly created KML/GML file happens to be, then proceed with the processing. ----- Original Message ---- > From: Steve Lime > To: Pietro Giannini ; mapserver-users at lists.osgeo.org > Sent: Wednesday, January 21, 2009 2:43:31 PM > Subject: Re: [mapserver-users] dynamically added shapes and their values > > PG: At this point inline feature can carry no attributes and as a result cannot > be > classified. So I don't think you're going to be able to make this work. The work > around is to use separate layers for what would have been a class and add > features to the appropriate layer. > > Steve > > >>> On 1/21/2009 at 10:29 AM, in message > <55312.89.97.235.106.1232555376.squirrel at localhost.localdomain>, "Pietro > Giannini" wrote: > > Hi all, > > > > I'm working to a c# asp.net project embedding a mapscript application. > > > > My attempt is to add dynamically features to a layer object and classify > > them in different colors. > > The features are INLINE features: I don't add the features to the source > > of the layer. > > > > I'm able to create different classes and styles in the layer, set a field > > as classitem and set an EXPRESSION string to the class. > > > > I found the > > shapeObj.initValues(numOfFields) > > method, which cannot set the field names, only the number, and also the > > shapeObj.setValue(indexOfField, valueAsString) > > for setting the value. > > > > Now I need a field name to set a CLASSITEM property of the layer!!! > > I found no methods to add a named field to the layer. > > > > Maybe I follow a wrong way... > > > > Someone has an idea? > > thanks in advance > > ...........................pg > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Wed Jan 21 14:41:09 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 21 Jan 2009 23:41:09 +0100 Subject: [mapserver-users] dynamically added shapes and their values In-Reply-To: <49773493.5157.008F.0@dnr.state.mn.us> References: <55312.89.97.235.106.1232555376.squirrel@localhost.localdomain> <49773493.5157.008F.0@dnr.state.mn.us> Message-ID: Steve, I think however it would be quite an easy to suppress the whichitems functionality for the inline layers and expose msLayerSetItems to the SWIG interface so as to achieve the desired effect. Best regards, Tamas 2009/1/21 Steve Lime > PG: At this point inline feature can carry no attributes and as a result > cannot be > classified. So I don't think you're going to be able to make this work. The > work > around is to use separate layers for what would have been a class and add > features to the appropriate layer. > > Steve > > >>> On 1/21/2009 at 10:29 AM, in message > <55312.89.97.235.106.1232555376.squirrel at localhost.localdomain>, "Pietro > Giannini" wrote: > > Hi all, > > > > I'm working to a c# asp.net project embedding a mapscript application. > > > > My attempt is to add dynamically features to a layer object and classify > > them in different colors. > > The features are INLINE features: I don't add the features to the source > > of the layer. > > > > I'm able to create different classes and styles in the layer, set a field > > as classitem and set an EXPRESSION string to the class. > > > > I found the > > shapeObj.initValues(numOfFields) > > method, which cannot set the field names, only the number, and also the > > shapeObj.setValue(indexOfField, valueAsString) > > for setting the value. > > > > Now I need a field name to set a CLASSITEM property of the layer!!! > > I found no methods to add a named field to the layer. > > > > Maybe I follow a wrong way... > > > > Someone has an idea? > > thanks in advance > > ...........................pg > > > > > > _______________________________________________ > 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 dnr.state.mn.us Wed Jan 21 22:01:37 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 22 Jan 2009 00:01:37 -0600 Subject: [mapserver-users] dynamically added shapes and their values Message-ID: <4977B7610200008F0001FE51@co5.dnr.state.mn.us> Could consider for 5.4 I guess. The layer iteminfo would need to be populated somehow for inline layers then. Tamas, something you want to take on? Steve >>> Tamas Szekeres 01/21/09 4:42 PM >>> Steve, I think however it would be quite an easy to suppress the whichitems functionality for the inline layers and expose msLayerSetItems to the SWIG interface so as to achieve the desired effect. Best regards, Tamas 2009/1/21 Steve Lime > PG: At this point inline feature can carry no attributes and as a result > cannot be > classified. So I don't think you're going to be able to make this work. The > work > around is to use separate layers for what would have been a class and add > features to the appropriate layer. > > Steve > > >>> On 1/21/2009 at 10:29 AM, in message > <55312.89.97.235.106.1232555376.squirrel at localhost.localdomain>, "Pietro > Giannini" wrote: > > Hi all, > > > > I'm working to a c# asp.net project embedding a mapscript application. > > > > My attempt is to add dynamically features to a layer object and classify > > them in different colors. > > The features are INLINE features: I don't add the features to the source > > of the layer. > > > > I'm able to create different classes and styles in the layer, set a field > > as classitem and set an EXPRESSION string to the class. > > > > I found the > > shapeObj.initValues(numOfFields) > > method, which cannot set the field names, only the number, and also the > > shapeObj.setValue(indexOfField, valueAsString) > > for setting the value. > > > > Now I need a field name to set a CLASSITEM property of the layer!!! > > I found no methods to add a named field to the layer. > > > > Maybe I follow a wrong way... > > > > Someone has an idea? > > thanks in advance > > ...........................pg > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bamerbalazs at gmail.com Thu Jan 22 00:16:36 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Thu, 22 Jan 2009 09:16:36 +0100 Subject: [mapserver-users] php mapscript object destruction Message-ID: Hi All, What MapScript objects need to be destructed explicitely under PHP? I mean ImageObj has a free() method, MapObj hasn't any. Can I leave it as is? What happens if I leave an object with free() method? Is the order important in case of for example classes, layers, styles etc which are "encapsulated" one in another? thanx in advance, best regards: Bal?zs B?mer From doug.royce.white at gmail.com Thu Jan 22 00:25:59 2009 From: doug.royce.white at gmail.com (Doug White) Date: Thu, 22 Jan 2009 19:25:59 +1100 Subject: [mapserver-users] Mapserver Hardware Specifications? Message-ID: <49782D97.2050307@gmail.com> Hi, Is anyone running mapserver in a stable production or development environment on dedicated hardware? If so, I'd be interest to know the server specifications you are using. As part of FOSS4G2009 it is intended to showcase mapserver along with other open source software. Currently the following hardware specs are proposed... 512GB Disk Raid0 4 GB RAM 2x Dual Core CPU Would anyone recommend a higher specification? Keeping in mind this will be used to showcase the potential of mapserver. Regards, Doug White. From pgiannini at bytewise.it Thu Jan 22 02:28:44 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 22 Jan 2009 11:28:44 +0100 (CET) Subject: [mapserver-users] dynamically added shapes and their values In-Reply-To: <60518.92104.qm@web51405.mail.re2.yahoo.com> References: <55312.89.97.235.106.1232555376.squirrel@localhost.localdomain> <49773493.5157.008F.0@dnr.state.mn.us> <60518.92104.qm@web51405.mail.re2.yahoo.com> Message-ID: <49504.192.168.1.153.1232620124.squirrel@localhost.localdomain> Dan, I considered this solution, as well as (Steve) creating a layer for each classification. maybe you are right, despite I must to generate a different file for each user-session: other garbage in tmp dir... :) possibility of apply a style to a single feature can be a great functionality for further releases... what about the STYLEITEM? http://mapserver.org/mapfile/layer.html?highlight=styleitem http://mapserver.org/mapscript/mapscript.html?highlight=styleitem --- thanks all bye ..................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Gennaio 21, 2009 22:09, Dan Little wrote: > Totally spit balling... > > What about writing your layer to a temp. file that's KML/GML. > > The file size is small, it carries the attributes you want, and it's easy > to write the file using anything that writes text files (presumable C# > can write text files ... but I know Microsoft misses little details from > time to time). > > Then write yourself a little mapfile you can open... maybe following this > as a guide... > http://mapserver.org/input/vector/gml.html > -or- > http://mapserver.org/input/vector/kml.html > > And just change "CONNECTION" using Mapscript to whatever the location of > your newly created KML/GML file happens to be, then proceed with the > processing. > > > > ----- Original Message ---- >> From: Steve Lime >> To: Pietro Giannini ; >> mapserver-users at lists.osgeo.org >> Sent: Wednesday, January 21, 2009 2:43:31 PM >> Subject: Re: [mapserver-users] dynamically added shapes and their values >> >> PG: At this point inline feature can carry no attributes and as a result >> cannot >> be >> classified. So I don't think you're going to be able to make this work. >> The work >> around is to use separate layers for what would have been a class and >> add >> features to the appropriate layer. >> >> Steve >> >> >>> On 1/21/2009 at 10:29 AM, in message >> <55312.89.97.235.106.1232555376.squirrel at localhost.localdomain>, "Pietro >> Giannini" wrote: >> > Hi all, >> > >> > I'm working to a c# asp.net project embedding a mapscript application. >> > >> > My attempt is to add dynamically features to a layer object and >> classify >> > them in different colors. >> > The features are INLINE features: I don't add the features to the >> source >> > of the layer. >> > >> > I'm able to create different classes and styles in the layer, set a >> field >> > as classitem and set an EXPRESSION string to the class. >> > >> > I found the >> > shapeObj.initValues(numOfFields) >> > method, which cannot set the field names, only the number, and also >> the >> > shapeObj.setValue(indexOfField, valueAsString) >> > for setting the value. >> > >> > Now I need a field name to set a CLASSITEM property of the layer!!! >> > I found no methods to add a named field to the layer. >> > >> > Maybe I follow a wrong way... >> > >> > Someone has an idea? >> > thanks in advance >> > ...........................pg >> > >> > >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From pgiannini at bytewise.it Thu Jan 22 02:29:12 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 22 Jan 2009 11:29:12 +0100 (CET) Subject: [mapserver-users] Is there a way to add a single click zoom button In-Reply-To: <1232563668363-2193900.post@n2.nabble.com> References: <1231954440585-2158109.post@n2.nabble.com> <53461.89.97.235.106.1232015572.squirrel@localhost.localdomain> <1232400632747-2183552.post@n2.nabble.com> <49423.192.168.1.59.1232447773.squirrel@localhost.localdomain> <1232563668363-2193900.post@n2.nabble.com> Message-ID: <49516.192.168.1.153.1232620152.squirrel@localhost.localdomain> boesiii, there is no reason why both buttons cannot work together. can you pls post the entire template? bye ..............pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Gennaio 21, 2009 19:47, boesiii wrote: > > PG, > > The button is not working because of I have a refresh button with a > "submit" > value I think. The refresh button is for updating layers. How can I make > is so both buttons work. > > Code: >
> -- > View this message in context: > http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2193900.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 Tim.Nolte at ipcswirelessinc.com Thu Jan 22 05:34:23 2009 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Thu, 22 Jan 2009 08:34:23 -0500 Subject: [mapserver-users] Mapserver Hardware Specifications? In-Reply-To: <49782D97.2050307@gmail.com> References: <49782D97.2050307@gmail.com> Message-ID: We are running an HP/Compaq ProLiant DL380 G3, 2x 3GHz Xeon (runs as 4 procs), 8GB RAM, 150GB RAID 1 (for failover), and we're running Solaris 10. ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Doug White Sent: Thursday, January 22, 2009 3:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver Hardware Specifications? Hi, Is anyone running mapserver in a stable production or development environment on dedicated hardware? If so, I'd be interest to know the server specifications you are using. As part of FOSS4G2009 it is intended to showcase mapserver along with other open source software. Currently the following hardware specs are proposed... 512GB Disk Raid0 4 GB RAM 2x Dual Core CPU Would anyone recommend a higher specification? Keeping in mind this will be used to showcase the potential of mapserver. Regards, Doug White. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From amiyapatra188 at gmail.com Thu Jan 22 05:53:23 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Thu, 22 Jan 2009 19:23:23 +0530 Subject: [mapserver-users] plz help Message-ID: hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon.... thank u........ -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Thu Jan 22 06:00:46 2009 From: danlittle at yahoo.com (Dan Little) Date: Thu, 22 Jan 2009 06:00:46 -0800 (PST) Subject: [mapserver-users] plz help References: Message-ID: <802871.12741.qm@web51409.mail.re2.yahoo.com> If we give more help do you promise to: 1) Have a more descriptive subject. 2) Give more useful details. Do you know which two points you have? Finally, is this for a class assignment? Judging from the "plz" and "thank u," I'm cynically guessing this is not for a professional product. ________________________________ From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Thursday, January 22, 2009 7:53:23 AM Subject: [mapserver-users] plz help hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon.... thank u........ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bea at ixsea.com Thu Jan 22 06:02:51 2009 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Thu, 22 Jan 2009 15:02:51 +0100 Subject: [mapserver-users] plz help In-Reply-To: References: Message-ID: <9F1712F53A664ED98DCF9AE2F5113F4D@ixsea.local> Dear Amiya, Please, give us more details. Members of the list sent you some ideas yesterday so what are the results ? And please, try to answer to the previous messages so to not break the chain of mail. Thank you in advance. Regards, Beno?t Andrieu bea at ixsea.com benoit.andrieu at gmail.com ----- Original Message ----- From: Amiya Patra To: mapserver-users at lists.osgeo.org Sent: Thursday, January 22, 2009 2:53 PM Subject: [mapserver-users] plz help hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon.... thank u........ ------------------------------------------------------------------------------ _______________________________________________ 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 dnr.state.mn.us Thu Jan 22 06:09:11 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 22 Jan 2009 08:09:11 -0600 Subject: [mapserver-users] plz help Message-ID: <497829A70200008F0001FE70@co5.dnr.state.mn.us> Amiya: There are a couple of ways to do it, here's the pseudo code. This assumes you have the two points in variables $x1, $y1 and $x2, $y2: Option 1 - Build the line using points, lines and shapes $shape = new shapeObj(MS_SHAPE_LINE); $line = new lineObj(); $point = new pointObj($x1, y1); $line->add($point); $point->{x} = $x2; $point->{y} = $y2; $line->add($point); $shape->add($line); Option 2 - Use WKT (the easy way) $shape = new mapscript::shapeObj(MS_SHAPE_LINE); $shape->fromWKT("LINESTRING($x1 $y1,$x2 $y2)"); Now you need to draw it. Generally you'd have a LAYER defined to draw the line which would work like so: $layer = $map->getLayerByName('the_line_drawing_layer'); $layer->addFeature($shape); $map->draw(); etc... Steve >>> Amiya Patra 01/22/09 7:54 AM >>> hi still I am not getting how to connect two points which are already placed in map , by drawing a line. It is mandatory in my project through php mapscript. plz help me soon.... thank u........ From amiyapatra188 at gmail.com Thu Jan 22 06:14:12 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Thu, 22 Jan 2009 19:44:12 +0530 Subject: [mapserver-users] plz help Message-ID: hi Extremely sorry............Now I got . sorry for shouting without trying .Actually I got deadline. in my project...........thats why...... Anyway thank u all 4 response.... Amiya -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Thu Jan 22 06:14:21 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 22 Jan 2009 09:14:21 -0500 Subject: [mapserver-users] php mapscript object destruction In-Reply-To: References: Message-ID: <49787F3D.7040509@mapgears.com> No object needs to be destructed explicitly via the free() method. PHP has a garbage collector and it its job to delete php objects. Regards, Alan Bal?zs B?mer wrote: > Hi All, > > What MapScript objects need to be destructed explicitely under PHP? I > mean ImageObj has a free() method, MapObj hasn't any. > Can I leave it as is? > What happens if I leave an object with free() method? > Is the order important in case of for example classes, layers, styles > etc which are "encapsulated" one in another? > > thanx in advance, > best regards: Bal?zs B?mer > _______________________________________________ > 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 rafaelchacon at gmail.com Thu Jan 22 06:57:20 2009 From: rafaelchacon at gmail.com (=?ISO-8859-1?Q?Rafael_chac=F3n?=) Date: Fri, 23 Jan 2009 10:27:20 +1930 Subject: [mapserver-users] Openlayers Mapserver Message-ID: <128785280901220657u48d11877t91a1d1ef2caf5c84@mail.gmail.com> Hi, I would like to know how to add severals mapserver layers as my base layer for openlayers. Supose I have a mapfile with a layers us_states (with the states shapes) other for the roads (us_roads) , and other for the railsways (us_railsways). So, what I want to do is to have all this layers when openlayers loads. I'd been unable to do so... I was trying something like this but is not working: layer = new OpenLayers.Layer.MapServer("United States", " http://localhost/cgi-bin/mapserv?us_states.map", {:layers: 'us_railsways,us_states, us_roads'}, {gutter:15}); map.addLayer.... -- Rafael Chacon, "El hombre es la medida de todas las cosas". Protagoras -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.degasperi at r3-gis.com Thu Jan 22 07:09:57 2009 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Thu, 22 Jan 2009 16:09:57 +0100 Subject: [mapserver-users] Openlayers Mapserver In-Reply-To: <128785280901220657u48d11877t91a1d1ef2caf5c84@mail.gmail.com> References: <128785280901220657u48d11877t91a1d1ef2caf5c84@mail.gmail.com> Message-ID: <49788C45.7080503@r3-gis.com> Hi Rafael, retry this without the colon before layers, maybe it's only a javascript error. Rafael chac?n schrieb: > Hi, I would like to know how to add severals mapserver layers as my > base layer for openlayers. Supose I have a mapfile with a layers > us_states (with the states shapes) other for the roads (us_roads) , > and other for the railsways (us_railsways). So, what I want to do is > to have all this layers when openlayers loads. I'd been unable to do > so... I was trying something like this but is not working: > > layer = new OpenLayers.Layer.MapServer("United States", > > "http://localhost/cgi-bin/mapserv?us_states.map", > > {:layers: 'us_railsways,us_states, us_roads'}, > > {gutter:15}); > > map.addLayer.... > -- > Rafael Chacon, > > "El hombre es la medida de todas las cosas". Protagoras > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Thu Jan 22 08:36:41 2009 From: srph124 at yahoo.com (Saka Royban) Date: Thu, 22 Jan 2009 08:36:41 -0800 (PST) Subject: [mapserver-users] Looking for instances of Mapserver implementation? Message-ID: <7390.22674.qm@web58208.mail.re3.yahoo.com> Hi I'm looking for some information of using UMN Mapserver in different applications. i mean sth like architecture or anything else. i could not find anything in its website, as other softwares usually have a 'gallery' section in their website for some instances of implementation. any information would be apperciated Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From dominik.schmid at ilu.ch Thu Jan 22 08:49:24 2009 From: dominik.schmid at ilu.ch (Dominik Schmid) Date: Thu, 22 Jan 2009 17:49:24 +0100 Subject: [mapserver-users] Mapscript won't load after PHP update Message-ID: <4978A394.6040504@ilu.ch> So I've updated our PHP installation from 5.1.6 to 5.2.8 (we need PHP version 5.2 or later for some other features we want to implement on the same server that Mapserver is running on). I did so using yum update. This is where problems started and Mapscript didn't load anymore. I've then recompiled Mapserver 5.2.1 against version 5.2.8 of PHP which goes through without a glitch. This did not fix the issue. PHP still cannot (or refuses to) load Mapscript and throws the following error: PHP Warning: dl() [function.dl]: MapScript: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in ...... I made double sure that I compiled against the correct (new) version of PHP so that can't be the issue here. I have not found any information as to what else I can check or as to what else I could be doing wrong so I need to ask here. Thanks in advance for any insight. -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch From dmorissette at mapgears.com Thu Jan 22 08:58:24 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 22 Jan 2009 11:58:24 -0500 Subject: [mapserver-users] Mapscript won't load after PHP update In-Reply-To: <4978A394.6040504@ilu.ch> References: <4978A394.6040504@ilu.ch> Message-ID: <4978A5B0.3030108@mapgears.com> Dominik Schmid wrote: > > PHP Warning: dl() [function.dl]: MapScript: > Unable to initialize module > Module compiled with module API=20050922, debug=0, thread-safety=0 > PHP compiled with module API=20060613, debug=0, thread-safety=0 > These options need to match in ...... > > I made double sure that I compiled against the correct (new) version of > PHP so that can't be the issue here. I have not found any information as > to what else I can check or as to what else I could be doing wrong so I > need to ask here. > There is not much else to check. This error really tells you that the php_mapscript.so you are loading was compiled for the wrong version of PHP. Sounds like you need to make triple sure that you have installed and are compiling against the correct set of php-devel files: yum install the php-devel package for the right version of php and make sure you uninstall any previous version. If that doesn't solve your problem then perhaps try sharing your MapServer configure options with us on the list... Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Thu Jan 22 09:20:52 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 22 Jan 2009 11:20:52 -0600 Subject: [mapserver-users] Mapserver Hardware Specifications? In-Reply-To: <49782D97.2050307@gmail.com> References: <49782D97.2050307@gmail.com> Message-ID: <49785694.5157.008F.0@dnr.state.mn.us> MapServer tends to be IO bound so this should work nicely. Steve >>> On 1/22/2009 at 2:25 AM, in message <49782D97.2050307 at gmail.com>, Doug White wrote: > Hi, > > Is anyone running mapserver in a stable production or development > environment on dedicated hardware? > If so, I'd be interest to know the server specifications you are using. > > As part of FOSS4G2009 it is intended to showcase mapserver along with > other open source software. Currently the following hardware specs are > proposed... > > 512GB Disk Raid0 > 4 GB RAM > 2x Dual Core CPU > > Would anyone recommend a higher specification? Keeping in mind this will > be used to showcase the potential of mapserver. > > Regards, > > Doug White. > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From adube at mapgears.com Thu Jan 22 10:31:49 2009 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 22 Jan 2009 13:31:49 -0500 Subject: [mapserver-users] Openlayers Mapserver In-Reply-To: <128785280901220657u48d11877t91a1d1ef2caf5c84@mail.gmail.com> References: <128785280901220657u48d11877t91a1d1ef2caf5c84@mail.gmail.com> Message-ID: <4978BB95.6010807@mapgears.com> "," are used with WMS layers. MapServer layers must be separated by spaces " " : layer = new OpenLayers.Layer.MapServer( "United States", "http://localhost/cgi-bin/mapserv ", { map: "/path/to/your/map/us_states.map", layers: 'us_railsways us_states us_roads' }, {gutter:15} ); Also, don't forget the path of your map parameter ( see above ). Alexandre Rafael chac?n wrote: > Hi, I would like to know how to add severals mapserver layers as my > base layer for openlayers. Supose I have a mapfile with a layers > us_states (with the states shapes) other for the roads (us_roads) , > and other for the railsways (us_railsways). So, what I want to do is > to have all this layers when openlayers loads. I'd been unable to do > so... I was trying something like this but is not working: > > layer = new OpenLayers.Layer.MapServer("United States", > > "http://localhost/cgi-bin/mapserv?us_states.map", > > {:layers: 'us_railsways,us_states, us_roads'}, > > {gutter:15}); > > map.addLayer.... > -- > Rafael Chacon, > > "El hombre es la medida de todas las cosas". Protagoras > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From jeff at planyukon.ca Thu Jan 22 10:17:52 2009 From: jeff at planyukon.ca (Jeff Hamm) Date: Thu, 22 Jan 2009 10:17:52 -0800 Subject: [mapserver-users] Looking for instances of Mapserver implementation? In-Reply-To: <7390.22674.qm@web58208.mail.re3.yahoo.com> References: <7390.22674.qm@web58208.mail.re3.yahoo.com> Message-ID: <4978B850.80009@planyukon.ca> Hi Saka, Have a look at http://atlas.planyukon.ca, our Yukon Planning Atlas. It is an implementation of Mapserver, with a customized Chameleon front end. It provides access to environmental, cultural and resource information in support of regional land use planning and project impact assessment. It is supported by our not-for-profit agency, with funding assistance from GeoConnections. For more details on how we've set it up, have a look at http://trac.planyukon.ca. Regards, Jeff Hamm Senior Planner Yukon Land Use Planning Council Saka Royban wrote: > Hi > I'm looking for some information of using UMN Mapserver in different > applications. i mean sth like architecture or anything else. i could > not find anything in its website, as other softwares usually have a > 'gallery' section in their website for some instances of implementation. > any information would be apperciated > Thanks in advance > From szekerest at gmail.com Thu Jan 22 11:37:33 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 22 Jan 2009 20:37:33 +0100 Subject: [mapserver-users] dynamically added shapes and their values In-Reply-To: <4977B7610200008F0001FE51@co5.dnr.state.mn.us> References: <4977B7610200008F0001FE51@co5.dnr.state.mn.us> Message-ID: 2009/1/22 Steve Lime > Could consider for 5.4 I guess. The layer iteminfo would need to be > populated somehow > for inline layers then. Tamas, something you want to take on? > > I'll have a shot at it. Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Jan 22 12:42:17 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 22 Jan 2009 14:42:17 -0600 Subject: [mapserver-users] Looking for instances of Mapserver implementation? Message-ID: <497885C9020000A800010427@jeckle> http://www.geomoose.org/moose/index.php?option=com_weblinks&catid=19&Itemid=27 bobb >>> Saka Royban 01/22/09 10:36 AM >>> Hi I'm looking for some information of using UMN Mapserver in different applications. i mean sth like architecture or anything else. i could not find anything in its website, as other softwares usually have a 'gallery' section in their website for some instances of implementation. any information would be apperciated Thanks in advance From Richard.Polk at state.tn.us Thu Jan 22 14:27:13 2009 From: Richard.Polk at state.tn.us (Richard Polk) Date: Thu, 22 Jan 2009 16:27:13 -0600 Subject: [mapserver-users] dbox make_dlegend_xml_cgi.py XML error Message-ID: <49789E62.819C.00CA.0@state.tn.us> Can anyone assist with the below error? I am getting it when trying to generate my application legend with dBox. The same make_dlegend_xml_cgi.py script works on my development and test servers but fails in production. My OS is Window Server 2003 with IIS 6. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. End tag 'font' does not match the start tag 'body'. Error processing resource 'http://production/cgi-bin/make_dlegend_xml_cg... ----------^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dominik.schmid at ilu.ch Fri Jan 23 00:46:27 2009 From: dominik.schmid at ilu.ch (Dominik Schmid) Date: Fri, 23 Jan 2009 09:46:27 +0100 Subject: [mapserver-users] Mapscript won't load after PHP update In-Reply-To: <4978A5B0.3030108@mapgears.com> References: <4978A394.6040504@ilu.ch> <4978A5B0.3030108@mapgears.com> Message-ID: <497983E3.3090902@ilu.ch> Thanks, Daniel for the quick reply. I did make sure that php-devel is also up-to-date (even checked the /usr/include/php directory manually if it had been updated). I did the update on the test machine so I can cross check with the productive server for differences. One thing I notice is, that phpinfo() on the test server doesn't list the Mapscript module anymore as it does on the productive server. We installed the older version of PHP (5.1.6) also using yum. Mapserver is configured with the following options: --with-ogr \ --with-proj \ --with-geos=/usr/bin/geos-config \ --with-gdal \ --with-postgis=/usr/bin/pg_config \ --with-httpd=/usr/sbin/httpd \ --with-php=/usr/include/php \ --with-wfs \ --with-wfsclient \ --with-wmsclient \ --enable-debug \ --with-threads \ --with-wcs \ --with-wcsclient \ --with-sos \ --with-gd \ --with-freetype=/usr/bin \ --with-jpeg \ --with-agg=/srv/software/agg-2.5 Could it be the case that I need to recompile PHP to use the same Mapscript version as Mapserver? I don't see any configure option on the old (5.1.6.) PHP version indicating this. Dominik Daniel Morissette wrote: > Dominik Schmid wrote: >> >> PHP Warning: dl() [function.dl]: MapScript: >> Unable to initialize module >> Module compiled with module API=20050922, debug=0, thread-safety=0 >> PHP compiled with module API=20060613, debug=0, thread-safety=0 >> These options need to match in ...... >> >> I made double sure that I compiled against the correct (new) version >> of PHP so that can't be the issue here. I have not found any >> information as to what else I can check or as to what else I could be >> doing wrong so I need to ask here. >> > > There is not much else to check. This error really tells you that the > php_mapscript.so you are loading was compiled for the wrong version of PHP. > > Sounds like you need to make triple sure that you have installed and are > compiling against the correct set of php-devel files: yum install the > php-devel package for the right version of php and make sure you > uninstall any previous version. > > If that doesn't solve your problem then perhaps try sharing your > MapServer configure options with us on the list... > > Daniel -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch From dominik.schmid at ilu.ch Fri Jan 23 03:16:16 2009 From: dominik.schmid at ilu.ch (Dominik Schmid) Date: Fri, 23 Jan 2009 12:16:16 +0100 Subject: [mapserver-users] Mapscript won't load after PHP update In-Reply-To: <497983E3.3090902@ilu.ch> References: <4978A394.6040504@ilu.ch> <4978A5B0.3030108@mapgears.com> <497983E3.3090902@ilu.ch> Message-ID: <4979A700.1000906@ilu.ch> OK, the problem is solved in the meantime. The failure was a typical human error (in this case a typical RTFM error): I didn't cp the updated php_mapscript.so to where it belongs, the PHP Extension directory. I'm sorry for having bothered the list with such trivial stuff. Dominik Dominik Schmid wrote: > Thanks, Daniel for the quick reply. I did make sure that php-devel is > also up-to-date (even checked the /usr/include/php directory manually if > it had been updated). I did the update on the test machine so I can > cross check with the productive server for differences. One thing I > notice is, that phpinfo() on the test server doesn't list the Mapscript > module anymore as it does on the productive server. We installed the > older version of PHP (5.1.6) also using yum. Mapserver is configured > with the following options: > > --with-ogr \ > --with-proj \ > --with-geos=/usr/bin/geos-config \ > --with-gdal \ > --with-postgis=/usr/bin/pg_config \ > --with-httpd=/usr/sbin/httpd \ > --with-php=/usr/include/php \ > --with-wfs \ > --with-wfsclient \ > --with-wmsclient \ > --enable-debug \ > --with-threads \ > --with-wcs \ > --with-wcsclient \ > --with-sos \ > --with-gd \ > --with-freetype=/usr/bin \ > --with-jpeg \ > --with-agg=/srv/software/agg-2.5 > > Could it be the case that I need to recompile PHP to use the same > Mapscript version as Mapserver? I don't see any configure option on the > old (5.1.6.) PHP version indicating this. > > Dominik > > > Daniel Morissette wrote: >> Dominik Schmid wrote: >>> >>> PHP Warning: dl() [function.dl]: >>> MapScript: Unable to initialize module >>> Module compiled with module API=20050922, debug=0, thread-safety=0 >>> PHP compiled with module API=20060613, debug=0, thread-safety=0 >>> These options need to match in ...... >>> >>> I made double sure that I compiled against the correct (new) version >>> of PHP so that can't be the issue here. I have not found any >>> information as to what else I can check or as to what else I could be >>> doing wrong so I need to ask here. >>> >> >> There is not much else to check. This error really tells you that the >> php_mapscript.so you are loading was compiled for the wrong version of >> PHP. >> >> Sounds like you need to make triple sure that you have installed and >> are compiling against the correct set of php-devel files: yum install >> the php-devel package for the right version of php and make sure you >> uninstall any previous version. >> >> If that doesn't solve your problem then perhaps try sharing your >> MapServer configure options with us on the list... >> >> Daniel > > -- Dominik Schmid Dipl. Umweltnaturwissenschafter ETH ilu AG Zentralstrasse 2a CH-8610 Uster Tel: +41 44 / 944 55 56 (Direktwahl) Tel: +41 44 / 944 55 55 (allgemein) Fax: +41 44 / 944 55 66 mailto:dominik.schmid at ilu.ch http://www.ilu.ch From valemunoz at gmail.com Fri Jan 23 05:17:57 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Fri, 23 Jan 2009 10:17:57 -0300 Subject: [mapserver-users] mapserver-tilecache DRIVER "AGG/PNG" Message-ID: <4b56aefe0901230517l3b15cc14o2526cdf3cb741911@mail.gmail.com> hi! I have problems with tilecache and mapserver, i soft the lines of my map with : *mapfile.* IMAGETYPE png OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END *I used the same code in my WMS.map:* OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END *tilecache conf* [ivregion_d02] type=WMS url= http://192.168.51.166/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/mapFile/mapas/iv_region_wms_d02.map extension=png srs=EPSG:4326 layers=ivwmsd02 maxExtent=-94.759286 -56.941688 -47.367777 -16.539095 The problem is that the tiles who created tilecache are not with clean and smooth lines. I attach images. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: withouttilecache.JPG Type: image/jpeg Size: 3711 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: withtilecache.JPG Type: image/jpeg Size: 3973 bytes Desc: not available URL: From boesiii at yahoo.com Fri Jan 23 05:30:54 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 23 Jan 2009 05:30:54 -0800 (PST) Subject: [mapserver-users] Is there a way to add a single click zoom button In-Reply-To: <49516.192.168.1.153.1232620152.squirrel@localhost.localdomain> References: <1231954440585-2158109.post@n2.nabble.com> <53461.89.97.235.106.1232015572.squirrel@localhost.localdomain> <1232400632747-2183552.post@n2.nabble.com> <49423.192.168.1.59.1232447773.squirrel@localhost.localdomain> <1232563668363-2193900.post@n2.nabble.com> <49516.192.168.1.153.1232620152.squirrel@localhost.localdomain> Message-ID: <1232717454029-2203271.post@n2.nabble.com> PG, here is the template file and map file. http://n2.nabble.com/file/n2203271/awa_map_final.html awa_map_final.html http://n2.nabble.com/file/n2203271/awa_map.map awa_map.map -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2203271.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Fri Jan 23 06:17:21 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 23 Jan 2009 08:17:21 -0600 Subject: [mapserver-users] dbox make_dlegend_xml_cgi.py XML error Message-ID: <49797D120200008F0001FF7D@co5.dnr.state.mn.us> Hi Richard: Any chance you're running different versions of MapServer in the different environments? There was a syntax change between 4.x and 5.x (minscale => minscaledenom) that is exposed by that script. If view the source is any more information revealed? The server logs? Steve >>> "Richard Polk" 01/22/09 4:43 PM >>> Can anyone assist with the below error? I am getting it when trying to generate my application legend with dBox. The same make_dlegend_xml_cgi.py script works on my development and test servers but fails in production. My OS is Window Server 2003 with IIS 6. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. End tag 'font' does not match the start tag 'body'. Error processing resource 'http://production/cgi-bin/make_dlegend_xml_cg... ----------^ From pgiannini at bytewise.it Fri Jan 23 06:55:28 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 23 Jan 2009 15:55:28 +0100 (CET) Subject: [mapserver-users] Is there a way to add a single click zoom button In-Reply-To: <1232717454029-2203271.post@n2.nabble.com> References: <1231954440585-2158109.post@n2.nabble.com> <53461.89.97.235.106.1232015572.squirrel@localhost.localdomain> <1232400632747-2183552.post@n2.nabble.com> <49423.192.168.1.59.1232447773.squirrel@localhost.localdomain> <1232563668363-2193900.post@n2.nabble.com> <49516.192.168.1.153.1232620152.squirrel@localhost.localdomain> <1232717454029-2203271.post@n2.nabble.com> Message-ID: <35404.89.97.235.106.1232722528.squirrel@localhost.localdomain> found! 1. the hidden field for zoom value should have the name "zoom" and not "zoomsize", is a cgi variable. 2. the submit control "Refresh Map" should have no name: because the script attempts to run the form.submit() function, but the browser intercept the name of this control and return an error "submit is not a function". 3. the button control "Print Map" should have no name: see above. in my machine it works, let me know. bye ............pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Ven, Gennaio 23, 2009 14:30, boesiii wrote: > > PG, here is the template file and map file. > > http://n2.nabble.com/file/n2203271/awa_map_final.html awa_map_final.html > http://n2.nabble.com/file/n2203271/awa_map.map awa_map.map > -- > View this message in context: > http://n2.nabble.com/Is-there-a-way-to-add-a-single-click-zoom-button-tp2158109p2203271.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 pgiannini at bytewise.it Fri Jan 23 08:32:08 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 23 Jan 2009 17:32:08 +0100 (CET) Subject: [mapserver-users] c# mapscript: a strange behavior with ovf inline connection Message-ID: <53177.89.97.235.106.1232728328.squirrel@localhost.localdomain> Hi list. I found a strange error in c# mapscript on drawing a map image when a layer has a virtual spatial data connection. The error is: System.ApplicationException was unhandled by user code Message="msBuildPath(): Unable to access file. (C:\\svil\\EMS\\map\\\n\nODBC:sa/Password123 at EMS_object\nobject\nId\n\nSELECT Dim_Unit.Id, Dim_Unit.Description, Dim_Unit.Icon AS Icon, [...] FROM Dim_Unit WHERE Dim_Unit.Id [...] \nwkbPoint\n\n\n: path is too long" Source="mapscript_csharp" ([...] = omissis due to lenght of the query) the error occurs only: - in mapscript_csharp, I tried with php_mapscript and it does not occur; - if the ovf connection string is INLINE at layer level, when I use the classic .ovf file it does not occur; - if the ovf connection string is longer than 1022 characters (!) other infos, if useful: - ODBC connection to a MS SQLserver 2005; - development in ASP.NET (VS2005), the deploy environment is a Share Point portal, the application is embedded in a WebPart. Any idea? many thanks bye ..................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From Richard.Polk at state.tn.us Fri Jan 23 08:16:48 2009 From: Richard.Polk at state.tn.us (Richard Polk) Date: Fri, 23 Jan 2009 10:16:48 -0600 Subject: [mapserver-users] dbox make_dlegend_xml_cgi.py XML error In-Reply-To: <49797D120200008F0001FF7D@co5.dnr.state.mn.us> References: <49797D120200008F0001FF7D@co5.dnr.state.mn.us> Message-ID: <49799911.819C.00CA.0@state.tn.us> Hi Steve, The mapserver version is the same in all three environments. I upgraded to 5.x as soon as it came out and did take into account the changes I needed to make in my map file. This was done in my development environment and I basically cloned the web root and cgi-bin to the test and production environment. At this point, I am expecting the error is not due to the dBox interface or the Mapserver software failing. Perhaps it is a permissions issue that is restricting the make_dlegend_xml_cgi script from creating the XML content. Could my error just be a reaction to missing XML content instead of fouled but complete XML content? I am going to try and run the make_dlegend_xml_cgi script from a Python shell and see what I get. >>> "Steve Lime" 1/23/2009 >>> Hi Richard: Any chance you're running different versions of MapServer in the different environments? There was a syntax change between 4.x and 5.x (minscale => minscaledenom) that is exposed by that script. If view the source is any more information revealed? The server logs? Steve >>> "Richard Polk" 01/22/09 4:43 PM >>> Can anyone assist with the below error? I am getting it when trying to generate my application legend with dBox. The same make_dlegend_xml_cgi.py script works on my development and test servers but fails in production. My OS is Window Server 2003 with IIS 6. The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. End tag 'font' does not match the start tag 'body'. Error processing resource 'http://production/cgi-bin/make_dlegend_xml_cg... ----------^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From art at artspad.net Fri Jan 23 04:36:33 2009 From: art at artspad.net (Arthur Clifford) Date: Fri, 23 Jan 2009 04:36:33 -0800 Subject: [mapserver-users] RE: is there such a thing as a pixel/screen projection? Message-ID: <000c01c97d57$39e1dce0$0e14a8c0@iMacPCVirtualMachine> Greetings, I was wondering whether there is a way to provide a proj4 string or other method for specifying a projection where the units are in pixels and screen width and height are provided? My desire is to use the PointObj's project function for forward and reverse projecting an x,y screen coordinate. I find it odd that MapScript has great functions for zooming and panning based on pixel values and the whole shpxy functionality in the templating engine but lacks a way to convert a pixel to lat/lon or other projection values. It would be one thing if nothing in MapScript worked that way, but clearly something in the code-base knows how to do the conversion. I find this especially odd when the queryByPoint function requires a point object that explicitly states it should be in projected not screen values. My google searches thus far have pointed to useful formulae for doing the trick, but what's up with that?! I feel like I'm missing a less-than-obvious logic-leap that one is supposed to just know to make by understanding the object model. I have RTFM and I nothing I see suggests it is possible through php mapscript objects to convert screen units to a target projection. If there are tutorials or examples of how to do this I haven't yet discovered any. So, how does one, through php MapScript, get a lat/lon value for projecting into projection values if a PointObj cannot be defined with pixel values and the project functions take PointObj? Also, how would one go about requesting a special screen-projection as a projection to specify if something like that does not exist? ArtC Arthur Clifford -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Jan 23 08:47:08 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 23 Jan 2009 11:47:08 -0500 Subject: [mapserver-users] RE: is there such a thing as a pixel/screen projection? In-Reply-To: <000c01c97d57$39e1dce0$0e14a8c0@iMacPCVirtualMachine> References: <000c01c97d57$39e1dce0$0e14a8c0@iMacPCVirtualMachine> Message-ID: <4979F48C.2030408@pobox.com> Arthur Clifford wrote: > Greetings, > > > > I was wondering whether there is a way to provide a proj4 string or > other method for specifying a projection where the units are in pixels > and screen width and height are provided? Art, There is no way I'm aware of to do this with the PROJ.4 functions, nor with closely related mapserver/mapscript functions. I'm not sure if there is transformation code available from "further away from the projections" portion of the code or not. 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 percyd at pdx.edu Fri Jan 23 09:49:29 2009 From: percyd at pdx.edu (percy) Date: Fri, 23 Jan 2009 09:49:29 -0800 Subject: [mapserver-users] Looking for instances of Mapserver implementation? In-Reply-To: <7390.22674.qm@web58208.mail.re3.yahoo.com> References: <7390.22674.qm@web58208.mail.re3.yahoo.com> Message-ID: <497A0329.5000609@pdx.edu> http://roguemap.geos.pdx.edu/ is our newest development... Percy Saka Royban wrote: > Hi > I'm looking for some information of using UMN Mapserver in different > applications. i mean sth like architecture or anything else. i could not > find anything in its website, as other softwares usually have a > 'gallery' section in their website for some instances of implementation. > any information would be apperciated > Thanks in advance > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From bfraser at geoanalytic.com Fri Jan 23 10:03:33 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 23 Jan 2009 11:03:33 -0700 Subject: [mapserver-users] RE: is there such a thing as a pixel/screen projection? In-Reply-To: <000c01c97d57$39e1dce0$0e14a8c0@iMacPCVirtualMachine> References: <000c01c97d57$39e1dce0$0e14a8c0@iMacPCVirtualMachine> Message-ID: <497A0675.7010205@geoanalytic.com> Arthur, If I understand you, you want to submit output image pixel coords to a function/method and get out coordinates in the MAP file's coordinate system. In general, this is a similarity transformation involving one scale, two translation values, and possibly a rotation value (if there is an ANGLE keyword in the MAP file, or applied via MapScript). Most likely your session's output would use a projected coordinate system (not geographic), so if you really wanted Lat/Lon values, you would then have to use a Proj4 function (exposed via Mapscript?) to do the inverse projection. The pixel/georef similarity values are stored in the map object (actually the six affine transformation parameters are stored, a super-set of the similarity). And strangely, even though the simliarity calculation is done several places in Mapserver, there is a specific function to do this in mapobject.c named msMapPixelToGeoref with a message saying "msMapPixelToGeoref() not yet implemented". I'm not a Mapscript guy, so I don't know if you can get at the map object's geotransform values (likely not?). May someone else could comment on that? And they are really just a mathematically convenient way of storing the mapObj.cellsize, ANGLE (how come there's a setRotation method but no getRotation?), and extent.minx, extent.miny values. Brent Fraser Arthur Clifford wrote: > Greetings, > > > > I was wondering whether there is a way to provide a proj4 string or > other method for specifying a projection where the units are in pixels > and screen width and height are provided? My desire is to use the > PointObj?s project function for forward and reverse projecting an x,y > screen coordinate. I find it odd that MapScript has great functions for > zooming and panning based on pixel values and the whole shpxy > functionality in the templating engine but lacks a way to convert a > pixel to lat/lon or other projection values. It would be one thing if > nothing in MapScript worked that way, but clearly something in the > code-base knows how to do the conversion. I find this especially odd > when the queryByPoint function requires a point object that explicitly > states it should be in projected not screen values. My google searches > thus far have pointed to useful formulae for doing the trick, but what?s > up with that?! > > > > I feel like I?m missing a less-than-obvious logic-leap that one is > supposed to just know to make by understanding the object model. I have > RTFM and I nothing I see suggests it is possible through php mapscript > objects to convert screen units to a target projection. If there are > tutorials or examples of how to do this I haven?t yet discovered any. > > > > So, how does one, through php MapScript, get a lat/lon value for > projecting into projection values if a PointObj cannot be defined with > pixel values and the project functions take PointObj? Also, how would > one go about requesting a special screen-projection as a projection to > specify if something like that does not exist? > > > > ArtC > > Arthur Clifford > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Fri Jan 23 11:31:44 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 23 Jan 2009 20:31:44 +0100 Subject: [mapserver-users] c# mapscript: a strange behavior with ovf inline connection In-Reply-To: <53177.89.97.235.106.1232728328.squirrel@localhost.localdomain> References: <53177.89.97.235.106.1232728328.squirrel@localhost.localdomain> Message-ID: Pietro, I doubt it it's a C# specific issue. Actually mapserver use MS_MAXPATHLEN=1024 as the upper limit of the length of the file pathes. In this case it seems something like SHAPEPATH is already definied in your mapfile which is concatenated with the connection string by the mapserver ogr driver. In this regard I don't see any reason why PHP mapscript behaves differently (assuming you define SHAPEPATH in both cases). I think however the OGR driver should also consider the connection is not always define a physical path actually so this might be a issue to be handled. Best regards, Tamas 2009/1/23 Pietro Giannini > Hi list. > > I found a strange error in c# mapscript on drawing a map image when a > layer has a virtual spatial data connection. > > The error is: > System.ApplicationException was unhandled by user code > Message="msBuildPath(): Unable to access file. > (C:\\svil\\EMS\\map\\\n name='object'>\nODBC:sa/Password123 at EMS_object > \nobject\nId\n\nSELECT > Dim_Unit.Id, Dim_Unit.Description, Dim_Unit.Icon AS Icon, [...] FROM > Dim_Unit WHERE Dim_Unit.Id [...] > \nwkbPoint\n encoding='PointFromColumns' x='LON' > y='LAT'/>\n\n: path is too long" > Source="mapscript_csharp" > > ([...] = omissis due to lenght of the query) > > the error occurs only: > - in mapscript_csharp, I tried with php_mapscript and it does not occur; > - if the ovf connection string is INLINE at layer level, when I use the > classic .ovf file it does not occur; > - if the ovf connection string is longer than 1022 characters (!) > > other infos, if useful: > - ODBC connection to a MS SQLserver 2005; > - development in ASP.NET (VS2005), the deploy environment is a Share Point > portal, the application is embedded in a WebPart. > > Any idea? > many thanks > bye ..................................pg > > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > _______________________________________________ > 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 peter_sykora at gmx.at Fri Jan 23 11:40:30 2009 From: peter_sykora at gmx.at (Peter Sykora) Date: Fri, 23 Jan 2009 20:40:30 +0100 Subject: [mapserver-users] SLD and antialiasing Message-ID: <20090123194030.215620@gmx.net> Hi all, I would like to create a WMS with antialiased Polygons. The "ANTIALIAS true" statement in the style object works fine until I use an SLD to style my polygons. See the difference: - Styling with mapfile http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256 - Styling with an external SLD http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256&sld=http://www.carto.net/ps/sld/sld_stat.xml Certainly there is no possiblity to define the antialiasing in the SLD, but I wonder whether there is a mechanism to keep the antialias statement somehow in the styling object, independently of the definition in the SLD. Thanks in advance for any ideas Peter -- ______________________________________________________ Peter Sykora A-4040 Linz, Fr?hlerweg 45 Festnetz: +43 732 995435 Mobil: +43 676 5832583 mailto: peter_sykora at gmx.at http://www.carto.net/ps/ http://canyon.carto.net/ http://doris.ooe.gv.at/ Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger From boommonge at gmail.com Fri Jan 23 12:17:18 2009 From: boommonge at gmail.com (LMonge) Date: Fri, 23 Jan 2009 12:17:18 -0800 Subject: [mapserver-users] Looking for instances of Mapserver implementation? In-Reply-To: <497A0329.5000609@pdx.edu> References: <7390.22674.qm@web58208.mail.re3.yahoo.com> <497A0329.5000609@pdx.edu> Message-ID: <390b64100901231217h1fd3000cl98d295c0a2e01df6@mail.gmail.com> Hi Saka This is a basic implementation using Fusion client and UMN MapServer. http://geoconstructor.ens.uabc.mx it's about seismic vulnerability of urban bridges Note:Some points on the map have a image catalog best regards Luis Angel -------------- next part -------------- An HTML attachment was scrubbed... URL: From boesiii at yahoo.com Fri Jan 23 12:42:08 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 23 Jan 2009 12:42:08 -0800 (PST) Subject: [mapserver-users] Scalebar not correct Message-ID: <1232743328657-2205596.post@n2.nabble.com> When I print out a copy of my map and the scalebar is shown, it is not a correct representation of the scale. I don't have any sizes coded into the html template. Below is the snippet from my map file. SCALEBAR IMAGECOLOR 255 255 255 COLOR 0 0 0 UNITS FEET INTERVALS 3 TRANSPARENT FALSE STATUS EMBED POSITION LR END -- View this message in context: http://n2.nabble.com/Scalebar-not-correct-tp2205596p2205596.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Fri Jan 23 13:16:52 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 23 Jan 2009 15:16:52 -0600 Subject: [mapserver-users] Scalebar not correct In-Reply-To: <1232743328657-2205596.post@n2.nabble.com> References: <1232743328657-2205596.post@n2.nabble.com> Message-ID: <4979DF64.5157.008F.0@dnr.state.mn.us> Can you send us some more information? For example we'd need: - full mapfile - sample map with the computed map extent Steve >>> On 1/23/2009 at 2:42 PM, in message <1232743328657-2205596.post at n2.nabble.com>, boesiii wrote: > When I print out a copy of my map and the scalebar is shown, it is not a > correct representation of the scale. I don't have any sizes coded into the > html template. Below is the snippet from my map file. > > > SCALEBAR > IMAGECOLOR 255 255 255 > COLOR 0 0 0 > UNITS FEET > INTERVALS 3 > TRANSPARENT FALSE > STATUS EMBED > POSITION LR > END From g.zambotti at gmail.com Fri Jan 23 13:58:03 2009 From: g.zambotti at gmail.com (gzambotti) Date: Fri, 23 Jan 2009 13:58:03 -0800 (PST) Subject: [mapserver-users] Get Feature Info into gmaps balloon Message-ID: <1232747883788-2206135.post@n2.nabble.com> Hi there, I am new with mapserver. I use a WMS/mapserver (4.9) to Get Feature Info into a google maps balloon. If I set my mapfile to a shapefile everything works very well. When I try to use PostGIS I get this error (Content-type: application/vnd.ogc.se_xml ). any idea? many thanks, Giovanni Here my mapfile: LAYER NAME "ED_Total" MINSCALE 1000000 CONNECTIONTYPE postgis CONNECTION "user=africamaps password=j0kerz dbname=africamaps host=localhost port=5432" #DATA "the_geom from ED_Total using unique gid USING SRID=4326" DATA "the_geom from (select gid, NAME, CITY, STATE, the_geom from ED_Total) as foo using unique the_geom using SRID=4326" #DATA "/opt/CGA/data/vec/gio1/shapefile/EDtotal" TYPE POINT METADATA "wms_title" "ED_Total" "wms_srs" "EPSG:4326 EPSG:900913 EPSG:41001 EPSG:54004" 'wms_include_items' 'all' "wms_onlineresource" "http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map&" "ows_exceptions_format" "application/vnd.ogc.se_xml" "wms_exceptions_format" "application/vnd.ogc.se_xml " "wms_exceptions_format" "application-vnd.ogc.se_inimage" "wms_ature_info_mime_type" "text/html" END STATUS ON PROJECTION "+init=epsg:4326" END #projection CLASS NAME "lt 1" STYLE COLOR 255 255 250 SYMBOL 'circle' SIZE 8.5 END STYLE COLOR 255 0 0 SYMBOL 'thickcross' SIZE 7.5 END END #class HEADER "/opt/CGA/newam/htdocs/gtest/header.html" TEMPLATE "/opt/CGA/newam/htdocs/gtest/query.html" FOOTER "/opt/CGA/newam/htdocs/gtest/footer.html" END #layer -- View this message in context: http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2206135.html Sent from the Mapserver - User mailing list archive at Nabble.com. From no-reply at neogeo-online.net Fri Jan 23 14:42:07 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 23 Jan 2009 23:42:07 +0100 Subject: [mapserver-users] Get Feature Info into gmaps balloon In-Reply-To: <1232747883788-2206135.post@n2.nabble.com> References: <1232747883788-2206135.post@n2.nabble.com> Message-ID: <497A47BF.2050408@neogeo-online.net> try with : using unique gid in your data string regards guillaume gzambotti a ?crit : > Hi there, > > I am new with mapserver. > I use a WMS/mapserver (4.9) to Get Feature Info into a google maps balloon. > If I set my mapfile to a shapefile everything works very well. > When I try to use PostGIS I get this error (Content-type: > application/vnd.ogc.se_xml ). > any idea? > > many thanks, Giovanni > > Here my mapfile: > > LAYER > NAME "ED_Total" > MINSCALE 1000000 > CONNECTIONTYPE postgis > CONNECTION "user=africamaps password=j0kerz dbname=africamaps > host=localhost port=5432" > #DATA "the_geom from ED_Total using unique gid USING SRID=4326" > DATA "the_geom from (select gid, NAME, CITY, STATE, the_geom > from ED_Total) as foo using unique the_geom using SRID=4326" > #DATA "/opt/CGA/data/vec/gio1/shapefile/EDtotal" > TYPE POINT > METADATA > "wms_title" "ED_Total" > "wms_srs" "EPSG:4326 EPSG:900913 EPSG:41001 EPSG:54004" > 'wms_include_items' 'all' > "wms_onlineresource" > "http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map&" > "ows_exceptions_format" "application/vnd.ogc.se_xml" > "wms_exceptions_format" "application/vnd.ogc.se_xml " > "wms_exceptions_format" "application-vnd.ogc.se_inimage" > "wms_ature_info_mime_type" "text/html" > END > STATUS ON > PROJECTION "+init=epsg:4326" > END #projection > CLASS > NAME "lt 1" > STYLE > COLOR 255 255 250 > SYMBOL 'circle' > SIZE 8.5 > END > STYLE > COLOR 255 0 0 > SYMBOL 'thickcross' > SIZE 7.5 > END > END #class > HEADER "/opt/CGA/newam/htdocs/gtest/header.html" > TEMPLATE "/opt/CGA/newam/htdocs/gtest/query.html" > FOOTER "/opt/CGA/newam/htdocs/gtest/footer.html" > END #layer > > From boesiii at yahoo.com Fri Jan 23 16:25:30 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 23 Jan 2009 16:25:30 -0800 (PST) Subject: [mapserver-users] Scalebar not correct In-Reply-To: <1232743328657-2205596.post@n2.nabble.com> References: <1232743328657-2205596.post@n2.nabble.com> Message-ID: <1232756730020-2206899.post@n2.nabble.com> The map file is attached along with an example image -- View this message in context: http://n2.nabble.com/Scalebar-not-correct-tp2205596p2206899.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Fri Jan 23 16:52:07 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 23 Jan 2009 18:52:07 -0600 Subject: [mapserver-users] Scalebar not correct In-Reply-To: <1232756730020-2206899.post@n2.nabble.com> References: <1232743328657-2205596.post@n2.nabble.com> <1232756730020-2206899.post@n2.nabble.com> Message-ID: <497A11D7.5157.008F.0@dnr.state.mn.us> You haven't set the UNITS for the map. The default is meters, is that correct for your setup? Steve >>> On 1/23/2009 at 6:25 PM, in message <1232756730020-2206899.post at n2.nabble.com>, boesiii wrote: > The map file is attached along with an example image From boesiii at yahoo.com Fri Jan 23 17:53:14 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 23 Jan 2009 17:53:14 -0800 (PST) Subject: [mapserver-users] Scalebar not correct In-Reply-To: <497A11D7.5157.008F.0@dnr.state.mn.us> References: <1232743328657-2205596.post@n2.nabble.com> <1232756730020-2206899.post@n2.nabble.com> <497A11D7.5157.008F.0@dnr.state.mn.us> Message-ID: <1232761994837-2207182.post@n2.nabble.com> My units are feet. I changed the units to feet and that fixed it. Thanks again Steve. -- View this message in context: http://n2.nabble.com/Scalebar-not-correct-tp2205596p2207182.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Fri Jan 23 23:59:18 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 24 Jan 2009 08:59:18 +0100 Subject: [mapserver-users] SLD and antialiasing In-Reply-To: <20090123194030.215620@gmx.net> References: <20090123194030.215620@gmx.net> Message-ID: I don't have an answer to your antialiasing keyword with the gd driver you are using, however you could switch to the agg renderer which antialiases by default: http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=aggpng24&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256 http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=aggpng24&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256&sld=http://www.carto.net/ps/sld/sld_stat.xml best regards, thomas On Fri, Jan 23, 2009 at 20:40, Peter Sykora wrote: > Hi all, > I would like to create a WMS with antialiased Polygons. The "ANTIALIAS true" statement in the style object works fine until I use an SLD to style my polygons. > > See the difference: > - Styling with mapfile > http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256 > > - Styling with an external SLD > http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256&sld=http://www.carto.net/ps/sld/sld_stat.xml > > Certainly there is no possiblity to define the antialiasing in the SLD, but I wonder whether there is a mechanism to keep the antialias statement somehow in the styling object, independently of the definition in the SLD. > > Thanks in advance for any ideas > Peter > > > -- > ______________________________________________________ > > Peter Sykora > A-4040 Linz, Fr?hlerweg 45 > Festnetz: +43 732 995435 > Mobil: +43 676 5832583 > mailto: peter_sykora at gmx.at > > http://www.carto.net/ps/ > http://canyon.carto.net/ > http://doris.ooe.gv.at/ > > Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From srph124 at yahoo.com Sat Jan 24 02:18:11 2009 From: srph124 at yahoo.com (Saka Royban) Date: Sat, 24 Jan 2009 02:18:11 -0800 (PST) Subject: [mapserver-users] Dynamin SQL with mapserver CGI? Message-ID: <122270.82970.qm@web58207.mail.re3.yahoo.com> Hi all I'm looking for a way to change SQL dynamically via URL parameters. it sounds from doc that changing DATA element in map file is impossible. Is there any other way? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat Jan 24 02:22:27 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 24 Jan 2009 12:22:27 +0200 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? References: <122270.82970.qm@web58207.mail.re3.yahoo.com> Message-ID: Hi, Run-time substitution of DATA should work with DATAPATTERN, see http://mapserver.org/cgi/runsub.html -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Saka Royban L?hetetty: la 24.1.2009 12:18 Vastaanottaja: MapServer Aihe: [mapserver-users] Dynamin SQL with mapserver CGI? Hi all I'm looking for a way to change SQL dynamically via URL parameters. it sounds from doc that changing DATA element in map file is impossible. Is there any other way? From srph124 at yahoo.com Sat Jan 24 02:53:18 2009 From: srph124 at yahoo.com (Saka Royban) Date: Sat, 24 Jan 2009 02:53:18 -0800 (PST) Subject: Fw: [mapserver-users] Looking for instances of Mapserver implementation? Message-ID: <41711.2851.qm@web58202.mail.re3.yahoo.com> Thnaks what i'm really looking for is a detailed architecture of their implementation. anyone knows or has any docs around it? Thanks in advance ----- Forwarded Message ---- From: percy To: Saka Royban Cc: MapServer Sent: Friday, January 23, 2009 9:19:29 PM Subject: Re: [mapserver-users] Looking for instances of Mapserver implementation? http://roguemap.geos.pdx.edu/ is our newest development... Percy Saka Royban wrote: > Hi > I'm looking for some information of using UMN Mapserver in different applications. i mean sth like architecture or anything else. i could not find anything in its website, as other softwares usually have a 'gallery' section in their website for some instances of implementation. > any information would be apperciated > Thanks in advance > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mfioretti at nexaima.net Sat Jan 24 04:08:43 2009 From: mfioretti at nexaima.net (M. Fioretti) Date: Sat, 24 Jan 2009 13:08:43 +0100 Subject: [mapserver-users] Impact of file formats on GIS industry and services Message-ID: <20090124120843.GI3279@nexaima.net> Hello, everybody! I am preparing an updated, extended edition of my seminar "How file formats can be used to favor (or hamper) innovation: concrete impacts on free markets, business competition, culture, equal opportunities, education, Public Administration..." You can download, read and reuse the 2005 edition from http://www.opendocumentfellowship.com/MarcoFioretti I'd like to give complete coverage of the matter, including a section on GIS. As long as it's about file formats, I am really interested in examples from this field. So, I welcome, either here or privately, anything about GIS you think should be mentioned in a seminar with such a title. Once I've finished, of course, I'll put this edition too on my ODF web page! TIA, Marco Fioretti http://mfioretti.net -- Your own civil rights and the quality of your life heavily depend on how software is used *around* you: http://digifreedom.net/node/84 From richard.greenwood at gmail.com Sat Jan 24 05:04:42 2009 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sat, 24 Jan 2009 06:04:42 -0700 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: <122270.82970.qm@web58207.mail.re3.yahoo.com> References: <122270.82970.qm@web58207.mail.re3.yahoo.com> Message-ID: On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban wrote: > Hi all > I'm looking for a way to change SQL dynamically via URL parameters. it > sounds from doc that changing DATA element in map file is impossible. Is > there any other way? You can use a replaceable parameter in the FILTER clause if all you want to do is alter the WHERE clause. So for example: FILTER "%criteria%" and criteria=id='value' would work with a database like Postgres. When working with a database you put the whole SQL WHERE clause in the FILTER, whereas with shapefiles or ORG data sources you use the FILTERITEM and FILTER. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From art at artspad.net Fri Jan 23 20:29:17 2009 From: art at artspad.net (Arthur Clifford) Date: Fri, 23 Jan 2009 20:29:17 -0800 Subject: [mapserver-users] RE: is there such a thing as a pixel/screen projection? In-Reply-To: <497A0675.7010205@geoanalytic.com> References: <000c01c97d57$39e1dce0$0e14a8c0@iMacPCVirtualMachine> <497A0675.7010205@geoanalytic.com> Message-ID: <003701c97ddc$52692770$0e14a8c0@iMacPCVirtualMachine> Hi Brent (and Frank), Yes, as someone who has ramped up in a variety of object oriented programming languages over time my expectation was that there would be a way to define a point as being in pixels and that there would be a way of projecting from pixels to a target projection and projecting from a given projection back to pixels. So, the fact I can't do that is surprising. The forward and reverse projection stuff from Pixels to at least lat/lon has to exist somewhere in the MapServer codebase or the other functions it provides (like zooming and panning) would not be possible. So its not only doable, its been done, its just not exposed ... yet. So, where do I go to submit feature requests? Since the server has a habit of correcting extents and adjusting things to what it thinks is appropriate (which is good, it probably should), I would like to be able to pass pixel values I've collected for a given extent and view-dimensions and send them to the server to be processed into lat/lon for storage or for querying stored values such that the projected value is consistent with MapServer's own projection math/technique. Someone else was doing the storage of lat/lon values from pixel values and I found a Nabble entry about it from exactly two years ago (Jan 23, 2007). But they were doing the math themselves, and while I will probably use the routine they shared in the near-term it seems like the API is missing something. To me the process would be more logical if I could do something like: $projectionFrom = ms_newProjectionObj("+screen +width=200 +height=100 +units=pixels +dpi=72"); $projectionTo = ms_newProjectionObj($latLonProj4); $pointObj = ms_newPointObj( 100 , 50 ); $poinObj->project( $projectionFrom, $projectionTo ); $latLonX = $pointObj->x; $latLonY = $pointObj->y; Note that the only difference between this and other projection operations is the setting of the from projection. I realize that proj4 doesn't support screen coordinates, but if there were some equivalent way of defining a screen-type projection, such as ms_newScreenProjection( 200,100,"pixels",72), for use with the PointObj's and RectObj's project() functions that would a provide a more complete API for handling user interactions on the map via languages like PHP. And, as Brent pointed out, if you can set the rotation but not get the rotation, then something ain't right. That's incomplete functionality especially if MapServer is adjusting values when switching between projections/extents/view sizes, such that the rotation may not be now what you specified it to be at the beginning. FWIW I like MapScript and MapServer, I'm trying not to complain as much as help MapServer round out its functionality by being vocal ;). ArtC Arthur Clifford From szekerest at gmail.com Sat Jan 24 08:33:58 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 24 Jan 2009 17:33:58 +0100 Subject: [mapserver-users] RE: is there such a thing as a pixel/screen projection? In-Reply-To: <003701c97ddc$52692770$0e14a8c0@iMacPCVirtualMachine> References: <000c01c97d57$39e1dce0$0e14a8c0@iMacPCVirtualMachine> <497A0675.7010205@geoanalytic.com> <003701c97ddc$52692770$0e14a8c0@iMacPCVirtualMachine> Message-ID: 2009/1/24 Arthur Clifford > So, where do I go to submit feature requests? > Hi Arthur, You could file a ticket with the feature requests here: http://trac.osgeo.org/mapserver/newticket I would also support having those functions implemented in the mapserver core. Currently either the PHP or the SWIG interface use separate implementations for the same problem. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiyapatra188 at gmail.com Sun Jan 25 05:09:25 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Sun, 25 Jan 2009 18:39:25 +0530 Subject: [mapserver-users] php mapscript function unidentified by tomcat Message-ID: Hi I configured tomcat for running PHP and I am able to run simple php files.But when I am trying to run my php mapscript file then it is showing that ms_newpointobj() function is not identified.That means any mapscript function is not identified by tomcat.. So would you please help me regarding this. Thank you and waiting for reply. Amiya Patra -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Sun Jan 25 06:32:47 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Sun, 25 Jan 2009 15:32:47 +0100 (CET) Subject: [mapserver-users] c# mapscript: a strange behavior with ovf inline connection In-Reply-To: References: <53177.89.97.235.106.1232728328.squirrel@localhost.localdomain> Message-ID: <51570.87.10.218.238.1232893967.squirrel@localhost.localdomain> Tamas, you are right. Now I flush the virtual layer connection string in a .ovf file and set the CONNECTION of the layer to the path of this file. All works fine. Evidently the OGR driver FIRST counts the charachters of the CONNECTION property and LATER attempts to parse it to understand it is not a file path but a inline virtual layer description. A little uncomfortable... still other garbage in tmp dir... :) Many thanks bye .................................pg On Ven, Gennaio 23, 2009 20:31, Tamas Szekeres wrote: > Pietro, > > I doubt it it's a C# specific issue. Actually mapserver use > MS_MAXPATHLEN=1024 as the upper limit of the length of the file pathes. In > this case it seems something like SHAPEPATH is already definied in your > mapfile which is concatenated with the connection string by the mapserver > ogr driver. In this regard I don't see any reason why PHP mapscript > behaves > differently (assuming you define SHAPEPATH in both cases). > > I think however the OGR driver should also consider the connection is not > always define a physical path actually so this might be a issue to be > handled. > > > Best regards, > > Tamas > > > > > > 2009/1/23 Pietro Giannini > >> Hi list. >> >> I found a strange error in c# mapscript on drawing a map image when a >> layer has a virtual spatial data connection. >> >> The error is: >> System.ApplicationException was unhandled by user code >> Message="msBuildPath(): Unable to access file. >> (C:\\svil\\EMS\\map\\\n> name='object'>\nODBC:sa/Password123 at EMS_object >> \nobject\nId\n\nSELECT >> Dim_Unit.Id, Dim_Unit.Description, Dim_Unit.Icon AS Icon, [...] FROM >> Dim_Unit WHERE Dim_Unit.Id [...] >> \nwkbPoint\n> encoding='PointFromColumns' x='LON' >> y='LAT'/>\n\n: path is too long" >> Source="mapscript_csharp" >> >> ([...] = omissis due to lenght of the query) >> >> the error occurs only: >> - in mapscript_csharp, I tried with php_mapscript and it does not occur; >> - if the ovf connection string is INLINE at layer level, when I use the >> classic .ovf file it does not occur; >> - if the ovf connection string is longer than 1022 characters (!) >> >> other infos, if useful: >> - ODBC connection to a MS SQLserver 2005; >> - development in ASP.NET (VS2005), the deploy environment is a Share >> Point >> portal, the application is embedded in a WebPart. >> >> Any idea? >> many thanks >> bye ..................................pg >> >> >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From amiyapatra188 at gmail.com Sun Jan 25 06:40:21 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Sun, 25 Jan 2009 20:10:21 +0530 Subject: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing) In-Reply-To: <49748C0A.5020102@mapgears.com> References: <49748C0A.5020102@mapgears.com> Message-ID: Hi, Thanks for reply. I tried all those steps found at the URL which you sent. But, still it's not working. The same file works fine in Linux. I got the following error: *Warning*: [MapServer Error]: msSaveImageGD(): Unable to open file ./../temp/363403.gif for writing in *C:\ms4w\Apache\htdocs\data\xy.php* on line *578* *Fatal error*: Failed writing image to ./../temp/363403.gif in * C:\ms4w\Apache\htdocs\data\xy.php* on line *578 *Please, help me regarding this. Thanks. Regards, Amiya. On Mon, Jan 19, 2009 at 7:49 PM, Alan Boudreault wrote: > Try this: > > http://www.mydigitallife.info/2007/05/25/how-to-take-ownership-and-grant-permissions-in-windows-vista/ > > Alan > > > Amiya Patra wrote: > > hi > > Thanks 4 reply.but already I have tried that but no result. Actually > > I want to know how to change the ownership of that folder...I have to > > change the ownership to apache user and then needs to give > > permission...... > > > > On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain > > > wrote: > > > > hi > > > > right click on the folder,then select the property and change the > > read and write option to its folder and to its sub folder. > > > > regards > > muzaffar > > > > On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra > > > wrote: > > > > Hi > > I got the error but unable to solve.The apache user don have > > permision to write to that folder .In windows how I will check > > wheather apache user can write to that folder. Actually in > > linux my application is running ok. but in windows vista, I > > cant find the daemon apache user as in httpd.conf file > > "daemon" is mentioned as usr and group. But how I will give > > permission to this user for writing to that folder. Please > > help immediate...... > > > > Thanks..........and hope positive immidiate response > > > > _______________________________________________ > > 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 > > > > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chankour at gmail.com Sun Jan 25 08:15:31 2009 From: chankour at gmail.com (kende) Date: Sun, 25 Jan 2009 08:15:31 -0800 (PST) Subject: [mapserver-users] mapfile: displaying a feature from a shapefile. Message-ID: <1232900131176-2213523.post@n2.nabble.com> Hello, I installed HostGIS, and used the mapserver example1 as my template. My data is in an shp file. The layer with all the tracks (roads) is displaying correctly. What I am unable to do is display the road/track names on top. This is my own shp file, the tracks have several features, one called "road_name". I have googled, and read most of the related stuff I could get my hands on, and tried several 'ways' without luck. I am pasting my cleaned up mapfile below (in the real file, my extent has the actual lat/long values). I would appreciate any help or suggestions on how to display the road name field. (I am using the Windows versions of Quantum GIS and GPS TrackMaker to look at those fields in the shapefile). Thanks. ============== my Mapfile =========================== MAP NAME mytown SHAPEPATH /var/www/manual/examples/mytown/data SIZE 700 500 UNITS dd EXTENT x1 y1 x2 y2 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE PNG OUTPUTFORMAT NAME "png24" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT off END FONTSET "../fonts/fonts.list" WEB MINSCALE 1 MAXSCALE 100000 IMAGEPATH "/maps/images.tmp/" IMAGEURL "/images.tmp/" # WMS server settings METADATA 'wms_title' 'mytown' 'wms_onlineresource' 'http://localhost/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:4326' END END REFERENCE STATUS ON IMAGE refmap.png SIZE 240 157 EXTENT x1 y1 x2 y2 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 12 12 LABEL TYPE truetype FONT "LondonTube" SIZE 9 COLOR 0 0 0 END STATUS embed POSITION ul END SCALEBAR STATUS embed TRANSPARENT off INTERVALS 4 SIZE 200 3 UNITS kilometers COLOR 250 250 250 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 100 100 100 STYLE 0 POSTLABELCACHE true LABEL COLOR 0 0 90 #OUTLINECOLOR 200 200 200 SIZE small END # Label END # Reference # # Start of layer definitions # ############################################################################### # Road tracks LAYER NAME 'mytown' TYPE LINE DATA '/var/www/manual/examples/mytown/data/mytown.shp' METADATA 'wms_title' 'mytown' 'gml_include_items' 'all' END DUMP TRUE STATUS DEFAULT TRANSPARENCY 80 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS STYLE COLOR 102 0 0 SIZE 2 SYMBOL "line_solid" END STYLE COLOR 204 51 51 SIZE 1 SYMBOL "line_solid" END LABEL TYPE truetype FONT "PerspectiveBlack" SIZE 11 END END END # layer road tracks ############################################################################### # # LINE TYPES # SYMBOL NAME "line_solid" TYPE ellipse POINTS 1 1 END FILLED true END END # end of mapfile ================================================================= -- View this message in context: http://n2.nabble.com/mapfile%3A-displaying-a-feature-from-a-shapefile.-tp2213523p2213523.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Sun Jan 25 09:10:11 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 25 Jan 2009 19:10:11 +0200 Subject: [mapserver-users] mapfile: displaying a feature from a shapefile. References: <1232900131176-2213523.post@n2.nabble.com> Message-ID: Hi, Looks like there is no LABELITEM set on layer descriptions. Document "An introduction to MapServer" (http://www.mapserver.org/introduction.html) does mention LABELITEM but that part of text is messy. Perhaps it should be reviewed. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: kende L?hetetty: su 25.1.2009 18:15 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] mapfile: displaying a feature from a shapefile. Hello, I installed HostGIS, and used the mapserver example1 as my template. My data is in an shp file. The layer with all the tracks (roads) is displaying correctly. What I am unable to do is display the road/track names on top. This is my own shp file, the tracks have several features, one called "road_name". I have googled, and read most of the related stuff I could get my hands on, and tried several 'ways' without luck. I am pasting my cleaned up mapfile below (in the real file, my extent has the actual lat/long values). I would appreciate any help or suggestions on how to display the road name field. (I am using the Windows versions of Quantum GIS and GPS TrackMaker to look at those fields in the shapefile). Thanks. ============== my Mapfile =========================== MAP NAME mytown SHAPEPATH /var/www/manual/examples/mytown/data SIZE 700 500 UNITS dd EXTENT x1 y1 x2 y2 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE PNG OUTPUTFORMAT NAME "png24" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT off END FONTSET "../fonts/fonts.list" WEB MINSCALE 1 MAXSCALE 100000 IMAGEPATH "/maps/images.tmp/" IMAGEURL "/images.tmp/" # WMS server settings METADATA 'wms_title' 'mytown' 'wms_onlineresource' 'http://localhost/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:4326' END END REFERENCE STATUS ON IMAGE refmap.png SIZE 240 157 EXTENT x1 y1 x2 y2 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 12 12 LABEL TYPE truetype FONT "LondonTube" SIZE 9 COLOR 0 0 0 END STATUS embed POSITION ul END SCALEBAR STATUS embed TRANSPARENT off INTERVALS 4 SIZE 200 3 UNITS kilometers COLOR 250 250 250 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 100 100 100 STYLE 0 POSTLABELCACHE true LABEL COLOR 0 0 90 #OUTLINECOLOR 200 200 200 SIZE small END # Label END # Reference # # Start of layer definitions # ############################################################################### # Road tracks LAYER NAME 'mytown' TYPE LINE DATA '/var/www/manual/examples/mytown/data/mytown.shp' METADATA 'wms_title' 'mytown' 'gml_include_items' 'all' END DUMP TRUE STATUS DEFAULT TRANSPARENCY 80 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS STYLE COLOR 102 0 0 SIZE 2 SYMBOL "line_solid" END STYLE COLOR 204 51 51 SIZE 1 SYMBOL "line_solid" END LABEL TYPE truetype FONT "PerspectiveBlack" SIZE 11 END END END # layer road tracks ############################################################################### # # LINE TYPES # SYMBOL NAME "line_solid" TYPE ellipse POINTS 1 1 END FILLED true END END # end of mapfile ================================================================= -- View this message in context: http://n2.nabble.com/mapfile%3A-displaying-a-feature-from-a-shapefile.-tp2213523p2213523.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 chankour at gmail.com Sun Jan 25 09:24:32 2009 From: chankour at gmail.com (kende) Date: Sun, 25 Jan 2009 09:24:32 -0800 (PST) Subject: [mapserver-users] mapfile: displaying a feature from a shapefile. In-Reply-To: References: <1232900131176-2213523.post@n2.nabble.com> Message-ID: <1232904272117-2213729.post@n2.nabble.com> Hi Jukka, Thank you for your reply, I did RTFM before posting my question, and tried LABELITEM (that was one of the several 'ways' quote in my original post), also tried a separate layer for just the road names (separate and grouped), and may other things, and none seemed to work, I didn't want to add too much clutter to my post, and my mapfile went through a lot of 'revisions/versions'. Thanks. Hi, Looks like there is no LABELITEM set on layer descriptions. Document "An introduction to MapServer" (http://www.mapserver.org/introduction.html) does mention LABELITEM but that part of text is messy. Perhaps it should be reviewed. -Jukka Rahkonen- -- View this message in context: http://n2.nabble.com/mapfile%3A-displaying-a-feature-from-a-shapefile.-tp2213523p2213729.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gooogle at free.fr Sun Jan 25 10:25:12 2009 From: gooogle at free.fr (=?ISO-8859-1?Q?J=E9r=F4me_Martin?=) Date: Sun, 25 Jan 2009 19:25:12 +0100 Subject: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing) In-Reply-To: References: <49748C0A.5020102@mapgears.com> Message-ID: <497CAE88.8000407@free.fr> Hi, when i see your error, I immediatly think you have a problem access for temp file creation, because maybe you don't have a valid ./../temp/ folder. So i suggest your add to your mapfile this : IMAGEPATH "c:\temp\" or whatever folder where you are sure the access is not restricted for anyone. Personally I were on Linux when i worked on mapserver, but this option was really important when you are in embedded system, because you don't have to access on the system, which is mapped on special memory card (no harddrive). So we had to write on a different memory card which support many write access by mounting it on a special folder, which were used with the IMAGEPATH option. regards, J?r?me Martin Amiya Patra a ?crit : > Hi, > > Thanks for reply. I tried all those steps found at the URL which you > sent. But, still it's not working. The same file works fine in Linux. > I got the following error: > > *Warning*: [MapServer Error]: msSaveImageGD(): Unable to open file > ./../temp/363403.gif for writing in > *C:\ms4w\Apache\htdocs\data\xy.php* on line *578* > > *Fatal error*: Failed writing image to ./../temp/363403.gif in > *C:\ms4w\Apache\htdocs\data\xy.php* on line *578 > > *Please, help me regarding this. > > Thanks. > > Regards, > Amiya. > > > On Mon, Jan 19, 2009 at 7:49 PM, Alan Boudreault > > wrote: > > Try this: > http://www.mydigitallife.info/2007/05/25/how-to-take-ownership-and-grant-permissions-in-windows-vista/ > > Alan > > > Amiya Patra wrote: > > hi > > Thanks 4 reply.but already I have tried that but no result. > Actually > > I want to know how to change the ownership of that folder...I > have to > > change the ownership to apache user and then needs to give > > permission...... > > > > On Mon, Jan 19, 2009 at 7:27 PM, muzaffar hussain > > > >> > wrote: > > > > hi > > > > right click on the folder,then select the property and > change the > > read and write option to its folder and to its sub folder. > > > > regards > > muzaffar > > > > On Mon, Jan 19, 2009 at 7:12 PM, Amiya Patra > > > >> > wrote: > > > > Hi > > I got the error but unable to solve.The apache user don have > > permision to write to that folder .In windows how I will > check > > wheather apache user can write to that folder. Actually in > > linux my application is running ok. but in windows vista, I > > cant find the daemon apache user as in httpd.conf file > > "daemon" is mentioned as usr and group. But how I will give > > permission to this user for writing to that folder. Please > > help immediate...... > > > > Thanks..........and hope positive immidiate response > > > > _______________________________________________ > > 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 > > > > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From devboyng at gmail.com Mon Jan 26 00:16:18 2009 From: devboyng at gmail.com (Muizudeen Kusimo) Date: Mon, 26 Jan 2009 00:16:18 -0800 Subject: [mapserver-users] Need Help with Custom (Raster) Data as Input In-Reply-To: <95e403810901210735j22a27f5co72d2deb5ada42f2f@mail.gmail.com> References: <95e403810901210329i4b1ca0fcyc0dcdf43fa7f81d0@mail.gmail.com> <95e403810901210735j22a27f5co72d2deb5ada42f2f@mail.gmail.com> Message-ID: <95e403810901260016g53ec66c1refbef3ba74e1cea2@mail.gmail.com> Dear All, I appreciate the responses I have received so far but I am new to GIS so please do not take offense at my (trivial) questions. I want to: a) Build a web application like Google Maps. I have: b) Little map data that needs to be re-drawn due to it's poor quality, lack of geo-reference info and lack of coordinate grid. c) Adjusted my map extents as advised by Rahkonen for display in Ka-Maps without luck. d) Being reading the manuals for MapServer, Ka-Map, OpenLayers and QGIS. I hope to adopt either OpenLayers or Ka-Map as my UI + MapServer as my backend. I would like this list to: e) Guide me on how to achieve my aim in (a) above using my choice of technology in (d) below. Specifically, how do I prepare my poor maps (that better be re-drawn) for the tools I am studying. f) Offer any other useful advice. Lastly, if my questions are too elementary for this list. Can someone please point me to an appropriate list/website/irc channel. Thanks in advance. - Muizz -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at hydrotec.de Mon Jan 26 00:03:17 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Mon, 26 Jan 2009 09:03:17 +0100 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: Message-ID: Hi > You can use a replaceable parameter in the FILTER clause if all you ... This introduces the hazard of SQL-Injection, doesn't it? Bye Benedikt Rothe mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 14:04:42: > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban wrote: > > Hi all > > I'm looking for a way to change SQL dynamically via URL parameters. it > > sounds from doc that changing DATA element in map file is impossible. Is > > there any other way? > > You can use a replaceable parameter in the FILTER clause if all you > want to do is alter the WHERE clause. So for example: > FILTER "%criteria%" > and > criteria=id='value' > would work with a database like Postgres. > > When working with a database you put the whole SQL WHERE clause in the > FILTER, whereas with shapefiles or ORG data sources you use the > FILTERITEM and FILTER. > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.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 Jukka.Rahkonen at mmmtike.fi Mon Jan 26 00:34:31 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 26 Jan 2009 10:34:31 +0200 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: Message-ID: Hi, Not any great hazard, I believe, if it means that user can normally get all the features, but only a subset when filter is set. It is different case if DATA clause is manipulated, and therefore that must be connected to DATAPATTERN. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta umn-ms at hydrotec.de L?hetetty: 26. tammikuuta 2009 10:03 Vastaanottaja: MapServer Aihe: Re: [mapserver-users] Dynamin SQL with mapserver CGI? Hi > You can use a replaceable parameter in the FILTER clause if all you ... This introduces the hazard of SQL-Injection, doesn't it? Bye Benedikt Rothe mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 14:04:42: > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban wrote: > > Hi all > > I'm looking for a way to change SQL dynamically via URL parameters. it > > sounds from doc that changing DATA element in map file is impossible. Is > > there any other way? > > You can use a replaceable parameter in the FILTER clause if all you > want to do is alter the WHERE clause. So for example: > FILTER "%criteria%" > and > criteria=id='value' > would work with a database like Postgres. > > When working with a database you put the whole SQL WHERE clause in the > FILTER, whereas with shapefiles or ORG data sources you use the > FILTERITEM and FILTER. > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.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 umn-ms at hydrotec.de Mon Jan 26 02:42:38 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Mon, 26 Jan 2009 11:42:38 +0100 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: Message-ID: > Not any great hazard, I believe, ... Mmh. I'd be cautious. Example: * Mapfile: DATA "the_geom from buildings" * Set Filter via URL to this: 1=1);DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1 I think Mapserver will create the following statements: (I've added newlines) DECLARE mycursor BINARY CURSOR FOR SELECT the_geom from buildings WHERE (1=1); DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1) and (%s && setSRID( ...) ) Mapserver calls PQExec with these statements. PQExec will execute every statement and will return the results of the last one. Bye Benedikt Rothe "Rahkonen Jukka" schrieb am 26.01.2009 09:34:31: > Hi, > > Not any great hazard, I believe, if it means that user can normally > get all the features, but only a subset when filter is set. It is > different case if DATA clause is manipulated, and therefore that > must be connected to DATAPATTERN. > > -Jukka Rahkonen- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] Puolesta umn-ms at hydrotec.de > L?hetetty: 26. tammikuuta 2009 10:03 > Vastaanottaja: MapServer > Aihe: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > Hi > > > You can use a replaceable parameter in the FILTER clause if all you ... > This introduces the hazard of SQL-Injection, doesn't it? > > Bye > Benedikt Rothe > > mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 14:04:42: > > > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban wrote: > > > Hi all > > > I'm looking for a way to change SQL dynamically via URL parameters. it > > > sounds from doc that changing DATA element in map file is impossible. Is > > > there any other way? > > > > You can use a replaceable parameter in the FILTER clause if all you > > want to do is alter the WHERE clause. So for example: > > FILTER "%criteria%" > > and > > criteria=id='value' > > would work with a database like Postgres. > > > > When working with a database you put the whole SQL WHERE clause in the > > FILTER, whereas with shapefiles or ORG data sources you use the > > FILTERITEM and FILTER. > > > > -- > > Richard Greenwood > > richard.greenwood at gmail.com > > www.greenwoodmap.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 daniel.teske at web.de Mon Jan 26 03:18:13 2009 From: daniel.teske at web.de (teeschke) Date: Mon, 26 Jan 2009 03:18:13 -0800 (PST) Subject: [mapserver-users] Wrong Scaledenom-Interpretation on GetLegendGraphic-Request Message-ID: <1232968693889-2217378.post@n2.nabble.com> dear Mapserver.. a Layer that has a MaxScaleDenom of 200.001 becomes an empty LegendGraphic with SCALE=200000 http://localhost/cgi-bin/mapserv.exe?map=C:/Projekte/legend/mapfile.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/gif&LAYER=tw_messstellen&SCALE=200000 The LegendGraphic is rendered correctly with SCALE < 199668 like http://localhost/cgi-bin/mapserv.exe?map=C:/Projekte/legend/mapfile.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/gif&LAYER=tw_messstellen&SCALE=199667 My Layer is defined as following: LAYER NAME 'myLayer' STATUS ON TYPE POINT DATA "shapes/myShape" PROJECTION "init=epsg:31466" END TEMPLATE 'template.html' DUMP TRUE DEBUG 5 METADATA "ows_title" "myLayer Title" "ows_extent" "2454609 5423025 2709939 5650998" "wms_feature_info_mime_type" "text/html" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_srs" "epsg:31466" "wms_exceptions_format" "application/vnd.ogc.se_xml" "gml_featureid" "ID" "gml_include_items" "NAME" "gml_NAME_alias" "Name" END #METADATA MINSCALEDENOM 0 MAXSCALEDENOM 200001 CLASS NAME ' ' MINSCALEDENOM 0 MAXSCALEDENOM 200001 STYLE COLOR 128 171 255 OUTLINECOLOR 0 0 255 SYMBOL 'circle' SIZE 13 END #STYLE END #CLASS END #LAYER Thank a lot for solving this problem and best regards.. ..Daniel -- View this message in context: http://n2.nabble.com/Wrong-Scaledenom-Interpretation-on-GetLegendGraphic-Request-tp2217378p2217378.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Morten.Sickel at nrpa.no Mon Jan 26 03:18:48 2009 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Mon, 26 Jan 2009 12:18:48 +0100 Subject: SV: [mapserver-users] Need Help with Custom (Raster) Data as Input In-Reply-To: <95e403810901260016g53ec66c1refbef3ba74e1cea2@mail.gmail.com> References: <95e403810901210329i4b1ca0fcyc0dcdf43fa7f81d0@mail.gmail.com> <95e403810901210735j22a27f5co72d2deb5ada42f2f@mail.gmail.com>, <95e403810901260016g53ec66c1refbef3ba74e1cea2@mail.gmail.com> Message-ID: <0CE0A03D0F390E46B12B64489D20B1D40559425690@MAILHUB.NRPA.LOCAL> Dear Muizudeen, As far as I understand you,you try to do three things at once.... - Learn GIS - Learn a new programming tool (mapserver et.al.) - Clean up your existing data All these goals are good to try to achieve, but not at once. Most of all, when starting to learn GIS and starting to learn mapserver, you should be sure that the data you are using are of good quality, i.e. at least well defined projection and geo references, if that is not correctly set up, What I would recommend you to do is to start up using some other available data sets of the same type as what you are using (geo tiffs, or whatever) Set up a map server application using those data sets, read up on projections and geo referencing, try to find some other data sets covering the same area as the first you got, but in other projections, play around a bit with those data, also changing the projection of the map-file. This way you know that what you are doing in map server makes sense. parallell with this, you can try to collect the nessecary information on the other maps you have, and make a new map-file using those data sets. If the maps are scanned files, they can be made into geo-tiffs, ie a tiff file and a corresponding tfw file, the latter giving the coordinates for one of the corners of the map, the cell size and the rotation angle of the map, I don't remember the details at the moment, but that should be quite easy to google for. best wishes. Morten ________________________________________ Fra: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] på vegne av Muizudeen Kusimo [devboyng at gmail.com] Sendt: 26. januar 2009 09:16 Til: mapserver-users at lists.osgeo.org Emne: Re: [mapserver-users] Need Help with Custom (Raster) Data as Input Dear All, I appreciate the responses I have received so far but I am new to GIS so please do not take offense at my (trivial) questions. I want to: a) Build a web application like Google Maps. I have: b) Little map data that needs to be re-drawn due to it's poor quality, lack of geo-reference info and lack of coordinate grid. c) Adjusted my map extents as advised by Rahkonen for display in Ka-Maps without luck. d) Being reading the manuals for MapServer, Ka-Map, OpenLayers and QGIS. I hope to adopt either OpenLayers or Ka-Map as my UI + MapServer as my backend. I would like this list to: e) Guide me on how to achieve my aim in (a) above using my choice of technology in (d) below. Specifically, how do I prepare my poor maps (that better be re-drawn) for the tools I am studying. f) Offer any other useful advice. Lastly, if my questions are too elementary for this list. Can someone please point me to an appropriate list/website/irc channel. Thanks in advance. - Muizz From cnieman at dmsolutions.ca Mon Jan 26 04:30:58 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Mon, 26 Jan 2009 07:30:58 -0500 Subject: [mapserver-users] mapfile: displaying a feature from a shapefile. In-Reply-To: <1232904272117-2213729.post@n2.nabble.com> References: <1232900131176-2213523.post@n2.nabble.com> <1232904272117-2213729.post@n2.nabble.com> Message-ID: <497DAD02.6040406@dmsolutions.ca> Hi, As already mentioned, what is missing is the LABELITEM in your layer definition. Without this, MapServer will not know what attribute to use for labelling. Your layer should look something like this: # Road tracks LAYER NAME 'mytown' TYPE LINE DATA '/var/www/manual/examples/mytown/data/mytown.shp' * LABELITEM "road_name"* METADATA 'wms_title' 'mytown' 'gml_include_items' 'all' END DUMP TRUE STATUS DEFAULT TRANSPARENCY 80 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END CLASS STYLE COLOR 102 0 0 SIZE 2 SYMBOL "line_solid" END STYLE COLOR 204 51 51 SIZE 1 SYMBOL "line_solid" END LABEL TYPE truetype FONT "PerspectiveBlack" SIZE 11 END END END Best regards, Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca kende wrote: > Hi Jukka, > > Thank you for your reply, I did RTFM before posting my question, and tried > LABELITEM (that was one of the several 'ways' quote in my original post), > also tried a separate layer for just the road names (separate and grouped), > and may other things, and none seemed to work, I didn't want to add too much > clutter > to my post, and my mapfile went through a lot of 'revisions/versions'. > > Thanks. > > > Hi, > > Looks like there is no LABELITEM set on layer descriptions. Document "An > introduction to MapServer" (http://www.mapserver.org/introduction.html) does > mention LABELITEM but that part of text is messy. Perhaps it should be > reviewed. > > -Jukka Rahkonen- > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jan 26 05:56:20 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 26 Jan 2009 08:56:20 -0500 Subject: [mapserver-users] plz response immediate(msSaveImageGD(): Unable to open file for writing) In-Reply-To: References: <49748C0A.5020102@mapgears.com> Message-ID: <497DC104.6080704@gatewaygeomatics.com> Amiya Patra wrote: > Hi, > > Thanks for reply. I tried all those steps found at the URL which you > sent. But, still it's not working. The same file works fine in Linux. I > got the following error: > > *Warning*: [MapServer Error]: msSaveImageGD(): Unable to open file > ./../temp/363403.gif for writing in *C:\ms4w\Apache\htdocs\data\xy.php* > on line *578* > > *Fatal error*: Failed writing image to ./../temp/363403.gif in > *C:\ms4w\Apache\htdocs\data\xy.php* on line *578 > > *Please, help me regarding this. > > Thanks. > > Regards, > Amiya. Note that MS4W is pre-configured for the following settings: IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" I recommend following the structure of an existing MS4W add-on package (such as the "PHP/MapScript Sample Application") and look at its mapfiles to see how they are working. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From yassefa at dmsolutions.ca Mon Jan 26 06:32:07 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 26 Jan 2009 09:32:07 -0500 Subject: [mapserver-users] SLD and antialiasing In-Reply-To: <20090123194030.215620@gmx.net> References: <20090123194030.215620@gmx.net> Message-ID: <497DC967.9090807@dmsolutions.ca> Peter Sykora wrote: > Hi all, > I would like to create a WMS with antialiased Polygons. The "ANTIALIAS true" statement in the style object works fine until I use an SLD to style my polygons. > > See the difference: > - Styling with mapfile > http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256 > > - Styling with an external SLD > http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256&sld=http://www.carto.net/ps/sld/sld_stat.xml > > Certainly there is no possiblity to define the antialiasing in the SLD, but I wonder whether there is a mechanism to keep the antialias statement somehow in the styling object, independently of the definition in the SLD. > Peter, This is not possible currently. As you noted there are elements that are not translated between SLD-Mapserver. As suggested agg would give anti-aliasing by default and could be work around. Best Regards > Thanks in advance for any ideas > Peter > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From g.zambotti at gmail.com Mon Jan 26 06:37:06 2009 From: g.zambotti at gmail.com (gzambotti) Date: Mon, 26 Jan 2009 06:37:06 -0800 (PST) Subject: [mapserver-users] Get Feature Info into gmaps balloon In-Reply-To: <497A47BF.2050408@neogeo-online.net> References: <1232747883788-2206135.post@n2.nabble.com> <497A47BF.2050408@neogeo-online.net> Message-ID: <1232980626118-2218219.post@n2.nabble.com> many thanks Guillaume it works fine now! Best Giovanni On Fri, Jan 23, 2009 at 5:42 PM, Guillaume Sueur-2 (via Nabble) < ml-user+137812-417701502 at n2.nabble.com > wrote: > try with : > using unique gid > in your data string > > regards > > guillaume > > gzambotti a ?crit : > > Hi there, > > > > I am new with mapserver. > > I use a WMS/mapserver (4.9) to Get Feature Info into a google maps > balloon. > > If I set my mapfile to a shapefile everything works very well. > > When I try to use PostGIS I get this error (Content-type: > > application/vnd.ogc.se_xml ). > > any idea? > > > > many thanks, Giovanni > > > > Here my mapfile: > > > > LAYER > > NAME "ED_Total" > > MINSCALE 1000000 > > CONNECTIONTYPE postgis > > CONNECTION "user=africamaps password=j0kerz dbname=africamaps > > host=localhost port=5432" > > #DATA "the_geom from ED_Total using unique gid USING > SRID=4326" > > DATA "the_geom from (select gid, NAME, CITY, STATE, the_geom > > > from ED_Total) as foo using unique the_geom using SRID=4326" > > #DATA "/opt/CGA/data/vec/gio1/shapefile/EDtotal" > > TYPE POINT > > METADATA > > "wms_title" "ED_Total" > > "wms_srs" "EPSG:4326 EPSG:900913 EPSG:41001 EPSG:54004" > > 'wms_include_items' 'all' > > "wms_onlineresource" > > " > http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map&" > > > "ows_exceptions_format" "application/vnd.ogc.se_xml" > > "wms_exceptions_format" "application/vnd.ogc.se_xml " > > "wms_exceptions_format" "application-vnd.ogc.se_inimage" > > "wms_ature_info_mime_type" "text/html" > > END > > STATUS ON > > PROJECTION "+init=epsg:4326" > > END #projection > > CLASS > > NAME "lt 1" > > STYLE > > COLOR 255 255 250 > > SYMBOL 'circle' > > SIZE 8.5 > > END > > STYLE > > COLOR 255 0 0 > > SYMBOL 'thickcross' > > SIZE 7.5 > > END > > END #class > > HEADER "/opt/CGA/newam/htdocs/gtest/header.html" > > TEMPLATE "/opt/CGA/newam/htdocs/gtest/query.html" > > FOOTER "/opt/CGA/newam/htdocs/gtest/footer.html" > > END #layer > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at ... > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > This email is a reply to your post @ > http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2206440.html > You can reply by email or by visting the link above. > > -- Giovanni Zambotti 34 Prince st, Cambridge MA 02139 USA Phone: (617) 492 - 0359 -- View this message in context: http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2218219.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Jan 26 06:47:48 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 26 Jan 2009 08:47:48 -0600 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA174@s-sp22.pca.state.mn.us> Of course, part of security is also having your application hit your database as a user that only has the rights that it needs. If your user only has select rights on only the data that you want to expose, that should help limit some of these issues. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of umn-ms at hydrotec.de Sent: Monday, January 26, 2009 4:43 AM To: MapServer Subject: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > Not any great hazard, I believe, ... Mmh. I'd be cautious. Example: * Mapfile: DATA "the_geom from buildings" * Set Filter via URL to this: 1=1);DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1 I think Mapserver will create the following statements: (I've added newlines) DECLARE mycursor BINARY CURSOR FOR SELECT the_geom from buildings WHERE (1=1); DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1) and (%s && setSRID( ...) ) Mapserver calls PQExec with these statements. PQExec will execute every statement and will return the results of the last one. Bye Benedikt Rothe "Rahkonen Jukka" schrieb am 26.01.2009 09:34:31: > Hi, > > Not any great hazard, I believe, if it means that user can normally > get all the features, but only a subset when filter is set. It is > different case if DATA clause is manipulated, and therefore that > must be connected to DATAPATTERN. > > -Jukka Rahkonen- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] Puolesta umn-ms at hydrotec.de > L?hetetty: 26. tammikuuta 2009 10:03 > Vastaanottaja: MapServer > Aihe: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > Hi > > > You can use a replaceable parameter in the FILTER clause if all you ... > This introduces the hazard of SQL-Injection, doesn't it? > > Bye > Benedikt Rothe > > mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 14:04:42: > > > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban wrote: > > > Hi all > > > I'm looking for a way to change SQL dynamically via URL parameters. it > > > sounds from doc that changing DATA element in map file is impossible. Is > > > there any other way? > > > > You can use a replaceable parameter in the FILTER clause if all you > > want to do is alter the WHERE clause. So for example: > > FILTER "%criteria%" > > and > > criteria=id='value' > > would work with a database like Postgres. > > > > When working with a database you put the whole SQL WHERE clause in the > > FILTER, whereas with shapefiles or ORG data sources you use the > > FILTERITEM and FILTER. > > > > -- > > Richard Greenwood > > richard.greenwood at gmail.com > > www.greenwoodmap.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 rafaelchacon at gmail.com Mon Jan 26 07:17:25 2009 From: rafaelchacon at gmail.com (=?ISO-8859-1?Q?Rafael_chac=F3n?=) Date: Tue, 27 Jan 2009 10:47:25 +1930 Subject: [mapserver-users] GIS and GPS Message-ID: <128785280901260717xb72b63ydc328b4c222cc95e@mail.gmail.com> Hello, I'm trying to develop an application that takes points input from a GPS ... And I would like to realize when those points enter at certain points .. Suppose a state or cities... I'm working with Mapserver and PostGIS .. Someone can give me an idea of how to accomplish this? Thanks in advanced. -- Rafael Chacon, "El hombre es la medida de todas las cosas". Protagoras -------------- next part -------------- An HTML attachment was scrubbed... URL: From simone.frigerio at unimib.it Mon Jan 26 08:06:19 2009 From: simone.frigerio at unimib.it (simone.frigerio) Date: Mon, 26 Jan 2009 17:06:19 +0100 Subject: [mapserver-users] .img raster file (8 bit and 1 band) Message-ID: Dear All! 1) I have an .img raster file (8 bit and 1 band) to put inside mapfile. Pixel value goes from 0 to 255 (field value) there are also other filed of information that I want to use to classify my layer. This is a draft of the layer table: OID value sin 0 0 0,002 1 4 0,001 2 8 0,128 .... ... ...... 84 255 0,98 How can I define mapfile to have a "floating" classification? There is an expression to constrict mapserver to use a value field. The other solution is to do 256 classes.... But it's quite long. I found on doc the instruction to use not 8-bit classification. But this 8bit so I need other way. 2) If I want to define a query for the same layer in wich for each pixel appears the voice of "sin" field. I have seen the script for 3 bands; how can I do wit my layer?: Pixel:
values=[value_list]
value_0=[value_0]
value_1=[value_1]
value_2=[value_2]
RGB = [red],[green],[blue]

Class = [class]
Thanks. Simone From damarmo at gmail.com Mon Jan 26 08:21:34 2009 From: damarmo at gmail.com (David Martinez Morata) Date: Mon, 26 Jan 2009 17:21:34 +0100 Subject: [mapserver-users] Question about formats Message-ID: <9771eb540901260821o30562f11g65dc46bdcccb35a8@mail.gmail.com> Hello. I have a question about the input formats for Mapserver. They take de dxf format? Thanks -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Jan 26 08:30:30 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 26 Jan 2009 11:30:30 -0500 Subject: [mapserver-users] Question about formats In-Reply-To: <9771eb540901260821o30562f11g65dc46bdcccb35a8@mail.gmail.com> References: <9771eb540901260821o30562f11g65dc46bdcccb35a8@mail.gmail.com> Message-ID: <497DE526.2070708@pobox.com> David Martinez Morata wrote: > Hello. > > I have a question about the input formats for Mapserver. > They take de dxf format? David, No, currently it is not practical to read DXF directly in MapServer. You will need to translate it to supported format externally. 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 g.zambotti at gmail.com Mon Jan 26 10:29:36 2009 From: g.zambotti at gmail.com (gzambotti) Date: Mon, 26 Jan 2009 10:29:36 -0800 (PST) Subject: [mapserver-users] Get Feature Info into gmaps balloon In-Reply-To: <1232980626118-2218219.post@n2.nabble.com> References: <1232747883788-2206135.post@n2.nabble.com> <497A47BF.2050408@neogeo-online.net> <1232980626118-2218219.post@n2.nabble.com> Message-ID: <1232994576347-2219684.post@n2.nabble.com> Hi Guillaume, Perhaps you have some idea... I would like to have more control on GetFeatureInfo into my Google Maps balloon. For instance instead of seeing: GetFeatureInfo results: Search returned no results when I don't have information. I would like to see something like (No info for this point). Do I have to work with the template html and maybe javascript? Have any one wrote something like this. Again many thanks Best, Giovanni many thanks Guillaume it works fine now! Best Giovanni On Fri, Jan 23, 2009 at 5:42 PM, Guillaume Sueur-2 (via Nabble) < ml-user+137812-417701502 at n2.nabble.com > wrote: > try with : > using unique gid > in your data string > > regards > > guillaume > > gzambotti a ?crit : > > Hi there, > > > > I am new with mapserver. > > I use a WMS/mapserver (4.9) to Get Feature Info into a google maps > balloon. > > If I set my mapfile to a shapefile everything works very well. > > When I try to use PostGIS I get this error (Content-type: > > application/vnd.ogc.se_xml ). > > any idea? > > > > many thanks, Giovanni > > > > Here my mapfile: > > > > LAYER > > NAME "ED_Total" > > MINSCALE 1000000 > > CONNECTIONTYPE postgis > > CONNECTION "user=africamaps password=j0kerz dbname=africamaps > > host=localhost port=5432" > > #DATA "the_geom from ED_Total using unique gid USING > SRID=4326" > > DATA "the_geom from (select gid, NAME, CITY, STATE, > the_geom > > > from ED_Total) as foo using unique the_geom using SRID=4326" > > #DATA "/opt/CGA/data/vec/gio1/shapefile/EDtotal" > > TYPE POINT > > METADATA > > "wms_title" "ED_Total" > > "wms_srs" "EPSG:4326 EPSG:900913 EPSG:41001 EPSG:54004" > > 'wms_include_items' 'all' > > "wms_onlineresource" > > " > http://cga-3.hmdc.harvard.edu/cgi-bin/mapserv?map=/opt/CGA/newam/htdocs/gtest/ednet.map&" > > > "ows_exceptions_format" "application/vnd.ogc.se_xml" > > "wms_exceptions_format" "application/vnd.ogc.se_xml " > > "wms_exceptions_format" "application-vnd.ogc.se_inimage" > > "wms_ature_info_mime_type" "text/html" > > END > > STATUS ON > > PROJECTION "+init=epsg:4326" > > END #projection > > CLASS > > NAME "lt 1" > > STYLE > > COLOR 255 255 250 > > SYMBOL 'circle' > > SIZE 8.5 > > END > > STYLE > > COLOR 255 0 0 > > SYMBOL 'thickcross' > > SIZE 7.5 > > END > > END #class > > HEADER "/opt/CGA/newam/htdocs/gtest/header.html" > > TEMPLATE "/opt/CGA/newam/htdocs/gtest/query.html" > > FOOTER "/opt/CGA/newam/htdocs/gtest/footer.html" > > END #layer > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at ... > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > This email is a reply to your post @ > http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2206440.html > You can reply by email or by visting the link above. > > -- Giovanni Zambotti 34 Prince st, Cambridge MA 02139 USA Phone: (617) 492 - 0359 -- View this message in context: http://n2.nabble.com/Get-Feature-Info-into-gmaps-balloon-tp2206135p2219684.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Mon Jan 26 12:29:52 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 26 Jan 2009 14:29:52 -0600 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA174@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA174@s-sp22.pca.state.mn.us> Message-ID: <497DC8E0.5157.008F.0@dnr.state.mn.us> In addition, one can and should apply validation patterns to variables used in SQL. That way MapServer can test the input data before handing off to PostGIS or whatever. These patterns are set in LAYER metadata. For example: LAYER ... DATA"'the_geom FROM (SELECT the_geom FROM my_table WHERE ID = '%id%') as foo USING UNIQUE OID" METADATA id_validation_pattern '^[0-9]{3}$' END END This tells the CGI to test the request parameter against the regex '^[1-9]{3}$'. The regex says that the value of the id variable must be an number exactly 3 digits long with no zeros. Any attempt to send a value other than that will generate an error message. The CGI code does not force the use of validation. Validation like this will be further expanded in 5.4 with the addition of a new validation object. So you'd see something like: LAYER ... VALIDATION 'id' '^[0-9]{3}$ END END Steve >>> On 1/26/2009 at 8:47 AM, in message <6246727221874A4FB8D3F9BBC37D9BD5056DA174 at s-sp22.pca.state.mn.us>, "Fawcett, David" wrote: > Of course, part of security is also having your application hit your database > as a user that only has the rights that it needs. If your user only has > select rights on only the data that you want to expose, that should help > limit some of these issues. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > umn-ms at hydrotec.de > Sent: Monday, January 26, 2009 4:43 AM > To: MapServer > Subject: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > Not any great hazard, I believe, ... > > Mmh. I'd be cautious. > > Example: > * Mapfile: > DATA "the_geom from buildings" > > * Set Filter via URL to this: > 1=1);DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR SELECT * from > buildings WHERE (1=1 > > I think Mapserver will create the following statements: (I've added > newlines) > DECLARE mycursor BINARY CURSOR FOR SELECT the_geom from buildings WHERE > (1=1); > DELETE FROM OTHERTABLE; > DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1) and (%s && > setSRID( ...) ) > > Mapserver calls PQExec with these statements. PQExec will execute every > statement and will return > the results of the last one. > > Bye > Benedikt Rothe > > > "Rahkonen Jukka" schrieb am 26.01.2009 09:34:31: > > > Hi, > > > > Not any great hazard, I believe, if it means that user can normally > > get all the features, but only a subset when filter is set. It is > > different case if DATA clause is manipulated, and therefore that > > must be connected to DATAPATTERN. > > > > -Jukka Rahkonen- > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > > mapserver-users-bounces at lists.osgeo.org] Puolesta umn-ms at hydrotec.de > > L?hetetty: 26. tammikuuta 2009 10:03 > > Vastaanottaja: MapServer > > Aihe: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > Hi > > > > > You can use a replaceable parameter in the FILTER clause if all you ... > > This introduces the hazard of SQL-Injection, doesn't it? > > > > Bye > > Benedikt Rothe > > > > mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 14:04:42: > > > > > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban wrote: > > > > Hi all > > > > I'm looking for a way to change SQL dynamically via URL parameters. it > > > > sounds from doc that changing DATA element in map file is impossible. Is > > > > there any other way? > > > > > > You can use a replaceable parameter in the FILTER clause if all you > > > want to do is alter the WHERE clause. So for example: > > > FILTER "%criteria%" > > > and > > > criteria=id='value' > > > would work with a database like Postgres. > > > > > > When working with a database you put the whole SQL WHERE clause in the > > > FILTER, whereas with shapefiles or ORG data sources you use the > > > FILTERITEM and FILTER. > > > > > > -- > > > Richard Greenwood > > > richard.greenwood at gmail.com > > > www.greenwoodmap.com > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From vtammineni at roulacglobal.com Mon Jan 26 19:55:46 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 27 Jan 2009 09:25:46 +0530 Subject: [mapserver-users] Question about formats In-Reply-To: <9771eb540901260821o30562f11g65dc46bdcccb35a8@mail.gmail.com> References: <9771eb540901260821o30562f11g65dc46bdcccb35a8@mail.gmail.com> Message-ID: <00ae01c98033$23e92860$6bbb7920$@com> Hi, As per my Knowledge, mapserver will not take dxf file formats. You have to convert into shape file and you can use the shp as you input. Thanks and regards Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Martinez Morata Sent: Monday, January 26, 2009 9:52 PM To: mapserver Subject: [mapserver-users] Question about formats Hello. I have a question about the input formats for Mapserver. They take de dxf format? Thanks -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From Morten.Sickel at nrpa.no Mon Jan 26 22:42:28 2009 From: Morten.Sickel at nrpa.no (Morten Sickel) Date: Tue, 27 Jan 2009 07:42:28 +0100 Subject: [mapserver-users] GIS and GPS In-Reply-To: <128785280901260717xb72b63ydc328b4c222cc95e@mail.gmail.com> References: <128785280901260717xb72b63ydc328b4c222cc95e@mail.gmail.com> Message-ID: <0CE0A03D0F390E46B12B64489D20B1D4055940315D@MAILHUB.NRPA.LOCAL> Raphael, As far as I can understand, what you are trying to do is what is known as an overlay I don't know how to do that in mapserver / PostGIS, but I would guess some kind of spatial query in postgis should help you. best wishes Morten Sickel ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rafael chac?n Sent: Monday, January 26, 2009 4:17 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] GIS and GPS Hello, I'm trying to develop an application that takes points input from a GPS ... And I would like to realize when those points enter at certain points .. Suppose a state or cities... I'm working with Mapserver and PostGIS .. Someone can give me an idea of how to accomplish this? Thanks in advanced. -- Rafael Chacon, "El hombre es la medida de todas las cosas". Protagoras -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at hydrotec.de Tue Jan 27 00:14:27 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Tue, 27 Jan 2009 09:14:27 +0100 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: <497DC8E0.5157.008F.0@dnr.state.mn.us> Message-ID: I think validation patterns are a real solution to the problem and minimizing access-priviliges is not. When filter with URL-substitution is used without validation patterns, one relies on the security-system of postgres. This is acceptable in most intranets but hazardous in the internet. Look for example at http://www.postgresql.org/support/security.html what can be done with even a minimal-postgres-login Ciao Benedikt Extract of the http://www.postgresql.org/support/security.html * Three vulnearbilities in the regular expression handling libraries can be exploited to cause a backend crash, infinite loops or memory exhaustion. This vulnearbility can be exploited through frontend applications that allow unfiltered regular expressions to be passed in queries. * A bug in the handling of SET ROLE allows escalation of privileges to any other database user, including superuser. A valid login is required to exploit this vulnerability * Calling COALESCE() with two NULL parameters would cause the current backend to crash, causing a denial of service. A valid login is required to exploit this vulnerability. * Public EXECUTE access is given to certain character conversion functions that are not designed to be safe against malicious arguments. This can cause at least a denial of service. A valid login is required to exploit this vulnerability "Steve Lime" schrieb am 26.01.2009 21:29:52: > In addition, one can and should apply validation patterns to variables > used in SQL. That way MapServer > can test the input data before handing off to PostGIS or whatever. > > These patterns are set in LAYER metadata. For example: > > LAYER > ... > DATA"'the_geom FROM (SELECT the_geom FROM my_table WHERE ID = '%id%') > as foo USING UNIQUE OID" > METADATA > id_validation_pattern '^[0-9]{3}$' > END > END > > This tells the CGI to test the request parameter against the regex > '^[1-9]{3}$'. The regex says that the value > of the id variable must be an number exactly 3 digits long with no > zeros. Any attempt to send a value other > than that will generate an error message. The CGI code does not force > the use of validation. > > Validation like this will be further expanded in 5.4 with the addition > of a new validation object. So you'd see > something like: > > LAYER > ... > VALIDATION > 'id' '^[0-9]{3}$ > END > END > > Steve > > >>> On 1/26/2009 at 8:47 AM, in message > <6246727221874A4FB8D3F9BBC37D9BD5056DA174 at s-sp22.pca.state.mn.us>, > "Fawcett, > David" wrote: > > Of course, part of security is also having your application hit your > database > > as a user that only has the rights that it needs. If your user only > has > > select rights on only the data that you want to expose, that should > help > > limit some of these issues. > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > umn-ms at hydrotec.de > > Sent: Monday, January 26, 2009 4:43 AM > > To: MapServer > > Subject: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > > > > > Not any great hazard, I believe, ... > > > > Mmh. I'd be cautious. > > > > Example: > > * Mapfile: > > DATA "the_geom from buildings" > > > > * Set Filter via URL to this: > > 1=1);DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR > SELECT * from > > buildings WHERE (1=1 > > > > I think Mapserver will create the following statements: (I've > added > > newlines) > > DECLARE mycursor BINARY CURSOR FOR SELECT the_geom from > buildings WHERE > > (1=1); > > DELETE FROM OTHERTABLE; > > DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1) > and (%s && > > setSRID( ...) ) > > > > Mapserver calls PQExec with these statements. PQExec will > execute every > > statement and will return > > the results of the last one. > > > > Bye > > Benedikt Rothe > > > > > > "Rahkonen Jukka" schrieb am > 26.01.2009 09:34:31: > > > > > Hi, > > > > > > Not any great hazard, I believe, if it means that user can > normally > > > get all the features, but only a subset when filter is set. > It is > > > different case if DATA clause is manipulated, and therefore > that > > > must be connected to DATAPATTERN. > > > > > > -Jukka Rahkonen- > > > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > > > mapserver-users-bounces at lists.osgeo.org] Puolesta > umn-ms at hydrotec.de > > > L?hetetty: 26. tammikuuta 2009 10:03 > > > Vastaanottaja: MapServer > > > Aihe: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > > > > Hi > > > > > > > You can use a replaceable parameter in the FILTER clause if > all you ... > > > This introduces the hazard of SQL-Injection, doesn't it? > > > > > > Bye > > > Benedikt Rothe > > > > > > mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 > 14:04:42: > > > > > > > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban > wrote: > > > > > Hi all > > > > > I'm looking for a way to change SQL dynamically via URL > parameters. it > > > > > sounds from doc that changing DATA element in map file is > impossible. Is > > > > > there any other way? > > > > > > > > You can use a replaceable parameter in the FILTER clause if > all you > > > > want to do is alter the WHERE clause. So for example: > > > > FILTER "%criteria%" > > > > and > > > > criteria=id='value' > > > > would work with a database like Postgres. > > > > > > > > When working with a database you put the whole SQL WHERE > clause in the > > > > FILTER, whereas with shapefiles or ORG data sources you use > the > > > > FILTERITEM and FILTER. > > > > > > > > -- > > > > Richard Greenwood > > > > richard.greenwood at gmail.com > > > > www.greenwoodmap.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 umn-ms at hydrotec.de Tue Jan 27 00:18:49 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Tue, 27 Jan 2009 09:18:49 +0100 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: <497DC8E0.5157.008F.0@dnr.state.mn.us> Message-ID: I think" validation patterns" are a real solution to the problem and minimizing access-priviliges is not. When filter with URL-substitution is used without validation patterns, one relies to heavily on the security-system of postgres. This is acceptable in most intranets but hazardous in the internet. Look for example at http://www.postgresql.org/support/security.html to see, what can be done with even a minimal-postgres-login. But again: Everything's fine with "validation patterns" ... Ciao Benedikt Extract of the http://www.postgresql.org/support/security.html * Three vulnearbilities in the regular expression handling libraries can be exploited to cause a backend crash, infinite loops or memory exhaustion. This vulnearbility can be exploited through frontend applications that allow unfiltered regular expressions to be passed in queries. * A bug in the handling of SET ROLE allows escalation of privileges to any other database user, including superuser. A valid login is required to exploit this vulnerability * Calling COALESCE() with two NULL parameters would cause the current backend to crash, causing a denial of service. A valid login is required to exploit this vulnerability. * Public EXECUTE access is given to certain character conversion functions that are not designed to be safe against malicious arguments. This can cause at least a denial of service. A valid login is required to exploit this vulnerability "Steve Lime" schrieb am 26.01.2009 21:29:52: > In addition, one can and should apply validation patterns to variables > used in SQL. That way MapServer > can test the input data before handing off to PostGIS or whatever. > > These patterns are set in LAYER metadata. For example: > > LAYER > ... > DATA"'the_geom FROM (SELECT the_geom FROM my_table WHERE ID = '%id%') > as foo USING UNIQUE OID" > METADATA > id_validation_pattern '^[0-9]{3}$' > END > END > > This tells the CGI to test the request parameter against the regex > '^[1-9]{3}$'. The regex says that the value > of the id variable must be an number exactly 3 digits long with no > zeros. Any attempt to send a value other > than that will generate an error message. The CGI code does not force > the use of validation. > > Validation like this will be further expanded in 5.4 with the addition > of a new validation object. So you'd see > something like: > > LAYER > ... > VALIDATION > 'id' '^[0-9]{3}$ > END > END > > Steve > > >>> On 1/26/2009 at 8:47 AM, in message > <6246727221874A4FB8D3F9BBC37D9BD5056DA174 at s-sp22.pca.state.mn.us>, > "Fawcett, > David" wrote: > > Of course, part of security is also having your application hit your > database > > as a user that only has the rights that it needs. If your user only > has > > select rights on only the data that you want to expose, that should > help > > limit some of these issues. > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > umn-ms at hydrotec.de > > Sent: Monday, January 26, 2009 4:43 AM > > To: MapServer > > Subject: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > > > > > Not any great hazard, I believe, ... > > > > Mmh. I'd be cautious. > > > > Example: > > * Mapfile: > > DATA "the_geom from buildings" > > > > * Set Filter via URL to this: > > 1=1);DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR > SELECT * from > > buildings WHERE (1=1 > > > > I think Mapserver will create the following statements: (I've > added > > newlines) > > DECLARE mycursor BINARY CURSOR FOR SELECT the_geom from > buildings WHERE > > (1=1); > > DELETE FROM OTHERTABLE; > > DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1) > and (%s && > > setSRID( ...) ) > > > > Mapserver calls PQExec with these statements. PQExec will > execute every > > statement and will return > > the results of the last one. > > > > Bye > > Benedikt Rothe > > > > > > "Rahkonen Jukka" schrieb am > 26.01.2009 09:34:31: > > > > > Hi, > > > > > > Not any great hazard, I believe, if it means that user can > normally > > > get all the features, but only a subset when filter is set. > It is > > > different case if DATA clause is manipulated, and therefore > that > > > must be connected to DATAPATTERN. > > > > > > -Jukka Rahkonen- > > > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > > > mapserver-users-bounces at lists.osgeo.org] Puolesta > umn-ms at hydrotec.de > > > L?hetetty: 26. tammikuuta 2009 10:03 > > > Vastaanottaja: MapServer > > > Aihe: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > > > > Hi > > > > > > > You can use a replaceable parameter in the FILTER clause if > all you ... > > > This introduces the hazard of SQL-Injection, doesn't it? > > > > > > Bye > > > Benedikt Rothe > > > > > > mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 > 14:04:42: > > > > > > > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban > wrote: > > > > > Hi all > > > > > I'm looking for a way to change SQL dynamically via URL > parameters. it > > > > > sounds from doc that changing DATA element in map file is > impossible. Is > > > > > there any other way? > > > > > > > > You can use a replaceable parameter in the FILTER clause if > all you > > > > want to do is alter the WHERE clause. So for example: > > > > FILTER "%criteria%" > > > > and > > > > criteria=id='value' > > > > would work with a database like Postgres. > > > > > > > > When working with a database you put the whole SQL WHERE > clause in the > > > > FILTER, whereas with shapefiles or ORG data sources you use > the > > > > FILTERITEM and FILTER. > > > > > > > > -- > > > > Richard Greenwood > > > > richard.greenwood at gmail.com > > > > www.greenwoodmap.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 pcreso at pcreso.com Tue Jan 27 01:45:57 2009 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Tue, 27 Jan 2009 01:45:57 -0800 (PST) Subject: [mapserver-users] GIS and GPS In-Reply-To: <0CE0A03D0F390E46B12B64489D20B1D4055940315D@MAILHUB.NRPA.LOCAL> Message-ID: <593586.88102.qm@web33204.mail.mud.yahoo.com> The script/program that inserts the points needs to check for the distance from such features. How you do this is very much up to you. Custom Postgis functions & Postgres triggers, or entirely in your script. This process is pretty simple, but the code wrapped around it to implement a useful application will be more complex. The basic process will be much the same however you implement it: (I'm assuming that you are recording the points, not just checking them, and have an active layer in mapserver which displays the points or features which are identified when the point gets within range) Insert point into table Check if any required features are closer than your minimum distance from the point Set a flag or insert a record in the database which will be picked up by the mapserver layer to display these. Do anything else you need in such cases Insert next point & repeat (Also: create a process for removing such flags or records when they are no longer needed) > Hello, I'm trying to develop an application that takes > points input from a GPS ... And I would like to realize when > those points enter at certain points .. Suppose a state or > cities... I'm working with Mapserver and PostGIS .. > Someone can give me an idea of how to accomplish this? From valemunoz at gmail.com Tue Jan 27 04:27:21 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 27 Jan 2009 09:27:21 -0300 Subject: [mapserver-users] shapefile location Message-ID: <4b56aefe0901270427q5b1b357cpa4a221a1ee3a0dd7@mail.gmail.com> Hi... I have a problem. can i call the shapes file from other server?, example: SHAPEPATH "http://192.168.51.188/shapes/" RG. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Tue Jan 27 04:39:59 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 27 Jan 2009 18:09:59 +0530 Subject: [mapserver-users] shapefile location In-Reply-To: <4b56aefe0901270427q5b1b357cpa4a221a1ee3a0dd7@mail.gmail.com> References: <4b56aefe0901270427q5b1b357cpa4a221a1ee3a0dd7@mail.gmail.com> Message-ID: <00f801c9807c$5f88ca30$1e9a5e90$@com> Hi, As per knowledge it is not possible. Or you may try by computer name... Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Valeria Mu?oz Sent: Tuesday, January 27, 2009 5:57 PM To: mapserver-users Subject: [mapserver-users] shapefile location Hi... I have a problem. can i call the shapes file from other server?, example: SHAPEPATH "http://192.168.51.188/shapes/" RG. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Tue Jan 27 04:47:51 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 27 Jan 2009 18:17:51 +0530 Subject: [mapserver-users] Number of users are connected Message-ID: <010301c9807d$78a36010$69ea2030$@com> Dear All, I have developed web application using C# asp.net and postgresql/postgis. I have deployed in IIS .if my 10 people connected my url. I am getting error called "More number users are connected ".I don't know, how to solve the problem. And sometimes I am getting error called " connection pooled". I am waiting for your great response, Advanced Thanks Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Tue Jan 27 05:32:28 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 27 Jan 2009 08:32:28 -0500 Subject: [mapserver-users] shapefile location In-Reply-To: <4b56aefe0901270427q5b1b357cpa4a221a1ee3a0dd7@mail.gmail.com> References: <4b56aefe0901270427q5b1b357cpa4a221a1ee3a0dd7@mail.gmail.com> Message-ID: <497F0CEC.4030306@mapgears.com> Hi, badly, I don't think it's possible. I'd suggest you to make a local network share (with NFS in Unix), and mount this share. At this point, you'll be able to access the remote server share like a normal local path. Regards, Alan Valeria Mu?oz wrote: > Hi... > > I have a problem. can i call the shapes file from other server?, > example: > > SHAPEPATH "http://192.168.51.188/shapes/" > > RG. > ------------------------------------------------------------------------ > > _______________________________________________ > 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 Steve.Lime at dnr.state.mn.us Tue Jan 27 05:45:50 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 27 Jan 2009 07:45:50 -0600 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? Message-ID: <497EBBAE0200008F000200FF@co5.dnr.state.mn.us> Thanks for the research, I hope folks will take it to heart and use the validation options. That's why they're there. Of course, one needs to write good patterns. I'm planning a how-to accompanying the new validation support in 5.4. Steve >>> 01/27/09 2:20 AM >>> I think" validation patterns" are a real solution to the problem and minimizing access-priviliges is not. When filter with URL-substitution is used without validation patterns, one relies to heavily on the security-system of postgres. This is acceptable in most intranets but hazardous in the internet. Look for example at http://www.postgresql.org/support/security.html to see, what can be done with even a minimal-postgres-login. But again: Everything's fine with "validation patterns" ... Ciao Benedikt Extract of the http://www.postgresql.org/support/security.html * Three vulnearbilities in the regular expression handling libraries can be exploited to cause a backend crash, infinite loops or memory exhaustion. This vulnearbility can be exploited through frontend applications that allow unfiltered regular expressions to be passed in queries. * A bug in the handling of SET ROLE allows escalation of privileges to any other database user, including superuser. A valid login is required to exploit this vulnerability * Calling COALESCE() with two NULL parameters would cause the current backend to crash, causing a denial of service. A valid login is required to exploit this vulnerability. * Public EXECUTE access is given to certain character conversion functions that are not designed to be safe against malicious arguments. This can cause at least a denial of service. A valid login is required to exploit this vulnerability "Steve Lime" schrieb am 26.01.2009 21:29:52: > In addition, one can and should apply validation patterns to variables > used in SQL. That way MapServer > can test the input data before handing off to PostGIS or whatever. > > These patterns are set in LAYER metadata. For example: > > LAYER > ... > DATA"'the_geom FROM (SELECT the_geom FROM my_table WHERE ID = '%id%') > as foo USING UNIQUE OID" > METADATA > id_validation_pattern '^[0-9]{3}$' > END > END > > This tells the CGI to test the request parameter against the regex > '^[1-9]{3}$'. The regex says that the value > of the id variable must be an number exactly 3 digits long with no > zeros. Any attempt to send a value other > than that will generate an error message. The CGI code does not force > the use of validation. > > Validation like this will be further expanded in 5.4 with the addition > of a new validation object. So you'd see > something like: > > LAYER > ... > VALIDATION > 'id' '^[0-9]{3}$ > END > END > > Steve > > >>> On 1/26/2009 at 8:47 AM, in message > <6246727221874A4FB8D3F9BBC37D9BD5056DA174 at s-sp22.pca.state.mn.us>, > "Fawcett, > David" wrote: > > Of course, part of security is also having your application hit your > database > > as a user that only has the rights that it needs. If your user only > has > > select rights on only the data that you want to expose, that should > help > > limit some of these issues. > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > umn-ms at hydrotec.de > > Sent: Monday, January 26, 2009 4:43 AM > > To: MapServer > > Subject: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > > > > > Not any great hazard, I believe, ... > > > > Mmh. I'd be cautious. > > > > Example: > > * Mapfile: > > DATA "the_geom from buildings" > > > > * Set Filter via URL to this: > > 1=1);DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR > SELECT * from > > buildings WHERE (1=1 > > > > I think Mapserver will create the following statements: (I've > > > DELETE FROM OTHERTABLE; > > DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1) > and (%s && > > setSRID( ...) ) > > > > Mapserver calls PQExec with these statements. PQExec will > execute every > > statement and will return > > the results of the last one. > > > > Bye > > Benedikt Rothe > > > > > > "Rahkonen Jukka" schrieb am > 26.01.2009 09:34:31: > > > > > Hi, > > > > > > Not any great hazard, I believe, if it means that user can > normally > > > get all the features, but only a subset when filter is set. > It is > > > different case if DATA clause is manipulated, and therefore > that > > > must be connected to DATAPATTERN. > > > > > > -Jukka Rahkonen- > > > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > > > mapserver-users-bounces at lists.osgeo.org] Puolesta > umn-ms at hydrotec.de > > > L?hetetty: 26. tammikuuta 2009 10:03 > > > Vastaanottaja: MapServer > > > Aihe: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > > > > Hi > > > > > > > You can use a replaceable parameter in the FILTER clause if > all you ... > > > This introduces the hazard of SQL-Injection, doesn't it? > > > > > > Bye > > > Benedikt Rothe > > > > > > mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 > 14:04:42: > > > > > > > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban > wrote: > > > > > Hi all > > > > > I'm looking for a way to change SQL dynamically via URL > parameters. it > > > > > sounds from doc that changing DATA element in map file is > impossible. Is > > > > > there any other way? > > > > > > > > You can use a replaceable parameter in the FILTER clause if > all you > > > > want to do is alter the WHERE clause. So for example: > > > > FILTER "%criteria%" > > > > and > > > > criteria=id='value' > > > > would work with a database like Postgres. > > > > > > > > When working with a database you put the whole SQL WHERE > clause in the > > > > FILTER, whereas with shapefiles or ORG data sources you use > the > > > > FILTERITEM and FILTER. > > > > > > > > -- > > > > Richard Greenwood > > > > richard.greenwood at gmail.com > > > > www.greenwoodmap.com > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Tue Jan 27 06:42:26 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 27 Jan 2009 15:42:26 +0100 Subject: [mapserver-users] Number of users are connected In-Reply-To: <010301c9807d$78a36010$69ea2030$@com> References: <010301c9807d$78a36010$69ea2030$@com> Message-ID: Hi, IIS on Windows XP is limited to 10 concurrent users, however you shouldn't find such problems with a Windows Server OS. Best regards, Tamas 2009/1/27 Venkat Rao Tammineni > Dear All, > > > > > > I have developed web application using C# asp.net and > postgresql/postgis. I have deployed in IIS .if my 10 people connected my > url. I am getting error called "More number users are connected ".I don't > know, how to solve the problem. And sometimes I am getting error called " > connection pooled". > > > > I am waiting for your great response, > > > > Advanced Thanks > > > > Regards > > Venkat. > > _______________________________________________ > 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 Tue Jan 27 06:42:49 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 27 Jan 2009 08:42:49 -0600 Subject: [mapserver-users] Dynamin SQL with mapserver CGI? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA181@s-sp22.pca.state.mn.us> Right. I believe that several layers to the onion are good. In other words, I wouldn't have my Web application logging into my db as the admin user even if I was using validation on my input. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of umn-ms at hydrotec.de Sent: Tuesday, January 27, 2009 2:14 AM To: MapServer Cc: Steve Lime; David Fawcett Subject: RE: [mapserver-users] Dynamin SQL with mapserver CGI? I think validation patterns are a real solution to the problem and minimizing access-priviliges is not. When filter with URL-substitution is used without validation patterns, one relies on the security-system of postgres. This is acceptable in most intranets but hazardous in the internet. Look for example at http://www.postgresql.org/support/security.html what can be done with even a minimal-postgres-login Ciao Benedikt Extract of the http://www.postgresql.org/support/security.html * Three vulnearbilities in the regular expression handling libraries can be exploited to cause a backend crash, infinite loops or memory exhaustion. This vulnearbility can be exploited through frontend applications that allow unfiltered regular expressions to be passed in queries. * A bug in the handling of SET ROLE allows escalation of privileges to any other database user, including superuser. A valid login is required to exploit this vulnerability * Calling COALESCE() with two NULL parameters would cause the current backend to crash, causing a denial of service. A valid login is required to exploit this vulnerability. * Public EXECUTE access is given to certain character conversion functions that are not designed to be safe against malicious arguments. This can cause at least a denial of service. A valid login is required to exploit this vulnerability "Steve Lime" schrieb am 26.01.2009 21:29:52: > In addition, one can and should apply validation patterns to variables > used in SQL. That way MapServer > can test the input data before handing off to PostGIS or whatever. > > These patterns are set in LAYER metadata. For example: > > LAYER > ... > DATA"'the_geom FROM (SELECT the_geom FROM my_table WHERE ID = '%id%') > as foo USING UNIQUE OID" > METADATA > id_validation_pattern '^[0-9]{3}$' > END > END > > This tells the CGI to test the request parameter against the regex > '^[1-9]{3}$'. The regex says that the value > of the id variable must be an number exactly 3 digits long with no > zeros. Any attempt to send a value other > than that will generate an error message. The CGI code does not force > the use of validation. > > Validation like this will be further expanded in 5.4 with the addition > of a new validation object. So you'd see > something like: > > LAYER > ... > VALIDATION > 'id' '^[0-9]{3}$ > END > END > > Steve > > >>> On 1/26/2009 at 8:47 AM, in message > <6246727221874A4FB8D3F9BBC37D9BD5056DA174 at s-sp22.pca.state.mn.us>, > "Fawcett, > David" wrote: > > Of course, part of security is also having your application hit your > database > > as a user that only has the rights that it needs. If your user only > has > > select rights on only the data that you want to expose, that should > help > > limit some of these issues. > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > umn-ms at hydrotec.de > > Sent: Monday, January 26, 2009 4:43 AM > > To: MapServer > > Subject: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > > > > > Not any great hazard, I believe, ... > > > > Mmh. I'd be cautious. > > > > Example: > > * Mapfile: > > DATA "the_geom from buildings" > > > > * Set Filter via URL to this: > > 1=1);DELETE FROM OTHERTABLE; DECLARE X BINARY CURSOR FOR > SELECT * from > > buildings WHERE (1=1 > > > > I think Mapserver will create the following statements: (I've > added > > newlines) > > DECLARE mycursor BINARY CURSOR FOR SELECT the_geom from > buildings WHERE > > (1=1); > > DELETE FROM OTHERTABLE; > > DECLARE X BINARY CURSOR FOR SELECT * from buildings WHERE (1=1) > and (%s && > > setSRID( ...) ) > > > > Mapserver calls PQExec with these statements. PQExec will > execute every > > statement and will return > > the results of the last one. > > > > Bye > > Benedikt Rothe > > > > > > "Rahkonen Jukka" schrieb am > 26.01.2009 09:34:31: > > > > > Hi, > > > > > > Not any great hazard, I believe, if it means that user can > normally > > > get all the features, but only a subset when filter is set. > It is > > > different case if DATA clause is manipulated, and therefore > that > > > must be connected to DATAPATTERN. > > > > > > -Jukka Rahkonen- > > > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > > > mapserver-users-bounces at lists.osgeo.org] Puolesta > umn-ms at hydrotec.de > > > L?hetetty: 26. tammikuuta 2009 10:03 > > > Vastaanottaja: MapServer > > > Aihe: Re: [mapserver-users] Dynamin SQL with mapserver CGI? > > > > > > > > Hi > > > > > > > You can use a replaceable parameter in the FILTER clause if > all you ... > > > This introduces the hazard of SQL-Injection, doesn't it? > > > > > > Bye > > > Benedikt Rothe > > > > > > mapserver-users-bounces at lists.osgeo.org schrieb am 24.01.2009 > 14:04:42: > > > > > > > On Sat, Jan 24, 2009 at 3:18 AM, Saka Royban > wrote: > > > > > Hi all > > > > > I'm looking for a way to change SQL dynamically via URL > parameters. it > > > > > sounds from doc that changing DATA element in map file is > impossible. Is > > > > > there any other way? > > > > > > > > You can use a replaceable parameter in the FILTER clause if > all you > > > > want to do is alter the WHERE clause. So for example: > > > > FILTER "%criteria%" > > > > and > > > > criteria=id='value' > > > > would work with a database like Postgres. > > > > > > > > When working with a database you put the whole SQL WHERE > clause in the > > > > FILTER, whereas with shapefiles or ORG data sources you use > the > > > > FILTERITEM and FILTER. > > > > > > > > -- > > > > Richard Greenwood > > > > richard.greenwood at gmail.com > > > > www.greenwoodmap.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 Dejan.Gambin at pula.hr Tue Jan 27 07:27:09 2009 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Tue, 27 Jan 2009 16:27:09 +0100 Subject: [mapserver-users] Re: OGR problem connecting to mdb using ovf - SOLVED In-Reply-To: Message-ID: I have solved the problem by using System DSN correctly and removing user dsn Thanks very much regards, dejan Dejan Gambin/GradPula wrote on 27.01.2009 16:23:16: > Hi, > > I need to connect to Access database that has (among the other > columns) spatial data in two columns named "x coord" and "y coord". > I am trying to implement Virtual Spatial Data according to http: > //www.mapserver.org/input/vector/VirtualSpatialData.html. > > I have made ovf file like this: > > > > ODBC:@Krk > baza > wkbPoint > > > > > and map file layer like this (using p.mapper): > > LAYER # kc > CONNECTION "krk.ovf" > CONNECTIONTYPE OGR > NAME "krk" > DATA "krk" > STATUS ON > TYPE POINT > METADATA > "DESCRIPTION" "KC" > "LAYER_ENCODING" "WINDOWS-1250" > END # Metadata > CLASS > Name 'Kc broj' > COLOR 0 0 0 > SYMBOL 'circle' > SIZE 10 > TEMPLATE void > END # Class > END > > I have also made use and system dsn connection named "krk". > > Testing with ogrinfo works fine, for example: > > C:\Projekti\GIS\WebGIS\podaci\krk>ogrinfo krk.ovf krk|more > ERROR 4: Update access not supported for VRT datasources. > Had to open data source read-only. > INFO: Open of `krk.ovf' > using driver `VRT' successful. > > Layer name: krk > Geometry: Point > Feature Count: 2 > Extent: (5000450.000000, 4997536.000000) - (5196390.000000, 5000300.000000) > Layer SRS WKT: > ... > ... > > But trying to run on web I am getting internal server error: > CGI/FastCGI has encountered a problem and needs to close...". Also, > my php error log file says: > > [27-Jan-2009 16:21:45] PHP Warning: [MapServer Error]: > msOGRFileOpen(): Open failed for OGR connection `C: > /Projekti/GIS/WebGIS/podaci/krk/krk.ovf'. > Unable to initialize ODBC connection to DSN for @Krk, > [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed > > in C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\initgroups.php on line 239 > [27-Jan-2009 16:21:45] PHP Stack trace: > [27-Jan-2009 16:21:45] PHP 1. {main}() C: > \ms4w\apps\pmapper\pmapper-3.2.0\map.phtml:0 > [27-Jan-2009 16:21:45] PHP 2. include_once() C: > \ms4w\apps\pmapper\pmapper-3.2.0\map.phtml:51 > [27-Jan-2009 16:21:45] PHP 3. Init_map->initAllParameters() C: > \ms4w\apps\pmapper\pmapper-3.2.0\incphp\init\init.php:34 > [27-Jan-2009 16:21:45] PHP 4. Init_map->_initGroups() C: > \ms4w\apps\pmapper\pmapper-3.2.0\incphp\init\initmap.php:60 > [27-Jan-2009 16:21:45] PHP 5. Init_groups->Init_groups() C: > \ms4w\apps\pmapper\pmapper-3.2.0\incphp\init\initmap.php:292 > [27-Jan-2009 16:21:45] PHP 6. Init_groups->_createGroups() C: > \ms4w\apps\pmapper\pmapper-3.2.0\incphp\initgroups.php:48 > [27-Jan-2009 16:21:45] PHP 7. Init_groups->_initResultFields() C: > \ms4w\apps\pmapper\pmapper-3.2.0\incphp\initgroups.php:117 > [27-Jan-2009 16:21:45] PHP 8. ms_layer_obj->open() C: > \ms4w\apps\pmapper\pmapper-3.2.0\incphp\initgroups.php:239 > > Any help would be greatly appreciated > > Thanks very much > > regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jan 27 07:39:07 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 27 Jan 2009 17:39:07 +0200 Subject: [mapserver-users] shapefile location In-Reply-To: <497F0CEC.4030306@mapgears.com> Message-ID: Hi, I cannot start Apache as Windows service if I add network shares. However, it does start as executable program. Is there some simple way to get both the network shares and Apache running as a service? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Alan Boudreault > L?hetetty: 27. tammikuuta 2009 15:32 > Vastaanottaja: Valeria Mu?oz > Kopio: mapserver-users > Aihe: Re: [mapserver-users] shapefile location > > Hi, > > badly, I don't think it's possible. I'd suggest you to make a > local network share (with NFS in Unix), and mount this share. > At this point, you'll be able to access the remote server > share like a normal local path. > > Regards, > Alan > > Valeria Mu?oz wrote: > > Hi... > > > > I have a problem. can i call the shapes file from > other server?, > > example: > > > > SHAPEPATH "http://192.168.51.188/shapes/" > > > > RG. > > > ---------------------------------------------------------------------- > > -- > > > > _______________________________________________ > > 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 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mtlist at gmx.net Tue Jan 27 07:37:18 2009 From: mtlist at gmx.net (Mathias Tobler) Date: Tue, 27 Jan 2009 10:37:18 -0500 Subject: [mapserver-users] create attributes for dynamic polygon layer Message-ID: <20090127154010.51EC7E01096@lists.osgeo.org> An HTML attachment was scrubbed... URL: From Dejan.Gambin at pula.hr Tue Jan 27 07:23:16 2009 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Tue, 27 Jan 2009 16:23:16 +0100 Subject: [mapserver-users] OGR problem connecting to mdb using ovf Message-ID: Hi, I need to connect to Access database that has (among the other columns) spatial data in two columns named "x coord" and "y coord". I am trying to implement Virtual Spatial Data according to http://www.mapserver.org/input/vector/VirtualSpatialData.html. I have made ovf file like this: ODBC:@Krk baza wkbPoint and map file layer like this (using p.mapper): LAYER # kc CONNECTION "krk.ovf" CONNECTIONTYPE OGR NAME "krk" DATA "krk" STATUS ON TYPE POINT METADATA "DESCRIPTION" "KC" "LAYER_ENCODING" "WINDOWS-1250" END # Metadata CLASS Name 'Kc broj' COLOR 0 0 0 SYMBOL 'circle' SIZE 10 TEMPLATE void END # Class END I have also made use and system dsn connection named "krk". Testing with ogrinfo works fine, for example: C:\Projekti\GIS\WebGIS\podaci\krk>ogrinfo krk.ovf krk|more ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `krk.ovf' using driver `VRT' successful. Layer name: krk Geometry: Point Feature Count: 2 Extent: (5000450.000000, 4997536.000000) - (5196390.000000, 5000300.000000) Layer SRS WKT: ... ... But trying to run on web I am getting internal server error: CGI/FastCGI has encountered a problem and needs to close...". Also, my php error log file says: [27-Jan-2009 16:21:45] PHP Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `C:/Projekti/GIS/WebGIS/podaci/krk/krk.ovf'. Unable to initialize ODBC connection to DSN for @Krk, [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed in C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\initgroups.php on line 239 [27-Jan-2009 16:21:45] PHP Stack trace: [27-Jan-2009 16:21:45] PHP 1. {main}() C:\ms4w\apps\pmapper\pmapper-3.2.0\map.phtml:0 [27-Jan-2009 16:21:45] PHP 2. include_once() C:\ms4w\apps\pmapper\pmapper-3.2.0\map.phtml:51 [27-Jan-2009 16:21:45] PHP 3. Init_map->initAllParameters() C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\init\init.php:34 [27-Jan-2009 16:21:45] PHP 4. Init_map->_initGroups() C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\init\initmap.php:60 [27-Jan-2009 16:21:45] PHP 5. Init_groups->Init_groups() C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\init\initmap.php:292 [27-Jan-2009 16:21:45] PHP 6. Init_groups->_createGroups() C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\initgroups.php:48 [27-Jan-2009 16:21:45] PHP 7. Init_groups->_initResultFields() C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\initgroups.php:117 [27-Jan-2009 16:21:45] PHP 8. ms_layer_obj->open() C:\ms4w\apps\pmapper\pmapper-3.2.0\incphp\initgroups.php:239 Any help would be greatly appreciated Thanks very much regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Tue Jan 27 10:10:34 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 27 Jan 2009 12:10:34 -0600 Subject: [mapserver-users] Search Message-ID: I am trying to use this filter to act as a wild card and am not having any success....incorrect syntax??? Any thoughts? Thanks THIS WORKS: but not a wild card search FILTER /^%idOwner%/ THIS NOT WORKING: FILTER /."%idOwner%"./ LAYER # Parcels Owner Layer NAME 'Parcels' DATA 'parcels/parcels.shp' STATUS DEFAULT TYPE POLYGON METADATA qstring_validation_pattern '.' END TEMPLATE 'parcels/itemquery_parcels_Owner.html' FILTERITEM 'OWNER_NAME' #FILTER /^%idOwner%/ FILTER /."%idOwner%"./ END -------------- next part -------------- An HTML attachment was scrubbed... URL: From skinny2 at netins.net Tue Jan 27 11:51:38 2009 From: skinny2 at netins.net (Kirk Webb) Date: Tue, 27 Jan 2009 13:51:38 -0600 Subject: [mapserver-users] copyright annotation problem Message-ID: I am inserting the copyright annotation provided on the Mapserver web site FAQ's. here it is LAYER NAME "copyright" STATUS ON TYPE annotation TRANSFORM ll #set the image origin to be lower left FEATURE POINTS 60 -10 #set the offset from lower left position in pixels END TEXT "? xyz company 2006" #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT "sans" TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE END ENDi UNITS PIXELS #sets the units for the feature object END I cannot get the text to show up on my map. I have tried to place as the first layer and last layer but neither way works. Has anyone ever had this problem? What might the problem be? I have set the fontset and symbolset correctly. Thanks, Kirk From frodewj at gmail.com Tue Jan 27 12:29:22 2009 From: frodewj at gmail.com (=?UTF-8?Q?Frode_Wiseth_J=C3=B8rgensen?=) Date: Tue, 27 Jan 2009 12:29:22 -0800 (PST) Subject: [mapserver-users] copyright annotation problem In-Reply-To: References: Message-ID: <1233088162419-2228118.post@n2.nabble.com> Hi Seems like there is a typo. The letter i at the END statement of the CLASS. Frode kirkwebb2 wrote: > > I am inserting the copyright annotation provided on the > Mapserver web site FAQ's. here it is > > LAYER > NAME "copyright" > STATUS ON > TYPE annotation > TRANSFORM ll #set the image origin to be lower left > FEATURE > POINTS > 60 -10 #set the offset from lower left position in > pixels > END > TEXT "? xyz company 2006" #this is your displaying > text > END > CLASS > LABEL #defines the font, colors etc. of the text > FONT "sans" > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > FORCE TRUE > END > ENDi > UNITS PIXELS #sets the units for the feature object > END > > I cannot get the text to show up on my map. I have tried > to place as the first layer and last layer but neither way > works. > Has anyone ever had this problem? What might the problem > be? > I have set the fontset and symbolset correctly. > Thanks, > Kirk > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/copyright-annotation-problem-tp2227885p2228118.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tim.Nolte at ipcswirelessinc.com Tue Jan 27 12:42:15 2009 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Tue, 27 Jan 2009 15:42:15 -0500 Subject: [mapserver-users] copyright annotation problem In-Reply-To: <1233088162419-2228118.post@n2.nabble.com> References: <1233088162419-2228118.post@n2.nabble.com> Message-ID: This is my layer definition and it works just fine. What MS release are you on? # ================================================== # Layer: Copyright # ================================================== LAYER NAME copyright STATUS DEFAULT TYPE annotation TRANSFORM false FEATURE POINTS 48 6 #this is the position of the text in image coordinates (pixels) END TEXT "? iPCS Wireless, Inc" #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text FONT "sans" TYPE TRUETYPE SIZE 6 BUFFER 1 COLOR 0 0 0 OUTLINECOLOR 245 245 231 SHADOWSIZE 2 2 BACKGROUNDSHADOWSIZE 1 -1 FORCE TRUE END END END ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frode Wiseth J?rgensen Sent: Tuesday, January 27, 2009 3:29 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] copyright annotation problem Hi Seems like there is a typo. The letter i at the END statement of the CLASS. Frode kirkwebb2 wrote: > > I am inserting the copyright annotation provided on the > Mapserver web site FAQ's. here it is > > LAYER > NAME "copyright" > STATUS ON > TYPE annotation > TRANSFORM ll #set the image origin to be lower left > FEATURE > POINTS > 60 -10 #set the offset from lower left position in > pixels > END > TEXT "? xyz company 2006" #this is your displaying > text > END > CLASS > LABEL #defines the font, colors etc. of the text > FONT "sans" > TYPE TRUETYPE > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > FORCE TRUE > END > ENDi > UNITS PIXELS #sets the units for the feature object > END > > I cannot get the text to show up on my map. I have tried > to place as the first layer and last layer but neither way > works. > Has anyone ever had this problem? What might the problem > be? > I have set the fontset and symbolset correctly. > Thanks, > Kirk > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/copyright-annotation-problem-tp2227885p2228118.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 bthoen at gisnet.com Tue Jan 27 15:13:34 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Tue, 27 Jan 2009 16:13:34 -0700 Subject: [mapserver-users] getFeatureInfo() Only Works on One Layer? Message-ID: <497F951E.3050204@gisnet.com> I originally asked this on the OpenLayers forum, but was told that this is really a Maperver question. So I'll try it here. I've got a WMS layer that has two sub-layers in it and I'm trying to get attribute information from them via a getFeatureInfo request, but I can only get one of them to respond at a time. I've looked at the docs at http://trac.openlayers.org/wiki/GetFeatureInfo and noticed that you can specify several layers with the QUERY_LAYERS parameter, but I'm finding that only the one listed first is active. Also, it's not clear what layer you specify at the root of the request, but it looks like it's supposed to be different from the layers you're querying. Anyway, here's what I'm trying: I open and load the combined layer like so: base = new OpenLayers.Layer.WMS( "Base", "http://192.168.0.250/cgi-bin/mapserv?map=base.map", { layers: ["us_states", "us_interstate"] } ); map.addLayer(base); And here's the request string I'm sending to MapServer: var url = base.getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", FORMAT: 'png', BBOX: map.getExtent().toBBOX(), X: event.xy.x, Y: event.xy.y, INFO_FORMAT: 'text/plain', QUERY_LAYERS: "us_interstate, us_states", FEATURE_COUNT: 1, WIDTH: map.size.w, HEIGHT: map.size.h}, "http://192.168.0.250/cgi-bin/mapserv?map=base.map&"); OpenLayers.loadURL(url, '', this, setHTML); Note the QUERY_LAYERS line. As shown here, it responds with interstate attributes only when I click on an interstate roadway feature, but I get nothing when I click on a state. If I reverse the order of these layers in the list, then clicking on a state returns attributes from the us_states table only. Even if I click on a spot where features in both layers coincide, it returns only the attributes for the layer listed first. Also, setting the FEATURE_COUNT parameter to something higher than 1 just gives me more results from the single that is working. So how do I use multiple layers in the QUERY_LAYERS parameter, or do I get only one at a time? Also, I just guessed at using the layer called 'base' for the getFeatureInfo oject, what is supposed to be used here? TIA, - Bill Thoen From michael.smith at usace.army.mil Tue Jan 27 15:17:37 2009 From: michael.smith at usace.army.mil (Michael Smith) Date: Tue, 27 Jan 2009 18:17:37 -0500 Subject: [mapserver-users] getFeatureInfo() Only Works on One Layer? In-Reply-To: <497F951E.3050204@gisnet.com> Message-ID: Bill, Try separating the QUERY_LAYERS with a space rather than a comma. MapServer uses space delimited values (gets changed to + separated in the URL). Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 1/27/09 6:13 PM, "Bill Thoen" wrote: > I originally asked this on the OpenLayers forum, but was told that this > is really a Maperver question. So I'll try it here. > > I've got a WMS layer that has two sub-layers in it and I'm trying to get > attribute information from them via a getFeatureInfo request, but I can > only get one of them to respond at a time. I've looked at the docs at > http://trac.openlayers.org/wiki/GetFeatureInfo and noticed that you can > specify several layers with the QUERY_LAYERS parameter, but I'm finding > that only the one listed first is active. Also, it's not clear what > layer you specify at the root of the request, but it looks like it's > supposed to be different from the layers you're querying. Anyway, here's > what I'm trying: > > I open and load the combined layer like so: > base = new OpenLayers.Layer.WMS( > "Base", > "http://192.168.0.250/cgi-bin/mapserv?map=base.map", > { layers: ["us_states", "us_interstate"] } > ); > map.addLayer(base); > > > And here's the request string I'm sending to MapServer: > > var url = base.getFullRequestString({ > REQUEST: "GetFeatureInfo", > EXCEPTIONS: "application/vnd.ogc.se_xml", > FORMAT: 'png', > BBOX: map.getExtent().toBBOX(), > X: event.xy.x, > Y: event.xy.y, > INFO_FORMAT: 'text/plain', > QUERY_LAYERS: "us_interstate, us_states", > FEATURE_COUNT: 1, > WIDTH: map.size.w, > HEIGHT: map.size.h}, > "http://192.168.0.250/cgi-bin/mapserv?map=base.map&"); > OpenLayers.loadURL(url, '', this, setHTML); > > Note the QUERY_LAYERS line. As shown here, it responds with interstate > attributes only when I click on an interstate roadway feature, but I get > nothing when I click on a state. If I reverse the order of these layers > in the list, then clicking on a state returns attributes from the > us_states table only. Even if I click on a spot where features in both > layers coincide, it returns only the attributes for the layer listed first. > > Also, setting the FEATURE_COUNT parameter to something higher than 1 just > gives me more results from the single that is working. > > So how do I use multiple layers in the QUERY_LAYERS parameter, or do I > get only one at a time? Also, I just guessed at using the layer called > 'base' for the getFeatureInfo oject, what is supposed to be used here? > > TIA, > - Bill Thoen > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bthoen at gisnet.com Tue Jan 27 16:36:12 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Tue, 27 Jan 2009 17:36:12 -0700 Subject: [mapserver-users] getFeatureInfo() Only Works on One Layer? In-Reply-To: References: Message-ID: <497FA87C.9090103@gisnet.com> No, that's not it. I tried both a space and a '+' instead of the comma, but neither worked. Michael Smith wrote: > Bill, > > Try separating the QUERY_LAYERS with a space rather than a comma. MapServer > uses space delimited values (gets changed to + separated in the URL). > > Mike > > > From crschmidt at metacarta.com Tue Jan 27 16:42:49 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 27 Jan 2009 19:42:49 -0500 Subject: [mapserver-users] getFeatureInfo() Only Works on One Layer? In-Reply-To: <497FA87C.9090103@gisnet.com> References: <497FA87C.9090103@gisnet.com> Message-ID: <20090128004249.GA27414@metacarta.com> On Tue, Jan 27, 2009 at 05:36:12PM -0700, Bill Thoen wrote: > No, that's not it. I tried both a space and a '+' instead of the comma, > but neither worked. Bill, As I suggested before, I highly recommend taking the *actual URL*, and tweaking that, without the interference of OpenLayers in the middle. If you can share a URL that's not working, especially against a liveserver, that would probably be helpful to all involved. Regards, -- Christopher Schmidt MetaCarta From yassefa at dmsolutions.ca Tue Jan 27 17:35:17 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 27 Jan 2009 20:35:17 -0500 Subject: [mapserver-users] getFeatureInfo() Only Works on One Layer? In-Reply-To: <497F951E.3050204@gisnet.com> References: <497F951E.3050204@gisnet.com> Message-ID: <497FB655.7050200@dmsolutions.ca> Bill, You might try setting the layers in the QUERY_LAYERS parameter without any space: QUERY_LAYERS: "us_interstate,us_states". If that does not work, as suggested you might give the full URL sent to Mapserver. From what I can see, query on more that one layer is possible (URL using the Mapserver5.2.1 : http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-173.433000,36.354100,-12.969800,83.746600&SRS=EPSG:4326&WIDTH=785&HEIGHT=232&LAYERS=park%2Cpopplace&STYLES=%2C&FORMAT=image/png&TRANSPARENT=TRUE&QUERY_LAYERS=popplace,park&INFO_FORMAT=text/plain&X=302&Y=121&feature_count=1 Best Regards. Bill Thoen wrote: > I originally asked this on the OpenLayers forum, but was told that this > is really a Maperver question. So I'll try it here. > > I've got a WMS layer that has two sub-layers in it and I'm trying to get > attribute information from them via a getFeatureInfo request, but I can > only get one of them to respond at a time. I've looked at the docs at > http://trac.openlayers.org/wiki/GetFeatureInfo and noticed that you can > specify several layers with the QUERY_LAYERS parameter, but I'm finding > that only the one listed first is active. Also, it's not clear what > layer you specify at the root of the request, but it looks like it's > supposed to be different from the layers you're querying. Anyway, here's > what I'm trying: > > I open and load the combined layer like so: > base = new OpenLayers.Layer.WMS( > "Base", > "http://192.168.0.250/cgi-bin/mapserv?map=base.map", > { layers: ["us_states", "us_interstate"] } > ); > map.addLayer(base); > > > And here's the request string I'm sending to MapServer: > > var url = base.getFullRequestString({ > REQUEST: "GetFeatureInfo", > EXCEPTIONS: "application/vnd.ogc.se_xml", > FORMAT: 'png', > BBOX: map.getExtent().toBBOX(), > X: event.xy.x, > Y: event.xy.y, > INFO_FORMAT: 'text/plain', > QUERY_LAYERS: "us_interstate, us_states", > FEATURE_COUNT: 1, > WIDTH: map.size.w, > HEIGHT: map.size.h}, > "http://192.168.0.250/cgi-bin/mapserv?map=base.map&"); > OpenLayers.loadURL(url, '', this, setHTML); > > Note the QUERY_LAYERS line. As shown here, it responds with interstate > attributes only when I click on an interstate roadway feature, but I get > nothing when I click on a state. If I reverse the order of these layers > in the list, then clicking on a state returns attributes from the > us_states table only. Even if I click on a spot where features in both > layers coincide, it returns only the attributes for the layer listed first. > > Also, setting the FEATURE_COUNT parameter to something higher than 1 just > gives me more results from the single that is working. > > So how do I use multiple layers in the QUERY_LAYERS parameter, or do I > get only one at a time? Also, I just guessed at using the layer called > 'base' for the getFeatureInfo oject, what is supposed to be used here? > > TIA, > - Bill Thoen > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bthoen at gisnet.com Tue Jan 27 19:17:52 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Tue, 27 Jan 2009 20:17:52 -0700 Subject: [mapserver-users] getFeatureInfo() Only Works on One Layer? In-Reply-To: <497FB655.7050200@dmsolutions.ca> References: <497F951E.3050204@gisnet.com> <497FB655.7050200@dmsolutions.ca> Message-ID: <497FCE60.2030508@gisnet.com> Well, when I moved the application to a publicly-accessible server to show you all, it worked as it should. Turns out my server has the latest version of MapServer installed, but my workstation is running an older one, and so I guess the problem got fixed in the newer release. Yewondwossen Assefa wrote: > Bill, > > You might try setting the layers in the QUERY_LAYERS parameter without > any space: QUERY_LAYERS: "us_interstate,us_states". > If that does not work, as suggested you might give the full URL sent > to Mapserver. From what I can see, query on more that one layer is > possible (URL using the Mapserver5.2.1 : > http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-173.433000,36.354100,-12.969800,83.746600&SRS=EPSG:4326&WIDTH=785&HEIGHT=232&LAYERS=park%2Cpopplace&STYLES=%2C&FORMAT=image/png&TRANSPARENT=TRUE&QUERY_LAYERS=popplace,park&INFO_FORMAT=text/plain&X=302&Y=121&feature_count=1 > > > Best Regards. > > > Bill Thoen wrote: >> I originally asked this on the OpenLayers forum, but was told that >> this is really a Maperver question. So I'll try it here. >> >> I've got a WMS layer that has two sub-layers in it and I'm trying to >> get attribute information from them via a getFeatureInfo request, but >> I can only get one of them to respond at a time. I've looked at the >> docs at http://trac.openlayers.org/wiki/GetFeatureInfo and noticed >> that you can specify several layers with the QUERY_LAYERS parameter, >> but I'm finding that only the one listed first is active. Also, it's >> not clear what layer you specify at the root of the request, but it >> looks like it's supposed to be different from the layers you're >> querying. Anyway, here's what I'm trying: >> >> I open and load the combined layer like so: >> base = new OpenLayers.Layer.WMS( >> "Base", >> "http://192.168.0.250/cgi-bin/mapserv?map=base.map", >> { layers: ["us_states", "us_interstate"] } >> ); >> map.addLayer(base); >> >> >> And here's the request string I'm sending to MapServer: >> >> var url = base.getFullRequestString({ >> REQUEST: "GetFeatureInfo", >> EXCEPTIONS: "application/vnd.ogc.se_xml", >> FORMAT: 'png', >> BBOX: map.getExtent().toBBOX(), >> X: event.xy.x, >> Y: event.xy.y, >> INFO_FORMAT: 'text/plain', >> QUERY_LAYERS: "us_interstate, us_states", >> FEATURE_COUNT: 1, >> WIDTH: map.size.w, >> HEIGHT: map.size.h}, >> "http://192.168.0.250/cgi-bin/mapserv?map=base.map&"); >> OpenLayers.loadURL(url, '', this, setHTML); >> >> Note the QUERY_LAYERS line. As shown here, it responds with >> interstate attributes only when I click on an interstate roadway >> feature, but I get nothing when I click on a state. If I reverse the >> order of these layers in the list, then clicking on a state returns >> attributes from the us_states table only. Even if I click on a spot >> where features in both layers coincide, it returns only the >> attributes for the layer listed first. >> >> Also, setting the FEATURE_COUNT parameter to something higher than 1 >> just >> gives me more results from the single that is working. >> >> So how do I use multiple layers in the QUERY_LAYERS parameter, or do >> I get only one at a time? Also, I just guessed at using the layer >> called 'base' for the getFeatureInfo oject, what is supposed to be >> used here? >> >> TIA, >> - Bill Thoen >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From vtammineni at roulacglobal.com Tue Jan 27 22:24:10 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 28 Jan 2009 11:54:10 +0530 Subject: [mapserver-users] Number of users are connected In-Reply-To: References: <010301c9807d$78a36010$69ea2030$@com> Message-ID: <003801c98111$0971a640$1c54f2c0$@com> Sir, I am using C# npgsql.dll I am getting this error "Timeout while getting a connection from pool" sometimes. but not every time. Here is my code to connect database My connection string in web config And here is my code to connect database. public NpgsqlConnection PgSqlDataConnection() { if (pgSqlConnection != null) { if (pgSqlConnection.State == ConnectionState.Open) { pgSqlConnection.Close(); pgSqlConnection.Dispose(); } } pgConnectionString = ConfigurationSettings.AppSettings["ConnectionString"].ToString(); pgSqlConnection = new NpgsqlConnection(pgConnectionString); pgSqlConnection.Open(); return pgSqlConnection; } I don't know where I am doing wrong ?Please guide me . I am waiting for your great response. Thanks, Venkat From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, January 27, 2009 8:12 PM To: Venkat Rao Tammineni Cc: mapserver-users Subject: Re: [mapserver-users] Number of users are connected Hi, IIS on Windows XP is limited to 10 concurrent users, however you shouldn't find such problems with a Windows Server OS. Best regards, Tamas 2009/1/27 Venkat Rao Tammineni Dear All, I have developed web application using C# asp.net and postgresql/postgis. I have deployed in IIS .if my 10 people connected my url. I am getting error called "More number users are connected ".I don't know, how to solve the problem. And sometimes I am getting error called " connection pooled". I am waiting for your great response, Advanced Thanks Regards Venkat. _______________________________________________ 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 cemre.yilmaz at gmail.com Tue Jan 27 23:51:35 2009 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Wed, 28 Jan 2009 09:51:35 +0200 Subject: [mapserver-users] data handling capacity of map server Message-ID: <28babe2b0901272351l60a2e97as345ca28b78677cc7@mail.gmail.com> Hi everybody I search about the data handling capacity and also the performance of umn mapserver in the mailing list but I can't find an exact answer to my question. I want to execute a database nearly 5 GB and only the vector data (shapefiles) and may be one raster map will be in my database. What do you think about the data handling performance of the 5 GB data and also the maximum data capacity of the mapserver? Coul you please give me information or information link about the question. Thanks.. Cemre YILMAZ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Wed Jan 28 02:14:37 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 28 Jan 2009 11:14:37 +0100 (CET) Subject: [mapserver-users] create attributes for dynamic polygon layer In-Reply-To: <20090127154010.51EC7E01096@lists.osgeo.org> References: <20090127154010.51EC7E01096@lists.osgeo.org> Message-ID: <46199.89.97.235.106.1233137677.squirrel@localhost.localdomain> I was engaged in a similar question. It is not possible, you must to try a different method. Read this thread: http://lists.osgeo.org/pipermail/mapserver-users/2009-January/059537.html ciao .........pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mar, Gennaio 27, 2009 16:37, Mathias Tobler wrote: > > > I sent this (probably wrongly) to the mapserver-dev list a > couple about a week ago and have not heard back from anyone. So I am > trying my luck here.

> I am using PHP MapScript to create a polygon layer based on data stored > in a MySQL database. The layer will show 1x1 degree grid cells and each > cell should be colored according to the number of point records it > contains. The summary is don in SQL and the query returns the coordinates > of the lower left corner of each cell as well as a column 'Count' with > the number of recrods in each cell. The geometry part work fine but I > would like to add an attribute so I can assign different collors to the > polygons. While $oNewShape->set("text",$label); works great > for labeling polygons I wonder if there was a similar methods that will > work with the EXPRESSION statement so that I can define different classes > for the layer. Using MySQL is given by our application and I won't be > able to switch to PostGIS. Any suggestions are wellcome.

> Mathias

>
> # Create a layer to hold density polygons
> $oLayerPoly = ms_newLayerObj($oMap);
> $oLayerPoly->set( "name", "ColDensity");
> $oLayerPoly->set( "type", MS_LAYER_POLYGON);
> $oLayerPoly->set( "status", MS_DEFAULT);

> foreach($summary_rows as $row)
> {
> $oNewLine = ms_newLineObj();
> $oNewLine->addXY($row['minLong'],$row['minLat']);
> $oNewLine->addXY($row['minLong']+1,$row['minLat']);
> $oNewLine->addXY($row['minLong']+1,$row['minLat']+1);
> $oNewLine->addXY($row['minLong'],$row['minLat']+1);
> $oNewLine->addXY($row['minLong'],$row['minLat']);
>          >            >
> $oNewShape = ms_newShapeObj(MS_SHAPE_POLYGON);
> $oNewShape->add($oNewLine);
>          >          >          >          >          >         
> $label = $row['Count'];
>          >          >          >          >          >         
> $oNewShape->set("text",$label);
>          >          >          >          >          >         
> $oLayerPoly->AddFeature($oNewShape);
>          >         
> }
> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From alexandre.rodier at carm.es Wed Jan 28 03:46:10 2009 From: alexandre.rodier at carm.es (RODIER BATISSE, ALEXANDRE) Date: Wed, 28 Jan 2009 12:46:10 +0100 Subject: [mapserver-users] Problem with CLASS display Message-ID: <8DB813E500220E49824A37D46669749D56CB3B@CORREO06.carm.msda> Hi everyone, I have a problem with CLASS object to display diferent value depending to the minscale. I would to display a classitem field until 1:200.000 scale. For it I set (first case): CLASSITEM "OBSERVACI" LABELITEM "OBSERVACI" CLASS minscaledenom 200000 NAME "PORN aprobado definitivamente" EXPRESSION "PORN aprobado definitivamente" COLOR 125 210 84 OUTLINECOLOR 110 110 110 END #Class CLASS minscaledenom 200000 NAME "PORN sometido a informaci?n p?blica" EXPRESSION "PORN sometido a informaci?n p?blica" COLOR 125 210 150 OUTLINECOLOR 110 110 110 END #Class CLASS minscaledenom 200000 NAME "PORN aprobado inicialmente" EXPRESSION "PORN aprobado inicialmente" COLOR 125 210 84 OUTLINECOLOR 110 110 110 END #Class And I would to display another classitem with scale less than 1:200.000 For it I set (second case): CLASSITEM "Zonas" LABELITEM "Zonas" CLASS maxscaledenom 200000 NAME "Zona de conservaci?n prioritaria" EXPRESSION "Zona de conservaci?n prioritaria" COLOR 2 220 0 OUTLINECOLOR 110 110 110 END # Class CLASS maxscaledenom 200000 NAME "Zona de conservaci?n compatible" EXPRESSION "Zona de conservaci?n compatible" COLOR 166 255 165 OUTLINECOLOR 110 110 110 END # Class ... Problems arise with I set the scale upper than 1:200.000 (first case). Mapserver doesn't display map. I can see map image when I down above 1:200000 scale (second case). If I set first case with an unique class, it works fine, and I can display good image. Someone kowns where is the problem. Thanks. --------------------------------------------- Alexandre Rodier Asistencia T?cnica del SIGA Servicio de Informaci?n e Integraci?n Ambiental Direcci?n General de Patrimonio Natural y Biodiversidad Consejer?a de Agricultura y Agua. c/ Arquitecto Emilio Pi?ero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rodier at carm.es http://www.carm.es/medioambiente --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Jan 28 04:29:58 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 28 Jan 2009 13:29:58 +0100 Subject: [mapserver-users] Number of users are connected In-Reply-To: <003801c98111$0971a640$1c54f2c0$@com> References: <010301c9807d$78a36010$69ea2030$@com> <003801c98111$0971a640$1c54f2c0$@com> Message-ID: Venkat, This question is out of the scope of MapSever, and I'm afraid we can less likely provide a meaningful answer to it. You should probably post this question to the npgsql project mailing list if exits. Best regards, Tamas 2009/1/28 Venkat Rao Tammineni > Sir, > > I am using C# npgsql.dll I am getting this error "Timeout while > getting a connection from pool" sometimes. but not every time. > > > > Here is my code to connect database > > > > My connection string in web config > > > > > > And here is my code to connect database. > > public NpgsqlConnection PgSqlDataConnection() > > { > > if (pgSqlConnection != null) > > { > > if (pgSqlConnection.State == ConnectionState.Open) > > { > > pgSqlConnection.Close(); > > pgSqlConnection.Dispose(); > > } > > } > > pgConnectionString = ConfigurationSettings.AppSettings[ > "ConnectionString"].ToString(); > > pgSqlConnection = new NpgsqlConnection(pgConnectionString); > > > > pgSqlConnection.Open(); > > > > return pgSqlConnection; > > } > > > > > > I don't know where I am doing wrong ?Please guide me . > > I am waiting for your great response. > > > > Thanks, > > Venkat > > > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Tuesday, January 27, 2009 8:12 PM > *To:* Venkat Rao Tammineni > *Cc:* mapserver-users > *Subject:* Re: [mapserver-users] Number of users are connected > > > > Hi, > > IIS on Windows XP is limited to 10 concurrent users, however you shouldn't > find such problems with a Windows Server OS. > > Best regards, > > Tamas > > > 2009/1/27 Venkat Rao Tammineni > > Dear All, > > > > > > I have developed web application using C# asp.net and > postgresql/postgis. I have deployed in IIS .if my 10 people connected my > url. I am getting error called "More number users are connected ".I don't > know, how to solve the problem. And sometimes I am getting error called " > connection pooled". > > > > I am waiting for your great response, > > > > Advanced Thanks > > > > Regards > > Venkat. > > > _______________________________________________ > 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 Wed Jan 28 04:41:29 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 28 Jan 2009 07:41:29 -0500 Subject: [mapserver-users] data handling capacity of map server In-Reply-To: <28babe2b0901272351l60a2e97as345ca28b78677cc7@mail.gmail.com> References: <28babe2b0901272351l60a2e97as345ca28b78677cc7@mail.gmail.com> Message-ID: <49805279.1000405@dmsolutions.ca> Hi, As far as I know, there is no particular limiting data size that MapServer can work with. A lot will depend on how you optimize the data (see http://mapserver.org/optimization/index.html ). I am currently working on a map that has more than 60GB of vector data (shapefiles) and 64GB of raster data (geotiffs). There are other methods not discussed in the optimization document that can also be explored (e.g. using shp2tile/tile4ms, to create tiled shapefiles so that only the required features are considered for a given map extent) but I would suggest trying out the described methods to see if they suffice. In my experience, one of the best ways to speed up the drawing of vector layers is to limit the use of filters and class expressions on large data files. Regards, Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca cemre yilmaz wrote: > Hi everybody I search about the data handling capacity and also the > performance of umn mapserver in the mailing list but I can't find an > exact answer to my question. I want to execute a database nearly 5 GB > and only the vector data (shapefiles) and may be one raster map will > be in my database. What do you think about the data handling > performance of the 5 GB data and also the maximum data capacity of the > mapserver? > > Coul you please give me information or information link > about the question. > > Thanks.. > > Cemre YILMAZ > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca Phone: 613-565-5056 x12 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhevenor at rogers.com Wed Jan 28 04:57:04 2009 From: jhevenor at rogers.com (Josh Hevenor) Date: Wed, 28 Jan 2009 07:57:04 -0500 Subject: [mapserver-users] OracleSpatial driver - VARCHAR2(4000) Message-ID: <49805620.8080200@rogers.com> Good morning list, Regarding http://trac.osgeo.org/mapserver/ticket/2260 I've come across this ticket and believe it might explain a problem I've been having. I'm upgrading an application from mapserver 4/oracle 9 to use mapserver 5 oracle 10. Things have gone relatively smoothly, but my more advanced query functions have started returning oracle errors stating that fields have been truncated. I've contacted the emails listed on the ticket and Umberto has said that not much is going on. Can anyone update me on the status of this bug, or if there is a patch/workaround in place? I'd be happy to support an update to this in whatever way I can. Thanks, Josh Hevenor From simone.frigerio at unimib.it Wed Jan 28 08:26:50 2009 From: simone.frigerio at unimib.it (simone.frigerio) Date: Wed, 28 Jan 2009 17:26:50 +0100 Subject: [mapserver-users] Raster ESRI GRID path error Message-ID: Hi, I inserted a raster GRID in my mapfile but in map appears this kind of error: Message : Mapserver error: Error in msDrawRaster() : /asci_co2 using full path /asci_co2 Probably I did an error in the path, but I don't know what is it really! GRID is inside DATA folder (SHAPEPATH) and it is represented by a folder "asci_co2"" and a folder "info". The layer parameters are: LAYER NAME "asci_co2" TYPE RASTER DATA "/asci_co2" TEMPLATE "ttt" TRANSPARENCY 100 METADATA "force_imagetype" "jpeg" END END Thanks Simo From warmerdam at pobox.com Wed Jan 28 08:38:53 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 28 Jan 2009 11:38:53 -0500 Subject: [mapserver-users] Raster ESRI GRID path error In-Reply-To: References: Message-ID: <49808A1D.1050606@pobox.com> simone.frigerio wrote: > Hi, > I inserted a raster GRID in my mapfile but in map appears this kind of > error: > > Message : Mapserver error: Error in msDrawRaster() : /asci_co2 using > full path /asci_co2 > > Probably I did an error in the path, but I don't know what is it really! > GRID is inside DATA folder (SHAPEPATH) and it is represented by a > folder "asci_co2"" and a folder "info". The layer parameters are: > > LAYER > NAME "asci_co2" > TYPE RASTER > DATA "/asci_co2" > TEMPLATE "ttt" > TRANSPARENCY 100 > METADATA > "force_imagetype" "jpeg" > END > END Simo, If you include a slash at the beginning of the filename it is assumed to be an absolute path from root. I think you just want to use: DATA "asci_co2" Good luck, -- ---------------------------------------+-------------------------------------- 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 NSoto at plotplans.com Wed Jan 28 11:56:59 2009 From: NSoto at plotplans.com (Nelson Soto) Date: Wed, 28 Jan 2009 14:56:59 -0500 Subject: [mapserver-users] GMLtoWKT Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43F0B25@geoexchange.DesLauriers.local> Is anyone aware of how to convert coordinates from a WFS's GML to WKT acceptable coordinates? This is driving me crazy. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Jan 28 12:05:57 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 28 Jan 2009 21:05:57 +0100 Subject: [mapserver-users] mapserver-tilecache DRIVER "AGG/PNG" In-Reply-To: <4b56aefe0901230517l3b15cc14o2526cdf3cb741911@mail.gmail.com> References: <4b56aefe0901230517l3b15cc14o2526cdf3cb741911@mail.gmail.com> Message-ID: hi, you could try specifically adding the agg outputformat to your wms url: url=http://192.168.51.166/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/mapFile/mapas/iv_region_wms_d02.map&format=aggpng24 cheers, thomas On Fri, Jan 23, 2009 at 14:17, Valeria Mu?oz wrote: > hi! > > I have problems with tilecache and mapserver, i soft the lines of my map > with : > mapfile. > IMAGETYPE png > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > I used the same code in my WMS.map: > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > > tilecache conf > > [ivregion_d02] > type=WMS > url=http://192.168.51.166/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/mapFile/mapas/iv_region_wms_d02.map > extension=png > srs=EPSG:4326 > layers=ivwmsd02 > maxExtent=-94.759286 -56.941688 -47.367777 -16.539095 > > The problem is that the tiles who created tilecache are not with clean and > smooth lines. > > I attach images. > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From danlittle at yahoo.com Wed Jan 28 12:26:01 2009 From: danlittle at yahoo.com (Dan Little) Date: Wed, 28 Jan 2009 12:26:01 -0800 (PST) Subject: [mapserver-users] GMLtoWKT References: <7BA6F57E003ADF4EA12DAA3043BB13D43F0B25@geoexchange.DesLauriers.local> Message-ID: <322820.59463.qm@web51411.mail.re2.yahoo.com> Depends on your environment... but if you can use javascript you could use OpenLayers... (this is off the top of my head... so excuse me if I screw something up...) var gmlString = "... some GML!!! ..."; var wkt = new OpenLayers.Format.WKT(); var wfs = new OpenLayers.Format.GML(); var features = wfs.read(gmlString); for(var i = 0; i < features.length; i++) { var wktString = wkt.write(features[i]); } ________________________________ From: Nelson Soto To: mapserver-users at lists.osgeo.org Sent: Wednesday, January 28, 2009 1:56:59 PM Subject: [mapserver-users] GMLtoWKT Is anyone aware of how to convert coordinates from a WFS?s GML to WKT acceptable coordinates? This is driving me crazy. -------------- next part -------------- An HTML attachment was scrubbed... URL: From romero619 at hotmail.com Wed Jan 28 18:06:27 2009 From: romero619 at hotmail.com (P.Romero) Date: Wed, 28 Jan 2009 20:06:27 -0600 Subject: [mapserver-users] problems compiling latest version on linux Message-ID: Im having new problems compiling both the latest versions of GDAL and also mapserver. I didn't experience these problems with the previous versions (about a month ago?). Running "./configure -with-gdal" for mapserver is causing the makefile to request a lot of new libraries, which I've had to manually install using "yum", but now Im stuck with a dependency for "-lpq" which I have no idea where to get. Compiling gdal was also more complicated than the last time (about 1-2 months ago). This time, I was forced to manually edit the GDALopts file and remove certain formats (netcdf, fits, and some others) in order to avoid build errors (this is new, as I didn't have this problem a month ago on a similar system). Questions: 1) why is the new version of mapserver configuring the makefile with so many new dependencies for the "with-gdal" opcion??? 2) How can I resolve all of these gdal dependencies in the fastest&most efficient way possible??? 3) Currently, I am ONLY using mapserver for generating png images from a shapefile using a mapfile and mapscript. What would be a minimal build configuration that would allow me to do this, without having to install so many additional libraries??? Please help, Thanks, P.Romero -------------- next part -------------- An HTML attachment was scrubbed... URL: From boesiii at yahoo.com Wed Jan 28 19:25:19 2009 From: boesiii at yahoo.com (boesiii) Date: Wed, 28 Jan 2009 19:25:19 -0800 (PST) Subject: [mapserver-users] Create a button for Query Message-ID: <1233199519255-2236684.post@n2.nabble.com> My current html template has a drop down list for map modes, browse, single layer query and multi-layer query. I would like to have a single button for querying. Will I have to use javascript or is there a simpler way? -- View this message in context: http://n2.nabble.com/Create-a-button-for-Query-tp2236684p2236684.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmail at digitalics.com Wed Jan 28 19:46:00 2009 From: dmail at digitalics.com (mapgeek) Date: Wed, 28 Jan 2009 19:46:00 -0800 (PST) Subject: [mapserver-users] problem with scientific notation in WFS field output Message-ID: <1233200760039-2236793.post@n2.nabble.com> Background: I have an integer field in a map layer where every record contains exactly 8 digits. The WFS output for this field is getting converted into scientific notation, but the number is missing 2 significant digits at the end (ones and tens). A number like 20010822 is getting converted into 2.00108e+007, which is the equivalent of 20010800. Problem: When I do greater-than or less-than WFS filters on that field, I lose the ability to query the last two digits. It treats 20010822 as if it were 20010800. Desired Solution: I need to be able to apply greater-than and less-than filters on that integer field and get the correct results. I do NOT particularly care if the field values are correctly displayed in the WFS output, as long as the results are filtered. That said, I suspect that solving the display will fix the filtering. More Background: -- I need to do WFS filter encoding with a date. Date filtering is unsupported, so I am trying to work around it by representing the date as a sortable integer. -- I am connecting to an SDE view. I have changed the date field in the view to be an integer field in the 8 digit format of YYYYMMDD. -- Any number you construct in this format should be less than records in the future and greater than records in the past. I want to use these integers as the literal in PropertyIsLessThan or PropertyIsGreaterThan filters to create before and after queries. -- Aside from the problems described above, it going well so far. By losing the last 2 digits, however, I can only get as detailed as months, and lose resolution of days. Other than that, the plan seems to work. -- I have historical features dating back hundreds of years, so a 4 digit year is required. My environment is MS4W 2.2.6 (can upgrade if needed). I am connecting to an SDE 9.2 spatial view running on Oracle. thanks, David -- View this message in context: http://n2.nabble.com/problem-with-scientific-notation-in-WFS-field-output-tp2236793p2236793.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Wed Jan 28 23:11:49 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 29 Jan 2009 08:11:49 +0100 Subject: AW: [mapserver-users] problem with scientific notation in WFS field output References: <1233200760039-2236793.post@n2.nabble.com> Message-ID: Hi, a quick and dirty solution might be altering the field type to be a character string since the format you are using allows comparision operators to work as expected, for example "19990112" is literally less than "20010822". Also, exporting as character strings would fix your display format. I don't know if MS can dynamically cast the value in case arithmetic operations are involved. So this solution might or might not work for you. From dmail at digitalics.com Thu Jan 29 01:50:16 2009 From: dmail at digitalics.com (mapgeek) Date: Thu, 29 Jan 2009 01:50:16 -0800 (PST) Subject: AW: [mapserver-users] problem with scientific notation in WFS field output In-Reply-To: References: <1233200760039-2236793.post@n2.nabble.com> Message-ID: <1233222616940-2237958.post@n2.nabble.com> Is this something you've had success with in the past? This was actually the first thing I tried. It didn't work, and I believe the outcome was a 500 error. I guess I could give it another shot. I was using the Oracle to_char function, but maybe it got converted back into a number somewhere downstream. I could add dashes (e.g.: 2008-01-15) to make sure it is forcing the field type to string. The WFS docs for MapServer say string comparison is not supported ( http://mapserver.org/ogc/filter_encoding.html http://mapserver.org/ogc/filter_encoding.html - see #3 at the bottom of the page), so I didn't want to spend a bunch of time on this. Interestingly, the default display for dates starts with the hour, followed by the date. I was able to use comparison filters, even though the docs say it won't work. It would select records that occurred earlier or later in the day, ignoring the date. There was a method to the madness, but definitely not what I was after!!! -- View this message in context: http://n2.nabble.com/problem-with-scientific-notation-in-WFS-field-output-tp2236793p2237958.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pgiannini at bytewise.it Thu Jan 29 02:35:45 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 29 Jan 2009 11:35:45 +0100 (CET) Subject: [mapserver-users] Create a button for Query In-Reply-To: <1233199519255-2236684.post@n2.nabble.com> References: <1233199519255-2236684.post@n2.nabble.com> Message-ID: <50028.192.168.1.55.1233225345.squirrel@localhost.localdomain> There is not another way than use javascript. The mapserver cgi receive the "mode" (can be "map", "browse", "query","nquery"...) parameter from the template because the template contains - in the form which do a "submit()" - a control named "mode". The drop-down list sure is named "mode", so there can be not another control - e.g. a hidden field - named "mode". The only way is making a button like: A click on button change the drop-down value in "browse", and a click on the map will submit the url with a parameter like "... &browse=query..." ... At this point you can also prefer to change the drop-down with a series of buttons, one for each "mode" you want, each button changing the value of an hidden field named "mode"... ciao ...................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Gennaio 29, 2009 04:25, boesiii wrote: > > My current html template has a drop down list for map modes, browse, > single > layer query and multi-layer query. I would like to have a single button > for > querying. Will I have to use javascript or is there a simpler way? > -- > View this message in context: > http://n2.nabble.com/Create-a-button-for-Query-tp2236684p2236684.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 bartvde at osgis.nl Thu Jan 29 04:26:13 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 29 Jan 2009 13:26:13 +0100 (CET) Subject: [mapserver-users] GDAL_WMS xml inline Message-ID: <56003.145.50.39.11.1233231973.squirrel@webmail.hostingdiscounter.nl> Hi list, is it possible to use a GDAL_WMS XML config inline in a MAP file, just like it is possible to use an ovf file inline? Best regards, Bart From bartvde at osgis.nl Thu Jan 29 04:14:54 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 29 Jan 2009 13:14:54 +0100 (CET) Subject: [mapserver-users] broken link for cartographic symbols Message-ID: <18869.145.50.39.11.1233231294.squirrel@webmail.hostingdiscounter.nl> Hi list, just wanted to report that the link to the example symbolset from Cartographic Symbol Construction with Mapserver (http://mapserver.org/mapfile/symbology/construction.html) is broken. i.e.: http://www.mapmedia.de/dokumente/umn_signaturen_howto/vortrag_demo.zip is broken. Would be nice if it could be fixed since this is still very much useful material. Best regards, Bart From skinny2 at netins.net Thu Jan 29 06:09:55 2009 From: skinny2 at netins.net (Kirk Webb) Date: Thu, 29 Jan 2009 08:09:55 -0600 Subject: [mapserver-users] displaying a logo in map(in background or transparent) Message-ID: Hi all, I am trying to display a symbol (logo) in my map that is transparent or atleast sits in the background so as not to obscure the visualization of the map features. How are some of the ways I can do this? I had thought about possibly creating a transparent png of my logo but then, how to place it in the map? Any help is appreciated. Thanks, Kirk From rafaelchacon at gmail.com Thu Jan 29 06:19:04 2009 From: rafaelchacon at gmail.com (=?ISO-8859-1?Q?Rafael_chac=F3n?=) Date: Fri, 30 Jan 2009 09:49:04 +1930 Subject: [mapserver-users] Re: [OpenLayers-Users] Doubt with layers In-Reply-To: References: <128785280901281151m78adb127j5ba2db3934c27291@mail.gmail.com> <128785280901281213n30251743t62907c71e69e0e18@mail.gmail.com> Message-ID: <128785280901290619y2a755dcau60b67098c3fc57f9@mail.gmail.com> Hi, thanks for the answer.. I didn't have the layers in png or gif.. I did that but the overlays is still not working.. Look how is the declaration now .. I kind of stuck: Mapserver: MAP size 800 600 imagetype 'png' TRANSPARENT ON imagecolor 0 0 255 extent -180 -90 180 90 SYMBOLSET "symbols" PROJECTION "init=epsg:4269" END WEB IMAGEPATH "/var/www/apache2-default/gis_tests/tmp/" IMAGEURL "/apache2-default/gis_tests/tmp/" TEMPLATE "empty.html" LOG "log" metadata wms_title "us_states" wms_srs "EPSG:4269" end end outputformat name "png" driver "GD/PNG" imagemode "rgba" extension "png" mimetype "image/png" imagemode RGBA end --------- Openlayers: layer = new OpenLayers.Layer.MapServer( "Estados unidos", " http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", {layers: 'us_states', 'format':'image/png'}); roads = new OpenLayers.Layer.MapServer( "Roads", " http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", {layers: 'us_roads',transparent: 'true', 'format':'image/png'}, {isBaseLayer:false}); gps = new OpenLayers.Layer.MapServer( "GPS", " http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", {layers: 'gps_points', transparent: 'true', 'format':'image/png' }, {isBaseLayer:false}); roads.setVisibility(false); gps.setVisibility(false); Thaks for your help :) On Thu, Jan 29, 2009 at 5:10 PM, Ivan Grcic wrote: > hmm what are the layers image type? its has to be PNG/GIF to be > transparent... > > i guess u have to add format: 'image/png', to layer options > > On Wed, Jan 28, 2009 at 9:13 PM, Rafael chac?n > wrote: > > Hi, the layers are showing as overlays (with baselayer set to false) I'm > > adding some snapshot to show the behavior. > > > > > > > > On Thu, Jan 29, 2009 at 3:31 PM, Ivan Grcic wrote: > >> > >> Hi, check options: > >> > >> layer.isBaseLayer(true/false) > >> > >> map.setBaseLayer(layer) > >> > >> Cheers > >> > >> On Wed, Jan 28, 2009 at 8:51 PM, Rafael chac?n > >> wrote: > >> > Hi, I have the following layers defined: > >> > > >> > roads = new OpenLayers.Layer.MapServer( "Roads", > >> > > >> > "http://192.168.1.103/cgi-bin/mapserv?map=us_states.map", > >> > {layers: 'us_roads', transparent:'true'}); > >> > gps = new OpenLayers.Layer.MapServer( "GPS", > >> > > >> > "http://192.168.1.103/cgi-bin/mapserv?map=us_states.map", > >> > {layers: 'gps_points', transparent: 'true'}); > >> > > >> > roads.setVisibility(false) > >> > gps.setVisisibility(false) > >> > > >> > > >> > Both layers work, but I have the following behavior: when one of the > >> > layers > >> > is active the other one disappears. Suppose I chose first the roads, > >> > then > >> > it show the roads. Then I select gps, then it shows the gps points but > >> > roads > >> > start to disappear. Any ideas why this happens?? > >> > > >> > Thanks in advance. > >> > > >> > > >> > -- > >> > Rafael Chacon, > >> > > >> > "El hombre es la medida de todas las cosas". Protagoras > >> > _______________________________________________ > >> > Users mailing list > >> > Users at openlayers.org > >> > http://openlayers.org/mailman/listinfo/users > >> > > >> > > >> > >> > >> > >> -- > >> Ivan Grcic > > > > > > > > -- > > Rafael Chacon, > > > > "El hombre es la medida de todas las cosas". Protagoras > > > > > > -- > Ivan Grcic > -- Rafael Chacon, "El hombre es la medida de todas las cosas". Protagoras -------------- next part -------------- An HTML attachment was scrubbed... URL: From rafaelchacon at gmail.com Thu Jan 29 06:25:07 2009 From: rafaelchacon at gmail.com (=?ISO-8859-1?Q?Rafael_chac=F3n?=) Date: Fri, 30 Jan 2009 09:55:07 +1930 Subject: [mapserver-users] displaying a logo in map(in background or transparent) In-Reply-To: References: Message-ID: <128785280901290625s26b63a6esd2786d2d780035f5@mail.gmail.com> Hi, I think you could take a look at this http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map... Then instead of letters you could add your logo as style symbol in the class section. Not sure if it would work, I haven't test it.. But is an idea :) On Fri, Jan 30, 2009 at 9:39 AM, Kirk Webb wrote: > Hi all, > I am trying to display a symbol (logo) in my map that is transparent or > atleast sits in the background so as not to obscure the visualization of the > map features. > How are some of the ways I can do this? > > I had thought about possibly creating a transparent png of my logo but > then, how to place it in the map? > Any help is appreciated. > Thanks, > Kirk > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Rafael Chacon, "El hombre es la medida de todas las cosas". Protagoras -------------- next part -------------- An HTML attachment was scrubbed... URL: From rafaelchacon at gmail.com Thu Jan 29 07:17:29 2009 From: rafaelchacon at gmail.com (=?ISO-8859-1?Q?Rafael_chac=F3n?=) Date: Fri, 30 Jan 2009 10:47:29 +1930 Subject: [mapserver-users] Problem with transparency overlays Message-ID: <128785280901290717o7c33b53vce1e86f02e1d1454@mail.gmail.com> Hi, I'm having some trouble with transparency layers appear/disappear. I'm working with MapServer and Openlayers... I want two layers to overlay but when I choose to show one the other one hides... Here is some of my code.... Thanks for the help :) Mapserver File: MAP size 800 600 imagetype 'gif' TRANSPARENT ON imagecolor 0 0 255 extent -180 -90 180 90 SYMBOLSET "symbols" PROJECTION "init=epsg:4269" END WEB IMAGEPATH "/var/www/apache2-default/gis_tests/tmp/" IMAGEURL "/apache2-default/gis_tests/tmp/" TEMPLATE "empty.html" metadata wms_title "us_states" wms_srs "EPSG:4269" end end _______ OPenlayers: layer = new OpenLayers.Layer.MapServer( "Estados unidos", " http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", {layers: 'us_states', 'format':'image/png'}); roads = new OpenLayers.Layer.MapServer( "Roads", " http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", {layers: 'us_roads',transparent: 'true', 'format':'image/png'}, {isBaseLayer:false}); gps = new OpenLayers.Layer.MapServer( "GPS", " http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", {layers: 'gps_points', transparent: 'true', 'format':'image/png' }, {isBaseLayer:false}); roads.setVisibility(false); gps.setVisibility(false); -- Rafael Chacon, "El hombre es la medida de todas las cosas". Protagoras -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Jan 29 11:39:20 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 29 Jan 2009 14:39:20 -0500 Subject: [mapserver-users] GDAL_WMS xml inline In-Reply-To: <56003.145.50.39.11.1233231973.squirrel@webmail.hostingdiscounter.nl> References: <56003.145.50.39.11.1233231973.squirrel@webmail.hostingdiscounter.nl> Message-ID: <498205E8.2040900@pobox.com> bartvde at osgis.nl wrote: > Hi list, > > is it possible to use a GDAL_WMS XML config inline in a MAP file, just > like it is possible to use an ovf file inline? Bart, No, I do not believe so, though it would be relatively easy to modify the WMS driver to support this. 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 szekerest at gmail.com Thu Jan 29 11:54:17 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 29 Jan 2009 20:54:17 +0100 Subject: [mapserver-users] GDAL_WMS xml inline In-Reply-To: <498205E8.2040900@pobox.com> References: <56003.145.50.39.11.1233231973.squirrel@webmail.hostingdiscounter.nl> <498205E8.2040900@pobox.com> Message-ID: Frank, It looks like the GDAL WMS driver does accept the XML strings directly, however we may run into a limitation in the maximum length (1024) in the MapServer GDAL driver since the connection string is handled as if it was a filename in every case. Best regards, Tamas 2009/1/29 Frank Warmerdam > bartvde at osgis.nl wrote: > >> Hi list, >> >> is it possible to use a GDAL_WMS XML config inline in a MAP file, just >> like it is possible to use an ovf file inline? >> > > Bart, > > No, I do not believe so, though it would be relatively easy to modify the > WMS driver to support this. > > 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 > > > _______________________________________________ > 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 jmckenna at gatewaygeomatics.com Thu Jan 29 12:56:21 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 29 Jan 2009 15:56:21 -0500 Subject: [mapserver-users] Wiki Revival Message-ID: <498217F5.4010803@gatewaygeomatics.com> Hello MapServer community, This message is an announcement of sorts, to call for all MapServer users and developers to start adding hints, build notes, code examples, etc. in the MapServer Wiki (http://trac.osgeo.org/mapserver/). If you go to that page and pan down a bit you will see that there are now several Wiki pages (mostly taken from the original MapServer wiki) that need some love from you. To login and start editing you'll need to create an OSGeo userid, and there is a link on that page to create that. I'd like to highlight some Wiki pages that I'd really like to see the community add to: * Presentations Archive (http://trac.osgeo.org/mapserver/wiki/Presentations) - by now there must be hundreds of MapServer presentations that could be posted here for others * Users Directory (http://trac.osgeo.org/mapserver/wiki/UserDirectory) - why not? the old wiki had one, so add yourself under your respective country and make a little page describing your MapServer/FOSS4G interests * Gallery (http://trac.osgeo.org/mapserver/wiki/MapServerSites) - until there is a formal gallery, add your application URL here and follow the template * Symbology Exchange (http://trac.osgeo.org/mapserver/wiki/SymbologyExchange) - let's share our symbols and tricks! * Build Notes (http://trac.osgeo.org/mapserver/wiki/MapServerCompilation) - if you've recently compiled MapServer why not document what you learned (and your steps) here for others?! * MapScript Code Examples (phpmapscript: http://trac.osgeo.org/mapserver/wiki/PHPMapScript perlmapscript: http://trac.osgeo.org/mapserver/wiki/PerlMapScriptExamples35) - document snippets of code so others can learn mapscript faster * FAQ (http://trac.osgeo.org/mapserver/wiki/FAQ) - is something driving you crazy that has never been documented? write it here so others can avoid the same trap! If you see a page or link that's out of date then by all means update it. You have ideas for a new 'exchange' (imagine a mapfile exchange, or a layer exchange wiki page) then please create a new wiki page! The old Wiki was quite popular and I'd like to see this Wiki instance be used thoroughly as well. thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From boesiii at yahoo.com Thu Jan 29 13:52:28 2009 From: boesiii at yahoo.com (boesiii) Date: Thu, 29 Jan 2009 13:52:28 -0800 (PST) Subject: [mapserver-users] Create a button for Query In-Reply-To: <50028.192.168.1.55.1233225345.squirrel@localhost.localdomain> References: <1233199519255-2236684.post@n2.nabble.com> <50028.192.168.1.55.1233225345.squirrel@localhost.localdomain> Message-ID: <1233265948681-2241517.post@n2.nabble.com> Thanks PG, I will give it a try. -- View this message in context: http://n2.nabble.com/Create-a-button-for-Query-tp2236684p2241517.html Sent from the Mapserver - User mailing list archive at Nabble.com. From death_knight0911 at yahoo.com Thu Jan 29 17:50:33 2009 From: death_knight0911 at yahoo.com (MeLv1n wAuRaN) Date: Thu, 29 Jan 2009 17:50:33 -0800 (PST) Subject: [mapserver-users] problem with raster data.. Message-ID: <680231.12776.qm@web54207.mail.re2.yahoo.com> hi all, right now i have 50 .TIF files (a whole map of my region) my question is, is it possible for mapserver to load 50 .TIF files all together as a basemap? because from the tutorial i read, the samples only load 1 raster file..so, i'm wondering if it's possible to load all the 50 TIF files to the same .MAP if not, then how do i merge all the TIF files into a single TIF? because when i load them all together in ArcMap it forms a whole map. for the information, i'm still a newbie...so i still need alot of advices from the experts. thanks for your help, Melvin -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Thu Jan 29 18:27:12 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Thu, 29 Jan 2009 21:27:12 -0500 Subject: [mapserver-users] problem with raster data.. In-Reply-To: <680231.12776.qm@web54207.mail.re2.yahoo.com> References: <680231.12776.qm@web54207.mail.re2.yahoo.com> Message-ID: <49826580.7060902@dmsolutions.ca> Hi Melvin, Using a tool such as gdaltindex (see http://www.gdal.org/gdaltindex.html and http://mapserver.org/optimization/tileindex.html#tileindex) you can create a shapefile tile index that will give MapServer the information it needs to use the required rasters for the current map extent. In the shapefile there will be one feature that is the bounding box of each raster file, and an attribute that contains the path to the raster that each feature represents. Christy MeLv1n wAuRaN wrote: > hi all, > > right now i have 50 .TIF files (a whole map of my region) my question > is, is it possible for mapserver to load 50 .TIF files all together as > a basemap? because from the tutorial i read, the samples only load 1 > raster file..so, i'm wondering if it's possible to load all the 50 TIF > files to the same .MAP > > if not, then how do i merge all the TIF files into a single TIF? > because when i load them all together in ArcMap it forms a whole map. > > for the information, i'm still a newbie...so i still need alot of > advices from the experts. > > thanks for your help, > Melvin > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From death_knight0911 at yahoo.com Thu Jan 29 18:59:22 2009 From: death_knight0911 at yahoo.com (MeLv1n wAuRaN) Date: Thu, 29 Jan 2009 18:59:22 -0800 (PST) Subject: [mapserver-users] problem with raster data.. In-Reply-To: <49826580.7060902@dmsolutions.ca> Message-ID: <324928.60639.qm@web54205.mail.re2.yahoo.com> Ok from the example: " gdaltindex doq_index.shp doq/*.tif " how do i include the different tif files? for example there are 3 .tif : 1. sample_1.tif 2. sample_2.tif 3. sample_3.tif location: c:\ms4w\data\raster\ how will the syntax look like when i create an index name sample_index? --- On Fri, 1/30/09, Christy Nieman wrote: From: Christy Nieman Subject: Re: [mapserver-users] problem with raster data.. To: death_knight0911 at yahoo.com Cc: mapserver-users at lists.osgeo.org Date: Friday, January 30, 2009, 10:27 AM Hi Melvin, Using a tool such as gdaltindex (see http://www.gdal.org/gdaltindex.html and http://mapserver.org/optimization/tileindex.html#tileindex) you can create a shapefile tile index that will give MapServer the information it needs to use the required rasters for the current map extent. In the shapefile there will be one feature that is the bounding box of each raster file, and an attribute that contains the path to the raster that each feature represents. Christy MeLv1n wAuRaN wrote: > hi all, > > right now i have 50 .TIF files (a whole map of my region) my question is, is it possible for mapserver to load 50 .TIF files all together as a basemap? because from the tutorial i read, the samples only load 1 raster file..so, i'm wondering if it's possible to load all the 50 TIF files to the same .MAP > > if not, then how do i merge all the TIF files into a single TIF? because when i load them all together in ArcMap it forms a whole map. > > for the information, i'm still a newbie...so i still need alot of advices from the experts. > > thanks for your help, > Melvin > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 SansonR at asurequality.com Thu Jan 29 18:23:07 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Fri, 30 Jan 2009 15:23:07 +1300 Subject: [mapserver-users] problem with raster data.. In-Reply-To: <680231.12776.qm@web54207.mail.re2.yahoo.com> References: <680231.12776.qm@web54207.mail.re2.yahoo.com> Message-ID: <49831B5A.379F.0037.0@asurequality.com> Hi Melvin Sure - create a TILEINDEX. gdal has a utility called gdaltindex to create it. This creates a Shapefile of the extents of each raster. You specify the name of this Shapefile in your Map file eg. LAYER NAME nz250ktm GROUP "Toposcans" TYPE RASTER STATUS ON TILEINDEX ../data/nztm/250k_index TILEITEM Location MAXSCALE 300000 MINSCALE 75000 METADATA "ows_title" "NZ 1:250k scale NZTM" "ows_abstract" "This layer came from scans of the LINZ NZMS262 series maps in NZ Map Grid projection re-projected to NZTM" "ows_keywordlist" "LINZ,TOPO" "wms_opaque" "1" "wms_group_title" "Toposcans" #"wms_group_abstract" "Topo layers" "wms_resx" "25" "wms_resy" "25" "ows_extent" "1073500 4734000 2102100 6224500" END END Cheers, Robert Sanson >>> MeLv1n wAuRaN 30/01/2009 2:50 p.m. >>> hi all, right now i have 50 .TIF files (a whole map of my region) my question is, is it possible for mapserver to load 50 .TIF files all together as a basemap? because from the tutorial i read, the samples only load 1 raster file..so, i'm wondering if it's possible to load all the 50 TIF files to the same .MAP if not, then how do i merge all the TIF files into a single TIF? because when i load them all together in ArcMap it forms a whole map. for the information, i'm still a newbie...so i still need alot of advices from the experts. thanks for your help, Melvin Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hazzard43 at fastmail.fm Thu Jan 29 22:47:01 2009 From: hazzard43 at fastmail.fm (hazzard43 at fastmail.fm) Date: Fri, 30 Jan 2009 17:47:01 +1100 Subject: [mapserver-users] Ruby Mapscript on Windows Message-ID: <1233298021.16700.1297560261@webmail.messagingengine.com> Does anybody have any advice on how to get Ruby Mapscript working on Windows (2003), or does anybody have any pre-compiled Windows Ruby bindings? I'm a bit stuck finding a working version. The MS4W package comes with C#, Java, PHP and Python bindings, but no Ruby, and I haven't been able to find any online. I've tried compiling my own copy of Mapserver using the Visual Studio .NET 2003 and the buildkit available at http://www.gatewaygeomatics.com/dl/buildkit/, and while I can manage a working copy of mapserv.exe I haven't been able to compile the Ruby bindings. I'm able to run 'ruby extconf.rb' and generate a makefile, but running 'nmake' gets me some function redefinition errors (for strnicmp and stricmp between string.h and mapserver.h). If anybody's either had any experience generating the Ruby bindings on Windows or has a precompiled set of files, any help would be appreciated. I can supply more detailed information about the environment or the errors if it'll help. Thanks, Peter -- hazzard43 at fastmail.fm -- http://www.fastmail.fm - I mean, what is it about a decent email service? From umberto.nicoletti at gmail.com Fri Jan 30 00:19:44 2009 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 30 Jan 2009 09:19:44 +0100 Subject: [mapserver-users] Ruby Mapscript on Windows In-Reply-To: <1233298021.16700.1297560261@webmail.messagingengine.com> References: <1233298021.16700.1297560261@webmail.messagingengine.com> Message-ID: <75b4b93e0901300019m4d0425ddgd1abb7df6b13dca7@mail.gmail.com> Peter, I have built the ruby bindings on linux lately, but never on Windows. Have you tried asking on the ms4w mailing list? Best regards, Umberto On Fri, Jan 30, 2009 at 7:47 AM, wrote: > Does anybody have any advice on how to get Ruby Mapscript working on > Windows (2003), or does anybody have any pre-compiled Windows Ruby > bindings? I'm a bit stuck finding a working version. The MS4W package > comes with C#, Java, PHP and Python bindings, but no Ruby, and I haven't > been able to find any online. I've tried compiling my own copy of > Mapserver using the Visual Studio .NET 2003 and the buildkit available > at http://www.gatewaygeomatics.com/dl/buildkit/, and while I can manage > a working copy of mapserv.exe I haven't been able to compile the Ruby > bindings. I'm able to run 'ruby extconf.rb' and generate a makefile, but > running 'nmake' gets me some function redefinition errors (for strnicmp > and stricmp between string.h and mapserver.h). > > If anybody's either had any experience generating the Ruby bindings on > Windows or has a precompiled set of files, any help would be > appreciated. I can supply more detailed information about the > environment or the errors if it'll help. > > Thanks, > > Peter > -- > > hazzard43 at fastmail.fm > > -- > http://www.fastmail.fm - I mean, what is it about a decent email service? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Espen.Messel at ffi.no Fri Jan 30 02:08:37 2009 From: Espen.Messel at ffi.no (Espen.Messel at ffi.no) Date: Fri, 30 Jan 2009 11:08:37 +0100 Subject: [mapserver-users] Accessing metadata from datafile in mapfile Message-ID: Hello. Is it possible to access metadata from the data file in a mapfile? We get data from variable sources and need to scale the colour lookup table with a metadata item from the data file. We tried to write the name of the metadata directly in the mapfile, but it didn't work. Look below in the EXPRESSION line in the mapfile. I have also added the output from the gdalinfo command. Regards, Espen Messel ------------------------------------------------------------------------ ---------------- LAYER NAME "radar" STATUS DEFAULT TYPE RASTER DUMP TRUE STATUS OFF DATA 'HDF5:"d:\\etc\data\norsa.ss.pcappi-1116-dbz.aeqd-1000.20080828T080038Z. hdf"://image1/data' METADATA "wms_extent" "5.706560 61.303028 15.411345 65.598137" "ows_include_items" "all" "ows_title" "radar" END CLASS EXPRESSION (([pixel]*[what:gain]) >= 64) COLOR 255 0 0 END +++ END ------------------------------------------------------------------------ ---------------- gdalinfo output Driver: HDF5/Hierarchical Data Format Release 5 Files: norsa.ss.pcappi-1116-dbz.aeqd-1000.20080828T080038Z.hdf Size is 512, 512 Coordinate System is `' Metadata: ..... what:gain=0.500000 what:offset=-31.500000 what:nodata=255.000000 ..... Subdatasets: SUBDATASET_0_NAME=HDF5:"norsa.ss.pcappi-1116-dbz.aeqd-1000.20080828T0800 38Z.hdf"://image1/data SUBDATASET_0_DESC=[480x480] //image1/data (8-bit unsigned character) Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 512.0) Upper Right ( 512.0, 0.0) Lower Right ( 512.0, 512.0) Center ( 256.0, 256.0) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Laurent.Saez at developpement-durable.gouv.fr Fri Jan 30 02:41:15 2009 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Fri, 30 Jan 2009 11:41:15 +0100 Subject: [mapserver-users] WMS client and layers using different CRS namespace prefix Message-ID: <20090130114115.24037hj3t2nqqfyj@agenor.equipement.gouv.fr> Hi list, I have a question about WMS Client behavior. I have already post this question in the OGC forum... but nobody answered ! I hope that someone of this MapServer Community has an opinion about it. In OpenGIS Implementation Specification documents, we can read : "Maps from multiples servers may be overlaid only if all the selected servers have at least one CRS in common". In France, IGN (Instut G?ographique National) has defined his own namespace to define french CRS by references. This namespace prefix is IGNF. For example, IGNF:LAMB93 references RGF93 - Lambert 93. My question is very simple ? Does a WMS client have to determine if CRS using different namespace prefixes are equivalent ? Confused E.g. IGNF:LAMB93 is equivalent to EPSG:2154. In this case, does a WMS client have to overlay layers in IGNF:LAMB93 and layers in EPSG:2154 ? Regards From dev at geoaspects.com Fri Jan 30 02:56:17 2009 From: dev at geoaspects.com (Geo Aspects Development) Date: Fri, 30 Jan 2009 11:56:17 +0100 Subject: [mapserver-users] Ruby Mapscript on Windows In-Reply-To: <1233298021.16700.1297560261@webmail.messagingengine.com> References: <1233298021.16700.1297560261@webmail.messagingengine.com> Message-ID: <2D234EDD-F200-4A6B-94EF-B91E211C4871@geoaspects.com> I have successfully built and used Ruby mapscript on OS X in the past. I seem to remember having similar (though not identical) problems, which I managed to resolve with a little perseverance. Unfortunately I never tried on Windows Tim On Jan 30, 2009, at 7:47 AM, hazzard43 at fastmail.fm wrote: > Does anybody have any advice on how to get Ruby Mapscript working on > Windows (2003), or does anybody have any pre-compiled Windows Ruby > bindings? I'm a bit stuck finding a working version. The MS4W package > comes with C#, Java, PHP and Python bindings, but no Ruby, and I > haven't > been able to find any online. I've tried compiling my own copy of > Mapserver using the Visual Studio .NET 2003 and the buildkit available > at http://www.gatewaygeomatics.com/dl/buildkit/, and while I can > manage > a working copy of mapserv.exe I haven't been able to compile the Ruby > bindings. I'm able to run 'ruby extconf.rb' and generate a makefile, > but > running 'nmake' gets me some function redefinition errors (for > strnicmp > and stricmp between string.h and mapserver.h). > > If anybody's either had any experience generating the Ruby bindings on > Windows or has a precompiled set of files, any help would be > appreciated. I can supply more detailed information about the > environment or the errors if it'll help. > > Thanks, > > Peter > -- > > hazzard43 at fastmail.fm > > -- > http://www.fastmail.fm - I mean, what is it about a decent email > service? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sadiqueshadab at gmail.com Fri Jan 30 03:21:31 2009 From: sadiqueshadab at gmail.com (MOHAMMED SADIQUE SHADAB) Date: Fri, 30 Jan 2009 16:51:31 +0530 Subject: [mapserver-users] regarding database connection in postgresql Message-ID: hi, i am new to FGSmapserver. i have created one sample mapfile which is NAME "object" SIZE 800 600 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "/opt/fgs/www/htdocs/db.html" IMAGEPATH "/opt/fgs/www/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "data" CONNECTIONTYPE POSTGIS NAME "syed" CONNECTION "user=postgres password= dbname=syed host=127.0.0.1 port=5432" DATA "type from geometry" STATUS ON TYPE POINT CLASS COLOR 229 100 225 END FEATURE END END END END END END END i am using POSTGRESQL for connecting the mapfile. when i run my mapfile it doesnot plot the point as we specified in the database please help me its Urgeeeeeeeent thanks Regards SHADAB -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpha88 at gmail.com Fri Jan 30 03:34:52 2009 From: rpha88 at gmail.com (rohan phatak) Date: Fri, 30 Jan 2009 16:04:52 +0430 Subject: [mapserver-users] opensource software for 3d gis Message-ID: hello friends, i am doing project on 3-d visualization using open source software. So do you know any software which can be display raster + vector + 3d data on it?? i am using open source because lot of people can see their data in 3d format. thanks in advance : ) From verusadomethildes at hotmail.com Fri Jan 30 03:34:33 2009 From: verusadomethildes at hotmail.com (Verusa Domethildes) Date: Fri, 30 Jan 2009 11:34:33 +0000 Subject: [mapserver-users] MapServer x Oracle 9i Message-ID: Hi!I'm beginning with MapServer.Does MapServer support Oracle 9i? I visited MapServer website and I just have information about Oracle 10g. Can you pass me some link about it to help me?Thanks in advance!Verusa ---------------------------------------- Verusa Domethildes----------------------------------------Analista de Sistemas ---------------------------------------- Res: (27) 3039-4283 Cel: (27) 9242-9778 ----------------------------------------"Temos que ser a transforma??o que queremos no mundo."Mahatma Gandhi _________________________________________________________________ Conhe?a o Windows Live Spaces, a rede de relacionamentos do Messenger! http://www.amigosdomessenger.com.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mirmatin at gmail.com Fri Jan 30 03:53:27 2009 From: mirmatin at gmail.com (MirMatin) Date: Fri, 30 Jan 2009 03:53:27 -0800 (PST) Subject: [mapserver-users] querybypoint a postgis db with php mapscript In-Reply-To: References: Message-ID: <1233316407917-2244449.post@n2.nabble.com> Hi Stefan, Did you get a work out of the problem. I am having the same problem and want to find some solution. Looking forward to your response Regards, Mir Matin Stefan Schwarzer wrote: > > Hi there, > > I guess there is something I am doing wrong. I think that since I > moved from shapefiles to postgis, my query (bypoint/byrect) doesn't > work anymore. Is there anything I have to change? I am kind of > frustrated, because if looked around everywhere to find the problem; > this issue has cost me hours over hours, but nothing in sight > > My code looks like this: > > //Set the layers status ON (b/c it might not be...) > $Layer -> set("status", 1); > > $ImgWidth = $map -> width; > $ImgHeight = $map -> height; > $x = (($ptX / $ImgWidth) * ($ext3 - $ext1)) + $ext1; > $y = $ext4 - (($ptY / $ImgHeight) * ($ext4 - $ext2)); > > $x1 = (($extent_px0 / $ImgWidth) * ($ext3 - $ext1)) + $ext1; > $y1 = $ext4 - (($extent_px1 / $ImgHeight) * ($ext4 - $ext2)); > $x2 = (($extent_px2 / $ImgWidth) * ($ext3 - $ext1)) + $ext1; > $y2 = $ext4 - (($extent_px3 / $ImgHeight) * ($ext4 - $ext2)); > > $click_pt = ms_newPointObj(); > $click_pt -> setXY($x, $y); > > $click_rt = ms_newRectObj(); > $click_rt -> setextent($x1, $y2, $x2, $y1); > > > //Query the Map at the point clicked > if (!$imgbox) > $a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); > else > $a = $map -> queryByRect($click_rt); > > > > > > > And my mapfile like this: > > LAYER > NAME floods_killed > STATUS ON > CONNECTIONTYPE postgis > CONNECTION 'user=xxx password=xxx dbname=xxxx' > TYPE POLYGON > DATA "the_geom FROM > ( > SELECT > c.the_geom, > c.name, > COALESCE(d.value, -9999) AS value, > d.id_country AS uid > FROM > floods_killed AS d > RIGHT JOIN > countries AS c ON c.id = d.id_country > WHERE > d.year_start = 2007 AND > c.id = d.id_country > ) AS foo USING UNIQUE uid USING srid=4326" > LABELITEM value > CLASSITEM 'value' > CLASS > NAME '' > EXPRESSION ([value]=-10001) > TEMPLATE 'empty space' > END # CLASS > CLASS > NAME 'Units: Number of People' > EXPRESSION ([value]=-110003) > TEMPLATE 'units as title in legend' > END # CLASS > > > Thanks for any hints! > > Stef > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/querybypoint-a-postgis-db-with-php-mapscript-tp1971499p2244449.html Sent from the Mapserver - User mailing list archive at Nabble.com. From srph124 at yahoo.com Fri Jan 30 04:14:16 2009 From: srph124 at yahoo.com (Saka Royban) Date: Fri, 30 Jan 2009 04:14:16 -0800 (PST) Subject: [mapserver-users] opensource software for 3d gis References: Message-ID: <566642.31738.qm@web58201.mail.re3.yahoo.com> check gvSIG pal. and of course GRASS with its powerful 3D display and analysis ________________________________ From: rohan phatak To: mapserver-users at lists.osgeo.org Sent: Friday, January 30, 2009 3:04:52 PM Subject: [mapserver-users] opensource software for 3d gis hello friends, i am doing project on 3-d visualization using open source software. So do you know any software which can be display raster + vector + 3d data on it?? i am using open source because lot of people can see their data in 3d format. thanks in advance : ) _______________________________________________ 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 Fri Jan 30 04:32:22 2009 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Fri, 30 Jan 2009 07:32:22 -0500 Subject: [mapserver-users] problem with raster data.. In-Reply-To: <324928.60639.qm@web54205.mail.re2.yahoo.com> References: <324928.60639.qm@web54205.mail.re2.yahoo.com> Message-ID: <4982F356.3030008@dmsolutions.ca> Melvin, The syntax is: gdaltindex /name_of_tile_index/.shp /location_of_rasters /So, for your example, the syntax would look something like: gdaltindex sample_index.shp c:\ms4w\data\raster\*.tif Regards, Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca Phone: 613-565-5056 x12 MeLv1n wAuRaN wrote: > > Ok from the example: " gdaltindex doq_index.shp doq/*.tif " how do i > include the different tif files? > > for example there are 3 .tif : 1. sample_1.tif > 2. sample_2.tif > 3. sample_3.tif > > location: c:\ms4w\data\raster\ > > how will the syntax look like when i create an index name sample_index? > > > > > --- On *Fri, 1/30/09, Christy Nieman //* wrote: > > From: Christy Nieman > Subject: Re: [mapserver-users] problem with raster data.. > To: death_knight0911 at yahoo.com > Cc: mapserver-users at lists.osgeo.org > Date: Friday, January 30, 2009, 10:27 AM > > Hi > Melvin, > > Using a tool such as gdaltindex (see http://www.gdal.org/gdaltindex.html and > http://mapserver.org/optimization/tileindex.html#tileindex) you can create a > shapefile tile index that will give MapServer the information it needs to use > the required rasters for the current map extent. In the shapefile there will be > one feature that is the bounding box of each raster file, and an attribute that > contains the path to the raster that each feature represents. > > Christy > > MeLv1n wAuRaN wrote: > > hi all, > > > > right now i have 50 .TIF files (a whole map of my region) my question is, > is it possible for mapserver to load 50 .TIF files all together as a basemap? > because from the tutorial i read, the samples only load 1 raster file..so, > i'm wondering if it's possible to load all the 50 TIF files to the same > .MAP > > > > if not, then how do i merge all the TIF files into a single TIF? > because > when i load them all together in ArcMap it forms a whole map. > > > > for the information, i'm still a newbie...so i still need alot of > advices from the experts. > > > > thanks for your help, > > Melvin > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 adube at mapgears.com Fri Jan 30 05:31:02 2009 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 30 Jan 2009 08:31:02 -0500 Subject: [mapserver-users] Problem with transparency overlays In-Reply-To: <128785280901290717o7c33b53vce1e86f02e1d1454@mail.gmail.com> References: <128785280901290717o7c33b53vce1e86f02e1d1454@mail.gmail.com> Message-ID: <49830116.2050704@mapgears.com> Hi Rafael, Here's what the doc has to say about the TRANSPARENT option in the MAP object : <<< TRANSPARENT [on|off] Use FORMATOPTION ?TRANSPARENT=ON? in the /OUTPUTFORMAT/ declaration to specify if the output images should be transparent. Deprecated since version 4.6. >>> So you should use OUTPUTFORMAT, for example like this : <<< OUTPUTFORMAT NAME "agg" MIMETYPE "image/png" DRIVER AGG/PNG EXTENSION "png" IMAGEMODE RGBA TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END >>> (the above example uses the AGG driver) Then, in your Openlayers layer's definition, use this param : roads = new OpenLayers.Layer.MapServer( "Roads", "http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", {layers: 'us_roads', map_imagetype: 'agg'}, {isBaseLayer:false}); The "transparent" option has no effects on a Layer.MapServer. It would have on a Layer.WMS though. Be sure to look at the OUTPUTFORMAT documentation to pick the right image type you want to use. Hope this helps, Alexandre Rafael chac?n wrote: > Hi, I'm having some trouble with transparency layers appear/disappear. > I'm working with MapServer and Openlayers... I want two layers to > overlay but when I choose to show one the other one hides... Here is > some of my code.... Thanks for the help :) > > Mapserver File: > > MAP > size 800 600 > imagetype 'gif' > TRANSPARENT ON > imagecolor 0 0 255 > extent -180 -90 180 90 > SYMBOLSET "symbols" > PROJECTION > "init=epsg:4269" > END > > WEB > IMAGEPATH "/var/www/apache2-default/gis_tests/tmp/" > IMAGEURL "/apache2-default/gis_tests/tmp/" > TEMPLATE "empty.html" > > metadata > wms_title "us_states" > wms_srs "EPSG:4269" > end > end > > > _______ > > OPenlayers: > > layer = new OpenLayers.Layer.MapServer( "Estados unidos", > "http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", > {layers: 'us_states', 'format':'image/png'}); > roads = new OpenLayers.Layer.MapServer( "Roads", > "http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", > {layers: 'us_roads',transparent: 'true', 'format':'image/png'}, > {isBaseLayer:false}); > gps = new OpenLayers.Layer.MapServer( "GPS", > "http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", > {layers: 'gps_points', transparent: 'true', 'format':'image/png' }, > {isBaseLayer:false}); > > roads.setVisibility(false); > gps.setVisibility(false); > > > -- > Rafael Chacon, > > "El hombre es la medida de todas las cosas". Protagoras > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From umn-ms at hydrotec.de Fri Jan 30 06:19:53 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Fri, 30 Jan 2009 15:19:53 +0100 Subject: [mapserver-users] MapServer x Oracle 9i In-Reply-To: Message-ID: Hi We used Mapserver with Oracle9 and Oracle10. I cannot remember any problems which emerged by the the Oracle-version. You should obey http://mapserver.org/input/vector/oracle.html?highlight=oracle#additional-keywords-version Bye Benedikt Rothe mapserver-users-bounces at lists.osgeo.org schrieb am 30.01.2009 12:34:33: > > Hi! > > I'm beginning with MapServer. > > Does MapServer support Oracle 9i? I visited MapServer website and I > just have information about Oracle 10g. Can you pass me some link > about it to help me? > > Thanks in advance! > > Verusa > ---------------------------------------- > [Bild entfernt] Verusa Domethildes > ---------------------------------------- > Analista de Sistemas > ---------------------------------------- > Res: (27) 3039-4283 > Cel: (27) 9242-9778 > ---------------------------------------- > > "Temos que ser a transforma??o que queremos no mundo." > Mahatma Gandhi > > > > > Conhe?a j? o Windows Live Spaces, o site de relacionamentos do Messenger! > Crie j? o seu!_______________________________________________ > 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 amiyapatra188 at gmail.com Fri Jan 30 06:30:27 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Fri, 30 Jan 2009 20:00:27 +0530 Subject: [mapserver-users] plz urgent regarding relative path Message-ID: Hi all Can anyone tell me please "the path of image (gif or png file) in symbol file is relative to what?" (2) imagepath of WEB is relative to what?(in map file) (3) image of REFERENCE is relative to what?(") Thank you in advance Amiya -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Jan 30 07:12:51 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 30 Jan 2009 08:12:51 -0700 Subject: [mapserver-users] opensource software for 3d gis In-Reply-To: References: Message-ID: <498318F3.7000301@geoanalytic.com> Have a look at VTP: http://www.vterrain.org/ rohan phatak wrote: > hello friends, > i am doing project on 3-d visualization using open source software. So > do you know any software which can be display raster + vector + 3d > data on it?? i am using open source because lot of people can see > their data in 3d format. > thanks in advance : ) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gwaldron at gmail.com Fri Jan 30 07:29:25 2009 From: gwaldron at gmail.com (Glenn Waldron) Date: Fri, 30 Jan 2009 10:29:25 -0500 Subject: [mapserver-users] opensource software for 3d gis In-Reply-To: References: Message-ID: <70fbea790901300729m1e60d783r2c8f64a89734f83b@mail.gmail.com> Rohan, We maintain a couple open source projects for 3D/GIS visualization: http://osgearth.org http://osggis.org Plans are in the works to web/js-enable some of this technology as well. Hope this helps. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Fri, Jan 30, 2009 at 6:34 AM, rohan phatak wrote: > hello friends, > i am doing project on 3-d visualization using open source software. So > do you know any software which can be display raster + vector + 3d > data on it?? i am using open source because lot of people can see > their data in 3d format. > thanks in advance : ) > _______________________________________________ > 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 skinny2 at netins.net Fri Jan 30 08:12:19 2009 From: skinny2 at netins.net (Kirk Webb) Date: Fri, 30 Jan 2009 10:12:19 -0600 Subject: [mapserver-users] pixmap not showing up Message-ID: I am trying to incorporate a pixmap so that I have a transparent tiled logo over my map. My .sym file is located at: /usr/local/apache2/htdocs/mapserver/symbols/pixmap_symbols.sym and the code is: SYMBOL NAME "logo" TYPE PIXMAP IMAGE "logo.png" TRANSPARENT 0 END and my map layer in my mapfile is: ######PIXMAP Logo###### LAYER NAME "logo" STATUS DEFAULT TYPE point CLASS STYLE COLOR 255 255 0 END STYLE SYMBOL "logo" COLOR 0 255 0 OUTLINECOLOR 0 0 0 END # class END END I am getting the layers in my map to show up but nothing of the pixmap logo. Does anyone see anything wrong? Thanks From naci0002 at umn.edu Fri Jan 30 15:14:28 2009 From: naci0002 at umn.edu (Perry Nacionales) Date: Fri, 30 Jan 2009 17:14:28 -0600 Subject: [mapserver-users] plz urgent regarding relative path In-Reply-To: References: Message-ID: <498389D4.3020807@umn.edu> Did you check the mapfile reference? http://www.mapserver.org/introduction.html#introduction-to-the-mapfile http://www.mapserver.org/mapfile/index.html#mapfile You can probably also find what you're looking for here: http://biometry.gis.umn.edu/tutorial/sections.html -Perry Amiya Patra wrote: > Hi > all > > Can anyone tell me please "the path of image (gif or png file) in > symbol file is relative to what?" > (2) imagepath of WEB is relative to what?(in map file) > (3) image of REFERENCE is relative to what?(") > > > Thank you in advance > > Amiya > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Fri Jan 30 16:05:27 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 31 Jan 2009 01:05:27 +0100 Subject: [mapserver-users] Support for rendering INLINE layers with layer attributes (items) Message-ID: Folks, I've prepared a patch to implement a support for using the attributes of the inline features when rendering the layer (eg. for supporting LABELITEM and CLASSITEM or attribute bindings) The item names have to be specified by using a PROCESSING parameter as follows: LAYER NAME "INLINE" TYPE POINT PROCESSING "ITEMS=item1,item2,item3" FEATURE POINTS -0.2 51.5 END END END Though it haven't been addressed, we might also want to add new keywords to set the values of the features explicitly or use the TEXT parameter to split a comma separated list into the values in case if "PROCESSING ITEMS=" is specified, like: FEATURE POINTS -0.2 51.5 END TEXT "value1;value2;value2" END The corresponding ticket along with the patch can be found here: http://trac.osgeo.org/mapserver/ticket/2870 Let me know if we can proceed with this to add it for 5.4. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Fri Jan 30 17:11:58 2009 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 30 Jan 2009 17:11:58 -0800 (PST) Subject: [mapserver-users] opensource software for 3d gis In-Reply-To: Message-ID: <298488.36595.qm@web33205.mail.mud.yahoo.com> Hi, Try OpenDX, or the VTK libraries for full 3D & interactive/animated capabilities. GMT can draw nice 3D maps, but is not interactive, but scripted. GRASS has nviz, & there are other packages like viz5D. Conventional raster images used with GIS are not 3D, so you need to drape them over a 3D object. http://www.opendx.org http://www.vtk.org http://gmt.soest.hawaii.edu http://grass.itc.it/ http://www.ssec.wisc.edu/~billh/vis5d.html / http://vis5d.sourceforge.net/ Cheers, Brent --- On Sat, 1/31/09, rohan phatak wrote: > From: rohan phatak > Subject: [mapserver-users] opensource software for 3d gis > To: mapserver-users at lists.osgeo.org > Date: Saturday, January 31, 2009, 12:34 AM > hello friends, > i am doing project on 3-d visualization using open source > software. So > do you know any software which can be display raster + > vector + 3d > data on it?? i am using open source because lot of people > can see > their data in 3d format. > thanks in advance : ) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From percyd at pdx.edu Sat Jan 31 00:26:41 2009 From: percyd at pdx.edu (percy) Date: Sat, 31 Jan 2009 00:26:41 -0800 Subject: [mapserver-users] missing symbol file on mapserver.org In-Reply-To: References: Message-ID: <49840B41.2080005@pdx.edu> There's a broken link on http://www.mapserver.org/mapfile/symbology/construction.html The symbol file which is referenced throughout the document is missing: http://www.mapmedia.de/dokumente/umn_signaturen_howto/vortrag_demo.zip Arnulf appears to be on travel, so I thought I'd toss it out here. I could use some better polygon fills, and some of those look pretty good! :-) Thanks, Percy -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From percyd at pdx.edu Sat Jan 31 00:28:00 2009 From: percyd at pdx.edu (percy) Date: Sat, 31 Jan 2009 00:28:00 -0800 Subject: [mapserver-users] broken link for cartographic symbols In-Reply-To: <18869.145.50.39.11.1233231294.squirrel@webmail.hostingdiscounter.nl> References: <18869.145.50.39.11.1233231294.squirrel@webmail.hostingdiscounter.nl> Message-ID: <49840B90.4090603@pdx.edu> Oops, I just posted the same error! :-) bartvde at osgis.nl wrote: > Hi list, > > just wanted to report that the link to the example symbolset from > Cartographic Symbol Construction with Mapserver > (http://mapserver.org/mapfile/symbology/construction.html) is broken. > > i.e.: > http://www.mapmedia.de/dokumente/umn_signaturen_howto/vortrag_demo.zip > > is broken. Would be nice if it could be fixed since this is still very > much useful material. > > Best regards, > Bart > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From ml at lingner.eu Sat Jan 31 00:39:38 2009 From: ml at lingner.eu (Lars Lingner) Date: Sat, 31 Jan 2009 09:39:38 +0100 Subject: [mapserver-users] missing symbol file on mapserver.org In-Reply-To: <49840B41.2080005@pdx.edu> References: <49840B41.2080005@pdx.edu> Message-ID: <49840E4A.7040103@lingner.eu> percy schrieb: > There's a broken link on > http://www.mapserver.org/mapfile/symbology/construction.html > > The symbol file which is referenced throughout the document is missing: > http://www.mapmedia.de/dokumente/umn_signaturen_howto/vortrag_demo.zip > The new URL is http://www.mapmedia.de/fileadmin/user_upload/dokumente/umn_signaturen_howto/ vortrag_demo.zip So for other link you have to replace http://www.mapmedia.de/dokumente/umn_signaturen_howto/ with http://www.mapmedia.de/fileadmin/user_upload/dokumente/umn_signaturen_howto/ Lars From cemre.yilmaz at gmail.com Sat Jan 31 06:47:18 2009 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Sat, 31 Jan 2009 16:47:18 +0200 Subject: [mapserver-users] map server wms request Message-ID: <28babe2b0901310647x576034f6r3a6092204f7461b5@mail.gmail.com> Hello everybody; I am trying to learn how WMS working with cmpatible with MapServer. So I set up MapServer OGC workshop package. But I have a problem when I want to send WMS Get capabilities request, there is a wndow asking me if I want to save mapserv.exe or run it. In mapserver documnetation there is written that problem can be solved by *"You could con?gure your web browser to handle the application/vnd.ogc.wms_xml MIME type a certain way (i.e.open in Notepad, etc.)." * *What should I do for configuring my browser? If you know please write me as soon as possible it is very urgent for me.* *Thanks Cemre Y. ** * -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Jan 31 07:40:24 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 31 Jan 2009 10:40:24 -0500 Subject: [mapserver-users] missing symbol file on mapserver.org In-Reply-To: <49840E4A.7040103@lingner.eu> References: <49840B41.2080005@pdx.edu> <49840E4A.7040103@lingner.eu> Message-ID: <498470E8.3010107@gatewaygeomatics.com> Lars Lingner wrote: > > The new URL is > http://www.mapmedia.de/fileadmin/user_upload/dokumente/umn_signaturen_howto/ > vortrag_demo.zip > > So for other link you have to replace > > http://www.mapmedia.de/dokumente/umn_signaturen_howto/ > > with > > http://www.mapmedia.de/fileadmin/user_upload/dokumente/umn_signaturen_howto/ > > Thanks Lars and Percy, I have committed the changes for the links in the document. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From arnd.wippermann at web.de Sat Jan 31 07:25:30 2009 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Sat, 31 Jan 2009 16:25:30 +0100 Subject: AW: [mapserver-users] map server wms request In-Reply-To: <28babe2b0901310647x576034f6r3a6092204f7461b5@mail.gmail.com> Message-ID: Hi, there is nothing wrong. Save mapserv.exe and open the file with an ascii editor (notepad) by yourself. The contents should be the GetCapabilities document or if something failed an error message. The configuration of the browser only allows you to open the document immediately without saving the response of your request. But the result is the same. Arnd Wippermann _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von cemre yilmaz Gesendet: Samstag, 31. Januar 2009 15:47 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] map server wms request Hello everybody; I am trying to learn how WMS working with cmpatible with MapServer. So I set up MapServer OGC workshop package. But I have a problem when I want to send WMS Get capabilities request, there is a wndow asking me if I want to save mapserv.exe or run it. In mapserver documnetation there is written that problem can be solved by "You could con?gure your web browser to handle the application/vnd.ogc.wms_xml MIME type a certain way (i.e.open in Notepad, etc.)." What should I do for configuring my browser? If you know please write me as soon as possible it is very urgent for me. Thanks Cemre Y. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaframe at net-yan.com Sat Jan 31 08:55:41 2009 From: jaframe at net-yan.com (Tony Frame) Date: Sun, 1 Feb 2009 00:55:41 +0800 Subject: [mapserver-users] Problem with transparency overlays References: <128785280901290717o7c33b53vce1e86f02e1d1454@mail.gmail.com> <49830116.2050704@mapgears.com> Message-ID: If you're using IE6 you'll probably need to add 'alpha:true' as a layer option to get the browser to handle transparent png images. ie change .... {isBaseLayer:false}); to .... {isBaseLayer:false, alpha:true}); Regards Tony ----- Original Message ----- From: "Alexandre Dube" To: "Rafael chac?n" Cc: Sent: Friday, 30 January, 2009 9:31 PM Subject: Re: [mapserver-users] Problem with transparency overlays > Hi Rafael, > > Here's what the doc has to say about the TRANSPARENT option in the MAP > object : > > <<< > TRANSPARENT [on|off] > > Use FORMATOPTION ?TRANSPARENT=ON? in the /OUTPUTFORMAT/ > > declaration to specify if the output images should be transparent. > > Deprecated since version 4.6. > > >>> > > So you should use OUTPUTFORMAT, for example like this : > > <<< > OUTPUTFORMAT > NAME "agg" > MIMETYPE "image/png" > DRIVER AGG/PNG > EXTENSION "png" > IMAGEMODE RGBA > TRANSPARENT ON > FORMATOPTION "INTERLACE=OFF" > END > >>> > (the above example uses the AGG driver) > > Then, in your Openlayers layer's definition, use this param : > roads = new OpenLayers.Layer.MapServer( "Roads", > "http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", > {layers: 'us_roads', map_imagetype: 'agg'}, {isBaseLayer:false}); > > The "transparent" option has no effects on a Layer.MapServer. It would > have on a Layer.WMS though. > > Be sure to look at the OUTPUTFORMAT documentation to pick the right image > type you want to use. > > Hope this helps, > > Alexandre > > Rafael chac?n wrote: >> Hi, I'm having some trouble with transparency layers appear/disappear. >> I'm working with MapServer and Openlayers... I want two layers to overlay >> but when I choose to show one the other one hides... Here is some of my >> code.... Thanks for the help :) >> >> Mapserver File: >> >> MAP >> size 800 600 >> imagetype 'gif' >> TRANSPARENT ON >> imagecolor 0 0 255 >> extent -180 -90 180 90 >> SYMBOLSET "symbols" >> PROJECTION >> "init=epsg:4269" >> END >> >> WEB >> IMAGEPATH "/var/www/apache2-default/gis_tests/tmp/" >> IMAGEURL "/apache2-default/gis_tests/tmp/" >> TEMPLATE "empty.html" >> >> metadata >> wms_title "us_states" >> wms_srs "EPSG:4269" >> end >> end >> >> >> _______ >> >> OPenlayers: >> >> layer = new OpenLayers.Layer.MapServer( "Estados unidos", >> "http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", >> {layers: 'us_states', 'format':'image/png'}); >> roads = new OpenLayers.Layer.MapServer( "Roads", >> "http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", >> {layers: 'us_roads',transparent: 'true', 'format':'image/png'}, >> {isBaseLayer:false}); >> gps = new OpenLayers.Layer.MapServer( "GPS", >> "http://192.168.1.100/cgi-bin/mapserv?map=us_states.map", >> {layers: 'gps_points', transparent: 'true', 'format':'image/png' }, >> {isBaseLayer:false}); >> >> roads.setVisibility(false); >> gps.setVisibility(false); >> >> >> -- >> Rafael Chacon, >> >> "El hombre es la medida de todas las cosas". Protagoras >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 > > From crschmidt at metacarta.com Sat Jan 31 10:37:31 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Sat, 31 Jan 2009 13:37:31 -0500 Subject: [mapserver-users] Problem with transparency overlays In-Reply-To: References: <128785280901290717o7c33b53vce1e86f02e1d1454@mail.gmail.com> <49830116.2050704@mapgears.com> Message-ID: <20090131183731.GA27951@metacarta.com> On Sun, Feb 01, 2009 at 12:55:41AM +0800, Tony Frame wrote: > If you're using IE6 you'll probably need to add 'alpha:true' as a layer > option to get the browser to handle transparent png images. > > ie change .... {isBaseLayer:false}); > > to .... {isBaseLayer:false, alpha:true}); Due to performance problems in this mode, using this workaround is not recommend with OpenLayers. Regards, -- Christopher Schmidt MetaCarta From tibben at OCF.Berkeley.EDU Sat Jan 31 12:45:33 2009 From: tibben at OCF.Berkeley.EDU (Tim Norris) Date: Sat, 31 Jan 2009 12:45:33 -0800 Subject: [mapserver-users] label FOLLOW and OFFSET Message-ID: <4984B86D.50602@ocf.berkeley.edu> Hi all, I have been playing with the FOLLOW label directive. What I am trying to achieve is a label that follows the street that is also OFFSET so that the label does not land on the line for the street, but instead 'above' it. Below is the LABEL directives that I am using, but note that I have also tried using the POSITION UC as well as the OFFSET 0 -6, but both give the same results. Please see the attached JPG image, you can see that 'M PARDO' is correct but that 'JR JUNIN' is not. LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT ArialBold SIZE 7 ANTIALIAS TRUE ANGLE FOLLOW PARTIALS FALSE MINFEATURESIZE 40 MINDISTANCE 50 OFFSET 0 -6 BUFFER 7 END Any ideas as to why this is not working? I took a quick look in maplabel.c, but could not see anything obvious . . . thanks tim Tim Norris -------------- next part -------------- A non-text attachment was scrubbed... Name: example.jpg Type: image/jpeg Size: 27236 bytes Desc: not available URL: From woodbri at swoodbridge.com Sat Jan 31 12:55:16 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 31 Jan 2009 15:55:16 -0500 Subject: [mapserver-users] label FOLLOW and OFFSET In-Reply-To: <4984B86D.50602@ocf.berkeley.edu> References: <4984B86D.50602@ocf.berkeley.edu> Message-ID: <4984BAB4.1080906@swoodbridge.com> Sorry Tim, OFFSET is not support with ANGLE FOLLOW -Steve W Tim Norris wrote: > Hi all, > > I have been playing with the FOLLOW label directive. What I am trying to > achieve is a label that follows the street that is also OFFSET so that > the label does not land on the line for the street, but instead 'above' > it. Below is the LABEL directives that I am using, but note that I have > also tried using the POSITION UC as well as the OFFSET 0 -6, but both > give the same results. Please see the attached JPG image, you can see > that 'M PARDO' is correct but that 'JR JUNIN' is not. > > LABEL > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT ArialBold > SIZE 7 > ANTIALIAS TRUE > ANGLE FOLLOW > PARTIALS FALSE > MINFEATURESIZE 40 > MINDISTANCE 50 > OFFSET 0 -6 > BUFFER 7 > END > > Any ideas as to why this is not working? I took a quick look in > maplabel.c, but could not see anything obvious . . . > > thanks > tim > > Tim Norris > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users

Contador Nombre Categor?a Superficie Fecha declaraci?n M?s informaci?n Superficie geodb Per?metro
[lrn] [ENP_NOMBRE] [ENP_CAT] [HECTAREAS] [ENP_FECHA] [LINK] [SHAPE_AREA] [SHAPE_LEN]