Re: [mapserver-users] changing rendered color of layer dynamically?
The solution didn't work for me. This is my url: http://localhost/cgi-bin/mapserv?MAP=india_states.mapTRANSPARENT=trueLAYERS=india_statesmap.layer[india_states].class[ANDHRA%20PRADESH].style[0].color+255+0+0FORMAT=image%2Fpng; PROJECTION=EPSG%3A4326REPROJECT=falseUNITS=mSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimage SRS=EPSG%3A900913BBOX=8305796.97063,1252337.1900454492,9558141.24182,2504681.4612454493WIDTH=256HEIGHT=256 I get his error: getSymbol(): Symbol definition error. Parsing error near ([):(line 1) . Is there anything wrong in my url? Thanks for any help. Subha Steve Lime wrote: Nikos: There can be more than one style in a class to you'd need the array notation there too: map.layer[oikismoi].class[oikismoi].style[0].color+230+34+35 Does that work? Steve ni...@maich.gr 10/06/08 8:18 AM Hello all, I've been scratching my head as to how to change the color that a layer maybe rendered via a form. My users want to select which color the layers should be rendered. Would appreciate a bit of insite. I'm using FW MS 5.1-dev I've tried, according to the docs, using layer and class names as well as layer and class index and neither work... map.layer[oikismoi].class[oikismoi].style.color+230+34+35 map.layer[0].class[0].style.color+230+34+35 In MS 4.something, I used to use map_layer_0_class_0_color=255+0+0 successfully I've also tried to use something like CLASS # layer color change EXPRESSION '%layer_color%' style backgroundcolor 128 128 128 color 2 2 220 outlinecolor 150 150 150 end END to at least statically test a substitution, but fail... below is a snip from my mapfile, sincerely, nikos LAYER debug 5 classitem OBJECTID data LANDUNIT_KARDITSA footer LANDUNIT_KARDITSA_footer.html group LANDUNIT_KARDITSA header LANDUNIT_KARDITSA_header.html labelcache on labelitem OBJECTID name LANDUNIT_KARDITSA postlabelcache true status on type polygon OPACITY 70 # 1 class LANDUNIT_KARDITSA class name KARDITSA style backgroundcolor 128 128 128 #color 133 234 21 color 22 200 22 outlinecolor 50 50 50 end template LANDUNIT_KARDITSA_query.html end end LAYER DEBUG 5 classitem OBJECTID data oikismoi footer oikismoi_footer.html group oikismoi header oikismoi_header.html labelcache on labelitem OBJECTID name oikismoi postlabelcache true status on type polygon # 1 class oikismoi class name oikismoi style backgroundcolor 0 128 128 color 22 122 233 outlinecolor 0 0 0 end template oikismoi_query.html end end ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS
Hello Steve, Mapserver fails by just scanning the mapfile. Did fetch the 5.4_rc1 and installed it. But same behaviour as with the 5.4_beta. /usr/lib/cgi-bin/mapserv -v MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [Thu Apr 9 08:13:06 2009].548952 loadHashTable(): Unknown identifier. Parsing error near (FILTER):(line 128) [Thu Apr 9 08:13:06 2009].549088 msFreeMap(): freeing map at 0x18c51b0. Did cut and paste your filter suggestion into the Mapfile but same result. I'am back in the office on 15th of April. Thanks for your effort. Regards Heiko LAYER NAME 'psc' ... VALIDATION filter '^orbitnr=[0-9]{1,5}$' END ... END You can set a far more general pattern (e.g. '.' matches anything) but I recommend against it. The corrected MAPFILE: MAP NAME WELT CONFIG MS_ERRORFILE /tmp/ms_error.txt DEBUG 5 STATUS ON #SIZE 647 320 SIZE 800 400 IMAGETYPE PNG24 IMAGECOLOR 240 240 240 SHAPEPATH data #EXTENT -180 -89.8 180 83.623596 EXTENT -180 -90 180 90 UNITS DD WEB IMAGEPATH images IMAGEURL images MINSCALE 5 MAXSCALE 4 METADATA wms_title Example WMS Server wms_onlineresource http://kahlo1/cgi-bin/mapserv?map=heiko1.map; wms_srs epsg:4326 epsg:32661 epsg:32761 epsg:4308 epsg:3413 epsg:3575 epsg:0815 epsg:0816 END END PROJECTION init=epsg:4326 END snipremoved not needed layers for readabilitysnap LAYER NAME PSC CONNECTIONTYPE POSTGIS OPACITY 30 STATUS ON METADATA wms_title psc END PROJECTION init=epsg:4326 END CONNECTION user=foo password=fum dbname=fei host=kahlo1 DATA geocenter from scia_psc VALIDATION FILTER '.' --- Line 128 END FILTER orbitnr=3456 TYPE POINT CLASS COLOR 250 10 10 SYMBOL circle SIZE 7 END END # Layer END # Ende Map ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Generating a symbol with a fixed size
Hello everybody, I'm using mapserver v4.10 and I'm trying to display a circle symbol that has a fixed radius (in meters) that shows the coverage area over a map. The main problem is setting the radius so it would change and cover the same area with different zoom levels (more clearly - I want the radius to be 40m independent of the zoom selected). Is it possible to do with mapserver? The data (points) where I want to draw this symbol is available as an ESRI shapefile layer (as POINT data). Thanks in advance, -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Layer Object Parameter Substitution fromURLusing GIS
Hi Heiko: I'm thinking this is a problem with the snippet I sent you. Because MapServer is tokenizing the content of the VALIDATION block it's sees the word FILTER as a keyword that isn't allow in that block. The fix is to simply quote any validation keys that are keywords so the block becomes: VALIDATION 'filter' '^orbitnr=[0-9]{1,5}$' END I've tested on my end and things are ok. Steve Heiko Schröter schro...@iup.physik.uni-bremen.de 04/09/09 1:38 AM Hello Steve, Mapserver fails by just scanning the mapfile. Did fetch the 5.4_rc1 and installed it. But same behaviour as with the 5.4_beta. /usr/lib/cgi-bin/mapserv -v MapServer version 5.4.0-rc1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE [Thu Apr 9 08:13:06 2009].548952 loadHashTable(): Unknown identifier. Parsing error near (FILTER):(line 128) [Thu Apr 9 08:13:06 2009].549088 msFreeMap(): freeing map at 0x18c51b0. Did cut and paste your filter suggestion into the Mapfile but same result. I'am back in the office on 15th of April. Thanks for your effort. Regards Heiko LAYER NAME 'psc' ... VALIDATION filter '^orbitnr=[0-9]{1,5}$' END ... END You can set a far more general pattern (e.g. '.' matches anything) but I recommend against it. The corrected MAPFILE: MAP NAME WELT CONFIG MS_ERRORFILE /tmp/ms_error.txt DEBUG 5 STATUS ON #SIZE 647 320 SIZE 800 400 IMAGETYPE PNG24 IMAGECOLOR 240 240 240 SHAPEPATH data #EXTENT -180 -89.8 180 83.623596 EXTENT -180 -90 180 90 UNITS DD WEB IMAGEPATH images IMAGEURL images MINSCALE 5 MAXSCALE 4 METADATA wms_title Example WMS Server wms_onlineresource http://kahlo1/cgi-bin/mapserv?map=heiko1.map; wms_srs epsg:4326 epsg:32661 epsg:32761 epsg:4308 epsg:3413 epsg:3575 epsg:0815 epsg:0816 END END PROJECTION init=epsg:4326 END snipremoved not needed layers for readabilitysnap LAYER NAME PSC CONNECTIONTYPE POSTGIS OPACITY 30 STATUS ON METADATA wms_title psc END PROJECTION init=epsg:4326 END CONNECTION user=foo password=fum dbname=fei host=kahlo1 DATA geocenter from scia_psc VALIDATION FILTER '.' --- Line 128 END FILTER orbitnr=3456 TYPE POINT CLASS COLOR 250 10 10 SYMBOL circle SIZE 7 END END # Layer END # Ende Map ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] changing rendered color of layer dynamically?
Versions 5+ use syntax like: map.layer[india_states].class[ANDHRA%20PRADESH].style[0]=COLOR+255+0+0 There was a typo in my old message. Since you're doing WMS you could/should use SLD. Steve Subha Ramakrishnan su...@gslab.com 04/09/09 1:02 AM The solution didn't work for me. This is my url: http://localhost/cgi-bin/mapserv?MAP=india_states.mapTRANSPARENT=trueLAYERS=india_statesmap.layer[india_states].class[ANDHRA%20PRADESH].style[0].color+255+0+0FORMAT=image%2Fpng; PROJECTION=EPSG%3A4326REPROJECT=falseUNITS=mSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimage SRS=EPSG%3A900913BBOX=8305796.97063,1252337.1900454492,9558141.24182,2504681.4612454493WIDTH=256HEIGHT=256 I get his error: getSymbol(): Symbol definition error. Parsing error near ([):(line 1) . Is there anything wrong in my url? Thanks for any help. Subha Steve Lime wrote: Nikos: There can be more than one style in a class to you'd need the array notation there too: map.layer[oikismoi].class[oikismoi].style[0].color+230+34+35 Does that work? Steve ni...@maich.gr 10/06/08 8:18 AM Hello all, I've been scratching my head as to how to change the color that a layer maybe rendered via a form. My users want to select which color the layers should be rendered. Would appreciate a bit of insite. I'm using FW MS 5.1-dev I've tried, according to the docs, using layer and class names as well as layer and class index and neither work... map.layer[oikismoi].class[oikismoi].style.color+230+34+35 map.layer[0].class[0].style.color+230+34+35 In MS 4.something, I used to use map_layer_0_class_0_color=255+0+0 successfully I've also tried to use something like CLASS # layer color change EXPRESSION '%layer_color%' style backgroundcolor 128 128 128 color 2 2 220 outlinecolor 150 150 150 end END to at least statically test a substitution, but fail... below is a snip from my mapfile, sincerely, nikos LAYER debug 5 classitem OBJECTID data LANDUNIT_KARDITSA footer LANDUNIT_KARDITSA_footer.html group LANDUNIT_KARDITSA header LANDUNIT_KARDITSA_header.html labelcache on labelitem OBJECTID name LANDUNIT_KARDITSA postlabelcache true status on type polygon OPACITY 70 # 1 class LANDUNIT_KARDITSA class name KARDITSA style backgroundcolor 128 128 128 #color 133 234 21 color 22 200 22 outlinecolor 50 50 50 end template LANDUNIT_KARDITSA_query.html end end LAYER DEBUG 5 classitem OBJECTID data oikismoi footer oikismoi_footer.html group oikismoi header oikismoi_header.html labelcache on labelitem OBJECTID name oikismoi postlabelcache true status on type polygon # 1 class oikismoi class name oikismoi style backgroundcolor 0 128 128 color 22 122 233 outlinecolor 0 0 0 end template oikismoi_query.html end end ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Generating a symbol with a fixed size
You can use the CLASS parameter SIZEUNITS to do this. For example: LAYER ... SIZEUNITS METERS CLASS ... SYMBOL 'circle' SIZE 40 END END I think that's right. Steve Adrian Popa adrian_gh.p...@romtelecom.ro 04/09/09 3:26 AM Hello everybody, I'm using mapserver v4.10 and I'm trying to display a circle symbol that has a fixed radius (in meters) that shows the coverage area over a map. The main problem is setting the radius so it would change and cover the same area with different zoom levels (more clearly - I want the radius to be 40m independent of the zoom selected). Is it possible to do with mapserver? The data (points) where I want to draw this symbol is available as an ESRI shapefile layer (as POINT data). Thanks in advance, -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WFS layer and https
I'm trying to use a WFS that is coming from a SSL (https) server. Is it possible to use a WFS from an https connection? Here is the error I am getting. HTML HEADTITLEMapServer Message/TITLE/HEAD !-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- BODY BGCOLOR=#FF msDrawMap(): Image handling error. Failed to draw layer named #39;obs#39;. msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -60 downloading WFS layer obs msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 60 (SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed) for https://www.sharedgeo.org/datasets/RRV/maps/noaa/noaa.map?mode=owsamp;; amp;REQUEST=GetFeatureamp;VERSION=1.0.0amp;SERVICE=WFSamp;TYPENAME=ob samp;BBOX=346334.183773962,5034450.028,903297.375226037,5434570.553 /BODY/HTML Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfisc...@houstoneng.com mailto:bfisc...@houstonengineeringinc.com Website: www.houstoneng.com http://www.houstonengineeringinc.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WFS layer and https
Brian, You need the servers certificate in your cURL certificate directory. Where to put it, I think, depends on your OS. The default in the Unix OS¹s is /usr/share/ssl/certs. Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 4/9/09 10:09 AM, Fischer, Brian bfisc...@houstoneng.com wrote: I¹m trying to use a WFS that is coming from a SSL (https) server. Is it possible to use a WFS from an https connection? Here is the error I am getting. HTML HEADTITLEMapServer Message/TITLE/HEAD !-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- BODY BGCOLOR=#FF msDrawMap(): Image handling error. Failed to draw layer named #39;obs#39;. msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -60 downloading WFS layer obs msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 60 (SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed) for https://www.sharedgeo.org/datasets/RRV/maps/noaa/noaa.map?mode=owsamp;amp;RE QUEST=GetFeatureamp;VERSION=1.0.0amp;SERVICE=WFSamp;TYPENAME=obsamp;BBOX=3 46334.183773962,5034450.028,903297.375226037,5434570.553 /BODY/HTML Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfisc...@houstoneng.com mailto:bfisc...@houstonengineeringinc.com Website: www.houstoneng.com http://www.houstonengineeringinc.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapServer 5.4 Release Candidate 1 Now Available
The link on the download page is messed up. I had to go to download.osgeo.org/mapserver to download. On Apr 8, 2009, at 7:55 PM, Steve Lime wrote: Greetings all: MapServer 5.4 Release Candidate 1 is now available for download at http://mapserver.org/download.html. Only a couple of trivial changes were made since the beta 4 release. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. The updated 5.4 release plan can be found at: http://trac.osgeo.org/mapserver/wiki/54ReleasePlan Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] WFS layer and https
Thanks Mike. We actually narrowed it down to a problem with MS4W. It appears that MS4W's libcurl does not include the root certificate authority bundle. I'll need to file a bug with MS4W. Thanks again for your help. Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 From: Michael Smith [mailto:michael.sm...@usace.army.mil] Sent: Thursday, April 09, 2009 9:31 AM To: Fischer, Brian; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] WFS layer and https Brian, You need the servers certificate in your cURL certificate directory. Where to put it, I think, depends on your OS. The default in the Unix OS's is /usr/share/ssl/certs. Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 4/9/09 10:09 AM, Fischer, Brian bfisc...@houstoneng.com wrote: I'm trying to use a WFS that is coming from a SSL (https) server. Is it possible to use a WFS from an https connection? Here is the error I am getting. HTML HEADTITLEMapServer Message/TITLE/HEAD !-- MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- BODY BGCOLOR=#FF msDrawMap(): Image handling error. Failed to draw layer named #39;obs#39;. msWFSLayerWhichShapes(): WFS connection error. Got HTTP status -60 downloading WFS layer obs msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 60 (SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed) for https://www.sharedgeo.org/datasets/RRV/maps/noaa/noaa.map?mode=owsamp;; amp;REQUEST=GetFeatureamp;VERSION=1.0.0amp;SERVICE=WFSamp;TYPENAME=ob samp;BBOX=346334.183773962,5034450.028,903297.375226037,5434570.553 /BODY/HTML Thanks, Brian Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfisc...@houstoneng.com mailto:bfisc...@houstonengineeringinc.com Website: www.houstoneng.com http://www.houstonengineeringinc.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Highlight
Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] RE: Highlight
Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit moreafter I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users@lists.osgeo.org' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Help in Fedora Linux
Hi... I build a websig in Linux Ubuntu and now i'm trying to do the same in Linux Fedora but i having a few problems. SELinux is preventing the write of the images in the tmp folder. How i solve this? Thanks -- Rui Gomes ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] RE: Highlight
Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map-drawQuery(); header('Content-Type: image/jpeg'); $img-saveImage(); On 4/9/09 1:31 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit moreafter I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users@lists.osgeo.org' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP MapScript inserting extra parameters into.map file
The display of the data still works, however the altered .map file is no longer compatible with the OpenLayers wiki print.php code (http://trac.openlayers.org/wiki/Printing). I can't figure out why. My TileCache layers will still print but any layers coming from the PHP MapScript-edited map file no longer work. print.php doesn't throw any errors, the requested tiles all look valid, but the return is 500 Unexpected Error and Some unexpected error occurred. Error text was: with no error text. The relevant bits from my map file: MAP EXTENT -180 -90 180 90 FONTSET /var/www/html/maps/fontset.txt IMAGECOLOR 60 100 145 IMAGETYPE png SYMBOLSET /var/www/html/maps/symbols.sym SHAPEPATH data SIZE 500 500 STATUS ON UNITS DD NAME My map OUTPUTFORMAT NAME PNG24 DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png FORMATOPTION INTERLACE=OFF END PROJECTION init=epsg:4326 END ... MAP More is being changed by PHP MapScript than I realized, my OUTPUTFORMAT block becomes: OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GD/PNG EXTENSION png IMAGEMODE PC256 TRANSPARENT FALSE END The layer that I am dynamically changing starts as: LAYER NAME arrow TYPE POLYGON PROJECTION init=epsg:4326 END METADATA wms_title arrow END DATA shapefiles/arrow STATUS ON TRANSPARENCY ALPHA CLASS STYLE ANTIALIAS TRUE COLOR 255 0 0 OUTLINECOLOR 0 0 0 END ## Style END ## Class END ## Layer and after PHP MapScript runs looks like: LAYER DATA shapefiles/arrow METADATA wms_title arrow END NAME arrow PROJECTION init=epsg:4326 END STATUS ON OPACITY ALPHA TYPE POLYGON UNITS METERS CLASS STYLE ANGLE 360 ANTIALIAS TRUE COLOR 255 0 0 OPACITY 100 OUTLINECOLOR 0 0 0 SYMBOL 0 END END END PHP MapScript is changing the OUTPUTFORMAT configuration (including deleting the FORMATOPTION INTERLACE=OFF parameter I need for TileCache), adding UNITS METERS, STYLE ANGLE 360 OPACITY 100 END to each LAYER, as well as changing TRANSPARENCY ALPHA to OPACITY ALPHA for each LAYER in the map. I realize that the anti-aliasing syntax I am using is deprecated and may change that but I'm going to ask again for what I put in my enhancement request ticket yesterday: Through a flag, configuration, directive, etc for PHP MapScript, enable it to ONLY change the parameters supplied in the script, and not alter/add/remove additional map parameters. Thank you, Ian On Wed, Apr 8, 2009 at 3:42 PM, Steve Lime steve.l...@dnr.state.mn.us wrote: All that's happening is MapServer is writing the default values for some of the parameters. The mapfile before and after should be functionally equivalent. Not sure how that would wreak havoc. Your input mapfile is using older syntax (no styles) that the mapfile writer can't/won't produce. So at a minimum you'd see the style block as output. Steve ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] RE: Highlight
Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map-drawQuery(); header('Content-Type: image/jpeg'); $img-saveImage(); On 4/9/09 1:31 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit moreafter I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users@lists.osgeo.orgmapserver-users@lists.osgeo.org' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] RE: Highlight
Or a string variable containing a comma-delimited list of the ID numbers that you really want? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, April 09, 2009 3:31 PM To: 'Moen, Paul T.'; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Thanks for your response... $qlayer-queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); Is the 1, 2,7,9,23,87 examples of PID values, if so I assume that these can be replaced with variables? Thanks again From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map-$map-getLayerByName(NAME OF PARCEL LAYER); $qlayer-queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map-drawQuery(); header('Content-Type: image/jpeg'); $img-saveImage(); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map-drawQuery(); header('Content-Type: image/jpeg'); $img-saveImage(); On 4/9/09 1:31 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit moreafter I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] RE: Highlight
That's what I was figuringright now I have some code that is in a while loop building the table from the query... I think maybe here I can build a list of PID values that can be sent to a PHP page Once at the PHP page I can then write code that will highlight the features in the map based off of the Parcels Shapefile... Does that make sense? Is that feasible??? Something like this? THANKS ?php $conn=odbc_connect('PDS_Access_db','',''); switch ($varPropertyFactor) { case 'lessthan': $sql_str=SELECT * FROM dbo_DISPLAY_RESIDENTIAL_CHARS WHERE Dwelling_Type = '$varPropertyType' AND FF_GBA $varPriceArea ORDER BY PID; //echo $sql_str; break; } $rs=odbc_exec($conn,$sql_str); if (!$conn) {exit(Connection Failed: . $conn);} if (!$rs) {exit(Error in SQL);} while (odbc_fetch_row($rs)) { $PID=odbc_result($rs,1); $AssessmentYr=odbc_result($rs,2); $YrBuilt=odbc_result($rs,109); $Bedrooms=odbc_result($rs,116); $DwellingType=odbc_result($rs,8); $Style=odbc_result($rs,7); $Construction=odbc_result($rs,10); $Exterior=odbc_result($rs,11); $RoofType=odbc_result($rs,14); $Air=odbc_result($rs,19); $GarageCars=odbc_result($rs,29); $SqFootage=odbc_result($rs,142); $Electric=odbc_result($rs,48); $Heating=odbc_result($rs,49); $Path=odbc_result($rs,147); $Image=odbc_result($rs,149); $Print=odbc_result($rs,150); echo tbody class='scrollContent bodyFormat' style='height:160px;' tr class='alternateRow' td align=Center$PID/td td align=Center$AssessmentYr/td td align=Center$YrBuilt/td td align=Center$Bedrooms/td td align=Centernbsp $DwellingType nbsp/td td align=Centernbsp $Style nbsp/td td align=Centerstronga href='$Path' target='main'Map/a/strong/td td align=Centerstronga href='$Print' target='_blank'Print/a/strong/td td align=Centera href='javascript:Map.itemQueryLayer('Highlight', 'Parcels', 'PID', '$PID', '/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); Map.zoomToViewString(([shpminx]-100)+','+([shpminy]-100)+','+([shpmaxx]+100)+','+([shpmaxy]+100))'img src='../shared/images/view.png' border='0' title='Click to Zoom Map to PID'/a/td /tr /tbody ; BUILD THE COMMA DELIMITED LIST RIGHT HERE } // end while AFTER ALL HAVE BEEN SELECTED and THE LIST BUILT SEND THE LIST TO ANOTHER PHP PAGE TO HANDLE THE HIGHLIGHTING OF THE FEATURES ? From: Fawcett, David [mailto:david.fawc...@state.mn.us] Sent: Thursday, April 09, 2009 3:34 PM To: Jay Kapalczynski; Moen, Paul T.; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Or a string variable containing a comma-delimited list of the ID numbers that you really want? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, April 09, 2009 3:31 PM To: 'Moen, Paul T.'; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Thanks for your response... $qlayer-queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); Is the 1, 2,7,9,23,87 examples of PID values, if so I assume that these can be replaced with variables? Thanks again From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map-$map-getLayerByName(NAME OF PARCEL LAYER); $qlayer-queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map-drawQuery(); header('Content-Type: image/jpeg'); $img-saveImage(); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and
RE: [mapserver-users] RE: Highlight
Thanks for your response... $qlayer-queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); Is the 1, 2,7,9,23,87 examples of PID values, if so I assume that these can be replaced with variables? Thanks again From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map-$map-getLayerByName(NAME OF PARCEL LAYER); $qlayer-queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map-drawQuery(); header('Content-Type: image/jpeg'); $img-saveImage(); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file and have the records returned from the query (database)...what would I have to do next to take those records and run a query to highlight the parcels (PID to PID)? Can all of this be accomplished in the PHP file? Thanks...and sorry for my ignorance... From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 1:57 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight Set the mapfile QUERYMAP style to highlight http://mapserver.org/mapfile/querymap.html. Draw the map using drawQuery() instead of draw(). $img = $map-drawQuery(); header('Content-Type: image/jpeg'); $img-saveImage(); On 4/9/09 1:31 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: Basically what I have is a query that runs on a shapefile... It returns the records into a table, which I then have the option to zoom to. I am looking for a bit moreafter I run the query (php) I want the returned records to highlight in the map... I can get the Unique identifier but don't know if I can write some code in PHP to highlight those features I don't even know where to start here... The query and returning records into the table, as well as, the zoom to work great...just need the highlight part Thanks From: Jay Kapalczynski Sent: Thursday, April 09, 2009 1:03 PM To: 'mapserver-users@lists.osgeo.orgmapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org ' Subject: Highlight Any way to highlight a feature in my map in PHP? I can grab a unique identifier but can figure out how to highlight it... THanks Paul Paul ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] RE: Highlight
Yes, that looks feasible. On 4/9/09 3:49 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: That's what I was figuringright now I have some code that is in a while loop building the table from the query... I think maybe here I can build a list of PID values that can be sent to a PHP page Once at the PHP page I can then write code that will highlight the features in the map based off of the Parcels Shapefile... Does that make sense? Is that feasible??? Something like this? THANKS ?php $conn=odbc_connect('PDS_Access_db','',''); switch ($varPropertyFactor) { case 'lessthan': $sql_str=SELECT * FROM dbo_DISPLAY_RESIDENTIAL_CHARS WHERE Dwelling_Type = '$varPropertyType' AND FF_GBA $varPriceArea ORDER BY PID; //echo $sql_str; break; } $rs=odbc_exec($conn,$sql_str); if (!$conn) {exit(Connection Failed: . $conn);} if (!$rs) {exit(Error in SQL);} while (odbc_fetch_row($rs)) { $PID=odbc_result($rs,1); $AssessmentYr=odbc_result($rs,2); $YrBuilt=odbc_result($rs,109); $Bedrooms=odbc_result($rs,116); $DwellingType=odbc_result($rs,8); $Style=odbc_result($rs,7); $Construction=odbc_result($rs,10); $Exterior=odbc_result($rs,11); $RoofType=odbc_result($rs,14); $Air=odbc_result($rs,19); $GarageCars=odbc_result($rs,29); $SqFootage=odbc_result($rs,142); $Electric=odbc_result($rs,48); $Heating=odbc_result($rs,49); $Path=odbc_result($rs,147); $Image=odbc_result($rs,149); $Print=odbc_result($rs,150); echo tbody class='scrollContent bodyFormat' style='height:160px;' tr class='alternateRow' td align=Center$PID/td td align=Center$AssessmentYr/td td align=Center$YrBuilt/td td align=Center$Bedrooms/td td align=Centernbsp $DwellingType nbsp/td td align=Centernbsp $Style nbsp/td td align=Centerstronga href='$Path' target='main'Map/a/strong/td td align=Centerstronga href='$Print' target='_blank'Print/a/strong/td td align=Centera href='javascript:Map.itemQueryLayer('Highlight', 'Parcels', 'PID', '$PID', '/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); Map.zoomToViewString(([shpminx]-100)+','+([shpminy]-100)+','+([shpmaxx]+100)+','+([shpmaxy]+100))'img src='../shared/images/view.png' border='0' title='Click to Zoom Map to PID'/a/td /tr /tbody ; BUILD THE COMMA DELIMITED LIST RIGHT HERE } // end while AFTER ALL HAVE BEEN SELECTED and THE LIST BUILT SEND THE LIST TO ANOTHER PHP PAGE TO HANDLE THE HIGHLIGHTING OF THE FEATURES ? From: Fawcett, David [mailto:david.fawc...@state.mn.us] Sent: Thursday, April 09, 2009 3:34 PM To: Jay Kapalczynski; Moen, Paul T.; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Or a string variable containing a comma-delimited list of the ID numbers that you really want? David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, April 09, 2009 3:31 PM To: 'Moen, Paul T.'; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] RE: Highlight Thanks for your response... $qlayer-queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); Is the 1, 2,7,9,23,87 examples of PID values, if so I assume that these can be replaced with variables? Thanks again From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Moen, Paul T. Sent: Thursday, April 09, 2009 3:15 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] RE: Highlight If the database that you are querying has the same attributes as the shape file, you can query the Layer that points to the shape file and display the highlighted results on your map. I know nothing about GeoMOOSE but I know it can be done with php-mapscript. Regardless of what you are using, you need a map file layer for the shape file with the parcels. You will then need to use php-mapscript to query that layer with something like $map = ms_newMapObj(PATH TO YOU MAPFILE); $qlayer = $map-$map-getLayerByName(NAME OF PARCEL LAYER); $qlayer-queryByAttributes('PID','PID IN (1, 2,7,9,23,87)',MS_MULTIPLE); You will then need to create the output image from query using something like $img = $map-drawQuery(); header('Content-Type: image/jpeg'); $img-saveImage(); I can't give you specifics without knowing how GeoMOOSE works, so the best thing is to look at the documentation for GeoMOOSE if that is what you are using. On 4/9/09 2:17 PM, Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us wrote: Dang I misspoke...I am sorry... I am querying a Database for records, these records have a PID (unique Number). These are the records that show up in the Table. As this happens I have to take the results and run the query against the parcels to get the features in the Shapefile, then highlight.. If that makes any sense... If I am in a PHP file
[mapserver-users] msIO_getStdoutBufferBytes(), gdBuffer in mapscript perl
Hi, i'm trying to implement a wms server with a perl api of mapscript but i cannot understand how msIO_getStdoutBufferBytes() work in the docs msIO_getStdoutBufferBytes() function return the binary content of the current output but i cannot see that, when i dump with Data::Dump::Streamer i got: - $_p_gdBuffer1 = bless( \do { my $v = 152646680 }, '_p_gdBuffer' ); I go to read the sources of the mapscript perl implementation and i found a struct with properties data and size, but i cannot get that i got that when i try to dump data. - Can't locate object method data via package _p_gdBuffer at /home/counter/mscacherd/maptest.pl line 36. How it works in perl, how i can get the data from the gdBuffer perl class? Thanks in advice. Greetings Felipe ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: msIO_getStdoutBufferBytes(), gdBuffer in mapscript perl
sorry, i forget that: This is the version i use, i'm on gentoo linux Perl use mapscript; Perl print mapscript::msGetVersion(); MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE1 Perl print mapscript::msGetVersionInt(); 51 Perl exit ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapServer Arctic Sea Ice Cover
A MapServer web site of interest: US Army Cold Regions Research Engineering Lab Ice Mass Balance web site. Movement of sea ice is monitored by sensors on buoys and locations are plotted using MapServer. No snazzy interface here - just a lot of interesting data. http://imb.crrel.usace.army.mil/ You can read about the buoys here: http://imb.crrel.usace.army.mil/buoyinst.htm -joel ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] error loading php_mapscript.so on apache start
I am able to dynamically load php_mapscript.so successfully on apache/fedora (latest versions of everything.). However, trying to load the module at apache startup (by adding it to httpd.conf, LoadModule.) fails with the following error: Cannot load /etc/httpd/modules/php_mapscript.so into server: /etc/httpd/modules/php_mapscript.so: undefined symbol: convert_to_double I tried placing the module in its default directory (/usr/lib/php/modules), but this also didn't work. Why am I possibly receiving this error? What should I do to correct this, and be able to load php_mapscript when apache starts? Please help, Thanks, P.Romero ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] error loading php_mapscript.so on apache start
However, trying to load the module at apache startup (by adding it to httpd.conf, “LoadModule…”) fails with the following error: That's because php_mapscript.so is not an Apache module, it is a PHP module. If you want to load the php_mapscript module automatically when Apache starts, you need to load it from php.ini -S ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users