From j.l.h.hartmann at uva.nl Wed Sep 1 03:23:49 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 01 Sep 2010 12:23:49 +0200 Subject: [mapserver-users] FastCGI, MapServer and Apache on Linux In-Reply-To: <4C7DE91A.7040001@gatewaygeomatics.com> References: <1283283889.4278.191.camel@onotta624248.agr.gc.ca> <4C7DE91A.7040001@gatewaygeomatics.com> Message-ID: <4C7E29B5.4040402@uva.nl> Are there any benchmarks for a comparison between MapServer CGI and MapServer FastCGI? Jan On 09/01/10 07:48, Jeff McKenna wrote: > On 10-08-31 9:44 PM, Nicolas Chenier wrote: >> Good day all, >> >> I am fairly new at this, and I am seeking help. >> >> We are currently using a MapServer setup with Apache on Linux, supported >> by Tilecache. >> >> Due to the growing number of maps and tiles, we need to cut back on >> caching as we are running out of disk space to store the tilecache. >> >> We would like to use FastCGI to generate tiles on the fly with >> MapServer, Apache and our SDE db connection, all running on Linux. >> >> I am looking for the optimal way to get this setup, using the latest >> Mapserver release with Apache2. >> >> Is there an easy step-by-step guide on getting this setup? I have been >> searching through the web, the mapserver wiki and mailing list >> without luck. >> >> I am simply looking for the optimal FastCGI configuration settings, >> along with deployment instructions from scratch... doesn't have to be >> too detailed but just an outline of how we should proceed... Does >> anything need to be recompiled with FastCGI support, etc etc... >> >> I really appreciate the help. >> > > Hello, > > You will find instructions on this at: > http://www.mapserver.org/optimization/fastcgi.html > > If, during your MapServer/FastCGI travels, you have additional notes > to add to the documentation, it would be great if you could file a > ticket on MapServer Trac and record your additional notes there > (http://trac.osgeo.org/mapserver/) - if you do not have a login, > create one at: https://www.osgeo.org/cgi-bin/ldap_create_user.py > > Happy travels. > > -jeff > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Sep 1 03:35:33 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 01 Sep 2010 12:35:33 +0200 Subject: [mapserver-users] FastCGI, MapServer and Apache on Linux In-Reply-To: <4C7E29B5.4040402@uva.nl> References: <1283283889.4278.191.camel@onotta624248.agr.gc.ca> <4C7DE91A.7040001@gatewaygeomatics.com> <4C7E29B5.4040402@uva.nl> Message-ID: <4C7E2C75.1090304@gatewaygeomatics.com> On 10-09-01 12:23 PM, Jan Hartmann wrote: > Are there any benchmarks for a comparison between MapServer CGI and > MapServer FastCGI? > Yes, see the graphs included in last year's FOSS4G WMS benchmarking exercise: http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From j.l.h.hartmann at uva.nl Wed Sep 1 04:11:26 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 01 Sep 2010 13:11:26 +0200 Subject: [mapserver-users] FastCGI, MapServer and Apache on Linux In-Reply-To: <4C7E2C75.1090304@gatewaygeomatics.com> References: <1283283889.4278.191.camel@onotta624248.agr.gc.ca> <4C7DE91A.7040001@gatewaygeomatics.com> <4C7E29B5.4040402@uva.nl> <4C7E2C75.1090304@gatewaygeomatics.com> Message-ID: <4C7E34DE.6040701@uva.nl> Yes, the differences are significant: FastCGI seems to give speed improvements from 20 to 100 %. I never guessed it would be that much: I thought the Operating System itself cached the MapServer CGI program between calls as part of its swapping policy, but FastCGI does this way better. Jan On 09/01/10 12:35, Jeff McKenna wrote: > On 10-09-01 12:23 PM, Jan Hartmann wrote: >> Are there any benchmarks for a comparison between MapServer CGI and >> MapServer FastCGI? >> > > Yes, see the graphs included in last year's FOSS4G WMS benchmarking > exercise: > http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout > > -jeff > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorn at spacetec.no Wed Sep 1 06:47:00 2010 From: jorn at spacetec.no (=?utf-8?q?J=C3=B8rn_Vegard_R=C3=B8snes?=) Date: Wed, 1 Sep 2010 15:47:00 +0200 Subject: [mapserver-users] Problem with SOS, works as WMS Message-ID: <201009011547.01047.jorn@spacetec.no> Hi all, I have a layer that works as WMS, e.g the points are plotted in map, but SOS gives an empty ObservationCollection (no filtering in my SOS GetObservation URL). I use shapefile as input, for the first time. What could be the problem? SOS URL http://server.com/cgi-bin/gms?version=1.0.0&service=SOS&request=GetObservation&responseFormat=text/xml; %20subtype=om/1.0.0&offering=track2&observedproperty=track2 WMS URL http://server.com/cgi-bin/gms?Layers=Vessels_Positions_2010_06_26-12_26_35,gshhs&service=WMS&request=getmap&WIDTH=512&HEIGHT=512&BBOX=48.0,0,52.0,3.0&bgcolor=0xffffff&VERSION=1.1.1&FORMAT=image/jpeg&SRS=EPSG:4326 LAYER NAME "Vessels_Positions_2010_06_26-12_26_35" TYPE POINT STATUS on DEBUG 5 DUMP TRUE DATA "Vessels_Positions_2010_06_26-12_26_35" CLASS NAME "Vessels20100626122635" TEXT ([mmsi]([name])) LABEL WRAP "%" COLOR 0 0 0 #SHADOWCOLOR 218 218 218 #SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial SIZE 9 ANTIALIAS TRUE POSITION CC PARTIALS false MINDISTANCE 65000 BUFFER 4 END # end of label COLOR 0 128 0 END PROJECTION "init=epsg:4326" END METADATA # "sos_title" "track2" ## title "sos_offering_id" "track2" ## id of offering "sos_procedure" "track2" ## a sensor unique id "sos_observedproperty_id" "track2" ## id of observed property "sos_describesensor_url" "http://server.com/sostest/xml/ifgi-sensor-1.xml" ## REQUIRED # "sos_srs" "epsg:4326" # "sos_offering_timeextent" "20070530T1800Z" # "sos_timeitem" "datepos" # gml_include_items 'all' # wms_include_items 'all' END END grinfo -al Vessels_Positions_2010_06_26-10_11_42.shp INFO: Open of `Vessels_Positions_2010_06_26-10_11_42.shp' using driver `ESRI Shapefile' successful. Layer name: Vessels_Positions_2010_06_26-10_11_42 Geometry: Point Feature Count: 33 Extent: (49.756611, -3.212502) - (50.422119, -1.975762) Layer SRS WKT: (unknown) name: String (18.0) mmsi: Real (11.0) type: Real (11.0) flag: String (2.0) lenght: Real (24.15) datepos: String (25.0) speed: Real (24.15) course: Real (24.15) elapsed: Real (24.15) source: String (13.0) OGRFeature(Vessels_Positions_2010_06_26-10_11_42):0 name (String) = mmsi (Real) = type (Real) = 9 flag (String) = MT lenght (Real) = 40.000000000000000 datepos (String) = 2010-06-26T22:11:42+02:00 speed (Real) = 29.000000000000000 course (Real) = 257.000000000000000 elapsed (Real) = 1.000000000000000 source (String) = marinetraffic POINT (50.406910000000003 -1.975762) cheers J?rn Vegard From nicolas.chenier at agr.gc.ca Wed Sep 1 07:43:13 2010 From: nicolas.chenier at agr.gc.ca (Nicolas Chenier) Date: Wed, 01 Sep 2010 10:43:13 -0400 Subject: [mapserver-users] FastCGI, MapServer and Apache on Linux In-Reply-To: <4C7DE91A.7040001@gatewaygeomatics.com> References: <1283283889.4278.191.camel@onotta624248.agr.gc.ca> <4C7DE91A.7040001@gatewaygeomatics.com> Message-ID: <1283352193.4278.204.camel@onotta624248.agr.gc.ca> Thank you Jeff! So you mean to tell me that this old tutorial is still the baseline for FastCGI w/ Mapserver and Apache? This was written a while back, and seems to be specific to Apache 1.3... Does anyone know of any modifications that need to be done for Apache httpd 2.2? Any other/new optimizations to the fastCGI settings? Thanks, Nic On Wed, 2010-09-01 at 07:48 +0200, Jeff McKenna wrote: > On 10-08-31 9:44 PM, Nicolas Chenier wrote: > > Good day all, > > > > I am fairly new at this, and I am seeking help. > > > > We are currently using a MapServer setup with Apache on Linux, supported > > by Tilecache. > > > > Due to the growing number of maps and tiles, we need to cut back on > > caching as we are running out of disk space to store the tilecache. > > > > We would like to use FastCGI to generate tiles on the fly with > > MapServer, Apache and our SDE db connection, all running on Linux. > > > > I am looking for the optimal way to get this setup, using the latest > > Mapserver release with Apache2. > > > > Is there an easy step-by-step guide on getting this setup? I have been > > searching through the web, the mapserver wiki and mailing list without luck. > > > > I am simply looking for the optimal FastCGI configuration settings, > > along with deployment instructions from scratch... doesn't have to be > > too detailed but just an outline of how we should proceed... Does > > anything need to be recompiled with FastCGI support, etc etc... > > > > I really appreciate the help. > > > > Hello, > > You will find instructions on this at: > http://www.mapserver.org/optimization/fastcgi.html > > If, during your MapServer/FastCGI travels, you have additional notes to > add to the documentation, it would be great if you could file a ticket > on MapServer Trac and record your additional notes there > (http://trac.osgeo.org/mapserver/) - if you do not have a login, create > one at: https://www.osgeo.org/cgi-bin/ldap_create_user.py > > Happy travels. > > -jeff > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Wed Sep 1 07:46:33 2010 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 01 Sep 2010 10:46:33 -0400 Subject: [mapserver-users] FastCGI, MapServer and Apache on Linux In-Reply-To: <1283352193.4278.204.camel@onotta624248.agr.gc.ca> Message-ID: Nic, In the 2010 benchmarking effort, we are using mod_fcgid with the latest Apache. Here are the fcgi parameters we have in our conf file FcgidInitialEnv LD_LIBRARY_PATH /usr/lib64:/usr/lib:/usr/local/lib:/opt/mapserverfull/lib:/oracle/instantcli ent_11_2:/opt/mapserver/lib FcgidMinProcessesPerClass 0 FcgidIdleScanInterval 1 FcgidProcessLifeTime 10 FcgidIOTimeout 100 FcgidMinProcessesPerClass 0 Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GIS Center Hanover, NH On 9/1/10 10:43 AM, "Nicolas Chenier" wrote: > Thank you Jeff! > > So you mean to tell me that this old tutorial is still the baseline for > FastCGI w/ Mapserver and Apache? This was written a while back, and seems to > be specific to Apache 1.3... Does anyone know of any modifications that need > to be done for Apache httpd 2.2? Any other/new optimizations to the fastCGI > settings? > > Thanks, > > Nic > > > > On Wed, 2010-09-01 at 07:48 +0200, Jeff McKenna wrote: >> >> On 10-08-31 9:44 PM, Nicolas Chenier wrote: >>> > Good day all, >>> > >>> > I am fairly new at this, and I am seeking help. >>> > >>> > We are currently using a MapServer setup with Apache on Linux, supported >>> > by Tilecache. >>> > >>> > Due to the growing number of maps and tiles, we need to cut back on >>> > caching as we are running out of disk space to store the tilecache. >>> > >>> > We would like to use FastCGI to generate tiles on the fly with >>> > MapServer, Apache and our SDE db connection, all running on Linux. >>> > >>> > I am looking for the optimal way to get this setup, using the latest >>> > Mapserver release with Apache2. >>> > >>> > Is there an easy step-by-step guide on getting this setup? I have been >>> > searching through the web, the mapserver wiki and mailing list without >>> luck. >>> > >>> > I am simply looking for the optimal FastCGI configuration settings, >>> > along with deployment instructions from scratch... doesn't have to be >>> > too detailed but just an outline of how we should proceed... Does >>> > anything need to be recompiled with FastCGI support, etc etc... >>> > >>> > I really appreciate the help. >>> > >> >> Hello, >> >> You will find instructions on this at: >> http://www.mapserver.org/optimization/fastcgi.html >> >> If, during your MapServer/FastCGI travels, you have additional notes to >> add to the documentation, it would be great if you could file a ticket >> on MapServer Trac and record your additional notes there >> (http://trac.osgeo.org/mapserver/) - if you do not have a login, create >> one at: https://www.osgeo.org/cgi-bin/ldap_create_user.py >> >> Happy travels. >> >> -jeff >> > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Wed Sep 1 08:14:43 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 01 Sep 2010 17:14:43 +0200 Subject: [mapserver-users] FastCGI, MapServer and Apache on Linux In-Reply-To: References: Message-ID: <4C7E6DE3.2070908@uva.nl> On 09/01/10 16:46, Smith, Michael ERDC-CRREL-NH wrote: > Nic, > > In the 2010 benchmarking effort, we are using mod_fcgid with the > latest Apache. Here are the fcgi parameters we have in our conf file > > > FcgidInitialEnv LD_LIBRARY_PATH > /usr/lib64:/usr/lib:/usr/local/lib:/opt/mapserverfull/lib:/oracle/instantclient_11_2:/opt/mapserver/lib > FcgidMinProcessesPerClass 0 > FcgidIdleScanInterval 1 > FcgidProcessLifeTime 10 > FcgidIOTimeout 100 > FcgidMinProcessesPerClass 0 > > > > Mike > > > -- > Michael Smith > US Army Corps of Engineers > Remote Sensing/GIS Center > Hanover, NH > Any comments on comparing mod_fastcgi and mod_fcgid? Speed, thread-safety? Jan > > > On 9/1/10 10:43 AM, "Nicolas Chenier" wrote: > > Thank you Jeff! > > So you mean to tell me that this old tutorial is still the > baseline for FastCGI w/ Mapserver and Apache? This was written a > while back, and seems to be specific to Apache 1.3... Does anyone > know of any modifications that need to be done for Apache httpd > 2.2? Any other/new optimizations to the fastCGI settings? > > Thanks, > > Nic > > > > On Wed, 2010-09-01 at 07:48 +0200, Jeff McKenna wrote: > > > On 10-08-31 9:44 PM, Nicolas Chenier wrote: > > Good day all, > > > > I am fairly new at this, and I am seeking help. > > > > We are currently using a MapServer setup with Apache on > Linux, supported > > by Tilecache. > > > > Due to the growing number of maps and tiles, we need to cut > back on > > caching as we are running out of disk space to store the > tilecache. > > > > We would like to use FastCGI to generate tiles on the fly with > > MapServer, Apache and our SDE db connection, all running on > Linux. > > > > I am looking for the optimal way to get this setup, using the > latest > > Mapserver release with Apache2. > > > > Is there an easy step-by-step guide on getting this setup? I > have been > > searching through the web, the mapserver wiki and mailing > list without luck. > > > > I am simply looking for the optimal FastCGI configuration > settings, > > along with deployment instructions from scratch... doesn't > have to be > > too detailed but just an outline of how we should proceed... Does > > anything need to be recompiled with FastCGI support, etc etc... > > > > I really appreciate the help. > > > > Hello, > > You will find instructions on this at: > http://www.mapserver.org/optimization/fastcgi.html > > If, during your MapServer/FastCGI travels, you have additional > notes to > add to the documentation, it would be great if you could file > a ticket > on MapServer Trac and record your additional notes there > (http://trac.osgeo.org/mapserver/) - if you do not have a > login, create > one at: https://www.osgeo.org/cgi-bin/ldap_create_user.py > > Happy travels. > > -jeff > > > > > ------------------------------------------------------------------------ > _______________________________________________ > 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 jmckenna at gatewaygeomatics.com Wed Sep 1 08:19:40 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 01 Sep 2010 17:19:40 +0200 Subject: [mapserver-users] FastCGI, MapServer and Apache on Linux In-Reply-To: <4C7E6DE3.2070908@uva.nl> References: <4C7E6DE3.2070908@uva.nl> Message-ID: <4C7E6F0C.5040306@gatewaygeomatics.com> On 10-09-01 5:14 PM, Jan Hartmann wrote: >> > Any comments on comparing mod_fastcgi and mod_fcgid? Speed, thread-safety? > I can comment that the since mod_fcgid has been included in the Apache http server project (it used to be a separate project) the stability of it has increased (updates, documentation, etc.)...for that reason the MS4W product switched to it. (sorry if my English is off ha!) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jorn at spacetec.no Thu Sep 2 00:04:13 2010 From: jorn at spacetec.no (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Thu, 2 Sep 2010 09:04:13 +0200 Subject: [mapserver-users] Problem with SOS, works as WMS In-Reply-To: <201009011547.01047.jorn@spacetec.no> References: <201009011547.01047.jorn@spacetec.no> Message-ID: <201009020904.14055.jorn@spacetec.no> Hi all, I found the solution. Yesterday evening (while digging a ditch in my backyard) I was reminded of the (good) old extent trap, e.g the EXTENT was to narrow for my data. Thanks for listening and have a nice day. cheers J?rn Vegard On Wednesday 01 September 2010 15:47:00 J?rn Vegard R?snes wrote: > Hi all, > > I have a layer that works as WMS, e.g the points are plotted in map, but > SOS gives an empty ObservationCollection (no filtering in my SOS > GetObservation URL). > > I use shapefile as input, for the first time. > > > What could be the problem? > > SOS URL > http://server.com/cgi-bin/gms?version=1.0.0&service=SOS&request=GetObservat >ion&responseFormat=text/xml; > %20subtype=om/1.0.0&offering=track2&observedproperty=track2 > > WMS URL > http://server.com/cgi-bin/gms?Layers=Vessels_Positions_2010_06_26-12_26_35, >gshhs&service=WMS&request=getmap&WIDTH=512&HEIGHT=512&BBOX=48.0,0,52.0,3.0&b >gcolor=0xffffff&VERSION=1.1.1&FORMAT=image/jpeg&SRS=EPSG:4326 > > > LAYER > NAME "Vessels_Positions_2010_06_26-12_26_35" > TYPE POINT > STATUS on > DEBUG 5 > DUMP TRUE > DATA "Vessels_Positions_2010_06_26-12_26_35" > CLASS > NAME "Vessels20100626122635" > TEXT ([mmsi]([name])) > LABEL > WRAP "%" > COLOR 0 0 0 > #SHADOWCOLOR 218 218 218 > #SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial > SIZE 9 > ANTIALIAS TRUE > POSITION CC > PARTIALS false > MINDISTANCE 65000 > BUFFER 4 > END # end of label > COLOR 0 128 0 > END > PROJECTION > "init=epsg:4326" > END > METADATA > # "sos_title" "track2" ## title > "sos_offering_id" "track2" ## id of offering > "sos_procedure" "track2" ## a sensor unique id > "sos_observedproperty_id" "track2" ## id of observed property > "sos_describesensor_url" > "http://server.com/sostest/xml/ifgi-sensor-1.xml" ## REQUIRED > # "sos_srs" "epsg:4326" > # "sos_offering_timeextent" "20070530T1800Z" > # "sos_timeitem" "datepos" > # gml_include_items 'all' > # wms_include_items 'all' > END > END > > > > > grinfo -al Vessels_Positions_2010_06_26-10_11_42.shp > > INFO: Open of `Vessels_Positions_2010_06_26-10_11_42.shp' > using driver `ESRI Shapefile' successful. > > Layer name: Vessels_Positions_2010_06_26-10_11_42 > Geometry: Point > Feature Count: 33 > Extent: (49.756611, -3.212502) - (50.422119, -1.975762) > Layer SRS WKT: > (unknown) > name: String (18.0) > mmsi: Real (11.0) > type: Real (11.0) > flag: String (2.0) > lenght: Real (24.15) > datepos: String (25.0) > speed: Real (24.15) > course: Real (24.15) > elapsed: Real (24.15) > source: String (13.0) > OGRFeature(Vessels_Positions_2010_06_26-10_11_42):0 > name (String) = > mmsi (Real) = > type (Real) = 9 > flag (String) = MT > lenght (Real) = 40.000000000000000 > datepos (String) = 2010-06-26T22:11:42+02:00 > speed (Real) = 29.000000000000000 > course (Real) = 257.000000000000000 > elapsed (Real) = 1.000000000000000 > source (String) = marinetraffic > POINT (50.406910000000003 -1.975762) > > > cheers > J?rn Vegard > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woklist at kyngchaos.com Thu Sep 2 06:53:05 2010 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 2 Sep 2010 08:53:05 -0500 Subject: [mapserver-users] thread safety and php and fastcgi Message-ID: <15284A50-117F-4212-AB55-A80148C07AF2@kyngchaos.com> Bringing back this question from a different angle... So, we know that PHP MapScript has some thread safety issues when used with PHP as a DSO module. In my limited understanding of how it works, a DSO module is loaded into memory when Apache starts, ready to accept multiple different requests, and this permanent state is where the thread safety issues come from. So, what about mapserv fastcgi? Isn't this also loaded once, and processes multiple requests? What about PHP as a fastcgi? If it's the mapserver-PHP code that has the thread safety problem, would PHP as a fastcgi have similar problems as PHP-DSO? ----- William Kyngesburye http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. Wretched, isn't it? -HitchHiker's Guide to the Galaxy From warmerdam at pobox.com Thu Sep 2 07:03:11 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 02 Sep 2010 10:03:11 -0400 Subject: [mapserver-users] thread safety and php and fastcgi In-Reply-To: <15284A50-117F-4212-AB55-A80148C07AF2@kyngchaos.com> References: <15284A50-117F-4212-AB55-A80148C07AF2@kyngchaos.com> Message-ID: <4C7FAE9F.4030806@pobox.com> William Kyngesburye wrote: > Bringing back this question from a different angle... > > So, we know that PHP MapScript has some thread safety issues when used with > PHP as a DSO module. In my limited understanding of how it works, a DSO > module is loaded into memory when Apache starts, ready to accept multiple > different requests, and this permanent state is where the thread safety > issues come from. > > So, what about mapserv fastcgi? Isn't this also loaded once, and processes > multiple requests? > > What about PHP as a fastcgi? If it's the mapserver-PHP code that has the > thread safety problem, would PHP as a fastcgi have similar problems as > PHP-DSO? William, In the case of FastCGI the fastcgi mapserver process is only given one cgi request at a time to handle. It won't be given another until the previous one is complete. Apache can start multiple separate FastCGI MapServer instances in order to handle multiple requests at once but they each have their own process. So, FastCGI does not have multi-threading issues. It does occationally run into issues with memory leaks or "left over state" from a previous cgi request. 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 woklist at kyngchaos.com Thu Sep 2 07:13:13 2010 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 2 Sep 2010 09:13:13 -0500 Subject: [mapserver-users] thread safety and php and fastcgi In-Reply-To: <4C7FAE9F.4030806@pobox.com> References: <15284A50-117F-4212-AB55-A80148C07AF2@kyngchaos.com> <4C7FAE9F.4030806@pobox.com> Message-ID: <45D69BC2-19BD-4E56-A829-F1D074F5EFAC@kyngchaos.com> On Sep 2, 2010, at 9:03 AM, Frank Warmerdam wrote: > In the case of FastCGI the fastcgi mapserver process is only given one > cgi request at a time to handle. It won't be given another until the > previous one is complete. Apache can start multiple separate FastCGI > MapServer instances in order to handle multiple requests at once but > they each have their own process. So, FastCGI does not have > multi-threading issues. It does occationally run into issues with > memory leaks or "left over state" from a previous cgi request. > Thanks. ----- William Kyngesburye http://www.kyngchaos.com/ "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty." "Don't you even hate 'em?" "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day." "And it might give 'em all stomach ulcers." - Tarzan, on war From woklist at kyngchaos.com Thu Sep 2 07:41:36 2010 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 2 Sep 2010 09:41:36 -0500 Subject: [mapserver-users] PHP-MapScript with PHP 5.3 fastcgi warning Message-ID: So, I'm *finally* getting around to updating my OS X PHP package to 5.3 and found an important change that affects MapServer mapscripts (and I didn't see it mentioned in the MapScript docs). I'm others have run into this already and figured it out (sorry if this is old news), but documentation is good. dl() is disabled in all but CGI, CLI and embed builds of PHP. That means PHP will throw an error, not a warning, when you try to dl("php_mapscript.so"). You *must* load extensions from the php.ini when using PHP as DSO (those that don't have a choice), or as fastcgi, or any of the obscure PHP SAPIs. I guess the best way to handle this is to test if php_mapscript is already loaded before trying. And checking for the existence of the dl() function just in case, if it isn't loaded. This stumped me for a while because my *fastcgi* PHP build didn't work. Then I realized that they really mean "CGI", and not also fastcgi. ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From jmckenna at gatewaygeomatics.com Thu Sep 2 07:52:52 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 02 Sep 2010 16:52:52 +0200 Subject: [mapserver-users] PHP-MapScript with PHP 5.3 fastcgi warning In-Reply-To: References: Message-ID: <4C7FBA44.6020606@gatewaygeomatics.com> I believe I reported this issue to the MS4W users...but I agree it's good to mention on this email list as well. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 10-09-02 4:41 PM, William Kyngesburye wrote: > So, I'm *finally* getting around to updating my OS X PHP package to 5.3 and found an important change that affects MapServer mapscripts (and I didn't see it mentioned in the MapScript docs). I'm others have run into this already and figured it out (sorry if this is old news), but documentation is good. > > dl() is disabled in all but CGI, CLI and embed builds of PHP. That means PHP will throw an error, not a warning, when you try to dl("php_mapscript.so"). You *must* load extensions from the php.ini when using PHP as DSO (those that don't have a choice), or as fastcgi, or any of the obscure PHP SAPIs. > > I guess the best way to handle this is to test if php_mapscript is already loaded before trying. And checking for the existence of the dl() function just in case, if it isn't loaded. > > > This stumped me for a while because my *fastcgi* PHP build didn't work. Then I realized that they really mean "CGI", and not also fastcgi. > From lgaudette at ehealthinformation.ca Thu Sep 2 08:39:46 2010 From: lgaudette at ehealthinformation.ca (Lisa Gaudette) Date: Thu, 2 Sep 2010 08:39:46 -0700 (PDT) Subject: [mapserver-users] VRT memory usage (from C# Mapscript) Message-ID: <1283441986292-5491654.post@n2.nabble.com> I have an application using C# Mapscript where I've got a large number of .png tiles that wind up representing the same area but under different conditions. In order to avoid having huge numbers of duplicate .wld files, I'm using .vrt files to index the tiles. However, I've realized that each time a request is made for a different map, my memory usage increases. I can duplicate that with the following code, where the mapfiles contain .vrt layers but it's fine with a .shp tileindex. This happens even when the 2nd map represents a much smaller area with many fewer tiles than the first. public byte[] Draw(int index) { if(index >= mapFiles.Length) throw new ArgumentException("Index out of range"); byte[] bytes; using (mapObj map = new mapObj(mapFiles[index])) { using (imageObj img = map.draw()) { bytes = img.getBytes(); } } return bytes; } I would really rather not have to switch back to using a .shp tileindex and create thousands of duplicate files, so I'm wondering if anyone has any ideas on how to make the .vrt layers play nice with memory usage? Or some entirely different approach? As a further note, which might be relevant if anyone's got a different solution, each .vrt file doesn't represent a distinct set of tiles - from one scenario to the next, many of the tiles remain the same. I.E. the set of tiles for Scenario A and Scenario B have many, but not all tiles in common. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/VRT-memory-usage-from-C-Mapscript-tp5491654p5491654.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Thu Sep 2 09:01:18 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 02 Sep 2010 12:01:18 -0400 Subject: [mapserver-users] VRT memory usage (from C# Mapscript) In-Reply-To: <1283441986292-5491654.post@n2.nabble.com> References: <1283441986292-5491654.post@n2.nabble.com> Message-ID: <4C7FCA4E.80808@pobox.com> Lisa Gaudette wrote: > I have an application using C# Mapscript where I've got a large number of > .png tiles that wind up representing the same area but under different > conditions. In order to avoid having huge numbers of duplicate .wld files, > I'm using .vrt files to index the tiles. > > However, I've realized that each time a request is made for a different map, > my memory usage increases. I can duplicate that with the following code, > where the mapfiles contain .vrt layers but it's fine with a .shp tileindex. > This happens even when the 2nd map represents a much smaller area with many > fewer tiles than the first. Lisa, In recent versions of MapServer an effort is made to keep GDAL files open between render requests for raster layers with a single file as opposed to a tile index. I wonder if you might be running into a problem with this behavior in a long running mapscript script. I don't understand the whole context in which you are operating so I could be off base. But you might consider adding: PROCESSING "CLOSE_CONNECTION=NORMAL" to your raster layer to force the files to be closed at the end of a render. 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 jmcnary at spatialcloud.com Thu Sep 2 10:49:44 2010 From: jmcnary at spatialcloud.com (Joshua McNary) Date: Thu, 2 Sep 2010 12:49:44 -0500 Subject: [mapserver-users] WMS Config for ESRI Clients Message-ID: <5AD2A042-B1F5-4CC3-A1BE-E7C7340F66E0@spatialcloud.com> I am working with the technical team at SpatialCloud to try to get our image based TMS-to-WMS output working fully (via MapServer/MS4W [http://www.spatialcloud.com/index.cfm?event=home.WMTStoWMS]). The current iteration will work with some WMS clients, but others, like ESRI ArcGIS Suite, do not work. This original Mapfile we had will allow it to work with some clients; GetCapabilities works for all clients we have tested: ---Start Mapfile #1--- MAP NAME SPATIALCLOUD_WMS STATUS ON SIZE 800 500 IMAGETYPE JPEG IMAGECOLOR 240 240 240 EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 UNITS METERS PROJECTION "init=epsg:900913" END LAYER DATA "tmsgdal.xml" NAME "SpatialCloudTMS" # 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" "no_defs" # END STATUS ON TYPE RASTER UNITS METERS END END ---End Mapfile #1--- But an was error produced in ESRI ArcMap 9.3 when trying to draw the image: ---Start ESRI Error #1--- One or more layers failed to draw: SPATIALCLOUD_WMS: WMS service exceptions:-Service Error Code:InvalidSRS Service Error Description: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. -Service Error Code:InvalidSRS ---End ESRI Error #1--- We realized the Mapfile was malformed and we had an SRS issue so we created this variation which seemed to be more to spec: ---Start Mapfile #2--- MAP NAME SpatialCloud STATUS ON SIZE 512 512 IMAGETYPE PNG24 OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGB TRANSPARENT ON END IMAGECOLOR 240 240 240 EXTENT -180.00 -90.00 180.00 90.00 # EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 UNITS DD PROJECTION "init=epsg:4326" END WEB METADATA "wms_title" "SpatialCloud TMS via WMS" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/sccustomserver/tms.map" "wms_srs" "EPSG:4326" "wms_format" "image/png" "wms_server_version" "1.1.1" END END LAYER DATA "tmsgdal.xml" NAME "SpatialCloudWMS" METADATA "wms_title" "Put your layer title here" "wms_extent" "-20037508.34 -20037508.34 20037508.34 20037508.34" "wms_srs" "EPSG:900913" END PROJECTION "init=EPSG:900913" END STATUS ON TYPE RASTER UNITS METERS END END ---End Mapfile #2--- GetCapabilities continued to works for all clients, but this led to our test WMS clients ceasing to draw and a new error in ESRI software: ---Start ESRI Error #2--- One or more layers failed to draw: SpatialCloud TMS via WMS: WMS service exceptions:Service Error Description: msDrawMap(): Image handling error. Failed to draw layer named Service Error Description: ' Service Error Description: SpatialCloudWMS Service Error Description: ' Service Error Description: . IReadBlock failed at X offset 98, Y offset 98: Unable to access file. GDALDatasetRasterIO() failed: drawGDAL() ---End ESRI Error #2--- We have tried variations on both of these Mapfiles, focusing on the projections. We have never been able to get our WMS feed to draw in ESRI software, but can do so with other (OS) clients. Can anyone provide any suggestions? Assistance? Comment? Thank you. Joshua McNary Marketing Manager jmcnary at spatialcloud.com SpatialCloud.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From webturtles at gmail.com Thu Sep 2 12:28:49 2010 From: webturtles at gmail.com (Chris Jackson) Date: Thu, 2 Sep 2010 20:28:49 +0100 Subject: [mapserver-users] Display performance Message-ID: Hi I wondered if anyone knew if displaying a 50,000 polygon dataset would be significantly faster if called from a database rather than a spatially indexed shapefile, or is it a similar overhead for both. Thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Sep 2 12:51:16 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 02 Sep 2010 15:51:16 -0400 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: <4C800034.8090708@swoodbridge.com> On 9/2/2010 3:28 PM, Chris Jackson wrote: > Hi > > I wondered if anyone knew if displaying a 50,000 polygon dataset would > be significantly faster if called from a database rather than a > spatially indexed shapefile, or is it a similar overhead for both. Depends! This has been discuss a lot in past threads. 1. if you are displaying ALL of the polygons, the shapefile will be faster. 2. if you are displaying just one of the polygons, postgis will probably be faster. 3. it varies in between these extremes, you could look these over: http://www.google.com/#num=10&hl=en&newwindow=1&pwst=1&q=mapserver+performance+shapefile -Steve W From webturtles at gmail.com Thu Sep 2 13:03:19 2010 From: webturtles at gmail.com (Chris Jackson) Date: Thu, 2 Sep 2010 21:03:19 +0100 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: Steve That saves some work, but how long would you expect one that size to load? I have just realised (admittedly not looked at the data for a couple of years) that it is actually 170,000 records - takes about 20 secs to load - sound reasonable? Chris On 2 September 2010 20:50, Lime, Steve D (DNR) wrote: > That?s not that big a dataset. Probably faster from a local shapefile. > > > > Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Chris Jackson > *Sent:* Thursday, September 02, 2010 2:29 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Display performance > > > > Hi > > I wondered if anyone knew if displaying a 50,000 polygon dataset would be > significantly faster if called from a database rather than a spatially > indexed shapefile, or is it a similar overhead for both. > Thanks > Chris > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Sep 2 12:50:06 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 2 Sep 2010 14:50:06 -0500 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: That's not that big a dataset. Probably faster from a local shapefile. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Jackson Sent: Thursday, September 02, 2010 2:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Display performance Hi I wondered if anyone knew if displaying a 50,000 polygon dataset would be significantly faster if called from a database rather than a spatially indexed shapefile, or is it a similar overhead for both. Thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Thu Sep 2 13:07:58 2010 From: punk.kish at gmail.com (P Kishor) Date: Thu, 2 Sep 2010 15:07:58 -0500 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: On Thu, Sep 2, 2010 at 3:03 PM, Chris Jackson wrote: > Steve > > That saves some work, but how long would you expect one that size to load? > I have just realised (admittedly not looked at the data for a couple of > years) that it is actually 170,000 records - takes about 20 secs to load - > sound reasonable? What does "to load" mean? Is 20 seconds the time elapsed from when the user clicks on the browser to when the user sees the resulting image? You are ripping through 170K features and creating an image. 20 seconds seems like a lot. How big and complicated are those features? How big is the shapefile, in physical size (MB, KB). What kind of computer are you using? What other processes are running? So many variables... in any case, if you have a web app, and you want your users to remain interested in it, you probably will want to bring down the time "to load" to sub-second, or, at the most a few seconds. You will also want to consider multiple users -- acceptable performance with one user might translate into horrendous performance with several concurrent users. > > Chris > > On 2 September 2010 20:50, Lime, Steve D (DNR) > wrote: >> >> That?s not that big a dataset. Probably faster from a local shapefile. >> >> >> >> Steve >> >> >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Jackson >> Sent: Thursday, September 02, 2010 2:29 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Display performance >> >> >> >> Hi >> >> I wondered if anyone knew if displaying a 50,000 polygon dataset would be >> significantly faster if called from a database rather than a spatially >> indexed shapefile, or is it a similar overhead for both. >> Thanks >> Chris > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From webturtles at gmail.com Thu Sep 2 13:28:43 2010 From: webturtles at gmail.com (Chris Jackson) Date: Thu, 2 Sep 2010 21:28:43 +0100 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: Hi 20 secs is from turning the layer on in the interface. The data is a model grid as polygons, the file size is about 40mb. I agree 20secs is too long - I am a web developer in general and know users are fickle! The other layers load v.quickly so happy in general with performance of smaller model grids. The same layer in an old arcgis server app loads a few secs quicker (from SDE rather than file) and we just accepted it was just 'one of those things' and deadlines got in the way - mmm... The app is living on a reasonable specced server living in a data centre and the old web app has been serving the offshore renewables industry fine for a couple of years or so, just have a need to move to an open source solution. I was trying to get a feel whether moving to PostGIS rather than local file will speed things up - I get the feeling it is marginal. Maybe I am missing another processing trick (admittedly I have done minimal work bar a spatial index). Thanks for the swift response. Chris On 2 September 2010 21:07, P Kishor wrote: > On Thu, Sep 2, 2010 at 3:03 PM, Chris Jackson > wrote: > > Steve > > > > That saves some work, but how long would you expect one that size to > load? > > I have just realised (admittedly not looked at the data for a couple of > > years) that it is actually 170,000 records - takes about 20 secs to load > - > > sound reasonable? > > > What does "to load" mean? Is 20 seconds the time elapsed from when the > user clicks on the browser to when the user sees the resulting image? > > You are ripping through 170K features and creating an image. 20 > seconds seems like a lot. How big and complicated are those features? > How big is the shapefile, in physical size (MB, KB). > > What kind of computer are you using? > > What other processes are running? > > So many variables... > > in any case, if you have a web app, and you want your users to remain > interested in it, you probably will want to bring down the time "to > load" to sub-second, or, at the most a few seconds. You will also want > to consider multiple users -- acceptable performance with one user > might translate into horrendous performance with several concurrent > users. > > > > > > > > Chris > > > > On 2 September 2010 20:50, Lime, Steve D (DNR) > > wrote: > >> > >> That?s not that big a dataset. Probably faster from a local shapefile. > >> > >> > >> > >> Steve > >> > >> > >> > >> From: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris > Jackson > >> Sent: Thursday, September 02, 2010 2:29 PM > >> To: mapserver-users at lists.osgeo.org > >> Subject: [mapserver-users] Display performance > >> > >> > >> > >> Hi > >> > >> I wondered if anyone knew if displaying a 50,000 polygon dataset would > be > >> significantly faster if called from a database rather than a spatially > >> indexed shapefile, or is it a similar overhead for both. > >> Thanks > >> Chris > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > Puneet Kishor http://www.punkish.org > Carbon Model http://carbonmodel.org > Charter Member, Open Source Geospatial Foundation http://www.osgeo.org > Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor > Nelson Institute, UW-Madison http://www.nelson.wisc.edu > ----------------------------------------------------------------------- > Assertions are politics; backing up assertions with evidence is science > ======================================================================= > -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Thu Sep 2 13:31:40 2010 From: punk.kish at gmail.com (P Kishor) Date: Thu, 2 Sep 2010 15:31:40 -0500 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: On Thu, Sep 2, 2010 at 3:28 PM, Chris Jackson wrote: > Hi > > 20 secs is from turning the layer on in the interface.? The data is a model > grid as polygons, the file size is about 40mb.? I agree 20secs is too long - > I am a web developer in general and know users are fickle!? The other layers > load v.quickly so happy in general with performance of smaller model grids. > > The same layer in an old arcgis server app loads a few secs quicker (from > SDE rather than file) and we just accepted it was just 'one of those things' > and deadlines got in the way - mmm... > > The app is living on a reasonable specced server living in a data centre and > the old web app has been serving the offshore renewables industry fine for a > couple of years or so, just have a need to move to an open source solution. > I was trying to get a feel whether moving to PostGIS rather than local file > will speed things up - I get the feeling it is marginal. Databases, generally, will be slower than files. You don't go to a db for speed. You go to a db for a bunch of other advantages it brings, especially in a read-write environment. Have you indexed your shapefiles? If not, create an index, and you will be surprised how fast the result will be. Additionally, if you can, try process as little as possible to do the work requested. In other words, wasted CPU is wasted CPU, so try not to do calculations that you are going to throw away anyway. Well, first, index the shapefiles. > > Maybe I am missing another processing trick (admittedly I have done minimal > work bar a spatial index). > > Thanks for the swift response. > Chris > > On 2 September 2010 21:07, P Kishor wrote: >> >> On Thu, Sep 2, 2010 at 3:03 PM, Chris Jackson >> wrote: >> > Steve >> > >> > That saves some work, but how long would you expect one that size to >> > load? >> > I have just realised (admittedly not looked at the data for a couple of >> > years) that it is actually 170,000 records - takes about 20 secs to load >> > - >> > sound reasonable? >> >> >> What does "to load" mean? Is 20 seconds the time elapsed from when the >> user clicks on the browser to when the user sees the resulting image? >> >> You are ripping through 170K features and creating an image. 20 >> seconds seems like a lot. How big and complicated are those features? >> How big is the shapefile, in physical size (MB, KB). >> >> What kind of computer are you using? >> >> What other processes are running? >> >> So many variables... >> >> in any case, if you have a web app, and you want your users to remain >> interested in it, you probably will want to bring down the time "to >> load" to sub-second, or, at the most a few seconds. You will also want >> to consider multiple users -- acceptable performance with one user >> might translate into horrendous performance with several concurrent >> users. >> >> >> >> >> > >> > Chris >> > >> > On 2 September 2010 20:50, Lime, Steve D (DNR) >> > wrote: >> >> >> >> That?s not that big a dataset. Probably faster from a local shapefile. >> >> >> >> >> >> >> >> Steve >> >> >> >> >> >> >> >> From: mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris >> >> Jackson >> >> Sent: Thursday, September 02, 2010 2:29 PM >> >> To: mapserver-users at lists.osgeo.org >> >> Subject: [mapserver-users] Display performance >> >> >> >> >> >> >> >> Hi >> >> >> >> I wondered if anyone knew if displaying a 50,000 polygon dataset would >> >> be >> >> significantly faster if called from a database rather than a spatially >> >> indexed shapefile, or is it a similar overhead for both. >> >> Thanks >> >> Chris >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> >> >> -- >> Puneet Kishor http://www.punkish.org >> Carbon Model http://carbonmodel.org >> Charter Member, Open Source Geospatial Foundation http://www.osgeo.org >> Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor >> Nelson Institute, UW-Madison http://www.nelson.wisc.edu >> ----------------------------------------------------------------------- >> Assertions are politics; backing up assertions with evidence is science >> ======================================================================= > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From Steve.Lime at state.mn.us Thu Sep 2 13:36:47 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 2 Sep 2010 15:36:47 -0500 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: If you have postgis already sitting around then it's pretty quick just to try it and see. I'm assuming you're talking 20sec for everything, all 170K features? A spatial index doesn't buy you anything in the 'all' case. That is a lot of features to display at once and I wonder if one can even make sense of that much detail. A common technique would be display reduced or somehow generalized versions of the data at that level and then hit the detailed data as a user zooms in. Without knowing the data how you'd do that would vary. For example, you could actually rasterize the data and display the pre-rendered raster version small scales. Or you might be able to thin the data a bit. Lots of options. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Jackson Sent: Thursday, September 02, 2010 3:29 PM To: P Kishor Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Display performance Hi 20 secs is from turning the layer on in the interface. The data is a model grid as polygons, the file size is about 40mb. I agree 20secs is too long - I am a web developer in general and know users are fickle! The other layers load v.quickly so happy in general with performance of smaller model grids. The same layer in an old arcgis server app loads a few secs quicker (from SDE rather than file) and we just accepted it was just 'one of those things' and deadlines got in the way - mmm... The app is living on a reasonable specced server living in a data centre and the old web app has been serving the offshore renewables industry fine for a couple of years or so, just have a need to move to an open source solution. I was trying to get a feel whether moving to PostGIS rather than local file will speed things up - I get the feeling it is marginal. Maybe I am missing another processing trick (admittedly I have done minimal work bar a spatial index). Thanks for the swift response. Chris On 2 September 2010 21:07, P Kishor > wrote: On Thu, Sep 2, 2010 at 3:03 PM, Chris Jackson > wrote: > Steve > > That saves some work, but how long would you expect one that size to load? > I have just realised (admittedly not looked at the data for a couple of > years) that it is actually 170,000 records - takes about 20 secs to load - > sound reasonable? What does "to load" mean? Is 20 seconds the time elapsed from when the user clicks on the browser to when the user sees the resulting image? You are ripping through 170K features and creating an image. 20 seconds seems like a lot. How big and complicated are those features? How big is the shapefile, in physical size (MB, KB). What kind of computer are you using? What other processes are running? So many variables... in any case, if you have a web app, and you want your users to remain interested in it, you probably will want to bring down the time "to load" to sub-second, or, at the most a few seconds. You will also want to consider multiple users -- acceptable performance with one user might translate into horrendous performance with several concurrent users. > > Chris > > On 2 September 2010 20:50, Lime, Steve D (DNR) > > wrote: >> >> That's not that big a dataset. Probably faster from a local shapefile. >> >> >> >> Steve >> >> >> >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Jackson >> Sent: Thursday, September 02, 2010 2:29 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Display performance >> >> >> >> Hi >> >> I wondered if anyone knew if displaying a 50,000 polygon dataset would be >> significantly faster if called from a database rather than a spatially >> indexed shapefile, or is it a similar overhead for both. >> Thanks >> Chris > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= -------------- next part -------------- An HTML attachment was scrubbed... URL: From webturtles at gmail.com Thu Sep 2 13:52:58 2010 From: webturtles at gmail.com (Chris Jackson) Date: Thu, 2 Sep 2010 21:52:58 +0100 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: Steve I don't have postgis, hence the fishing around for answers from helpful people like yourself! You are right about playing around with generalisations, unfortunately the colouring is very specific and needs to match other GIS outputs, so will have to still 'look' right - something I will have a play with in due course. Once you zoom in the data is quite usable - ie. the spatial index is doing it's job, so not all is lost. Thanks for the ideas Chris On 2 September 2010 21:36, Lime, Steve D (DNR) wrote: > If you have postgis already sitting around then it?s pretty quick just to > try it and see. I?m assuming you?re talking 20sec for everything, all 170K > features? A spatial index doesn?t buy you anything in the ?all? case. That > is a lot of features to display at once and I wonder if one can even make > sense of that much detail. A common technique would be display reduced or > somehow generalized versions of the data at that level and then hit the > detailed data as a user zooms in. Without knowing the data how you?d do that > would vary. For example, you could actually rasterize the data and display > the pre-rendered raster version small scales. Or you might be able to thin > the data a bit. Lots of options. > > > > Steve > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Sep 3 01:04:04 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Sep 2010 11:04:04 +0300 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: Hi, I took some numbers to compare with. Material and methods Polygon layer, rather simple polygons with few vertises, Feature Count: 117383 DEBUG 5 in mapfile WMS client asks for the whole layer Mapserver 5.2.1 (CGI) on not so fast Windows computer Results First request: rendering time taken from the log file are between 3.5 and 4.5 seconds Following request, BBOX is changing but all the polygons are drawn though: rendering times 1.5 - 2.5 seconds Conclusions and discussion At first one might think that my server is faster. But this test is not controlled at all because we are not using the same shapefiles and we can't say so. What we can say that a couple of hundred of thousand polygons can be drawn faster. However, it does not really make sense to render an image this way if it should be fast. If the screen has 1000 by 1000 pixels it makes a million pixels together. For 200000 polygons it makes 5 pixels per polygon. You can simplify your polygon geometries pretty much before anybody can see the differense. If the polygons are spread evenly nobody can even see the difference if there are 20000 or 200000 polygons on the screen. We have one polygon layer with about million polygons and for that I made two simplified layers which contain only 1 percent and 10 percent of all the polygons. Those and the original shapefile are put into the same scale dependent WMS GROUP layer. This group is pretty fast at any scale. The 1 percent layer is perhaps a bit too sparse but I have been too lazy to have a try with 2 or 5 percent samples. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Chris Jackson L?hetetty: 2. syyskuuta 2010 23:03 Vastaanottaja: Lime, Steve D (DNR) Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Display performance Steve That saves some work, but how long would you expect one that size to load? I have just realised (admittedly not looked at the data for a couple of years) that it is actually 170,000 records - takes about 20 secs to load - sound reasonable? Chris On 2 September 2010 20:50, Lime, Steve D (DNR) wrote: That's not that big a dataset. Probably faster from a local shapefile. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Jackson Sent: Thursday, September 02, 2010 2:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Display performance Hi I wondered if anyone knew if displaying a 50,000 polygon dataset would be significantly faster if called from a database rather than a spatially indexed shapefile, or is it a similar overhead for both. Thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Fri Sep 3 01:51:55 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Fri, 3 Sep 2010 09:51:55 +0100 Subject: [mapserver-users] Commercial support Message-ID: Hi Guys, Some companies choose commercial software such as Oracle MapViewer because they offer the security of commercial support. So if the companies have any problem configuring it (or any other problem) they will use the support that they have paid for. IT engineers in general can learn for them self and with the help of the community support (mailing list) they are able to solve virtually any problem. And MapServer mailing list is the perfect example of that. Nevertheless, CEOs and boards of directors still need some kind of security and they prefer to use software that provide commercial support. Are you guys aware of companies that provide commercial support for MapServer ? thanks, -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Fri Sep 3 01:56:15 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 03 Sep 2010 10:56:15 +0200 Subject: [mapserver-users] thread safety and php and fastcgi In-Reply-To: <4C7FAE9F.4030806@pobox.com> References: <15284A50-117F-4212-AB55-A80148C07AF2@kyngchaos.com> <4C7FAE9F.4030806@pobox.com> Message-ID: <4C80B82F.8000405@uva.nl> On 09/02/10 16:03, Frank Warmerdam wrote: > > In the case of FastCGI the fastcgi mapserver process is only given one > cgi request at a time to handle. It won't be given another until the > previous one is complete. Apache can start multiple separate FastCGI > MapServer instances in order to handle multiple requests at once but > they each have their own process. So, FastCGI does not have > multi-threading issues. It does occationally run into issues with > memory leaks or "left over state" from a previous cgi request. > > What about mod_fcgid and mod_python? Are they thread-safe too running MapServer and MapScript scripts? Reading the PHP-MapScript installation guide at http://mapserver.org/installation/php.html I see mod_php is still considered unsafe. Jan From adams at terrestris.de Fri Sep 3 01:59:26 2010 From: adams at terrestris.de (adams) Date: Fri, 03 Sep 2010 10:59:26 +0200 Subject: [mapserver-users] Commercial support In-Reply-To: References: Message-ID: <4C80B8EE.10205@terrestris.de> Sebastian, if you just look for application support there are many companies in each country, if you look for support for further developments and/or bugfixing there are companies like mapgears or dm solutions and i'm sure some more. Till Sebastian E. Ovide wrote: > Hi Guys, > > Some companies choose commercial software such as Oracle MapViewer > because they offer the security of commercial support. So if the > companies have any problem configuring it (or any other problem) they > will use the support that they have paid for. > > IT engineers in general can learn for them self and with the help of > the community support (mailing list) they are able to solve virtually > any problem. And MapServer mailing list is the perfect example of that. > > Nevertheless, CEOs and boards of directors still need some kind of > security and they prefer to use software that provide commercial support. > > Are you guys aware of companies that provide commercial support for > MapServer ? > > thanks, > > > > -- > Sebastian E. Ovide > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --------------------------------------------------------- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From webturtles at gmail.com Fri Sep 3 02:12:35 2010 From: webturtles at gmail.com (Chris Jackson) Date: Fri, 3 Sep 2010 10:12:35 +0100 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: Hi Jukka Thanks for the response and the great investigative work! My log entry for drawing the layer is - [Fri Sep 03 10:01:25 2010].658000 msDrawMap(): Layer 1 (meanspringpeakflow), 24.500s. :o( I do wonder if my Mapfile layer definition is just v.poor (admittedly no expert!) so have taken an excerpt of the layer defintion (there are about 15 classes in all) - views anyone, should I be loading it a different way? Also Jukka, could I get a sample of your scale dependent WMS GROUP layer map code - as it sounds like a great idea maybe for this but also some v.hi-res model grids I am thinking about. Thanks again, much appreciated! Chris LAYER NAME "meanspringpeakflow" TYPE polygon DEBUG 5 DATA "Tide" TEMPLATE void PROJECTION "+proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs" END METADATA "DESCRIPTION" "Mean Spring Peak Flow" "RESULT_FIELDS" "ID,DISTANCE,DEPTH,MEAN_SP_PC" "RESULT_HEADERS" "ID,Minimum Distance (m),Average Depth (m),Mean Spring Peak Flow (m/s)" "ows_title" "meanspringpeakflow" "RESULT_HYPERLINK" "ID|| Load graphing tool" END # Metadata CLASS NAME '> 4.00 (m/s) ' EXPRESSION ([MEAN_SP_PC] >= 4 AND [MEAN_SP_PC] < 4.5) STYLE COLOR 135 99 64 END #end style END # end class CLASS NAME '3.51 - 4.00' EXPRESSION ([MEAN_SP_PC] >= 3.5 AND [MEAN_SP_PC] < 4) STYLE COLOR 158 126 63 END #end style END # end class etc etc On 3 September 2010 09:04, Rahkonen Jukka wrote: > Hi, > > I took some numbers to compare with. > > Material and methods > > Polygon layer, rather simple polygons with few vertises, Feature Count: > 117383 > DEBUG 5 in mapfile > WMS client asks for the whole layer > Mapserver 5.2.1 (CGI) on not so fast Windows computer > Results > First request: rendering time taken from the log file are between 3.5 and > 4.5 seconds > Following request, BBOX is changing but all the polygons are drawn though: > rendering times 1.5 - 2.5 seconds > > Conclusions and discussion > At first one might think that my server is faster. But this test is not > controlled at all because we are not using the same shapefiles and we can't > say so. What we can say that a couple of hundred of thousand polygons can be > drawn faster. > > However, it does not really make sense to render an image this way if it > should be fast. If the screen has 1000 by 1000 pixels it makes a million > pixels together. For 200000 polygons it makes 5 pixels per polygon. You > can simplify your polygon geometries pretty much before anybody can see the > differense. If the polygons are spread evenly nobody can even see the > difference if there are 20000 or 200000 polygons on the screen. > > We have one polygon layer with about million polygons and for that I made > two simplified layers which contain only 1 percent and 10 percent of all the > polygons. Those and the original shapefile are put into the same scale > dependent WMS GROUP layer. This group is pretty fast at any scale. The 1 > percent layer is perhaps a bit too sparse but I have been too lazy to have a > try with 2 or 5 percent samples. > > -Jukka Rahkonen- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Sep 3 02:31:50 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Sep 2010 12:31:50 +0300 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: Hi, I guess that classification has a big effect in your case. I have been reading that string comparisons are faster than logical ones. How about to have a try by classifying your shapefile and writing the classes directly to a new attribute field? This is my scale dependent group, simplified and spiced with some typos, I fear. LAYER GROUP "Parcels" NAME "all_parcels" TYPE POLYGON STATUS ON DATA "parcels_2008" UNITS METERS MAXSCALEDENOM 100000 CLASS NAME "parcel_class" STYLE OUTLINECOLOR 250 0 180 WIDTH 2 END END METADATA "ows_include_items" "AREA, PERIMETER" "wms_title" "all_parcels" "wms_srs" "EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913" END PROJECTION "init=epsg:2393" END END LAYER GROUP "Parcels" NAME "ten_percent" TYPE POLYGON STATUS ON DATA "parcels_2008_0" UNITS METERS MAXSCALEDENOM 1000000 MINSCALEDENOM 100000 CLASS NAME "parcel_class" STYLE OUTLINECOLOR 250 0 180 WIDTH 2 END END METADATA "ows_include_items" "AREA, PERIMETER" "wms_title" "ten_percent" "wms_srs" "EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913" END PROJECTION "init=epsg:2393" END END LAYER GROUP "Parcels" NAME "one_percent" TYPE POLYGON STATUS ON DATA "parcels_2008_00" UNITS METERS MINSCALEDENOM 1000000 CLASS NAME "parcel_class" STYLE # COLOR 240 240 0 OUTLINECOLOR 250 0 180 WIDTH 2 END END METADATA "ows_include_items" "AREA, PERIMETER" "wms_title" "one_percent" "wms_srs" "EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913" END PROJECTION "init=epsg:2393" END END LAYER -Jukka- ________________________________ L?hett?j?: Chris Jackson [mailto:webturtles at gmail.com] L?hetetty: 3. syyskuuta 2010 12:13 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Display performance Hi Jukka Thanks for the response and the great investigative work! My log entry for drawing the layer is - [Fri Sep 03 10:01:25 2010].658000 msDrawMap(): Layer 1 (meanspringpeakflow), 24.500s. :o( I do wonder if my Mapfile layer definition is just v.poor (admittedly no expert!) so have taken an excerpt of the layer defintion (there are about 15 classes in all) - views anyone, should I be loading it a different way? Also Jukka, could I get a sample of your scale dependent WMS GROUP layer map code - as it sounds like a great idea maybe for this but also some v.hi-res model grids I am thinking about. Thanks again, much appreciated! Chris LAYER NAME "meanspringpeakflow" TYPE polygon DEBUG 5 DATA "Tide" TEMPLATE void PROJECTION "+proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs" END METADATA "DESCRIPTION" "Mean Spring Peak Flow" "RESULT_FIELDS" "ID,DISTANCE,DEPTH,MEAN_SP_PC" "RESULT_HEADERS" "ID,Minimum Distance (m),Average Depth (m),Mean Spring Peak Flow (m/s)" "ows_title" "meanspringpeakflow" "RESULT_HYPERLINK" "ID|| Load graphing tool" END # Metadata CLASS NAME '> 4.00 (m/s) ' EXPRESSION ([MEAN_SP_PC] >= 4 AND [MEAN_SP_PC] < 4.5) STYLE COLOR 135 99 64 END #end style END # end class CLASS NAME '3.51 - 4.00' EXPRESSION ([MEAN_SP_PC] >= 3.5 AND [MEAN_SP_PC] < 4) STYLE COLOR 158 126 63 END #end style END # end class etc etc On 3 September 2010 09:04, Rahkonen Jukka wrote: Hi, I took some numbers to compare with. Material and methods Polygon layer, rather simple polygons with few vertises, Feature Count: 117383 DEBUG 5 in mapfile WMS client asks for the whole layer Mapserver 5.2.1 (CGI) on not so fast Windows computer Results First request: rendering time taken from the log file are between 3.5 and 4.5 seconds Following request, BBOX is changing but all the polygons are drawn though: rendering times 1.5 - 2.5 seconds Conclusions and discussion At first one might think that my server is faster. But this test is not controlled at all because we are not using the same shapefiles and we can't say so. What we can say that a couple of hundred of thousand polygons can be drawn faster. However, it does not really make sense to render an image this way if it should be fast. If the screen has 1000 by 1000 pixels it makes a million pixels together. For 200000 polygons it makes 5 pixels per polygon. You can simplify your polygon geometries pretty much before anybody can see the differense. If the polygons are spread evenly nobody can even see the difference if there are 20000 or 200000 polygons on the screen. We have one polygon layer with about million polygons and for that I made two simplified layers which contain only 1 percent and 10 percent of all the polygons. Those and the original shapefile are put into the same scale dependent WMS GROUP layer. This group is pretty fast at any scale. The 1 percent layer is perhaps a bit too sparse but I have been too lazy to have a try with 2 or 5 percent samples. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dejan.gambin at coin.hr Fri Sep 3 02:31:14 2010 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Fri, 3 Sep 2010 11:31:14 +0200 Subject: [mapserver-users] Artifacts on raster dataset after using gdaladdo Message-ID: <4B41B076-7421-453C-9A72-9CE614427EF5@coin.hr> Hi, I have a set of aerial ortophoto images. I have done the following: 1. gdal_translate -co "TILED=YES" on all of them 2. gdaladdo 2 4 8 16 on all of them 3. gdaltindex The problem is - artifacts appear in the lower right corner of each raster file (tiled and overviewed). They ave different colors depending of the scale. For example, on 1:15000 scale they appear as yellow squares. On 1:10000 scale they appear as blue _| (reverse "L"). On 1:5000 they disappear I investigated and found out this happens after using gdaladdo. I am using gdaladdo from gdal-bin on 64bit debian. The version of gdal-bin is 1.5.2-3. I saw similar issues reported in ticket #2346 2 years ago. Should I use newer GDAL library? regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From webturtles at gmail.com Fri Sep 3 02:54:09 2010 From: webturtles at gmail.com (Chris Jackson) Date: Fri, 3 Sep 2010 10:54:09 +0100 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: Jukka Thank you for the code I will give it a go. I guess I will dust off the field calculator in ArcMap and see if that improves things somewhat, I guess that is a similar overhead when classifying a raster by pixel value (not sure how to fix that). So if I understand you right then I would just use a number per class (1-15 say) in the new attribute field and then code something like: CLASSITEM "MEAN_SP_PC" CLASS EXPRESSION "1" NAME "> 4.00 (m/s)" STYLE COLOR 135 99 64 END END Thanks again for the insight. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Sep 3 03:07:20 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 3 Sep 2010 12:07:20 +0200 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: That would be the fastest yes. Even more so if you order the classes inside your layer by order of occurences, i.e. the most common classes first, and the least common ones last. -- thomas On Fri, Sep 3, 2010 at 11:54, Chris Jackson wrote: > Jukka > > Thank you for the code I will give it a go.? I guess I will dust off the > field calculator in ArcMap and see if that improves things somewhat, I guess > that is a similar overhead when classifying a raster by pixel value (not > sure how to fix that).? So if I understand you right then I would just use a > number per class (1-15 say) in the new attribute field and then code > something like: > > ?CLASSITEM "MEAN_SP_PC" > ? CLASS > ??? EXPRESSION "1" > ??? NAME "> 4.00 (m/s)" > ??? STYLE > ????? COLOR 135 99 64 > ??? END > ? END > > Thanks again for the insight. > Chris > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From thomas.bonfort at gmail.com Fri Sep 3 03:12:12 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 3 Sep 2010 12:12:12 +0200 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: On Fri, Sep 3, 2010 at 11:12, Chris Jackson wrote: > Hi Jukka > > Thanks for the response and the great investigative work! > My log entry for drawing the layer is - [Fri Sep 03 10:01:25 2010].658000 > msDrawMap(): Layer 1 (meanspringpeakflow), 24.500s. :o( > > I do wonder if my Mapfile layer definition is just v.poor (admittedly no > expert!) so have taken an excerpt of the layer defintion (there are about 15 > classes in all) - views anyone, should I be loading it a different way? > > Also Jukka, could I get a sample of your scale dependent WMS GROUP layer map > code - as it sounds like a great idea maybe for this but also some v.hi-res > model grids I am thinking about. > > Thanks again, much appreciated! > Chris > > LAYER > ? NAME "meanspringpeakflow" > ? TYPE polygon > ? DEBUG 5 > ? DATA "Tide" > ? TEMPLATE void > ? PROJECTION > ?? "+proj=utm +zone=31 +ellps=GRS80 +units=m +no_defs" > ? END > ? METADATA > ??? "DESCRIPTION" "Mean Spring Peak Flow" > ??? "RESULT_FIELDS" "ID,DISTANCE,DEPTH,MEAN_SP_PC" > ??? "RESULT_HEADERS" "ID,Minimum Distance (m),Average Depth (m),Mean Spring > Peak Flow (m/s)" > ??? "ows_title"????? "meanspringpeakflow" > ??? "RESULT_HYPERLINK" "ID|| Load graphing tool" > ? END? # Metadata > ??? ??? CLASS > ??? ??? ??? NAME '> 4.00 (m/s) ' > ??? ??? ??? EXPRESSION ([MEAN_SP_PC] >= 4 AND [MEAN_SP_PC] < 4.5) > ??? ??? ??? STYLE > ??? ??? ??? ??? COLOR 135 99 64 > ??? ??? ??? END #end style > ??? ??? END # end class > ??? ??? CLASS > ??? ??? ??? NAME '3.51 - 4.00' > ??? ??? ??? EXPRESSION ([MEAN_SP_PC] >= 3.5 AND [MEAN_SP_PC] < 4) > ??? ??? ??? STYLE > > ??? ??? ??? ??? COLOR 158 126 63 > ??? ??? ??? END #end style > ??? ??? END # end class > etc etc > you can speed things up a little by simplifying your expressions in case mean_sp_pc is a continous value: class expression ([item]>=4) ... end class expression ([item]>=3.5) #this suffices and implies [item] <4 as all entries with [item]>=4 wil have been treated by the first class ... end class ...etc... end regards, thomas > > On 3 September 2010 09:04, Rahkonen Jukka wrote: >> >> Hi, >> >> I took some numbers to compare with. >> >> Material and methods >> >> Polygon layer, rather simple polygons with few vertises, Feature Count: >> 117383 >> DEBUG 5 in mapfile >> WMS client asks for the whole layer >> Mapserver 5.2.1 (CGI) on not so fast Windows computer >> Results >> First request: rendering time taken from?the log file are between 3.5 and >> 4.5 seconds >> Following request, BBOX is changing but all the polygons are drawn >> though:? rendering times 1.5 - 2.5 seconds >> >> Conclusions and discussion >> At first one might think that my server is faster.??But this test is not >> controlled at all because we are not using the same shapefiles and we can't >> say so. What?we can say?that a couple of hundred of thousand polygons can be >> drawn faster. >> >> However, it does not really make sense to render an image this way if it >> should be fast.? If the screen has 1000 by 1000 pixels it makes a million >> pixels together.? For 200000 polygons it makes 5 pixels per polygon.? You >> can simplify your polygon geometries?pretty much before anybody can see the >> differense.??If the polygons are spread evenly nobody can even see the >> difference if there are 20000 or?200000 polygons on the screen. >> >> We have one polygon layer with about million polygons and for that I made >> two?simplified layers which contain only 1 percent and 10 percent of all the >> polygons.? Those and the original shapefile?are put into the same scale >> dependent WMS GROUP layer.?This group is pretty fast at any scale.? The 1 >> percent layer is perhaps a bit too sparse but I have been too lazy to have a >> try with 2 or 5 percent samples. >> >> -Jukka Rahkonen- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From webturtles at gmail.com Fri Sep 3 04:05:05 2010 From: webturtles at gmail.com (Chris Jackson) Date: Fri, 3 Sep 2010 12:05:05 +0100 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: Ok Folks I am now ready to go home and have a sit down!! I have re-classified the layer with a new class column and then ordered the shapefile by the most common classes..... the results are in...... <3.5 secs for the entire layer to draw!! (only a saving of 21secs +) - the main saving was by just reclassifying. Thanks to all as this has been a great learning experience, I am now going to see if I can find a bigger model grid to play with.....! ;o) Chris On 3 September 2010 11:07, thomas bonfort wrote: > That would be the fastest yes. Even more so if you order the classes > inside your layer by order of occurences, i.e. the most common classes > first, and the least common ones last. > > -- > thomas > > On Fri, Sep 3, 2010 at 11:54, Chris Jackson wrote: > > Jukka > > > > Thank you for the code I will give it a go. I guess I will dust off the > > field calculator in ArcMap and see if that improves things somewhat, I > guess > > that is a similar overhead when classifying a raster by pixel value (not > > sure how to fix that). So if I understand you right then I would just > use a > > number per class (1-15 say) in the new attribute field and then code > > something like: > > > > CLASSITEM "MEAN_SP_PC" > > CLASS > > EXPRESSION "1" > > NAME "> 4.00 (m/s)" > > STYLE > > COLOR 135 99 64 > > END > > END > > > > Thanks again for the insight. > > Chris > > > > > > _______________________________________________ > > 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 domenico.febbo at gmail.com Fri Sep 3 04:25:30 2010 From: domenico.febbo at gmail.com (Domenico Febbo) Date: Fri, 3 Sep 2010 13:25:30 +0200 Subject: [mapserver-users] rotation issue using mores symbols for a class In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: DFE Date: 2010/9/3 Subject: rotation issue using mores symbols for a class To: mapserver-users at lists.osgeo.org Hi all, using a POINT Layer, I need to use a CLASS with two symbols: i.e. two triangles one inside the other. I followed the reference [1] and everything work as aspected excepet when I applied a rotation using the ANGLE property: if the ANGLE value isn't a "standard" value like 0?, 90? etc. the inner shape isn't centered inside the bigger, see [2]. I'm using Mapserver 5.6.3, following the mapfile part. LAYER NAME 'layer_sht' TYPE POINT DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT 5 35 25 50 DATA '../tracks.shp|layerid=0' METADATA 'ows_title' 'layer_sht' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME 'IS_SHT' EXPRESSION ( '[IS_SHT]' eq 'Y' ) ) STYLE SYMBOL "triangle3" #SIZE 16 COLOR 255 0 0 #OUTLINECOLOR 0 0 0 ANGLE [COURSE] END STYLE SYMBOL "triangle3" SIZE 8.0 #OUTLINECOLOR 0 0 0 COLOR 0 0 0 ANGLE [COURSE] END END END What is the best way to paint that symbols? Thanks in advance, Domenico. [1] http://mapserver.org/mapfile/symbology/construction.html#sym-construction [2] http://shareimage.org/images/jc2mjqtm5mumqrlkvd2u.png -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Fri Sep 3 06:12:55 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 3 Sep 2010 08:12:55 -0500 Subject: [mapserver-users] formatting query and identify results Message-ID: <3D56274B4A7874468F58FADDBFD09801099932D9@llmhs02.r8nssis.local> Hello, I have an application that I am working on. The parcel id is in a xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x for an external tax database application. I will not be updating the data, and therefore I will need to make this change through code. I have worked on previous applications using java. For example I would use parcel = ( this.substring(0,2) + "-" + this.substring(3,9). However, unless I am wrong, mapserver does not appear to pass javascript through templates. Is there a way that I can convert the format of numbers directly in the template? Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Fri Sep 3 07:01:34 2010 From: andy at squeakycode.net (Andy Colson) Date: Fri, 03 Sep 2010 09:01:34 -0500 Subject: [mapserver-users] formatting query and identify results In-Reply-To: <3D56274B4A7874468F58FADDBFD09801099932D9@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801099932D9@llmhs02.r8nssis.local> Message-ID: <4C80FFBE.3050508@squeakycode.net> On 9/3/2010 8:12 AM, Mark Volz wrote: > Hello, > > I have an application that I am working on. The parcel id is in a > xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x > for an external tax database application. I will not be updating the > data, and therefore I will need to make this change through code. I have > worked on previous applications using java. For example I would use > parcel = ( this.substring(0,2) + ?-? + this.substring(3,9). However, > unless I am wrong, mapserver does not appear to pass javascript through > templates. > > Is there a way that I can convert the format of numbers directly in the > template? > > Thanks > > Mark Volz > > GIS Specialist Not sure if this is relevant, but I have kinda the same problem, some of my data has parcel masking and some does not. I usually add a new column (I'm use PostGIS, not shapefiles, but I assume you could still do it) and set it with the masking I'd like to display. So I have a pin field and a display_pin field, and can query/join on one and display the other. I know you said you would not update the data, but if I carefully read that as not "modify the existing pin", then adding a new column would not count as "modify the existing pin". -Andy From MarkVolz at co.lyon.mn.us Fri Sep 3 07:08:58 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 3 Sep 2010 09:08:58 -0500 Subject: [mapserver-users] formatting query and identify results In-Reply-To: <4C80FFBE.3050508@squeakycode.net> References: <3D56274B4A7874468F58FADDBFD09801099932D9@llmhs02.r8nssis.local> <4C80FFBE.3050508@squeakycode.net> Message-ID: <3D56274B4A7874468F58FADDBFD098010999332C@llmhs02.r8nssis.local> Andy, Thank you for your reply. I could add a new column to the data to create a new mask so that the application will work. However, once I am complete with the development of the application, I will no longer be in control of the data. Since the data source has the wrong mask, any data updates from my client will not include the correct mask. Mark Volz GIS Specialist -----Original Message----- From: Andy Colson [mailto:andy at squeakycode.net] Sent: Friday, September 03, 2010 9:02 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] formatting query and identify results On 9/3/2010 8:12 AM, Mark Volz wrote: > Hello, > > I have an application that I am working on. The parcel id is in a > xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x > for an external tax database application. I will not be updating the > data, and therefore I will need to make this change through code. I have > worked on previous applications using java. For example I would use > parcel = ( this.substring(0,2) + "-" + this.substring(3,9). However, > unless I am wrong, mapserver does not appear to pass javascript through > templates. > > Is there a way that I can convert the format of numbers directly in the > template? > > Thanks > > Mark Volz > > GIS Specialist Not sure if this is relevant, but I have kinda the same problem, some of my data has parcel masking and some does not. I usually add a new column (I'm use PostGIS, not shapefiles, but I assume you could still do it) and set it with the masking I'd like to display. So I have a pin field and a display_pin field, and can query/join on one and display the other. I know you said you would not update the data, but if I carefully read that as not "modify the existing pin", then adding a new column would not count as "modify the existing pin". -Andy From andy at squeakycode.net Fri Sep 3 07:16:05 2010 From: andy at squeakycode.net (Andy Colson) Date: Fri, 03 Sep 2010 09:16:05 -0500 Subject: [mapserver-users] formatting query and identify results In-Reply-To: <3D56274B4A7874468F58FADDBFD098010999332C@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801099932D9@llmhs02.r8nssis.local> <4C80FFBE.3050508@squeakycode.net> <3D56274B4A7874468F58FADDBFD098010999332C@llmhs02.r8nssis.local> Message-ID: <4C810325.5010700@squeakycode.net> > On 9/3/2010 8:12 AM, Mark Volz wrote: >> Hello, >> >> I have an application that I am working on. The parcel id is in a >> xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x >> for an external tax database application. I will not be updating the >> data, and therefore I will need to make this change through code. I have >> worked on previous applications using java. For example I would use >> parcel = ( this.substring(0,2) + "-" + this.substring(3,9). However, >> unless I am wrong, mapserver does not appear to pass javascript through >> templates. >> >> Is there a way that I can convert the format of numbers directly in the >> template? >> >> Thanks >> >> Mark Volz >> >> GIS Specialist > > Not sure if this is relevant, but I have kinda the same problem, some of > my data has parcel masking and some does not. I usually add a new > column (I'm use PostGIS, not shapefiles, but I assume you could still do > it) and set it with the masking I'd like to display. So I have a pin > field and a display_pin field, and can query/join on one and display the > other. > > I know you said you would not update the data, but if I carefully read > that as not "modify the existing pin", then adding a new column would > not count as "modify the existing pin". > > -Andy > On 9/3/2010 9:08 AM, Mark Volz wrote: > Andy, > > Thank you for your reply. > > I could add a new column to the data to create a new mask so that the > application will work. However, once I am complete with the development of > the application, I will no longer be in control of the data. Since the data > source has the wrong mask, any data updates from my client will not include > the correct mask. > > > Mark Volz > GIS Specialist Ah, bummer. Where in the process are we talking? The beginning? They open a web browser with url http://.../map=a.map&pin=badmask? Or you are generating the map, know the pin, but need to display the bad mask instead of the good? Humm... still using geoMoose? So the backend is cgi w/shapefiles? -Andy From bfraser at geoanalytic.com Fri Sep 3 07:41:07 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 3 Sep 2010 08:41:07 -0600 Subject: [mapserver-users] formatting query and identify results In-Reply-To: <3D56274B4A7874468F58FADDBFD09801099932D9@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801099932D9@llmhs02.r8nssis.local> Message-ID: <4f2b0df76258ae928c4c63806bf78244.squirrel@mail.geoanalytic.com> Mark, I think mapserver will pass Javascript, but the templates must be named using a .html (and note the lower case) extension. I had a problem with using upper case .HTML in mapserver 5.2.1 (http://trac.osgeo.org/mapserver/ticket/784). Depending on the target of the html/javascript, triggering it could get tricky. If its a new window, then onload, etc will work. If its an AJAX framework like GeoMoose then I'm not so sure. With Geomoose 1.6 I used some of the input validation tools to do some calculation, but I haven't looked into similar capability within Geomoose 2.2. Best Regards, Brent Fraser > Hello, > > I have an application that I am working on. The parcel id is in a > xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x > for > an external tax database application. I will not be updating the data, > and > therefore I will need to make this change through code. I have worked on > previous applications using java. For example I would use parcel = ( > this.substring(0,2) + "-" + this.substring(3,9). However, unless I am > wrong, > mapserver does not appear to pass javascript through templates. > > Is there a way that I can convert the format of numbers directly in the > template? > > Thanks > > Mark Volz > GIS Specialist > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lgaudette at ehealthinformation.ca Fri Sep 3 08:17:27 2010 From: lgaudette at ehealthinformation.ca (Lisa Gaudette) Date: Fri, 3 Sep 2010 08:17:27 -0700 (PDT) Subject: [mapserver-users] Re: VRT memory usage (from C# Mapscript) In-Reply-To: <4C7FCA4E.80808@pobox.com> References: <1283441986292-5491654.post@n2.nabble.com> <4C7FCA4E.80808@pobox.com> Message-ID: <1283527047196-5495733.post@n2.nabble.com> Frank Warmerdam wrote: > > Lisa, > > In recent versions of MapServer an effort is made to keep GDAL files open > between render requests for raster layers with a single file as opposed > to a tile index. I wonder if you might be running into a problem with > this behavior in a long running mapscript script. I don't understand > the whole context in which you are operating so I could be off base. But > you might consider adding: > > PROCESSING "CLOSE_CONNECTION=NORMAL" > > to your raster layer to force the files to be closed at the end of a > render. > That seems to fix it. Is there any way to set that option globally when compiling? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/VRT-memory-usage-from-C-Mapscript-tp5491654p5495733.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Fri Sep 3 08:28:52 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 03 Sep 2010 11:28:52 -0400 Subject: [mapserver-users] Re: VRT memory usage (from C# Mapscript) In-Reply-To: <1283527047196-5495733.post@n2.nabble.com> References: <1283441986292-5491654.post@n2.nabble.com> <4C7FCA4E.80808@pobox.com> <1283527047196-5495733.post@n2.nabble.com> Message-ID: <4C811434.6010604@pobox.com> Lisa Gaudette wrote: > > Frank Warmerdam wrote: >> Lisa, >> >> In recent versions of MapServer an effort is made to keep GDAL files open >> between render requests for raster layers with a single file as opposed >> to a tile index. I wonder if you might be running into a problem with >> this behavior in a long running mapscript script. I don't understand >> the whole context in which you are operating so I could be off base. But >> you might consider adding: >> >> PROCESSING "CLOSE_CONNECTION=NORMAL" >> >> to your raster layer to force the files to be closed at the end of a >> render. >> > > That seems to fix it. Is there any way to set that option globally when > compiling? You could change this code in mapraster.c: if( close_connection == NULL && layer->tileindex == NULL ) close_connection = "DEFER"; To assign a default of "NORMAL" instead. 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 dmorissette at mapgears.com Fri Sep 3 08:38:40 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 03 Sep 2010 11:38:40 -0400 Subject: [mapserver-users] Commercial support In-Reply-To: <4C80B8EE.10205@terrestris.de> References: <4C80B8EE.10205@terrestris.de> Message-ID: <4C811680.7030104@mapgears.com> adams wrote: > Sebastian, > > if you just look for application support there are many companies in > each country, if you look for support for further developments and/or > bugfixing there are companies like mapgears or dm solutions and i'm sure > some more. > Thank you Till for the plug. :) As Till wrote, there are several organizations providing professional support and development services and training all around the world, and you can find many of them through OSGeo's service provider directory: http://www.osgeo.org/search_profile I'd add that for any open source project, you can also look up the developers/contributors list and usually several of them are consultants providing professional support/development/training services around the software they develop. Daniel -- Daniel Morissette http://www.mapgears.com/ From pcreso at pcreso.com Fri Sep 3 08:38:49 2010 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 3 Sep 2010 08:38:49 -0700 (PDT) Subject: [mapserver-users] Commercial support In-Reply-To: Message-ID: <940162.29082.qm@web33202.mail.mud.yahoo.com> There are several I know of in New Zealand & others internationally. Where are you after such support? I have often found that companies are more in need of a support contract for legal/liability issues than capability ones. FOSS tends to be on a user beware basis, & rather than take on the responsibility for running & maintaining software systems companies want someone else to be responsible. It brings to mind one contract we lost by offering a FOSS based solution. The response came back that the client did not want an Open Source solution. What they got was a contract with a colleague based on the same Open Source apps we had proposed, with a support contract & no mention that the underlying tools were in fact Open Source. Brent Wood --- On Fri, 9/3/10, Sebastian E. Ovide wrote: From: Sebastian E. Ovide Subject: [mapserver-users] Commercial support To: mapserver-users at lists.osgeo.org Date: Friday, September 3, 2010, 8:51 PM Hi Guys, Some companies choose commercial software such as Oracle MapViewer because they offer the security of commercial support. So if the companies have any problem configuring it (or any other problem) they will use the support that they have paid for. IT engineers in general can learn for them self and with the help of the community support (mailing list) they are able to solve virtually any problem. And MapServer mailing list is the perfect example of that. Nevertheless, CEOs and boards of directors still need some kind of security and they prefer to use software that provide commercial support. Are you guys aware of companies that provide commercial support for MapServer ? thanks, -- Sebastian E. Ovide -----Inline Attachment Follows----- _______________________________________________ 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 sebastian.ovide at gmail.com Fri Sep 3 09:00:35 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Fri, 3 Sep 2010 17:00:35 +0100 Subject: [mapserver-users] Commercial support In-Reply-To: <4C811680.7030104@mapgears.com> References: <4C80B8EE.10205@terrestris.de> <4C811680.7030104@mapgears.com> Message-ID: > http://www.osgeo.org/search_profile > > > Thanks for that guys. That is exactly what I was looking for. -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Sep 3 10:10:44 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 3 Sep 2010 12:10:44 -0500 Subject: [mapserver-users] Display performance In-Reply-To: References: Message-ID: One other tip is that in the case where everything is to be classified you can leave the expression off the last class and it becomes a default. Saves a little processing. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Jackson Sent: Friday, September 03, 2010 6:05 AM To: thomas bonfort Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Display performance Ok Folks I am now ready to go home and have a sit down!! I have re-classified the layer with a new class column and then ordered the shapefile by the most common classes..... the results are in...... <3.5 secs for the entire layer to draw!! (only a saving of 21secs +) - the main saving was by just reclassifying. Thanks to all as this has been a great learning experience, I am now going to see if I can find a bigger model grid to play with.....! ;o) Chris On 3 September 2010 11:07, thomas bonfort > wrote: That would be the fastest yes. Even more so if you order the classes inside your layer by order of occurences, i.e. the most common classes first, and the least common ones last. -- thomas On Fri, Sep 3, 2010 at 11:54, Chris Jackson > wrote: > Jukka > > Thank you for the code I will give it a go. I guess I will dust off the > field calculator in ArcMap and see if that improves things somewhat, I guess > that is a similar overhead when classifying a raster by pixel value (not > sure how to fix that). So if I understand you right then I would just use a > number per class (1-15 say) in the new attribute field and then code > something like: > > CLASSITEM "MEAN_SP_PC" > CLASS > EXPRESSION "1" > NAME "> 4.00 (m/s)" > STYLE > COLOR 135 99 64 > END > END > > Thanks again for the insight. > Chris > > > _______________________________________________ > 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 ibrahimsaricicek at gmail.com Mon Sep 6 01:31:36 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Mon, 6 Sep 2010 01:31:36 -0700 (PDT) Subject: [mapserver-users] Raster Layer Error Message-ID: <1283761896854-5502458.post@n2.nabble.com> Hi All, A 800Mb Jpeg2000 file works on MS4W, but returns an error on Linux. What is meant on the error message? The error message is; msDrawMap(): Image handling error. Failed to draw layer named 'Uydu'. GetBlockRef failed at X block offset 267, Y block offset 96: Unable to access file. GDALRasterIO() failed: drawGDAL() This is layer definition; LAYER NAME 'Uydu' DATA "/var/www/Turkiye.jp2" TYPE RASTER PROJECTION "init=epsg:4326" END STATUS ON END This is Window 7 side; version 5.4.0-rc2 Libs; curl-7.15.1 expat-2.0.1 fcgi-2.4.0 fits-3.0.2 freetype-2.1.10 fribidi-0.19.1 gd-2.0.35 gdal-1.6.0 RC2 geos-2.2.3 gettext-0.13 hdf5 jbigkit-1.6 jpeg-6b libecwj2-3.3 libgeotiff-1.2.3 libiconv-1.9.1 libintl-0.11.5 libpng-1.2.8 libxml2-2.6.23.win32 mapserver-5.2.1 ming-0.2a mrsid-6.0.7.1407 mysql-5.0.18-win32 netcdf-3.6.1 PDFlib-Lite-6.0.2 php-5.2.6 postgresql-8.3.3 proj-4.6.1 Python-2.5.1 regex-0.12 sqlite3 SWIG-1.3.33 tiff-cvs (02/04/08) xerces-c-2.7.0 zlib-1.2.3 This is Debian Lenny 64-bit server side; version 5.4.2 libs; Mapserv 5.4.2 -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 -L/usr/local/src/agg-2.4//src -lagg -ltiff -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -L/usr/lib -lgeos_c -L/usr/lib -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdf -ldf -lgif -ljpeg -ltiff -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lcurl -L/usr/lib -lpq -L/usr/lib/mysql -lmysqlclient -lmysqlclient -lcurl -L/usr/lib -lgeos_c -lpthread -L -lc -lz -lxml2 -lm -lstdc++ Gd-2.0.35 Gdal 1.7.2 ./configure --with-png --with-jpeg --with-gif --with-jasper=/usr/local JasPer support: yes (GeoJP2=yes) jasper-1.900.1.uuid ./configure -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Layer-Error-tp5502458p5502458.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sumit321 at hotmail.com Mon Sep 6 02:23:55 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Mon, 6 Sep 2010 02:23:55 -0700 (PDT) Subject: [mapserver-users] Re: Raster Layer Error In-Reply-To: <1283761896854-5502458.post@n2.nabble.com> References: <1283761896854-5502458.post@n2.nabble.com> Message-ID: <1283765035964-5502593.post@n2.nabble.com> I would suggest you to revisit your path, try using shapepath, imagepath etc. and make sure that you are able to refer your files properly. You may also like to carefully observe permissions on your server. Try to see mapserver debug info by setting debug level 5, that may also give you some more information about your problem. -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Layer-Error-tp5502458p5502593.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ibrahimsaricicek at gmail.com Mon Sep 6 04:55:48 2010 From: ibrahimsaricicek at gmail.com (ibrahim saricicek) Date: Mon, 6 Sep 2010 14:55:48 +0300 Subject: [mapserver-users] Re: Raster Layer Error In-Reply-To: <1283765035964-5502593.post@n2.nabble.com> References: <1283761896854-5502458.post@n2.nabble.com> <1283765035964-5502593.post@n2.nabble.com> Message-ID: Hi.. No it's not about the path, I've tried shapepath either. On Mon, Sep 6, 2010 at 12:23 PM, Sumit Sharma [via OSGeo.org] < ml-node+5502593-320101334-10162 at n2.nabble.com > wrote: > I would suggest you to revisit your path, try using shapepath, imagepath > etc. and make sure that you are able to refer your files properly. > You may also like to carefully observe permissions on your server. Try to > see mapserver debug info by setting debug level 5, that may also give you > some more information about your problem. > -Sumit > > ------------------------------ > View message @ > http://osgeo-org.1803224.n2.nabble.com/Raster-Layer-Error-tp5502458p5502593.html > To unsubscribe from Raster Layer Error, click here. > > > Hi Hi All, A 800Mb Jpeg2000 file works on MS4W, but returns an error on Linux. What is meant on the error message? *The error message is;* msDrawMap(): Image handling error. Failed to draw layer named 'Uydu'. GetBlockRef failed at X block offset 267, Y block offset 96: Unable to access file. GDALRasterIO() failed: drawGDAL() *This is layer definition;* LAYER NAME 'Uydu' DATA "/var/www/Turkiye.jp2" TYPE RASTER PROJECTION "init=epsg:4326" END STATUS ON END * This is Window 7 side;* version 5.4.0-rc2 Libs; curl-7.15.1 expat-2.0.1 fcgi-2.4.0 fits-3.0.2 freetype-2.1.10 fribidi-0.19.1 gd-2.0.35 gdal-1.6.0 RC2 geos-2.2.3 gettext-0.13 hdf5 jbigkit-1.6 jpeg-6b libecwj2-3.3 libgeotiff-1.2.3 libiconv-1.9.1 libintl-0.11.5 libpng-1.2.8 libxml2-2.6.23.win32 mapserver-5.2.1 ming-0.2a mrsid-6.0.7.1407 mysql-5.0.18-win32 netcdf-3.6.1 PDFlib-Lite-6.0.2 php-5.2.6 postgresql-8.3.3 proj-4.6.1 Python-2.5.1 regex-0.12 sqlite3 SWIG-1.3.33 tiff-cvs (02/04/08) xerces-c-2.7.0 zlib-1.2.3 *This is Debian Lenny 64-bit server side;* version 5.4.2 libs; Mapserv 5.4.2 -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 -L/usr/local/src/agg-2.4//src -lagg -ltiff -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -L/usr/lib -lgeos_c -L/usr/lib -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdf -ldf -lgif -ljpeg -ltiff -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lcurl -L/usr/lib -lpq -L/usr/lib/mysql -lmysqlclient -lmysqlclient -lcurl -L/usr/lib -lgeos_c -lpthread -L -lc -lz -lxml2 -lm -lstdc++ Gd-2.0.35 Gdal 1.7.2 ./configure --with-png --with-jpeg --with-gif --with-jasper=/usr/local JasPer support: yes (GeoJP2=yes) jasper-1.900.1.uuid ./configure -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibrahimsaricicek at gmail.com Mon Sep 6 04:55:52 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Mon, 6 Sep 2010 04:55:52 -0700 (PDT) Subject: [mapserver-users] Re: Raster Layer Error In-Reply-To: <1283765035964-5502593.post@n2.nabble.com> References: <1283761896854-5502458.post@n2.nabble.com> <1283765035964-5502593.post@n2.nabble.com> Message-ID: Hi.. No it's not about the path, I've tried shapepath either. On Mon, Sep 6, 2010 at 12:23 PM, Sumit Sharma [via OSGeo.org] < ml-node+5502593-320101334-10162 at n2.nabble.com > wrote: > I would suggest you to revisit your path, try using shapepath, imagepath > etc. and make sure that you are able to refer your files properly. > You may also like to carefully observe permissions on your server. Try to > see mapserver debug info by setting debug level 5, that may also give you > some more information about your problem. > -Sumit > > ------------------------------ > View message @ > http://osgeo-org.1803224.n2.nabble.com/Raster-Layer-Error-tp5502458p5502593.html > To unsubscribe from Raster Layer Error, click here. > > > Hi Hi All, A 800Mb Jpeg2000 file works on MS4W, but returns an error on Linux. What is meant on the error message? *The error message is;* msDrawMap(): Image handling error. Failed to draw layer named 'Uydu'. GetBlockRef failed at X block offset 267, Y block offset 96: Unable to access file. GDALRasterIO() failed: drawGDAL() *This is layer definition;* LAYER NAME 'Uydu' DATA "/var/www/Turkiye.jp2" TYPE RASTER PROJECTION "init=epsg:4326" END STATUS ON END * This is Window 7 side;* version 5.4.0-rc2 Libs; curl-7.15.1 expat-2.0.1 fcgi-2.4.0 fits-3.0.2 freetype-2.1.10 fribidi-0.19.1 gd-2.0.35 gdal-1.6.0 RC2 geos-2.2.3 gettext-0.13 hdf5 jbigkit-1.6 jpeg-6b libecwj2-3.3 libgeotiff-1.2.3 libiconv-1.9.1 libintl-0.11.5 libpng-1.2.8 libxml2-2.6.23.win32 mapserver-5.2.1 ming-0.2a mrsid-6.0.7.1407 mysql-5.0.18-win32 netcdf-3.6.1 PDFlib-Lite-6.0.2 php-5.2.6 postgresql-8.3.3 proj-4.6.1 Python-2.5.1 regex-0.12 sqlite3 SWIG-1.3.33 tiff-cvs (02/04/08) xerces-c-2.7.0 zlib-1.2.3 *This is Debian Lenny 64-bit server side;* version 5.4.2 libs; Mapserv 5.4.2 -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 -L/usr/local/src/agg-2.4//src -lagg -ltiff -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -L/usr/lib -lgeos_c -L/usr/lib -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdf -ldf -lgif -ljpeg -ltiff -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -lcurl -L/usr/lib -lpq -L/usr/lib/mysql -lmysqlclient -lmysqlclient -lcurl -L/usr/lib -lgeos_c -lpthread -L -lc -lz -lxml2 -lm -lstdc++ Gd-2.0.35 Gdal 1.7.2 ./configure --with-png --with-jpeg --with-gif --with-jasper=/usr/local JasPer support: yes (GeoJP2=yes) jasper-1.900.1.uuid ./configure -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Layer-Error-tp5502458p5502902.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Sep 6 06:37:55 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 06 Sep 2010 09:37:55 -0400 Subject: [mapserver-users] Re: Raster Layer Error In-Reply-To: References: <1283761896854-5502458.post@n2.nabble.com> <1283765035964-5502593.post@n2.nabble.com> Message-ID: <4C84EEB3.4010503@swoodbridge.com> Have you checked: ls -la /var/www/Turkiye.jp2 ls -la /var/www And made sure that this are accessible by apache? What does: .../cgi-bin/mapserv -v report? -Steve W On 9/6/2010 7:55 AM, Ibrahim Saricicek wrote: > Hi.. > > No it's not about the path, I've tried shapepath either. > > On Mon, Sep 6, 2010 at 12:23 PM, Sumit Sharma [via OSGeo.org] <[hidden > email] > wrote: > > I would suggest you to revisit your path, try using shapepath, > imagepath etc. and make sure that you are able to refer your files > properly. > You may also like to carefully observe permissions on your server. > Try to see mapserver debug info by setting debug level 5, that may > also give you some more information about your problem. > -Sumit > > ------------------------------------------------------------------------ > View message @ > http://osgeo-org.1803224.n2.nabble.com/Raster-Layer-Error-tp5502458p5502593.html > > > To unsubscribe from Raster Layer Error, click here > . > > > Hi Hi All, > > A 800Mb Jpeg2000 file works on MS4W, but returns an error on Linux. > What is meant on the error message? > > *The error message is;* > > msDrawMap(): Image handling error. Failed to draw layer named 'Uydu'. > GetBlockRef failed at X block offset 267, Y block offset 96: Unable to > access file. GDALRasterIO() failed: drawGDAL() > > > > *This is layer definition;* > > LAYER > NAME 'Uydu' > DATA "/var/www/Turkiye.jp2" > TYPE RASTER > PROJECTION > "init=epsg:4326" > END > STATUS ON > END > > * > This is Window 7 side;* > > version 5.4.0-rc2 Libs; > curl-7.15.1 > expat-2.0.1 > fcgi-2.4.0 > fits-3.0.2 > freetype-2.1.10 > fribidi-0.19.1 > gd-2.0.35 > gdal-1.6.0 RC2 > geos-2.2.3 > gettext-0.13 > hdf5 > jbigkit-1.6 > jpeg-6b > libecwj2-3.3 > libgeotiff-1.2.3 > libiconv-1.9.1 > libintl-0.11.5 > libpng-1.2.8 > libxml2-2.6.23.win32 > mapserver-5.2.1 > ming-0.2a > mrsid-6.0.7.1407 > mysql-5.0.18-win32 > netcdf-3.6.1 > PDFlib-Lite-6.0.2 > php-5.2.6 > postgresql-8.3.3 > proj-4.6.1 > Python-2.5.1 > regex-0.12 > sqlite3 > SWIG-1.3.33 > tiff-cvs (02/04/08) > xerces-c-2.7.0 > zlib-1.2.3 > > *This is Debian Lenny 64-bit server side;* > > version 5.4.2 libs; > Mapserv 5.4.2 > > -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 > -L/usr/local/src/agg-2.4//src -lagg -ltiff -ljpeg -lfreetype -lz -lpng > -lz -lXpm -lX11 -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -L/usr/lib > -lgeos_c -L/usr/lib -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat > -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdf -ldf -lgif > -ljpeg -ltiff -lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl > -lcurl -L/usr/lib -lpq -L/usr/lib/mysql -lmysqlclient -lmysqlclient > -lcurl -L/usr/lib -lgeos_c -lpthread -L -lc -lz -lxml2 -lm -lstdc++ > > Gd-2.0.35 > > Gdal 1.7.2 > ./configure --with-png --with-jpeg --with-gif --with-jasper=/usr/local > JasPer support: yes (GeoJP2=yes) > > jasper-1.900.1.uuid > ./configure > ------------------------------------------------------------------------ > View this message in context: Re: Raster Layer Error > > 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 mpg70221725 at yahoo.com.ar Mon Sep 6 07:24:08 2010 From: mpg70221725 at yahoo.com.ar (joel ml) Date: Mon, 6 Sep 2010 07:24:08 -0700 (PDT) Subject: [mapserver-users] Example of mapscript Java Message-ID: <285620.58702.qm@web33901.mail.mud.yahoo.com> subi un proyecto basado en Mapscript Java, es una interfaz GUI para mapserver aun esta en desarrollo, si quieren colaborar en el proyecto: http://evsigmapserverj.sourceforge.net/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From ven.tammineni at gmail.com Mon Sep 6 22:46:53 2010 From: ven.tammineni at gmail.com (venkat) Date: Tue, 7 Sep 2010 11:16:53 +0530 Subject: [mapserver-users] Split Polygon using Clint or server side code not with PostGIS Message-ID: Dear All, How i can split polygon by client(JavaScript code) or Server side(C#).I have done splitting polygon using Postgis..I am not able to understand how to split polygon by code(client or server side code.Please let me know .Its very urgent. I am waiting for your great response. Thanks and Regards, Ven -------------- next part -------------- An HTML attachment was scrubbed... URL: From wimvanbelle at gmail.com Mon Sep 6 23:55:03 2010 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Tue, 7 Sep 2010 08:55:03 +0200 Subject: [mapserver-users] Split Polygon using Clint or server side code not with PostGIS In-Reply-To: References: Message-ID: Hi, Are you trying to split a polygon using another geo object like a line? Or do you just want to divide the polygon in smaller pieces? You may want to look at triangulation for that. Take a look here: http://en.wikipedia.org/wiki/Polygon_triangulation Best regards, Wim On 7 September 2010 07:46, venkat wrote: > Dear All, > > How i can split polygon by client(JavaScript code) or Server side(C#).I > have done splitting polygon using Postgis..I am not able to understand how > to split polygon by code(client or server side code.Please let me know .Its > very urgent. > > I am waiting for your great response. > > Thanks and Regards, > > Ven > > _______________________________________________ > 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 ven.tammineni at gmail.com Mon Sep 6 23:59:37 2010 From: ven.tammineni at gmail.com (venkat) Date: Tue, 7 Sep 2010 12:29:37 +0530 Subject: [mapserver-users] Split Polygon using Clint or server side code not with PostGIS In-Reply-To: References: Message-ID: Dear Wim, Thanks for your great response...I am not looking for triangulation(tin).I am looking for Split operation based on line...I did it using PostGIS (st_split) function.I want to work it by coding (that can be client or server side code.....)..Please let me know is it possible.if it is possible, please let me know.. Thanks and Regards, Ven On Tue, Sep 7, 2010 at 12:25 PM, Wim Vanbelle wrote: > Hi, > > Are you trying to split a polygon using another geo object like a line? > > Or do you just want to divide the polygon in smaller pieces? You may want > to look at triangulation for that. Take a look here: > http://en.wikipedia.org/wiki/Polygon_triangulation > > Best regards, > Wim > > On 7 September 2010 07:46, venkat wrote: > >> Dear All, >> >> How i can split polygon by client(JavaScript code) or Server side(C#).I >> have done splitting polygon using Postgis..I am not able to understand how >> to split polygon by code(client or server side code.Please let me know .Its >> very urgent. >> >> I am waiting for your great response. >> >> Thanks and Regards, >> >> Ven >> >> _______________________________________________ >> 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 wimvanbelle at gmail.com Tue Sep 7 01:09:02 2010 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Tue, 7 Sep 2010 10:09:02 +0200 Subject: [mapserver-users] Split Polygon using Clint or server side code not with PostGIS In-Reply-To: References: Message-ID: Hmm. No guarantees, but perhaps the geoapi.net or nettopolgysuite have this functionality. Alternatively, what you could do, although it still involves a spatial database, is use the C# Sql Spatial libraries. You could install a microsoft sql server 2008 (spatial) database, reference the spatial libraries and perform the split of the polygon with those spatial functions, using C#. But as you stated, this is probably not the solution you are looking for. Maybe someone else is aware of another third party library that does this :). On 7 September 2010 08:59, venkat wrote: > Dear Wim, > > Thanks for your great response...I am not looking for > triangulation(tin).I am looking for Split operation based on line...I did it > using PostGIS (st_split) function.I want to work it by coding (that can be > client or server side code.....)..Please let me know is it possible.if it is > possible, please let me know.. > > Thanks and Regards, > > Ven > > On Tue, Sep 7, 2010 at 12:25 PM, Wim Vanbelle wrote: > >> Hi, >> >> Are you trying to split a polygon using another geo object like a line? >> >> Or do you just want to divide the polygon in smaller pieces? You may want >> to look at triangulation for that. Take a look here: >> http://en.wikipedia.org/wiki/Polygon_triangulation >> >> Best regards, >> Wim >> >> On 7 September 2010 07:46, venkat wrote: >> >>> Dear All, >>> >>> How i can split polygon by client(JavaScript code) or Server >>> side(C#).I have done splitting polygon using Postgis..I am not able to >>> understand how to split polygon by code(client or server side code.Please >>> let me know .Its very urgent. >>> >>> I am waiting for your great response. >>> >>> Thanks and Regards, >>> >>> Ven >>> >>> _______________________________________________ >>> 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 ven.tammineni at gmail.com Tue Sep 7 01:24:49 2010 From: ven.tammineni at gmail.com (venkat) Date: Tue, 7 Sep 2010 13:54:49 +0530 Subject: [mapserver-users] Split Polygon using Clint or server side code not with PostGIS In-Reply-To: References: Message-ID: Dear Wim, Thanks for your response.I am looking into the same. Thanks and Regards, Ven On Tue, Sep 7, 2010 at 1:39 PM, Wim Vanbelle wrote: > Hmm. No guarantees, but perhaps the geoapi.net or nettopolgysuite have > this functionality. > > Alternatively, what you could do, although it still involves a spatial > database, is use the C# Sql Spatial libraries. You could install a > microsoft sql server 2008 (spatial) database, reference the spatial > libraries and perform the split of the polygon with those spatial functions, > using C#. But as you stated, this is probably not the solution you are > looking for. > > Maybe someone else is aware of another third party library that does this > :). > > > > > On 7 September 2010 08:59, venkat wrote: > >> Dear Wim, >> >> Thanks for your great response...I am not looking for >> triangulation(tin).I am looking for Split operation based on line...I did it >> using PostGIS (st_split) function.I want to work it by coding (that can be >> client or server side code.....)..Please let me know is it possible.if it is >> possible, please let me know.. >> >> Thanks and Regards, >> >> Ven >> >> On Tue, Sep 7, 2010 at 12:25 PM, Wim Vanbelle wrote: >> >>> Hi, >>> >>> Are you trying to split a polygon using another geo object like a line? >>> >>> Or do you just want to divide the polygon in smaller pieces? You may want >>> to look at triangulation for that. Take a look here: >>> http://en.wikipedia.org/wiki/Polygon_triangulation >>> >>> Best regards, >>> Wim >>> >>> On 7 September 2010 07:46, venkat wrote: >>> >>>> Dear All, >>>> >>>> How i can split polygon by client(JavaScript code) or Server >>>> side(C#).I have done splitting polygon using Postgis..I am not able to >>>> understand how to split polygon by code(client or server side code.Please >>>> let me know .Its very urgent. >>>> >>>> I am waiting for your great response. >>>> >>>> Thanks and Regards, >>>> >>>> Ven >>>> >>>> _______________________________________________ >>>> 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 rgonzalez at normagricola.com Tue Sep 7 00:47:23 2010 From: rgonzalez at normagricola.com (=?iso-8859-1?Q?Rom=E1n_Gonz=E1lez?=) Date: Tue, 7 Sep 2010 09:47:23 +0200 Subject: [mapserver-users] MapServer and MapScript in separate hosts Message-ID: <000301cb4e60$e8a0cb70$b9e26250$@com> Hello: Maybe it?s a silly question but I?d like to know if I can use MapScript in a web server with PHP being MapServer installed in a different host. All the examples I?ve seen seem to run in the same server and I can?t find a way to set up an URL for the MapServer location. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wimvanbelle at gmail.com Tue Sep 7 02:07:26 2010 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Tue, 7 Sep 2010 11:07:26 +0200 Subject: [mapserver-users] MapServer and MapScript in separate hosts In-Reply-To: <000301cb4e60$e8a0cb70$b9e26250$@com> References: <000301cb4e60$e8a0cb70$b9e26250$@com> Message-ID: Hi, If you compile mapserver from source, you can use ./configure --prefix=/path/to/executable to install it in the folder you want. You do need to make sure that LD can find the shared libraries. This should then be set in apache config so that the right environment paths are loaded. As for the external URL thing. Just configure a CGI script at a given URL (as configured in your webserver) and then point to the location of your mapserv executable. Perhaps this is what you are looking for: http://mapserver.org/cgi/wrapper.html 2010/9/7 Rom?n Gonz?lez > Hello: > > > > Maybe it?s a silly question but I?d like to know if I can use MapScript in > a web server with PHP being MapServer installed in a different host. All the > examples I?ve seen seem to run in the same server and I can?t find a way to > set up an URL for the MapServer location. > > > > Thank you. > > _______________________________________________ > 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 jhevenor at rogers.com Tue Sep 7 03:41:14 2010 From: jhevenor at rogers.com (Joshua Hevenor) Date: Tue, 7 Sep 2010 03:41:14 -0700 (PDT) Subject: [mapserver-users] Split Polygon using Clint or server side code not with PostGIS In-Reply-To: Message-ID: <98647.80076.qm@web88007.mail.re2.yahoo.com> Ven, First,? I took a quick look at the php mapscript documentation (my preferred mapscript) and didn't see anything specific about splitting. Solving a more simplified problem might be a start. Start by getting the bounding box of the polygon ($shp->bounds). Get the two left side coordinates: $p1=(MinX, MaxY), $p2=(MinX, MinY) Build a new polygon using these two points and the endpoints of your line. --> Assumption that your line is not horizontal or intersects the left edge of your bbox. Use the shapeObj::intersection to get the half of your target polygon within the left half of the BBOX. You can repeat this for the right half of the BBOX, or maybe use shapeObj::difference. My first thoughts. You could, alternatively, loop through all of $shp->lines(1..$shp->numlines) and checking for intersection with your split line. A little bookkeeping would allow you to build your two split polygons from this.? I think option 1 might be easier. Hope this helps, Josh --- On Tue, 9/7/10, venkat wrote: From: venkat Subject: [mapserver-users] Split Polygon using Clint or server side code not with PostGIS To: mapserver-users-request at lists.osgeo.org, mapserver-users at lists.osgeo.org Date: Tuesday, September 7, 2010, 1:46 AM Dear All, ?? How i can split polygon by client(JavaScript?code) or Server side(C#).I have done splitting polygon using Postgis..I am not able to understand how to split polygon by code(client?or server side code.Please let me know .Its very urgent. ?I am waiting for your great response. Thanks and Regards, Ven -----Inline Attachment Follows----- _______________________________________________ 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 ven.tammineni at gmail.com Tue Sep 7 03:46:01 2010 From: ven.tammineni at gmail.com (venkat) Date: Tue, 7 Sep 2010 16:16:01 +0530 Subject: [mapserver-users] Split Polygon using Clint or server side code not with PostGIS In-Reply-To: <98647.80076.qm@web88007.mail.re2.yahoo.com> References: <98647.80076.qm@web88007.mail.re2.yahoo.com> Message-ID: Dear Josh, Thanks for your great response.Yes You done my work around... Thanks alot..Let me work on that...i will update you once i done ... Thanks again. Ven On Tue, Sep 7, 2010 at 4:11 PM, Joshua Hevenor wrote: > Ven, > First, I took a quick look at the php mapscript documentation (my > preferred mapscript) and didn't see anything specific about splitting. > Solving a more simplified problem might be a start. > > Start by getting the bounding box of the polygon ($shp->bounds). > Get the two left side coordinates: $p1=(MinX, MaxY), $p2=(MinX, MinY) > Build a new polygon using these two points and the endpoints of your line. > --> Assumption that your line is not horizontal or intersects the left edge > of your bbox. > > Use the shapeObj::intersection to get the half of your target polygon > within the left half of the BBOX. > > You can repeat this for the right half of the BBOX, or maybe use > shapeObj::difference. > > My first thoughts. > > You could, alternatively, loop through all of > $shp->lines(1..$shp->numlines) and checking for intersection with your split > line. A little bookkeeping would allow you to build your two split polygons > from this. I think option 1 might be easier. > > Hope this helps, > > Josh > > --- On *Tue, 9/7/10, venkat * wrote: > > > From: venkat > Subject: [mapserver-users] Split Polygon using Clint or server side code > not with PostGIS > To: mapserver-users-request at lists.osgeo.org, > mapserver-users at lists.osgeo.org > Date: Tuesday, September 7, 2010, 1:46 AM > > > Dear All, > > How i can split polygon by client(JavaScript code) or Server side(C#).I > have done splitting polygon using Postgis..I am not able to understand how > to split polygon by code(client or server side code.Please let me know .Its > very urgent. > > I am waiting for your great response. > > Thanks and Regards, > > Ven > > -----Inline Attachment Follows----- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Sep 7 11:01:32 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 7 Sep 2010 13:01:32 -0500 Subject: [mapserver-users] formatting query and identify results In-Reply-To: <3D56274B4A7874468F58FADDBFD098010999332C@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD09801099932D9@llmhs02.r8nssis.local> <4C80FFBE.3050508@squeakycode.net> <3D56274B4A7874468F58FADDBFD098010999332C@llmhs02.r8nssis.local> Message-ID: You can embed javascript in a template result but it's up to the client to execute it (MapServer won't). Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Friday, September 03, 2010 9:09 AM To: Andy Colson Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] formatting query and identify results Andy, Thank you for your reply. I could add a new column to the data to create a new mask so that the application will work. However, once I am complete with the development of the application, I will no longer be in control of the data. Since the data source has the wrong mask, any data updates from my client will not include the correct mask. Mark Volz GIS Specialist -----Original Message----- From: Andy Colson [mailto:andy at squeakycode.net] Sent: Friday, September 03, 2010 9:02 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] formatting query and identify results On 9/3/2010 8:12 AM, Mark Volz wrote: > Hello, > > I have an application that I am working on. The parcel id is in a > xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x > for an external tax database application. I will not be updating the > data, and therefore I will need to make this change through code. I have > worked on previous applications using java. For example I would use > parcel = ( this.substring(0,2) + "-" + this.substring(3,9). However, > unless I am wrong, mapserver does not appear to pass javascript through > templates. > > Is there a way that I can convert the format of numbers directly in the > template? > > Thanks > > Mark Volz > > GIS Specialist Not sure if this is relevant, but I have kinda the same problem, some of my data has parcel masking and some does not. I usually add a new column (I'm use PostGIS, not shapefiles, but I assume you could still do it) and set it with the masking I'd like to display. So I have a pin field and a display_pin field, and can query/join on one and display the other. I know you said you would not update the data, but if I carefully read that as not "modify the existing pin", then adding a new column would not count as "modify the existing pin". -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From rstoyle at COMCAST.NET Tue Sep 7 15:00:19 2010 From: rstoyle at COMCAST.NET (stoli) Date: Tue, 7 Sep 2010 15:00:19 -0700 (PDT) Subject: [mapserver-users] Dynamically draw different sized ellipses on map Message-ID: <1283896819233-5508425.post@n2.nabble.com> Was hoping on some guidance as to the best way to attack this... My app uses the cgi interface. I have been succesful at drawing lines, squares and small circles on the fly by sending mods to the .map file via the URL. I have been doing this by dynamically adding points to various POINT layers with the afforementioned symbols. Up to this point, the squares and circles have been uniform in size and aspect. Now I find myself needing to add multiple ellipses of varying sizes at different locations on the map. Technically they would be circles of area, but the aspect will change as the location approaches the poles. (almost a true circle at the equator and verly long ellipse toward the poles due to map projection). Ideally the ellipses will be filled with either a hatch pattern or a transparent solid color. Any suggestions as to the best way to accomplish this? Cheers -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dynamically-draw-different-sized-ellipses-on-map-tp5508425p5508425.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fjricca at gmail.com Tue Sep 7 23:17:03 2010 From: fjricca at gmail.com (=?ISO-8859-1?Q?Fco=2E_Javier_Garc=EDa_Ricca?=) Date: Wed, 8 Sep 2010 08:17:03 +0200 Subject: [mapserver-users] can't load img Message-ID: Hello, I am starting to work with linux and I and I have several problems to configure mapserver on Centos 5.5 I have a init.html to call mapserver and it is working ok because it generates an image in the tmp folder specified in the mapfile. However I can't load the image in my page and I get the next error: Forbidden You don't have permission to access /gis/tmp/MS12838635944831.png on this server. Any help will be appreciated. Thanks -- FJRicca -------------- next part -------------- An HTML attachment was scrubbed... URL: From iam980 at gmail.com Wed Sep 8 00:14:22 2010 From: iam980 at gmail.com (Joseph Mamuchishvili) Date: Wed, 8 Sep 2010 10:14:22 +0300 Subject: [mapserver-users] PHPMapscript, Ming & Segmentation fault. Message-ID: Hello, I have compiled MapServer 5.6.4 with PHPMapscript on FreeBSD 8.1. During configuration Ming support was added. phpinfo() returns the following: MapScriptMapServer VersionMapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=SHAPEFILEPHP MapScript Version ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) $) mingMing SWF output libraryenabledVersion0.4.3 I am using the following php script (*testmap.php*): draw(); $image_url=$image->saveImage("\\tmp"); ?> Example 1: Displaying a map
> and the contents for *mapsql.map* file is: MAP NAME "Europe in purple" SIZE 400 400 STATUS ON EXTENT 478895 4615055 485900 4620056 UNITS METERS SHAPEPATH "/home/map/SHP" WEB IMAGEPATH "/map/apache/htdocs/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "wms_title" ##required "wms_onlineresource" " http://soso.freebsd.host/cg-bin/mapserv?map=/map/apache/htdocs/mapsql.map&" "wms_srs" "EPSG:32638" END END PROJECTION "proj=utm" "zone=38" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END QUERYMAP COLOR 0 0 255 STATUS ON STYLE HILITE END LAYER NAME "main_streets" TOLERANCE 1 TOLERANCEUNITS meters CONNECTIONTYPE postgis CONNECTION "user=pgsql dbname=pgsql host=soso.freebsd.host" TEMPLATE "../query/query_template.html" METADATA QUERYABLE "true" fields 'quca_ge:????? ??????????,gid:????' hyperlink 'quca|http://myurl.com' searchfield "quca" RESULT_FIELDS "quca_ge" RESULT_HEADERS "the_geom" END TYPE POLYGON STATUS ON DATA "the_geom from main_streets" CLASS STYLE COLOR 110 50 100 OUTLINECOLOR 200 200 200 END END END END *Everything works fine*, but now *i want to generate flash output*. So I added the following block to *mapsql.map *file: OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=SINGLE" END flash output is not generated and the following is appeared in apache error log: *Segmentation fault (11).* When trying to *launch *the testmap.php script from* the shell* the following happens: /php/bin/php ./testmap.php *newSFWBitmapFillStyle: not a valid Bitmap FillStyle: 0* Segmentation fault (core dumped) What is the reason of this ? What am I doing wrong ? Any suggestions or help will be appreciated. Joseph. * * -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Wed Sep 8 01:13:09 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Wed, 08 Sep 2010 10:13:09 +0200 Subject: [mapserver-users] mapserv -v as html In-Reply-To: <4C811680.7030104@mapgears.com> References: <4C80B8EE.10205@terrestris.de> <4C811680.7030104@mapgears.com> Message-ID: <4C874595.2000303@uva.nl> Hi, Is there a simple way to do a browser request for "mapserv -v"? If I type an URL like "http://localhost/cgi-bin/mapserv?-v" I get an Internal Server Error, because this way mapserv doesn't return HTTP headers. Jan From dmorissette at mapgears.com Wed Sep 8 03:20:29 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 08 Sep 2010 12:20:29 +0200 Subject: [mapserver-users] mapserv -v as html In-Reply-To: <4C874595.2000303@uva.nl> References: <4C80B8EE.10205@terrestris.de> <4C811680.7030104@mapgears.com> <4C874595.2000303@uva.nl> Message-ID: <4C87636D.4090901@mapgears.com> On 10-09-08 10:13 AM, Jan Hartmann wrote: > > Is there a simple way to do a browser request for "mapserv -v"? If I > type an URL like "http://localhost/cgi-bin/mapserv?-v" I get an > Internal Server Error, because this way mapserv doesn't return HTTP > headers. > There is no dedicated URL param to get the version info, but since it is included by default in a comment in the HTML output generated by MapServer you could call something like "http://localhost/cgi-bin/mapserv?mode=bogus" and then do a view source. Daniel From Matthias_Mueller at tu-dresden.de Wed Sep 8 05:56:51 2010 From: Matthias_Mueller at tu-dresden.de (=?ISO-8859-15?Q?Matthias_M=FCller?=) Date: Wed, 08 Sep 2010 14:56:51 +0200 Subject: [mapserver-users] Video Support on ms4w Message-ID: <4C878813.1030501@tu-dresden.de> Hi, I want create flash-videos on a time-enabled WMS. However, in the capabilities file there is no hint for mimeType "application/x-shockwave-flash" although I configured it in the mapfile: OUTPUTFORMAT NAME swf DRIVER "SWF" MIMETYPE "application/x-shockwave-flash" EXTENSION "swf" IMAGEMODE PC256 FORMATOPTION "OUTPUT_MOVIE=SINGLE" END I am using ms4w 3.0 beta 11 and mapserv -v states: MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF ... Am I missing something? Are there additional parameters to be set in the mapfile? Matthias From Matthias_Mueller at tu-dresden.de Wed Sep 8 05:50:06 2010 From: Matthias_Mueller at tu-dresden.de (=?ISO-8859-1?Q?Matthias_M=FCller?=) Date: Wed, 08 Sep 2010 14:50:06 +0200 Subject: [mapserver-users] mapserv -v as html In-Reply-To: <4C874595.2000303@uva.nl> References: <4C80B8EE.10205@terrestris.de> <4C811680.7030104@mapgears.com> <4C874595.2000303@uva.nl> Message-ID: <4C87867E.10606@tu-dresden.de> If you use WMS, the version information (mapserver version, supported extensions) can be found as an XML comment on top of the GetCapabilities document. (http://localhost/cgi-bin/mapserv?Service=WMS&Version=1.3.0&Request=GetCapabilities) Matthias Am 08.09.2010 10:13, schrieb Jan Hartmann: > Hi, > > Is there a simple way to do a browser request for "mapserv -v"? If I > type an URL like "http://localhost/cgi-bin/mapserv?-v" I get an Internal > Server Error, because this way mapserv doesn't return HTTP headers. > > Jan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Fawcett at state.mn.us Wed Sep 8 06:47:55 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 8 Sep 2010 08:47:55 -0500 Subject: [mapserver-users] Dynamically draw different sized ellipses on map In-Reply-To: <1283896819233-5508425.post@n2.nabble.com> References: <1283896819233-5508425.post@n2.nabble.com> Message-ID: It sounds like you really want to define polygons in an orthogonal projection and then re-project them to geographic to show the distortion. Unless you calculate the appropriate distortion for a particular coordinate and then can pass in the x and y radii for an ellipse symbol, I think that you will need to use polygon features instead of points. You have probably already seen the symbol construction page, but here it is: http://mapserver.org/mapfile/symbology/construction.html#sym-construction Matt Perry wrote kind of a cool example Python script that creates the kind of polygons that you are looking for. This won't work with the way that you are doing things, but it might give you some concepts and ideas. http://www.perrygeo.net/wordpress/?p=4 David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli Sent: Tuesday, September 07, 2010 5:00 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Dynamically draw different sized ellipses on map Was hoping on some guidance as to the best way to attack this... My app uses the cgi interface. I have been succesful at drawing lines, squares and small circles on the fly by sending mods to the .map file via the URL. I have been doing this by dynamically adding points to various POINT layers with the afforementioned symbols. Up to this point, the squares and circles have been uniform in size and aspect. Now I find myself needing to add multiple ellipses of varying sizes at different locations on the map. Technically they would be circles of area, but the aspect will change as the location approaches the poles. (almost a true circle at the equator and verly long ellipse toward the poles due to map projection). Ideally the ellipses will be filled with either a hatch pattern or a transparent solid color. Any suggestions as to the best way to accomplish this? Cheers -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dynamically-draw-different-sized-ellipses-on-map-tp5508425p5508425.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 max1000 at gmail.com Wed Sep 8 07:25:28 2010 From: max1000 at gmail.com (rai 8) Date: Wed, 8 Sep 2010 16:25:28 +0200 Subject: [mapserver-users] mapserver best practices with WFS getFeatureInfo? Message-ID: hi, I'm working in a application that uses mapserver to serve images with wms and single points with wfs, in the client side there is a openlayers script. This already works. Another functionality is when user selects a feature or click in a image the aplication must show some information, like text in table next to the map, depending on the options that user sets. My doubt is about the way to comunicate client and server. The simpler way is to detect with openlayer what has been selected, and send a request to php server script with necessary parameters like id,etc... I prefer to use WFS, with getFeatureInfo, because is more maintainable and standard, but I don't know how to do this with mapserver. The posibilities I think: - create a layer for every option that user can select, every layer knows what information has to been send. - with openlayers send additional parameters with the url , and parse with mapserver( I don't know if it is possible, maybe with a php_mapscript or a filter in conection section ) - runtime substitution of the mapfile or Changing map file parameters via a form or a URL What is the best option? Also, one of this information source is a java class, I must to compile mapserver to get a Java support or is more easier to create a wfs server with geotools? Thank you for any answers. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstoyle at COMCAST.NET Wed Sep 8 09:10:31 2010 From: rstoyle at COMCAST.NET (stoli) Date: Wed, 8 Sep 2010 09:10:31 -0700 (PDT) Subject: [mapserver-users] RE: Dynamically draw different sized ellipses on map In-Reply-To: References: <1283896819233-5508425.post@n2.nabble.com> Message-ID: <1283962231582-5511294.post@n2.nabble.com> Thanks David. Those are excellent references. I hadn't seen Matt Perry's site before. The Tissot Indicatrix certainly shows the distortion that I need to deal with due to map projection. I think I can work out the geometry of the ellipses. Assuming that the application needs to be capable of rendering up to 100 of these ellipses at varying locations at any given time, would you say the most efficient way to do this is to program the app to dynamically build a shape file and add it as a map layer each time a user requests the page, or create them as symbols (in which case I think I would need a different layer for each ellipse). I suppose I might run into URL length limits with the latter. Is there another possibility that I am missing? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dynamically-draw-different-sized-ellipses-on-map-tp5508425p5511294.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Wed Sep 8 11:29:52 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 8 Sep 2010 13:29:52 -0500 Subject: [mapserver-users] RE: Dynamically draw different sized ellipses on map In-Reply-To: <1283962231582-5511294.post@n2.nabble.com> References: <1283896819233-5508425.post@n2.nabble.com> <1283962231582-5511294.post@n2.nabble.com> Message-ID: I think that others will be able to answer this far better than I can. There are likely many ways to do this, it might help if you gave us a little bit more info about what you are doing. It sounds like the coordinates and area of the polys are determined on the client side and then need to be passed to the server for rendering? I do see an example in the comments to Matt's post where someone uses MapServer MapScript (in place of a CGI call) to build the data and add it to a dynamic map. It looks like they are writing out a shapefile and then using the shapefile as the source for a layer. I wonder if this might lead to unexpected results unless you can guarantee unique shapefile names for each map request. I believe that if you went the mapscript route, you could just build the poly features dynamically and use them in your layer without writing the features out to disk. I think that optimization will depend on your requirements. If a user starts a session, a data set is built, and then the client requests thousands of tiles based on those same features, there will likely be value in writing the features out to a shapefile or database. On the other hand, if the user hits a page and only one static map will be drawn based on the new unique features, there is likely no need to serialize the features. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli Sent: Wednesday, September 08, 2010 11:11 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: Dynamically draw different sized ellipses on map Thanks David. Those are excellent references. I hadn't seen Matt Perry's site before. The Tissot Indicatrix certainly shows the distortion that I need to deal with due to map projection. I think I can work out the geometry of the ellipses. Assuming that the application needs to be capable of rendering up to 100 of these ellipses at varying locations at any given time, would you say the most efficient way to do this is to program the app to dynamically build a shape file and add it as a map layer each time a user requests the page, or create them as symbols (in which case I think I would need a different layer for each ellipse). I suppose I might run into URL length limits with the latter. Is there another possibility that I am missing? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dynamically-draw-different-sized-ellipses-on-map-tp5508425p5511294.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 aboudreault at mapgears.com Wed Sep 8 11:24:25 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 8 Sep 2010 14:24:25 -0400 Subject: [mapserver-users] PHPMapscript, Ming & Segmentation fault. In-Reply-To: References: Message-ID: <201009081424.25779.aboudreault@mapgears.com> Hi, I'd say that php mapscript is not the cause. Could you try to display your map using the CGI directly. If you get the same seg fault error, it would be good if you could create a ticket with a minimal test case with a mapfile and data (perhaps you could do a simple ogr2gr from postgis to shapefile). regards, Alan On September 8, 2010 03:14:22 am Joseph Mamuchishvili wrote: > Hello, > > I have compiled MapServer 5.6.4 with PHPMapscript on FreeBSD 8.1. > During configuration Ming support was added. > phpinfo() returns the following: > MapScriptMapServer VersionMapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER > SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR > INPUT=SHAPEFILEPHP MapScript Version > ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) $) > > mingMing SWF output libraryenabledVersion0.4.3 > I am using the following php script (*testmap.php*): > > $map = ms_newMapObj("/map/apache/htdocs/map/mapsql.map"); > $image=$map->draw(); > $image_url=$image->saveImage("\\tmp"); > ?> > > > > > Example 1: Displaying a map > > > >
> > > > > > > and the contents for *mapsql.map* file is: > > MAP NAME "Europe in purple" > > SIZE 400 400 > STATUS ON > EXTENT 478895 4615055 485900 4620056 > > UNITS METERS > SHAPEPATH "/home/map/SHP" > > WEB > IMAGEPATH "/map/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "wms_title" ##required > "wms_onlineresource" " > http://soso.freebsd.host/cg-bin/mapserv?map=/map/apache/htdocs/mapsql.map&" > "wms_srs" "EPSG:32638" > END > END > PROJECTION > "proj=utm" > "zone=38" > "ellps=WGS84" > "datum=WGS84" > "units=m" > "no_defs" > END > > QUERYMAP > COLOR 0 0 255 > STATUS ON > STYLE HILITE > END > > > LAYER > NAME "main_streets" > TOLERANCE 1 > TOLERANCEUNITS meters > CONNECTIONTYPE postgis > CONNECTION "user=pgsql dbname=pgsql host=soso.freebsd.host" > TEMPLATE "../query/query_template.html" > METADATA > QUERYABLE "true" > fields 'quca_ge:????? ??????????,gid:????' > hyperlink 'quca|http://myurl.com' > searchfield "quca" > RESULT_FIELDS "quca_ge" > RESULT_HEADERS "the_geom" > END > TYPE POLYGON > STATUS ON > DATA "the_geom from main_streets" > CLASS > STYLE > COLOR 110 50 100 > OUTLINECOLOR 200 200 200 > END > END > END > > END > > *Everything works fine*, but now *i want to generate flash output*. So I > added the following block to *mapsql.map *file: > > OUTPUTFORMAT > NAME swf > DRIVER "SWF" > MIMETYPE "application/x-shockwave-flash" > EXTENSION "swf" > IMAGEMODE PC256 > FORMATOPTION "OUTPUT_MOVIE=SINGLE" > END > > flash output is not generated and the following is appeared in apache error > log: *Segmentation fault (11).* > When trying to *launch *the testmap.php script from* the shell* the > following happens: > /php/bin/php ./testmap.php > *newSFWBitmapFillStyle: not a valid Bitmap FillStyle: 0* > Segmentation fault (core dumped) > > What is the reason of this ? What am I doing wrong ? > > Any suggestions or help will be appreciated. > > Joseph. > * > * > -- Alan Boudreault Mapgears http://www.mapgears.com From wingicelee at hotmail.com Wed Sep 8 17:44:30 2010 From: wingicelee at hotmail.com (Fuming Li) Date: Thu, 9 Sep 2010 00:44:30 +0000 Subject: [mapserver-users] C# mapscripts and WFS Service , xml-encoded Post Request with openlayers Message-ID: Hi, I 'm currently deploying a WFS Server with C# mapscripts. The Request issued by openlayers is xml-encoded post request. When I tried to use "loadparam", it exited abnormally. So I had to parse parameter by myself. So my question is: do I have to parse the xml-encoded post request manually? is there a function I can use to parse the post request? Thanks and Best Request, William -------------- next part -------------- An HTML attachment was scrubbed... URL: From iam980 at gmail.com Wed Sep 8 23:46:17 2010 From: iam980 at gmail.com (Joseph Mamuchishvili) Date: Thu, 9 Sep 2010 09:46:17 +0300 Subject: [mapserver-users] PHPMapscript, Ming & Segmentation fault. In-Reply-To: <201009081424.25779.aboudreault@mapgears.com> References: <201009081424.25779.aboudreault@mapgears.com> Message-ID: Hello. Thank You for your suggestion. I tried to display my map using the CGI directly... and got the same segmentation fault error. It would be very nice of You to tell me, how I may create the ticket (I mean using which site). Regards, Joseph On Wed, Sep 8, 2010 at 9:24 PM, Alan Boudreault wrote: > Hi, > > I'd say that php mapscript is not the cause. Could you try to display your > map > using the CGI directly. If you get the same seg fault error, it would be > good > if you could create a ticket with a minimal test case with a mapfile and > data > (perhaps you could do a simple ogr2gr from postgis to shapefile). > > regards, > Alan > > On September 8, 2010 03:14:22 am Joseph Mamuchishvili wrote: > > Hello, > > > > I have compiled MapServer 5.6.4 with PHPMapscript on FreeBSD 8.1. > > During configuration Ming support was added. > > phpinfo() returns the following: > > MapScriptMapServer VersionMapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG > > OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER > > SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR > > INPUT=SHAPEFILEPHP MapScript Version > > ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) > $) > > > > mingMing SWF output libraryenabledVersion0.4.3 > > I am using the following php script (*testmap.php*): > > > > > $map = ms_newMapObj("/map/apache/htdocs/map/mapsql.map"); > > $image=$map->draw(); > > $image_url=$image->saveImage("\\tmp"); > > ?> > > > > > > > > > > Example 1: Displaying a map > > > > > > > >
> > > > > > > > > > > > > and the contents for *mapsql.map* file is: > > > > MAP NAME "Europe in purple" > > > > SIZE 400 400 > > STATUS ON > > EXTENT 478895 4615055 485900 4620056 > > > > UNITS METERS > > SHAPEPATH "/home/map/SHP" > > > > WEB > > IMAGEPATH "/map/apache/htdocs/tmp/" > > IMAGEURL "/tmp/" > > METADATA > > "wms_title" "wms_title" ##required > > "wms_onlineresource" " > > > http://soso.freebsd.host/cg-bin/mapserv?map=/map/apache/htdocs/mapsql.map& > " > > "wms_srs" "EPSG:32638" > > END > > END > > PROJECTION > > "proj=utm" > > "zone=38" > > "ellps=WGS84" > > "datum=WGS84" > > "units=m" > > "no_defs" > > END > > > > QUERYMAP > > COLOR 0 0 255 > > STATUS ON > > STYLE HILITE > > END > > > > > > LAYER > > NAME "main_streets" > > TOLERANCE 1 > > TOLERANCEUNITS meters > > CONNECTIONTYPE postgis > > CONNECTION "user=pgsql dbname=pgsql host=soso.freebsd.host" > > TEMPLATE "../query/query_template.html" > > METADATA > > QUERYABLE "true" > > fields 'quca_ge:????? ??????????,gid:????' > > hyperlink 'quca|http://myurl.com' > > searchfield "quca" > > RESULT_FIELDS "quca_ge" > > RESULT_HEADERS "the_geom" > > END > > TYPE POLYGON > > STATUS ON > > DATA "the_geom from main_streets" > > CLASS > > STYLE > > COLOR 110 50 100 > > OUTLINECOLOR 200 200 200 > > END > > END > > END > > > > END > > > > *Everything works fine*, but now *i want to generate flash output*. So I > > added the following block to *mapsql.map *file: > > > > OUTPUTFORMAT > > NAME swf > > DRIVER "SWF" > > MIMETYPE "application/x-shockwave-flash" > > EXTENSION "swf" > > IMAGEMODE PC256 > > FORMATOPTION "OUTPUT_MOVIE=SINGLE" > > END > > > > flash output is not generated and the following is appeared in apache > error > > log: *Segmentation fault (11).* > > When trying to *launch *the testmap.php script from* the shell* the > > following happens: > > /php/bin/php ./testmap.php > > *newSFWBitmapFillStyle: not a valid Bitmap FillStyle: 0* > > Segmentation fault (core dumped) > > > > What is the reason of this ? What am I doing wrong ? > > > > Any suggestions or help will be appreciated. > > > > Joseph. > > * > > * > > > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > -- With Best Regards, Joseph Alex Mamuchishvili -------------- next part -------------- An HTML attachment was scrubbed... URL: From max1000 at gmail.com Thu Sep 9 02:55:59 2010 From: max1000 at gmail.com (rai 8) Date: Thu, 9 Sep 2010 11:55:59 +0200 Subject: [mapserver-users] can't load img In-Reply-To: References: Message-ID: do you have permision on this directory? you can do it with "chmod 777 /gis/tmp/" 2010/9/8 Fco. Javier Garc?a Ricca > Hello, > > I am starting to work with linux and I and I have several problems to > configure mapserver on Centos 5.5 > > I have a init.html to call mapserver and it is working ok because it > generates an image in the tmp folder specified in the mapfile. However I > can't load the image in my page and I get the next error: > > Forbidden > > You don't have permission to access /gis/tmp/MS12838635944831.png on this > server. > > Any help will be appreciated. > > Thanks > > -- > FJRicca > > > _______________________________________________ > 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 rstoyle at COMCAST.NET Thu Sep 9 07:26:03 2010 From: rstoyle at COMCAST.NET (stoli) Date: Thu, 9 Sep 2010 07:26:03 -0700 (PDT) Subject: [mapserver-users] RE: Dynamically draw different sized ellipses on map In-Reply-To: References: <1283896819233-5508425.post@n2.nabble.com> <1283962231582-5511294.post@n2.nabble.com> Message-ID: <1284042363326-5514639.post@n2.nabble.com> To better understand what I am doing, consider this as an example (perhaps not very realistic, but close enough): Let?s assume you have a site that allows the user to analyze cell phone coverage. Your database has the location of all the towers. Each tower contains various antenna types, each antenna type with a different range. Occasionally, new towers are added to the database, old towers are removed, and antenna types are changed. The user selects the antenna type, submits the request to the server, and the server generates the ellipses that represent each antenna?s coverage. Those ellipses are overlaid on the map and the image is returned to the user. The map image processing is all done server side via cgi requests. Sounds like the best way to do this might be to write out a unique shapefile for each user session. Certain user inputs (like a change in antenna type) will require their shapefile to be updated (rewritten), while other inputs (like zooming, panning, etc.) will not. Thanks again. If anyone knows of a better way to accomplish this, I'm all ears. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dynamically-draw-different-sized-ellipses-on-map-tp5508425p5514639.html Sent from the Mapserver - User mailing list archive at Nabble.com. From christopher.schmidt at nokia.com Thu Sep 9 07:31:16 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Thu, 9 Sep 2010 16:31:16 +0200 Subject: [mapserver-users] RE: Dynamically draw different sized ellipses on map In-Reply-To: <1284042363326-5514639.post@n2.nabble.com> References: <1283896819233-5508425.post@n2.nabble.com> <1283962231582-5511294.post@n2.nabble.com> <1284042363326-5514639.post@n2.nabble.com> Message-ID: <32A61798-6D1F-4A85-A124-49C0F342502C@nokia.com> On Sep 9, 2010, at 4:26 PM, ext stoli wrote: > > > To better understand what I am doing, consider this as an example (perhaps > not very realistic, but close enough): > > Let?s assume you have a site that allows the user to analyze cell phone > coverage. Your database has the location of all the towers. Each tower > contains various antenna types, each antenna type with a different range. > Occasionally, new towers are added to the database, old towers are removed, > and antenna types are changed. The user selects the antenna type, submits > the request to the server, and the server generates the ellipses that > represent each antenna?s coverage. Those ellipses are overlaid on the map > and the image is returned to the user. > > The map image processing is all done server side via cgi requests. Sounds > like the best way to do this might be to write out a unique shapefile for > each user session. Certain user inputs (like a change in antenna type) will > require their shapefile to be updated (rewritten), while other inputs (like > zooming, panning, etc.) will not. If you can generate the features on the server side, you don't need a shapefile, I don't think. Just transform the data into GeoJSON features, and deliver them to the client. The client will maintain these features until they close their page/navigate away. I have been limited on internet access, so I have missed some earlier emails, but if you are just generating shapes on the server, loading them in the map is just as simple as turning them into vector features that you can read and reading them in the client. -- Chris From lehrs at erau.edu Thu Sep 9 08:12:01 2010 From: lehrs at erau.edu (Lehr, Steven) Date: Thu, 9 Sep 2010 11:12:01 -0400 Subject: [mapserver-users] Any Known Issues with Blobs in MS SQL and GIS Integration Message-ID: <9D58C43BDFE3F846ADF3A0F8100940B3B1579A@DBEXVS02.erau.edu> Group: I have a client that is thinking of using 2 blob type fields in their primary table using Microsoft SQL Server. I was wondering to get some insights on any issues you have experienced dealing with joining tables to GIS that have Blob type fields in a table being joined too. Again this is a primary table, and will likely be used in almost all Joins from GIS to SQL Server. Thank you Steve Lehr -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Sep 9 11:20:10 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 9 Sep 2010 20:20:10 +0200 Subject: [mapserver-users] Any Known Issues with Blobs in MS SQL and GIS Integration In-Reply-To: <9D58C43BDFE3F846ADF3A0F8100940B3B1579A@DBEXVS02.erau.edu> References: <9D58C43BDFE3F846ADF3A0F8100940B3B1579A@DBEXVS02.erau.edu> Message-ID: Steve, Currently each field to be retrieved is converted to varchar within the sql query statement in case if the mssql 2008 driver is used. If these fields are not required, you could probably define a view which doesn't contain such columns to be retrieved along with that layer. Best regards, Tamas 2010/9/9 Lehr, Steven > Group: > > I have a client that is thinking of using 2 blob type fields in their > primary table using Microsoft SQL Server. > > I was wondering to get some insights on any issues you have experienced > dealing with joining tables to GIS that have Blob type fields in a table > being joined too. Again this is a primary table, and will likely be used in > almost all Joins from GIS to SQL Server. > > Thank you > Steve Lehr > > _______________________________________________ > 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 wingicelee at hotmail.com Thu Sep 9 22:49:55 2010 From: wingicelee at hotmail.com (Fuming Li) Date: Fri, 10 Sep 2010 05:49:55 +0000 Subject: [mapserver-users] C# mapscripts and WFS Service , xml-encoded Post Request with openlayers In-Reply-To: References: Message-ID: Hi, I 'm currently deploying a WFS Server with C# mapscripts. The Request issued by openlayers is xml-encoded post request. When I tried to use "loadparam", it exited abnormally. So I had to parse parameter by myself. So my question is: do I have to parse the xml-encoded post request manually? is there a function I can use to parse the post request? WFS Service? public class MapWFS : IHttpHandler { public void ProcessRequest (HttpContext context) { try { OWSRequest req = new OWSRequest(); System.Collections.Specialized.NameValueCollection queryStr = context.Request.Params; //req.loadParams(); can't call this function, it will exit immediately. req.setParameter("service", "WFS"); req.setParameter("version", "1.0.0"); req.setParameter("request", "getFeature"); for (int i = 0; i < queryStr.Count; ++i) { req.setParameter(queryStr.GetKey(i), queryStr.Get(i)); } string mapFileName = ConfigurationManager.AppSettings["MapFilePath"]; mapObj map = new mapObj(context.Server.MapPath(mapFileName)); ... mapscript.msIO_installStdoutToBuffer(); map.OWSDispatch(req); context.Response.ContentType = mapscript.msIO_stripStdoutBufferContentType(); context.Response.BinaryWrite(mapscript.msIO_getStdoutBufferBytes()); mapscript.msIO_resetHandlers(); OpenLayers? var wfs = new OpenLayers.Layer.Vector("WFSCELL", { strategies: [new OpenLayers.Strategy.BBOX()], isBaseLayer: true, styleMap: styleMap, service: wfs, Version: "1.0.0", TypeName:"cell", protocol: new OpenLayers.Protocol.WFS({ url: "MapWFS.ashx", featureType: "cell", featurePrefix: "cs" , featureNS: "http://www.openplans.org/topp", geometryName: 'msGeometry' }) }); wfs.isBaseLayer = true; map.addLayer(wfs); content of the post-request: msGeometry 110.298828125,28.1875 127.701171875,33.8125 From: wingicelee at hotmail.com To: mapserver-users at lists.osgeo.org Date: Thu, 9 Sep 2010 00:44:30 +0000 Subject: [mapserver-users] C# mapscripts and WFS Service , xml-encoded Post Request with openlayers Hi, I 'm currently deploying a WFS Server with C# mapscripts. The Request issued by openlayers is xml-encoded post request. When I tried to use "loadparam", it exited abnormally. So I had to parse parameter by myself. So my question is: do I have to parse the xml-encoded post request manually? is there a function I can use to parse the post request? Thanks and Best Request, William _______________________________________________ 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 Sep 10 00:36:04 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 10 Sep 2010 09:36:04 +0200 Subject: [mapserver-users] C# mapscripts and WFS Service , xml-encoded Post Request with openlayers In-Reply-To: References: Message-ID: Hi, Currently loadParams can only be called within the context of a CGI process and it may not be usable ny an ASP.NET application. However I'll inversigate the approach whether it could be made suitable for use in ASP.NETenvironment too. Best regards, Tamas 2010/9/10 Fuming Li > Hi, I 'm currently deploying a WFS Server with C# mapscripts. The Request > issued by openlayers is xml-encoded post request. > When I tried to use "loadparam", it exited abnormally. So I had to parse > parameter by myself. So my question is: do I have to parse the xml-encoded > post request manually? > is there a function I can use to parse the post request? > > WFS Service? > > public class MapWFS : IHttpHandler { > > public void ProcessRequest (HttpContext context) { > try > { > OWSRequest req = new OWSRequest(); > > System.Collections.Specialized.NameValueCollection queryStr = > context.Request.Params; > > //req.loadParams(); can't call this function, it will exit > immediately. > req.setParameter("service", "WFS"); > req.setParameter("version", "1.0.0"); > req.setParameter("request", "getFeature"); > > for (int i = 0; i < queryStr.Count; ++i) > { > req.setParameter(queryStr.GetKey(i), queryStr.Get(i)); > } > > string mapFileName = > ConfigurationManager.AppSettings["MapFilePath"]; > mapObj map = new mapObj(context.Server.MapPath(mapFileName)); > ... > > mapscript.msIO_installStdoutToBuffer(); > > map.OWSDispatch(req); > > context.Response.ContentType = > mapscript.msIO_stripStdoutBufferContentType(); > > context.Response.BinaryWrite(mapscript.msIO_getStdoutBufferBytes()); > mapscript.msIO_resetHandlers(); > > OpenLayers? > var wfs = new OpenLayers.Layer.Vector("WFSCELL", { > strategies: [new OpenLayers.Strategy.BBOX()], > isBaseLayer: true, > styleMap: styleMap, > service: wfs, > Version: "1.0.0", > TypeName:"cell", > protocol: new OpenLayers.Protocol.WFS({ > url: "MapWFS.ashx", > featureType: "cell", > featurePrefix: "cs" , > featureNS: "http://www.openplans.org/topp", > geometryName: 'msGeometry' > > > }) > }); > wfs.isBaseLayer = true; > map.addLayer(wfs); > > > content of the post-request: > > version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"> > > > > msGeometry > srsName="EPSG:4326">110.298828125,28.1875 127.701171875,33.8125 > > > > > > > > > > ------------------------------ > From: wingicelee at hotmail.com > To: mapserver-users at lists.osgeo.org > Date: Thu, 9 Sep 2010 00:44:30 +0000 > Subject: [mapserver-users] C# mapscripts and WFS Service , xml-encoded Post > Request with openlayers > > > Hi, I 'm currently deploying a WFS Server with C# mapscripts. The Request > issued by openlayers is xml-encoded post request. > When I tried to use "loadparam", it exited abnormally. So I had to parse > parameter by myself. So my question is: do I have to parse the xml-encoded > post request manually? > is there a function I can use to parse the post request? > > > Thanks and Best Request, > William > > > _______________________________________________ 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 Jukka.Rahkonen at mmmtike.fi Fri Sep 10 02:30:09 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 10 Sep 2010 12:30:09 +0300 Subject: [mapserver-users] How to apply WFS filters for PostGIS hstore data? Message-ID: Hi, Got INSPIREd at FOSS4G and desided to have a try with paleogissic MapServer WMS and WFS services with OpenStreetMess (OSM) data. I imported an OSM excerpt of Finland with osm2pgsql utility by using the -k switch for storing all the OSM tags and values into PostGIS. They got all dumped into one singe column "tags" which is of datatype "hstore" http://www.postgresql.org/docs/8.4/static/hstore.html Then I created a few simple layers by querying tags and values from the hstore. See an example of layer definitions from the bottom of this message Now it is possible to try how WMS behaves with hstore. By editing the "tag" and "value" keys it is possible to get what ever map you like. I will try to keep my demo service online at least for a week for testing. A supermarketmap http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQU EST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,bo rders,POI_free_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,65 58020,1615375,7978444&SRS=EPSG:3067&STYLES=&tag=shop&value=supermarket A fuelstationmap http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQU EST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,bo rders,POI_free_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,65 58020,1615375,7978444&SRS=EPSG:3067&STYLES=&tag=amenity&value=fuel Hstore query works also with lines and polygons: A maxspeedmap (fixed, only maxspeed value is selectable) http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQU EST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,bo rders,maxspeed_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,65 58020,1615375,7978444&SRS=EPSG:3067&STYLES=&maxspeed=100 Then gml output from WFS, "Get 10 toilets" http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&serv ice=wfs&version=1.1.0&request=getfeature&typename=POI_free_query&maxfeat ures=10&tag=amenity&value=toilets or "Get 100 restaurants" http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&serv ice=wfs&version=1.1.0&request=getfeature&typename=POI_free_query&maxfeat ures=100&tag=amenity&value=restaurant If the service is up you will see that WFS is sending all the tags as a one string, like this: "name"=>"Fantasia", "amenity"=>"restaurant", "cuisine"=>"pizza", "wheelchair"=>"yes", "opening_hours"=>"Mo-Fr 10:30-19:30; Sa 12:00-19:30; Su 13:00-19:30" So both the WMS (including getFeatureInfo) and WFS are working very nice if the query is done by sending extra parameters with the getMap or getFeature requests. However, that is not especially standard way to do queries. Thus this is my question: Is is somehow possible to do selections from the hstore backend by using WFS attribute filters? There is an unfiltered feature type "tagsoup" available in my WFS service http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&serv ice=wfs&version=1.1.0&request=getfeature&typename=tagsoup&maxfeatures=10 If someone gets interested in trying to apply WFS filters for this feature type, just go ahead and tell if they work. LAYER TYPE POINT STATUS ON PROJECTION "init=epsg:3067" #UTM because Web Mercator makes Finland ugly END NAME "POI_free_query" INCLUDE "/usr/map/connection.map" DATA "way from (select (way),osm_id,tags from osm_point where (tags @>'%tag%=>%value%')) as foo using unique osm_id using srid=3067" # I feel that more recent MapServer versions demands validation METADATA "wfs_title" "free_tag_query" "gml_featureid" "osm_id" "gml_include_items" "osm_id,tags" END DUMP TRUE #DEBUG 5 TEMPLATE "/usr/templates/mstemplate.html" CLASS STYLE SIZE 10 SYMBOL "citycircle" COLOR "#FF6767" OUTLINECOLOR 0 0 0 END STYLE SIZE 2 SYMBOL "citycircle" COLOR "#000000" END END END -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbellido at ikt.es Fri Sep 10 05:46:03 2010 From: jbellido at ikt.es (Jorge Bellido Diez) Date: Fri, 10 Sep 2010 14:46:03 +0200 Subject: [mapserver-users] Problems with MapServer and Oracle Spatial Message-ID: <224DBDAF88A6AC47BD22432815351BE00822F567@nekaposta1> Hi, I'm working with Oracle Spatial 10g and the ms4w package with MapServer 5.6.1 I configure a wms service and a wfs service and when i do the getFeature request or getFeatureInfo request, I found critical log files in my OracleSpatial Server. This is a little portion of one of this log files with the error code: .. .. ksedmp: internal or fatal error ORA-00600: internal error code, arguments: [17182], [0x7FF985DDC24], [], [], [], [], [], [] Current SQL statement for this session: SELECT gid, TER_HIST, AREA, PERIMETRO, GID, PROVINCIA, GEOMETRY FROM (SELECT * FROM GT_PROVINCIAS_ED50) WHERE SDO_FILTER( GEOMETRY, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' ----- Call Stack Trace ----- .. .. With getFeatureInfo request it seems that Oracle sends the response to mapserver ok but with getFeature request sometimes the oracle table has rows corrupted, even though the user has no UPDATE-GRANTS. I read that somebody has the similar problem with Oracle 11g? Has someOne find a solution to this problem? Thanks, jorge From yassefa at dmsolutions.ca Fri Sep 10 08:09:39 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 10 Sep 2010 11:09:39 -0400 Subject: [mapserver-users] SVG, PDF and Flash output in MapServer 6.0. Message-ID: <4C8A4A33.7090609@dmsolutions.ca> Hi all, The Dev team is reviewing and preparing for the 6.0 MapServer release [1][2]. There are significant changes and new features in this release. One of them is the rendering overhaul. The reasons behind is to facilitate the long term maintenance and make sure that all the output formats are in sync feature-wise. Currently output drivers such as svg, pdf and flash lag in functionality and supported features compare to the AGG/GD output. As part of this re-factoring, the Cairo library [3] will be added allowing SVG and PDF outputs to pass through this library. This would deprecate the current support of native svg and pdf in MapServer. The other renderer that is affected is the SWF (Flash) renderer: at this point there is no effort to bring this output feature to the level of other renderers. This means that there is a big chance that the SWF support will not be part of the 6.0 release (unless someone wants to fund it). Is this something that affects lots/some users? best regards, [1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan [2] http://trac.osgeo.org/mapserver/wiki/60MigrationIssues [3] http://cairographics.org/ * * -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Fri Sep 10 09:00:59 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Fri, 10 Sep 2010 17:00:59 +0100 Subject: [mapserver-users] FOSS4G benchmark Message-ID: Hi Guys http://svn.osgeo.org/osgeo/foss4g/benchmarking/scripts/results/2010/mapserver/ is empty. Is there anywhere where I can find the MapServer results ? thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario.franco at ydreams.com Fri Sep 10 10:43:15 2010 From: mario.franco at ydreams.com (Mario Franco) Date: Fri, 10 Sep 2010 18:43:15 +0100 Subject: [mapserver-users] Image Legend Group Message-ID: <4C8A6E33.4060509@ydreams.com> Hi, it's possible to have the class definitions group by layer in the legend generated image. Like: Thx M?rio Franco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-10.png Type: image/png Size: 18479 bytes Desc: not available URL: From a.neumann at carto.net Fri Sep 10 13:08:34 2010 From: a.neumann at carto.net (Andreas Neumann) Date: Fri, 10 Sep 2010 22:08:34 +0200 Subject: [mapserver-users] SVG, PDF and Flash output in MapServer 6.0. In-Reply-To: <4C8A4A33.7090609@dmsolutions.ca> References: <4C8A4A33.7090609@dmsolutions.ca> Message-ID: <4C8A9042.3040803@carto.net> Hi, Thank you for your information on future plans about output based on Cairo. Regarding the SVG support, my main concern is that if the output goes through Cairo than there is no chance of adding attributes and semantics to the vector features in SVG - am I correct? In SVG one could f.e. embed title and description elements, as well as non-graphical attributes in a separate namespace in the XML output. Now that SVG support will be widespread in all browsers (IE9 will be implementing SVG), I would assume that people would make more use of SVG output, also for interactive maps. In this setup it would be nice if one could have the option between a pure graphical output (probably the CAIRO output version) and a more semantically rich output (a separate output driver?) I would recommend to go with Cairo, but leave the door open for another, alternative output driver for more sophisticated SVG output. Regarding SWF: it would be better if Flash would die in the long run - it is not part of the open web and a black box. All browser project now seem committed to implement SVG and canvas. So I myself wouldn't care if you would drop SWF support. Other users may think different. Just my two cents, Andreas On 9/10/10 5:09 PM, Yewondwossen Assefa wrote: > Hi all, > > The Dev team is reviewing and preparing for the 6.0 MapServer release > [1][2]. There are significant changes and new features in this > release. One of them is the rendering overhaul. The reasons behind is > to facilitate the long term maintenance and make sure that all the > output formats are in sync feature-wise. > Currently output drivers such as svg, pdf and flash lag in > functionality and supported features compare to the AGG/GD output. > As part of this re-factoring, the Cairo library [3] will be added > allowing SVG and PDF outputs to pass through this library. This would > deprecate the current support of native svg and pdf in MapServer. > > The other renderer that is affected is the SWF (Flash) renderer: at > this point there is no effort to bring this output feature to the > level of other renderers. This means that there is a big chance that > the SWF support will not be part of the 6.0 release (unless someone > wants to fund it). Is this something that affects lots/some users? > > best regards, > > > [1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan > [2] http://trac.osgeo.org/mapserver/wiki/60MigrationIssues > [3] http://cairographics.org/ > > > * > * > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email:yassefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > > _______________________________________________ > 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 ahmettemiz88 at gmail.com Sat Sep 11 04:25:30 2010 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Sat, 11 Sep 2010 14:25:30 +0300 Subject: [mapserver-users] change the color using updateFromstring Message-ID: hello how can I change the color of this layer(line) using updateFromstring in a java program ? Layer.updateFromString(upstring); how is upstring is constructed to change its color LAYER NAME "es_yukseklik" LABELITEM "elev" DATA "/usr/local/hsunucu/scontour92" STATUS OFF TYPE LINE #LABELITEM "level" CLASS COLOR 199 199 199 LABEL POSITION auto #SIZE TINY SIZE MEDIUM #OUTLINECOLOR 247 234 168 COLOR 149 149 149 END END # end of yukseklik object END # end of es_yukseklik layer regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstoyle at COMCAST.NET Sat Sep 11 13:11:44 2010 From: rstoyle at COMCAST.NET (stoli) Date: Sat, 11 Sep 2010 13:11:44 -0700 (PDT) Subject: [mapserver-users] Change a SYMBOL param via URL (CGI MapServer) Message-ID: <1284235904948-5522137.post@n2.nabble.com> I want to change the POINTS values in a SYMBOL defined in my map file. Can you do this on the fly? i.e. I define the symbol in the map file: MAP . . SYMBOL NAME mySymbol TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END . . END In the URL I have tried both: ...&map_symbol[mySymbol]=POINTS+2+1+END&... and ...&map_symbol[mySymbol]_POINTS=2+1&... Neither results in a parse error, but they don't change the aspect of the ellipse either. Can it be done? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Change-a-SYMBOL-param-via-URL-CGI-MapServer-tp5522137p5522137.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sebastian.ovide at gmail.com Sat Sep 11 17:28:44 2010 From: sebastian.ovide at gmail.com (sebastian.ovide) Date: Sat, 11 Sep 2010 17:28:44 -0700 (PDT) Subject: [mapserver-users] Re: Get Pixel value of RASTER data using input geographic coordinate via WMS or WCS In-Reply-To: <1242895876353-2950905.post@n2.nabble.com> References: <1242895876353-2950905.post@n2.nabble.com> Message-ID: <1284251324933-5522458.post@n2.nabble.com> sarawut wrote: > > Hi list, > > I would like to get a raster pixel value using WMS or WCS connection. For > example, 1 pixel value from 10 Modis image band. The value may be returned > as xml or gml if possible. > > I know we can use GetFeatureInfo via WMS to get a value of pixel (of > vector or raster). But the input x and y or is an image oriented not > exactly geographic coordinate value. > > In case of WCS, GetCoverage allow to request data with a geographic > coordinate. But I used to familiar with outputformat as Image file. Is > there possible to use it and return as GML or text based? > > Please advise me for some hint, > > Sarawut > did you find an answer to your question ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Get-Pixel-value-of-RASTER-data-using-input-geographic-coordinate-via-WMS-or-WCS-tp2950905p5522458.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gcpp.kalxas at gmail.com Sun Sep 12 14:37:11 2010 From: gcpp.kalxas at gmail.com (Angelos) Date: Mon, 13 Sep 2010 00:37:11 +0300 Subject: [mapserver-users] Re: Get Pixel value of RASTER data using input geographic coordinate via WMS or WCS In-Reply-To: <1284251324933-5522458.post@n2.nabble.com> References: <1242895876353-2950905.post@n2.nabble.com> <1284251324933-5522458.post@n2.nabble.com> Message-ID: <4C8D4807.8050503@gmail.com> I think the best way to address this would be with a WPS service. On 09/12/2010 03:28 AM, sebastian.ovide wrote: > > sarawut wrote: >> Hi list, >> >> I would like to get a raster pixel value using WMS or WCS connection. For >> example, 1 pixel value from 10 Modis image band. The value may be returned >> as xml or gml if possible. >> >> I know we can use GetFeatureInfo via WMS to get a value of pixel (of >> vector or raster). But the input x and y or is an image oriented not >> exactly geographic coordinate value. >> >> In case of WCS, GetCoverage allow to request data with a geographic >> coordinate. But I used to familiar with outputformat as Image file. Is >> there possible to use it and return as GML or text based? >> >> Please advise me for some hint, >> >> Sarawut >> > did you find an answer to your question ? > > From wingicelee at hotmail.com Sun Sep 12 20:37:15 2010 From: wingicelee at hotmail.com (Fuming Li) Date: Mon, 13 Sep 2010 03:37:15 +0000 Subject: [mapserver-users] C# mapscripts and WFS Service , xml-encoded Post Request with openlayers In-Reply-To: References: , , Message-ID: I got a walkaround to address this issue by trying. Here is the solution: instead of using loadparams(), just assign the querystring in the post request to OWSRequest. It worked. :-) public void ProcessRequest (HttpContext context) { try { OWSRequest req = new OWSRequest(); System.Collections.Specialized.NameValueCollection queryStr = context.Request.QueryString; for (int i = 0; i < queryStr.Count; ++i) req.setParameter(queryStr.GetKey(i), queryStr.Get(i)); if (context.Request.HttpMethod == "POST") { StreamReader reader = new StreamReader(context.Request.InputStream, context.Request.ContentEncoding); //System.Text.Encoding.UTF8 String sXMLRequest = reader.ReadToEnd(); req.type = MS_REQUEST_TYPE.MS_POST_REQUEST; req.postrequest = sXMLRequest; } ... Date: Fri, 10 Sep 2010 09:36:04 +0200 Subject: Re: [mapserver-users] C# mapscripts and WFS Service , xml-encoded Post Request with openlayers From: szekerest at gmail.com To: wingicelee at hotmail.com CC: mapserver-users at lists.osgeo.org Hi, Currently loadParams can only be called within the context of a CGI process and it may not be usable ny an ASP.NET application. However I'll inversigate the approach whether it could be made suitable for use in ASP.NET environment too. Best regards, Tamas 2010/9/10 Fuming Li Hi, I 'm currently deploying a WFS Server with C# mapscripts. The Request issued by openlayers is xml-encoded post request. When I tried to use "loadparam", it exited abnormally. So I had to parse parameter by myself. So my question is: do I have to parse the xml-encoded post request manually? is there a function I can use to parse the post request? WFS Service? public class MapWFS : IHttpHandler { public void ProcessRequest (HttpContext context) { try { OWSRequest req = new OWSRequest(); System.Collections.Specialized.NameValueCollection queryStr = context.Request.Params; //req.loadParams(); can't call this function, it will exit immediately. req.setParameter("service", "WFS"); req.setParameter("version", "1.0.0"); req.setParameter("request", "getFeature"); for (int i = 0; i < queryStr.Count; ++i) { req.setParameter(queryStr.GetKey(i), queryStr.Get(i)); } string mapFileName = ConfigurationManager.AppSettings["MapFilePath"]; mapObj map = new mapObj(context.Server.MapPath(mapFileName)); ... mapscript.msIO_installStdoutToBuffer(); map.OWSDispatch(req); context.Response.ContentType = mapscript.msIO_stripStdoutBufferContentType(); context.Response.BinaryWrite(mapscript.msIO_getStdoutBufferBytes()); mapscript.msIO_resetHandlers(); OpenLayers? var wfs = new OpenLayers.Layer.Vector("WFSCELL", { strategies: [new OpenLayers.Strategy.BBOX()], isBaseLayer: true, styleMap: styleMap, service: wfs, Version: "1.0.0", TypeName:"cell", protocol: new OpenLayers.Protocol.WFS({ url: "MapWFS.ashx", featureType: "cell", featurePrefix: "cs" , featureNS: "http://www.openplans.org/topp", geometryName: 'msGeometry' }) }); wfs.isBaseLayer = true; map.addLayer(wfs); content of the post-request: msGeometry 110.298828125,28.1875 127.701171875,33.8125 From: wingicelee at hotmail.com To: mapserver-users at lists.osgeo.org Date: Thu, 9 Sep 2010 00:44:30 +0000 Subject: [mapserver-users] C# mapscripts and WFS Service , xml-encoded Post Request with openlayers Hi, I 'm currently deploying a WFS Server with C# mapscripts. The Request issued by openlayers is xml-encoded post request. When I tried to use "loadparam", it exited abnormally. So I had to parse parameter by myself. So my question is: do I have to parse the xml-encoded post request manually? is there a function I can use to parse the post request? Thanks and Best Request, William _______________________________________________ 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 SZZSZZSZZSZZSZZ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Sep 13 06:01:07 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 13 Sep 2010 08:01:07 -0500 Subject: [mapserver-users] Change a SYMBOL param via URL (CGI MapServer) In-Reply-To: <1284235904948-5522137.post@n2.nabble.com> References: <1284235904948-5522137.post@n2.nabble.com> Message-ID: You can't do this at present. Sorry. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli [rstoyle at COMCAST.NET] Sent: Saturday, September 11, 2010 3:11 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Change a SYMBOL param via URL (CGI MapServer) I want to change the POINTS values in a SYMBOL defined in my map file. Can you do this on the fly? i.e. I define the symbol in the map file: MAP . . SYMBOL NAME mySymbol TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END . . END In the URL I have tried both: ...&map_symbol[mySymbol]=POINTS+2+1+END&... and ...&map_symbol[mySymbol]_POINTS=2+1&... Neither results in a parse error, but they don't change the aspect of the ellipse either. Can it be done? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Change-a-SYMBOL-param-via-URL-CGI-MapServer-tp5522137p5522137.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Sep 14 08:18:41 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 14 Sep 2010 10:18:41 -0500 Subject: [mapserver-users] change the color using updateFromstring In-Reply-To: References: Message-ID: You probably need to update the first style of the first class and not the layer itself. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ahmet temiz Sent: Saturday, September 11, 2010 6:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] change the color using updateFromstring hello how can I change the color of this layer(line) using updateFromstring in a java program ? Layer.updateFromString(upstring); how is upstring is constructed to change its color LAYER NAME "es_yukseklik" LABELITEM "elev" DATA "/usr/local/hsunucu/scontour92" STATUS OFF TYPE LINE #LABELITEM "level" CLASS COLOR 199 199 199 LABEL POSITION auto #SIZE TINY SIZE MEDIUM #OUTLINECOLOR 247 234 168 COLOR 149 149 149 END END # end of yukseklik object END # end of es_yukseklik layer regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From Wilson_Jiang at sra.com Tue Sep 14 10:30:32 2010 From: Wilson_Jiang at sra.com (Jiang, Wilson) Date: Tue, 14 Sep 2010 13:30:32 -0400 Subject: [mapserver-users] How to add attribute to the existing shape file im memory and set color based on that attrubute Message-ID: <49D143542281E54ABB884F30D140B20923D18327@sraex2.sra.com> Hi, I just start to use the MapServer. We will embed the map into our C# ASP.NET web application. The shape file contains records in POLYGONE shape. I will get one attribute (such as status: Firing, Cease Firing, Available, Reserved etc) from our web application for each record in the shape file. Then the color of each shape in the record will be set based on that attribute (status). The original shape file should not be modified. Could you please tell me how to do it? Any code example will be highly appreciated. Thanks, Wilson Jiang -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumit321 at hotmail.com Wed Sep 15 03:40:18 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Wed, 15 Sep 2010 03:40:18 -0700 (PDT) Subject: [mapserver-users] Re: Problems with MapServer and Oracle Spatial In-Reply-To: <224DBDAF88A6AC47BD22432815351BE00822F567@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE00822F567@nekaposta1> Message-ID: <1284547218789-5533884.post@n2.nabble.com> Hi, Even I am facing similar problems with mapserver 5.6.3 and Oracle Spatial (Native support). I further narrow down this problem. When I execute command resultsGetShape (after queryByRect) my oracle spatial data gets corrupt. To my surprise I see duplicate value in my primary key. Furthermore primary index still points to old data. After further debugging I found that in msOracleSpatialLayerResultGetShape when you try to fetch records using following oci function call, records are updated. "TRY( hand, OCIAttrGet( (dvoid *)sthand->stmthp, (ub4)OCI_HTYPE_STMT, (dvoid *)&sthand->rows_fetched, (ub4 *)0, (ub4)OCI_ATTR_ROWS_FETCHED, hand->errhp ));" There was no error, exception or any debugging info... I was able to replicate this error in 10g and 11g as well. I am clueless now. If anybody else is also facing same problem and have some other way around or any suggestion for debugging further please let us know. Thanks in advance, Sumit. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-MapServer-and-Oracle-Spatial-tp5518303p5533884.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sumit321 at hotmail.com Wed Sep 15 06:09:01 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Wed, 15 Sep 2010 06:09:01 -0700 (PDT) Subject: [mapserver-users] Re: SVG, PDF and Flash output in MapServer 6.0. In-Reply-To: <4C8A4A33.7090609@dmsolutions.ca> References: <4C8A4A33.7090609@dmsolutions.ca> Message-ID: <1284556141457-5534298.post@n2.nabble.com> IMHO, SVG and Cairo should stay. my +1 to deprecate PDF and SWF -Anticipating badly required fixes in native oracle spatial support, Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SVG-PDF-and-Flash-output-in-MapServer-6-0-tp5518649p5534298.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Wed Sep 15 06:39:58 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 15 Sep 2010 09:39:58 -0400 Subject: [mapserver-users] Re: Problems with MapServer and Oracle Spatial In-Reply-To: <1284547218789-5533884.post@n2.nabble.com> References: <224DBDAF88A6AC47BD22432815351BE00822F567@nekaposta1> <1284547218789-5533884.post@n2.nabble.com> Message-ID: <201009150939.59166.aboudreault@mapgears.com> Hi, Could you create a ticket and attach a small test case? I'm going to take a look as soon as I can. Thanks, Alan On September 15, 2010 06:40:18 am Sumit Sharma wrote: > Hi, > Even I am facing similar problems with mapserver 5.6.3 and Oracle Spatial > (Native support). I further narrow down this problem. When I execute > command resultsGetShape (after queryByRect) my oracle spatial data gets > corrupt. To my surprise I see duplicate value in my primary key. > Furthermore primary index still points to old data. > After further debugging I found that in msOracleSpatialLayerResultGetShape > when you try to fetch records using following oci function call, records > are updated. > > "TRY( hand, OCIAttrGet( (dvoid *)sthand->stmthp, (ub4)OCI_HTYPE_STMT, > (dvoid *)&sthand->rows_fetched, (ub4 *)0, (ub4)OCI_ATTR_ROWS_FETCHED, > hand->errhp ));" > > There was no error, exception or any debugging info... > > I was able to replicate this error in 10g and 11g as well. I am clueless > now. If anybody else is also facing same problem and have some other way > around or any suggestion for debugging further please let us know. > Thanks in advance, > Sumit. -- Alan Boudreault Mapgears http://www.mapgears.com From sumit321 at hotmail.com Wed Sep 15 08:05:18 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Wed, 15 Sep 2010 08:05:18 -0700 (PDT) Subject: [mapserver-users] Re: Problems with MapServer and Oracle Spatial In-Reply-To: <201009150939.59166.aboudreault@mapgears.com> References: <224DBDAF88A6AC47BD22432815351BE00822F567@nekaposta1> <1284547218789-5533884.post@n2.nabble.com> <201009150939.59166.aboudreault@mapgears.com> Message-ID: <1284563118123-5534732.post@n2.nabble.com> Thanks for you response. As suggested by you I have created a ticket. Ticket number is 3541. -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-MapServer-and-Oracle-Spatial-tp5518303p5534732.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mlassche at feweb.vu.nl Thu Sep 16 00:36:55 2010 From: mlassche at feweb.vu.nl (mlassche) Date: Thu, 16 Sep 2010 00:36:55 -0700 (PDT) Subject: [mapserver-users] Tileindex - getfeatureinfo Message-ID: <1284622615740-5537348.post@n2.nabble.com> Hi All, I'm using a tileindex to display some mapsheets. I want to get the number, name and year of the mapsheet (the tile) with getfeatureinfo. How can I do this? It seems that getfeatureinfo is not working on a tileindex layer. Thanks in advance, Ronnie -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Tileindex-getfeatureinfo-tp5537348p5537348.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu Sep 16 01:27:33 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 16 Sep 2010 11:27:33 +0300 Subject: [mapserver-users] Tileindex - getfeatureinfo In-Reply-To: <1284622615740-5537348.post@n2.nabble.com> References: <1284622615740-5537348.post@n2.nabble.com> Message-ID: Hi, Getfeatureinfo can be made to work with tileindex layer but it would not do what you suppose. It would returns the pixel value (RGB) of the clicked point of the raster image. But don't worry, just publish the tileindex as a separate vector layer and do GetFeatureInfo against that layer. I suppose your tileindex shapefile already has those number, name, year and mapsheet attributes. -Jukka Rahkonen- mlassche wrote: > Hi All, > > I'm using a tileindex to display some mapsheets. I want to > get the number, > name and year of the mapsheet (the tile) with getfeatureinfo. > How can I do > this? It seems that getfeatureinfo is not working on a > tileindex layer. > > Thanks in advance, > Ronnie > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Tileindex-getfeatureinf > o-tp5537348p5537348.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 webturtles at gmail.com Thu Sep 16 04:02:54 2010 From: webturtles at gmail.com (Chris Jackson) Date: Thu, 16 Sep 2010 12:02:54 +0100 Subject: [mapserver-users] MapScript dlls? Message-ID: Hi Does anyone know where I might find a compiled version of the MapScript dll for NTS PHP 5.3.1 (or 5.3.3) on Windows (VC9)? I am trying to use FastCGI combined with Wincache (hence NTS required). Many thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.neumeier at vti.bund.de Thu Sep 16 04:09:00 2010 From: stefan.neumeier at vti.bund.de (Stefan Neumeier) Date: Thu, 16 Sep 2010 13:09:00 +0200 Subject: [mapserver-users] Error in msPostGISLayerResultsGetShape(): Got request larger than result set Message-ID: <4C91FACC.5050205@vti.bund.de> Dear all, I am quite new to mapserver and maybe I am just missing some important configuration step but I hope somebody of you can help me with following problem: When trying to perform a query via a cartoweb-client to a layer stored in Postgis I encounter following error message (It is only the query that is not working the layer itself renders perfect out of the database): MapServer error: Error in msDrawMap(): Failed to draw layer named 'bound'. Error in msPostGISLayerResultsGetShape(): Got request larger than result set. When I do the same with the layer as shapefile on the file system the query functions as expected. *My system environment is:* cartoweb 3.5.0 php 5.3.3 Mapserver version 5.6.5 Postgis 1.5.1 Postgresql 8.4.4 Operating System: Suse Linux 11.3 *In the mapfile the layer is defined as follows* LAYER NAME "bound" TYPE LINE STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=*** password=*** host=localhost dbname=gis" DATA "the_geom FROM (select * from dep_france_dom) as foo using unique gid using srid=-1" TEMPLATE "ttt" METADATA "id_attribute_string" "id_geofla" "query_returned_attributes" "id_geofla" END CLASS NAME "Boundaries" STYLE COLOR 200 200 200 OUTLINECOLOR 255 165 96 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From ven.tammineni at gmail.com Thu Sep 16 04:34:36 2010 From: ven.tammineni at gmail.com (venkat) Date: Thu, 16 Sep 2010 17:04:36 +0530 Subject: [mapserver-users] How to draw line on Imagebutton Message-ID: Dear All, I want to draw line object on map (imagebutton).I do not know how to capture and fist click(xy) and where to store again i need to get second click( second point xy)..and finally i need to draw line on the map in server side(C# or whatever) .I can able to draw point.But i am not able to draw line object and below is my code... Please anyone can help me. public static void AddFeature(Double x, Double y, String activeLayer, mapObj mainMapObject) { try { //check if the active layer is a point layer and if the point layer is from PostGIS LayerObject.Layer = mainMapObject.getLayerByName(activeLayer); if (LayerObject.Layer.type != MS_LAYER_TYPE.MS_LAYER_LINE) { return; } //convert the image point in map point Here I am getting issue pointObj mapPointObj = Pixel2Geo(new pointObj(x, y, 0, 0), mainMapObject); pointObj secondPoint = Pixel2Geo(new pointObj(0,0,0,0),mainMapObject); //add the point to a PostGIS table if (LayerObject.Layer.connectiontype == MS_CONNECTION_TYPE.MS_POSTGIS) { //set CurrentCulture according to PostgreSQL server CultureInfo newCultureInfo = new CultureInfo("en-US"); newCultureInfo.NumberFormat.NaNSymbol = ""; Thread.CurrentThread.CurrentCulture = newCultureInfo; //connect with PostgreSQL String sqlInsert = "INSERT INTO " + activeLayer + "(name,the_geom) VALUES('ven',GeomFromText('LINESTRING(" + mapPointObj.x.ToString() + " " + mapPointObj.y.ToString() + "," + secondPoint.x.ToString()+ "" + secondPoint.y.ToString() + ")',24047))"; //reads connection string for PostgreSQL Npgsql.NpgsqlConnection npgSqlConnection = new Npgsql.NpgsqlConnection(ConfigurationSettings.AppSettings["ConnectionString"].ToString()); npgSqlConnection.Open(); Npgsql.NpgsqlCommand cmdCreator = npgSqlConnection.CreateCommand(); cmdCreator.CommandText = sqlInsert; cmdCreator.ExecuteNonQuery(); npgSqlConnection.Close(); } } catch (Exception exp) { }; } public static pointObj Pixel2Geo(OSGeo.MapServer.pointObj pt, mapObj map) { // Converstion of pixel coordinates to Geographic coordinates int imgXMin, imgXMax, imgYMin, imgYMax; Double geoXMin, geoXMax, geoYMin, geoYMax; //init corner coords imgXMin = 0; imgYMin = 0; imgXMax = map.width; imgYMax = map.height; geoXMin = map.extent.minx; geoXMax = map.extent.maxx; geoYMin = map.extent.miny; geoYMax = map.extent.maxy; int imgWidth, imgHeight; System.Double geoWidth, geoHeight; //calc the width imgWidth = imgXMax - imgXMin; imgHeight = imgYMax - imgYMin; if (geoXMin < geoXMax) { geoWidth = geoXMax - geoXMin; } else { geoWidth = geoXMin - geoXMax; } if (geoYMin < geoYMax) { geoHeight = geoYMax - geoYMin; } else { geoHeight = geoYMin - geoYMax; } //calc the percent along each axis Double xPercent, yPercent; xPercent = pt.x / imgWidth; yPercent = pt.y / imgHeight; Double newX, newY; newX = (xPercent * geoWidth) + geoXMin; newY = geoYMax - (yPercent * geoHeight); return new OSGeo.MapServer.pointObj(newX, newY, 0.0, 0.0); } } Thanks and Regards, Ven -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Thu Sep 16 04:35:00 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 16 Sep 2010 12:35:00 +0100 Subject: [mapserver-users] get polygons that contains a point Message-ID: Hi All I have a OGR Layer. Is there any service that I can use to retrieve all the polygons from that layer that contain a given point ? So in the request I add the coordinates and as response I get the polygons that own that point thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhevenor at rogers.com Thu Sep 16 04:49:52 2010 From: jhevenor at rogers.com (Josh Hevenor) Date: Thu, 16 Sep 2010 07:49:52 -0400 Subject: [mapserver-users] get polygons that contains a point In-Reply-To: References: Message-ID: <4C920460.5080108@rogers.com> Hi Sebastian Take a look at the queryByPoint function found here http://mapserver.org/mapscript/php/index.html#layerobj Hope this helps, Josh On 9/16/2010 7:35 AM, Sebastian E. Ovide wrote: > Hi All > > I have a OGR Layer. Is there any service that I can use to retrieve > all the polygons from that layer that contain a given point ? So in > the request I add the coordinates and as response I get the polygons > that own that point > > thanks > > > -- > Sebastian E. Ovide > > > > > _______________________________________________ > 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 - www.avg.com > Version: 8.5.441 / Virus Database: 271.1.1/3136 - Release Date: 09/15/10 06:34:00 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstoyle at COMCAST.NET Thu Sep 16 06:17:59 2010 From: rstoyle at COMCAST.NET (stoli) Date: Thu, 16 Sep 2010 06:17:59 -0700 (PDT) Subject: [mapserver-users] RE: Change a SYMBOL param via URL (CGI MapServer) In-Reply-To: References: <1284235904948-5522137.post@n2.nabble.com> Message-ID: <1284643079014-5538427.post@n2.nabble.com> No apology required. Probably not a feature that is in high demand. Thanks for the response. Now I can move on to my next idea for a work around. Rick -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Change-a-SYMBOL-param-via-URL-CGI-MapServer-tp5522137p5538427.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu Sep 16 06:22:31 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 16 Sep 2010 16:22:31 +0300 Subject: [mapserver-users] RE: Change a SYMBOL param via URL (CGI MapServer) In-Reply-To: <1284643079014-5538427.post@n2.nabble.com> References: <1284235904948-5522137.post@n2.nabble.com> <1284643079014-5538427.post@n2.nabble.com> Message-ID: Hi, Would WMS and SLD or SLD_BODY be usable for you? SLD_BODY makes ugly URLs but it works. Thin brown lines http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,borders,maxspeed_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,6558020,1615375,7978444&SRS=EPSG:3067&STYLES=&maxspeed=100&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Emaxspeed_query%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23E6550D%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E1.00%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E Wider green lines http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,borders,maxspeed_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,6558020,1615375,7978444&SRS=EPSG:3067&STYLES=&maxspeed=100&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Emaxspeed_query%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2331A354%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E2.00%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta stoli > L?hetetty: 16. syyskuuta 2010 16:18 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] RE: Change a SYMBOL param via URL > (CGI MapServer) > > > > No apology required. Probably not a feature that is in high > demand. Thanks > for the response. Now I can move on to my next idea for a work around. > > Rick > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Change-a-SYMBOL-param-v > ia-URL-CGI-MapServer-tp5522137p5538427.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From punk.kish at gmail.com Thu Sep 16 06:32:45 2010 From: punk.kish at gmail.com (P Kishor) Date: Thu, 16 Sep 2010 15:32:45 +0200 Subject: [mapserver-users] creating layers dynamically with cgi Message-ID: I want to generate MapServer layers, but can I do so without writing them into the map file? I am using 5.6.5 with cgi. I'd rather not use MapScript (by the way, what is the state of Perl MapScript with MS 5.6.5?) -- Puneet Kishor From jkapalczynski at ci.maple-grove.mn.us Thu Sep 16 07:14:43 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Sep 2010 09:14:43 -0500 Subject: [mapserver-users] Symbology Message-ID: In a map file.....Is there a way to use an image (jpg, bmp, png) instead of a marker symbol (star, circle etc) when symbolizing points LAYER DUMP TRUE NAME 'Firestations' DATA 'firestations' TYPE POINT STATUS ON CLASS NAME 'Fire Stations' COLOR 254 0 0 INSTEAD OF STAR PLACE AN IMAGE SYMBOL "star" SIZE 8 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at terrestris.de Thu Sep 16 07:25:49 2010 From: adams at terrestris.de (adams) Date: Thu, 16 Sep 2010 16:25:49 +0200 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: <4C9228ED.80706@terrestris.de> Jay, of course there are lots of possibilities... see here: http://mapserver.org/mapfile/symbology/construction.html Regards, Till > LAYER > > DUMP TRUE > > NAME 'Firestations' > > DATA 'firestations' > > TYPE POINT > > STATUS ON > > CLASS > > NAME 'Fire Stations' > > COLOR 254 0 0 > > *INSTEAD OF STAR PLACE AN IMAGE* > > SYMBOL "star" > > SIZE 8 > > END > > > _______________________________________________ > 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 mschulz at webgis.de Thu Sep 16 07:27:21 2010 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 16 Sep 2010 16:27:21 +0200 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file?..Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > ?????? LAYER > > ????????????? DUMP TRUE > > ????????????? NAME 'Firestations' > > ????????????? DATA 'firestations' > > ????????????? TYPE POINT > > ????????????? STATUS ON > > ????????????? CLASS > > ????????????? ? NAME 'Fire Stations' > > ????????????? ? COLOR 254 0 0 > > ???????????????????? INSTEAD OF STAR PLACE AN IMAGE > > ????????????? ? SYMBOL "star" > > ????????????? ????? SIZE 8 > > ????????????? END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From adams at terrestris.de Thu Sep 16 07:29:24 2010 From: adams at terrestris.de (adams) Date: Thu, 16 Sep 2010 16:29:24 +0200 Subject: [mapserver-users] point symbol Message-ID: <4C9229C4.9020004@terrestris.de> JAy, sorry, I just recognized, that the for you interesting part is not mentioned in that context, see here: SSYMBOL NAME 'arson2' TYPE PIXMAP IMAGE '/home/mapserv/proj/pmap/arson2.png' TRANSPARENT 0 END Till -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Sep 16 07:45:05 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Sep 2010 09:45:05 -0500 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: Ok that seems to make sense...but where do I place the image SYMBOL (your example below)? DO I place that in the map file as well? Little confused there.... Thanks Michael and Adam for your return replys. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, September 16, 2010 9:27 AM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > ?????? LAYER > > ????????????? DUMP TRUE > > ????????????? NAME 'Firestations' > > ????????????? DATA 'firestations' > > ????????????? TYPE POINT > > ????????????? STATUS ON > > ????????????? CLASS > > ????????????? ? NAME 'Fire Stations' > > ????????????? ? COLOR 254 0 0 > > ???????????????????? INSTEAD OF STAR PLACE AN IMAGE > > ????????????? ? SYMBOL "star" > > ????????????? ????? SIZE 8 > > ????????????? END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From David.Fawcett at state.mn.us Thu Sep 16 07:50:00 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 16 Sep 2010 09:50:00 -0500 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: You can put the symbol definition in your map file, or in a symbols file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your symbols.sym file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, September 16, 2010 9:45 AM To: 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology Ok that seems to make sense...but where do I place the image SYMBOL (your example below)? DO I place that in the map file as well? Little confused there.... Thanks Michael and Adam for your return replys. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, September 16, 2010 9:27 AM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > ?????? LAYER > > ????????????? DUMP TRUE > > ????????????? NAME 'Firestations' > > ????????????? DATA 'firestations' > > ????????????? TYPE POINT > > ????????????? STATUS ON > > ????????????? CLASS > > ????????????? ? NAME 'Fire Stations' > > ????????????? ? COLOR 254 0 0 > > ???????????????????? INSTEAD OF STAR PLACE AN IMAGE > > ????????????? ? SYMBOL "star" > > ????????????? ????? SIZE 8 > > ????????????? END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu Sep 16 08:00:43 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 16 Sep 2010 10:00:43 -0500 Subject: [mapserver-users] get polygons that contains a point In-Reply-To: <4C920460.5080108@rogers.com> References: <4C920460.5080108@rogers.com> Message-ID: In addition, the standard CGI mode=nquery will do this for you and you can craft WFS filters to do so as well. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Josh Hevenor Sent: Thursday, September 16, 2010 6:50 AM To: Sebastian E. Ovide Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] get polygons that contains a point Hi Sebastian Take a look at the queryByPoint function found here http://mapserver.org/mapscript/php/index.html#layerobj Hope this helps, Josh On 9/16/2010 7:35 AM, Sebastian E. Ovide wrote: Hi All I have a OGR Layer. Is there any service that I can use to retrieve all the polygons from that layer that contain a given point ? So in the request I add the coordinates and as response I get the polygons that own that point thanks -- Sebastian E. Ovide _______________________________________________ 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 - www.avg.com Version: 8.5.441 / Virus Database: 271.1.1/3136 - Release Date: 09/15/10 06:34:00 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thilo.Wehrmann at dlr.de Thu Sep 16 08:04:26 2010 From: Thilo.Wehrmann at dlr.de (Thilo.Wehrmann at dlr.de) Date: Thu, 16 Sep 2010 17:04:26 +0200 Subject: [mapserver-users] Integration of legend graphics into exported pdf maps Message-ID: Hello together, currently we are using mapserver 5.4.2 as map rendering system in our project. We build several web services around mapserver for adding additional logic to the wms interface. One service is the generation of multiple legends within one single graphics. The system works with the underlying SLD definitions of the different layers. One drawback of that solution is still the bad quality of the rendered legend graphics. If we use these rendered graphics in a pdf document with higher resolution the produced legends cannot be directly used. Is it possible to alter the quality of the legend graphics to increase the resolution during rendering process of mapserver ? For the maps we can adapt the resolution using width&height parameters. With the GetLegendGraphic it is not easily possible to increase that resolution. Do you have any solution for this problem? It would be a pity to switch to another wms server only because of the legend capabilities. Thanks in advance and best regards from Germany, Thilo Wehrmann Deutsches Zentrum f?r Luft- und Raumfahrt e.V. in der Helmholtz-Gemeinschaft Deutsches Fernerkundungsdatenzentrum Abteilung Landoberfl?che Dr. Thilo Wehrmann BMBF WISDOM Projekt Oberpfaffenhofen 82234 We?ling Telefon 08153 28-1487 Telefax 08153 28-1445 E-Mail mailto:thilo.wehrmann at dlr.de Internet http://www.caf.DLR.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Thu Sep 16 08:08:25 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 16 Sep 2010 16:08:25 +0100 Subject: [mapserver-users] Itasca Application: mapserv(): Web application error. Query mode needs a point, imgxy and mapxy are not set. Message-ID: Hi Guys, just playing around with the Itasca Application. Selecting Query features I get mapserv(): Web application error. Query mode needs a point, imgxy and mapxy are not set. any ideas ? -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Thu Sep 16 08:11:08 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 16 Sep 2010 16:11:08 +0100 Subject: [mapserver-users] Re: Itasca Application: mapserv(): Web application error. Query mode needs a point, imgxy and mapxy are not set. In-Reply-To: References: Message-ID: Ops, It works fine... just need to click inside a Polygon ! On Thu, Sep 16, 2010 at 4:08 PM, Sebastian E. Ovide < sebastian.ovide at gmail.com> wrote: > Hi Guys, > > just playing around with the Itasca Application. Selecting Query features I > get mapserv(): Web application error. Query mode needs a point, imgxy and > mapxy are not set. > > any ideas ? > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From lehrs at erau.edu Thu Sep 16 08:14:03 2010 From: lehrs at erau.edu (Lehr, Steven) Date: Thu, 16 Sep 2010 11:14:03 -0400 Subject: [mapserver-users] Dissolve Tool? In-Reply-To: References: <4C920460.5080108@rogers.com> Message-ID: <9D58C43BDFE3F846ADF3A0F8100940B3587712@DBEXVS02.erau.edu> Does anyone have a reliable dissolve tool that they would share. I have many cases where I need to dissolve parcels on a parcel_id (maybe up to 200,000 polygons in the whole file); I know I can bring it down into ESRI, but it adds multiple steps to my process. I'd like to have a Perl/python script that does: dissolve.pl parcels parcel_id The output being a shapefile named parcels_dissolve.* Where the inputs: parcels is a shapefile and parcel_id an attribute in the .dbf; The .shp, .dbf etc would be processed appropriately dissolving on the attribute passed in, so it could be parcel_id to dissolve parcels with similar parcel_id, or could be an attribute like zoning; the resulting output file would contain only one record in the .dbf file for each unique attribute. Additionally the only attribute left in the .dbf would be the attribute being dissolved on (unless you have the ability to sum area or count # of occurrences; but no other logic about which fields to bring forth; just the one attribute). Thanks for the help. I'd be willing to pay for this project to be written if someone is interested - drop me an email off list. Steven Lehr Associate Professor College of Engineering Embry-Riddle Aeronautical University (LB263) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario.franco at ydreams.com Thu Sep 16 08:18:21 2010 From: mario.franco at ydreams.com (Mario Franco) Date: Thu, 16 Sep 2010 16:18:21 +0100 Subject: [mapserver-users] Raster Layer Backgound Color Message-ID: <4C92353D.4090307@ydreams.com> It's possible to change the background color of a raster layer where there isn't data, I tried the color and background parameter in class element none of them works. If I use the offsite it works but also puts transparent back elements in the raster (ex: some labels). Any help is welcome. M?rio Franco From jkapalczynski at ci.maple-grove.mn.us Thu Sep 16 08:20:28 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Sep 2010 10:20:28 -0500 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: Thanks guys for your thoughts...still green to this and trying to learn I would make real sense to me to create the .sym file where I would not have to redefine the particular symbol sets DO I HAVE THIS RIGHT? 1. BUT how do I define the symbol set or point to the .sym file from the map file ????? SYMBOL FILE: So in the Symbol file I would have this (example of two of them) SYMBOL NAME 'bike' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/church.png' TRANSPARENT 5 END MAP FILE: I would simply call them? CLASS STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Thursday, September 16, 2010 9:50 AM To: Jay Kapalczynski; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology You can put the symbol definition in your map file, or in a symbols file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your symbols.sym file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, September 16, 2010 9:45 AM To: 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology Ok that seems to make sense...but where do I place the image SYMBOL (your example below)? DO I place that in the map file as well? Little confused there.... Thanks Michael and Adam for your return replys. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, September 16, 2010 9:27 AM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > LAYER > > DUMP TRUE > > NAME 'Firestations' > > DATA 'firestations' > > TYPE POINT > > STATUS ON > > CLASS > > NAME 'Fire Stations' > > COLOR 254 0 0 > > INSTEAD OF STAR PLACE AN IMAGE > > SYMBOL "star" > > SIZE 8 > > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Thu Sep 16 08:26:13 2010 From: michael.smith at usace.army.mil (Smith, Michael D ERDC-CRREL-NH) Date: Thu, 16 Sep 2010 11:26:13 -0400 Subject: [mapserver-users] Symbology In-Reply-To: Message-ID: Jay, A couple of additional steps. 1). Add SYMBOLSET as the first line in your symbol file 2). In the mapfile, in the MAP section add a line SYMBOLSET /path/to/symbolset_file Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 9/16/10 11:20 AM, "Jay Kapalczynski" wrote: > Thanks guys for your thoughts...still green to this and trying to learn > I would make real sense to me to create the .sym file where I would not have > to redefine the particular symbol sets > > DO I HAVE THIS RIGHT?? > > 1. BUT how do I define the symbol set or point to the .sym file from the map > file ????? > > SYMBOL FILE: So in the Symbol file I would have this (example of two of them) > > SYMBOL > ? NAME 'bike' > ? TYPE pixmap > ? IMAGE '/home/mapserv/proj/pmap/bike.png'? > ? TRANSPARENT 2 > END > SYMBOL > ? NAME 'church' > ? TYPE pixmap > ? IMAGE '/home/mapserv/proj/pmap/church.png'? > ? TRANSPARENT 5 > END > > > MAP FILE: I would simply call them? > > CLASS > ? STYLE > ??? SYMBOL "bike" > ??? COLOR 0 0 0 > ??? OUTLINECOLOR 0 0 0 > ? END > END > > > -----Original Message----- > From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] > Sent: Thursday, September 16, 2010 9:50 AM > To: Jay Kapalczynski; 'Michael Schulz' > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Symbology > > You can put the symbol definition in your map file, or in a symbols file (e.g. > symbols.sym) and then set SYMBOLSET at the MAP level to point to your > symbols.sym file. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski > Sent: Thursday, September 16, 2010 9:45 AM > To: 'Michael Schulz' > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Symbology > > Ok that seems to make sense...but where do I place the image SYMBOL (your > example below)?? DO I place that in the map file as well? > Little confused there.... > > Thanks Michael and Adam for your return replys. > > > -----Original Message----- > From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf > Of Michael Schulz > Sent: Thursday, September 16, 2010 9:27 AM > To: Jay Kapalczynski > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Symbology > > Hi, > > yes, you have to define an image symbol in your symbolset and use that: > > SYMBOL > ? NAME 'church' > ? TYPE pixmap > ? IMAGE 'church.gif' > ? TRANSPARENT 5 > END > > then use > SYMBOL 'church' in your style. > > Cheers, Michael > > 2010/9/16 Jay Kapalczynski : >> > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a >> > marker symbol (star, circle etc) when symbolizing points >> > >> > >> > >> > LAYER >> > >> > DUMP TRUE >> > >> > NAME 'Firestations' >> > >> > DATA 'firestations' >> > >> > TYPE POINT >> > >> > STATUS ON >> > >> > CLASS >> > >> > NAME 'Fire Stations' >> > >> > COLOR 254 0 0 >> > >> > INSTEAD OF STAR PLACE AN IMAGE >> > >> > SYMBOL "star" >> > >> > SIZE 8 >> > >> > END >> > >> > >> > >> > _______________________________________________ >> > 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 mschulz at webgis.de Thu Sep 16 08:26:32 2010 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 16 Sep 2010 17:26:32 +0200 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: Jay, you need to reference the symbolset file in the map section of you mapfile SYMYBOLSET '/path/to/your/symbolset.sym' then you can simply use the names of the defined symbols. Cheers, Michael 2010/9/16 Jay Kapalczynski : > Thanks guys for your thoughts...still green to this and trying to learn > > I would make real sense to me to create the .sym file where I would not have > to redefine the particular symbol sets > > > > DO I HAVE THIS RIGHT? > > > > 1.? BUT how do I define the symbol set or point to the .sym file from the > map file ????? > > > > SYMBOL FILE: So in the Symbol file I would have this (example of two of > them) > > > > SYMBOL > > ? NAME 'bike' > > ? TYPE pixmap > > ? IMAGE '/home/mapserv/proj/pmap/bike.png' > > ? TRANSPARENT 2 > > END > > SYMBOL > > ? NAME 'church' > > ? TYPE pixmap > > ? IMAGE '/home/mapserv/proj/pmap/church.png' > > ? TRANSPARENT 5 > > END > > > > > > MAP FILE: I would simply call them? > > > > CLASS > > ? STYLE > > ??? SYMBOL "bike" > > ??? COLOR 0 0 0 > > ??? OUTLINECOLOR 0 0 0 > > ? END > > END > > > > > > -----Original Message----- > From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] > Sent: Thursday, September 16, 2010 9:50 AM > To: Jay Kapalczynski; 'Michael Schulz' > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Symbology > > > > You can put the symbol definition in your map file, or in a symbols file > (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your > symbols.sym file. > > > > David. > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > Kapalczynski > > Sent: Thursday, September 16, 2010 9:45 AM > > To: 'Michael Schulz' > > Cc: mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] Symbology > > > > Ok that seems to make sense...but where do I place the image SYMBOL (your > example below)?? DO I place that in the map file as well? > > Little confused there.... > > > > Thanks Michael and Adam for your return replys. > > > > > > -----Original Message----- > > From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf > Of Michael Schulz > > Sent: Thursday, September 16, 2010 9:27 AM > > To: Jay Kapalczynski > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] Symbology > > > > Hi, > > > > yes, you have to define an image symbol in your symbolset and use that: > > > > SYMBOL > > ? NAME 'church' > > ? TYPE pixmap > > ? IMAGE 'church.gif' > > ? TRANSPARENT 5 > > END > > > > then use > > SYMBOL 'church' in your style. > > > > Cheers, Michael > > > > 2010/9/16 Jay Kapalczynski : > >> In a map file...Is there a way to use an image (jpg, bmp, png) instead of >> a > >> marker symbol (star, circle etc) when symbolizing points > >> > >> > >> > >> ?????? LAYER > >> > >> ????????????? DUMP TRUE > >> > >> ????????????? NAME 'Firestations' > >> > >> ????????????? DATA 'firestations' > >> > >> ????????????? TYPE POINT > >> > >> ????????????? STATUS ON > >> > >> ????????????? CLASS > >> > >> ????????????? ? NAME 'Fire Stations' > >> > >> ????????????? ? COLOR 254 0 0 > >> > >> ???????????????????? INSTEAD OF STAR PLACE AN IMAGE > >> > >> ????????????? ? SYMBOL "star" > >> > >> ????????????? ????? SIZE 8 > >> > >> ????????????? END > >> > >> > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > > > > > > > -- > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Aufwind durch Wissen! > > > > Qualifizierte Open Source Schulungen bei der > > http://www.foss-academy.eu/ > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > ----------------------------------------------------------- > > Michael Schulz > > mschulz at webgis.de > > > > in medias res > > Gesellschaft f?r Informationstechnologie mbH > > > > Schwimmbadstra?e 2 > > D-79100? Freiburg i. Br. > > > > Tel:? +49 (0)761 705798-102 > > Tel:? +49 (0)761 705798-0 > > Fax: +49 (0)761 705798-09 > > > > http://www.webgis.de / http://www.zopecms.de > > -------------------------------------------------------------- > > Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck > > Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From jkapalczynski at ci.maple-grove.mn.us Thu Sep 16 08:35:40 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Sep 2010 10:35:40 -0500 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: Once again guys....thanks...VERY Appreciated I am having one last problem...the path...if the map file is in the police folder (as seen below) how do I write the path to get to the .sym file. I am having a hard tiem trying to figure out were is the root to start my URL path.... Hope this does not seem to stupid a question...when I am trying to create a path...do I think of it from the location of the .map file to the .sym file and then create the path between them. OR do I always start from one location? SYMBOLSET /path/to/symbolset_file Folder structure: Ms4w Apps maplegrove Htdocs Symbolset folder .sym file maps maple_grove police .map files ... ... ... From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: Thursday, September 16, 2010 10:26 AM To: Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Jay, A couple of additional steps. 1). Add SYMBOLSET as the first line in your symbol file 2). In the mapfile, in the MAP section add a line SYMBOLSET /path/to/symbolset_file Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 9/16/10 11:20 AM, "Jay Kapalczynski" wrote: Thanks guys for your thoughts...still green to this and trying to learn I would make real sense to me to create the .sym file where I would not have to redefine the particular symbol sets DO I HAVE THIS RIGHT? 1. BUT how do I define the symbol set or point to the .sym file from the map file ????? SYMBOL FILE: So in the Symbol file I would have this (example of two of them) SYMBOL NAME 'bike' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/church.png' TRANSPARENT 5 END MAP FILE: I would simply call them? CLASS STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Thursday, September 16, 2010 9:50 AM To: Jay Kapalczynski; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology You can put the symbol definition in your map file, or in a symbols file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your symbols.sym file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, September 16, 2010 9:45 AM To: 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology Ok that seems to make sense...but where do I place the image SYMBOL (your example below)? DO I place that in the map file as well? Little confused there.... Thanks Michael and Adam for your return replys. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, September 16, 2010 9:27 AM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > LAYER > > DUMP TRUE > > NAME 'Firestations' > > DATA 'firestations' > > TYPE POINT > > STATUS ON > > CLASS > > NAME 'Fire Stations' > > COLOR 254 0 0 > > INSTEAD OF STAR PLACE AN IMAGE > > SYMBOL "star" > > SIZE 8 > > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Thu Sep 16 08:42:01 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Thu, 16 Sep 2010 09:42:01 -0600 Subject: [mapserver-users] Raster Layer Backgound Color In-Reply-To: <4C92353D.4090307@ydreams.com> References: <4C92353D.4090307@ydreams.com> Message-ID: Can you post the relevant snippet from your map file that shows what you have tried? Alex On Thu, Sep 16, 2010 at 9:18 AM, Mario Franco wrote: > ?It's possible to change the background color of a raster layer where there > isn't data, I tried the color and background parameter in class element none > of them works. > If I use the offsite it works but also puts transparent back elements in the > raster (ex: some labels). > Any help is welcome. > > > M?rio Franco > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From adams at terrestris.de Thu Sep 16 08:49:50 2010 From: adams at terrestris.de (adams) Date: Thu, 16 Sep 2010 17:49:50 +0200 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: <4C923C9E.5050603@terrestris.de> Jay, all pathes in the mapfile are relative to the mapfile. e.g. mapfile.map /symbset.sym leads to the reference /symbset.sym This is true to all references in the mapfile AND included files such as symbset.sym! Regards Once again guys....thanks...VERY Appreciated > > I am having one last problem...the path...if the map file is in the > police folder (as seen below) how do I write the path to get to the > .sym file. I am having a hard tiem trying to figure out were is the > root to start my URL path.... > > Hope this does not seem to stupid a question...when I am trying to > create a path...do I think of it from the location of the .map file to > the .sym file and then create the path between them. OR do I always > start from one location? > > SYMBOLSET /path/to/symbolset_file > > Folder structure: > > Ms4w > > Apps > > maplegrove > > Htdocs > > Symbolset folder > > *.sym file* > > maps > > maple_grove > > police > > *.map files* > > ... > > ... > > ... > > *From:* Smith, Michael D ERDC-CRREL-NH > [mailto:michael.smith at usace.army.mil] > *Sent:* Thursday, September 16, 2010 10:26 AM > *To:* Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz' > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Symbology > > Jay, > > A couple of additional steps. > > 1). Add SYMBOLSET as the first line in your symbol file > > 2). In the mapfile, in the MAP section add a line > > SYMBOLSET /path/to/symbolset_file > > Mike > > > -- > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > Hanover, NH > > > > On 9/16/10 11:20 AM, "Jay Kapalczynski" > wrote: > > Thanks guys for your thoughts...still green to this and trying to learn > I would make real sense to me to create the .sym file where I would > not have to redefine the particular symbol sets > > DO I HAVE THIS RIGHT? > > 1. BUT how do I define the symbol set or point to the .sym file from > the map file ????? > > *SYMBOL FILE: So in the Symbol file I would have this (example of two > of them) > * > SYMBOL > NAME 'bike' > TYPE pixmap > IMAGE '/home/mapserv/proj/pmap/bike.png' > TRANSPARENT 2 > END > SYMBOL > NAME 'church' > TYPE pixmap > IMAGE '/home/mapserv/proj/pmap/church.png' > TRANSPARENT 5 > END > > * > MAP FILE: I would simply call them? > * > CLASS > STYLE > SYMBOL "bike" > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > END > END > > > -----Original Message----- > From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] > Sent: Thursday, September 16, 2010 9:50 AM > To: Jay Kapalczynski; 'Michael Schulz' > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Symbology > > You can put the symbol definition in your map file, or in a symbols > file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to > point to your symbols.sym file. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > Kapalczynski > Sent: Thursday, September 16, 2010 9:45 AM > To: 'Michael Schulz' > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Symbology > > Ok that seems to make sense...but where do I place the image SYMBOL > (your example below)? DO I place that in the map file as well? > Little confused there.... > > Thanks Michael and Adam for your return replys. > > > -----Original Message----- > From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On > Behalf Of Michael Schulz > Sent: Thursday, September 16, 2010 9:27 AM > To: Jay Kapalczynski > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Symbology > > Hi, > > yes, you have to define an image symbol in your symbolset and use that: > > SYMBOL > NAME 'church' > TYPE pixmap > IMAGE 'church.gif' > TRANSPARENT 5 > END > > then use > SYMBOL 'church' in your style. > > Cheers, Michael > > 2010/9/16 Jay Kapalczynski : > > In a map file...Is there a way to use an image (jpg, bmp, png) > instead of a > > marker symbol (star, circle etc) when symbolizing points > > > > > > > > LAYER > > > > DUMP TRUE > > > > NAME 'Firestations' > > > > DATA 'firestations' > > > > TYPE POINT > > > > STATUS ON > > > > CLASS > > > > NAME 'Fire Stations' > > > > COLOR 254 0 0 > > > > INSTEAD OF STAR PLACE AN IMAGE > > > > SYMBOL "star" > > > > SIZE 8 > > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario.franco at ydreams.com Thu Sep 16 08:50:41 2010 From: mario.franco at ydreams.com (Mario Franco) Date: Thu, 16 Sep 2010 16:50:41 +0100 Subject: [mapserver-users] Raster Layer Backgound Color In-Reply-To: References: <4C92353D.4090307@ydreams.com> Message-ID: <4C923CD1.3070401@ydreams.com> I have this raster that have some areas with no image: # Start of layer: Carta Militar LAYER NAME "Carta_Militar" METADATA "wms_title" "Carta Militar" # required "wfs_title" "Carta Militar" # required "gml_featureid" "ID" ## REQUIRED "gml_include_items" "all" # Optional (serves all attributes for layer) END TYPE raster #CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" CONNECTION "128.1.0.79,port:5151,sde,sde,sdeinag" DATA "SDE:xxx,port:5151,xxx,xxx,xxx,SDE.MILITAR_25K_RAAC_GE,RASTER" PROJECTION "init=EPSG:32626" #--sistema de coordenadas desta layer na origem END STATUS ON TRANSPARENCY 100 # Start of layer Classes CLASS NAME "Carta Administrativa Oficial" SYMBOL "symbols/images/map_icon.gif" COLOR -1 -1 -1 BACKGROUNDCOLOR -1 -1 -1 END END I tried different colors but the areas with no data always appear as black. thx M?rio Franco On 16-09-2010 16:42, Alexander Petkov wrote: > Can you post the relevant snippet from your map file that shows what > you have tried? > > Alex > > On Thu, Sep 16, 2010 at 9:18 AM, Mario Franco wrote: >> It's possible to change the background color of a raster layer where there >> isn't data, I tried the color and background parameter in class element none >> of them works. >> If I use the offsite it works but also puts transparent back elements in the >> raster (ex: some labels). >> Any help is welcome. >> >> >> M?rio Franco >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From jkapalczynski at ci.maple-grove.mn.us Thu Sep 16 09:58:53 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Sep 2010 11:58:53 -0500 Subject: [mapserver-users] Symbology In-Reply-To: References: <4C923C9E.5050603@terrestris.de> Message-ID: Last entry on this....I can get this to work ALTHOUGH ONLY in the map file In the map file I am pointing to the folder that contains the .sym file but cant get the sym file to work I cannot get the SYMBOLSET to load the sym file. As Seen below it only works when I have the symbol set declared in the map file... What can I be doing wrong? MAP # THIS DOES NOT WORK # DECLARE LOCATION OF THE SYMBOL SET #SYMBOLSET '../../../htdocs/symbolsets/symbolset.sym' # THIS WORKS SYMBOL NAME 'bike' TYPE pixmap IMAGE '../../../htdocs/symbolsets/symbol_images/bike.png' TRANSPARENT 50 END LAYER NAME Burglaries DATA './Burglaries.shp' STATUS ON TYPE POINT CLASS NAME 'Last Weeks' STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END #.....snip SYM FILE SYMBOLSET SYMBOL NAME 'bike' TYPE pixmap IMAGE 'symbol_images/bike.png' TRANSPARENT 2 END END From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: Thursday, September 16, 2010 10:26 AM To: Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Jay, A couple of additional steps. 1). Add SYMBOLSET as the first line in your symbol file 2). In the mapfile, in the MAP section add a line SYMBOLSET /path/to/symbolset_file Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 9/16/10 11:20 AM, "Jay Kapalczynski" wrote: Thanks guys for your thoughts...still green to this and trying to learn I would make real sense to me to create the .sym file where I would not have to redefine the particular symbol sets DO I HAVE THIS RIGHT? 1. BUT how do I define the symbol set or point to the .sym file from the map file ????? SYMBOL FILE: So in the Symbol file I would have this (example of two of them) SYMBOL NAME 'bike' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/church.png' TRANSPARENT 5 END MAP FILE: I would simply call them? CLASS STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Thursday, September 16, 2010 9:50 AM To: Jay Kapalczynski; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology You can put the symbol definition in your map file, or in a symbols file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your symbols.sym file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, September 16, 2010 9:45 AM To: 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology Ok that seems to make sense...but where do I place the image SYMBOL (your example below)? DO I place that in the map file as well? Little confused there.... Thanks Michael and Adam for your return replys. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, September 16, 2010 9:27 AM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > LAYER > > DUMP TRUE > > NAME 'Firestations' > > DATA 'firestations' > > TYPE POINT > > STATUS ON > > CLASS > > NAME 'Fire Stations' > > COLOR 254 0 0 > > INSTEAD OF STAR PLACE AN IMAGE > > SYMBOL "star" > > SIZE 8 > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.fair at gmail.com Thu Sep 16 10:34:00 2010 From: matt.fair at gmail.com (Matt Fair) Date: Thu, 16 Sep 2010 11:34:00 -0600 Subject: [mapserver-users] Mapserver serving up DEM Message-ID: Hello, I have been trying to serve USGS DEM data from a geotiff and have been getting mixed results. I have been reading some past discussions and documentation on this subject, and I seem to be missing something. The documentation is http://mapserver.org/ogc/wcs_format.html#dem In my map file I have: MAP NAME "USGS" STATUS ON UNITS DD PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME "GEOTIFFINT16" DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "INT16" EXTENSION "tif" END LAYER NAME "usgs_ned" STATUS OFF TYPE RASTER DUMP TRUE DATA "layers/usgs_ned/-108_34_-102_36.tif" PROJECTION "init=epsg:4326" END END END This produces a white image, meaning it is probably only reading 8 bits. If I add PROCESSING "SCALE=AUTO", then the values are not maxed out at 255, but vary based on the size of data I am requesting. So this won't work either because in my mapping software, as I request smaller and smaller patches, the elevation data is scaled really weird and is not consistent. Is there anything I am missing to get 16 bit USGS DEM data to be distributed via Mapserver? Any help would be greatly appreciated. Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Sep 16 10:41:21 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 16 Sep 2010 13:41:21 -0400 Subject: [mapserver-users] Mapserver serving up DEM In-Reply-To: References: Message-ID: <4C9256C1.2020106@pobox.com> Matt Fair wrote: > OUTPUTFORMAT > NAME "GEOTIFFINT16" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "INT16" > EXTENSION "tif" > END ... > This produces a white image, meaning it is probably only reading 8 > bits. If I add PROCESSING "SCALE=AUTO", then the values are not maxed > out at 255, but vary based on the size of data I am requesting. So this > won't work either because in my mapping software, as I request smaller > and smaller patches, the elevation data is scaled really weird and is > not consistent. > > Is there anything I am missing to get 16 bit USGS DEM data to be > distributed via Mapserver? Matt, Your setup seems reasonable. Can you provide me an example of an output file produced by MapServer? I'd like to examine it to ensure it is being produced matching the output format declaration. 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 matt.fair at gmail.com Thu Sep 16 11:04:35 2010 From: matt.fair at gmail.com (Matt Fair) Date: Thu, 16 Sep 2010 12:04:35 -0600 Subject: [mapserver-users] Mapserver serving up DEM In-Reply-To: <4C9256C1.2020106@pobox.com> References: <4C9256C1.2020106@pobox.com> Message-ID: Frank, Would this be the jpeg or png image generated via the WMS query or a tiff file generated on the server? Matt On Thu, Sep 16, 2010 at 11:41 AM, Frank Warmerdam wrote: > Matt Fair wrote: > >> OUTPUTFORMAT >> NAME "GEOTIFFINT16" >> DRIVER "GDAL/GTiff" >> MIMETYPE "image/tiff" >> IMAGEMODE "INT16" >> EXTENSION "tif" >> END >> > ... > > This produces a white image, meaning it is probably only reading 8 bits. >> If I add PROCESSING "SCALE=AUTO", then the values are not maxed out at >> 255, but vary based on the size of data I am requesting. So this won't work >> either because in my mapping software, as I request smaller and smaller >> patches, the elevation data is scaled really weird and is not consistent. >> >> Is there anything I am missing to get 16 bit USGS DEM data to be >> distributed via Mapserver? >> > > Matt, > > Your setup seems reasonable. Can you provide me an example of an output > file produced by MapServer? I'd like to examine it to ensure it is being > produced matching the output format declaration. > > 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 beyhan at deprem.gov.tr Thu Sep 16 15:17:54 2010 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Fri, 17 Sep 2010 01:17:54 +0300 Subject: [mapserver-users] Could not read data from MySQL database In-Reply-To: <20100811130715.317150@gmx.net> References: <20100811130715.317150@gmx.net> Message-ID: <1284675474.7185.11.camel@localhost> Dear Friends, I was succeeded to read and draw data from MySQL database using OGR connection until upgrade mapserver and gdal. Now I use the same codes but could not read data form MySql database. I have created tables using ogr2ogr again. but still When I open webpage the following error message occurred. msDrawMap(): Image handling error. Failed to draw layer named 'sea'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `sea'. File not found or unsupported format. What is wrong for that, please help. When I try ogrinfo as follows it works [murat at localhost mapdata]$ ogrinfo "MySQL:testogr,user=root,password=mysql_123" INFO: Open of `MySQL:testogr,user=root,password=mysql_pass' using driver `MySQL' successful. 1: deniz (Polygon) 2: il_merkezleri (Point) 3: il_sinirlari (Polygon) 4: ilce_merkezleri (Point) 5: ilce_sinirlari (Polygon) 6: iller (Polygon) 7: iller_sil (Polygon) 8: komsular (Polygon) [murat at localhost mapdata]$ AND my mapserver version info as follows [murat at localhost mapdata]$ mapserv -v MapServer version 5.2.1 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 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE and [murat at localhost mapdata]$ ogrinfo --formats Supported Formats: -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) -> "UK .NTF" (readonly) -> "SDTS" (readonly) -> "TIGER" (read/write) -> "S57" (read/write) -> "DGN" (read/write) -> "VRT" (readonly) -> "REC" (readonly) -> "Memory" (read/write) -> "BNA" (read/write) -> "CSV" (read/write) -> "GML" (read/write) -> "GPX" (read/write) -> "KML" (read/write) -> "GeoJSON" (read/write) -> "Interlis 1" (read/write) -> "Interlis 2" (read/write) -> "GMT" (read/write) -> "SQLite" (read/write) -> "ODBC" (read/write) -> "PGeo" (readonly) -> "OGDI" (readonly) -> "MySQL" (read/write) -> "PCIDSK" (readonly) -> "XPlane" (readonly) -> "AVCBin" (readonly) -> "AVCE00" (readonly) -> "DXF" (read/write) -> "GRASS" (readonly) -> "Geoconcept" (read/write) -> "GeoRSS" (read/write) -> "GPSTrackMaker" (read/write) -> "VFK" (readonly) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From matt.fair at gmail.com Thu Sep 16 17:23:24 2010 From: matt.fair at gmail.com (Matt Fair) Date: Thu, 16 Sep 2010 18:23:24 -0600 Subject: [mapserver-users] Mapserver serving up DEM In-Reply-To: References: <4C9256C1.2020106@pobox.com> Message-ID: Here are two files it generated, one with auto scale and one without auto scale. Matt On Thu, Sep 16, 2010 at 12:04 PM, Matt Fair wrote: > Frank, > Would this be the jpeg or png image generated via the WMS query or a tiff > file generated on the server? > Matt > > > On Thu, Sep 16, 2010 at 11:41 AM, Frank Warmerdam wrote: > >> Matt Fair wrote: >> >>> OUTPUTFORMAT >>> NAME "GEOTIFFINT16" >>> DRIVER "GDAL/GTiff" >>> MIMETYPE "image/tiff" >>> IMAGEMODE "INT16" >>> EXTENSION "tif" >>> END >>> >> ... >> >> This produces a white image, meaning it is probably only reading 8 bits. >>> If I add PROCESSING "SCALE=AUTO", then the values are not maxed out at >>> 255, but vary based on the size of data I am requesting. So this won't work >>> either because in my mapping software, as I request smaller and smaller >>> patches, the elevation data is scaled really weird and is not consistent. >>> >>> Is there anything I am missing to get 16 bit USGS DEM data to be >>> distributed via Mapserver? >>> >> >> Matt, >> >> Your setup seems reasonable. Can you provide me an example of an output >> file produced by MapServer? I'd like to examine it to ensure it is being >> produced matching the output format declaration. >> >> 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv_no_auto.jpeg Type: image/jpeg Size: 1253 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv_auto.jpeg Type: image/jpeg Size: 3850 bytes Desc: not available URL: From warmerdam at pobox.com Thu Sep 16 19:11:57 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 16 Sep 2010 22:11:57 -0400 Subject: [mapserver-users] Mapserver serving up DEM In-Reply-To: References: <4C9256C1.2020106@pobox.com> Message-ID: <4C92CE6D.6050106@pobox.com> Matt Fair wrote: > Here are two files it generated, one with auto scale and one without > auto scale. ... > > OUTPUTFORMAT > NAME "GEOTIFFINT16" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "INT16" > EXTENSION "tif" > END Matt, They are in jpeg format, not GeoTIFF. They are clearly not being produced through the above OUTPUTFORMAT declaration. How are you requesting them? Note that declaring an output format does not mean it will be used. It just makes it available as a format option. 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 Jukka.Rahkonen at mmmtike.fi Fri Sep 17 00:21:07 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 17 Sep 2010 10:21:07 +0300 Subject: [mapserver-users] Motion: FOSS4G WFS magician competition In-Reply-To: <8CEB0280-4717-4874-B0FA-9A870A360A70@gmail.com> References: <8CEB0280-4717-4874-B0FA-9A870A360A70@gmail.com> Message-ID: Hi, I would love to meet a person or group who could contigure all these - GeoServer - deegree - MapServer and - TinyOWS to deliver the same datasets through WFS, and then show with some Open Source desktop client, that it is possible to build queries with both attribute and spatial filters and request features from all these services so that the returning data get correctly parsed and that finally there would be four identical map layers with identical attributes on the screen. I have found that I am not talented enough for that and I'll give in. As a first step I suggest that GeoServer, deegree, MapServer and TinyOWS developer teams would try to agree on some test datasets and try to keep them available from their demo servers so that the WFS server and client developers could use them for evaluating interoperability. Datasets do not need to be big so it should not be especially hard or expensive thing to do. Actually there are already at least these online, but all with different datasets: http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap?SERVICE=WFS&VERSION=1.0.0& REQUEST=GetCapabilities http://demo.deegree.org/deegree-wfs/services?SERVICE=WFS&VERSION=1.0.0&R EQUEST=GetCapabilities http://sigma.openplans.org:8080/geoserver/wfs?SERVICE=WFS&VERSION=1.0.0& REQUEST=GetCapabilities Or perhaps the competition should be aimed for the desktop GIS teams? Usually there is no problem in getting data out from the WFS services with wget or browser, but the real clients tend to work against only (or at most) one WFS server model. Anyway, the same data available from different WFS servers would be extremely important even then. -Jukka Rahkonen- From kristian_frost7 at hotmail.com Fri Sep 17 00:51:16 2010 From: kristian_frost7 at hotmail.com (Frost89) Date: Fri, 17 Sep 2010 00:51:16 -0700 (PDT) Subject: [mapserver-users] MapScript WMS Server - Custom exceptions Message-ID: <1284709876375-5541770.post@n2.nabble.com> Hi all I have created a C# MapScript wrapper for a WMS server. Now, I want to add some "vendor-specific parameters" to the request (e.g.: "http://server/wms?request=getmap&...&login=usr&password=pwd") This I have also made work, to a point. When the user enters invalid information, I just return a 403 errorpage (Access denied). I was thinking about throwing a WMS exception (XML/InImage/Blank) and wondering if MapServer/MapScript is able to throw custom exceptions? Or do I have to handle it myself? /Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapScript-WMS-Server-Custom-exceptions-tp5541770p5541770.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kristian_frost7 at hotmail.com Fri Sep 17 00:54:40 2010 From: kristian_frost7 at hotmail.com (Frost89) Date: Fri, 17 Sep 2010 00:54:40 -0700 (PDT) Subject: [mapserver-users] Re: MapScript dlls? In-Reply-To: References: Message-ID: <1284710080148-5541780.post@n2.nabble.com> I use this build for my ASP.NET application: http://vbkto.dyndns.org/sdk/ http://vbkto.dyndns.org/sdk/ They are compiled for Windows, so as far as i can tell they should work. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapScript-dlls-tp5537964p5541780.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kristian_frost7 at hotmail.com Fri Sep 17 01:27:22 2010 From: kristian_frost7 at hotmail.com (Frost89) Date: Fri, 17 Sep 2010 01:27:22 -0700 (PDT) Subject: [mapserver-users] Output geospatial PDFs Message-ID: <1284712042214-5541843.post@n2.nabble.com> Is MapServer able to output geospatial PDFs? I know that PDFlib is able to handle it in version 8 (commercial), but appearently not in PDFlib Lite as MapServer uses. http://www.pdflib.com/pdflib-cookbook/geospatial-pdf/starter-geospatial/ PDFlib cookbook about geospatial PDFs http://en.wikipedia.org/wiki/Geospatial_PDF Wikipedia article about geospatial PDFs /Kristian frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Output-geospatial-PDFs-tp5541843p5541843.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Fri Sep 17 01:34:50 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 17 Sep 2010 11:34:50 +0300 Subject: [mapserver-users] Dissolve Tool? In-Reply-To: <9D58C43BDFE3F846ADF3A0F8100940B3587712@DBEXVS02.erau.edu> References: <4C920460.5080108@rogers.com> <9D58C43BDFE3F846ADF3A0F8100940B3587712@DBEXVS02.erau.edu> Message-ID: Hi, I guess that the "Union by attribute" function in OpenJUMP might be close to what you want (Tools - Analysis - One layer - Union by attribute value). Download the nightly snapshot from http://openjump.org and unzip. Increase Java memory setting in the launch file that is located in the \bin -directory. The file is openjump.bat for Windows, openjump.sh for Linux. The value you will need to increase is "-Xmx256M". Try something like "Xmx1400M". Lets hope it is enough for your dataset. OpenJUMP keeps all the data in memory and it is not sure that it can handle your data. I am remembering that with 32 bit Windows it is not possible to increase memory above about 1500M even if the computer has more but I have read about 64 bit Linux user who was super happy with 6 gigabytes. I had a try with Vmap0 World boundaries and union by REGION made me for example Europe and Asia multipolygons. Operation has an option for removing the common boundaries where it is possible, and another one for summing up the numeric fields. I suppose this is very close to what you want. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Lehr, Steven L?hetetty: 16. syyskuuta 2010 18:14 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Dissolve Tool? Does anyone have a reliable dissolve tool that they would share. I have many cases where I need to dissolve parcels on a parcel_id (maybe up to 200,000 polygons in the whole file); I know I can bring it down into ESRI, but it adds multiple steps to my process. I'd like to have a Perl/python script that does: dissolve.pl parcels parcel_id The output being a shapefile named parcels_dissolve.* Where the inputs: parcels is a shapefile and parcel_id an attribute in the .dbf; The .shp, .dbf etc would be processed appropriately dissolving on the attribute passed in, so it could be parcel_id to dissolve parcels with similar parcel_id, or could be an attribute like zoning; the resulting output file would contain only one record in the .dbf file for each unique attribute. Additionally the only attribute left in the .dbf would be the attribute being dissolved on (unless you have the ability to sum area or count # of occurrences; but no other logic about which fields to bring forth; just the one attribute). Thanks for the help. I'd be willing to pay for this project to be written if someone is interested - drop me an email off list. Steven Lehr Associate Professor College of Engineering Embry-Riddle Aeronautical University (LB263) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Sep 17 06:16:00 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 17 Sep 2010 09:16:00 -0400 Subject: [mapserver-users] MapScript WMS Server - Custom exceptions In-Reply-To: <1284709876375-5541770.post@n2.nabble.com> References: <1284709876375-5541770.post@n2.nabble.com> Message-ID: <4C936A10.8090105@pobox.com> Frost89 wrote: > Hi all > > I have created a C# MapScript wrapper for a WMS server. Now, I want to add > some "vendor-specific parameters" to the request (e.g.: > "http://server/wms?request=getmap&...&login=usr&password=pwd") > > This I have also made work, to a point. When the user enters invalid > information, I just return a 403 errorpage (Access denied). I was thinking > about throwing a WMS exception (XML/InImage/Blank) and wondering if > MapServer/MapScript is able to throw custom exceptions? Or do I have to > handle it myself? > > /Kristian Frost Kristian, Skimming maperror.h it appears that msSetError() is not exposed via SWIG. I think you would pretty much need access to this to push an error message through the conventional error handling channels from C#. One approach would be to try and expose msSetError() though I'm not sure if that would be enough. Alternatively you could fake your way around it just creating the error image or xml yourself. But this might be fragile in various ways. 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 jkapalczynski at ci.maple-grove.mn.us Fri Sep 17 06:20:18 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Fri, 17 Sep 2010 08:20:18 -0500 Subject: [mapserver-users] Expressions Message-ID: I am using GeoMoose but feel this is more a question for Map Server. I am trying to sort my points by dates using the code below....I think that I can do this but not sure Is this a viable format "2Y%2M%2D" ? * As for the field in the shapefile...If I use an integer it removes the 0 from the 092110, (sept 21st 2010) * If I use a date then there are "/" ... 9/21/10 * The only way I can see this happening is using a text field with retains the 0 in 092110 When I use the textfield "dateValues" as seen below I can get the stars to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not show and I know that I have a few records with dates in the last 14 days... Thoughts? THANKS....all your help is very appreciated.... Main .xml file ./maple_grove_datasets/police/Burglaries.map .map file CLASS NAME 'Last Weeks' EXPRESSION ('[dateValues]' > '%LASTWEEK%') STYLE COLOR 0 0 0 SYMBOL "star" SIZE 12 END END CLASS NAME 'Last Two Weeks' EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') STYLE COLOR 0 100 50 SYMBOL "star" SIZE 12 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri Sep 17 07:14:41 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 17 Sep 2010 09:14:41 -0500 Subject: [mapserver-users] Could not read data from MySQL database In-Reply-To: <1284675474.7185.11.camel@localhost> References: <20100811130715.317150@gmx.net> <1284675474.7185.11.camel@localhost> Message-ID: I don't know if this applies to your case at all. In other cases where people have had mysql connections fail, it has sometimes been due to the lack of mysql support in ogr. One question to figure out is whether the ogr being used by MapServer is the same ogr that you are hitting when you run ogrinfo. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murat Beyhan Sent: Thursday, September 16, 2010 5:18 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Could not read data from MySQL database Dear Friends, I was succeeded to read and draw data from MySQL database using OGR connection until upgrade mapserver and gdal. Now I use the same codes but could not read data form MySql database. I have created tables using ogr2ogr again. but still When I open webpage the following error message occurred. msDrawMap(): Image handling error. Failed to draw layer named 'sea'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `sea'. File not found or unsupported format. What is wrong for that, please help. When I try ogrinfo as follows it works [murat at localhost mapdata]$ ogrinfo "MySQL:testogr,user=root,password=mysql_123" INFO: Open of `MySQL:testogr,user=root,password=mysql_pass' using driver `MySQL' successful. 1: deniz (Polygon) 2: il_merkezleri (Point) 3: il_sinirlari (Polygon) 4: ilce_merkezleri (Point) 5: ilce_sinirlari (Polygon) 6: iller (Polygon) 7: iller_sil (Polygon) 8: komsular (Polygon) [murat at localhost mapdata]$ AND my mapserver version info as follows [murat at localhost mapdata]$ mapserv -v MapServer version 5.2.1 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 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE and [murat at localhost mapdata]$ ogrinfo --formats Supported Formats: -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) -> "UK .NTF" (readonly) -> "SDTS" (readonly) -> "TIGER" (read/write) -> "S57" (read/write) -> "DGN" (read/write) -> "VRT" (readonly) -> "REC" (readonly) -> "Memory" (read/write) -> "BNA" (read/write) -> "CSV" (read/write) -> "GML" (read/write) -> "GPX" (read/write) -> "KML" (read/write) -> "GeoJSON" (read/write) -> "Interlis 1" (read/write) -> "Interlis 2" (read/write) -> "GMT" (read/write) -> "SQLite" (read/write) -> "ODBC" (read/write) -> "PGeo" (readonly) -> "OGDI" (readonly) -> "MySQL" (read/write) -> "PCIDSK" (readonly) -> "XPlane" (readonly) -> "AVCBin" (readonly) -> "AVCE00" (readonly) -> "DXF" (read/write) -> "GRASS" (readonly) -> "Geoconcept" (read/write) -> "GeoRSS" (read/write) -> "GPSTrackMaker" (read/write) -> "VFK" (readonly) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From goncalo.martins at inov.pt Fri Sep 17 08:09:59 2010 From: goncalo.martins at inov.pt (goncalo) Date: Fri, 17 Sep 2010 08:09:59 -0700 (PDT) Subject: [mapserver-users] Re: Raster Display Performance In-Reply-To: References: <4B9402A4.4050506@gmail.com> Message-ID: <1284736199686-5543142.post@n2.nabble.com> Hi everyone, I am using mapserver to create a tiling server. Actually I have this server working good but I realize that I have some performance issues. I am using MapServer in windows and my raster images are too large TIF files. (resolution 17000x16000 each tif). I have read a lot in this forum and I did all the recommended thing: gdal_translate -co "TILED=YES" old.tif new.tif gdaladdo new.tif 2 4 8 16 32 64 128 gdaltindex index.shp new.tif shptree index.shp The problem is I dind't see increased performance after that. Maybe I am doing something wrong. PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END LAYER NAME "Angola" TYPE RASTER STATUS DEFAULT TILEINDEX "index.shp" TILEITEM "Location" END Best regards, Gon?alo Marins -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performance-tp4691679p5543142.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Fri Sep 17 09:57:05 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 17 Sep 2010 11:57:05 -0500 Subject: [mapserver-users] creating layers dynamically with cgi In-Reply-To: References: Message-ID: You can't create new layers, only alter existing. I've often put in a dummy layer for just such a purpose. Perl MapScript 5.6.5 works just fine... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of P Kishor Sent: Thursday, September 16, 2010 8:33 AM To: Mapserver-users Subject: [mapserver-users] creating layers dynamically with cgi I want to generate MapServer layers, but can I do so without writing them into the map file? I am using 5.6.5 with cgi. I'd rather not use MapScript (by the way, what is the state of Perl MapScript with MS 5.6.5?) -- Puneet Kishor _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.b at gritechnologies.com Fri Sep 17 19:24:54 2010 From: bob.b at gritechnologies.com (Bob Basques) Date: Fri, 17 Sep 2010 21:24:54 -0500 Subject: [mapserver-users] Expressions In-Reply-To: References: Message-ID: <4C9422F6.5020909@gritechnologies.com> A first stab at seeing more than one class, might be to try and switch them around order wise, one filter may be overwriting the other for example. bobb On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > I am using GeoMoose but feel this is more a question for Map Server. > > I am trying to sort my points by dates using the code below....I think that I can do this but not sure > > Is this a viable format "2Y%2M%2D" ? > > ? As for the field in the shapefile...If I use an integer it removes the 0 from the 092110, (sept 21^st 2010) > > ? If I use a date then there are "/" ... 9/21/10 > > ? The only way I can see this happening is using a text field with retains the 0 in 092110 > > When I use the textfield "dateValues" as seen below I can get the stars to draw but only the LASTWEEK...for some > reason the LASTTWOWEEKS does not show and I know that I have a few records with dates in the last 14 days... > > Thoughts? > > THANKS....all your help is very appreciated.... > > Main .xml file > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > .map file > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > STYLE > > COLOR 0 0 0 > > SYMBOL "star" > > SIZE 12 > > END > > END > > CLASS > > NAME 'Last Two Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "star" > > SIZE 12 > > END > > END > > > _______________________________________________ > 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 ycnyon at pd.jaring.my Fri Sep 17 19:37:18 2010 From: ycnyon at pd.jaring.my (YC Nyon) Date: Sat, 18 Sep 2010 10:37:18 +0800 Subject: [mapserver-users] Securing a WMS server Message-ID: Hi, I been trying to secure my WMS server resource via login/password using the mapfile configuration below. However, it's not working as it doensn't ask for any login/pwd with my testing using a wms client like Arcgis 9.3 The image map will just appear as usual. Rgds YC ----------------------- WEB TEMPLATE "default.html" IMAGEPATH "C:\web\soul\wms\temp\" IMAGEURL "/temp/" METADATA WMS_TITLE "Map Service" WMS_ABSTRACT "GIS" WMS_SERVER_VERSION "1.1.1" WMS_ONLINERESOURCE "http://localhost?map=/webwms/wms.map&" WMS_SRS "EPSG:4326" WMS_AUTH_TYPE "basic" WMS_AUTH_USERNAME "1234" # username here WMS_AUTH_PASSWORD "1234" # password here END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Fri Sep 17 21:28:46 2010 From: gregor at hostgis.com (Gregor at HostGIS) Date: Fri, 17 Sep 2010 21:28:46 -0700 Subject: [mapserver-users] Specify NODATA for 3 bands? Message-ID: <4C943FFE.5090409@hostgis.com> Hey guys. I have some NAIP imagery in MrSID format. It displays, but the black area where counties meet is really ugly. The MrSIDs are 3 one-byte bands: R/G/B The bands do not specify a NODATA but I figure that 0/0/0 (all black) may be usable as a NODATA value, via a PROCESSING directive. It works nicely, suppressing the black halos and making the almost-seamless effect where the counties intersect. BUT... it only does so if I don't show all 3 bands. If I specify any combination of BAND directives, I get a greyscale image (of course) and the NODATA works (black halos are gone, so counties are near seamless). PROCESSING "NODATA=0" PROCESSING "BANDS="1,2" #PROCESSING "BANDS="3" #PROCESSING "BANDS="1,3" But, if I do not specify the BAND or if I specify all 3 bands, I get the black halos as if the NODATA were not specified. What gives? Is there something special I must do to have the NODATA take effect for 3 or more bands? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From mark at spatialcloud.com Fri Sep 17 22:38:55 2010 From: mark at spatialcloud.com (Mark Korver) Date: Sat, 18 Sep 2010 00:38:55 -0500 Subject: [mapserver-users] Specify NODATA for 3 bands? In-Reply-To: <4C943FFE.5090409@hostgis.com> References: <4C943FFE.5090409@hostgis.com> Message-ID: I think your "halos" are blacks that are not pure black. Not 0/0/0, just close. This is a compression artifact. I think the same thing also happens with jp2 CCMs. The NAIP CCMs/or County Compressed Mosaics were never meant to be mosaicked together like this. They are a deliverable at the county level, not the state. MapServer as far as I know will only do 0/0/0 and does not have a feature to make that fuzzy. You may have seen page, written some time ago, that speaks to this problem - http://sites.google.com/site/bpederse/caliwms The vertical and horizontal banding in the California case is related but diff from the halo effect. That is because with the large counties are cut into smaller sids in order to keep file sizes under control. That in combination with re-projecting the data causes issues with no-data areas. On Fri, Sep 17, 2010 at 11:28 PM, Gregor at HostGIS wrote: > Hey guys. > > I have some NAIP imagery in MrSID format. It displays, but the black area > where counties meet is really ugly. The MrSIDs are 3 one-byte bands: R/G/B > The bands do not specify a NODATA but I figure that 0/0/0 (all black) may be > usable as a NODATA value, via a PROCESSING directive. > > It works nicely, suppressing the black halos and making the almost-seamless > effect where the counties intersect. BUT... it only does so if I don't show > all 3 bands. If I specify any combination of BAND directives, I get a > greyscale image (of course) and the NODATA works (black halos are gone, so > counties are near seamless). > ? PROCESSING "NODATA=0" > ? PROCESSING "BANDS="1,2" > ? #PROCESSING "BANDS="3" > ? #PROCESSING "BANDS="1,3" > > But, if I do not specify the BAND or if I specify all 3 bands, I get the > black halos as if the NODATA were not specified. What gives? Is there > something special I must do to have the NODATA take effect for 3 or more > bands? > > -- > HostGIS, Open Source solutions for the global GIS community > Greg Allensworth - SysAdmin, Programmer, GIS Person, Security > ? Network+ ? Server+ ? A+ ? Security+ ? Linux+ > ? PHP ? PostgreSQL ? MySQL ? DHTML/JavaScript/AJAX > > "No one cares if you can back up ? only if you can recover." > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Sat Sep 18 00:04:03 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 18 Sep 2010 10:04:03 +0300 Subject: [mapserver-users] Securing a WMS server References: Message-ID: Hi, Those mapfile parameters are for Mapserver so that it can contact another WMS that is behind basic authentication. Your own WMS can not be put behind basic auth from a mapfile, you must configure Apache for that. -Jukka Rahkonen- YC Nyon wrote: > Hi, > I been trying to secure my WMS server resource via login/password using the mapfile configuration below. However, it's not working as it doensn't ask for any login/pwd with my testing using a wms client like Arcgis 9.3 The image map will just appear as usual. > Rgds > YC ----------------------- WEB TEMPLATE "default.html" IMAGEPATH "C:\web\soul\wms\temp\" IMAGEURL "/temp/" METADATA WMS_TITLE "Map Service" WMS_ABSTRACT "GIS" WMS_SERVER_VERSION "1.1.1" WMS_ONLINERESOURCE "http://localhost?map=/webwms/wms.map&" WMS_SRS "EPSG:4326" WMS_AUTH_TYPE "basic" WMS_AUTH_USERNAME "1234" # username here WMS_AUTH_PASSWORD "1234" # password here END END From gregor at hostgis.com Sat Sep 18 00:40:49 2010 From: gregor at hostgis.com (Gregor at HostGIS) Date: Sat, 18 Sep 2010 00:40:49 -0700 Subject: [mapserver-users] Specify NODATA for 3 bands? In-Reply-To: References: <4C943FFE.5090409@hostgis.com> Message-ID: <4C946D01.8030704@hostgis.com> On 9/17/2010 10:38 PM, Mark Korver wrote: > I think your "halos" are blacks that are not pure black. > Not 0/0/0, just close. Thanks so much for the link to bpederse's article. The simple addition of "OFFSITE 0 0 0" replicated the effect I wanted, and with his "fuzziness hack" this will be even better. I'm having some other issues, but will bring them up when I've characterized them better. Though I am still curious about the specific issue I was seeing. If the bands' values were 0/0/1 or similar, then combining BAND directives should have given me mixed cases where the black areas vanished or appeared, depending on which band was selected, yes? Instead, I was getting very clear cases of no-black for any 2 bands and yes-black for all 3. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From jkapalczynski at ci.maple-grove.mn.us Thu Sep 16 09:11:49 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 16 Sep 2010 11:11:49 -0500 Subject: [mapserver-users] Symbology In-Reply-To: <4C923C9E.5050603@terrestris.de> References: <4C923C9E.5050603@terrestris.de> Message-ID: This is what I am trying...when I turn on the layer it all goes pink...so something is not correct I have to move back 3 folders and go into the one housing the sym file The images are in the sym file folder in their own file [cid:image001.jpg at 01CB558F.F564F670] MAP FILE PROJECTION 'init=epsg:26915' END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END SYMBOLSET "../../../htdocs/symbolsets/symbolset.sym" LAYER NAME Burglaries DATA './Burglaries.shp' STATUS ON TYPE POINT CLASS NAME 'Last Weeks' STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END SYMBOL FILE SYMBOLSET SYMBOL NAME 'bike' TYPE pixmap IMAGE '/symbol_images/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/symbol_images/church.png' TRANSPARENT 5 END Folder structure: Ms4w Apps maplegrove Htdocs Symbolset folder .sym file maps maple_grove police .map files ... ... ... From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: Thursday, September 16, 2010 10:26 AM To: Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Jay, A couple of additional steps. 1). Add SYMBOLSET as the first line in your symbol file 2). In the mapfile, in the MAP section add a line SYMBOLSET /path/to/symbolset_file Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 9/16/10 11:20 AM, "Jay Kapalczynski" wrote: Thanks guys for your thoughts...still green to this and trying to learn I would make real sense to me to create the .sym file where I would not have to redefine the particular symbol sets DO I HAVE THIS RIGHT? 1. BUT how do I define the symbol set or point to the .sym file from the map file ????? SYMBOL FILE: So in the Symbol file I would have this (example of two of them) SYMBOL NAME 'bike' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/church.png' TRANSPARENT 5 END MAP FILE: I would simply call them? CLASS STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Thursday, September 16, 2010 9:50 AM To: Jay Kapalczynski; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology You can put the symbol definition in your map file, or in a symbols file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your symbols.sym file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, September 16, 2010 9:45 AM To: 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology Ok that seems to make sense...but where do I place the image SYMBOL (your example below)? DO I place that in the map file as well? Little confused there.... Thanks Michael and Adam for your return replys. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, September 16, 2010 9:27 AM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > LAYER > > DUMP TRUE > > NAME 'Firestations' > > DATA 'firestations' > > TYPE POINT > > STATUS ON > > CLASS > > NAME 'Fire Stations' > > COLOR 254 0 0 > > INSTEAD OF STAR PLACE AN IMAGE > > SYMBOL "star" > > SIZE 8 > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 12997 bytes Desc: image001.jpg URL: From ian.walberg at airborne.aero Sat Sep 18 09:55:06 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 18 Sep 2010 12:55:06 -0400 Subject: [mapserver-users] Arabic text In-Reply-To: References: <4C923C9E.5050603@terrestris.de> Message-ID: Can anyone point us at the details of how to display Arabic text. We tried a few weeks ago and could not get the characters to link up but they did look correct as single characters. Does the fgs install for Linux or the ms4w on windows support Arabic text? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From enrico.gallo at gmail.com Sat Sep 18 15:36:08 2010 From: enrico.gallo at gmail.com (Enrico Gallo) Date: Sun, 19 Sep 2010 00:36:08 +0200 Subject: [mapserver-users] postgis attributes not retrieved - msPostGISLayerGetShape called for record = 0 Message-ID: Hi list, I am struggling against a strange error with a postgis layer I am using: Ubuntu server 10.04.1 Apache: 2.2.14-5ubuntu8 Mapserver: 5.6.5-2~lucid1 PHP: 5.3.2-1ubuntu4.2 Mapscript: 5.6.1-1ubuntu1.1 Postgresql: 8.3 Postgis: 1.5.1-3~lucid1 Pmapper: 4.0.0.0.0.0.0 I setup map file; I can display Postgis geometries without any problem But when trying to query a geometry (eg: a point) I cannot retrieve attributes Debugging postgres and mapserver I notice something not so clear (see also complete log attached) data query from db works, except for index 8<------------- [Sun Sep 19 00:01:38 2010].776314 msPostGISLayerWhichShapes query: select "id_nodo_d","id_nodo_n","id_bacino_n","id_dtm","quota","quota_datum",encode(AsBinary(force_collection(force_2d("nodo_d_32632_the_geom")),'NDR'),'hex') as geom,"id_nodo_d" from nodi_d where nodo_d_32632_the_geom && GeomFromText('POLYGON((848337.993323167 5109401.91696871,848337.993323167 5130534.34765662,869470.424011073 5130534.34765662,869470.424011073 5109401.91696871,848337.993323167 5109401.91696871))',32632) [Sun Sep 19 00:01:38 2010].782886 msPostGISLayerWhichShapes query status: PGRES_TUPLES_OK (2) [Sun Sep 19 00:01:38 2010].782910 msPostGISLayerWhichShapes got 1 records in result. [Sun Sep 19 00:01:38 2010].782925 msPostGISLayerNextShape called. [Sun Sep 19 00:01:38 2010].782938 msPostGISReadShape called. [Sun Sep 19 00:01:38 2010].782974 msPostGISReadShape: PQgetlength = 3 [Sun Sep 19 00:01:38 2010].782988 msPostGISReadShape: [id_nodo_d] "971" [Sun Sep 19 00:01:38 2010].783001 msPostGISReadShape: PQgetlength = 2 [Sun Sep 19 00:01:38 2010].783013 msPostGISReadShape: [id_nodo_n] "48" [Sun Sep 19 00:01:38 2010].783026 msPostGISReadShape: PQgetlength = 2 [Sun Sep 19 00:01:38 2010].783038 msPostGISReadShape: [id_bacino_n] "48" [Sun Sep 19 00:01:38 2010].783051 msPostGISReadShape: PQgetlength = 1 [Sun Sep 19 00:01:38 2010].783063 msPostGISReadShape: [id_dtm] "2" [Sun Sep 19 00:01:38 2010].783075 msPostGISReadShape: PQgetlength = 0 [Sun Sep 19 00:01:38 2010].783087 msPostGISReadShape: [quota] "" [Sun Sep 19 00:01:38 2010].783100 msPostGISReadShape: PQgetlength = 0 [Sun Sep 19 00:01:38 2010].783112 msPostGISReadShape: [quota_datum] "" [Sun Sep 19 00:01:38 2010].783174 msPostGISReadShape: Setting shape->index = 0 [Sun Sep 19 00:01:38 2010].783186 msPostGISReadShape: [index] 0 [Sun Sep 19 00:01:38 2010].783659 msPostGISReadShape: [shape] POINT (859566.8320000000530854 5116043.2699999995529652) [...] [Sun Sep 19 00:01:38 2010].799121 msPostGISParseData: unique_column=id_nodo_d, srid=32632, geom_column_name=nodo_d_32632_the_geom, table_name=nodi_d [...] [Sun Sep 19 00:01:38 2010].799086 msPostGISLayerGetShape called for record = 0 8<------------- NB: unique_column=id_nodo_d is a true unique value integer field 8<------------- "id_nodo_d","id_nodo_n","id_bacino_n","id_dtm","quota","quota_datum",encode(AsBinary(force_collection(force_2d("nodo_d_32632_the_geom")),'NDR'),'hex') as geom,"id_nodo_d" from nodi_d where "id_nodo_d" = 0 [Sun Sep 19 00:01:38 2010].800010 msPostGISLayerGetShape number of records: 0 8<------------- as you can see, as uid id_nodo_d is set 0 instead of 971, where clause is wrong and no result is given! any suggestion? many thanks enrico -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver_level5.log Type: text/x-log Size: 5129 bytes Desc: not available URL: From woodbri at swoodbridge.com Sat Sep 18 16:44:37 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 18 Sep 2010 19:44:37 -0400 Subject: [mapserver-users] Arabic text In-Reply-To: References: <4C923C9E.5050603@terrestris.de> Message-ID: <4C954EE5.3010104@swoodbridge.com> On 9/18/2010 12:55 PM, Ian Walberg wrote: > Can anyone point us at the details of how to display Arabic text. We > tried a few weeks ago and could not get the characters to link up but > they did look correct as single characters. > > Does the fgs install for Linux or the ms4w on windows support Arabic text? Ian, In your LABEL block you need to have ENCODING 'your encoding' and you need a text font that has all the joining character glyphs and mapserver needs to be with fribidi-0.19.2 I think both FGS and MS4W both build with that. Often, the hardest part is finding a good text font that supports all the characters. -Steve From beyhan at deprem.gov.tr Mon Sep 20 00:02:27 2010 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Mon, 20 Sep 2010 10:02:27 +0300 Subject: [mapserver-users] Could not read data from MySQL database In-Reply-To: References: <20100811130715.317150@gmx.net> <1284675474.7185.11.camel@localhost> Message-ID: <1284966147.9326.7.camel@localhost> Dear David and friends, I have install rpm package of Mapserver and MySql. But When I use gdal I compiled source code. Because rpm package of gdal doesn't support MySQl formats. Then I checked ogrinfo file it was under /usr/local/bin and when I use whereis ogrinfo command it says same place for ogrinfo. [murat at localhost apps]$ whereis ogrinfo ogrinfo: /usr/local/bin/ogrinfo So I updated MySQL table by using ogr2ogr for update the data stored in MySQL database. But still same problem is continuing. I can't catch the problem where it is. So, do you have any idea? Murat On Fri, 2010-09-17 at 09:14 -0500, Fawcett, David (MPCA) wrote: > I don't know if this applies to your case at all. In other cases where people have had mysql connections fail, it has sometimes been due to the lack of mysql support in ogr. One question to figure out is whether the ogr being used by MapServer is the same ogr that you are hitting when you run ogrinfo. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murat Beyhan > Sent: Thursday, September 16, 2010 5:18 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Could not read data from MySQL database > > Dear Friends, > > I was succeeded to read and draw data from MySQL database using OGR > connection until upgrade mapserver and gdal. > > Now I use the same codes but could not read data form MySql database. > I have created tables using ogr2ogr again. > but still When I open webpage the following error message occurred. > > msDrawMap(): Image handling error. Failed to draw layer named 'sea'. > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `sea'. File not found or unsupported format. > > What is wrong for that, please help. > > When I try ogrinfo as follows it works > [murat at localhost mapdata]$ ogrinfo > "MySQL:testogr,user=root,password=mysql_123" > INFO: Open of `MySQL:testogr,user=root,password=mysql_pass' > using driver `MySQL' successful. > 1: deniz (Polygon) > 2: il_merkezleri (Point) > 3: il_sinirlari (Polygon) > 4: ilce_merkezleri (Point) > 5: ilce_sinirlari (Polygon) > 6: iller (Polygon) > 7: iller_sil (Polygon) > 8: komsular (Polygon) > [murat at localhost mapdata]$ > > > AND > my mapserver version info as follows > > [murat at localhost mapdata]$ mapserv -v > MapServer version 5.2.1 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 > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > and > [murat at localhost mapdata]$ ogrinfo > --formats > Supported > Formats: > -> "ESRI > Shapefile" (read/write) > -> "MapInfo > File" (read/write) > -> > "UK .NTF" (readonly) > -> "SDTS" (readonly) > -> "TIGER" (read/write) > -> "S57" (read/write) > -> "DGN" (read/write) > -> "VRT" (readonly) > -> "REC" (readonly) > -> "Memory" (read/write) > -> "BNA" (read/write) > -> "CSV" (read/write) > -> "GML" (read/write) > -> "GPX" (read/write) > -> "KML" (read/write) > -> "GeoJSON" (read/write) > -> "Interlis 1" (read/write) > -> "Interlis 2" (read/write) > -> "GMT" (read/write) > -> "SQLite" (read/write) > -> "ODBC" (read/write) > -> "PGeo" (readonly) > -> "OGDI" (readonly) > -> "MySQL" (read/write) > -> "PCIDSK" (readonly) > -> "XPlane" (readonly) > -> "AVCBin" (readonly) > -> "AVCE00" (readonly) > -> "DXF" (read/write) > -> "GRASS" (readonly) > -> "Geoconcept" (read/write) > -> "GeoRSS" (read/write) > -> "GPSTrackMaker" (read/write) > -> "VFK" (readonly) > > > > > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From edikaradumi at gmail.com Mon Sep 20 01:37:50 2010 From: edikaradumi at gmail.com (Edi.Karadumi) Date: Mon, 20 Sep 2010 01:37:50 -0700 (PDT) Subject: [mapserver-users] Re: Raster Display Performance In-Reply-To: <1284736199686-5543142.post@n2.nabble.com> References: <4B9402A4.4050506@gmail.com> <1284736199686-5543142.post@n2.nabble.com> Message-ID: <1284971870530-5549558.post@n2.nabble.com> one issue may be that you should not use .shp in the tileindex property, in this way mapserver dont uses the index.qix created by the shptree command. you should put only the name "index" -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performance-tp4691679p5549558.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Sep 20 01:59:12 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 20 Sep 2010 11:59:12 +0300 Subject: [mapserver-users] Re: Raster Display Performance In-Reply-To: <1284971870530-5549558.post@n2.nabble.com> References: <4B9402A4.4050506@gmail.com><1284736199686-5543142.post@n2.nabble.com> <1284971870530-5549558.post@n2.nabble.com> Message-ID: Hi, I believe the information about tileindex is is old and index is nowadays utilised even with "index.shp". It does not harm to use just plain "index", though. When it comes to the original question by goncalo, which was > I am using mapserver to create a tiling server. Actually I have this server > working good but I realize that I have some performance issues. I am using > MapServer in windows and my raster images are too large TIF files. > (resolution 17000x16000 each tif). > I have read a lot in this forum and I did all the recommended thing: > gdal_translate -co "TILED=YES" old.tif new.tif > gdaladdo new.tif 2 4 8 16 32 64 128 > gdaltindex index.shp new.tif > shptree index.shp > The problem is I dind't see increased performance after that. Could you, goncalo, describe the performance issues you have with the gdalinfo report of the original images. Also, add DEBUG 5 into your LAYER, do some image readings and have a look at the MS_ERRORFILE, there will be some cold numbers about how long time image processing takes. Your process and the mapfile you sent were building a raster layer from one single image file that was used through tileindex. Is this really your situation? -Jukka Rahkonen- Edi.Karadumi wrote: > > > one issue may be that you should not use .shp in the > tileindex property, in > this way mapserver dont uses the index.qix created by the > shptree command. > you should put only the name "index" > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performa > nce-tp4691679p5549558.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 sebastian.ovide at gmail.com Mon Sep 20 03:34:15 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Mon, 20 Sep 2010 11:34:15 +0100 Subject: [mapserver-users] get polygons that contains a point In-Reply-To: References: <4C920460.5080108@rogers.com> Message-ID: yes, this works wonderfully ! just wondering if this is a MapServer only feature of if it is part of some OGC standard .... On Thu, Sep 16, 2010 at 4:00 PM, Lime, Steve D (DNR) wrote: > In addition, the standard CGI mode=nquery will do this for you and you > can craft WFS filters to do so as well. > > > > Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Josh Hevenor > *Sent:* Thursday, September 16, 2010 6:50 AM > *To:* Sebastian E. Ovide > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] get polygons that contains a point > > > > Hi Sebastian > Take a look at the queryByPoint function found here > http://mapserver.org/mapscript/php/index.html#layerobj > > Hope this helps, > Josh > > On 9/16/2010 7:35 AM, Sebastian E. Ovide wrote: > > Hi All > > I have a OGR Layer. Is there any service that I can use to retrieve all the > polygons from that layer that contain a given point ? So in the request I > add the coordinates and as response I get the polygons that own that point > > thanks > > > -- > Sebastian E. Ovide > > > > > > > > > _______________________________________________ > > 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 - www.avg.com > > Version: 8.5.441 / Virus Database: 271.1.1/3136 - Release Date: 09/15/10 06:34:00 > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Mon Sep 20 03:54:15 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Mon, 20 Sep 2010 11:54:15 +0100 Subject: [mapserver-users] msQueryByPoint(): template for no matching record found Message-ID: Hi All, Is it possible to customize the "msQueryByPoint(): Search returned no results. No matching record(s) found. " message? maybe configuring a template that specific error ??? thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Sep 20 03:59:03 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 20 Sep 2010 13:59:03 +0300 Subject: [mapserver-users] get polygons that contains a point In-Reply-To: References: <4C920460.5080108@rogers.com> Message-ID: Hi, As Steve said, you can do it with WFS. Send the query below to http://demo.deegree.org/deegree-wfs/services with http POST and you will get back a country which contains the given point 3.988165755918471 47.70294862553225 Unfortunately using WFS is a bit tricky and there are still too much interoperability problems with different WFS servers and clients. app:geom 3.988165755918471 47.70294862553225 -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide L?hetetty: 20. syyskuuta 2010 13:34 Vastaanottaja: Lime, Steve D (DNR) Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] get polygons that contains a point yes, this works wonderfully ! just wondering if this is a MapServer only feature of if it is part of some OGC standard .... On Thu, Sep 16, 2010 at 4:00 PM, Lime, Steve D (DNR) wrote: In addition, the standard CGI mode=nquery will do this for you and you can craft WFS filters to do so as well. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Josh Hevenor Sent: Thursday, September 16, 2010 6:50 AM To: Sebastian E. Ovide Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] get polygons that contains a point Hi Sebastian Take a look at the queryByPoint function found here http://mapserver.org/mapscript/php/index.html#layerobj Hope this helps, Josh On 9/16/2010 7:35 AM, Sebastian E. Ovide wrote: Hi All I have a OGR Layer. Is there any service that I can use to retrieve all the polygons from that layer that contain a given point ? So in the request I add the coordinates and as response I get the polygons that own that point thanks -- Sebastian E. Ovide _______________________________________________ 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 - www.avg.com Version: 8.5.441 / Virus Database: 271.1.1/3136 - Release Date: 09/15/10 06:34:00 -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From goncalo.martins at inov.pt Mon Sep 20 04:51:04 2010 From: goncalo.martins at inov.pt (goncalo) Date: Mon, 20 Sep 2010 04:51:04 -0700 (PDT) Subject: [mapserver-users] Re: Raster Display Performance In-Reply-To: References: <4B9402A4.4050506@gmail.com> <1284736199686-5543142.post@n2.nabble.com> <1284971870530-5549558.post@n2.nabble.com> Message-ID: <1284983464859-5550112.post@n2.nabble.com> Hi, Thanks for you help. > Your process and the mapfile you sent were building a raster layer from > one single image file that was used through tileindex. Is this really > your situation? I think yes. What I want is to use tiled images because of the large image resolution. I saw in some posts that is possible to tile one .tif file into another .tif with small tiles of the original image. I tied to do that, but sincerely I dont know if what I'm doing is correct. I attached the debug files. I tested both situations one with tiled image and another without tiling and I dont see increased performance. I'm doing something wrong? It is expected to see a lot of increased performance? ms_error_with_tiling.txt have the debug of the image.tif with the tiles inside (created by gdaltranslate) ms_error_without_tiling.txt have the debug of the original image.tif without tiling. Angola_tiled_info.txt -> gdalinfo of the tiled image. angola1_info.txt -> gdalinfo of the original image used. http://osgeo-org.1803224.n2.nabble.com/file/n5550112/Angola_tiled_info.txt Angola_tiled_info.txt http://osgeo-org.1803224.n2.nabble.com/file/n5550112/angola1_info.txt angola1_info.txt http://osgeo-org.1803224.n2.nabble.com/file/n5550112/ms_error_with_tiling.txt ms_error_with_tiling.txt http://osgeo-org.1803224.n2.nabble.com/file/n5550112/ms_error_without_tiling.txt ms_error_without_tiling.txt -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performance-tp4691679p5550112.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Sep 20 06:01:35 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 20 Sep 2010 16:01:35 +0300 Subject: [mapserver-users] Re: Raster Display Performance In-Reply-To: <1284983464859-5550112.post@n2.nabble.com> References: <4B9402A4.4050506@gmail.com><1284736199686-5543142.post@n2.nabble.com><1284971870530-5549558.post@n2.nabble.com> <1284983464859-5550112.post@n2.nabble.com> Message-ID: Hi, Your ms_error is full of lines like msTileCacheDispatchRequest(): request is not a valid WMS request. What client are you using? Check from the Apache access.log what do the requests that your client is sending look like. I would suggest also to use very simple client for testing, either shp2img utility or then something that sends hand written WMS requests, for example browser or wget. -Jukka- goncalo wrote: > Hi, > > Thanks for you help. > > > Your process and the mapfile you sent were building a > raster layer from > > one single image file that was used through tileindex. Is > this really > > your situation? > > I think yes. What I want is to use tiled images because of > the large image > resolution. I saw in some posts that is possible to tile one > .tif file into > another .tif with small tiles of the original image. I tied > to do that, but > sincerely I dont know if what I'm doing is correct. I > attached the debug > files. > > I tested both situations one with tiled image and another > without tiling and > I dont see increased performance. I'm doing something wrong? > It is expected > to see a lot of increased performance? > > ms_error_with_tiling.txt have the debug of the image.tif with > the tiles > inside (created by gdaltranslate) > ms_error_without_tiling.txt have the debug of the original > image.tif without > tiling. > > Angola_tiled_info.txt -> gdalinfo of the tiled image. > angola1_info.txt -> gdalinfo of the original image used. > > http://osgeo-org.1803224.n2.nabble.com/file/n5550112/Angola_ti led_info.txt > Angola_tiled_info.txt > http://osgeo-org.1803224.n2.nabble.com/file/n5550112/angola1_info.txt > angola1_info.txt > > http://osgeo-org.1803224.n2.nabble.com/file/n5550112/ms_error_ with_tiling.txt > ms_error_with_tiling.txt > http://osgeo-org.1803224.n2.nabble.com/file/n5550112/ms_error_ without_tiling.txt > ms_error_without_tiling.txt > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performa > nce-tp4691679p5550112.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 yassefa at dmsolutions.ca Mon Sep 20 06:01:41 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 20 Sep 2010 09:01:41 -0400 Subject: [mapserver-users] SVG, PDF and Flash output in MapServer 6.0. In-Reply-To: <4C8A9042.3040803@carto.net> References: <4C8A4A33.7090609@dmsolutions.ca> <4C8A9042.3040803@carto.net> Message-ID: <4C975B35.1030303@dmsolutions.ca> On 10/09/2010 4:08 PM, Andreas Neumann wrote: > Hi, > > Thank you for your information on future plans about output based on > Cairo. > > Regarding the SVG support, my main concern is that if the output goes > through Cairo than there is no chance of adding attributes and > semantics to the vector features in SVG - am I correct? In SVG one > could f.e. embed title and description elements, as well as non-graphical That is correct from what I can see. > attributes in a separate namespace in the XML output. Now that SVG > support will be widespread in all browsers (IE9 will be implementing > SVG), I would assume that people would make more use of SVG output, > also for interactive maps. In this setup it would be nice if one could > have the option between a pure graphical output (probably the CAIRO > output version) and a more semantically rich output (a separate output > driver?) I would recommend to go with Cairo, but leave the door open > for another, alternative output driver for more sophisticated SVG output. > I agree with you that we would have more control on what we can output if we have a native MapServer svg driver. I think adding a native SVG driver will always possible baring in mind that there is enough need/interest to add it and support it in the long term Thanks for your feedback. regards, > Regarding SWF: it would be better if Flash would die in the long run - > it is not part of the open web and a black box. All browser project > now seem committed to implement SVG and canvas. So I myself wouldn't > care if you would drop SWF support. Other users may think different. > > Just my two cents, > Andreas > > On 9/10/10 5:09 PM, Yewondwossen Assefa wrote: >> Hi all, >> >> The Dev team is reviewing and preparing for the 6.0 MapServer >> release [1][2]. There are significant changes and new features in >> this release. One of them is the rendering overhaul. The reasons >> behind is to facilitate the long term maintenance and make sure that >> all the output formats are in sync feature-wise. >> Currently output drivers such as svg, pdf and flash lag in >> functionality and supported features compare to the AGG/GD output. >> As part of this re-factoring, the Cairo library [3] will be added >> allowing SVG and PDF outputs to pass through this library. This >> would deprecate the current support of native svg and pdf in MapServer. >> >> The other renderer that is affected is the SWF (Flash) renderer: at >> this point there is no effort to bring this output feature to the >> level of other renderers. This means that there is a big chance that >> the SWF support will not be part of the 6.0 release (unless someone >> wants to fund it). Is this something that affects lots/some users? >> >> best regards, >> >> >> [1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan >> [2] http://trac.osgeo.org/mapserver/wiki/60MigrationIssues >> [3] http://cairographics.org/ >> >> >> * >> * >> -- >> ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email:yassefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 (ext 14) >> Fax: (613) 565-0925 >> ---------------------------------------------------------------- >> >> >> >> _______________________________________________ >> 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 -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From goncalo.martins at inov.pt Mon Sep 20 06:28:24 2010 From: goncalo.martins at inov.pt (goncalo) Date: Mon, 20 Sep 2010 06:28:24 -0700 (PDT) Subject: [mapserver-users] Re: Raster Display Performance In-Reply-To: References: <4B9402A4.4050506@gmail.com> <1284736199686-5543142.post@n2.nabble.com> <1284971870530-5549558.post@n2.nabble.com> <1284983464859-5550112.post@n2.nabble.com> Message-ID: <1284989304836-5550461.post@n2.nabble.com> Hi, I'm using http requests and fcgi like the following line: "http://10.205.1.199:8080/fcgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/example.map&mode=tile&tilemode=gmap&tile={x}+{y}+{z}" My client is a .NET application that I'm developing. I'm using a control created by telerik (radMap) that uses WMS like bing maps and openstreetmaps. That control have a problem we just can use online maps we can use our local maps, so I try to use MapServer to serve our local maps. This control (radMap) have a function GetTile() that calls the tile needed to display and in this method I'm calling the fcgi request in the previous line. When I do a request using the browser it appears to look everything ok. I get the image. Best regards, Gon?alo -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performance-tp4691679p5550461.html Sent from the Mapserver - User mailing list archive at Nabble.com. From goncalo.martins at inov.pt Mon Sep 20 06:50:45 2010 From: goncalo.martins at inov.pt (goncalo) Date: Mon, 20 Sep 2010 06:50:45 -0700 (PDT) Subject: [mapserver-users] Re: Raster Display Performance In-Reply-To: <1284989304836-5550461.post@n2.nabble.com> References: <4B9402A4.4050506@gmail.com> <1284736199686-5543142.post@n2.nabble.com> <1284971870530-5549558.post@n2.nabble.com> <1284983464859-5550112.post@n2.nabble.com> <1284989304836-5550461.post@n2.nabble.com> Message-ID: <1284990645453-5550548.post@n2.nabble.com> I have instaled the tileCache application, but I think I'm not using that. This error have something to do with TileCache aplication? Gon?alo -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performance-tp4691679p5550548.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bob.Basques at ci.stpaul.mn.us Mon Sep 20 06:54:38 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 20 Sep 2010 08:54:38 -0500 Subject: [mapserver-users] Symbology In-Reply-To: References: <4C923C9E.5050603@terrestris.de> Message-ID: <4C97214D.163B.00A8.0@ci.stpaul.mn.us> try this instead: SYMBOLSET "../../htdocs/symbolsets/symbolset.sym" bobb >>> Jay Kapalczynski wrote: This is what I am trying?when I turn on the layer it all goes pink?so something is not correct I have to move back 3 folders and go into the one housing the sym file The images are in the sym file folder in their own file MAP FILE PROJECTION 'init=epsg:26915' END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END SYMBOLSET "../../../htdocs/symbolsets/symbolset.sym" LAYER NAME Burglaries DATA './Burglaries.shp' STATUS ON TYPE POINT CLASS NAME 'Last Weeks' STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END SYMBOL FILE SYMBOLSET SYMBOL NAME 'bike' TYPE pixmap IMAGE '/symbol_images/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/symbol_images/church.png' TRANSPARENT 5 END Folder structure: Ms4w Apps maplegrove Htdocs Symbolset folder .sym file maps maple_grove police .map files ? ? ? From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: Thursday, September 16, 2010 10:26 AM To: Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Jay, A couple of additional steps. 1). Add SYMBOLSET as the first line in your symbol file 2). In the mapfile, in the MAP section add a line SYMBOLSET /path/to/symbolset_file Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 9/16/10 11:20 AM, "Jay Kapalczynski" wrote: Thanks guys for your thoughts...still green to this and trying to learn I would make real sense to me to create the .sym file where I would not have to redefine the particular symbol sets DO I HAVE THIS RIGHT? 1. BUT how do I define the symbol set or point to the .sym file from the map file ????? SYMBOL FILE: So in the Symbol file I would have this (example of two of them) SYMBOL NAME 'bike' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/church.png' TRANSPARENT 5 END MAP FILE: I would simply call them? CLASS STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Thursday, September 16, 2010 9:50 AM To: Jay Kapalczynski; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology You can put the symbol definition in your map file, or in a symbols file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to po int to your symbols.sym file. Ok that seems to make sense...but where do I place the image SYMBOL (your example below)? DO I place that in the map file as well? Little confused there.... Thanks Michael and Adam for your return replys. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, September 16, 2010 9:27 AM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > LAYER > > DUMP TRUE > > NAME 'Firestations' > > DATA 'firestations' > > TYPE POINT > > STATUS ON > > CLASS > > NAME 'Fire Stations' > > COLOR 254 0 0 > > INSTEAD OF STAR PLACE AN IMAGE > > SYMBOL "star" > > SIZE 8 > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMAGE.jpeg Type: image/jpeg Size: 12997 bytes Desc: JPEG image URL: From benjaminpreisig at gmx.at Mon Sep 20 08:16:43 2010 From: benjaminpreisig at gmx.at (Bennos) Date: Mon, 20 Sep 2010 08:16:43 -0700 (PDT) Subject: [mapserver-users] Font encoding Message-ID: <1284995803609-5550875.post@n2.nabble.com> Hi, I want to display labels of attributes of my shapefile which i exported from ArcMap 9.3. These attributes have special characters like ?, ? and ? which are part of every Latin1 or ISO-8859-2 encoded font. The problem is, that mapserver doesnt show the right characters but something like [?]. The funny thing is, that I also use other special characters, like ?, which are generated without problem. In the mapfile I allready tried different encodings, even when i change the encoding of the font there is no difference. I tried to use different fonts, too. Maybe the problem is that i generated the shapefile on WinXP and the Mapserver runs on UNIX? Another thing i would like to check is the encoding of the shapefile, but i have no idea how to do this, anyone else? I really have tried a lot and I hope someone of you can help me. Cheers, Benjamin -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-encoding-tp5550875p5550875.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rstoyle at COMCAST.NET Mon Sep 20 16:18:28 2010 From: rstoyle at COMCAST.NET (stoli) Date: Mon, 20 Sep 2010 16:18:28 -0700 (PDT) Subject: [mapserver-users] CGI returning a 502 error Message-ID: <1285024708578-5552675.post@n2.nabble.com> I'm using the ms4w binaries (5.6.3) under IIS 7. My application sends (via http POST) a lot of parameters to modify the .map file. Mostly to add features to layers that are turned off by default and then make them visible. When my parameters cause the map to show over 50 layers, the IIS returns a 502 error. I realize that the max layers are set to 100 in the default map.h file, but like I said, I am using the compiled binaries from ms4w. Does anyone know if they change that to 50 when they compile, or should I look elsewhere to find my problem? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dejan.gambin at coin.hr Tue Sep 21 04:27:26 2010 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Tue, 21 Sep 2010 13:27:26 +0200 Subject: [mapserver-users] Font encoding In-Reply-To: <1284995803609-5550875.post@n2.nabble.com> References: <1284995803609-5550875.post@n2.nabble.com> Message-ID: Hi, I usually use some hex editor to find out the real encoding of dbf files. I look for special characters and identify the encoding somehow... regards, dejan On 20. ruj. 2010., at 17:16, Bennos wrote: > > Hi, > > I want to display labels of attributes of my shapefile which i exported from > ArcMap 9.3. These attributes have special characters like ?, ? and ? which > are part of every Latin1 or ISO-8859-2 encoded font. The problem is, that > mapserver doesnt show the right characters but something like [?]. The funny > thing is, that I also use other special characters, like ?, which are > generated without problem. > In the mapfile I allready tried different encodings, even when i change the > encoding of the font there is no difference. I tried to use different fonts, > too. Maybe the problem is that i generated the shapefile on WinXP and the > Mapserver runs on UNIX? Another thing i would like to check is the encoding > of the shapefile, but i have no idea how to do this, anyone else? > I really have tried a lot and I hope someone of you can help me. > > Cheers, > Benjamin > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-encoding-tp5550875p5550875.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Tue Sep 21 06:44:57 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 21 Sep 2010 08:44:57 -0500 Subject: [mapserver-users] CGI returning a 502 error In-Reply-To: <1285024708578-5552675.post@n2.nabble.com> References: <1285024708578-5552675.post@n2.nabble.com> Message-ID: According to the docs, starting with MapServer 5.0, there is no limit to the number of layers in a mapfile. http://mapserver.org/introduction.html#layer-object I am guessing that you are running into a different issue. Have you captured the post request string and examined it to make sure that it is valid? Are you running into a string length limit for your post request? The URL for your post request would be limited to ~2k char for IE, but this only includes the URL to the server, not the key:value pairs. There could be a size limit for post requests set on your Web server to help prevent DOS attacks. I don't know where this would be set in IIS. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli Sent: Monday, September 20, 2010 6:18 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI returning a 502 error I'm using the ms4w binaries (5.6.3) under IIS 7. My application sends (via http POST) a lot of parameters to modify the .map file. Mostly to add features to layers that are turned off by default and then make them visible. When my parameters cause the map to show over 50 layers, the IIS returns a 502 error. I realize that the max layers are set to 100 in the default map.h file, but like I said, I am using the compiled binaries from ms4w. Does anyone know if they change that to 50 when they compile, or should I look elsewhere to find my problem? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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 sumit321 at hotmail.com Tue Sep 21 06:56:57 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Tue, 21 Sep 2010 06:56:57 -0700 (PDT) Subject: [mapserver-users] Re: Output geospatial PDFs In-Reply-To: <1284712042214-5541843.post@n2.nabble.com> References: <1284712042214-5541843.post@n2.nabble.com> Message-ID: <1285077417230-5554825.post@n2.nabble.com> Hi Kristian, Mapserver dont support GeoPDF as of now. Maybe you would like to speak to devs about their plans to do so. However, I have written my own routines for creating GeoPDF. I use Mapserver to generate raster/vector PDF with good quality and eventually using I text library I merge them layer by layer to create GeoPDF. Same way I add map surrounds like north arrow, legend scale bar etc. Finally I write some projection parameters and attributes. However I was not able to exploit measure tool. Trust me its time taking process but worth trying. -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Output-geospatial-PDFs-tp5541843p5554825.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sumit321 at hotmail.com Tue Sep 21 06:58:22 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Tue, 21 Sep 2010 06:58:22 -0700 (PDT) Subject: [mapserver-users] Re: Output geospatial PDFs In-Reply-To: <1284712042214-5541843.post@n2.nabble.com> References: <1284712042214-5541843.post@n2.nabble.com> Message-ID: <1285077502162-5554828.post@n2.nabble.com> One more thing... Stick to Cario renderer instead PDF in Mapserver. As I understand support for PDF may discontinue from 6.0 release. -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Output-geospatial-PDFs-tp5541843p5554828.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jkapalczynski at ci.maple-grove.mn.us Tue Sep 21 06:52:46 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 21 Sep 2010 08:52:46 -0500 Subject: [mapserver-users] Symbology In-Reply-To: <4C97214D.163B.00A8.0@ci.stpaul.mn.us> References: <4C923C9E.5050603@terrestris.de> <4C97214D.163B.00A8.0@ci.stpaul.mn.us> Message-ID: I added a few things to my sym file and got a few to work I can now call circle and get a circle?.BUT for some reason the image will not work, maybe an issue with the image? You have any test images that are known to work? I have the image like this IMAGE 'bike.png' because the images are in the same folder as the .sym file Any other thoughts?.greatly appreciated?.thanks THIS WORKS CLASS NAME 'Last Week' STYLE SYMBOL "circle" COLOR 0 0 0 OUTLINECOLOR 0 0 0 #SIZE 12 END # STYLE END # CLASS THIS DOES NOT WORK CLASS NAME 'Last Week' STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 #SIZE 12 END # STYLE END # CLASS .SYM FILE Symbol Name 'circle' Type ELLIPSE FILLED TRUE Points 1 1 END END SYMBOL NAME 'circle-dashed' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END STYLE 5 5 END END SYMBOL NAME 'bike' TYPE pixmap IMAGE 'bike.png' END From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: Monday, September 20, 2010 8:55 AM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; 'adams' Subject: RE: [mapserver-users] Symbology try this instead: SYMBOLSET "../../htdocs/symbolsets/symbolset.sym" bobb >>> Jay Kapalczynski wrote: This is what I am trying?when I turn on the layer it all goes pink?so something is not correct I have to move back 3 folders and go into the one housing the sym file The images are in the sym file folder in their own file [cid:image001.jpg at 01CB596A.5C833820] MAP FILE PROJECTION 'init=epsg:26915' END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END SYMBOLSET "../../../htdocs/symbolsets/symbolset.sym" LAYER NAME Burglaries DATA './Burglaries.shp' STATUS ON TYPE POINT CLASS NAME 'Last Weeks' STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END SYMBOL FILE SYMBOLSET SYMBOL NAME 'bike' TYPE pixmap IMAGE '/symbol_images/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/symbol_images/church.png' TRANSPARENT 5 END Folder structure: Ms4w Apps maplegrove Htdocs Symbolset folder .sym file maps maple_grove police .map files ? ? ? From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: Thursday, September 16, 2010 10:26 AM To: Jay Kapalczynski; 'Fawcett, David (MPCA)'; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Jay, A couple of additional steps. 1). Add SYMBOLSET as the first line in your symbol file 2). In the mapfile, in the MAP section add a line SYMBOLSET /path/to/symbolset_file Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 9/16/10 11:20 AM, "Jay Kapalczynski" wrote: Thanks guys for your thoughts...still green to this and trying to learn I would make real sense to me to create the .sym file where I would not have to redefine the particular symbol sets DO I HAVE THIS RIGHT? 1. BUT how do I define the symbol set or point to the .sym file from the map file ????? SYMBOL FILE: So in the Symbol file I would have this (example of two of them) SYMBOL NAME 'bike' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/bike.png' TRANSPARENT 2 END SYMBOL NAME 'church' TYPE pixmap IMAGE '/home/mapserv/proj/pmap/church.png' TRANSPARENT 5 END MAP FILE: I would simply call them? CLASS STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Thursday, September 16, 2010 9:50 AM To: Jay Kapalczynski; 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology You can put the symbol definition in your map file, or in a symbols file (e.g. symbols.sym) and then set SYMBOLSET at the MAP level to point to your symbols.sym file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, September 16, 2010 9:45 AM To: 'Michael Schulz' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Symbology Ok that seems to make sense...but where do I place the image SYMBOL (your example below)? DO I place that in the map file as well? Little confused there.... Thanks Michael and Adam for your return replys. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, September 16, 2010 9:27 AM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Symbology Hi, yes, you have to define an image symbol in your symbolset and use that: SYMBOL NAME 'church' TYPE pixmap IMAGE 'church.gif' TRANSPARENT 5 END then use SYMBOL 'church' in your style. Cheers, Michael 2010/9/16 Jay Kapalczynski : > In a map file...Is there a way to use an image (jpg, bmp, png) instead of a > marker symbol (star, circle etc) when symbolizing points > > > > LAYER > > DUMP TRUE > > NAME 'Firestations' > > DATA 'firestations' > > TYPE POINT > > STATUS ON > > CLASS > > NAME 'Fire Stations' > > COLOR 254 0 0 > > INSTEAD OF STAR PLACE AN IMAGE > > SYMBOL "star" > > SIZE 8 > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 12997 bytes Desc: image001.jpg URL: From Jukka.Rahkonen at mmmtike.fi Tue Sep 21 07:15:04 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 21 Sep 2010 17:15:04 +0300 Subject: [mapserver-users] Output PDF files with layers In-Reply-To: <1285077417230-5554825.post@n2.nabble.com> References: <1284712042214-5541843.post@n2.nabble.com> <1285077417230-5554825.post@n2.nabble.com> Message-ID: Hi, The recent PDF discussion reminded me about layered PDF files. There is some discussion about this in Geoserver jira http://jira.codehaus.org/browse/GEOS-3640 and there is also a sample pdf with selectable layers http://jira.codehaus.org/secure/attachment/45741/SkyJUMP.pdf Layers are selectable only with Adobe Acrobat viewer. Selectable layers could be a nice feature to have sometimes. Even better if vector layers were real vectors, I believe that in this sample image lineworks are also images. -Jukka Rahkonen- From j.l.h.hartmann at uva.nl Tue Sep 21 07:15:07 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 21 Sep 2010 16:15:07 +0200 Subject: [mapserver-users] Re: Output geospatial PDFs In-Reply-To: <1285077502162-5554828.post@n2.nabble.com> References: <1284712042214-5541843.post@n2.nabble.com> <1285077502162-5554828.post@n2.nabble.com> Message-ID: <4C98BDEB.8000206@uva.nl> Is this so? Jan On 09/21/10 15:58, Sumit Sharma wrote: > One more thing... Stick to Cario renderer instead PDF in Mapserver. As I > understand support for PDF may discontinue from 6.0 release. > -Sumit -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Sep 21 07:20:07 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 21 Sep 2010 09:20:07 -0500 Subject: FW: [mapserver-users] Symbology Message-ID: Apologies for the dup, my original response got embargoed due to the large image included? From: Fawcett, David (MPCA) Sent: Tuesday, September 21, 2010 9:13 AM To: 'Jay Kapalczynski'; 'Bob Basques'; mapserver-users at lists.osgeo.org; 'adams' Subject: RE: [mapserver-users] Symbology I think that someone else pointed out that the path to your symbol image is relative to the location of your map file. A quick test would be to drop bike.png in the same folder as your map file. Looking at your dir tree, I would move your symbol stuff out of the htdocs branch and into the area where your map files are. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Tuesday, September 21, 2010 8:53 AM To: 'Bob Basques'; mapserver-users at lists.osgeo.org; 'adams' Subject: RE: [mapserver-users] Symbology I added a few things to my sym file and got a few to work I can now call circle and get a circle?.BUT for some reason the image will not work, maybe an issue with the image? You have any test images that are known to work? I have the image like this IMAGE 'bike.png' because the images are in the same folder as the .sym file Any other thoughts?.greatly appreciated?.thanks THIS WORKS CLASS NAME 'Last Week' STYLE SYMBOL "circle" COLOR 0 0 0 OUTLINECOLOR 0 0 0 #SIZE 12 END # STYLE END # CLASS THIS DOES NOT WORK CLASS NAME 'Last Week' STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 #SIZE 12 END # STYLE END # CLASS .SYM FILE Symbol Name 'circle' Type ELLIPSE FILLED TRUE Points 1 1 END END SYMBOL NAME 'circle-dashed' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END STYLE 5 5 END END SYMBOL NAME 'bike' TYPE pixmap IMAGE 'bike.png' END -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Sep 21 07:21:35 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 21 Sep 2010 10:21:35 -0400 Subject: [mapserver-users] Re: Output geospatial PDFs In-Reply-To: <4C98BDEB.8000206@uva.nl> References: <1284712042214-5541843.post@n2.nabble.com> <1285077502162-5554828.post@n2.nabble.com> <4C98BDEB.8000206@uva.nl> Message-ID: <4C98BF6F.4070404@swoodbridge.com> On 9/21/2010 10:15 AM, Jan Hartmann wrote: > Is this so? Yes, this came across the list a while back: http://osgeo-org.1803224.n2.nabble.com/SVG-PDF-and-Flash-output-in-MapServer-6-0-td5518649.html The dev team is refactoring the rendering engine to make it more consistent across renderers and to stream line it and add support for some additional rendering solutions. A lot of changes happening in this area. -Steve W > Jan > > On 09/21/10 15:58, Sumit Sharma wrote: >> One more thing... Stick to Cario renderer instead PDF in Mapserver. As I >> understand support for PDF may discontinue from 6.0 release. >> -Sumit > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jkapalczynski at ci.maple-grove.mn.us Tue Sep 21 07:36:28 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 21 Sep 2010 09:36:28 -0500 Subject: [mapserver-users] Symbology In-Reply-To: References: Message-ID: Thank you all for your help here?.and I am quite embarrassed as to my solution?and more importantly sorry to take up your time, although I did learn a few things. I moved everything into the map section and created a Symbol folder to hold the images and .sym files. I placed the png in the map folder (as requested by David) And it still didn?t work?looking closer I realized that the symbol name was ?bike? although the image name was ?bikes? one stupid ?s? and this results. Although your help allowed me to move the files into the correct location, understand the connection between map file and sym file and images etc. I thank you for all your help..much appreciated From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Tuesday, September 21, 2010 9:20 AM To: mapserver-users at lists.osgeo.org Subject: FW: [mapserver-users] Symbology Apologies for the dup, my original response got embargoed due to the large image included? From: Fawcett, David (MPCA) Sent: Tuesday, September 21, 2010 9:13 AM To: 'Jay Kapalczynski'; 'Bob Basques'; mapserver-users at lists.osgeo.org; 'adams' Subject: RE: [mapserver-users] Symbology I think that someone else pointed out that the path to your symbol image is relative to the location of your map file. A quick test would be to drop bike.png in the same folder as your map file. Looking at your dir tree, I would move your symbol stuff out of the htdocs branch and into the area where your map files are. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Tuesday, September 21, 2010 8:53 AM To: 'Bob Basques'; mapserver-users at lists.osgeo.org; 'adams' Subject: RE: [mapserver-users] Symbology I added a few things to my sym file and got a few to work I can now call circle and get a circle?.BUT for some reason the image will not work, maybe an issue with the image? You have any test images that are known to work? I have the image like this IMAGE 'bike.png' because the images are in the same folder as the .sym file Any other thoughts?.greatly appreciated?.thanks THIS WORKS CLASS NAME 'Last Week' STYLE SYMBOL "circle" COLOR 0 0 0 OUTLINECOLOR 0 0 0 #SIZE 12 END # STYLE END # CLASS THIS DOES NOT WORK CLASS NAME 'Last Week' STYLE SYMBOL "bike" COLOR 0 0 0 OUTLINECOLOR 0 0 0 #SIZE 12 END # STYLE END # CLASS .SYM FILE Symbol Name 'circle' Type ELLIPSE FILLED TRUE Points 1 1 END END SYMBOL NAME 'circle-dashed' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END STYLE 5 5 END END SYMBOL NAME 'bike' TYPE pixmap IMAGE 'bike.png' END -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Tue Sep 21 07:38:50 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 21 Sep 2010 16:38:50 +0200 Subject: [mapserver-users] Re: Output geospatial PDFs In-Reply-To: <4C98BF6F.4070404@swoodbridge.com> References: <1284712042214-5541843.post@n2.nabble.com> <1285077502162-5554828.post@n2.nabble.com> <4C98BDEB.8000206@uva.nl> <4C98BF6F.4070404@swoodbridge.com> Message-ID: <4C98C37A.5030106@uva.nl> Ah, they are going to support PDF via Cairo. Good. Hadn't understood that. Jan On 09/21/10 16:21, Stephen Woodbridge wrote: > On 9/21/2010 10:15 AM, Jan Hartmann wrote: >> Is this so? > > Yes, this came across the list a while back: > http://osgeo-org.1803224.n2.nabble.com/SVG-PDF-and-Flash-output-in-MapServer-6-0-td5518649.html > > > The dev team is refactoring the rendering engine to make it more > consistent across renderers and to stream line it and add support for > some additional rendering solutions. A lot of changes happening in > this area. > > -Steve W > >> Jan >> >> On 09/21/10 15:58, Sumit Sharma wrote: >>> One more thing... Stick to Cario renderer instead PDF in Mapserver. >>> As I >>> understand support for PDF may discontinue from 6.0 release. >>> -Sumit >> >> >> _______________________________________________ >> 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 jkapalczynski at ci.maple-grove.mn.us Tue Sep 21 07:50:55 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 21 Sep 2010 09:50:55 -0500 Subject: [mapserver-users] Expressions In-Reply-To: <4C9422F6.5020909@gritechnologies.com> References: <4C9422F6.5020909@gritechnologies.com> Message-ID: My major question is can I do this with a String/text field? Its the only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept 21st 2010), otherwise the 0 will get removed in a numeric field Can I use the format Year, Month, Day? Or do I have to use Month, Day, Year? In this example I eliminated two expressions and focused on one Expression to see if it is working. I kept this ./maple_grove_datasets/police/Burglaries.map In my map file I used ONLY this CLASS NAME 'Last Weeks' EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') STYLE COLOR 0 100 50 SYMBOL "bike" SIZE 12 END END Now in my data I have these values (below), although every symbol was displayed in the map NOTE THIS IS A TEXT FIELD 081204, 081225,090118 These values (above) for the Year, Month, Day format specified in the map source are clearly less than the "last two weeks", Where as they are older than the last 14 days....so none of them should show up, but they do Any thoughts From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bob Basques Sent: Friday, September 17, 2010 9:25 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions A first stab at seeing more than one class, might be to try and switch them around order wise, one filter may be overwriting the other for example. bobb On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: I am using GeoMoose but feel this is more a question for Map Server. I am trying to sort my points by dates using the code below....I think that I can do this but not sure Is this a viable format "2Y%2M%2D" ? As for the field in the shapefile...If I use an integer it removes the 0 from the 092110, (sept 21st 2010) If I use a date then there are "/" ... 9/21/10 The only way I can see this happening is using a text field with retains the 0 in 092110 When I use the textfield "dateValues" as seen below I can get the stars to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not show and I know that I have a few records with dates in the last 14 days... Thoughts? THANKS....all your help is very appreciated.... Main .xml file ./maple_grove_datasets/police/Burglaries.map .map file CLASS NAME 'Last Weeks' EXPRESSION ('[dateValues]' > '%LASTWEEK%') STYLE COLOR 0 0 0 SYMBOL "star" SIZE 12 END END CLASS NAME 'Last Two Weeks' EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') STYLE COLOR 0 100 50 SYMBOL "star" SIZE 12 END END _______________________________________________ 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 rstoyle at comcast.net Tue Sep 21 08:32:56 2010 From: rstoyle at comcast.net (rstoyle at comcast.net) Date: Tue, 21 Sep 2010 15:32:56 +0000 (UTC) Subject: [mapserver-users] CGI returning a 502 error In-Reply-To: <828186387.152090.1285083158444.JavaMail.root@sz0141a.westchester.pa.mail.comcast.net> Message-ID: <980026972.152123.1285083176191.JavaMail.root@sz0141a.westchester.pa.mail.comcast.net> I do not think it is a string length limit. The IIS returns a separate error for that. At least it does when you exceed the URL length limit in a GET request. I have been doing some tests and it looks like it might be more of a limit in the number of parameters in the POST request. I can't find any info regarding the maximum number of parameters that you can send in one request (to an IIS server), but again, I would think that IIS would be responding with a more specific error if the limit was with it. Is it possible that the MapServer CGI is limited to 100 POST parameters? ----- Original Message ----- From: "David Fawcett (MPCA)" To: "stoli" , mapserver-users at lists.osgeo.org Sent: Tuesday, September 21, 2010 9:44:57 AM Subject: RE: [mapserver-users] CGI returning a 502 error According to the docs, starting with MapServer 5.0, there is no limit to the number of layers in a mapfile. http://mapserver.org/introduction.html#layer-object I am guessing that you are running into a different issue. Have you captured the post request string and examined it to make sure that it is valid? Are you running into a string length limit for your post request? The URL for your post request would be limited to ~2k char for IE, but this only includes the URL to the server, not the key:value pairs. There could be a size limit for post requests set on your Web server to help prevent DOS attacks. I don't know where this would be set in IIS. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli Sent: Monday, September 20, 2010 6:18 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI returning a 502 error I'm using the ms4w binaries (5.6.3) under IIS 7. My application sends (via http POST) a lot of parameters to modify the .map file. Mostly to add features to layers that are turned off by default and then make them visible. When my parameters cause the map to show over 50 layers, the IIS returns a 502 error. I realize that the max layers are set to 100 in the default map.h file, but like I said, I am using the compiled binaries from ms4w. Does anyone know if they change that to 50 when they compile, or should I look elsewhere to find my problem? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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 rstoyle at COMCAST.NET Tue Sep 21 08:37:06 2010 From: rstoyle at COMCAST.NET (stoli) Date: Tue, 21 Sep 2010 08:37:06 -0700 (PDT) Subject: [mapserver-users] RE: CGI returning a 502 error In-Reply-To: References: <1285024708578-5552675.post@n2.nabble.com> Message-ID: <1285083426906-5555304.post@n2.nabble.com> I do not think it is a string length limit. The IIS returns a separate error for that. At least it does when you exceed the URL length limit in a GET request. I have been doing some tests and it looks like it might be more of a limit in the number of parameters in the POST request. I can't find any info regarding the maximum number of parameters that you can send in one request (to an IIS server), but again, I would think that IIS would be responding with a more specific error if the limit was with it. Is it possible that the MapServer CGI is limited to 100 POST parameters? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5555304.html Sent from the Mapserver - User mailing list archive at Nabble.com. From rstoyle at COMCAST.NET Tue Sep 21 09:18:35 2010 From: rstoyle at COMCAST.NET (stoli) Date: Tue, 21 Sep 2010 09:18:35 -0700 (PDT) Subject: [mapserver-users] RE: CGI returning a 502 error In-Reply-To: References: <1285024708578-5552675.post@n2.nabble.com> Message-ID: <1285085915070-5555339.post@n2.nabble.com> I do not think it is a string length limit. The IIS returns a separate error for that. At least it does when you exceed the URL length limit in a GET request. I have been doing some tests and it looks like it might be more of a limit in the number of parameters in the POST request. I can't find any info regarding the maximum number of parameters that you can send in one request (to an IIS server), but again, I would think that IIS would be responding with a more specific error if the limit was with it. Is it possible that the MapServer CGI is limited to 100 POST parameters? Fawcett, David (MPCA) wrote: > > According to the docs, starting with MapServer 5.0, there is no limit to > the number of layers in a mapfile. > http://mapserver.org/introduction.html#layer-object > > I am guessing that you are running into a different issue. > > Have you captured the post request string and examined it to make sure > that it is valid? > > Are you running into a string length limit for your post request? The URL > for your post request would be limited to ~2k char for IE, but this only > includes the URL to the server, not the key:value pairs. There could be a > size limit for post requests set on your Web server to help prevent DOS > attacks. I don't know where this would be set in IIS. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli > Sent: Monday, September 20, 2010 6:18 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] CGI returning a 502 error > > > I'm using the ms4w binaries (5.6.3) under IIS 7. > > My application sends (via http POST) a lot of parameters to modify the > .map > file. Mostly to add features to layers that are turned off by default and > then make them visible. When my parameters cause the map to show over 50 > layers, the IIS returns a 502 error. > > I realize that the max layers are set to 100 in the default map.h file, > but > like I said, I am using the compiled binaries from ms4w. Does anyone know > if > they change that to 50 when they compile, or should I look elsewhere to > find > my problem? > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5555339.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jcigar at ulb.ac.be Tue Sep 21 12:09:10 2010 From: jcigar at ulb.ac.be (Julien Cigar) Date: Tue, 21 Sep 2010 21:09:10 +0200 Subject: [mapserver-users] reprojection Message-ID: <4C9902D6.6060604@ulb.ac.be> Hello, I'm trying to re-project a RASTER layer but without success so far. I have the following TIFF file: mage at mordor:/home/mage/gis % gdalinfo antarctica_sthn_ocean.tiff Driver: GTiff/GeoTIFF Files: antarctica_sthn_ocean.tiff Size is 12216, 9094 Coordinate System is: PROJCS[" Projection Name = WGS_1984_Stereographic_South_Pole Units = meters GeoTIFF Units = meters", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Polar_Stereographic"], PARAMETER["latitude_of_origin",-71], PARAMETER["central_meridian",0], PARAMETER["scale_factor",1], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (-8563840.575678950175643,6466755.550653258338571) Pixel Size = (1420.390210742724321,-1420.394765779645695) Metadata: TIFFTAG_XRESOLUTION=900 TIFFTAG_YRESOLUTION=900 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left (-8563840.576, 6466755.551) ( 52d56'33.71"W, 8d 9'27.23"S) Lower Left (-8563840.576,-6450314.449) (126d59'13.87"W, 8d12'36.90"S) Upper Right ( 8787646.239, 6466755.551) ( 53d39'3.45"E, 7d12'35.07"S) Lower Right ( 8787646.239,-6450314.449) (126d16'45.99"E, 7d15'38.97"S) Center ( 111902.832, 8220.551) ( 85d47'54.65"E, 88d58'2.41"S) Band 1 Block=256x256 Type=Byte, ColorInterp=Red Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 Metadata: LAYER_TYPE=athematic Band 2 Block=256x256 Type=Byte, ColorInterp=Green Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 Metadata: LAYER_TYPE=athematic Band 3 Block=256x256 Type=Byte, ColorInterp=Blue Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 Metadata: LAYER_TYPE=athematic If I understood well the output of gdalinfo, the projection seems to be EPSG:4326. Now I want to re-project this to EPSG:3031. I tried with the following MAP file : MAP NAME "antarctic" STATUS ON SIZE 600 400 EXTENT -8563840.576 -6450314.449 8787646.239 6466755.551 IMAGECOLOR 255 255 255 PROJECTION "init=epsg:3031" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END LAYER NAME "ocean" TYPE RASTER STATUS DEFAULT DATA antarctica_sthn_ocean.tiff PROJECTION "init=epsg:4326" END END END ... but all what I get is a gray 600x400 PNG image ... Any idea what could be the problem ? Thanks, Julien -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 254 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Tue Sep 21 23:36:10 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 22 Sep 2010 09:36:10 +0300 Subject: [mapserver-users] reprojection In-Reply-To: <4C9902D6.6060604@ulb.ac.be> References: <4C9902D6.6060604@ulb.ac.be> Message-ID: Hi, For sure the original image is not in EPSG:4326. You can guess it from the coordinates, for example Origin = (-8563840.575678950175643,6466755.550653258338571) EPSG:4326 is naturally between -90,90 and -180,180. There does read AUTHORITY["EPSG","4326"]] in one place of the gdalinfo report, but it is in the section that tells the datum or the projection. I am not sure what the right projection could be, but I found this projection wiht the same lookin parametrers from my Mapserver proj directory: # WGS 84 / Antarctic Polar Stereographic <3031> +proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs <> If this is correct, you do not need to reproject at all because your image is already in EPSG:3031. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Julien Cigar > L?hetetty: 21. syyskuuta 2010 22:09 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] reprojection > > Hello, > > I'm trying to re-project a RASTER layer but without success so far. > I have the following TIFF file: > > mage at mordor:/home/mage/gis % gdalinfo antarctica_sthn_ocean.tiff > Driver: GTiff/GeoTIFF > Files: antarctica_sthn_ocean.tiff > Size is 12216, 9094 > Coordinate System is: > PROJCS[" Projection Name = WGS_1984_Stereographic_South_Pole Units = > meters GeoTIFF Units = meters", > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]], > PROJECTION["Polar_Stereographic"], > PARAMETER["latitude_of_origin",-71], > PARAMETER["central_meridian",0], > PARAMETER["scale_factor",1], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]]] > Origin = (-8563840.575678950175643,6466755.550653258338571) > Pixel Size = (1420.390210742724321,-1420.394765779645695) > Metadata: > TIFFTAG_XRESOLUTION=900 > TIFFTAG_YRESOLUTION=900 > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > AREA_OR_POINT=Area > Image Structure Metadata: > INTERLEAVE=PIXEL > Corner Coordinates: > Upper Left (-8563840.576, 6466755.551) ( 52d56'33.71"W, 8d > 9'27.23"S) > Lower Left (-8563840.576,-6450314.449) (126d59'13.87"W, > 8d12'36.90"S) > Upper Right ( 8787646.239, 6466755.551) ( 53d39'3.45"E, 7d12'35.07"S) > Lower Right ( 8787646.239,-6450314.449) (126d16'45.99"E, > 7d15'38.97"S) > Center ( 111902.832, 8220.551) ( 85d47'54.65"E, 88d58'2.41"S) > Band 1 Block=256x256 Type=Byte, ColorInterp=Red > Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 > Metadata: > LAYER_TYPE=athematic > Band 2 Block=256x256 Type=Byte, ColorInterp=Green > Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 > Metadata: > LAYER_TYPE=athematic > Band 3 Block=256x256 Type=Byte, ColorInterp=Blue > Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 > Metadata: > LAYER_TYPE=athematic > > If I understood well the output of gdalinfo, the projection > seems to be > EPSG:4326. > Now I want to re-project this to EPSG:3031. > I tried with the following MAP file : > > MAP > NAME "antarctic" > STATUS ON > SIZE 600 400 > EXTENT -8563840.576 -6450314.449 8787646.239 6466755.551 > IMAGECOLOR 255 255 255 > > PROJECTION > "init=epsg:3031" > END > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > LAYER > NAME "ocean" > TYPE RASTER > STATUS DEFAULT > DATA antarctica_sthn_ocean.tiff > PROJECTION > "init=epsg:4326" > END > END > END > > ... but all what I get is a gray 600x400 PNG image ... > > Any idea what could be the problem ? > > Thanks, > Julien > From jbellido at ikt.es Wed Sep 22 00:35:38 2010 From: jbellido at ikt.es (Jorge Bellido Diez) Date: Wed, 22 Sep 2010 09:35:38 +0200 Subject: [mapserver-users] Coments about the Tickedt 3541 Message-ID: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> We reproduced the same problem doing requets to the OCG Services using OpenLayers 2.8 or gvSig 1.1.2 Doing a getfeatureinfo to a Oracle layer of an WMS Service or getfeatrue to a Oracle layer of an WFS Service the Oracle Server produce a log file and a dump memory. Then I coud see duplicates values in my primary key, furthermore primary index still points to old data even though the user has no UPDATE-GRANTS. This behavior seems to be random These are our configuration: - MS4W 3.0 Beta 10 - MapServer 5.6.1 - Personal Oracle Database 10g Release 10.2.0.1.0 - 64bit Production This is the way we declare an Oracle Layer in the map file: ---------------- LAYER STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "admcarto/admcarto at ORA10GEX" NAME "PoligonosSigpac" PROJECTION "init=epsg:23030" END TYPE POLYGON METADATA "wms_title" "Poligonos Sigpac 2009" "wms_srs" "EPSG:23030" "wms_name" "poligonos" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_transparent" "true" "wms_extent" "470000 4700000 610000 4820000" END DATA "GEOMETRY FROM (SELECT * FROM GV_SIGPAC_POL_ED50) USING UNIQUE gid SRID 82337" CLASS NAME "Poligonos" STYLE OUTLINECOLOR 178 0 255 END TEMPLATE "ttt_query.html" END END -------------- This is a little portion of one of this log files with the error code: Dump file f:\oracle\admin\ora10gex\udump\ora10gex_ora_1408.trc Wed Sep 01 12:56:09 2010 ORACLE V10.2.0.1.0 - 64bit Production vsnsta=0 vsnsql=14 vsnxtr=3 Personal Oracle Database 10g Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options Windows NT Version V5.2 Service Pack 2 CPU : 2 - type 8664, 1 Physical Cores Process Affinity : 0x0000000000000000 Memory (Avail/Total): Ph:1786M/4031M, Ph+PgF:5772M/7808M Instance name: ora10gex Redo thread mounted by this instance: 1 Oracle process number: 19 Windows thread id: 1408, image: ORACLE.EXE (SHAD) *** SERVICE NAME:(ORA10GEX) 2010-09-01 12:56:09.919 *** SESSION ID:(159.12216) 2010-09-01 12:56:09.919 ********** Internal heap ERROR 17182 addr=000007FF985DDC24 ********* ***** Dump of memory around addr 000007FF985DDC24: 7FF985DCC20 3CC3093F 090E2C10 09474557 [?..<.,..WEG.] 7FF985DCC30 535005C4 44511B43 3CC3093F 152B2D10 [..PSC.QD?..<.-+.] .. .. .. Permanent space = 1732608 ****************************************************** Hla: 255 *** 2010-09-01 12:56:10.966 ksedmp: internal or fatal error ORA-00600: internal error code, arguments: [17182], [0x7FF985DDC24], [], [], [], [], [], [] Current SQL statement for this session: SELECT gid, TER_HIST, AREA, PERIMETRO, GID, PROVINCIA, GEOMETRY FROM (SELECT * FROM GT_PROVINCIAS_ED50) WHERE SDO_FILTER( GEOMETRY, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' ----- Call Stack Trace ----- calling call entry argument values in hex location type point (? means dubious value) -------------------- -------- -------------------- ---------------------------- .. .. .. Thanks, Jorge. -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Sumit Sharma Enviado el: mi?rcoles, 15 de septiembre de 2010 17:05 Para: mapserver-users at lists.osgeo.org Asunto: [mapserver-users] Re: Problems with MapServer and Oracle Spatial Thanks for you response. As suggested by you I have created a ticket. Ticket number is 3541. -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-MapServer-and-Oracle-Spatial-tp5518303p5534732.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 jcigar at ulb.ac.be Wed Sep 22 00:45:15 2010 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 22 Sep 2010 09:45:15 +0200 Subject: [mapserver-users] reprojection In-Reply-To: References: <4C9902D6.6060604@ulb.ac.be> Message-ID: <4C99B40B.3000701@ulb.ac.be> On 09/22/2010 08:36, Rahkonen Jukka wrote: > Hi, > > For sure the original image is not in EPSG:4326. You can guess it from the coordinates, for example > Origin = (-8563840.575678950175643,6466755.550653258338571) > EPSG:4326 is naturally between -90,90 and -180,180. There does read > AUTHORITY["EPSG","4326"]] in one place of the gdalinfo report, but it is in the section that tells the datum or the projection. > > I am not sure what the right projection could be, but I found this projection wiht the same lookin parametrers > from my Mapserver proj directory: > # WGS 84 / Antarctic Polar Stereographic > <3031> +proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs<> > > If this is correct, you do not need to reproject at all because your image is already in EPSG:3031. > > -Jukka Rahkonen- Thanks for the clarification, looks like I misunderstood the output of gdalinfo..! Julien > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Julien Cigar >> L?hetetty: 21. syyskuuta 2010 22:09 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] reprojection >> >> Hello, >> >> I'm trying to re-project a RASTER layer but without success so far. >> I have the following TIFF file: >> >> mage at mordor:/home/mage/gis % gdalinfo antarctica_sthn_ocean.tiff >> Driver: GTiff/GeoTIFF >> Files: antarctica_sthn_ocean.tiff >> Size is 12216, 9094 >> Coordinate System is: >> PROJCS[" Projection Name = WGS_1984_Stereographic_South_Pole Units = >> meters GeoTIFF Units = meters", >> GEOGCS["WGS 84", >> DATUM["WGS_1984", >> SPHEROID["WGS 84",6378137,298.257223563, >> AUTHORITY["EPSG","7030"]], >> AUTHORITY["EPSG","6326"]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433], >> AUTHORITY["EPSG","4326"]], >> PROJECTION["Polar_Stereographic"], >> PARAMETER["latitude_of_origin",-71], >> PARAMETER["central_meridian",0], >> PARAMETER["scale_factor",1], >> PARAMETER["false_easting",0], >> PARAMETER["false_northing",0], >> UNIT["metre",1, >> AUTHORITY["EPSG","9001"]]] >> Origin = (-8563840.575678950175643,6466755.550653258338571) >> Pixel Size = (1420.390210742724321,-1420.394765779645695) >> Metadata: >> TIFFTAG_XRESOLUTION=900 >> TIFFTAG_YRESOLUTION=900 >> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) >> AREA_OR_POINT=Area >> Image Structure Metadata: >> INTERLEAVE=PIXEL >> Corner Coordinates: >> Upper Left (-8563840.576, 6466755.551) ( 52d56'33.71"W, 8d >> 9'27.23"S) >> Lower Left (-8563840.576,-6450314.449) (126d59'13.87"W, >> 8d12'36.90"S) >> Upper Right ( 8787646.239, 6466755.551) ( 53d39'3.45"E, 7d12'35.07"S) >> Lower Right ( 8787646.239,-6450314.449) (126d16'45.99"E, >> 7d15'38.97"S) >> Center ( 111902.832, 8220.551) ( 85d47'54.65"E, 88d58'2.41"S) >> Band 1 Block=256x256 Type=Byte, ColorInterp=Red >> Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 >> Metadata: >> LAYER_TYPE=athematic >> Band 2 Block=256x256 Type=Byte, ColorInterp=Green >> Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 >> Metadata: >> LAYER_TYPE=athematic >> Band 3 Block=256x256 Type=Byte, ColorInterp=Blue >> Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569 >> Metadata: >> LAYER_TYPE=athematic >> >> If I understood well the output of gdalinfo, the projection >> seems to be >> EPSG:4326. >> Now I want to re-project this to EPSG:3031. >> I tried with the following MAP file : >> >> MAP >> NAME "antarctic" >> STATUS ON >> SIZE 600 400 >> EXTENT -8563840.576 -6450314.449 8787646.239 6466755.551 >> IMAGECOLOR 255 255 255 >> >> PROJECTION >> "init=epsg:3031" >> END >> >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> EXTENSION "png" >> END >> >> LAYER >> NAME "ocean" >> TYPE RASTER >> STATUS DEFAULT >> DATA antarctica_sthn_ocean.tiff >> PROJECTION >> "init=epsg:4326" >> END >> END >> END >> >> ... but all what I get is a gray 600x400 PNG image ... >> >> Any idea what could be the problem ? >> >> Thanks, >> Julien >> -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From arevaco90 at yahoo.es Wed Sep 22 01:21:50 2010 From: arevaco90 at yahoo.es (=?UTF-8?Q?Juan_Ar=C3=A9valo?=) Date: Wed, 22 Sep 2010 01:21:50 -0700 (PDT) Subject: [mapserver-users] Overlapping Grahps Message-ID: <1285143710973-5558097.post@n2.nabble.com> Hi folks, Is there any way to avoid graphs overlapping? I am using Mapserver 5.4.1. Thanks for your help! Juan -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Overlapping-Grahps-tp5558097p5558097.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ibrahimsaricicek at gmail.com Wed Sep 22 05:34:26 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Wed, 22 Sep 2010 05:34:26 -0700 (PDT) Subject: [mapserver-users] Random color Message-ID: <1285158866772-5558894.post@n2.nabble.com> Hi list, Can I define random colors for each of objects in a table? Or hhould I define classes for each of them? (I don't want to use Quantum Gis styling and mapserver export.) Thanks in advance... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Random-color-tp5558894p5558894.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Wed Sep 22 06:47:16 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 22 Sep 2010 09:47:16 -0400 Subject: [mapserver-users] msQueryByPoint(): template for no matching record found In-Reply-To: References: Message-ID: <4C9A08E4.8040301@mapgears.com> Sebastian E. Ovide wrote: > Hi All, > > Is it possible to customize the "msQueryByPoint(): Search returned no > results. No matching record(s) found. " message? maybe configuring a > template that specific error ??? > I believe that's what the EMPTY parameter is for (in the WEB object). See http://mapserver.org/mapfile/web.html Daniel -- Daniel Morissette http://www.mapgears.com/ From aboudreault at mapgears.com Wed Sep 22 10:11:19 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 22 Sep 2010 13:11:19 -0400 Subject: [mapserver-users] Coments about the Tickedt 3541 In-Reply-To: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> Message-ID: <201009221311.20241.aboudreault@mapgears.com> Hmm... very strange. Although I am not able to reprodude it under Unix.... It seems to be an Oracle bug. On September 22, 2010 03:35:38 am Jorge Bellido Diez wrote: > We reproduced the same problem doing requets to the OCG Services using > OpenLayers 2.8 or gvSig 1.1.2 Doing a getfeatureinfo to a Oracle layer of > an WMS Service or getfeatrue to a Oracle layer of an WFS Service the > Oracle Server produce a log file and a dump memory. Then I coud see > duplicates values in my primary key, furthermore primary index still > points to old data even though the user has no UPDATE-GRANTS. This > behavior seems to be random > > These are our configuration: > - MS4W 3.0 Beta 10 > - MapServer 5.6.1 > - Personal Oracle Database 10g Release 10.2.0.1.0 - 64bit Production > > This is the way we declare an Oracle Layer in the map file: > ---------------- > LAYER > STATUS ON > CONNECTIONTYPE oraclespatial > CONNECTION "admcarto/admcarto at ORA10GEX" > NAME "PoligonosSigpac" > PROJECTION > "init=epsg:23030" > END > > TYPE POLYGON > METADATA > "wms_title" "Poligonos Sigpac 2009" > "wms_srs" "EPSG:23030" > "wms_name" "poligonos" > "wms_server_version" "1.1.1" > "wms_format" "image/png" > "wms_transparent" "true" > "wms_extent" "470000 4700000 610000 4820000" > END > > DATA "GEOMETRY FROM (SELECT * FROM GV_SIGPAC_POL_ED50) USING UNIQUE gid > SRID 82337" > > CLASS > NAME "Poligonos" > STYLE > OUTLINECOLOR 178 0 255 > END > TEMPLATE "ttt_query.html" > END > END > -------------- > > This is a little portion of one of this log files with the error code: > > Dump file f:\oracle\admin\ora10gex\udump\ora10gex_ora_1408.trc > Wed Sep 01 12:56:09 2010 > ORACLE V10.2.0.1.0 - 64bit Production vsnsta=0 > vsnsql=14 vsnxtr=3 > Personal Oracle Database 10g Release 10.2.0.1.0 - 64bit Production With the > Partitioning, OLAP and Data Mining options Windows NT Version V5.2 Service > Pack 2 CPU : 2 - type 8664, 1 Physical Cores > Process Affinity : 0x0000000000000000 > Memory (Avail/Total): Ph:1786M/4031M, Ph+PgF:5772M/7808M Instance name: > ora10gex > > Redo thread mounted by this instance: 1 > > Oracle process number: 19 > > Windows thread id: 1408, image: ORACLE.EXE (SHAD) > > > *** SERVICE NAME:(ORA10GEX) 2010-09-01 12:56:09.919 > *** SESSION ID:(159.12216) 2010-09-01 12:56:09.919 > ********** Internal heap ERROR 17182 addr=000007FF985DDC24 ********* > ***** Dump of memory around addr 000007FF985DDC24: > 7FF985DCC20 3CC3093F 090E2C10 09474557 [?..<.,..WEG.] > 7FF985DCC30 535005C4 44511B43 3CC3093F 152B2D10 [..PSC.QD?..<.-+.] > > .. > .. > .. > > Permanent space = 1732608 > ****************************************************** > Hla: 255 > *** 2010-09-01 12:56:10.966 > ksedmp: internal or fatal error > ORA-00600: internal error code, arguments: [17182], [0x7FF985DDC24], [], > [], [], [], [], [] Current SQL statement for this session: SELECT gid, > TER_HIST, AREA, PERIMETRO, GID, PROVINCIA, GEOMETRY FROM (SELECT * FROM > GT_PROVINCIAS_ED50) WHERE SDO_FILTER( GEOMETRY, MDSYS.SDO_GEOMETRY(2003, > :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates > ),'querytype=window') = 'TRUE' ----- Call Stack Trace ----- > calling call entry argument values in hex > location type point (? means dubious value) > -------------------- -------- -------------------- > ---------------------------- > > .. > .. > .. > > > > Thanks, Jorge. > > > -----Mensaje original----- > De: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Sumit Sharma > Enviado el: mi?rcoles, 15 de septiembre de 2010 17:05 Para: > mapserver-users at lists.osgeo.org > Asunto: [mapserver-users] Re: Problems with MapServer and Oracle Spatial > > > Thanks for you response. > As suggested by you I have created a ticket. > Ticket number is 3541. > -Sumit > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Problems-with-MapServer-and-Oracle- > Spatial-tp5518303p5534732.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 -- Alan Boudreault Mapgears http://www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Sep 22 11:56:41 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 22 Sep 2010 13:56:41 -0500 Subject: [mapserver-users] RE: CGI returning a 502 error In-Reply-To: <1285085915070-5555339.post@n2.nabble.com> References: <1285024708578-5552675.post@n2.nabble.com> <1285085915070-5555339.post@n2.nabble.com> Message-ID: Yes, there is a preset limit on the number of parameters the MapServer cgi will accept and indeed it is 100. There are two ways to work around this. 1) Edit the MS_MAX_CGI_PARAMS setting in cgiutil.h and recompile. 2) Consider combining the requested layers calls into a single variable. That is: Change ...layer=layer1&layer=layer2&layer=layer3... to: ...layers=layer1+layer2+layer3... You should see an error message from MapServer in your web server error log if you ran into this limitation... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli Sent: Tuesday, September 21, 2010 11:19 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: CGI returning a 502 error I do not think it is a string length limit. The IIS returns a separate error for that. At least it does when you exceed the URL length limit in a GET request. I have been doing some tests and it looks like it might be more of a limit in the number of parameters in the POST request. I can't find any info regarding the maximum number of parameters that you can send in one request (to an IIS server), but again, I would think that IIS would be responding with a more specific error if the limit was with it. Is it possible that the MapServer CGI is limited to 100 POST parameters? Fawcett, David (MPCA) wrote: > > According to the docs, starting with MapServer 5.0, there is no limit to > the number of layers in a mapfile. > http://mapserver.org/introduction.html#layer-object > > I am guessing that you are running into a different issue. > > Have you captured the post request string and examined it to make sure > that it is valid? > > Are you running into a string length limit for your post request? The URL > for your post request would be limited to ~2k char for IE, but this only > includes the URL to the server, not the key:value pairs. There could be a > size limit for post requests set on your Web server to help prevent DOS > attacks. I don't know where this would be set in IIS. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli > Sent: Monday, September 20, 2010 6:18 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] CGI returning a 502 error > > > I'm using the ms4w binaries (5.6.3) under IIS 7. > > My application sends (via http POST) a lot of parameters to modify the > .map > file. Mostly to add features to layers that are turned off by default and > then make them visible. When my parameters cause the map to show over 50 > layers, the IIS returns a 502 error. > > I realize that the max layers are set to 100 in the default map.h file, > but > like I said, I am using the compiled binaries from ms4w. Does anyone know > if > they change that to 50 when they compile, or should I look elsewhere to > find > my problem? > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5555339.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Wed Sep 22 16:24:40 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 22 Sep 2010 18:24:40 -0500 Subject: [mapserver-users] Random color In-Reply-To: <1285158866772-5558894.post@n2.nabble.com> References: <1285158866772-5558894.post@n2.nabble.com> Message-ID: You didn't say what environment you're in. If PostGIS I suspect you could write a function to generate a random color string (either r g b or #hex) and then bind MapServer color values to the function output. The function would simply generate 3 random numbers between 1 and 255. In MapServer it'd be: LAYER ... DATA "the_geom from (select *, myColorMaker() as mycolor from myTable) ... CLASS STYLE COLOR [mycolor] ... END END END I've not tried anything like this but it should work... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek [ibrahimsaricicek at gmail.com] Sent: Wednesday, September 22, 2010 7:34 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Random color Hi list, Can I define random colors for each of objects in a table? Or hhould I define classes for each of them? (I don't want to use Quantum Gis styling and mapserver export.) Thanks in advance... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Random-color-tp5558894p5558894.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 ibrahimsaricicek at gmail.com Wed Sep 22 22:49:25 2010 From: ibrahimsaricicek at gmail.com (ibrahim saricicek) Date: Thu, 23 Sep 2010 08:49:25 +0300 Subject: [mapserver-users] Random color In-Reply-To: References: <1285158866772-5558894.post@n2.nabble.com> Message-ID: Dear All, Thanks for your reply. I'm using Postgis. Yes it works and I've used that kind of function several times. But what I wonder is a class definition something like that; CLASS STYLE COLOR 'Random' ... On Thu, Sep 23, 2010 at 2:24 AM, Lime, Steve D (DNR) wrote: > You didn't say what environment you're in. If PostGIS I suspect you could > write a function to generate a random color string (either r g b or #hex) > and then bind MapServer color values to the function output. The function > would simply generate 3 random numbers between 1 and 255. In MapServer it'd > be: > > LAYER > ... > DATA "the_geom from (select *, myColorMaker() as mycolor from myTable) > ... > CLASS > STYLE > COLOR [mycolor] > ... > END > END > END > > I've not tried anything like this but it should work... > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ibrahim Saricicek [ > ibrahimsaricicek at gmail.com] > Sent: Wednesday, September 22, 2010 7:34 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Random color > > Hi list, > > Can I define random colors for each of objects in a table? > Or hhould I define classes for each of them? > (I don't want to use Quantum Gis styling and mapserver export.) > > Thanks in advance... > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Random-color-tp5558894p5558894.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Wed Sep 22 23:22:58 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 23 Sep 2010 08:22:58 +0200 Subject: [mapserver-users] RE: CGI returning a 502 error In-Reply-To: References: <1285024708578-5552675.post@n2.nabble.com> <1285085915070-5555339.post@n2.nabble.com> Message-ID: <4C9AF242.7030501@uva.nl> Wasn't there a similar problem about the hard-coded maximum number of classes a few years ago? That problem was solved, if I remember correctly. Wouldn't it be a good idea to take that solution over to the number of CGI parms? The problem won't turn up often, but if it does it is hard to detect, and as far as I can see it's not hard to solve. Jan On 09/22/10 20:56, Lime, Steve D (DNR) wrote: > Yes, there is a preset limit on the number of parameters the MapServer cgi will accept and indeed it is 100. There are two ways to work around this. > > 1) Edit the MS_MAX_CGI_PARAMS setting in cgiutil.h and recompile. > 2) Consider combining the requested layers calls into a single variable. That is: > > Change > ...layer=layer1&layer=layer2&layer=layer3... > to: > ...layers=layer1+layer2+layer3... > > You should see an error message from MapServer in your web server error log if you ran into this limitation... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli > Sent: Tuesday, September 21, 2010 11:19 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: CGI returning a 502 error > > > I do not think it is a string length limit. The IIS returns a separate error > for that. At least it does when you exceed the URL length limit in a GET > request. > > I have been doing some tests and it looks like it might be more of a limit > in the number of parameters in the POST request. I can't find any info > regarding the maximum number of parameters that you can send in one request > (to an IIS server), but again, I would think that IIS would be responding > with a more specific error if the limit was with it. > > Is it possible that the MapServer CGI is limited to 100 POST parameters? > > Fawcett, David (MPCA) wrote: >> According to the docs, starting with MapServer 5.0, there is no limit to >> the number of layers in a mapfile. >> http://mapserver.org/introduction.html#layer-object >> >> I am guessing that you are running into a different issue. >> >> Have you captured the post request string and examined it to make sure >> that it is valid? >> >> Are you running into a string length limit for your post request? The URL >> for your post request would be limited to ~2k char for IE, but this only >> includes the URL to the server, not the key:value pairs. There could be a >> size limit for post requests set on your Web server to help prevent DOS >> attacks. I don't know where this would be set in IIS. >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli >> Sent: Monday, September 20, 2010 6:18 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] CGI returning a 502 error >> >> >> I'm using the ms4w binaries (5.6.3) under IIS 7. >> >> My application sends (via http POST) a lot of parameters to modify the >> .map >> file. Mostly to add features to layers that are turned off by default and >> then make them visible. When my parameters cause the map to show over 50 >> layers, the IIS returns a 502 error. >> >> I realize that the max layers are set to 100 in the default map.h file, >> but >> like I said, I am using the compiled binaries from ms4w. Does anyone know >> if >> they change that to 50 when they compile, or should I look elsewhere to >> find >> my problem? >> >> >> -- >> View this message in context: >> http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibrahimsaricicek at gmail.com Thu Sep 23 02:00:15 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Thu, 23 Sep 2010 02:00:15 -0700 (PDT) Subject: [mapserver-users] Raster Background Message-ID: <1285232415349-5562235.post@n2.nabble.com> Hi list, I have a rotated satellite image as seen below. Is there a way of not showing the black background on the rest of bbox? Should I change something on image? Or is there a function like "Pixel Transparency" like on Erdas Imagine 2010? Regards... http://osgeo-org.1803224.n2.nabble.com/file/n5562235/background.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Background-tp5562235p5562235.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lella.s at irea.cnr.it Thu Sep 23 02:13:38 2010 From: lella.s at irea.cnr.it (Simone Lella) Date: Thu, 23 Sep 2010 11:13:38 +0200 Subject: [mapserver-users] Internal Server Error / proxy.cgi Message-ID: <4C9B1A42.7070600@irea.cnr.it> Hi, I'm using MS4W with Windows 7. When I call "http://localhost:8081/cgi-bin/proxy.cgi", the response is: /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. / The "error.log" file contains: /[Thu Sep 23 09:49:43 2010] [warn] PassEnv variable PYTHONPATH was undefined [Thu Sep 23 09:49:43 2010] [notice] Apache/2.2.10 (Win32) configured -- resuming normal operations [Thu Sep 23 09:49:43 2010] [notice] Server built: Oct 10 2008 12:39:04 [Thu Sep 23 09:49:43 2010] [notice] Parent: Created child process 2932 [Thu Sep 23 09:49:43 2010] [warn] PassEnv variable PYTHONPATH was undefined [Thu Sep 23 09:49:44 2010] [warn] PassEnv variable PYTHONPATH was undefined [Thu Sep 23 09:49:44 2010] [notice] Child 2932: Child process is running [Thu Sep 23 09:49:44 2010] [notice] Child 2932: Acquired the start mutex. [Thu Sep 23 09:49:44 2010] [notice] Child 2932: Starting 64 worker threads. [Thu Sep 23 09:49:44 2010] [notice] Child 2932: Starting thread to listen on port 8081. [Thu Sep 23 09:50:13 2010] [error] [client 127.0.0.1] (OS 2)Impossibile trovare il file specificato. : couldn't create child process: 720002: proxy.cgi [Thu Sep 23 09:50:13 2010] [error] [client 127.0.0.1] (OS 2)Impossibile trovare il file specificato. : couldn't spawn child process: C:/ms4w/Apache/cgi-bin/proxy.cgi/ The "proxy.cgi" file was created in "C:/ms4w/Apache/cgi-bin/proxy.cgi" and I've copied into the following text: /#!/usr/bin/env python """This is a blind proxy that we use to get around browser restrictions that prevent the Javascript from loading pages not on the same server as the Javascript. This has several problems: it's less efficient, it might break some sites, and it's a security risk because people can use this proxy to browse the web and possibly do bad stuff with it. It only loads pages via http and https, but it can load any content type. It supports GET and POST requests.""" import urllib2 import cgi import sys, os # Designed to prevent Open Proxy type stuff. allowedHosts = ['www.openlayers.org', 'openlayers.org', 'labs.metacarta.com', 'world.freemap.in', 'prototype.openmnnd.org', 'geo.openplans.org', 'sigma.openplans.org', 'demo.opengeo.org', 'www.openstreetmap.org', 'sample.azavea.com', 'v-swe.uni-muenster.de:8080', 'vmap0.tiles.osgeo.org','localhost:8081'] method = os.environ["REQUEST_METHOD"] if method == "POST": qs = os.environ["QUERY_STRING"] d = cgi.parse_qs(qs) if d.has_key("url"): url = d["url"][0] else: url = "http://www.openlayers.org" else: fs = cgi.FieldStorage() url = fs.getvalue('url', "http://www.openlayers.org") try: host = url.split("/")[2] if allowedHosts and not host in allowedHosts: print "Status: 502 Bad Gateway" print "Content-Type: text/plain" print print "This proxy does not allow you to access that location (%s)." % (host,) print print os.environ elif url.startswith("http://") or url.startswith("https://"): if method == "POST": length = int(os.environ["CONTENT_LENGTH"]) headers = {"Content-Type": os.environ["CONTENT_TYPE"]} body = sys.stdin.read(length) r = urllib2.Request(url, body, headers) y = urllib2.urlopen(r) else: y = urllib2.urlopen(url) # print content type header i = y.info() if i.has_key("Content-Type"): print "Content-Type: %s" % (i["Content-Type"]) else: print "Content-Type: text/plain" print print y.read() y.close() else: print "Content-Type: text/plain" print print "Illegal request." except Exception, E: print "Status: 500 Unexpected Error" print "Content-Type: text/plain" print print "Some unexpected error occurred. Error text was:", E/ I've modified "proxy.cgi" file at "allowedHosts" by adding "localhost:8081". I must modify the first row of "proxy.cgi" file? Can this issue related to the Windows 7 OS? Thanks Simone *_ _* -- Simone Lella Istituto per il Rilevamento Elettromagnetico dell'Ambiente IREA - CNR (http://www.irea.cnr.it) Via Bassini, 15 Tel. +39 02-23699299 Milano -------------- next part -------------- An HTML attachment was scrubbed... URL: From porath at web.de Thu Sep 23 03:16:29 2010 From: porath at web.de (Holger Porath) Date: Thu, 23 Sep 2010 12:16:29 +0200 Subject: [mapserver-users] wfs and oracle spatial Message-ID: <83972F71-090C-44D0-B931-AA472E1468E4@web.de> Hi list, we are having issues with using mapserver 5.6.5 as a wfs together with oracle. When we submit a wfs getfeature filter request mapserver doesn't use the filter in the sql statement. It just searches all the objects in the database and applies the filter on the result. This is very inefficient and even leads to timeouts. Here is our filter request: Filter=%3CFilter%3E%3CPropertyIsLike%20wildCard%3D %22%25%22%20singleChar%3D%22%3F%22%20escape%3D%22ESC%22%3E %3CPropertyName%3EFS_FSZ%3C%2FPropertyName%3E%3CLiteral%3E111%3C %2FLiteral%3E%3C%2FPropertyIsLike%3E%3C%2FFilter%3E As you can see the filter for the attribute "FS_FSZ" is set to "111". The debug log shows that this isn't used in the sql at all: Using this Sql to retrieve the data : SELECT fs_id, FS_GKNR, FS_FLNR, FS_FSZ, FS_FSN, FS_FSSTATUS, FS_ID, FS_FSRWERT_ABS, FS_FSHWERT_ABS, fs_koordinate FROM os_flst I expected to see a where clause like the following: where fs_fsz like "111" When we switch back to mapserver 5.0.0 we see the correct where clause in the debug log. So what are we doing wrong or is this a bug? Thanks for your help. Regards, Holger This is how our layer definition looks like: LAYER NAME "test_flst" METADATA "wfs_extent" "3410000 5470000 3666000 5726000" "wfs_title" "test_flst" "gml_featureid" "fs_id" "gml_include_items" "all" # optional END # of METADATA TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "user/pass at service" DATA "fs_koordinate from os_flst USING UNIQUE fs_id NONE" PROJECTION "init=epsg:31467" END # of PROJECTION DUMP TRUE END # of LAYER From sumit321 at hotmail.com Thu Sep 23 06:59:30 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Thu, 23 Sep 2010 06:59:30 -0700 (PDT) Subject: [mapserver-users] Re: Raster Background In-Reply-To: <1285232415349-5562235.post@n2.nabble.com> References: <1285232415349-5562235.post@n2.nabble.com> Message-ID: <1285250370585-5563149.post@n2.nabble.com> You may want to use OFFSITE at layer level. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Background-tp5562235p5563149.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ibrahimsaricicek at gmail.com Thu Sep 23 07:01:41 2010 From: ibrahimsaricicek at gmail.com (Ibrahim Saricicek) Date: Thu, 23 Sep 2010 07:01:41 -0700 (PDT) Subject: [mapserver-users] Re: Raster Background In-Reply-To: <1285232415349-5562235.post@n2.nabble.com> References: <1285232415349-5562235.post@n2.nabble.com> Message-ID: <1285250501492-5563158.post@n2.nabble.com> Hi list, I found the answer; http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg06172.html In the layer definition I've added OFFSITE 0 0 0 Thanks.... Sep 23, 2010; 12:00pm Ibrahim Saricicek ? Raster Background This message was accepted by the mapserver-users at lists.osgeo.org mailing list. Hi list, I have a rotated satellite image as seen below. Is there a way of not showing the black background on the rest of bbox? Should I change something on image? Or is there a function like "Pixel Transparency" like on Erdas Imagine 2010? Regards... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Background-tp5562235p5563158.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sumit321 at hotmail.com Thu Sep 23 07:16:34 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Thu, 23 Sep 2010 07:16:34 -0700 (PDT) Subject: [mapserver-users] Re: Coments about the Tickedt 3541 In-Reply-To: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> Message-ID: <1285251394043-5563227.post@n2.nabble.com> Initially this bug appears random to me as well, but it is certainly not. However, there is surely some loophole in OCI, and that bug is exploited by MapServer. I have posted this bug in Oracle forum as well, but no luck as of now. As Alan is already able to verify this behavior, hopefully we will get some patch soon ... :-) -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Coments-about-the-Tickedt-3541-tp5558012p5563227.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pierm4ci at yahoo.it Thu Sep 23 07:57:27 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Thu, 23 Sep 2010 07:57:27 -0700 (PDT) Subject: [mapserver-users] Get the legend of a layer .map file Message-ID: <854399.15326.qm@web28616.mail.ukl.yahoo.com> Hi,I have a file.map like this:MAP NAME "distribution" CONFIG "PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" PROJECTION "init=epsg:4326" END CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" DEBUG 5 LAYER NAME "tif" DATA "/var/www/tmp/a5e1ddfb-6dec-40d0-94e1-ded12f41397e/out/distribution.tiff" STATUS DEFAULT TYPE RASTER CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] >= 0 AND [pixel] < 20 ) STYLE COLOR 0 255 255 END END CLASS EXPRESSION ([pixel] >= 20 AND [pixel] < 40) STYLE COLOR 0 255 0 END END CLASS EXPRESSION ( [pixel] >= 40 AND [pixel] < 60) STYLE COLOR 255 255 0 END END CLASS EXPRESSION ([pixel] >= 60 AND [pixel] < 80) STYLE COLOR 255 127 0 END END CLASS EXPRESSION ([pixel] >= 80 AND [pixel] < 100) STYLE COLOR 255 0 0 END END CLASS EXPRESSION ([pixel] = 100 ) STYLE COLOR 255 123 0 END END END END Can I have returned with the image, the legend that describes the meaning of the colors?Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Sep 23 08:06:48 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 23 Sep 2010 10:06:48 -0500 Subject: [mapserver-users] Get the legend of a layer .map file In-Reply-To: <854399.15326.qm@web28616.mail.ukl.yahoo.com> References: <854399.15326.qm@web28616.mail.ukl.yahoo.com> Message-ID: <4C9B26B8.163B.00A8.0@ci.stpaul.mn.us> Just add in a NAME parameter inside of each CLASS tag set. You'll need to request the LEGEND object via CGI or orther method, but the NAME vales are used to describe the Legend Chips in the mapserver output. bobb >>> michele pierri wrote: Hi, I have a file.map like this: MAP NAME"distribution" CONFIG "PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" PROJECTION "init=epsg:4326" END CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" DEBUG 5 LAYER NAME "tif" DATA "/var/www/tmp/a5e1ddfb-6dec-40d0-94e1-ded12f41397e/out/distribution.tiff" STATUS DEFAULT TYPE RASTER CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] >= 0 AND [pixel] < 20 ) STYLE COLOR 0 255 255 END END CLASS EXPRESSION ([pixel] >= 20 AND [pixel] < 40) STYLE COLOR 0 255 0 END END CLASS EXPRESSION ( [pixel] >= 40 AND [pixel] < 60) STYLE COLOR 255 255 0 END END CLASS EXPRESSION ([pixel] >= 60 AND [pixel] < 80) STYLE COLOR 255 127 0 END END CLASS EXPRESSION ([pixel] >= 80 AND [pixel] < 100) STYLE COLOR 255 0 0 END END CLASS EXPRESSION ([pixel] = 100 ) STYLE COLOR 255 123 0 END END END END Can I have returned with the image, the legend that describes the meaning of the colors? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierm4ci at yahoo.it Thu Sep 23 08:12:22 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Thu, 23 Sep 2010 08:12:22 -0700 (PDT) Subject: [mapserver-users] Get the legend of a layer .map file In-Reply-To: <4C9B26B8.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <325102.3972.qm@web28601.mail.ukl.yahoo.com> Can you take me an example,please? I'm sorry but I am not very expert. And after how I can do the request via CGI? CLASS??EXPRESSION ([pixel] >= 0 AND [pixel] < 20 ) NAME XXXX <=== IS IT WRIGHT???STYLE???COLOR 0 255 255??ENDEND Thanks again. --- Gio 23/9/10, Bob Basques ha scritto: Da: Bob Basques Oggetto: Re: [mapserver-users] Get the legend of a layer .map file A: mapserver-users at lists.osgeo.org, "michele pierri" Data: Gioved? 23 settembre 2010, 17:06 Just add in a NAME parameter inside of each CLASS tag set. ?You'll need to request the LEGEND object via CGI or orther method, but the NAME vales are used to describe the Legend Chips in the mapserver output. bobb >>> michele pierri wrote: Hi, I have a file.map like this: MAP ???NAME"distribution" ???CONFIG ?"PROJ_LIB" "/usr/share/proj/" ???STATUS ON ???SHAPEPATH "./" ???PROJECTION ??????"init=epsg:4326" ???END ???CONFIG ?"MS_ERRORFILE" "/tmp/mapserver.log" ???DEBUG 5 ?LAYER ??????NAME "tif" ??????DATA "/var/www/tmp/a5e1ddfb-6dec-40d0-94e1-ded12f41397e/out/distribution.tiff" ??????STATUS DEFAULT ??????TYPE RASTER ??????CLASSITEM "[pixel]" CLASS ??EXPRESSION ([pixel] >= 0 AND [pixel] < 20 ) ??STYLE ???COLOR 0 255 255 ??END END CLASS ????EXPRESSION ([pixel] >= 20 AND [pixel] < 40) ???STYLE ?????COLOR 0 255 0 ???END END CLASS ???EXPRESSION ( [pixel] >= 40 AND [pixel] < 60) ???STYLE ????COLOR 255 255 0 ???END END CLASS ???EXPRESSION ([pixel] >= 60 AND [pixel] < 80) ???STYLE ?????COLOR 255 127 0 ???END END CLASS ???EXPRESSION ([pixel] >= 80 AND [pixel] < 100) ?????STYLE ??????COLOR 255 0 0 ?????END ???END CLASS ???EXPRESSION ([pixel] = 100 ) ????STYLE ?????COLOR 255 123 0 ????END END END END Can I have returned with the image, ?the legend that describes the meaning of the colors? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Sep 23 08:14:29 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 23 Sep 2010 10:14:29 -0500 Subject: [mapserver-users] Get the legend of a layer .map file In-Reply-To: <325102.3972.qm@web28601.mail.ukl.yahoo.com> References: <4C9B26B8.163B.00A8.0@ci.stpaul.mn.us> <325102.3972.qm@web28601.mail.ukl.yahoo.com> Message-ID: If your request URL string currently includes &mode=map, change it to &mode=legend From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of michele pierri Sent: Thursday, September 23, 2010 10:12 AM To: Bob Basques; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Get the legend of a layer .map file Can you take me an example,please? I'm sorry but I am not very expert. And after how I can do the request via CGI? CLASS EXPRESSION ([pixel] >= 0 AND [pixel] < 20 ) NAME XXXX <=== IS IT WRIGHT? STYLE COLOR 0 255 255 END END Thanks again. --- Gio 23/9/10, Bob Basques ha scritto: Da: Bob Basques Oggetto: Re: [mapserver-users] Get the legend of a layer .map file A: mapserver-users at lists.osgeo.org, "michele pierri" Data: Gioved? 23 settembre 2010, 17:06 Just add in a NAME parameter inside of each CLASS tag set. You'll need to request the LEGEND object via CGI or orther method, but the NAME vales are used to describe the Legend Chips in the mapserver output. bobb >>> michele pierri wrote: Hi, I have a file.map like this: MAP NAME"distribution" CONFIG "PROJ_LIB" "/usr/share/proj/" STATUS ON SHAPEPATH "./" PROJECTION "init=epsg:4326" END CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" DEBUG 5 LAYER NAME "tif" DATA "/var/www/tmp/a5e1ddfb-6dec-40d0-94e1-ded12f41397e/out/distribution.tiff" STATUS DEFAULT TYPE RASTER CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] >= 0 AND [pixel] < 20 ) STYLE COLOR 0 255 255 END END CLASS EXPRESSION ([pixel] >= 20 AND [pixel] < 40) STYLE COLOR 0 255 0 END END CLASS EXPRESSION ( [pixel] >= 40 AND [pixel] < 60) STYLE COLOR 255 255 0 END END CLASS EXPRESSION ([pixel] >= 60 AND [pixel] < 80) STYLE COLOR 255 127 0 END END CLASS EXPRESSION ([pixel] >= 80 AND [pixel] < 100) STYLE COLOR 255 0 0 END END CLASS EXPRESSION ([pixel] = 100 ) STYLE COLOR 255 123 0 END END END END Can I have returned with the image, the legend that describes the meaning of the colors? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierm4ci at yahoo.it Thu Sep 23 08:45:38 2010 From: pierm4ci at yahoo.it (michele pierri) Date: Thu, 23 Sep 2010 15:45:38 +0000 (GMT) Subject: [mapserver-users] Get the legend of a layer .map file In-Reply-To: <325102.3972.qm@web28601.mail.ukl.yahoo.com> Message-ID: <523862.3177.qm@web28610.mail.ukl.yahoo.com> Thanks. --- Gio 23/9/10, michele pierri ha scritto: Da: michele pierri Oggetto: Re: [mapserver-users] Get the legend of a layer .map file A: "Bob Basques" , mapserver-users at lists.osgeo.org Data: Gioved? 23 settembre 2010, 17:12 Can you take me an example,please? I'm sorry but I am not very expert. And after how I can do the request via CGI? CLASS??EXPRESSION ([pixel] >= 0 AND [pixel] < 20 ) NAME XXXX <=== IS IT WRIGHT???STYLE???COLOR 0 255 255??ENDEND Thanks again. --- Gio 23/9/10, Bob Basques ha scritto: Da: Bob Basques Oggetto: Re: [mapserver-users] Get the legend of a layer .map file A: mapserver-users at lists.osgeo.org, "michele pierri" Data: Gioved? 23 settembre 2010, 17:06 Just add in a NAME parameter inside of each CLASS tag set. ?You'll need to request the LEGEND object via CGI or orther method, but the NAME vales are used to describe the Legend Chips in the mapserver output. bobb >>> michele pierri wrote: Hi, I have a file.map like this: MAP ???NAME"distribution" ???CONFIG ?"PROJ_LIB" "/usr/share/proj/" ???STATUS ON ???SHAPEPATH "./" ???PROJECTION ??????"init=epsg:4326" ???END ???CONFIG ?"MS_ERRORFILE" "/tmp/mapserver.log" ???DEBUG 5 ?LAYER ??????NAME "tif" ??????DATA "/var/www/tmp/a5e1ddfb-6dec-40d0-94e1-ded12f41397e/out/distribution.tiff" ??????STATUS DEFAULT ??????TYPE RASTER ??????CLASSITEM "[pixel]" CLASS ??EXPRESSION ([pixel] >= 0 AND [pixel] < 20 ) ??STYLE ???COLOR 0 255 255 ??END END CLASS ????EXPRESSION ([pixel] >= 20 AND [pixel] < 40) ???STYLE ?????COLOR 0 255 0 ???END END CLASS ???EXPRESSION ( [pixel] >= 40 AND [pixel] < 60) ???STYLE ????COLOR 255 255 0 ???END END CLASS ???EXPRESSION ([pixel] >= 60 AND [pixel] < 80) ???STYLE ?????COLOR 255 127 0 ???END END CLASS ???EXPRESSION ([pixel] >= 80 AND [pixel] < 100) ?????STYLE ??????COLOR 255 0 0 ?????END ???END CLASS ???EXPRESSION ([pixel] = 100 ) ????STYLE ?????COLOR 255 123 0 ????END END END END Can I have returned with the image, ?the legend that describes the meaning of the colors? Thanks in advance. -----Segue allegato----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstoyle at COMCAST.NET Thu Sep 23 08:47:00 2010 From: rstoyle at COMCAST.NET (stoli) Date: Thu, 23 Sep 2010 08:47:00 -0700 (PDT) Subject: [mapserver-users] RE: CGI returning a 502 error In-Reply-To: References: <1285024708578-5552675.post@n2.nabble.com> <1285085915070-5555339.post@n2.nabble.com> Message-ID: <1285256820656-5563549.post@n2.nabble.com> Thanks Steve. Looks like I am going to have to figure out how to compile my own binaries. I think I have streamlined the POST parameters as much as I can, unless there is a way to combine the following: &map_layer[layer1]=FEATURE+POINTS+0+0+END+END &map_layer[layer1]_CLASS[0]_STYLE[0]=SYMBOL+ellipse+SIZE+200+COLOR+255+0+0 Lime, Steve D (DNR) wrote: > > Yes, there is a preset limit on the number of parameters the MapServer cgi > will accept and indeed it is 100. There are two ways to work around this. > > 1) Edit the MS_MAX_CGI_PARAMS setting in cgiutil.h and recompile. > 2) Consider combining the requested layers calls into a single variable. > That is: > > Change > ...layer=layer1&layer=layer2&layer=layer3... > to: > ...layers=layer1+layer2+layer3... > > You should see an error message from MapServer in your web server error > log if you ran into this limitation... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli > Sent: Tuesday, September 21, 2010 11:19 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: CGI returning a 502 error > > > I do not think it is a string length limit. The IIS returns a separate > error > for that. At least it does when you exceed the URL length limit in a GET > request. > > I have been doing some tests and it looks like it might be more of a limit > in the number of parameters in the POST request. I can't find any info > regarding the maximum number of parameters that you can send in one > request > (to an IIS server), but again, I would think that IIS would be responding > with a more specific error if the limit was with it. > > Is it possible that the MapServer CGI is limited to 100 POST parameters? > > Fawcett, David (MPCA) wrote: >> >> According to the docs, starting with MapServer 5.0, there is no limit to >> the number of layers in a mapfile. >> http://mapserver.org/introduction.html#layer-object >> >> I am guessing that you are running into a different issue. >> >> Have you captured the post request string and examined it to make sure >> that it is valid? >> >> Are you running into a string length limit for your post request? The >> URL >> for your post request would be limited to ~2k char for IE, but this only >> includes the URL to the server, not the key:value pairs. There could be >> a >> size limit for post requests set on your Web server to help prevent DOS >> attacks. I don't know where this would be set in IIS. >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli >> Sent: Monday, September 20, 2010 6:18 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] CGI returning a 502 error >> >> >> I'm using the ms4w binaries (5.6.3) under IIS 7. >> >> My application sends (via http POST) a lot of parameters to modify the >> .map >> file. Mostly to add features to layers that are turned off by default and >> then make them visible. When my parameters cause the map to show over 50 >> layers, the IIS returns a 502 error. >> >> I realize that the max layers are set to 100 in the default map.h file, >> but >> like I said, I am using the compiled binaries from ms4w. Does anyone know >> if >> they change that to 50 when they compile, or should I look elsewhere to >> find >> my problem? >> >> >> -- >> View this message in context: >> http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5555339.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://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5563549.html Sent from the Mapserver - User mailing list archive at Nabble.com. From benjaminpreisig at gmx.at Thu Sep 23 09:46:59 2010 From: benjaminpreisig at gmx.at (Bennos) Date: Thu, 23 Sep 2010 09:46:59 -0700 (PDT) Subject: [mapserver-users] Re: Font encoding In-Reply-To: References: <1284995803609-5550875.post@n2.nabble.com> Message-ID: <1285260419009-5563821.post@n2.nabble.com> Hi Dejan, thanks for the hint. I could identify some problems with wrong hex-codes and i am trying now to replace them. But i am still encountering problems with that. The strange thing is, that charachters with the right hex are not generated correctly by mapserver either. Besids, I checked the shapefile again in ArcMap and saw that the characters are wrong even there, although they should be correct. So I should check the original file and the export again. Cheers Benjamin -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-encoding-tp5550875p5563821.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Thu Sep 23 10:19:15 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 23 Sep 2010 12:19:15 -0500 Subject: [mapserver-users] RE: CGI returning a 502 error In-Reply-To: <4C9AF242.7030501@uva.nl> References: <1285024708578-5552675.post@n2.nabble.com> <1285085915070-5555339.post@n2.nabble.com> <4C9AF242.7030501@uva.nl> Message-ID: The hard limit was purposeful. The thought at the time was that 100 would be sufficient in 99.9% of cases (this is the only time I've heard of someone running into it) and anything beyond 100 would likely be some sort of rogue attack. The code itself does not use the maximum in allocating parameter lists, that's done dynamically. It's only a check... Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Thursday, September 23, 2010 1:23 AM To: mapserver-users at lists.osgeo.org; Lime, Steve D (DNR) Subject: Re: [mapserver-users] RE: CGI returning a 502 error Wasn't there a similar problem about the hard-coded maximum number of classes a few years ago? That problem was solved, if I remember correctly. Wouldn't it be a good idea to take that solution over to the number of CGI parms? The problem won't turn up often, but if it does it is hard to detect, and as far as I can see it's not hard to solve. Jan On 09/22/10 20:56, Lime, Steve D (DNR) wrote: Yes, there is a preset limit on the number of parameters the MapServer cgi will accept and indeed it is 100. There are two ways to work around this. 1) Edit the MS_MAX_CGI_PARAMS setting in cgiutil.h and recompile. 2) Consider combining the requested layers calls into a single variable. That is: Change ...layer=layer1&layer=layer2&layer=layer3... to: ...layers=layer1+layer2+layer3... You should see an error message from MapServer in your web server error log if you ran into this limitation... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli Sent: Tuesday, September 21, 2010 11:19 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: CGI returning a 502 error I do not think it is a string length limit. The IIS returns a separate error for that. At least it does when you exceed the URL length limit in a GET request. I have been doing some tests and it looks like it might be more of a limit in the number of parameters in the POST request. I can't find any info regarding the maximum number of parameters that you can send in one request (to an IIS server), but again, I would think that IIS would be responding with a more specific error if the limit was with it. Is it possible that the MapServer CGI is limited to 100 POST parameters? Fawcett, David (MPCA) wrote: According to the docs, starting with MapServer 5.0, there is no limit to the number of layers in a mapfile. http://mapserver.org/introduction.html#layer-object I am guessing that you are running into a different issue. Have you captured the post request string and examined it to make sure that it is valid? Are you running into a string length limit for your post request? The URL for your post request would be limited to ~2k char for IE, but this only includes the URL to the server, not the key:value pairs. There could be a size limit for post requests set on your Web server to help prevent DOS attacks. I don't know where this would be set in IIS. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli Sent: Monday, September 20, 2010 6:18 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI returning a 502 error I'm using the ms4w binaries (5.6.3) under IIS 7. My application sends (via http POST) a lot of parameters to modify the .map file. Mostly to add features to layers that are turned off by default and then make them visible. When my parameters cause the map to show over 50 layers, the IIS returns a 502 error. I realize that the max layers are set to 100 in the default map.h file, but like I said, I am using the compiled binaries from ms4w. Does anyone know if they change that to 50 when they compile, or should I look elsewhere to find my problem? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Sep 23 10:14:38 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 23 Sep 2010 12:14:38 -0500 Subject: [mapserver-users] RE: CGI returning a 502 error In-Reply-To: <1285256820656-5563549.post@n2.nabble.com> References: <1285024708578-5552675.post@n2.nabble.com> <1285085915070-5555339.post@n2.nabble.com> <1285256820656-5563549.post@n2.nabble.com> Message-ID: Nope, can't combine those. At least you can specify symbol/size/color all at once... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli Sent: Thursday, September 23, 2010 10:47 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: CGI returning a 502 error Thanks Steve. Looks like I am going to have to figure out how to compile my own binaries. I think I have streamlined the POST parameters as much as I can, unless there is a way to combine the following: &map_layer[layer1]=FEATURE+POINTS+0+0+END+END &map_layer[layer1]_CLASS[0]_STYLE[0]=SYMBOL+ellipse+SIZE+200+COLOR+255+0+0 Lime, Steve D (DNR) wrote: > > Yes, there is a preset limit on the number of parameters the MapServer cgi > will accept and indeed it is 100. There are two ways to work around this. > > 1) Edit the MS_MAX_CGI_PARAMS setting in cgiutil.h and recompile. > 2) Consider combining the requested layers calls into a single variable. > That is: > > Change > ...layer=layer1&layer=layer2&layer=layer3... > to: > ...layers=layer1+layer2+layer3... > > You should see an error message from MapServer in your web server error > log if you ran into this limitation... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli > Sent: Tuesday, September 21, 2010 11:19 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: CGI returning a 502 error > > > I do not think it is a string length limit. The IIS returns a separate > error > for that. At least it does when you exceed the URL length limit in a GET > request. > > I have been doing some tests and it looks like it might be more of a limit > in the number of parameters in the POST request. I can't find any info > regarding the maximum number of parameters that you can send in one > request > (to an IIS server), but again, I would think that IIS would be responding > with a more specific error if the limit was with it. > > Is it possible that the MapServer CGI is limited to 100 POST parameters? > > Fawcett, David (MPCA) wrote: >> >> According to the docs, starting with MapServer 5.0, there is no limit to >> the number of layers in a mapfile. >> http://mapserver.org/introduction.html#layer-object >> >> I am guessing that you are running into a different issue. >> >> Have you captured the post request string and examined it to make sure >> that it is valid? >> >> Are you running into a string length limit for your post request? The >> URL >> for your post request would be limited to ~2k char for IE, but this only >> includes the URL to the server, not the key:value pairs. There could be >> a >> size limit for post requests set on your Web server to help prevent DOS >> attacks. I don't know where this would be set in IIS. >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli >> Sent: Monday, September 20, 2010 6:18 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] CGI returning a 502 error >> >> >> I'm using the ms4w binaries (5.6.3) under IIS 7. >> >> My application sends (via http POST) a lot of parameters to modify the >> .map >> file. Mostly to add features to layers that are turned off by default and >> then make them visible. When my parameters cause the map to show over 50 >> layers, the IIS returns a 502 error. >> >> I realize that the max layers are set to 100 in the default map.h file, >> but >> like I said, I am using the compiled binaries from ms4w. Does anyone know >> if >> they change that to 50 when they compile, or should I look elsewhere to >> find >> my problem? >> >> >> -- >> View this message in context: >> http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5555339.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://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5563549.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 alans at cuervo.stanford.edu Thu Sep 23 14:34:09 2010 From: alans at cuervo.stanford.edu (Alan Swithenbank) Date: Thu, 23 Sep 2010 14:34:09 -0700 (PDT) Subject: [mapserver-users] is this reorientation possible? Message-ID: Hi, I've done some looking at the docs and some googling, but, haven't yet clearly determined if the kind of map reorientation I want to do is possible in some reasonable way. Basically I have a perl mapscript server setup that produces an html form user interface page having a version of the canonical "Blue Marble" world map image. The interface is used to query our database, and I use query results to generate shapefiles to plot marine predator tracks from satellite tagged animals over the map image. That all is working fine. My problem is many of the animals cross the +/-180 degrees longitude line and on an image with west and east boundaries of -180 and +180 that crossing causes track connecting lines to run across the entire world map image. (That isn't a suprise. I deal with that issue all the time in other systems.) Ideally I'd like to be able to reorient the world map so that depending on whether we're working in the Atlantic I can select to use 0 degrees as the map center, or if we're working in the Pacific I can select to use -/+180 degrees as the map center, and get track positions to plot properly. Barring that, is there a feature I can turn on that, in creating the final shapefiles, understands not to make the -/+180 cross connection segment in a track? (I'm using the perl Geo::Shapelib module to create shapefiles.) I know I can do those things in my own perl code with position translations and track segment restrictions, but, am hoping to not have to work quite that hard. And, I'm afraid my current knowledge of mapserver/perl-mapscript is barely out of the code pattern matching phase...;^) If someone could point me in the general direction of information on dealing these issues with respect to mapserver/perl-mapscript, I'd really appreciate it. thanks! Alan Swithenbank Research Progammer Tagging of Pacific Predators Project Hopkins Marine Station of Stanford University 120 Ocean View Blvd. Pacific Grove, CA 93950 From schroeter at netgis.de Fri Sep 24 01:49:23 2010 From: schroeter at netgis.de (Sven Schroeter) Date: Fri, 24 Sep 2010 10:49:23 +0200 Subject: [mapserver-users] OFFSITE more values Message-ID: <7113D081760C41BEB9DCDAE3A115E566@SVEN> Hi, I have a rasterlayer with more than 1000 .ecw airial photos and want to set more than one RGB-value transparent with OFFSITE. This works fine: OFFSITE 0 0 0 but I need something like this: OFFSITE [0 0 0,1 1 1,1 2 1] Is there a possibility to solve my problem? Sven From ven.tammineni at gmail.com Fri Sep 24 03:21:08 2010 From: ven.tammineni at gmail.com (venkat) Date: Fri, 24 Sep 2010 15:51:08 +0530 Subject: [mapserver-users] Is Shape is nothing but the_geom in PostGIS Message-ID: Dear All, I am not able to understand is ShapeObj is equal the_geom in the postgis. exp : Select the_geom form table.....is equal to select shapeObj from table I need seed shape object instead of the_geom... is that possible ? or I should go with some other process....Anyone can guide me .. Please let me know.I am waiting for your great response. Thanks and Regards, Venkat -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Sep 24 04:19:12 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 24 Sep 2010 07:19:12 -0400 Subject: [mapserver-users] Error in msPostGISLayerResultsGetShape(): Got request larger than result set In-Reply-To: <4C91FACC.5050205@vti.bund.de> References: <4C91FACC.5050205@vti.bund.de> Message-ID: <4C9C8930.8010507@mapgears.com> Presumably this is related to the change in the way query results are handled in MapServer 5.6.5 and the Cartoweb code would need to be updated to use $layer->resultsGetShape() instead of $layer->getShape() to read query results. Another option would be for you to go back to MapServer 5.4.x Daniel Stefan Neumeier wrote: > > > Dear all, > > I am quite new to mapserver and maybe I am just missing some important configuration step but I hope somebody > of you can help me with following problem: > > When trying to perform a query via a cartoweb-client to a layer stored in Postgis I encounter following error message > (It is only the query that is not working the layer itself renders perfect out of the database): > > MapServer error: Error in msDrawMap(): Failed to draw layer named 'bound'. > > Error in msPostGISLayerResultsGetShape(): Got request larger than result set. > > When I do the same with the layer as shapefile on the file system the query functions as expected. > > > *My system environment is:* > > cartoweb 3.5.0 > php 5.3.3 > Mapserver version 5.6.5 > Postgis 1.5.1 > Postgresql 8.4.4 > Operating System: Suse Linux 11.3 > > *In the mapfile the layer is defined as follows* > > LAYER > NAME "bound" > TYPE LINE > STATUS ON > CONNECTIONTYPE POSTGIS > CONNECTION "user=*** password=*** host=localhost dbname=gis" > DATA "the_geom FROM (select * from dep_france_dom) as foo using unique gid using srid=-1" > TEMPLATE "ttt" > METADATA > "id_attribute_string" "id_geofla" > "query_returned_attributes" "id_geofla" > END > CLASS > NAME "Boundaries" > STYLE > COLOR 200 200 200 > OUTLINECOLOR 255 165 96 > END > END > END > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From warmerdam at pobox.com Fri Sep 24 06:58:17 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 24 Sep 2010 09:58:17 -0400 Subject: [mapserver-users] OFFSITE more values In-Reply-To: <7113D081760C41BEB9DCDAE3A115E566@SVEN> References: <7113D081760C41BEB9DCDAE3A115E566@SVEN> Message-ID: <4C9CAE79.40400@pobox.com> Sven Schroeter wrote: > Hi, > > I have a rasterlayer with more than 1000 .ecw airial photos and want to > set more than one RGB-value transparent with OFFSITE. > This works fine: > OFFSITE 0 0 0 > > but I need something like this: > OFFSITE [0 0 0,1 1 1,1 2 1] > > Is there a possibility to solve my problem? Sven, There is no support for multiple offsite values in MapServer. If you have ecw file with "lossy" nodata areas the usual approach is to convert the files to uncompressed format (ie. GeoTIFF), and then use the GDAL nearblack utility to convert pixels that are nearly black to black so there is a single nodata/offset value. Some folks have also had success deriving a nodata/data mask from this, and using it to develop an alpha (transparency) band which can then be used with the original ecw file via use of a GDAL VRT file grouping the extra band with the original data. This technique is fairly complicated and can have some performance impact on MapServer but it does allow using the original ECW files with exactly masked areas. 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 gregor at hostgis.com Fri Sep 24 07:07:24 2010 From: gregor at hostgis.com (Gregor at HostGIS) Date: Fri, 24 Sep 2010 07:07:24 -0700 Subject: [mapserver-users] OFFSITE more values In-Reply-To: <7113D081760C41BEB9DCDAE3A115E566@SVEN> References: <7113D081760C41BEB9DCDAE3A115E566@SVEN> Message-ID: <4C9CB09C.2090508@hostgis.com> This fella describes a hack he made to MapServer's source, to give him a fuzzy matching for the OFFSITE value: http://sites.google.com/site/bpederse/caliwms It may help you out. It's a fairly simple set of changes. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From jkapalczynski at ci.maple-grove.mn.us Fri Sep 24 07:51:13 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Fri, 24 Sep 2010 09:51:13 -0500 Subject: [mapserver-users] ODBC connections 32 vs 64 bit Message-ID: Question: I am trying to connect to a MDB on a local drive....everything testing on my local computer. I have a 64 bit windows 7 machine.... There are two locations to create ODBC connections: This article says a bit http://support.microsoft.com/kb/942976 32 bit \Windows\SysWoW64\odbcad32.exe 64 bit \Windows\System32\odbcad32.exe Does it matter if the ODBC connection is done on 32 or 64 bit? Is there a difference? When I try and create an ODBC connection on 64 bit there are no drivers displayed? Very confusing Thoughts? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Johan.Forsman at LA.GOV Fri Sep 24 08:09:14 2010 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Fri, 24 Sep 2010 10:09:14 -0500 Subject: [mapserver-users] RE: ODBC connections 32 vs 64 bit In-Reply-To: References: Message-ID: If I recall correctly a 32-bit application can only see 32-bit ODBC sources, so you must use the 32-bit ODBC utility (C:\Windows\SysWOW64\odbcad32.exe) to define the source. I have this scenario on my 64-bit Vista workstation. From Access 2007 I can only see the 32-bit version of my Oracle ODBC source, not the 64-bit version of the source. Access 2007 is a 32-bit application. Hope that helps, Johan. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Friday, September 24, 2010 9:51 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] ODBC connections 32 vs 64 bit Question: I am trying to connect to a MDB on a local drive....everything testing on my local computer. I have a 64 bit windows 7 machine.... There are two locations to create ODBC connections: This article says a bit http://support.microsoft.com/kb/942976 32 bit \Windows\SysWoW64\odbcad32.exe 64 bit \Windows\System32\odbcad32.exe Does it matter if the ODBC connection is done on 32 or 64 bit? Is there a difference? When I try and create an ODBC connection on 64 bit there are no drivers displayed? Very confusing Thoughts? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.perrins at gmail.com Fri Sep 24 08:19:26 2010 From: james.perrins at gmail.com (James Perrins) Date: Fri, 24 Sep 2010 16:19:26 +0100 Subject: [mapserver-users] Mapscript c# problem with multiple instances Message-ID: Hi, mapscript_csharp - 32 bit version 1.0.3679.25032 dated 10/1/2010 All supporting DLLs from Tamas' nightly build site (was last stable version when I grabbed it in January) .NET 3.5 Actually using this in desktop winform app. All has been working fine, until I just tried to move the map rendering into a background thread to stop locking up the UI. No matter what I try - this seems to cause my app to crash out of the background thread (with no error) Crash always occurs at the point where I first try and do something with the OSGeo.MapServer.mapObj Initially it was when I tried to draw the map (having passed in a map object) So I then tried reading the map file again from the disk (so nothing was passed in) - in this case it fails when trying to create the map object from the map file. I tried extracting the code to a separate DLL (with only text strings passed in and out) - this still failed I then tried to run it as a separate AppDomain - which also failed. The only way I have it working to to actually call a separate exe using a temp .map file with my map state and having the exe write the image file back to disk for my main app to pick up. This does work - but seems rather a hack. Am I doing something wrong here / misunderstanding something ? It seems almost as if I can only have one map object per application - or they are trampling on each other in some way I don't understand. Any ideas ? Thanks James From szekerest at gmail.com Fri Sep 24 08:54:16 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 24 Sep 2010 17:54:16 +0200 Subject: [mapserver-users] Mapscript c# problem with multiple instances In-Reply-To: References: Message-ID: James, While it's not safe to use the same mapscript object by multiple threads simultaneously, it should work when those threads operate on separate mapObj instances. This would pretty much similar to an ASP.NET application utilizing the mapscript library which I've already used many times this way. By all means it would be helpful if you could provide a sample project for this in order to reproduce this behaviour. Have you already tested with the recent versions of the packages available from http://vbkto.dyndns.org/sdk/ ? Best regards, Tamas 2010/9/24 James Perrins > Hi, > > mapscript_csharp - 32 bit version 1.0.3679.25032 dated 10/1/2010 > All supporting DLLs from Tamas' nightly build site (was last stable > version when I grabbed it in January) > .NET 3.5 > > Actually using this in desktop winform app. All has been working > fine, until I just tried to move the map rendering into a background > thread to stop locking up the UI. > > No matter what I try - this seems to cause my app to crash out of the > background thread (with no error) > Crash always occurs at the point where I first try and do something > with the OSGeo.MapServer.mapObj > Initially it was when I tried to draw the map (having passed in a map > object) > So I then tried reading the map file again from the disk (so nothing > was passed in) - in this case it fails when trying to create the map > object from the map file. > I tried extracting the code to a separate DLL (with only text strings > passed in and out) - this still failed > I then tried to run it as a separate AppDomain - which also failed. > > The only way I have it working to to actually call a separate exe > using a temp .map file with my map state and having the exe write the > image file back to disk for my main app to pick up. > This does work - but seems rather a hack. > > Am I doing something wrong here / misunderstanding something ? It > seems almost as if I can only have one map object per application - or > they are trampling on each other in some way I don't understand. > > Any ideas ? > > Thanks > James > _______________________________________________ > 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 goncalo.martins at inov.pt Fri Sep 24 09:01:34 2010 From: goncalo.martins at inov.pt (goncalo) Date: Fri, 24 Sep 2010 09:01:34 -0700 (PDT) Subject: [mapserver-users] Re: Raster Display Performance In-Reply-To: <1285342312046-5567241.post@n2.nabble.com> References: <4B9402A4.4050506@gmail.com> <1284736199686-5543142.post@n2.nabble.com> <1284971870530-5549558.post@n2.nabble.com> <1284983464859-5550112.post@n2.nabble.com> <1284989304836-5550461.post@n2.nabble.com> <1284990645453-5550548.post@n2.nabble.com> <1285342312046-5567241.post@n2.nabble.com> Message-ID: <1285344094945-5567337.post@n2.nabble.com> Hi, Thanks. I will try that too. Now I am trying other solutions like use mapnik to tile the map and create the directory and than use that directory in a http server with sample get requests directly to the .png files. I will try both solutions. Best regards, Gon?alo -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Display-Performance-tp4691679p5567337.html Sent from the Mapserver - User mailing list archive at Nabble.com. From reh2 at prodigy.net Fri Sep 24 12:45:48 2010 From: reh2 at prodigy.net (Robert Hollingsworth) Date: Fri, 24 Sep 2010 12:45:48 -0700 (PDT) Subject: [mapserver-users] multiple labels? also, symbols forced to display within a polygon? Message-ID: <6633.11623.qm@web80505.mail.mud.yahoo.com> Are there definitive statements somewhere in the mapserver/mapscript documentation on whether/how multiple labels, with their own string content, color, font, placement, etc., can ALL be simultaneously displayed on each placed feature within a layer?? I've seen some hints that this can be done, but the infrastructure does not seem to support it. I'm doing some rather 'brittle' things with php-mapscript ShapeObj, and it appears my attempts to do multiple things with Labels and Classes results in the last such action effectively overwriting previous actions on the same ShapeObj.? So I want between zero and four labels to appear per feature, but only one does. Really, I'm just trying to display multiple symbols, between zero and five per polygon feature, depending on client app params, and that basically works, BUT it does not appear that symbol placement exploits the scheme used in label placement where the polygon centroid is rejected as placement point if said centroid is not within polygon. Any suggestions or doc refs appreciated, Thanks, Robert H ?????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From frankhevans at yahoo.com Sat Sep 25 14:06:39 2010 From: frankhevans at yahoo.com (turtlewax) Date: Sat, 25 Sep 2010 14:06:39 -0700 (PDT) Subject: [mapserver-users] Different OUTPUTFORMAT options for each layer in a mapfile Message-ID: <1285448799004-5570778.post@n2.nabble.com> I need to serve up NITFs through mapserver. There is an accuracy issue in the GDAL NITF driver. Unless you specify the GEOLOB TRE, GDAL just writes IGEOLO, which doesn't have enough decimal places for sub-meter accuracy. Based on testing, I could tell MapServer/GDAL to write the GEOLOB (see example below). But the location info is unique to each raster, hence the OUTPUTFORMAT options would be different for each layer. QUESTION: I could store each raster in its own mapfile, so it would have its own NITF OUTPUTFORMAT settings. Is there any other option? OUTPUTFORMAT NAME NITF DRIVER "GDAL/NITF" IMAGEMODE RGB MIMETYPE "image/nitf" EXTENSION "ntf" FORMATOPTION "BLOCKXSIZE=1024" FORMATOPTION "BLOCKYSIZE=1024" FORMATOPTION "TRE=GEOLOB=073932800080076800-136.9774560321+045.1446198929" END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Different-OUTPUTFORMAT-options-for-each-layer-in-a-mapfile-tp5570778p5570778.html Sent from the Mapserver - User mailing list archive at Nabble.com. From beyhan at deprem.gov.tr Sun Sep 26 10:21:16 2010 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Sun, 26 Sep 2010 20:21:16 +0300 Subject: [mapserver-users] Open failed for OGR connection Message-ID: <1285521676.1108.0.camel@localhost> Dear friends, I could not solve the problem for OGR connections. from terminal I use the following codes and it works fine [murat at localhost makedaskmap]$ ogrinfo "MySQL:testogr,user=root,password=mysql_123" INFO: Open of `MySQL:testogr,user=root,password=mysql_123' using driver `MySQL' successful. 1: deniz (Polygon) 2: il_merkezleri (Point) 3: il_sinirlari (Polygon) 4: ilce_merkezleri (Point) 5: ilce_sinirlari (Polygon) 6: iller (Polygon) 7: iller_sil (Polygon) 8: komsular (Polygon) But when I try to read data from mysql database it doesn't work for it. and mapserver gives error as follows msDrawMap(): Image handling error. Failed to draw layer named 'ilcmrk'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `ilcmrk'. File not found or unsupported format. part of map file as follows for the layer ilcmrk data ilce_merkezleri is stored in Mysql table testogr as point I have reganerated the ilce_merkezleri data in MySql database as follows ogr2ogr -f MySQL MySQL:testogr,user=root,password=mysql_123 ilcmrk.shp -nln ilce_merkezleri -update -overwrite -lco GEOMETRY_NAME=SHAPE2 LAYER connectiontype ogr CONNECTION "MySQL:testogr,user=root,password=mysql_123" NAME "ilcmrk" DATA ilce_merkezleri STATUS default TYPE POINT CLASS NAME "iLCE MERKEZi" SYMBOL "cpoint" SIZE 1 COLOR 72 118 255 END END What is wrong with my procedures. Please help me. Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From warmerdam at pobox.com Sun Sep 26 10:24:22 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sun, 26 Sep 2010 13:24:22 -0400 Subject: [mapserver-users] Open failed for OGR connection In-Reply-To: <1285521676.1108.0.camel@localhost> References: <1285521676.1108.0.camel@localhost> Message-ID: <4C9F81C6.8030803@pobox.com> Murat Beyhan wrote: > But when I try to read data from mysql database it doesn't work for it. > and mapserver gives error as follows ... > What is wrong with my procedures. Please help me. > Murat Murat, I can only point out the two obvious possible issues. 1) Are you really really really really sure your MapServer is using the same GDAL build that you are using at the commandline? I know, everyone is sure but sometimes when they check they realize it isn't. Keep in mind that the shared library search path when run as a cgi from apache may be different than on your user account. Possibly the GDAL used by MapServer is not built with mysql support - it is not enabled by default. 2) Perhaps there is a permissions issue when running in the apache environment, though this seems unlikely given that you are passing an explicit userid and password. 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 sumit321 at hotmail.com Mon Sep 27 03:13:38 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Mon, 27 Sep 2010 03:13:38 -0700 (PDT) Subject: [mapserver-users] Re: Different OUTPUTFORMAT options for each layer in a mapfile In-Reply-To: <1285448799004-5570778.post@n2.nabble.com> References: <1285448799004-5570778.post@n2.nabble.com> Message-ID: <1285582418916-5574261.post@n2.nabble.com> You can also write one small function to do that with following pseudo code ... image = prepareImage for i = 0 to number of layers layer = getlayer(i) fix outputformat options image = layer.draw end for return image -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Different-OUTPUTFORMAT-options-for-each-layer-in-a-mapfile-tp5570778p5574261.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sumit321 at hotmail.com Mon Sep 27 03:14:46 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Mon, 27 Sep 2010 03:14:46 -0700 (PDT) Subject: [mapserver-users] Re: Different OUTPUTFORMAT options for each layer in a mapfile In-Reply-To: <1285582418916-5574261.post@n2.nabble.com> References: <1285448799004-5570778.post@n2.nabble.com> <1285582418916-5574261.post@n2.nabble.com> Message-ID: <1285582486823-5574263.post@n2.nabble.com> if you have labels in your map file then please call drawlablecache as well...Hope that helps... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Different-OUTPUTFORMAT-options-for-each-layer-in-a-mapfile-tp5570778p5574263.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jbellido at ikt.es Mon Sep 27 03:16:59 2010 From: jbellido at ikt.es (Jorge Bellido Diez) Date: Mon, 27 Sep 2010 12:16:59 +0200 Subject: [mapserver-users] Re: Coments about the Tickedt 3541 References: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> <1285251394043-5563227.post@n2.nabble.com> Message-ID: <224DBDAF88A6AC47BD22432815351BE0082AD396@nekaposta1> Hi, More comments about this ticket. We're using ms4w 3.0 beta 11 (DEVELOPMENT) as commented previously, which includes MapServer 5.6.1 version. In the beginning we started using ms4w 2.3.1 (STABLE), which includes MapServer 5.2.1. We've installed again the STABLE version with same DB server, same data, same WMS configuration and the error is not reproduced anymore. We've noticed that the ogr_OCI.dll file is different. It could be posible that problem could be there?? Or it's more likely to be a bug in MapServer's code?? Thanks. -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Sumit Sharma Enviado el: jueves, 23 de septiembre de 2010 16:17 Para: mapserver-users at lists.osgeo.org Asunto: [mapserver-users] Re: Coments about the Tickedt 3541 Initially this bug appears random to me as well, but it is certainly not. However, there is surely some loophole in OCI, and that bug is exploited by MapServer. I have posted this bug in Oracle forum as well, but no luck as of now. As Alan is already able to verify this behavior, hopefully we will get some patch soon ... :-) -Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Coments-about-the-Tickedt-3541-tp 5558012p5563227.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 aboudreault at mapgears.com Mon Sep 27 06:03:51 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 27 Sep 2010 09:03:51 -0400 Subject: [mapserver-users] Re: Coments about the Tickedt 3541 In-Reply-To: <224DBDAF88A6AC47BD22432815351BE0082AD396@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> <1285251394043-5563227.post@n2.nabble.com> <224DBDAF88A6AC47BD22432815351BE0082AD396@nekaposta1> Message-ID: <201009270903.52172.aboudreault@mapgears.com> It depends on how you define your layer. In the bug, they are using the native oracle support in MapServer and not the oracle support from OGR. So, the ogr_OCI.dll is not used. What OCI support are you using? (The CONNECTIONTYPE in your layer) Alan On September 27, 2010 06:16:59 am Jorge Bellido Diez wrote: > Hi, > > More comments about this ticket. We're using ms4w 3.0 beta 11 > (DEVELOPMENT) as commented previously, which includes MapServer 5.6.1 > version. In the beginning we started using ms4w 2.3.1 (STABLE), which > includes MapServer 5.2.1. We've installed again the STABLE version with > same DB server, same data, same WMS configuration and the error is not > reproduced anymore. > > We've noticed that the ogr_OCI.dll file is different. It could be > posible that problem could be there?? Or it's more likely to be a bug in > MapServer's code?? > > Thanks. > > -----Mensaje original----- > De: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Sumit > Sharma > Enviado el: jueves, 23 de septiembre de 2010 16:17 > Para: mapserver-users at lists.osgeo.org > Asunto: [mapserver-users] Re: Coments about the Tickedt 3541 > > > Initially this bug appears random to me as well, but it is certainly > not. > However, there is surely some loophole in OCI, and that bug is exploited > by MapServer. I have posted this bug in Oracle forum as well, but no > luck as of now. > As Alan is already able to verify this behavior, hopefully we will get > some patch soon ... :-) -Sumit > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Coments-about-the-Tickedt-3541-tp > 5558012p5563227.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 -- Alan Boudreault Mapgears http://www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbellido at ikt.es Tue Sep 28 00:31:54 2010 From: jbellido at ikt.es (Jorge Bellido Diez) Date: Tue, 28 Sep 2010 09:31:54 +0200 Subject: [mapserver-users] Re: Coments about the Tickedt 3541 References: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> <1285251394043-5563227.post@n2.nabble.com> <224DBDAF88A6AC47BD22432815351BE0082AD396@nekaposta1> <201009270903.52172.aboudreault@mapgears.com> Message-ID: <224DBDAF88A6AC47BD22432815351BE0082AD542@nekaposta1> We're using 'oraclespatial', I mean CONNECTIONTYPE oraclespatial CONNECTION user/pass at DATABASE We've just done what is explained in ms4w manual to get Oracle support (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracl e-10g ) Does this tell something to you?? Thanks ________________________________ De: Alan Boudreault [mailto:aboudreault at mapgears.com] Enviado el: lunes, 27 de septiembre de 2010 15:04 Para: mapserver-users at lists.osgeo.org CC: Jorge Bellido Diez; Sumit Sharma Asunto: Re: [mapserver-users] Re: Coments about the Tickedt 3541 It depends on how you define your layer. In the bug, they are using the native oracle support in MapServer and not the oracle support from OGR. So, the ogr_OCI.dll is not used. What OCI support are you using? (The CONNECTIONTYPE in your layer) Alan On September 27, 2010 06:16:59 am Jorge Bellido Diez wrote: > Hi, > > More comments about this ticket. We're using ms4w 3.0 beta 11 > (DEVELOPMENT) as commented previously, which includes MapServer 5.6.1 > version. In the beginning we started using ms4w 2.3.1 (STABLE), which > includes MapServer 5.2.1. We've installed again the STABLE version with > same DB server, same data, same WMS configuration and the error is not > reproduced anymore. > > We've noticed that the ogr_OCI.dll file is different. It could be > posible that problem could be there?? Or it's more likely to be a bug in > MapServer's code?? > > Thanks. > > -----Mensaje original----- > De: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Sumit > Sharma > Enviado el: jueves, 23 de septiembre de 2010 16:17 > Para: mapserver-users at lists.osgeo.org > Asunto: [mapserver-users] Re: Coments about the Tickedt 3541 > > > Initially this bug appears random to me as well, but it is certainly > not. > However, there is surely some loophole in OCI, and that bug is exploited > by MapServer. I have posted this bug in Oracle forum as well, but no > luck as of now. > As Alan is already able to verify this behavior, hopefully we will get > some patch soon ... :-) -Sumit > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Coments-about-the-Tickedt-3541-tp > 5558012p5563227.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 -- Alan Boudreault Mapgears http://www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjaminpreisig at gmx.at Tue Sep 28 03:59:47 2010 From: benjaminpreisig at gmx.at (Bennos) Date: Tue, 28 Sep 2010 03:59:47 -0700 (PDT) Subject: [mapserver-users] Re: Font encoding In-Reply-To: <1285260419009-5563821.post@n2.nabble.com> References: <1284995803609-5550875.post@n2.nabble.com> <1285260419009-5563821.post@n2.nabble.com> Message-ID: <1285671587458-5578877.post@n2.nabble.com> I found a solution for my problem: The problem was the convertion from the original *.mdb (Unicode), created in ArcMap, to the shapefile. Found this ESRI knowledge base article http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106 and changed my codePage to UTF-8. Now with my shapefile also comes the ominous *.cpg file and mapserver has no more problem to show the characters. Cheers B. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-encoding-tp5550875p5578877.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Tue Sep 28 06:30:25 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 28 Sep 2010 09:30:25 -0400 Subject: [mapserver-users] Re: Coments about the Tickedt 3541 In-Reply-To: <224DBDAF88A6AC47BD22432815351BE0082AD542@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> <201009270903.52172.aboudreault@mapgears.com> <224DBDAF88A6AC47BD22432815351BE0082AD542@nekaposta1> Message-ID: <201009280930.26241.aboudreault@mapgears.com> Those steps are only needed when you want to use the Oracle support of OGR. ( http://mapserver.org/input/vector/oracle.html#two-options-for-using-oracle- spatial-with-mapserver ) By setting "CONNECTIONTYPE ORACLESPATIAL", you use the native oracle through mapserver. The DLL you were talking about is not used. So, with MapServer 5.6.1, you can reproduce the problem.. but not with 5.2.1. Thanks for the info, Alan On September 28, 2010 03:31:54 am Jorge Bellido Diez wrote: > We're using 'oraclespatial', I mean > > CONNECTIONTYPE oraclespatial > > CONNECTION user/pass at DATABASE > > We've just done what is explained in ms4w manual to get Oracle support > (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracl > e-10g > ) > > Does this tell something to you?? Thanks > > > ________________________________ > > De: Alan Boudreault [mailto:aboudreault at mapgears.com] > Enviado el: lunes, 27 de septiembre de 2010 15:04 > Para: mapserver-users at lists.osgeo.org > CC: Jorge Bellido Diez; Sumit Sharma > Asunto: Re: [mapserver-users] Re: Coments about the Tickedt 3541 > > > > It depends on how you define your layer. In the bug, they are using the > native oracle support in MapServer and not the oracle support from OGR. > So, the ogr_OCI.dll is not used. What OCI support are you using? (The > CONNECTIONTYPE in your layer) > > Alan > > On September 27, 2010 06:16:59 am Jorge Bellido Diez wrote: > > Hi, > > > > > > > > More comments about this ticket. We're using ms4w 3.0 beta 11 > > > > (DEVELOPMENT) as commented previously, which includes MapServer 5.6.1 > > > > version. In the beginning we started using ms4w 2.3.1 (STABLE), which > > > > includes MapServer 5.2.1. We've installed again the STABLE version > > with > > > same DB server, same data, same WMS configuration and the error is not > > > > reproduced anymore. > > > > > > > > We've noticed that the ogr_OCI.dll file is different. It could be > > > > posible that problem could be there?? Or it's more likely to be a bug > > in > > > MapServer's code?? > > > > > > > > Thanks. > > > > > > > > -----Mensaje original----- > > > > De: mapserver-users-bounces at lists.osgeo.org > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Sumit > > > > Sharma > > > > Enviado el: jueves, 23 de septiembre de 2010 16:17 > > > > Para: mapserver-users at lists.osgeo.org > > > > Asunto: [mapserver-users] Re: Coments about the Tickedt 3541 > > > > > > > > > > > > Initially this bug appears random to me as well, but it is certainly > > > > not. > > > > However, there is surely some loophole in OCI, and that bug is > > exploited > > > by MapServer. I have posted this bug in Oracle forum as well, but no > > > > luck as of now. > > > > As Alan is already able to verify this behavior, hopefully we will get > > > > some patch soon ... :-) -Sumit > > > > -- > > > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Coments-about-the-Tickedt-3541-tp > > > 5558012p5563227.html > > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbellido at ikt.es Wed Sep 29 00:50:16 2010 From: jbellido at ikt.es (Jorge Bellido Diez) Date: Wed, 29 Sep 2010 09:50:16 +0200 Subject: [mapserver-users] Re: Coments about the Tickedt 3541 References: <224DBDAF88A6AC47BD22432815351BE00826F419@nekaposta1> <201009270903.52172.aboudreault@mapgears.com> <224DBDAF88A6AC47BD22432815351BE0082AD542@nekaposta1> <201009280930.26241.aboudreault@mapgears.com> Message-ID: <224DBDAF88A6AC47BD22432815351BE0082AD881@nekaposta1> Alan, We've tried to test the situation using OGR connection, but unfotunately, we can't make it work. I mean, I configure the layer with OGR support: MAP NAME "WMSSERVER" STATUS ON EXTENT 460000 4690000 610000 4820000 # Euskadi SYMBOLSET "../misc/symbols/symbols.sym" SHAPEPATH "../shapes/" FONTSET "../misc/fonts/fonts.txt" UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/ogcservices/wms/log/ms_wms_enterprise.log" DEBUG 5 OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME png24bit DRIVER "AGG/PNG" MIMETYPE "image/png; mode=24bit" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGBA EXTENSION "jpg" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" END WEB IMAGEPATH "C:/ms4w/Apache/htdocs/ogcservices/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_server_version" "1.1.1" "wms_title" "Servidor WMS IKT" "wms_onlineresource" "http://192.168.1.38/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/wms/w ms_enterprise.map&" "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer" "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTION "OCI:user/pass at DB" CONNECTIONTYPE OGR DATA "GT_MUNICIPIOS_PRUEBA" NAME "municipios_ogr" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "Municipios" "wms_srs" "EPSG:23030" "wms_name" "municipios_ogr" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_transparent" "true" "wms_extent" "460000 4690000 610000 4820000" "gml_include_items" "all" "wms_include_items" "all" END TEMPLATE "ms_template.html" CLASS GROUP "Predeterminado" NAME "municipios" STYLE OUTLINECOLOR 255 0 0 END END END END And the returned data for a GetFeatureInfo Request is: And in wms.log I get the following message: [Wed Sep 29 08:42:35 2010].512000 msQueryByPoint(): Search returned no results. No matching record(s) found. [Wed Sep 29 08:42:35 2010].512000 mapserv request processing time (msLoadMap not incl.): 0.235s [Wed Sep 29 08:42:35 2010].512000 msFreeMap(): freeing map at 0199BB40. Maybe I'm configuring something wrong?? ________________________________ De: Alan Boudreault [mailto:aboudreault at mapgears.com] Enviado el: martes, 28 de septiembre de 2010 15:30 Para: Jorge Bellido Diez CC: mapserver-users at lists.osgeo.org; Sumit Sharma Asunto: Re: [mapserver-users] Re: Coments about the Tickedt 3541 Those steps are only needed when you want to use the Oracle support of OGR. ( http://mapserver.org/input/vector/oracle.html#two-options-for-using-orac le-spatial-with-mapserver ) By setting "CONNECTIONTYPE ORACLESPATIAL", you use the native oracle through mapserver. The DLL you were talking about is not used. So, with MapServer 5.6.1, you can reproduce the problem.. but not with 5.2.1. Thanks for the info, Alan On September 28, 2010 03:31:54 am Jorge Bellido Diez wrote: > We're using 'oraclespatial', I mean > > CONNECTIONTYPE oraclespatial > > CONNECTION user/pass at DATABASE > > We've just done what is explained in ms4w manual to get Oracle support > (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracl > e-10g > ) > > Does this tell something to you?? Thanks > > > ________________________________ > > De: Alan Boudreault [mailto:aboudreault at mapgears.com] > Enviado el: lunes, 27 de septiembre de 2010 15:04 > Para: mapserver-users at lists.osgeo.org > CC: Jorge Bellido Diez; Sumit Sharma > Asunto: Re: [mapserver-users] Re: Coments about the Tickedt 3541 > > > > It depends on how you define your layer. In the bug, they are using the > native oracle support in MapServer and not the oracle support from OGR. > So, the ogr_OCI.dll is not used. What OCI support are you using? (The > CONNECTIONTYPE in your layer) > > Alan > > On September 27, 2010 06:16:59 am Jorge Bellido Diez wrote: > > Hi, > > > > > > > > More comments about this ticket. We're using ms4w 3.0 beta 11 > > > > (DEVELOPMENT) as commented previously, which includes MapServer 5.6.1 > > > > version. In the beginning we started using ms4w 2.3.1 (STABLE), which > > > > includes MapServer 5.2.1. We've installed again the STABLE version > > with > > > same DB server, same data, same WMS configuration and the error is not > > > > reproduced anymore. > > > > > > > > We've noticed that the ogr_OCI.dll file is different. It could be > > > > posible that problem could be there?? Or it's more likely to be a bug > > in > > > MapServer's code?? > > > > > > > > Thanks. > > > > > > > > -----Mensaje original----- > > > > De: mapserver-users-bounces at lists.osgeo.org > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Sumit > > > > Sharma > > > > Enviado el: jueves, 23 de septiembre de 2010 16:17 > > > > Para: mapserver-users at lists.osgeo.org > > > > Asunto: [mapserver-users] Re: Coments about the Tickedt 3541 > > > > > > > > > > > > Initially this bug appears random to me as well, but it is certainly > > > > not. > > > > However, there is surely some loophole in OCI, and that bug is > > exploited > > > by MapServer. I have posted this bug in Oracle forum as well, but no > > > > luck as of now. > > > > As Alan is already able to verify this behavior, hopefully we will get > > > > some patch soon ... :-) -Sumit > > > > -- > > > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Coments-about-the-Tickedt-3541-tp > > > 5558012p5563227.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 -- Alan Boudreault Mapgears http://www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Tue Sep 28 13:23:19 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 28 Sep 2010 15:23:19 -0500 Subject: [mapserver-users] Expressions In-Reply-To: References: <4C9422F6.5020909@gritechnologies.com> Message-ID: Anyone have anymore ideas about this.... I have a string field with values And the code below. The expression does not seem to be running...if I only use LASTTWOWEEKS it still draws all the points....and I know there are values in there from 2008 Thanks From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Tuesday, September 21, 2010 9:51 AM To: 'Bob Basques'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Expressions My major question is can I do this with a String/text field? Its the only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept 21st 2010), otherwise the 0 will get removed in a numeric field Can I use the format Year, Month, Day? Or do I have to use Month, Day, Year? In this example I eliminated two expressions and focused on one Expression to see if it is working. I kept this ./maple_grove_datasets/police/Burglaries.map In my map file I used ONLY this CLASS NAME 'Last Weeks' EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') STYLE COLOR 0 100 50 SYMBOL "bike" SIZE 12 END END Now in my data I have these values (below), although every symbol was displayed in the map NOTE THIS IS A TEXT FIELD 081204, 081225,090118 These values (above) for the Year, Month, Day format specified in the map source are clearly less than the "last two weeks", Where as they are older than the last 14 days....so none of them should show up, but they do Any thoughts From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bob Basques Sent: Friday, September 17, 2010 9:25 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions A first stab at seeing more than one class, might be to try and switch them around order wise, one filter may be overwriting the other for example. bobb On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: I am using GeoMoose but feel this is more a question for Map Server. I am trying to sort my points by dates using the code below....I think that I can do this but not sure Is this a viable format "2Y%2M%2D" ? As for the field in the shapefile...If I use an integer it removes the 0 from the 092110, (sept 21st 2010) If I use a date then there are "/" ... 9/21/10 The only way I can see this happening is using a text field with retains the 0 in 092110 When I use the textfield "dateValues" as seen below I can get the stars to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not show and I know that I have a few records with dates in the last 14 days... Thoughts? THANKS....all your help is very appreciated.... Main .xml file ./maple_grove_datasets/police/Burglaries.map .map file CLASS NAME 'Last Weeks' EXPRESSION ('[dateValues]' > '%LASTWEEK%') STYLE COLOR 0 0 0 SYMBOL "star" SIZE 12 END END CLASS NAME 'Last Two Weeks' EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') STYLE COLOR 0 100 50 SYMBOL "star" SIZE 12 END END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Sep 29 06:18:55 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 29 Sep 2010 09:18:55 -0400 Subject: [mapserver-users] Expressions In-Reply-To: References: <4C9422F6.5020909@gritechnologies.com> Message-ID: <4CA33CBF.6040406@swoodbridge.com> In EXPRESSIONS you can evaluate any of the following: 1. Regular expressions treating the value as a string 2. numeric expressions using booleans like ==,<,>,<=,>= 3. string expressions like ==, !=, and I think strlen() So if you converted you dates into a format like YYYYMMDD then it would be easy to use a numeric expression like: EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') or EXPRESSION ('[dateValues]' > '%STARTDATE%') where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would be in the same format and allow you to extract record betwee any two start and end dates. Or you might be able to figure out a complex regular expression the represents the last two weeks like: EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') I'm not sure what you would need for the regular expression. -Steve W On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > Anyone have anymore ideas about this?. > > I have a string field with values > > And the code below. The expression does not seem to be running?if I only > use LASTTWOWEEKS it still draws all the points?.and I know there are > values in there from 2008 > > Thanks > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > Kapalczynski > *Sent:* Tuesday, September 21, 2010 9:51 AM > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] Expressions > > My major question is can I do this with a String/text field? Its the > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > 21^st 2010), otherwise the 0 will get removed in a numeric field > > Can I use the format Year, Month, Day? Or do I have to use Month, Day, Year? > > In this example I eliminated two expressions and focused on one > Expression to see if it is working. > > *_I kept this_* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > Now in my data I have these values (below), although every symbol was > displayed in the map > > NOTE THIS IS A TEXT FIELD > > 081204, 081225,090118 > > These values (above) for the Year, Month, Day format specified in the > map source are clearly less than the ?last two weeks?, Where as they are > older than the last 14 days?.so none of them should show up, but they do > > Any thoughts > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob Basques > *Sent:* Friday, September 17, 2010 9:25 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Expressions > > A first stab at seeing more than one class, might be to try and switch > them around order wise, one filter may be overwriting the other for example. > > bobb > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > I am using GeoMoose but feel this is more a question for Map Server. > > I am trying to sort my points by dates using the code below?.I think > that I can do this but not sure > > Is this a viable format ?2Y%2M%2D? ? > > As for the field in the shapefile?If I use an integer it removes the 0 > from the 092110, (sept 21^st 2010) > > If I use a date then there are ?/? ? 9/21/10 > > The only way I can see this happening is using a text field with retains > the 0 in 092110 > > When I use the textfield ?dateValues? as seen below I can get the stars > to draw but only the LASTWEEK?for some reason the LASTTWOWEEKS does not > show and I know that I have a few records with dates in the last 14 days? > > Thoughts? > > THANKS?.all your help is very appreciated?. > > Main .xml file > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > .map file > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > STYLE > > COLOR 0 0 0 > > SYMBOL "star" > > SIZE 12 > > END > > END > > CLASS > > NAME 'Last Two Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "star" > > SIZE 12 > > 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 jkapalczynski at ci.maple-grove.mn.us Wed Sep 29 08:49:38 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 29 Sep 2010 10:49:38 -0500 Subject: [mapserver-users] Expressions In-Reply-To: <4CA33CBF.6040406@swoodbridge.com> References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> Message-ID: I thank you for your response....greatly appreciated as I cannot figure this out.... I know that I have 4 features in the dataset that have a value of 20100916 that's 13 days ago....so with the expression below those 4 or 5 features should show up....but nothing shows up IncidentDa is the field (long integer) Param type is specifying YYYYMMDD my data has values of 20100916 (13 days) I have no idea what could be wrong...Thank you all for your help.... .XML file ./maple_grove_datasets/police/Burglaries.map .MAP file CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < '%LASTWEEK%') STYLE COLOR 0 100 50 SYMBOL "bike" SIZE 12 END END ======================================= BUT if I simply place this in there I get all the points...so something is weird here because most of the dates are older than 7 days. CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTWEEK%') STYLE COLOR 0 0 0 SYMBOL "tent" SIZE 12 END #END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, September 29, 2010 8:19 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions In EXPRESSIONS you can evaluate any of the following: 1. Regular expressions treating the value as a string 2. numeric expressions using booleans like ==,<,>,<=,>= 3. string expressions like ==, !=, and I think strlen() So if you converted you dates into a format like YYYYMMDD then it would be easy to use a numeric expression like: EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') or EXPRESSION ('[dateValues]' > '%STARTDATE%') where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would be in the same format and allow you to extract record betwee any two start and end dates. Or you might be able to figure out a complex regular expression the represents the last two weeks like: EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') I'm not sure what you would need for the regular expression. -Steve W On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > Anyone have anymore ideas about this.... > > I have a string field with values > > And the code below. The expression does not seem to be running...if I only > use LASTTWOWEEKS it still draws all the points....and I know there are > values in there from 2008 > > Thanks > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > Kapalczynski > *Sent:* Tuesday, September 21, 2010 9:51 AM > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] Expressions > > My major question is can I do this with a String/text field? Its the > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > 21^st 2010), otherwise the 0 will get removed in a numeric field > > Can I use the format Year, Month, Day? Or do I have to use Month, Day, Year? > > In this example I eliminated two expressions and focused on one > Expression to see if it is working. > > *_I kept this_* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > Now in my data I have these values (below), although every symbol was > displayed in the map > > NOTE THIS IS A TEXT FIELD > > 081204, 081225,090118 > > These values (above) for the Year, Month, Day format specified in the > map source are clearly less than the "last two weeks", Where as they are > older than the last 14 days....so none of them should show up, but they do > > Any thoughts > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob Basques > *Sent:* Friday, September 17, 2010 9:25 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Expressions > > A first stab at seeing more than one class, might be to try and switch > them around order wise, one filter may be overwriting the other for example. > > bobb > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > I am using GeoMoose but feel this is more a question for Map Server. > > I am trying to sort my points by dates using the code below....I think > that I can do this but not sure > > Is this a viable format "2Y%2M%2D" ? > > As for the field in the shapefile...If I use an integer it removes the 0 > from the 092110, (sept 21^st 2010) > > If I use a date then there are "/" ... 9/21/10 > > The only way I can see this happening is using a text field with retains > the 0 in 092110 > > When I use the textfield "dateValues" as seen below I can get the stars > to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not > show and I know that I have a few records with dates in the last 14 days... > > Thoughts? > > THANKS....all your help is very appreciated.... > > Main .xml file > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > .map file > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > STYLE > > COLOR 0 0 0 > > SYMBOL "star" > > SIZE 12 > > END > > END > > CLASS > > NAME 'Last Two Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "star" > > SIZE 12 > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bitner at gyttja.org Wed Sep 29 09:02:57 2010 From: bitner at gyttja.org (David William Bitner) Date: Wed, 29 Sep 2010 11:02:57 -0500 Subject: [mapserver-users] Expressions In-Reply-To: References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> Message-ID: Jay, I am not exactly sure how the params work in GeoMoose. One tip in general to be able to isolate the problem to either GeoMoose or MapServer is to look at the actual requests that are being made to MapServer. One of the easiest ways to do this is to either use the FireBug extension in FireFox or the Javascript Console in Chrome. With this take a look at the URL that is being sent to MapServer and see what is in the parameter &LASTWEEK=. David On Wed, Sep 29, 2010 at 10:49 AM, Jay Kapalczynski < jkapalczynski at ci.maple-grove.mn.us> wrote: > I thank you for your response....greatly appreciated as I cannot figure > this out.... > > I know that I have 4 features in the dataset that have a value of 20100916 > that?s 13 days ago....so with the expression below those 4 or 5 features > should show up....but nothing shows up > > > > IncidentDa is the field (long integer) > > Param type is specifying YYYYMMDD my data has values of 20100916 (13 days) > > > > I have no idea what could be wrong?Thank you all for your help?. > > > > *.XML file* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > /> > > * format="%4Y%2M%2D" />* > > * > * > > > > > > > > > > *.MAP file* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < > '%LASTWEEK%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > > > ======================================= > > > > BUT if I simply place this in there I get all the points?so something is > weird here because most of the dates are older than 7 days. > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[IncidentDa]' > '%LASTWEEK%?) > > STYLE > > COLOR 0 0 0 > > SYMBOL "tent" > > SIZE 12 > > END > > #END > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge > Sent: Wednesday, September 29, 2010 8:19 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Expressions > > > > In EXPRESSIONS you can evaluate any of the following: > > > > 1. Regular expressions treating the value as a string > > 2. numeric expressions using booleans like ==,<,>,<=,>= > > 3. string expressions like ==, !=, and I think strlen() > > > > So if you converted you dates into a format like YYYYMMDD then it would > > be easy to use a numeric expression like: > > > > EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') > > > > or > > > > EXPRESSION ('[dateValues]' > '%STARTDATE%') > > > > where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would > > be in the same format and allow you to extract record betwee any two > > start and end dates. > > > > Or you might be able to figure out a complex regular expression the > > represents the last two weeks like: > > > > EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') > > > > I'm not sure what you would need for the regular expression. > > > > -Steve W > > > > On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > > > Anyone have anymore ideas about this?. > > > > > > I have a string field with values > > > > > > And the code below. The expression does not seem to be running?if I only > > > use LASTTWOWEEKS it still draws all the points?.and I know there are > > > values in there from 2008 > > > > > > Thanks > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > > > Kapalczynski > > > *Sent:* Tuesday, September 21, 2010 9:51 AM > > > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > > > *Subject:* RE: [mapserver-users] Expressions > > > > > > My major question is can I do this with a String/text field? Its the > > > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > > > 21^st 2010), otherwise the 0 will get removed in a numeric field > > > > > > Can I use the format Year, Month, Day? Or do I have to use Month, Day, > Year? > > > > > > In this example I eliminated two expressions and focused on one > > > Expression to see if it is working. > > > > > > *_I kept this_* > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > STYLE > > > > > > COLOR 0 100 50 > > > > > > SYMBOL "bike" > > > > > > SIZE 12 > > > > > > END > > > > > > END > > > > > > Now in my data I have these values (below), although every symbol was > > > displayed in the map > > > > > > NOTE THIS IS A TEXT FIELD > > > > > > 081204, 081225,090118 > > > > > > These values (above) for the Year, Month, Day format specified in the > > > map source are clearly less than the ?last two weeks?, Where as they are > > > older than the last 14 days?.so none of them should show up, but they do > > > > > > Any thoughts > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob > Basques > > > *Sent:* Friday, September 17, 2010 9:25 PM > > > *To:* mapserver-users at lists.osgeo.org > > > *Subject:* Re: [mapserver-users] Expressions > > > > > > A first stab at seeing more than one class, might be to try and switch > > > them around order wise, one filter may be overwriting the other for > example. > > > > > > bobb > > > > > > > > > > > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > > > > > I am using GeoMoose but feel this is more a question for Map Server. > > > > > > I am trying to sort my points by dates using the code below?.I think > > > that I can do this but not sure > > > > > > Is this a viable format ?2Y%2M%2D? ? > > > > > > As for the field in the shapefile?If I use an integer it removes the 0 > > > from the 092110, (sept 21^st 2010) > > > > > > If I use a date then there are ?/? ? 9/21/10 > > > > > > The only way I can see this happening is using a text field with retains > > > the 0 in 092110 > > > > > > When I use the textfield ?dateValues? as seen below I can get the stars > > > to draw but only the LASTWEEK?for some reason the LASTTWOWEEKS does not > > > show and I know that I have a few records with dates in the last 14 days? > > > > > > Thoughts? > > > > > > THANKS?.all your help is very appreciated?. > > > > > > Main .xml file > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > .map file > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > > > > > STYLE > > > > > > COLOR 0 0 0 > > > > > > SYMBOL "star" > > > > > > SIZE 12 > > > > > > END > > > > > > END > > > > > > CLASS > > > > > > NAME 'Last Two Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > STYLE > > > > > > COLOR 0 100 50 > > > > > > SYMBOL "star" > > > > > > SIZE 12 > > > > > > 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 > > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Wed Sep 29 09:10:09 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 29 Sep 2010 17:10:09 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... Message-ID: Hi All, I have installed MapServer on lighttpd + fastcgi. fastcgi.server = ( "/mapserver" => ( "localhost" => ( "socket" => "/tmp/mapserver-fastcgi.socket", "bin-path" => "/home/gis/bin/mapserv", "bin-environment" => ( "TNS_ADMIN" => "/home/gis/conf/" ), "max-procs" => 2, "check-local" => "disable" ) ) ) gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora MFUATDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mfuatdb) ) ) and I'm getting: msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified in from the logs: [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified in [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298. [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0. [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718. in mapserver: LAYER NAME TESTII TYPE POLYGON STATUS ON CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" CONNECTIONTYPE OGR DATA "CA_WILDFIRE" PROJECTION "init=epsg:3857" END CLASS # NAME "local_shape" COLOR 0 0 255 OUTLINECOLOR 0 0 255 END END The connection string is right as I'm using it from gdal: gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' using driver `OCI' successful. 1: CA_WILDFIRE any ideas ? -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Wed Sep 29 09:45:23 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 29 Sep 2010 11:45:23 -0500 Subject: [mapserver-users] Expressions In-Reply-To: References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> Message-ID: Yea I have firebug....but while in the console nothing appears when you turn on a layer or turn one off.... And the response tab simply displays the .xml file.... I cant see where to go to see the effect the expression is having I really appreciate this all.... Can any of my issues be related to Windows 7 64 bit computer? From: david.bitner at gmail.com [mailto:david.bitner at gmail.com] On Behalf Of David William Bitner Sent: Wednesday, September 29, 2010 11:03 AM To: Jay Kapalczynski Cc: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions Jay, I am not exactly sure how the params work in GeoMoose. One tip in general to be able to isolate the problem to either GeoMoose or MapServer is to look at the actual requests that are being made to MapServer. One of the easiest ways to do this is to either use the FireBug extension in FireFox or the Javascript Console in Chrome. With this take a look at the URL that is being sent to MapServer and see what is in the parameter &LASTWEEK=. David On Wed, Sep 29, 2010 at 10:49 AM, Jay Kapalczynski > wrote: I thank you for your response....greatly appreciated as I cannot figure this out.... I know that I have 4 features in the dataset that have a value of 20100916 that's 13 days ago....so with the expression below those 4 or 5 features should show up....but nothing shows up IncidentDa is the field (long integer) Param type is specifying YYYYMMDD my data has values of 20100916 (13 days) I have no idea what could be wrong...Thank you all for your help.... .XML file ./maple_grove_datasets/police/Burglaries.map .MAP file CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < '%LASTWEEK%') STYLE COLOR 0 100 50 SYMBOL "bike" SIZE 12 END END ======================================= BUT if I simply place this in there I get all the points...so something is weird here because most of the dates are older than 7 days. CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTWEEK%') STYLE COLOR 0 0 0 SYMBOL "tent" SIZE 12 END #END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, September 29, 2010 8:19 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions In EXPRESSIONS you can evaluate any of the following: 1. Regular expressions treating the value as a string 2. numeric expressions using booleans like ==,<,>,<=,>= 3. string expressions like ==, !=, and I think strlen() So if you converted you dates into a format like YYYYMMDD then it would be easy to use a numeric expression like: EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') or EXPRESSION ('[dateValues]' > '%STARTDATE%') where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would be in the same format and allow you to extract record betwee any two start and end dates. Or you might be able to figure out a complex regular expression the represents the last two weeks like: EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') I'm not sure what you would need for the regular expression. -Steve W On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > Anyone have anymore ideas about this.... > > I have a string field with values > > And the code below. The expression does not seem to be running...if I only > use LASTTWOWEEKS it still draws all the points....and I know there are > values in there from 2008 > > Thanks > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > Kapalczynski > *Sent:* Tuesday, September 21, 2010 9:51 AM > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] Expressions > > My major question is can I do this with a String/text field? Its the > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > 21^st 2010), otherwise the 0 will get removed in a numeric field > > Can I use the format Year, Month, Day? Or do I have to use Month, Day, Year? > > In this example I eliminated two expressions and focused on one > Expression to see if it is working. > > *_I kept this_* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > Now in my data I have these values (below), although every symbol was > displayed in the map > > NOTE THIS IS A TEXT FIELD > > 081204, 081225,090118 > > These values (above) for the Year, Month, Day format specified in the > map source are clearly less than the "last two weeks", Where as they are > older than the last 14 days....so none of them should show up, but they do > > Any thoughts > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob Basques > *Sent:* Friday, September 17, 2010 9:25 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Expressions > > A first stab at seeing more than one class, might be to try and switch > them around order wise, one filter may be overwriting the other for example. > > bobb > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > I am using GeoMoose but feel this is more a question for Map Server. > > I am trying to sort my points by dates using the code below....I think > that I can do this but not sure > > Is this a viable format "2Y%2M%2D" ? > > As for the field in the shapefile...If I use an integer it removes the 0 > from the 092110, (sept 21^st 2010) > > If I use a date then there are "/" ... 9/21/10 > > The only way I can see this happening is using a text field with retains > the 0 in 092110 > > When I use the textfield "dateValues" as seen below I can get the stars > to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not > show and I know that I have a few records with dates in the last 14 days... > > Thoughts? > > THANKS....all your help is very appreciated.... > > Main .xml file > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > .map file > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > STYLE > > COLOR 0 0 0 > > SYMBOL "star" > > SIZE 12 > > END > > END > > CLASS > > NAME 'Last Two Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "star" > > SIZE 12 > > 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 -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Sep 29 10:50:49 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 29 Sep 2010 13:50:49 -0400 Subject: [mapserver-users] Expressions In-Reply-To: References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> Message-ID: <4CA37C79.80209@swoodbridge.com> First lets get rid of the parameter substitution to make sure we have a syntax correct. So in your mapfile try: EXPRESSION ([IncidentDa] > 20100816) I set this to Aug 16th to see if you can pull any records. Also because this is numeric, I removed the quotes. You can also try it with quotes to see what works. If this works then try: EXPRESSION ([IncidentDa] > %LASTTWOWEEKS%) Again without the quotes or with depending on what worked. -Steve W On 9/29/2010 11:49 AM, Jay Kapalczynski wrote: > I thank you for your response....greatly appreciated as I cannot figure > this out.... > > I know that I have 4 features in the dataset that have a value of > 20100916 that?s 13 days ago....so with the expression below those 4 or 5 > features should show up....but nothing shows up > > IncidentDa is the field (long integer) > > Param type is specifying YYYYMMDD my data has values of 20100916 (13 days) > > I have no idea what could be wrong?Thank you all for your help?. > > *.XML file* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > * format="%4Y%2M%2D" />* > > * * > > > > > > > > *.MAP file* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < > '%LASTWEEK%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > ======================================= > > BUT if I simply place this in there I get all the points?so something is > weird here because most of the dates are older than 7 days. > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[IncidentDa]' > '%LASTWEEK%?) > > STYLE > > COLOR 0 0 0 > > SYMBOL "tent" > > SIZE 12 > > END > > #END > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Wednesday, September 29, 2010 8:19 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Expressions > > In EXPRESSIONS you can evaluate any of the following: > > 1. Regular expressions treating the value as a string > > 2. numeric expressions using booleans like ==,<,>,<=,>= > > 3. string expressions like ==, !=, and I think strlen() > > So if you converted you dates into a format like YYYYMMDD then it would > > be easy to use a numeric expression like: > > EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') > > or > > EXPRESSION ('[dateValues]' > '%STARTDATE%') > > where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would > > be in the same format and allow you to extract record betwee any two > > start and end dates. > > Or you might be able to figure out a complex regular expression the > > represents the last two weeks like: > > EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') > > I'm not sure what you would need for the regular expression. > > -Steve W > > On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > > > Anyone have anymore ideas about this?. > > > > > > I have a string field with values > > > > > > And the code below. The expression does not seem to be running?if I only > > > use LASTTWOWEEKS it still draws all the points?.and I know there are > > > values in there from 2008 > > > > > > Thanks > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > > > Kapalczynski > > > *Sent:* Tuesday, September 21, 2010 9:51 AM > > > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > > > *Subject:* RE: [mapserver-users] Expressions > > > > > > My major question is can I do this with a String/text field? Its the > > > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > > > 21^st 2010), otherwise the 0 will get removed in a numeric field > > > > > > Can I use the format Year, Month, Day? Or do I have to use Month, > Day, Year? > > > > > > In this example I eliminated two expressions and focused on one > > > Expression to see if it is working. > > > > > > *_I kept this_* > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > STYLE > > > > > > COLOR 0 100 50 > > > > > > SYMBOL "bike" > > > > > > SIZE 12 > > > > > > END > > > > > > END > > > > > > Now in my data I have these values (below), although every symbol was > > > displayed in the map > > > > > > NOTE THIS IS A TEXT FIELD > > > > > > 081204, 081225,090118 > > > > > > These values (above) for the Year, Month, Day format specified in the > > > map source are clearly less than the ?last two weeks?, Where as they are > > > older than the last 14 days?.so none of them should show up, but they do > > > > > > Any thoughts > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob > Basques > > > *Sent:* Friday, September 17, 2010 9:25 PM > > > *To:* mapserver-users at lists.osgeo.org > > > *Subject:* Re: [mapserver-users] Expressions > > > > > > A first stab at seeing more than one class, might be to try and switch > > > them around order wise, one filter may be overwriting the other for > example. > > > > > > bobb > > > > > > > > > > > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > > > > > I am using GeoMoose but feel this is more a question for Map Server. > > > > > > I am trying to sort my points by dates using the code below?.I think > > > that I can do this but not sure > > > > > > Is this a viable format ?2Y%2M%2D? ? > > > > > > As for the field in the shapefile?If I use an integer it removes the 0 > > > from the 092110, (sept 21^st 2010) > > > > > > If I use a date then there are ?/? ? 9/21/10 > > > > > > The only way I can see this happening is using a text field with retains > > > the 0 in 092110 > > > > > > When I use the textfield ?dateValues? as seen below I can get the stars > > > to draw but only the LASTWEEK?for some reason the LASTTWOWEEKS does not > > > show and I know that I have a few records with dates in the last 14 days? > > > > > > Thoughts? > > > > > > THANKS?.all your help is very appreciated?. > > > > > > Main .xml file > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > .map file > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > > > > > STYLE > > > > > > COLOR 0 0 0 > > > > > > SYMBOL "star" > > > > > > SIZE 12 > > > > > > END > > > > > > END > > > > > > CLASS > > > > > > NAME 'Last Two Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > STYLE > > > > > > COLOR 0 100 50 > > > > > > SYMBOL "star" > > > > > > SIZE 12 > > > > > > 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 danlittle at yahoo.com Wed Sep 29 11:58:31 2010 From: danlittle at yahoo.com (Dan Little) Date: Wed, 29 Sep 2010 11:58:31 -0700 (PDT) Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: Message-ID: <89615.44098.qm@web51403.mail.re2.yahoo.com> Is tnsnames.ora accessible by the web-server user? (Check the permissions.) Is t > >From: Sebastian E. Ovide >To: mapserver-users at lists.osgeo.org >Sent: Wed, September 29, 2010 11:10:09 AM >Subject: [mapserver-users] lighttpd, TNS:could not resolve... > >Hi All, > > >I have installed MapServer on lighttpd + fastcgi. > > >fastcgi.server = ( > "/mapserver" => > ( "localhost" => > ( > "socket" => "/tmp/mapserver-fastcgi.socket", > "bin-path" => "/home/gis/bin/mapserv", > "bin-environment" => > ( > "TNS_ADMIN" => "/home/gis/conf/" > ), > "max-procs" => 2, > "check-local" => "disable" > ) > ) >) > > > > >gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >MFUATDB = > (DESCRIPTION = > (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) > (CONNECT_DATA = > (SERVER = DEDICATED) > (SERVICE_NAME = mfuatdb) > ) > ) > > >and I'm getting: > > >msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. >msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'. >ORA-12154: TNS:could not resolve the connect identifier specified in > > >from the logs: > > >[Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >[Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed for >OGR connection in layer `TESTII'. >ORA-12154: TNS:could not resolve the connect identifier specified > in > > >[Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. Failed to >draw layer named 'TESTII'. >[Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298. >[Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0. >[Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718. > > > > >in mapserver: > > > LAYER > NAME TESTII > TYPE POLYGON > STATUS ON > CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" > CONNECTIONTYPE OGR > DATA "CA_WILDFIRE" > PROJECTION > "init=epsg:3857" > END > CLASS ># NAME "local_shape" > COLOR 0 0 255 > OUTLINECOLOR 0 0 255 > END > END > > > > > > >The connection string is right as I'm using it from gdal: > > >gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE >INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' > using driver `OCI' successful. >1: CA_WILDFIRE > > > > >any ideas ? > > > > >-- >Sebastian E. Ovide > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Sep 29 12:21:46 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 29 Sep 2010 15:21:46 -0400 Subject: [mapserver-users] Expressions In-Reply-To: References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> <4CA37C79.80209@swoodbridge.com> Message-ID: <4CA391CA.3030106@swoodbridge.com> How are you calling mapserver directly? You need to do something like: http://host/cgi-bin/mapserv?.....&LASTTWOWEEKS=100916 -Steve On 9/29/2010 3:12 PM, Jay Kapalczynski wrote: > I changed the format to and using another field (?GEO_TIME? - still numeric) > > > > Instead of: > > > > This worked?. > > EXPRESSION ([GEO_TIME] > 100916) THIS DRAWS THE CORRECT 5 POINTS ONLY > > EXPRESSION ([GEO_TIME] > 090110) THIS DRAWS ALL THE POINTS, WHICH IS > CORRECT? all are > than this date > > I then tried WITH NO SUCCESS > > EXPRESSION ([GEO_TIME] > '%LASTTWOWEEKS%') nothing > > EXPRESSION ([GEO_TIME] > %LASTTWOWEEKS%) nothing > > EXPRESSION ([GEO_TIME] > LASTTWOWEEKS) nothing > > EXPRESSION ('[GEO_TIME]' > '%LASTTWOWEEKS%') THIS DRAWS ALL THE POINTS > > EXPRESSION ('[GEO_TIME]' > %LASTTWOWEEKS%) nothing > > EXPRESSION ('[GEO_TIME]' > LASTTWOWEEKS) nothing > > * * > > *_The crazy thing is that I have this working on GEOMOOSE v1.6 on an XP > 32 bit box?.SAME CODE, SAME DATASET..SOMETHING WITH GEOMOOSE 2?????_* > > *With something like this* > > EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[GEO_TIME]' > '%LASTWEEK%') > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Wednesday, September 29, 2010 12:51 PM > To: Jay Kapalczynski > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Expressions > > First lets get rid of the parameter substitution to make sure we have a > > syntax correct. So in your mapfile try: > > EXPRESSION ([IncidentDa] > 20100816) > > I set this to Aug 16th to see if you can pull any records. Also because > > this is numeric, I removed the quotes. You can also try it with quotes > > to see what works. > > If this works then try: > > EXPRESSION ([IncidentDa] > %LASTTWOWEEKS%) > > Again without the quotes or with depending on what worked. > > -Steve W > > On 9/29/2010 11:49 AM, Jay Kapalczynski wrote: > > > I thank you for your response....greatly appreciated as I cannot figure > > > this out.... > > > > > > I know that I have 4 features in the dataset that have a value of > > > 20100916 that?s 13 days ago....so with the expression below those 4 or 5 > > > features should show up....but nothing shows up > > > > > > IncidentDa is the field (long integer) > > > > > > Param type is specifying YYYYMMDD my data has values of 20100916 (13 > days) > > > > > > I have no idea what could be wrong?Thank you all for your help?. > > > > > > *.XML file* > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > > > > > * > > format="%4Y%2M%2D" />* > > > > > > * * > > > > > > > > > > > > > > > > > > > > > > > > *.MAP file* > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < > > > '%LASTWEEK%') > > > > > > STYLE > > > > > > COLOR 0 100 50 > > > > > > SYMBOL "bike" > > > > > > SIZE 12 > > > > > > END > > > > > > END > > > > > > ======================================= > > > > > > BUT if I simply place this in there I get all the points?so something is > > > weird here because most of the dates are older than 7 days. > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[IncidentDa]' > '%LASTWEEK%?) > > > > > > STYLE > > > > > > COLOR 0 0 0 > > > > > > SYMBOL "tent" > > > > > > SIZE 12 > > > > > > END > > > > > > #END > > > > > > -----Original Message----- > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > > > Woodbridge > > > Sent: Wednesday, September 29, 2010 8:19 AM > > > To: mapserver-users at lists.osgeo.org > > > Subject: Re: [mapserver-users] Expressions > > > > > > In EXPRESSIONS you can evaluate any of the following: > > > > > > 1. Regular expressions treating the value as a string > > > > > > 2. numeric expressions using booleans like ==,<,>,<=,>= > > > > > > 3. string expressions like ==, !=, and I think strlen() > > > > > > So if you converted you dates into a format like YYYYMMDD then it would > > > > > > be easy to use a numeric expression like: > > > > > > EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < > '%ENDDATE%') > > > > > > or > > > > > > EXPRESSION ('[dateValues]' > '%STARTDATE%') > > > > > > where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would > > > > > > be in the same format and allow you to extract record betwee any two > > > > > > start and end dates. > > > > > > Or you might be able to figure out a complex regular expression the > > > > > > represents the last two weeks like: > > > > > > EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') > > > > > > I'm not sure what you would need for the regular expression. > > > > > > -Steve W > > > > > > On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > > > > > > > Anyone have anymore ideas about this?. > > > > > > > > > > > > > > I have a string field with values > > > > > > > > > > > > > > And the code below. The expression does not seem to be running?if I > only > > > > > > > use LASTTWOWEEKS it still draws all the points?.and I know there are > > > > > > > values in there from 2008 > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > > > > > > > Kapalczynski > > > > > > > *Sent:* Tuesday, September 21, 2010 9:51 AM > > > > > > > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > > > > > > > *Subject:* RE: [mapserver-users] Expressions > > > > > > > > > > > > > > My major question is can I do this with a String/text field? Its the > > > > > > > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 > (Sept > > > > > > > 21^st 2010), otherwise the 0 will get removed in a numeric field > > > > > > > > > > > > > > Can I use the format Year, Month, Day? Or do I have to use Month, > > > Day, Year? > > > > > > > > > > > > > > In this example I eliminated two expressions and focused on one > > > > > > > Expression to see if it is working. > > > > > > > > > > > > > > *_I kept this_* > > > > > > > > > > > > > > > > > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > > > > > > > > > > > > > CLASS > > > > > > > > > > > > > > NAME 'Last Weeks' > > > > > > > > > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > > > > > > > > > STYLE > > > > > > > > > > > > > > COLOR 0 100 50 > > > > > > > > > > > > > > SYMBOL "bike" > > > > > > > > > > > > > > SIZE 12 > > > > > > > > > > > > > > END > > > > > > > > > > > > > > END > > > > > > > > > > > > > > Now in my data I have these values (below), although every symbol was > > > > > > > displayed in the map > > > > > > > > > > > > > > NOTE THIS IS A TEXT FIELD > > > > > > > > > > > > > > 081204, 081225,090118 > > > > > > > > > > > > > > These values (above) for the Year, Month, Day format specified in the > > > > > > > map source are clearly less than the ?last two weeks?, Where as > they are > > > > > > > older than the last 14 days?.so none of them should show up, but > they do > > > > > > > > > > > > > > Any thoughts > > > > > > > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob > > > Basques > > > > > > > *Sent:* Friday, September 17, 2010 9:25 PM > > > > > > > *To:* mapserver-users at lists.osgeo.org > > > > > > > *Subject:* Re: [mapserver-users] Expressions > > > > > > > > > > > > > > A first stab at seeing more than one class, might be to try and switch > > > > > > > them around order wise, one filter may be overwriting the other for > > > example. > > > > > > > > > > > > > > bobb > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > > > > > > > > > > > > > I am using GeoMoose but feel this is more a question for Map Server. > > > > > > > > > > > > > > I am trying to sort my points by dates using the code below?.I think > > > > > > > that I can do this but not sure > > > > > > > > > > > > > > Is this a viable format ?2Y%2M%2D? ? > > > > > > > > > > > > > > As for the field in the shapefile?If I use an integer it removes the 0 > > > > > > > from the 092110, (sept 21^st 2010) > > > > > > > > > > > > > > If I use a date then there are ?/? ? 9/21/10 > > > > > > > > > > > > > > The only way I can see this happening is using a text field with > retains > > > > > > > the 0 in 092110 > > > > > > > > > > > > > > When I use the textfield ?dateValues? as seen below I can get the stars > > > > > > > to draw but only the LASTWEEK?for some reason the LASTTWOWEEKS does not > > > > > > > show and I know that I have a few records with dates in the last 14 > days? > > > > > > > > > > > > > > Thoughts? > > > > > > > > > > > > > > THANKS?.all your help is very appreciated?. > > > > > > > > > > > > > > Main .xml file > > > > > > > > > > > > > > > > > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > .map file > > > > > > > > > > > > > > CLASS > > > > > > > > > > > > > > NAME 'Last Weeks' > > > > > > > > > > > > > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > > > > > > > > > > > > > STYLE > > > > > > > > > > > > > > COLOR 0 0 0 > > > > > > > > > > > > > > SYMBOL "star" > > > > > > > > > > > > > > SIZE 12 > > > > > > > > > > > > > > END > > > > > > > > > > > > > > END > > > > > > > > > > > > > > CLASS > > > > > > > > > > > > > > NAME 'Last Two Weeks' > > > > > > > > > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > > > > > > > > > STYLE > > > > > > > > > > > > > > COLOR 0 100 50 > > > > > > > > > > > > > > SYMBOL "star" > > > > > > > > > > > > > > SIZE 12 > > > > > > > > > > > > > > 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 lella.s at irea.cnr.it Thu Sep 30 00:18:19 2010 From: lella.s at irea.cnr.it (Simone Lella) Date: Thu, 30 Sep 2010 09:18:19 +0200 Subject: [mapserver-users] Internal Server Error / proxy.cgi Fixed In-Reply-To: <4C9B1A42.7070600@irea.cnr.it> References: <4C9B1A42.7070600@irea.cnr.it> Message-ID: <4CA439BB.7040701@irea.cnr.it> I've installed Python 2.7 and I've changed the first row of "Proxy.cgi" file with "#! C:/Python27/python.exe -u" Simone Simone Lella Istituto per il Rilevamento Elettromagnetico dell'Ambiente IREA - CNR (http://www.irea.cnr.it) Via Bassini, 15 Tel. +39 02-23699299 Milano Il 23/09/2010 11:13, Simone Lella ha scritto: > Hi, > > I'm using MS4W with Windows 7. > When I call "http://localhost:8081/cgi-bin/proxy.cgi", the response is: > > /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. > / > > > The "error.log" file contains: > > /[Thu Sep 23 09:49:43 2010] [warn] PassEnv variable PYTHONPATH was > undefined > [Thu Sep 23 09:49:43 2010] [notice] Apache/2.2.10 (Win32) configured > -- resuming normal operations > [Thu Sep 23 09:49:43 2010] [notice] Server built: Oct 10 2008 12:39:04 > [Thu Sep 23 09:49:43 2010] [notice] Parent: Created child process 2932 > [Thu Sep 23 09:49:43 2010] [warn] PassEnv variable PYTHONPATH was > undefined > [Thu Sep 23 09:49:44 2010] [warn] PassEnv variable PYTHONPATH was > undefined > [Thu Sep 23 09:49:44 2010] [notice] Child 2932: Child process is running > [Thu Sep 23 09:49:44 2010] [notice] Child 2932: Acquired the start mutex. > [Thu Sep 23 09:49:44 2010] [notice] Child 2932: Starting 64 worker > threads. > [Thu Sep 23 09:49:44 2010] [notice] Child 2932: Starting thread to > listen on port 8081. > [Thu Sep 23 09:50:13 2010] [error] [client 127.0.0.1] (OS > 2)Impossibile trovare il file specificato. : couldn't create child > process: 720002: proxy.cgi > [Thu Sep 23 09:50:13 2010] [error] [client 127.0.0.1] (OS > 2)Impossibile trovare il file specificato. : couldn't spawn child > process: C:/ms4w/Apache/cgi-bin/proxy.cgi/ > > > The "proxy.cgi" file was created in "C:/ms4w/Apache/cgi-bin/proxy.cgi" > and I've copied into the following text: > > /#!/usr/bin/env python > > """This is a blind proxy that we use to get around browser > restrictions that prevent the Javascript from loading pages not on the > same server as the Javascript. This has several problems: it's less > efficient, it might break some sites, and it's a security risk because > people can use this proxy to browse the web and possibly do bad stuff > with it. It only loads pages via http and https, but it can load any > content type. It supports GET and POST requests.""" > > import urllib2 > import cgi > import sys, os > > # Designed to prevent Open Proxy type stuff. > > allowedHosts = ['www.openlayers.org', 'openlayers.org', > 'labs.metacarta.com', 'world.freemap.in', > 'prototype.openmnnd.org', 'geo.openplans.org', > 'sigma.openplans.org', 'demo.opengeo.org', > 'www.openstreetmap.org', 'sample.azavea.com', > 'v-swe.uni-muenster.de:8080', > 'vmap0.tiles.osgeo.org','localhost:8081'] > > method = os.environ["REQUEST_METHOD"] > > if method == "POST": > qs = os.environ["QUERY_STRING"] > d = cgi.parse_qs(qs) > if d.has_key("url"): > url = d["url"][0] > else: > url = "http://www.openlayers.org" > else: > fs = cgi.FieldStorage() > url = fs.getvalue('url', "http://www.openlayers.org") > > try: > host = url.split("/")[2] > if allowedHosts and not host in allowedHosts: > print "Status: 502 Bad Gateway" > print "Content-Type: text/plain" > print > print "This proxy does not allow you to access that location > (%s)." % (host,) > print > print os.environ > > elif url.startswith("http://") or url.startswith("https://"): > > if method == "POST": > length = int(os.environ["CONTENT_LENGTH"]) > headers = {"Content-Type": os.environ["CONTENT_TYPE"]} > body = sys.stdin.read(length) > r = urllib2.Request(url, body, headers) > y = urllib2.urlopen(r) > else: > y = urllib2.urlopen(url) > > # print content type header > i = y.info() > if i.has_key("Content-Type"): > print "Content-Type: %s" % (i["Content-Type"]) > else: > print "Content-Type: text/plain" > print > > print y.read() > > y.close() > else: > print "Content-Type: text/plain" > print > print "Illegal request." > > except Exception, E: > print "Status: 500 Unexpected Error" > print "Content-Type: text/plain" > print > print "Some unexpected error occurred. Error text was:", E/ > > > I've modified "proxy.cgi" file at "allowedHosts" by adding > "localhost:8081". > > I must modify the first row of "proxy.cgi" file? > Can this issue related to the Windows 7 OS? > > > Thanks > > Simone > > > *_ > _* > > > > -- > Simone Lella > Istituto per il Rilevamento Elettromagnetico dell'Ambiente > IREA - CNR (http://www.irea.cnr.it) > Via Bassini, 15 > Tel. +39 02-23699299 > Milano > > > _______________________________________________ > 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 porath at web.de Thu Sep 30 00:43:55 2010 From: porath at web.de (Holger Porath) Date: Thu, 30 Sep 2010 09:43:55 +0200 Subject: [mapserver-users] wfs filter request Message-ID: Hi again! We are still having issues with using mapserver 5.6.5 as a wfs server together. When we submit a wfs getfeature filter request mapserver doesn't use the filter in the sql statement. It just searches all the objects in the database and applies the filter on the result. Thus, we are getting a timeout. Here is our filter request: Filter=FS_FSZ111 As you can see the filter for the attribute "FS_FSZ" is set to "111". The debug log shows that this isn't used in the sql at all: Using this Sql to retrieve the data : SELECT fs_id, FS_GKNR, FS_FLNR, FS_FSZ, FS_FSN, FS_FSSTATUS, FS_ID, FS_FSRWERT_ABS, FS_FSHWERT_ABS, fs_koordinate FROM os_flst I expected to see a where clause like the following: where fs_fsz like "111" When we switch back to mapserver 5.0.0 we see the correct where clause in the debug log. So what are we doing wrong or is this a bug? Thanks for your help. Regards, Holger This is how our layer definition looks like: LAYER NAME "test_flst" METADATA "wfs_extent" "3410000 5470000 3666000 5726000" "wfs_title" "test_flst" "gml_featureid" "fs_id" "gml_include_items" "all" # optional END # of METADATA TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "user/pass at service" DATA "fs_koordinate from os_flst USING UNIQUE fs_id NONE" PROJECTION "init=epsg:31467" END # of PROJECTION DUMP TRUE END # of LAYER From dalda at ikt.es Thu Sep 30 00:34:47 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Thu, 30 Sep 2010 09:34:47 +0200 Subject: [mapserver-users] Problems labelling using Halo option Message-ID: <224DBDAF88A6AC47BD22432815351BE0082ADB84@nekaposta1> Hi list, I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code: vinedos provincia1 municipio43 poligono4 parcela880 recinto1 #000000 2 5 5 5 5 times 18 bold 0.50.5 2 #FFFFFF 0.85 #000000 0.65 But when I receive the image the Halo is not applied (see attached file). My mapfile is as follows: NAME "WMSSERVER" STATUS ON EXTENT 460000 4710000 610000 4820000 # Euskadi SHAPEPATH "extra/shapes/" FONTSET "extra/fonts/fonts.txt" SYMBOLSET "extra/symbols/symbols.sym" IMAGETYPE "image/png; mode=24bit" OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END IMAGECOLOR 255 255 255 UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log" DEBUG 5 WEB IMAGEPATH "C:/ms4w/Apache/htdocs/ogcservices/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_title" "Servidor WMS IKT - Impresiones Lotes" "wms_onlineresource" "http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map&" "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las impresiones por lotes." "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTIONTYPE postgis CONNECTION "user=postgres password=1111 dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432" NAME "vinedos" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "vinedos" "wms_srs" "EPSG:23030" "wms_name" "vinedos" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" "wms_extent" "470000 4700000 610000 4820000" "gml_include_items" "all" END #Sentencia SQL para obtener los datos DATA "the_geom FROM vinedos using unique gid using SRID=23030" CLASS NAME "Vinedos" STYLE SYMBOL 'dashed1' OUTLINECOLOR 0 0 0 END TEMPLATE "ttt_query.html" END PROCESSING "LABEL_NO_CLIP=ON" END END And my font file: sans Vera.ttf esri-130 esri_130.ttf times times.ttf times-bold timesbd.ttf arial arial.ttf No error messages are received. Any ideas?? Thanks. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? -------------- next part -------------- A non-text attachment was scrubbed... Name: label.jpg Type: image/jpeg Size: 14787 bytes Desc: label.jpg URL: From sebastian.ovide at gmail.com Thu Sep 30 01:15:06 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 30 Sep 2010 09:15:06 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: <89615.44098.qm@web51403.mail.re2.yahoo.com> References: <89615.44098.qm@web51403.mail.re2.yahoo.com> Message-ID: yes. gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' MFUATDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mfuatdb) ) ) On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: > Is tnsnames.ora accessible by the web-server user? (Check the permissions.) > > Is t > *From:* Sebastian E. Ovide > *To:* mapserver-users at lists.osgeo.org > *Sent:* Wed, September 29, 2010 11:10:09 AM > *Subject:* [mapserver-users] lighttpd, TNS:could not resolve... > > Hi All, > > I have installed MapServer on lighttpd + fastcgi. > > fastcgi.server = ( > "/mapserver" => > ( "localhost" => > ( > "socket" => "/tmp/mapserver-fastcgi.socket", > "bin-path" => "/home/gis/bin/mapserv", > "bin-environment" => > ( > "TNS_ADMIN" => "/home/gis/conf/" > ), > "max-procs" => 2, > "check-local" => "disable" > ) > ) > ) > > > gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora > MFUATDB = > (DESCRIPTION = > (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) > (CONNECT_DATA = > (SERVER = DEDICATED) > (SERVICE_NAME = mfuatdb) > ) > ) > > and I'm getting: > > msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified > in > > from the logs: > > [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 > [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed > for OGR connection in layer `TESTII'. > ORA-12154: TNS:could not resolve the connect identifier specified > in > > [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. Failed > to draw layer named 'TESTII'. > [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298. > [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0. > [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718. > > > in mapserver: > > LAYER > NAME TESTII > TYPE POLYGON > STATUS ON > CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" > CONNECTIONTYPE OGR > DATA "CA_WILDFIRE" > PROJECTION > "init=epsg:3857" > END > CLASS > # NAME "local_shape" > COLOR 0 0 255 > OUTLINECOLOR 0 0 255 > END > END > > > > The connection string is right as I'm using it from gdal: > > gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE > INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' > using driver `OCI' successful. > 1: CA_WILDFIRE > > > any ideas ? > > > -- > Sebastian E. Ovide > > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Sep 30 01:37:01 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 30 Sep 2010 11:37:01 +0300 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: <89615.44098.qm@web51403.mail.re2.yahoo.com> Message-ID: Hi, For me, sometimes with some Oracle user name from some computers SQL*Plus does not understand if I am using the SERVICE_NAME. It you happen to have the same situation you should be able to connect with the connection name, which seems to be MFUATDB for you. Actually, the error message "TNS:could not resolve the connect identifier specified" may mean that you should not use service name but the connect identifier. Have a try and tell how it went. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide L?hetetty: 30. syyskuuta 2010 11:15 Vastaanottaja: Dan Little Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] lighttpd, TNS:could not resolve... yes. gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' MFUATDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mfuatdb) ) ) On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: Is tnsnames.ora accessible by the web-server user? (Check the permissions.) Is t From: Sebastian E. Ovide To: mapserver-users at lists.osgeo.org Sent: Wed, September 29, 2010 11:10:09 AM Subject: [mapserver-users] lighttpd, TNS:could not resolve... Hi All, I have installed MapServer on lighttpd + fastcgi. fastcgi.server = ( "/mapserver" => ( "localhost" => ( "socket" => "/tmp/mapserver-fastcgi.socket", "bin-path" => "/home/gis/bin/mapserv", "bin-environment" => ( "TNS_ADMIN" => "/home/gis/conf/" ), "max-procs" => 2, "check-local" => "disable" ) ) ) gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora MFUATDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mfuatdb) ) ) and I'm getting: msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified in from the logs: [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified in [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298. [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0. [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718. in mapserver: LAYER NAME TESTII TYPE POLYGON STATUS ON CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" CONNECTIONTYPE OGR DATA "CA_WILDFIRE" PROJECTION "init=epsg:3857" END CLASS # NAME "local_shape" COLOR 0 0 255 OUTLINECOLOR 0 0 255 END END The connection string is right as I'm using it from gdal: gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' using driver `OCI' successful. 1: CA_WILDFIRE any ideas ? -- Sebastian E. Ovide -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Thu Sep 30 01:54:50 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 30 Sep 2010 09:54:50 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: <89615.44098.qm@web51403.mail.re2.yahoo.com> Message-ID: no luck... renamed servicename to capital.. so now connection name==service name... same problem... ogrinfo works, mapserver doesn't.... On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka wrote: > Hi, > > For me, sometimes with some Oracle user name from some computers SQL*Plus > does not understand if I am using the SERVICE_NAME. It you happen to have > the same situation you should be able to connect with the connection name, > which seems to be MFUATDB for you. > > Actually, the error message "TNS:could not resolve the connect identifier > specified" may mean that you should not use service name but the connect > identifier. Have a try and tell how it went. > > > -Jukka Rahkonen- > > > ------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide > *L?hetetty:* 30. syyskuuta 2010 11:15 > *Vastaanottaja:* Dan Little > *Kopio:* mapserver-users at lists.osgeo.org > *Aihe:* Re: [mapserver-users] lighttpd, TNS:could not resolve... > > yes. > > > gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora > -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora > gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' > MFUATDB = > (DESCRIPTION = > (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) > (CONNECT_DATA = > (SERVER = DEDICATED) > (SERVICE_NAME = mfuatdb) > ) > ) > > > On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: > >> Is tnsnames.ora accessible by the web-server user? (Check the >> permissions.) >> >> Is t >> *From:* Sebastian E. Ovide >> *To:* mapserver-users at lists.osgeo.org >> *Sent:* Wed, September 29, 2010 11:10:09 AM >> *Subject:* [mapserver-users] lighttpd, TNS:could not resolve... >> >> Hi All, >> >> I have installed MapServer on lighttpd + fastcgi. >> >> fastcgi.server = ( >> "/mapserver" => >> ( "localhost" => >> ( >> "socket" => "/tmp/mapserver-fastcgi.socket", >> "bin-path" => "/home/gis/bin/mapserv", >> "bin-environment" => >> ( >> "TNS_ADMIN" => "/home/gis/conf/" >> ), >> "max-procs" => 2, >> "check-local" => "disable" >> ) >> ) >> ) >> >> >> gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >> MFUATDB = >> (DESCRIPTION = >> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >> (CONNECT_DATA = >> (SERVER = DEDICATED) >> (SERVICE_NAME = mfuatdb) >> ) >> ) >> >> and I'm getting: >> >> msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. >> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >> `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified >> in >> >> from the logs: >> >> [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >> [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed >> for OGR connection in layer `TESTII'. >> ORA-12154: TNS:could not resolve the connect identifier specified >> in >> >> [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. >> Failed to draw layer named 'TESTII'. >> [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298. >> [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0. >> [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718. >> >> >> in mapserver: >> >> LAYER >> NAME TESTII >> TYPE POLYGON >> STATUS ON >> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" >> CONNECTIONTYPE OGR >> DATA "CA_WILDFIRE" >> PROJECTION >> "init=epsg:3857" >> END >> CLASS >> # NAME "local_shape" >> COLOR 0 0 255 >> OUTLINECOLOR 0 0 255 >> END >> END >> >> >> >> The connection string is right as I'm using it from gdal: >> >> gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE >> INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' >> using driver `OCI' successful. >> 1: CA_WILDFIRE >> >> >> any ideas ? >> >> >> -- >> Sebastian E. Ovide >> >> >> >> >> >> > > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Thu Sep 30 02:47:30 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 30 Sep 2010 10:47:30 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: <89615.44098.qm@web51403.mail.re2.yahoo.com> Message-ID: the message says: ORA-12154: TNS:could not resolve the connect identifier specified in so... does mean that gdal didn't get any name for the connection ? On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide < sebastian.ovide at gmail.com> wrote: > no luck... > > renamed servicename to capital.. so now connection name==service name... > > same problem... ogrinfo works, mapserver doesn't.... > > > On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka > wrote: > >> Hi, >> >> For me, sometimes with some Oracle user name from some computers SQL*Plus >> does not understand if I am using the SERVICE_NAME. It you happen to have >> the same situation you should be able to connect with the connection name, >> which seems to be MFUATDB for you. >> >> Actually, the error message "TNS:could not resolve the connect identifier >> specified" may mean that you should not use service name but the connect >> identifier. Have a try and tell how it went. >> >> >> -Jukka Rahkonen- >> >> >> ------------------------------ >> *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide >> *L?hetetty:* 30. syyskuuta 2010 11:15 >> *Vastaanottaja:* Dan Little >> *Kopio:* mapserver-users at lists.osgeo.org >> *Aihe:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >> >> yes. >> >> >> gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora >> -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora >> gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' >> MFUATDB = >> (DESCRIPTION = >> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >> (CONNECT_DATA = >> (SERVER = DEDICATED) >> (SERVICE_NAME = mfuatdb) >> ) >> ) >> >> >> On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: >> >>> Is tnsnames.ora accessible by the web-server user? (Check the >>> permissions.) >>> >>> Is t >>> *From:* Sebastian E. Ovide >>> *To:* mapserver-users at lists.osgeo.org >>> *Sent:* Wed, September 29, 2010 11:10:09 AM >>> *Subject:* [mapserver-users] lighttpd, TNS:could not resolve... >>> >>> Hi All, >>> >>> I have installed MapServer on lighttpd + fastcgi. >>> >>> fastcgi.server = ( >>> "/mapserver" => >>> ( "localhost" => >>> ( >>> "socket" => "/tmp/mapserver-fastcgi.socket", >>> "bin-path" => "/home/gis/bin/mapserv", >>> "bin-environment" => >>> ( >>> "TNS_ADMIN" => "/home/gis/conf/" >>> ), >>> "max-procs" => 2, >>> "check-local" => "disable" >>> ) >>> ) >>> ) >>> >>> >>> gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >>> MFUATDB = >>> (DESCRIPTION = >>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>> (CONNECT_DATA = >>> (SERVER = DEDICATED) >>> (SERVICE_NAME = mfuatdb) >>> ) >>> ) >>> >>> and I'm getting: >>> >>> msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. >>> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >>> `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified >>> in >>> >>> from the logs: >>> >>> [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >>> [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed >>> for OGR connection in layer `TESTII'. >>> ORA-12154: TNS:could not resolve the connect identifier specified >>> in >>> >>> [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. >>> Failed to draw layer named 'TESTII'. >>> [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298. >>> [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at >>> 0xa0237a0. >>> [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at >>> 0xa024718. >>> >>> >>> in mapserver: >>> >>> LAYER >>> NAME TESTII >>> TYPE POLYGON >>> STATUS ON >>> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" >>> CONNECTIONTYPE OGR >>> DATA "CA_WILDFIRE" >>> PROJECTION >>> "init=epsg:3857" >>> END >>> CLASS >>> # NAME "local_shape" >>> COLOR 0 0 255 >>> OUTLINECOLOR 0 0 255 >>> END >>> END >>> >>> >>> >>> The connection string is right as I'm using it from gdal: >>> >>> gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb >>> :CA_WILDFIRE >>> INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' >>> using driver `OCI' successful. >>> 1: CA_WILDFIRE >>> >>> >>> any ideas ? >>> >>> >>> -- >>> Sebastian E. Ovide >>> >>> >>> >>> >>> >>> >> >> >> -- >> Sebastian E. Ovide >> >> >> >> >> > > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Thu Sep 30 04:22:16 2010 From: danlittle at yahoo.com (Dan Little) Date: Thu, 30 Sep 2010 04:22:16 -0700 (PDT) Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: <89615.44098.qm@web51403.mail.re2.yahoo.com> Message-ID: <133436.29754.qm@web51404.mail.re2.yahoo.com> Does shp2img work with your Mapfile? > >From: Sebastian E. Ovide >To: Rahkonen Jukka >Cc: mapserver-users at lists.osgeo.org >Sent: Thu, September 30, 2010 4:47:30 AM >Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve... > >the message says: > > >ORA-12154: TNS:could not resolve the connect identifier specified in > > >so... does mean that gdal didn't get any name for the connection ? > > > > > >On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide >wrote: > >no luck... >> >> >>renamed servicename to capital.. so now connection name==service name... >> >> >>same problem... ogrinfo works, mapserver doesn't.... >> >> >> >>On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka >>wrote: >> >>Hi, >>> >>>For me, sometimes with some Oracle user name from some computers SQL*Plus does >>>not understand if I am using the SERVICE_NAME. It you happen to have the same >>>situation you should be able to connect with the connection name, which seems >>>to be MFUATDB for you. >>> >>>Actually, the error message "TNS:could not resolve the connect identifier >>>specified" may mean that you should not use service name but the connect >>>identifier. Have a try and tell how it went. >>> >>> >>>-Jukka Rahkonen- >>> >>> >>> ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide >>>>L?hetetty: 30. syyskuuta 2010 11:15 >>>>Vastaanottaja: Dan Little >>>>Kopio: mapserver-users at lists.osgeo.org >>>>Aihe: Re: [mapserver-users] lighttpd, TNS:could not resolve... >>>> >>>> >>>>yes. >>>> >>>> >>>> >>>> >>>>gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora >>>>-rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora >>>>gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' >>>>MFUATDB = >>>> (DESCRIPTION = >>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>> (CONNECT_DATA = >>>> (SERVER = DEDICATED) >>>> (SERVICE_NAME = mfuatdb) >>>> ) >>>> ) >>>> >>>> >>>> >>>>On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: >>>> >>>>Is tnsnames.ora accessible by the web-server user? (Check the >>>permissions.) >>>>> >>>>> >>>>>Is t >>>>>> >>>>>>From: Sebastian E. Ovide >>>>>>To: mapserver-users at lists.osgeo.org >>>>>>Sent: Wed, September 29, 2010 11:10:09 AM >>>>>>Subject: [mapserver-users] lighttpd, TNS:could not resolve... >>>>>> >>>>>> >>>>>>Hi All, >>>>>> >>>>>> >>>>>>I have installed MapServer on lighttpd + fastcgi. >>>>>> >>>>>> >>>>>>fastcgi.server = ( >>>>>> "/mapserver" => >>>>>> ( "localhost" => >>>>>> ( >>>>>> "socket" => "/tmp/mapserver-fastcgi.socket", >>>>>> "bin-path" => "/home/gis/bin/mapserv", >>>>>> "bin-environment" => >>>>>> ( >>>>>> "TNS_ADMIN" => >>>"/home/gis/conf/" >>>>>> ), >>>>>> "max-procs" => 2, >>>>>> "check-local" => "disable" >>>>>> ) >>>>>> ) >>>>>>) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >>>>>>MFUATDB = >>>>>> (DESCRIPTION = >>>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>>>> (CONNECT_DATA = >>>>>> (SERVER = DEDICATED) >>>>>> (SERVICE_NAME = mfuatdb) >>>>>> ) >>>>>> ) >>>>>> >>>>>> >>>>>>and I'm getting: >>>>>> >>>>>> >>>>>>msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. >>>>>>msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >>>>>>`TESTII'. ORA-12154: TNS:could not resolve the connect identifier >>>>>>specified in >>>>>> >>>>>> >>>>>>from the logs: >>>>>> >>>>>> >>>>>>[Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >>>>>>[Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed >>>>>>for OGR connection in layer `TESTII'. >>>>>>ORA-12154: TNS:could not resolve the connect identifier specified >>>>>> in >>>>>> >>>>>> >>>>>>[Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. >>>>>>Failed to draw layer named 'TESTII'. >>>>>>[Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at >>>>0xa00f298. >>>>>>[Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at >>>>>>0xa0237a0. >>>>>>[Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at >>>>>>0xa024718. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>in mapserver: >>>>>> >>>>>> >>>>>> LAYER >>>>>> NAME TESTII >>>>>> TYPE POLYGON >>>>>> STATUS ON >>>>>> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" >>>>>> CONNECTIONTYPE OGR >>>>>> DATA "CA_WILDFIRE" >>>>>> PROJECTION >>>>>> "init=epsg:3857" >>>>>> END >>>>>> CLASS >>>>>># NAME "local_shape" >>>>>> COLOR 0 0 255 >>>>>> OUTLINECOLOR 0 0 255 >>>>>> END >>>>>> END >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>The connection string is right as I'm using it from gdal: >>>>>> >>>>>> >>>>>>gis at mapserver:~$ ogrinfo >>>>OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE >>>>>>INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' >>>>>> using driver `OCI' successful. >>>>>>1: CA_WILDFIRE >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>any ideas ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>-- >>>>>>Sebastian E. Ovide >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>>>-- >>>>Sebastian E. Ovide >>>> >>>> >>>> >>>> >>>> >> >> >>-- >>Sebastian E. Ovide >> >> >> >> >> > > >-- >Sebastian E. Ovide > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Thu Sep 30 04:24:21 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 30 Sep 2010 07:24:21 -0400 Subject: [mapserver-users] Problems labelling using Halo option In-Reply-To: <224DBDAF88A6AC47BD22432815351BE0082ADB84@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE0082ADB84@nekaposta1> Message-ID: <4CA47365.2040608@dmsolutions.ca> Hi there, Is the sld xml you are using valid? Grabbing it from this e-mail, It seems to not validate (several tags). It might just a copy paste but make sure of that. You can aslo set your map in debug mode ( DEBUG 5 for example) and check your logs to see if the xml was parsed properly and if that is the case you should also be able a tmp file of your map file after SLD was applied regards, On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote: > Hi list, > > I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code: > > > vinedos > > > > > > provincia1 > municipio43 > poligono4 > parcela880 > recinto1 > > > > > #000000 > 2 > 5 5 5 5 > > > > > > times > 18 > bold > > > > 0.50.5 > > > > > > 2 > > > #FFFFFF > 0.85 > > > > #000000 > 0.65 > > > > > > > > But when I receive the image the Halo is not applied (see attached file). My mapfile is as follows: > > NAME "WMSSERVER" > > STATUS ON > EXTENT 460000 4710000 610000 4820000 # Euskadi > SHAPEPATH "extra/shapes/" > FONTSET "extra/fonts/fonts.txt" > SYMBOLSET "extra/symbols/symbols.sym" > > > IMAGETYPE "image/png; mode=24bit" > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > END > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END > IMAGECOLOR 255 255 255 > UNITS METERS > > DEBUG ON > CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log" > DEBUG 5 > > > WEB > IMAGEPATH "C:/ms4w/Apache/htdocs/ogcservices/tmp/" > IMAGEURL "tmp/" > METADATA > "wms_name" "IKT WMS Server" > "wms_title" "Servidor WMS IKT - Impresiones Lotes" > "wms_onlineresource" "http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map&" > "wms_srs" "EPSG:23030 EPSG:4326" > "wms_transparent" "true" > "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las impresiones por lotes." > "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" > "wms_feature_info_mime_type" "application/vnd.ogc.gml" > "labelcache_map_edge_buffer" "-10" > END > END > > PROJECTION > "init=epsg:23030" > END > > LAYER > STATUS ON > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=1111 dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432" > NAME "vinedos" > > PROJECTION > "init=epsg:23030" > END > DUMP TRUE > TYPE POLYGON > METADATA > "wms_title" "vinedos" > "wms_srs" "EPSG:23030" > "wms_name" "vinedos" > "wms_server_version" "1.1.1" > "wms_format" "image/gif" > "wms_transparent" "true" > "wms_extent" "470000 4700000 610000 4820000" > "gml_include_items" "all" > END > #Sentencia SQL para obtener los datos > DATA "the_geom FROM vinedos using unique gid using SRID=23030" > > CLASS > NAME "Vinedos" > STYLE > SYMBOL 'dashed1' > OUTLINECOLOR 0 0 0 > END > TEMPLATE "ttt_query.html" > END > > PROCESSING "LABEL_NO_CLIP=ON" > END > > END > > And my font file: > > sans Vera.ttf > esri-130 esri_130.ttf > times times.ttf > times-bold timesbd.ttf > arial arial.ttf > > No error messages are received. > > Any ideas?? > > Thanks. > > Un saludo, > > ?????????????????????????????????????????????????????????????????????????????????? > > David Alda Fern?ndez de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad > > IKT > Granja Modelo s/n ? 01192 ? Arkaute (Araba) > > ?????????????????????????????????????????????????????????????????????????????????? > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ?????????????????????????????????????????????????????????????????????????????????? > email: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????????????????????????? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dalda at ikt.es Thu Sep 30 04:43:18 2010 From: dalda at ikt.es (David Alda Fernandez de Lezea) Date: Thu, 30 Sep 2010 13:43:18 +0200 Subject: [mapserver-users] Problems labelling using Halo option Message-ID: <224DBDAF88A6AC47BD22432815351BE0082ADCF2@nekaposta1> Assefa, Yes, it's valid. It works, but not with desired behaviour. It draws the polygons with the labels but without the Halo effect. I forgot to put xml headers in the previous email. I also forgot to mention that if I put Verdana for example, and Verdana does not exist in my fontset, it does the labelling properly (including Halo), but it's like if mapserver gets some default values, because the size has changed and even though I change it in th e SLD, the size keeps the same. WMS Log [Thu Sep 30 13:39:53 2010].513000 CGI Request 1 on process 256 [Thu Sep 30 13:39:53 2010].685000 msApplySLD(): Map file after SLD was applied C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map[Thu Sep 30 13:39:53 2010].826000 msDrawRasterLayerLow(orto0): entering. [Thu Sep 30 13:40:02 2010].216000 msDrawMap(): Layer 4 (orto0), 8.390s [Thu Sep 30 13:40:03 2010].606000 msDrawMap(): Layer 0 (vinedos_sigpac), 1.390s [Thu Sep 30 13:40:04 2010].122000 msDrawMap(): Layer 3 (vinedos_disolve_bn), 0.516s [Thu Sep 30 13:40:04 2010].513000 msDrawMap(): Layer 2 (vinedos_disolve), 0.391s [Thu Sep 30 13:40:05 2010].919000 msDrawMap(): Layer 1 (vinedos), 1.406s [Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Layer 7 (vinedos_parcelas), 1.187s [Thu Sep 30 13:40:07 2010].106000 msDrawLabelCache(): labelcache_map_edge_buffer = -10 [Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Drawing Label Cache, 0.000s [Thu Sep 30 13:40:07 2010].106000 msDrawMap() total time: 13.343s [Thu Sep 30 13:40:08 2010].606000 msSaveImage() total time: 1.500s [Thu Sep 30 13:40:08 2010].606000 mapserv request processing time (msLoadMap not incl.): 15.093s [Thu Sep 30 13:40:08 2010].637000 msFreeMap(): freeing map at 015C6820. Thanks. ________________________________ De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Enviado el: jueves, 30 de septiembre de 2010 13:24 Para: David Alda Fernandez de Lezea CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Problems labelling using Halo option Hi there, Is the sld xml you are using valid? Grabbing it from this e-mail, It seems to not validate (several tags). It might just a copy paste but make sure of that. You can aslo set your map in debug mode ( DEBUG 5 for example) and check your logs to see if the xml was parsed properly and if that is the case you should also be able a tmp file of your map file after SLD was applied regards, On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote: Hi list, I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code: vinedos provincia1 municipio43 poligono4 parcela880 recinto1 #000000 2 5 5 5 5 times 18 bold 0.50.5 2 #FFFFFF 0.85 #000000 0.65 But when I receive the image the Halo is not applied (see attached file). My mapfile is as follows: NAME "WMSSERVER" STATUS ON EXTENT 460000 4710000 610000 4820000 # Euskadi SHAPEPATH "extra/shapes/" FONTSET "extra/fonts/fonts.txt" SYMBOLSET "extra/symbols/symbols.sym" IMAGETYPE "image/png; mode=24bit" OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "TRANSPARENT=ON" FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END IMAGECOLOR 255 255 255 UNITS METERS DEBUG ON CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log" DEBUG 5 WEB IMAGEPATH "C:/ms4w/Apache/htdocs/ogcservices/tmp/" IMAGEURL "tmp/" METADATA "wms_name" "IKT WMS Server" "wms_title" "Servidor WMS IKT - Impresiones Lotes" "wms_onlineresource" "http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map&" "wms_srs" "EPSG:23030 EPSG:4326" "wms_transparent" "true" "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las impresiones por lotes." "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "labelcache_map_edge_buffer" "-10" END END PROJECTION "init=epsg:23030" END LAYER STATUS ON CONNECTIONTYPE postgis CONNECTION "user=postgres password=1111 dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432" NAME "vinedos" PROJECTION "init=epsg:23030" END DUMP TRUE TYPE POLYGON METADATA "wms_title" "vinedos" "wms_srs" "EPSG:23030" "wms_name" "vinedos" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_transparent" "true" "wms_extent" "470000 4700000 610000 4820000" "gml_include_items" "all" END #Sentencia SQL para obtener los datos DATA "the_geom FROM vinedos using unique gid using SRID=23030" CLASS NAME "Vinedos" STYLE SYMBOL 'dashed1' OUTLINECOLOR 0 0 0 END TEMPLATE "ttt_query.html" END PROCESSING "LABEL_NO_CLIP=ON" END END And my font file: sans Vera.ttf esri-130 esri_130.ttf times times.ttf times-bold timesbd.ttf arial arial.ttf No error messages are received. Any ideas?? Thanks. Un saludo, ?????????????????????????????????????????????????????????????????????????????????? David Alda Fern?ndez de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n ? 01192 ? Arkaute (Araba) ?????????????????????????????????????????????????????????????????????????????????? Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ?????????????????????????????????????????????????????????????????????????????????? email: dalda at ikt.es web: www.ikt.es ?????????????????????????????????????????????????????????????????????????????????? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Bob.Basques at ci.stpaul.mn.us Wed Sep 29 08:52:08 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 29 Sep 2010 10:52:08 -0500 Subject: [mapserver-users] Expressions In-Reply-To: References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> Message-ID: <4CA31A57.163B.00A8.0@ci.stpaul.mn.us> Don't know if it matters, but you have a LASTWEEK and LASTWEEKS in there. Should they both be one or the other? bobb >>> Jay Kapalczynski wrote: I thank you for your response....greatly appreciated as I cannot figure this out.... I know that I have 4 features in the dataset that have a value of 20100916 that?s 13 days ago....so with the expression below those 4 or 5 features should show up....but nothing shows up IncidentDa is the field (long integer) Param type is specifying YYYYMMDD my data has values of 20100916 (13 days) I have no idea what could be wrong?Thank you all for your help?. .XML file ./maple_grove_datasets/police/Burglaries.map .MAP file CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < '%LASTWEEK%') STYLE COLOR 0 100 50 SYMBOL "bike" SIZE 12 END END ======================================= BUT if I simply place this in there I get all the points?so something is weird here because most of the dates are older than 7 days. CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTWEEK%?) STYLE COLOR 0 0 0 SYMBOL "tent" SIZE 12 END #END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, September 29, 2010 8:19 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions In EXPRESSIONS you can evaluate any of the following: 1. Regular expressions treating the value as a string 2. numeric expressions using booleans like ==,<,>,<=,>= 3. string expressions like ==, !=, and I think strlen() So if you converted you dates into a format like YYYYMMDD then it would be easy to use a numeric expression like: EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') or EXPRESSION ('[dateValues]' > '%STARTDATE%') where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would be in the same format and allow you to extract record betwee any two start and end dates. Or you might be able to figure out a complex regular expression the represents the last two weeks like: EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') I'm not sure what you would need for the regular expression. -Steve W On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > Anyone have anymore ideas about this?. > > I have a string field with values > > And the code below. The expression does not seem to be running?if I only > use LASTTWOWEEKS it still draws all the points?.and I know there are > values in there from 2008 > > Thanks > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > Kapalczynski > *Sent:* Tuesday, September 21, 2010 9:51 AM > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] Expressions > > My major question is can I do this with a String/text field? Its the > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > 21^st 2 010), otherwise the 0 will get remo> In this example I eliminated two expressions and focused on one > Expression to see if it is working. > > *_I kept this_* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > Now in my data I have these values (below), although every symbol was > displayed in the map > > NOTE THIS IS A TEXT FIELD > > 081204, 081225,090118 > > These values (above) for the Year, Month, Day format specified in the > map source are clearly less than the ?last two weeks?, Where as they are > older than the last 14 days?.so none of them should show up, but they do > > Any thoughts > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob Basques > *Sent:* Friday, September 17, 2010 9:25 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Expressions > > A first stab at seeing more than one class, might be to try and switch > them around order wise, one filter may be overwriting the other for example. > > bobb > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > I am using GeoMoose but feel this is more a question for Map Server. > > I am trying to sort my points by dates using the code below?.I think > that I can do this but not sure > > Is this a viable format ?2Y%2M%2D? ? > > As for the field in the shapefile?If I use an integer it removes the 0 > from the 092110, (sept 21^st 2010) > > If I use a date then there are ?/? ? 9/21/10 > > The only way I can see this happening is using a text field with retains > the 0 in 092110 > > When I use the textfield ?dateValues? as seen below I can get the stars > to draw but only the LASTWEEK?for some reason the LASTTWOWEEKS does not > show and I know that I have a few records with dates in the last 14 days? > > Thoughts? > > THANKS?.all your help is very appreciated?. > > Main .xml file > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > .map file > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > STYLE > > COLOR 0 0 0 > > SYMBOL "star" > > SIZE 12 > > END > > END > > CLASS > > NAME 'Last Two Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "star" > > SIZE 12 > > 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/mhttp://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Wed Sep 29 08:54:28 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 29 Sep 2010 10:54:28 -0500 Subject: [mapserver-users] Expressions In-Reply-To: <4CA31A57.163B.00A8.0@ci.stpaul.mn.us> References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> <4CA31A57.163B.00A8.0@ci.stpaul.mn.us> Message-ID: Thanks bob?..I did see that but made sure the expression followed suit EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < '%LASTWEEK%') From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] Sent: Wednesday, September 29, 2010 10:52 AM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; 'Stephen Woodbridge' Subject: RE: [mapserver-users] Expressions Don't know if it matters, but you have a LASTWEEK and LASTWEEKS in there. Should they both be one or the other? bobb >>> Jay Kapalczynski wrote: I thank you for your response....greatly appreciated as I cannot figure this out.... I know that I have 4 features in the dataset that have a value of 20100916 that?s 13 days ago....so with the expression below those 4 or 5 features should show up....but nothing shows up IncidentDa is the field (long integer) Param type is specifying YYYYMMDD my data has values of 20100916 (13 days) I have no idea what could be wrong?Thank you all for your help?. .XML file ./maple_grove_datasets/police/Burglaries.map .MAP file CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < '%LASTWEEK%') STYLE COLOR 0 100 50 SYMBOL "bike" SIZE 12 END END ======================================= BUT if I simply place this in there I get all the points?so something is weird here because most of the dates are older than 7 days. CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTWEEK%?) STYLE COLOR 0 0 0 SYMBOL "tent" SIZE 12 END #END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, September 29, 2010 8:19 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions In EXPRESSIONS you can evaluate any of the following: 1. Regular expressions treating the value as a string 2. numeric expressions using booleans like ==,<,>,<=,>= 3. string expressions like ==, !=, and I think strlen() So if you converted you dates into a format like YYYYMMDD then it would be easy to use a numeric expression like: EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') or EXPRESSION ('[dateValues]' > '%STARTDATE%') where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would be in the same format and allow you to extract record betwee any two start and end dates. Or you might be able to figure out a complex regular expression the represents the last two weeks like: EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') I'm not sure what you would need for the regular expression. -Steve W On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > Anyone have anymore ideas about this?. > > I have a string field with values > > And the code below. The expression does not seem to be running?if I only > use LASTTWOWEEKS it still draws all the points?.and I know there are > values in there from 2008 > > Thanks > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > Kapalczynski > *Sent:* Tuesday, September 21, 2010 9:51 AM > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] Expressions > > My major question is can I do this with a String/text field? Its the > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > 21^st 2010), otherwise the 0 will get removed in a numeric field > > Can I use the format Year, Month, Day? Or do I have to use Month, Day, Year? > > In this example I eliminated two expressions and focused on one > Expression to see if it is working. > > *_I kept this_* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > Now in my data I have these values (below), although every symbol was > displayed in the map > > NOTE THIS IS A TEXT FIELD > > 081204, 081225,090118 > > These values (above) for the Year, Month, Day format specified in the > map source are clearly less than the ?last two weeks?, Where as they are > older than the last 14 days?.so none of them should show up, but they do > > Any thoughts > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob Basques > *Sent:* Friday, September 17, 2010 9:25 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Expressions > > A first stab at seeing more than one class, might be to try and switch > them around order wise, one filter may be overwriting the other for example. > > bobb > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > I am using GeoMoose but feel this is more a question for Map Server. > > I am trying to sort my points by dates using the code below?.I think > that I can do this but not sure > > Is this a viable format ?2Y%2M%2D? ? > > As for the field in the shapefile?If I use an integer it removes the 0 > from the 092110, (sept 21^st 2010) > > If I use a date then there are ?/? ? 9/21/10 > > The only way I can see this happening is using a text field with retains > the 0 in 092110 > > When I use the textfield ?dateValues? as seen below I can get the stars > to draw but only the LASTWEEK?for some reason the LASTTWOWEEKS does not > show and I know that I have a few records with dates in the last 14 days? > > Thoughts? > > THANKS?.all your help is very appreciated?. > > Main .xml file > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > .map file > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > STYLE > > COLOR 0 0 0 > > SYMBOL "star" > > SIZE 12 > > END > > END > > CLASS > > NAME 'Last Two Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "star" > > SIZE 12 > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Wed Sep 29 09:10:13 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 29 Sep 2010 11:10:13 -0500 Subject: [mapserver-users] Expressions (Couple of Firebug how-to's) In-Reply-To: References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> Message-ID: <4CA31E95.163B.00A8.0@ci.stpaul.mn.us> Install: http://www.youtube.com/watch?v=r6F-D61S-h4 ( http://www.youtube.com/watch?v=r6F-D61S-h4 ) Usage examples: http://www.youtube.com/watch?v=W4jXAaEMp2M ( http://www.youtube.com/watch?v=W4jXAaEMp2M ) http://www.youtube.com/watch?v=FsX6qwQqGgQ ( http://www.youtube.com/watch?v=FsX6qwQqGgQ ) There are plenty more out there via a google search . . . bobb >>> David William Bitner wrote: Jay, I am not exactly sure how the params work in GeoMoose. One tip in general to be able to isolate the problem to either GeoMoose or MapServer is to look at the actual requests that are being made to MapServer. One of the easiest ways to do this is to either use the FireBug extension in FireFox or the Javascript Console in Chrome. With this take a look at the URL that is being sent to MapServer and see what is in the parameter &LASTWEEK=. David On Wed, Sep 29, 2010 at 10:49 AM, Jay Kapalczynski wrote: I thank you for your response....greatly appreciated as I cannot figure this out.... I know that I have 4 features in the dataset that have a value of 20100916 that?s 13 days ago....so with the expression below those 4 or 5 features should show up....but nothing shows up IncidentDa is the field (long integer) Param type is specifying YYYYMMDD my data has values of 20100916 (13 days) I have no idea what could be wrong?Thank you all for your help?. .XML file ./maple_grove_datasets/police/Burglaries.map .MAP file CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < '%LASTWEEK%') STYLE COLOR 0 100 50 SYMBOL "bike" SIZE 12 END END ======================================= BUT if I simply place this in there I get all the points?so something is weird here because most of the dates are older than 7 days. CLASS NAME 'Last Weeks' EXPRESSION ('[IncidentDa]' > '%LASTWEEK%?) STYLE COLOR 0 0 0 SYMBOL "tent" SIZE 12 END #END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, September 29, 2010 8:19 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions In EXPRESSIONS you can evaluate any of the following: 1. Regular expressions treating the value as a string 2. numeric expressions using booleans like ==,<,>,<=,>= 3. string expressions like ==, !=, and I think strlen() So if you converted you dates into a format like YYYYMMDD then it would be easy to use a numeric expression like: EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') or EXPRESSION ('[dateValues]' > '%STARTDATE%') where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would be in the same format and allow you to extract record betwee any two start and end dates. Or you might be able to figure out a complex regular expression the represents the last two weeks like: EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') I'm not sure what you would need for the regular expression. -Steve W On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > Anyone have anymore ideas about this?. > > I have a string field with values > > And the code below. The expression does not seem to be running?if I only > use LA> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > Kapalczynski > *Sent:* Tuesday, September 21, 2010 9:51 AM > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] Expressions > > My major question is can I do this with a String/text field? Its the > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > 21^st 2010), otherwise the 0 will get removed in a numeric field > > Can I use the format Year, Month, Day? Or do I have to use Month, Day, Year? > > In this example I eliminated two expressions and focused on one > Expression to see if it is working. > > *_I kept this_* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > Now in my data I have these values (below), although every symbol was > displayed in the map > > NOTE THIS IS A TEXT FIELD > > 081204, 081225,090118 > > These values (above) for the Year, Month, Day format specified in the > map source are clearly less than the ?last two weeks?, Where as they are > older than the last 14 days?.so none of them should show up, but they do > > Any thoughts > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob Basques > *Sent:* Friday, September 17, 2010 9:25 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Expressions > > A first stab at seeing more than one class, might be to try and switch > them around order wise, one filter may be overwriting the other for example. > > bobb > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > I am using GeoMoose but feel this is more a question for Map Server. > > I am trying to sort my points by dates using the code below?.I think > that I can do this but not sure > > Is this a viable format ?2Y%2M%2D? ? > > As for the field in the shapefile?If I use an integer it removes the 0 > from the 092110, (sept 21^st 2010) > > If I use a date then there are ?/? ? 9/21/10 > > The only way I can see this happening is using a text field with retains > the 0 in 092110 > > When I use the textfield ?dateValues? as seen below I can get the stars > to draw but only the LASTWEEK?for some reason the LASTTWOWEEKS does not > show and I know that I have a few records with dates in the last 14 days? > > Thoughts? > > THANKS?.all your help is very appreciated?. > > Main .xml file > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > .map file > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > STYLE > > COLOR 0 0 0 > > SYMBOL "star" > > SIZE 12 > > END > > END > > CLASS > > NAME 'Last Two Weeks' > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > STYLE > > COLOR 0 100 50 > > 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 -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Wed Sep 29 12:12:50 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 29 Sep 2010 14:12:50 -0500 Subject: [mapserver-users] Expressions In-Reply-To: <4CA37C79.80209@swoodbridge.com> References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> <4CA37C79.80209@swoodbridge.com> Message-ID: I changed the format to and using another field ('GEO_TIME' - still numeric) Instead of: This worked.... EXPRESSION ([GEO_TIME] > 100916) THIS DRAWS THE CORRECT 5 POINTS ONLY EXPRESSION ([GEO_TIME] > 090110) THIS DRAWS ALL THE POINTS, WHICH IS CORRECT... all are > than this date I then tried WITH NO SUCCESS EXPRESSION ([GEO_TIME] > '%LASTTWOWEEKS%') nothing EXPRESSION ([GEO_TIME] > %LASTTWOWEEKS%) nothing EXPRESSION ([GEO_TIME] > LASTTWOWEEKS) nothing EXPRESSION ('[GEO_TIME]' > '%LASTTWOWEEKS%') THIS DRAWS ALL THE POINTS EXPRESSION ('[GEO_TIME]' > %LASTTWOWEEKS%) nothing EXPRESSION ('[GEO_TIME]' > LASTTWOWEEKS) nothing The crazy thing is that I have this working on GEOMOOSE v1.6 on an XP 32 bit box....SAME CODE, SAME DATASET..SOMETHING WITH GEOMOOSE 2????? With something like this EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[GEO_TIME]' > '%LASTWEEK%') -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Wednesday, September 29, 2010 12:51 PM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions First lets get rid of the parameter substitution to make sure we have a syntax correct. So in your mapfile try: EXPRESSION ([IncidentDa] > 20100816) I set this to Aug 16th to see if you can pull any records. Also because this is numeric, I removed the quotes. You can also try it with quotes to see what works. If this works then try: EXPRESSION ([IncidentDa] > %LASTTWOWEEKS%) Again without the quotes or with depending on what worked. -Steve W On 9/29/2010 11:49 AM, Jay Kapalczynski wrote: > I thank you for your response....greatly appreciated as I cannot figure > this out.... > > I know that I have 4 features in the dataset that have a value of > 20100916 that's 13 days ago....so with the expression below those 4 or 5 > features should show up....but nothing shows up > > IncidentDa is the field (long integer) > > Param type is specifying YYYYMMDD my data has values of 20100916 (13 days) > > I have no idea what could be wrong...Thank you all for your help.... > > *.XML file* > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > * format="%4Y%2M%2D" />* > > * * > > > > > > > > *.MAP file* > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < > '%LASTWEEK%') > > STYLE > > COLOR 0 100 50 > > SYMBOL "bike" > > SIZE 12 > > END > > END > > ======================================= > > BUT if I simply place this in there I get all the points...so something is > weird here because most of the dates are older than 7 days. > > CLASS > > NAME 'Last Weeks' > > EXPRESSION ('[IncidentDa]' > '%LASTWEEK%') > > STYLE > > COLOR 0 0 0 > > SYMBOL "tent" > > SIZE 12 > > END > > #END > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Wednesday, September 29, 2010 8:19 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Expressions > > In EXPRESSIONS you can evaluate any of the following: > > 1. Regular expressions treating the value as a string > > 2. numeric expressions using booleans like ==,<,>,<=,>= > > 3. string expressions like ==, !=, and I think strlen() > > So if you converted you dates into a format like YYYYMMDD then it would > > be easy to use a numeric expression like: > > EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < '%ENDDATE%') > > or > > EXPRESSION ('[dateValues]' > '%STARTDATE%') > > where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would > > be in the same format and allow you to extract record betwee any two > > start and end dates. > > Or you might be able to figure out a complex regular expression the > > represents the last two weeks like: > > EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') > > I'm not sure what you would need for the regular expression. > > -Steve W > > On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > > > Anyone have anymore ideas about this.... > > > > > > I have a string field with values > > > > > > And the code below. The expression does not seem to be running...if I only > > > use LASTTWOWEEKS it still draws all the points....and I know there are > > > values in there from 2008 > > > > > > Thanks > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > > > Kapalczynski > > > *Sent:* Tuesday, September 21, 2010 9:51 AM > > > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > > > *Subject:* RE: [mapserver-users] Expressions > > > > > > My major question is can I do this with a String/text field? Its the > > > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 (Sept > > > 21^st 2010), otherwise the 0 will get removed in a numeric field > > > > > > Can I use the format Year, Month, Day? Or do I have to use Month, > Day, Year? > > > > > > In this example I eliminated two expressions and focused on one > > > Expression to see if it is working. > > > > > > *_I kept this_* > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > STYLE > > > > > > COLOR 0 100 50 > > > > > > SYMBOL "bike" > > > > > > SIZE 12 > > > > > > END > > > > > > END > > > > > > Now in my data I have these values (below), although every symbol was > > > displayed in the map > > > > > > NOTE THIS IS A TEXT FIELD > > > > > > 081204, 081225,090118 > > > > > > These values (above) for the Year, Month, Day format specified in the > > > map source are clearly less than the "last two weeks", Where as they are > > > older than the last 14 days....so none of them should show up, but they do > > > > > > Any thoughts > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob > Basques > > > *Sent:* Friday, September 17, 2010 9:25 PM > > > *To:* mapserver-users at lists.osgeo.org > > > *Subject:* Re: [mapserver-users] Expressions > > > > > > A first stab at seeing more than one class, might be to try and switch > > > them around order wise, one filter may be overwriting the other for > example. > > > > > > bobb > > > > > > > > > > > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > > > > > I am using GeoMoose but feel this is more a question for Map Server. > > > > > > I am trying to sort my points by dates using the code below....I think > > > that I can do this but not sure > > > > > > Is this a viable format "2Y%2M%2D" ? > > > > > > As for the field in the shapefile...If I use an integer it removes the 0 > > > from the 092110, (sept 21^st 2010) > > > > > > If I use a date then there are "/" ... 9/21/10 > > > > > > The only way I can see this happening is using a text field with retains > > > the 0 in 092110 > > > > > > When I use the textfield "dateValues" as seen below I can get the stars > > > to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not > > > show and I know that I have a few records with dates in the last 14 days... > > > > > > Thoughts? > > > > > > THANKS....all your help is very appreciated.... > > > > > > Main .xml file > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > .map file > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > > > > > STYLE > > > > > > COLOR 0 0 0 > > > > > > SYMBOL "star" > > > > > > SIZE 12 > > > > > > END > > > > > > END > > > > > > CLASS > > > > > > NAME 'Last Two Weeks' > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > STYLE > > > > > > COLOR 0 100 50 > > > > > > SYMBOL "star" > > > > > > SIZE 12 > > > > > > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Wed Sep 29 12:36:56 2010 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 29 Sep 2010 14:36:56 -0500 Subject: [mapserver-users] Expressions In-Reply-To: <4CA391CA.3030106@swoodbridge.com> References: <4C9422F6.5020909@gritechnologies.com> <4CA33CBF.6040406@swoodbridge.com> <4CA37C79.80209@swoodbridge.com> <4CA391CA.3030106@swoodbridge.com> Message-ID: I have a mapsource in an .xml file that calls the map file ./maple_grove_datasets/police/Burglaries.map In the map file the EXPRESSION is handled That what you are talking about? -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Wednesday, September 29, 2010 2:22 PM To: Jay Kapalczynski Cc: 'Bob Basques'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Expressions How are you calling mapserver directly? You need to do something like: http://host/cgi-bin/mapserv?.....&LASTTWOWEEKS=100916 -Steve On 9/29/2010 3:12 PM, Jay Kapalczynski wrote: > I changed the format to and using another field ('GEO_TIME' - still numeric) > > > > Instead of: > > > > This worked.... > > EXPRESSION ([GEO_TIME] > 100916) THIS DRAWS THE CORRECT 5 POINTS ONLY > > EXPRESSION ([GEO_TIME] > 090110) THIS DRAWS ALL THE POINTS, WHICH IS > CORRECT... all are > than this date > > I then tried WITH NO SUCCESS > > EXPRESSION ([GEO_TIME] > '%LASTTWOWEEKS%') nothing > > EXPRESSION ([GEO_TIME] > %LASTTWOWEEKS%) nothing > > EXPRESSION ([GEO_TIME] > LASTTWOWEEKS) nothing > > EXPRESSION ('[GEO_TIME]' > '%LASTTWOWEEKS%') THIS DRAWS ALL THE POINTS > > EXPRESSION ('[GEO_TIME]' > %LASTTWOWEEKS%) nothing > > EXPRESSION ('[GEO_TIME]' > LASTTWOWEEKS) nothing > > * * > > *_The crazy thing is that I have this working on GEOMOOSE v1.6 on an XP > 32 bit box....SAME CODE, SAME DATASET..SOMETHING WITH GEOMOOSE 2?????_* > > *With something like this* > > EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[GEO_TIME]' > '%LASTWEEK%') > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Wednesday, September 29, 2010 12:51 PM > To: Jay Kapalczynski > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Expressions > > First lets get rid of the parameter substitution to make sure we have a > > syntax correct. So in your mapfile try: > > EXPRESSION ([IncidentDa] > 20100816) > > I set this to Aug 16th to see if you can pull any records. Also because > > this is numeric, I removed the quotes. You can also try it with quotes > > to see what works. > > If this works then try: > > EXPRESSION ([IncidentDa] > %LASTTWOWEEKS%) > > Again without the quotes or with depending on what worked. > > -Steve W > > On 9/29/2010 11:49 AM, Jay Kapalczynski wrote: > > > I thank you for your response....greatly appreciated as I cannot figure > > > this out.... > > > > > > I know that I have 4 features in the dataset that have a value of > > > 20100916 that's 13 days ago....so with the expression below those 4 or 5 > > > features should show up....but nothing shows up > > > > > > IncidentDa is the field (long integer) > > > > > > Param type is specifying YYYYMMDD my data has values of 20100916 (13 > days) > > > > > > I have no idea what could be wrong...Thank you all for your help.... > > > > > > *.XML file* > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > > > > > * > > format="%4Y%2M%2D" />* > > > > > > * * > > > > > > > > > > > > > > > > > > > > > > > > *.MAP file* > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[IncidentDa]' > '%LASTTWOWEEKS%' && '[IncidentDa]' < > > > '%LASTWEEK%') > > > > > > STYLE > > > > > > COLOR 0 100 50 > > > > > > SYMBOL "bike" > > > > > > SIZE 12 > > > > > > END > > > > > > END > > > > > > ======================================= > > > > > > BUT if I simply place this in there I get all the points...so something is > > > weird here because most of the dates are older than 7 days. > > > > > > CLASS > > > > > > NAME 'Last Weeks' > > > > > > EXPRESSION ('[IncidentDa]' > '%LASTWEEK%') > > > > > > STYLE > > > > > > COLOR 0 0 0 > > > > > > SYMBOL "tent" > > > > > > SIZE 12 > > > > > > END > > > > > > #END > > > > > > -----Original Message----- > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > > > Woodbridge > > > Sent: Wednesday, September 29, 2010 8:19 AM > > > To: mapserver-users at lists.osgeo.org > > > Subject: Re: [mapserver-users] Expressions > > > > > > In EXPRESSIONS you can evaluate any of the following: > > > > > > 1. Regular expressions treating the value as a string > > > > > > 2. numeric expressions using booleans like ==,<,>,<=,>= > > > > > > 3. string expressions like ==, !=, and I think strlen() > > > > > > So if you converted you dates into a format like YYYYMMDD then it would > > > > > > be easy to use a numeric expression like: > > > > > > EXPRESSION ('[dateValues]' > '%STARTDATE%' && '[dateValues]' < > '%ENDDATE%') > > > > > > or > > > > > > EXPRESSION ('[dateValues]' > '%STARTDATE%') > > > > > > where STARTDATE is the YYYYMMDD value of two weeks ago and ENDDATE would > > > > > > be in the same format and allow you to extract record betwee any two > > > > > > start and end dates. > > > > > > Or you might be able to figure out a complex regular expression the > > > > > > represents the last two weeks like: > > > > > > EXPRESSION ('[dateValues]' =~ '/%LASTTWOWEEKS%/') > > > > > > I'm not sure what you would need for the regular expression. > > > > > > -Steve W > > > > > > On 9/28/2010 4:23 PM, Jay Kapalczynski wrote: > > > > > > > Anyone have anymore ideas about this.... > > > > > > > > > > > > > > I have a string field with values > > > > > > > > > > > > > > And the code below. The expression does not seem to be running...if I > only > > > > > > > use LASTTWOWEEKS it still draws all the points....and I know there are > > > > > > > values in there from 2008 > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jay > > > > > > > Kapalczynski > > > > > > > *Sent:* Tuesday, September 21, 2010 9:51 AM > > > > > > > *To:* 'Bob Basques'; mapserver-users at lists.osgeo.org > > > > > > > *Subject:* RE: [mapserver-users] Expressions > > > > > > > > > > > > > > My major question is can I do this with a String/text field? Its the > > > > > > > only way I can see keeping things in a %2Y%2M%2D format ex. 092110 > (Sept > > > > > > > 21^st 2010), otherwise the 0 will get removed in a numeric field > > > > > > > > > > > > > > Can I use the format Year, Month, Day? Or do I have to use Month, > > > Day, Year? > > > > > > > > > > > > > > In this example I eliminated two expressions and focused on one > > > > > > > Expression to see if it is working. > > > > > > > > > > > > > > *_I kept this_* > > > > > > > > > > > > > > > > > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *_In my map file I used _**_ONLY_**_ this_* > > > > > > > > > > > > > > CLASS > > > > > > > > > > > > > > NAME 'Last Weeks' > > > > > > > > > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > > > > > > > > > STYLE > > > > > > > > > > > > > > COLOR 0 100 50 > > > > > > > > > > > > > > SYMBOL "bike" > > > > > > > > > > > > > > SIZE 12 > > > > > > > > > > > > > > END > > > > > > > > > > > > > > END > > > > > > > > > > > > > > Now in my data I have these values (below), although every symbol was > > > > > > > displayed in the map > > > > > > > > > > > > > > NOTE THIS IS A TEXT FIELD > > > > > > > > > > > > > > 081204, 081225,090118 > > > > > > > > > > > > > > These values (above) for the Year, Month, Day format specified in the > > > > > > > map source are clearly less than the "last two weeks", Where as > they are > > > > > > > older than the last 14 days....so none of them should show up, but > they do > > > > > > > > > > > > > > Any thoughts > > > > > > > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org > > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Bob > > > Basques > > > > > > > *Sent:* Friday, September 17, 2010 9:25 PM > > > > > > > *To:* mapserver-users at lists.osgeo.org > > > > > > > *Subject:* Re: [mapserver-users] Expressions > > > > > > > > > > > > > > A first stab at seeing more than one class, might be to try and switch > > > > > > > them around order wise, one filter may be overwriting the other for > > > example. > > > > > > > > > > > > > > bobb > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 9/17/2010 8:20 AM, Jay Kapalczynski wrote: > > > > > > > > > > > > > > I am using GeoMoose but feel this is more a question for Map Server. > > > > > > > > > > > > > > I am trying to sort my points by dates using the code below....I think > > > > > > > that I can do this but not sure > > > > > > > > > > > > > > Is this a viable format "2Y%2M%2D" ? > > > > > > > > > > > > > > As for the field in the shapefile...If I use an integer it removes the 0 > > > > > > > from the 092110, (sept 21^st 2010) > > > > > > > > > > > > > > If I use a date then there are "/" ... 9/21/10 > > > > > > > > > > > > > > The only way I can see this happening is using a text field with > retains > > > > > > > the 0 in 092110 > > > > > > > > > > > > > > When I use the textfield "dateValues" as seen below I can get the stars > > > > > > > to draw but only the LASTWEEK...for some reason the LASTTWOWEEKS does not > > > > > > > show and I know that I have a few records with dates in the last 14 > days... > > > > > > > > > > > > > > Thoughts? > > > > > > > > > > > > > > THANKS....all your help is very appreciated.... > > > > > > > > > > > > > > Main .xml file > > > > > > > > > > > > > > > > > > > > > > > > > > > > ./maple_grove_datasets/police/Burglaries.map > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > format="%2Y%2M%2D" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > .map file > > > > > > > > > > > > > > CLASS > > > > > > > > > > > > > > NAME 'Last Weeks' > > > > > > > > > > > > > > EXPRESSION ('[dateValues]' > '%LASTWEEK%') > > > > > > > > > > > > > > STYLE > > > > > > > > > > > > > > COLOR 0 0 0 > > > > > > > > > > > > > > SYMBOL "star" > > > > > > > > > > > > > > SIZE 12 > > > > > > > > > > > > > > END > > > > > > > > > > > > > > END > > > > > > > > > > > > > > CLASS > > > > > > > > > > > > > > NAME 'Last Two Weeks' > > > > > > > > > > > > > > EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%') > > > > > > > > > > > > > > STYLE > > > > > > > > > > > > > > COLOR 0 100 50 > > > > > > > > > > > > > > SYMBOL "star" > > > > > > > > > > > > > > SIZE 12 > > > > > > > > > > > > > > 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 > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Thu Sep 30 05:21:25 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 30 Sep 2010 08:21:25 -0400 Subject: [mapserver-users] Problems labelling using Halo option In-Reply-To: <224DBDAF88A6AC47BD22432815351BE0082ADCF2@nekaposta1> References: <224DBDAF88A6AC47BD22432815351BE0082ADCF2@nekaposta1> Message-ID: <4CA480C5.8020706@dmsolutions.ca> Hi, Check the file C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map and the layer where the sld is applied, the label object should have the outlinecolor set if it worked properly. Is that the case? I am not sure I understand the font issue, but you can also see what font was set fir that label object. regards, On 30/09/2010 7:43 AM, David Alda Fernandez de Lezea wrote: > Assefa, > > Yes, it's valid. It works, but not with desired behaviour. It draws the polygons with the labels but without the Halo effect. > > I forgot to put xml headers in the previous email. > > > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > I also forgot to mention that if I putVerdana for example, and Verdana does not exist in my fontset, it does the labelling properly (including Halo), but it's like if mapserver gets some default values, because the size has changed and even though I change it in th e SLD, the size keeps the same. > > > > WMS Log > > [Thu Sep 30 13:39:53 2010].513000 CGI Request 1 on process 256 > [Thu Sep 30 13:39:53 2010].685000 msApplySLD(): Map file after SLD was applied C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map[Thu Sep 30 13:39:53 2010].826000 msDrawRasterLayerLow(orto0): entering. > [Thu Sep 30 13:40:02 2010].216000 msDrawMap(): Layer 4 (orto0), 8.390s > [Thu Sep 30 13:40:03 2010].606000 msDrawMap(): Layer 0 (vinedos_sigpac), 1.390s > [Thu Sep 30 13:40:04 2010].122000 msDrawMap(): Layer 3 (vinedos_disolve_bn), 0.516s > [Thu Sep 30 13:40:04 2010].513000 msDrawMap(): Layer 2 (vinedos_disolve), 0.391s > [Thu Sep 30 13:40:05 2010].919000 msDrawMap(): Layer 1 (vinedos), 1.406s > [Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Layer 7 (vinedos_parcelas), 1.187s > [Thu Sep 30 13:40:07 2010].106000 msDrawLabelCache(): labelcache_map_edge_buffer = -10 > [Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Drawing Label Cache, 0.000s > [Thu Sep 30 13:40:07 2010].106000 msDrawMap() total time: 13.343s > [Thu Sep 30 13:40:08 2010].606000 msSaveImage() total time: 1.500s > [Thu Sep 30 13:40:08 2010].606000 mapserv request processing time (msLoadMap not incl.): 15.093s > [Thu Sep 30 13:40:08 2010].637000 msFreeMap(): freeing map at 015C6820. > > Thanks. > > ________________________________ > > De: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] > Enviado el: jueves, 30 de septiembre de 2010 13:24 > Para: David Alda Fernandez de Lezea > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] Problems labelling using Halo option > > > Hi there, > > Is the sld xml you are using valid? Grabbing it from this e-mail, It seems to not validate (several tags). It might just a copy paste but make sure of that. > You can aslo set your map in debug mode ( DEBUG 5 for example) and check your logs to see if the xml was parsed properly and if that is the case you should also be able a tmp file of your map file after SLD was applied > > regards, > > > On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote: > > Hi list, > > I'm developing a program that generates some images from a WMS with a dynamic generated SLD. The problem is that I'm telling MapServer to generate some labels with Halo, to make them easy to read, using the following code: > > > vinedos > > > > > > provincia1 > municipio43 > poligono4 > parcela880 > recinto1 > > > > > #000000 > 2 > 5 5 5 5 > > > > > > times > 18 > bold > > > > 0.50.5 > > > > > > 2 > > > #FFFFFF > 0.85 > > > > #000000 > 0.65 > > > > > > > > But when I receive the image the Halo is not applied (see attached file). My mapfile is as follows: > > NAME "WMSSERVER" > > STATUS ON > EXTENT 460000 4710000 610000 4820000 # Euskadi > SHAPEPATH "extra/shapes/" > FONTSET "extra/fonts/fonts.txt" > SYMBOLSET "extra/symbols/symbols.sym" > > > IMAGETYPE "image/png; mode=24bit" > > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "TRANSPARENT=ON" > FORMATOPTION "INTERLACE=OFF" > END > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END > IMAGECOLOR 255 255 255 > UNITS METERS > > DEBUG ON > CONFIG "MS_ERRORFILE" "C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log" > DEBUG 5 > > > WEB > IMAGEPATH "C:/ms4w/Apache/htdocs/ogcservices/tmp/" > IMAGEURL "tmp/" > METADATA > "wms_name" "IKT WMS Server" > "wms_title" "Servidor WMS IKT - Impresiones Lotes" > "wms_onlineresource" "http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map&" > "wms_srs" "EPSG:23030 EPSG:4326" > "wms_transparent" "true" > "wms_abstract" "Servicio de mapas WMS de IKT Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las impresiones por lotes." > "wms_keywordlist" "IKT,Euskadi,Mapas Euskadi" > "wms_feature_info_mime_type" "application/vnd.ogc.gml" > "labelcache_map_edge_buffer" "-10" > END > END > > PROJECTION > "init=epsg:23030" > END > > LAYER > STATUS ON > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=1111 dbname=VITICOLA_IMPRESIONES host=192.168.1.161 port=5432" > NAME "vinedos" > > PROJECTION > "init=epsg:23030" > END > DUMP TRUE > TYPE POLYGON > METADATA > "wms_title" "vinedos" > "wms_srs" "EPSG:23030" > "wms_name" "vinedos" > "wms_server_version" "1.1.1" > "wms_format" "image/gif" > "wms_transparent" "true" > "wms_extent" "470000 4700000 610000 4820000" > "gml_include_items" "all" > END > #Sentencia SQL para obtener los datos > DATA "the_geom FROM vinedos using unique gid using SRID=23030" > > CLASS > NAME "Vinedos" > STYLE > SYMBOL 'dashed1' > OUTLINECOLOR 0 0 0 > END > TEMPLATE "ttt_query.html" > END > > PROCESSING "LABEL_NO_CLIP=ON" > END > > END > > And my font file: > > sans Vera.ttf > esri-130 esri_130.ttf > times times.ttf > times-bold timesbd.ttf > arial arial.ttf > > No error messages are received. > > Any ideas?? > > Thanks. > > Un saludo, > > ?????????????????????????????????????????????????????????????????????????????????? > > David Alda Fern?ndez de Lezea > Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad > > IKT > Granja Modelo s/n ? 01192 ? Arkaute (Araba) > > ?????????????????????????????????????????????????????????????????????????????????? > Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 > ?????????????????????????????????????????????????????????????????????????????????? > email: dalda at ikt.es web: www.ikt.es > ?????????????????????????????????????????????????????????????????????????????????? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ven.tammineni at gmail.com Thu Sep 30 05:49:45 2010 From: ven.tammineni at gmail.com (venkat) Date: Thu, 30 Sep 2010 18:19:45 +0530 Subject: [mapserver-users] How to get some part extents in polygon within complete polygon Message-ID: Dear All, How can I get certain part boundary extents from polygon.I am using below code to get full extents of the polygon. Code to get bounds extents :- shapeObj shape = layer.getFeature(shapeInd, -1); lab.Text = "Min X :" + shape.bounds.minx +","+"Max X :" + shape.bounds.maxx +"," + " Min Y :" + shape.bounds.maxy +","+ "Max Y :" + shape.bounds.maxy; Please anyone can guide me.I am waiting for your great response. Thanks and Regards, Ven -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Thu Sep 30 06:01:22 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 30 Sep 2010 14:01:22 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: <133436.29754.qm@web51404.mail.re2.yahoo.com> References: <89615.44098.qm@web51403.mail.re2.yahoo.com> <133436.29754.qm@web51404.mail.re2.yahoo.com> Message-ID: on the same machine, with the same data and same tns file it works fine with APACHE.... the problems is only with LIGHTTPD... it looks like "TNS_ADMIN" => "/home/gis/conf/" is ignored (in apache I've used SetEnv and PassEnv ??? On Thu, Sep 30, 2010 at 12:22 PM, Dan Little wrote: > Does shp2img work with your Mapfile? > > > *From:* Sebastian E. Ovide > *To:* Rahkonen Jukka > *Cc:* mapserver-users at lists.osgeo.org > *Sent:* Thu, September 30, 2010 4:47:30 AM > *Subject:* Re: [mapserver-users] lighttpd, TNS:could not resolve... > > the message says: > > ORA-12154: TNS:could not resolve the connect identifier specified in > > > so... does mean that gdal didn't get any name for the connection > ? > > > > On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide < > sebastian.ovide at gmail.com> wrote: > >> no luck... >> >> renamed servicename to capital.. so now connection name==service name... >> >> same problem... ogrinfo works, mapserver doesn't.... >> >> >> On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka < >> Jukka.Rahkonen at mmmtike.fi> wrote: >> >>> Hi, >>> >>> For me, sometimes with some Oracle user name from some computers SQL*Plus >>> does not understand if I am using the SERVICE_NAME. It you happen to have >>> the same situation you should be able to connect with the connection name, >>> which seems to be MFUATDB for you. >>> >>> Actually, the error message "TNS:could not resolve the connect >>> identifier specified" may mean that you should not use service name but the >>> connect identifier. Have a try and tell how it went. >>> >>> >>> -Jukka Rahkonen- >>> >>> >>> ------------------------------ >>> *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: >>> mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide >>> *L?hetetty:* 30. syyskuuta 2010 11:15 >>> *Vastaanottaja:* Dan Little >>> *Kopio:* mapserver-users at lists.osgeo.org >>> *Aihe:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >>> >>> yes. >>> >>> >>> gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora >>> -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora >>> gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' >>> MFUATDB = >>> (DESCRIPTION = >>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>> (CONNECT_DATA = >>> (SERVER = DEDICATED) >>> (SERVICE_NAME = mfuatdb) >>> ) >>> ) >>> >>> >>> On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: >>> >>>> Is tnsnames.ora accessible by the web-server user? (Check the >>>> permissions.) >>>> >>>> Is t >>>> *From:* Sebastian E. Ovide >>>> *To:* mapserver-users at lists.osgeo.org >>>> *Sent:* Wed, September 29, 2010 11:10:09 AM >>>> *Subject:* [mapserver-users] lighttpd, TNS:could not resolve... >>>> >>>> Hi All, >>>> >>>> I have installed MapServer on lighttpd + fastcgi. >>>> >>>> fastcgi.server = ( >>>> "/mapserver" => >>>> ( "localhost" => >>>> ( >>>> "socket" => "/tmp/mapserver-fastcgi.socket", >>>> "bin-path" => "/home/gis/bin/mapserv", >>>> "bin-environment" => >>>> ( >>>> "TNS_ADMIN" => "/home/gis/conf/" >>>> ), >>>> "max-procs" => 2, >>>> "check-local" => "disable" >>>> ) >>>> ) >>>> ) >>>> >>>> >>>> gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >>>> MFUATDB = >>>> (DESCRIPTION = >>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>> (CONNECT_DATA = >>>> (SERVER = DEDICATED) >>>> (SERVICE_NAME = mfuatdb) >>>> ) >>>> ) >>>> >>>> and I'm getting: >>>> >>>> msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. >>>> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >>>> `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified >>>> in >>>> >>>> from the logs: >>>> >>>> [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >>>> [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open >>>> failed for OGR connection in layer `TESTII'. >>>> ORA-12154: TNS:could not resolve the connect identifier specified >>>> in >>>> >>>> [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. >>>> Failed to draw layer named 'TESTII'. >>>> [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298. >>>> [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at >>>> 0xa0237a0. >>>> [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at >>>> 0xa024718. >>>> >>>> >>>> in mapserver: >>>> >>>> LAYER >>>> NAME TESTII >>>> TYPE POLYGON >>>> STATUS ON >>>> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" >>>> CONNECTIONTYPE OGR >>>> DATA "CA_WILDFIRE" >>>> PROJECTION >>>> "init=epsg:3857" >>>> END >>>> CLASS >>>> # NAME "local_shape" >>>> COLOR 0 0 255 >>>> OUTLINECOLOR 0 0 255 >>>> END >>>> END >>>> >>>> >>>> >>>> The connection string is right as I'm using it from gdal: >>>> >>>> gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb >>>> :CA_WILDFIRE >>>> INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' >>>> using driver `OCI' successful. >>>> 1: CA_WILDFIRE >>>> >>>> >>>> any ideas ? >>>> >>>> >>>> -- >>>> Sebastian E. Ovide >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Sebastian E. Ovide >>> >>> >>> >>> >>> >> >> >> -- >> Sebastian E. Ovide >> >> >> >> >> > > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Thu Sep 30 06:51:09 2010 From: danlittle at yahoo.com (Dan Little) Date: Thu, 30 Sep 2010 06:51:09 -0700 (PDT) Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: <89615.44098.qm@web51403.mail.re2.yahoo.com> <133436.29754.qm@web51404.mail.re2.yahoo.com> Message-ID: <651666.6260.qm@web51402.mail.re2.yahoo.com> I was starting to suspect MapServer is just no seeing the environment variables... Try this... write a wrapper script "mapserv.sh" #!/bin/bash TNS_ADMIN=/home/gis/conf /home/gis/bin/mapserv Then update your script to point to "mapserv.sh". > >From: Sebastian E. Ovide >To: Dan Little >Cc: Rahkonen Jukka ; mapserver-users at lists.osgeo.org >Sent: Thu, September 30, 2010 8:01:22 AM >Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve... > >on the same machine, with the same data and same tns file it works fine with >APACHE.... the problems is only with LIGHTTPD... it looks like "TNS_ADMIN" => >"/home/gis/conf/" is ignored (in apache I've used SetEnv and PassEnv > > >??? > > >On Thu, Sep 30, 2010 at 12:22 PM, Dan Little wrote: > >Does shp2img work with your Mapfile? >> >>> >>>From: Sebastian E. Ovide >>>To: Rahkonen Jukka >>>Cc: mapserver-users at lists.osgeo.org >>>Sent: Thu, September 30, 2010 4:47:30 AM >>>Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve... >>> >>> >>>the message says: >>> >>> >>>ORA-12154: TNS:could not resolve the connect identifier specified in >>> >>> >>>so... does mean that gdal didn't get any name for the connection ? >>> >>> >>> >>> >>> >>>On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide >>>wrote: >>> >>>no luck... >>>> >>>> >>>>renamed servicename to capital.. so now connection name==service name... >>>> >>>> >>>>same problem... ogrinfo works, mapserver doesn't.... >>>> >>>> >>>> >>>>On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka >>>>wrote: >>>> >>>>Hi, >>>>> >>>>>For me, sometimes with some Oracle user name from some computers SQL*Plus does >>>>>not understand if I am using the SERVICE_NAME. It you happen to have the same >>>>>situation you should be able to connect with the connection name, which seems >>>>>to be MFUATDB for you. >>>>> >>>>>Actually, the error message "TNS:could not resolve the connect identifier >>>>>specified" may mean that you should not use service name but the connect >>>>>identifier. Have a try and tell how it went. >>>>> >>>>> >>>>>-Jukka Rahkonen- >>>>> >>>>> >>>>> ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide >>>>>>L?hetetty: 30. syyskuuta 2010 11:15 >>>>>>Vastaanottaja: Dan Little >>>>>>Kopio: mapserver-users at lists.osgeo.org >>>>>>Aihe: Re: [mapserver-users] lighttpd, TNS:could not resolve... >>>>>> >>>>>> >>>>>>yes. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora >>>>>>-rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora >>>>>>gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' >>>>>>MFUATDB = >>>>>> (DESCRIPTION = >>>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>>>> (CONNECT_DATA = >>>>>> (SERVER = DEDICATED) >>>>>> (SERVICE_NAME = mfuatdb) >>>>>> ) >>>>>> ) >>>>>> >>>>>> >>>>>> >>>>>>On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: >>>>>> >>>>>>Is tnsnames.ora accessible by the web-server user? (Check the >>>>>permissions.) >>>>>>> >>>>>>> >>>>>>>Is t >>>>>>>> >>>>>>>>From: Sebastian E. Ovide >>>>>>>>To: mapserver-users at lists.osgeo.org >>>>>>>>Sent: Wed, September 29, 2010 11:10:09 AM >>>>>>>>Subject: [mapserver-users] lighttpd, TNS:could not resolve... >>>>>>>> >>>>>>>> >>>>>>>>Hi All, >>>>>>>> >>>>>>>> >>>>>>>>I have installed MapServer on lighttpd + fastcgi. >>>>>>>> >>>>>>>> >>>>>>>>fastcgi.server = ( >>>>>>>> "/mapserver" => >>>>>>>> ( "localhost" => >>>>>>>> ( >>>>>>>> "socket" => >>"/tmp/mapserver-fastcgi.socket", >>>>>>>> "bin-path" => "/home/gis/bin/mapserv", >>>>>>>> "bin-environment" => >>>>>>>> ( >>>>>>>> "TNS_ADMIN" => >>>>>"/home/gis/conf/" >>>>>>>> ), >>>>>>>> "max-procs" => 2, >>>>>>>> "check-local" => "disable" >>>>>>>> ) >>>>>>>> ) >>>>>>>>) >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >>>>>>>>MFUATDB = >>>>>>>> (DESCRIPTION = >>>>>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = >1521)) >>>>>>>> (CONNECT_DATA = >>>>>>>> (SERVER = DEDICATED) >>>>>>>> (SERVICE_NAME = mfuatdb) >>>>>>>> ) >>>>>>>> ) >>>>>>>> >>>>>>>> >>>>>>>>and I'm getting: >>>>>>>> >>>>>>>> >>>>>>>>msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. >>>>>>>>msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >>>>>>>>`TESTII'. ORA-12154: TNS:could not resolve the connect identifier >>>>>>>>specified in >>>>>>>> >>>>>>>> >>>>>>>>from the logs: >>>>>>>> >>>>>>>> >>>>>>>>[Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >>>>>>>>[Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed >>>>>>>>for OGR connection in layer `TESTII'. >>>>>>>>ORA-12154: TNS:could not resolve the connect identifier specified >>>>>>>> in >>>>>>>> >>>>>>>> >>>>>>>>[Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. >>>>>>>>Failed to draw layer named 'TESTII'. >>>>>>>>[Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at >>>>>>0xa00f298. >>>>>>>>[Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at >>>>>>>>0xa0237a0. >>>>>>>>[Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at >>>>>>>>0xa024718. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>in mapserver: >>>>>>>> >>>>>>>> >>>>>>>> LAYER >>>>>>>> NAME TESTII >>>>>>>> TYPE POLYGON >>>>>>>> STATUS ON >>>>>>>> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" >>>>>>>> CONNECTIONTYPE OGR >>>>>>>> DATA "CA_WILDFIRE" >>>>>>>> PROJECTION >>>>>>>> "init=epsg:3857" >>>>>>>> END >>>>>>>> CLASS >>>>>>>># NAME "local_shape" >>>>>>>> COLOR 0 0 255 >>>>>>>> OUTLINECOLOR 0 0 255 >>>>>>>> END >>>>>>>> END >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>The connection string is right as I'm using it from gdal: >>>>>>>> >>>>>>>> >>>>>>>>gis at mapserver:~$ ogrinfo >>>>>>OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE >>>>>>>>INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' >>>>>>>> using driver `OCI' successful. >>>>>>>>1: CA_WILDFIRE >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>any ideas ? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>-- >>>>>>>>Sebastian E. Ovide >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>>-- >>>>>>Sebastian E. Ovide >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>>> >>>>-- >>>>Sebastian E. Ovide >>>> >>>> >>>> >>>> >>>> >>> >>> >>>-- >>>Sebastian E. Ovide >>> >>> >>> >>> >> > > >-- >Sebastian E. Ovide > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Thu Sep 30 06:54:38 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 30 Sep 2010 14:54:38 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: References: <89615.44098.qm@web51403.mail.re2.yahoo.com> <133436.29754.qm@web51404.mail.re2.yahoo.com> Message-ID: updates. even if it works with APACHE + CGI, it does NOT work with APACHE+FASTCGI (AppClass /home/gis/bin/mapserv -initial-env TNS_ADMIN=/home/gis/conf/) On Thu, Sep 30, 2010 at 2:01 PM, Sebastian E. Ovide < sebastian.ovide at gmail.com> wrote: > on the same machine, with the same data and same tns file it works fine > with APACHE.... the problems is only with LIGHTTPD... it looks like "TNS_ADMIN" > => "/home/gis/conf/" is ignored (in apache I've used SetEnv and PassEnv > > ??? > > On Thu, Sep 30, 2010 at 12:22 PM, Dan Little wrote: > >> Does shp2img work with your Mapfile? >> >> >> *From:* Sebastian E. Ovide >> *To:* Rahkonen Jukka >> *Cc:* mapserver-users at lists.osgeo.org >> *Sent:* Thu, September 30, 2010 4:47:30 AM >> *Subject:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >> >> the message says: >> >> ORA-12154: TNS:could not resolve the connect identifier specified in >> >> >> so... does mean that gdal didn't get any name for the connection >> ? >> >> >> >> On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide < >> sebastian.ovide at gmail.com> wrote: >> >>> no luck... >>> >>> renamed servicename to capital.. so now connection name==service name... >>> >>> same problem... ogrinfo works, mapserver doesn't.... >>> >>> >>> On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka < >>> Jukka.Rahkonen at mmmtike.fi> wrote: >>> >>>> Hi, >>>> >>>> For me, sometimes with some Oracle user name from some computers >>>> SQL*Plus does not understand if I am using the SERVICE_NAME. It you happen >>>> to have the same situation you should be able to connect with the connection >>>> name, which seems to be MFUATDB for you. >>>> >>>> Actually, the error message "TNS:could not resolve the connect >>>> identifier specified" may mean that you should not use service name but the >>>> connect identifier. Have a try and tell how it went. >>>> >>>> >>>> -Jukka Rahkonen- >>>> >>>> >>>> ------------------------------ >>>> *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: >>>> mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide >>>> *L?hetetty:* 30. syyskuuta 2010 11:15 >>>> *Vastaanottaja:* Dan Little >>>> *Kopio:* mapserver-users at lists.osgeo.org >>>> *Aihe:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >>>> >>>> yes. >>>> >>>> >>>> gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora >>>> -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora >>>> gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' >>>> MFUATDB = >>>> (DESCRIPTION = >>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>> (CONNECT_DATA = >>>> (SERVER = DEDICATED) >>>> (SERVICE_NAME = mfuatdb) >>>> ) >>>> ) >>>> >>>> >>>> On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: >>>> >>>>> Is tnsnames.ora accessible by the web-server user? (Check the >>>>> permissions.) >>>>> >>>>> Is t >>>>> *From:* Sebastian E. Ovide >>>>> *To:* mapserver-users at lists.osgeo.org >>>>> *Sent:* Wed, September 29, 2010 11:10:09 AM >>>>> *Subject:* [mapserver-users] lighttpd, TNS:could not resolve... >>>>> >>>>> Hi All, >>>>> >>>>> I have installed MapServer on lighttpd + fastcgi. >>>>> >>>>> fastcgi.server = ( >>>>> "/mapserver" => >>>>> ( "localhost" => >>>>> ( >>>>> "socket" => "/tmp/mapserver-fastcgi.socket", >>>>> "bin-path" => "/home/gis/bin/mapserv", >>>>> "bin-environment" => >>>>> ( >>>>> "TNS_ADMIN" => "/home/gis/conf/" >>>>> ), >>>>> "max-procs" => 2, >>>>> "check-local" => "disable" >>>>> ) >>>>> ) >>>>> ) >>>>> >>>>> >>>>> gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >>>>> MFUATDB = >>>>> (DESCRIPTION = >>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>>> (CONNECT_DATA = >>>>> (SERVER = DEDICATED) >>>>> (SERVICE_NAME = mfuatdb) >>>>> ) >>>>> ) >>>>> >>>>> and I'm getting: >>>>> >>>>> msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. >>>>> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >>>>> `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified >>>>> in >>>>> >>>>> from the logs: >>>>> >>>>> [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >>>>> [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open >>>>> failed for OGR connection in layer `TESTII'. >>>>> ORA-12154: TNS:could not resolve the connect identifier specified >>>>> in >>>>> >>>>> [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. >>>>> Failed to draw layer named 'TESTII'. >>>>> [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at >>>>> 0xa00f298. >>>>> [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at >>>>> 0xa0237a0. >>>>> [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at >>>>> 0xa024718. >>>>> >>>>> >>>>> in mapserver: >>>>> >>>>> LAYER >>>>> NAME TESTII >>>>> TYPE POLYGON >>>>> STATUS ON >>>>> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" >>>>> CONNECTIONTYPE OGR >>>>> DATA "CA_WILDFIRE" >>>>> PROJECTION >>>>> "init=epsg:3857" >>>>> END >>>>> CLASS >>>>> # NAME "local_shape" >>>>> COLOR 0 0 255 >>>>> OUTLINECOLOR 0 0 255 >>>>> END >>>>> END >>>>> >>>>> >>>>> >>>>> The connection string is right as I'm using it from gdal: >>>>> >>>>> gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb >>>>> :CA_WILDFIRE >>>>> INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' >>>>> using driver `OCI' successful. >>>>> 1: CA_WILDFIRE >>>>> >>>>> >>>>> any ideas ? >>>>> >>>>> >>>>> -- >>>>> Sebastian E. Ovide >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Sebastian E. Ovide >>>> >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Sebastian E. Ovide >>> >>> >>> >>> >>> >> >> >> -- >> Sebastian E. Ovide >> >> >> >> >> > > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Thu Sep 30 06:58:19 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 30 Sep 2010 09:58:19 -0400 Subject: [mapserver-users] wfs filter request In-Reply-To: References: Message-ID: <4CA4977B.4090007@dmsolutions.ca> Hi There, I have loged this in http://trac.osgeo.org/mapserver/ticket/3557. Fix is committed for the 5.6 branch. Please give it a try and update the bug. regards, On 30/09/2010 3:43 AM, Holger Porath wrote: > Hi again! > > We are still having issues with using mapserver 5.6.5 as a wfs server > together. When we submit a wfs getfeature filter request mapserver > doesn't use the filter in the sql statement. It just searches all the > objects in the database and applies the filter on the result. Thus, we > are getting a timeout. > > Here is our filter request: > > Filter= escape="ESC">FS_FSZ111 > > As you can see the filter for the attribute "FS_FSZ" is set to "111". > > The debug log shows that this isn't used in the sql at all: Using this > Sql to retrieve the data : SELECT fs_id, FS_GKNR, FS_FLNR, FS_FSZ, > FS_FSN, FS_FSSTATUS, FS_ID, FS_FSRWERT_ABS, FS_FSHWERT_ABS, > fs_koordinate FROM os_flst > I expected to see a where clause like the following: where fs_fsz like > "111" > When we switch back to mapserver 5.0.0 we see the correct where clause > in the debug log. So what are we doing wrong or is this a bug? > > Thanks for your help. > Regards, > Holger > > This is how our layer definition looks like: > LAYER > NAME "test_flst" > METADATA > "wfs_extent" "3410000 5470000 3666000 5726000" > "wfs_title" "test_flst" > "gml_featureid" "fs_id" > "gml_include_items" "all" # optional > END # of METADATA > TYPE POINT > STATUS ON > CONNECTIONTYPE oraclespatial > CONNECTION "user/pass at service" > DATA "fs_koordinate from os_flst USING UNIQUE fs_id NONE" > PROJECTION > "init=epsg:31467" > END # of PROJECTION > DUMP TRUE > END # of LAYER > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sebastian.ovide at gmail.com Thu Sep 30 07:09:06 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 30 Sep 2010 15:09:06 +0100 Subject: [mapserver-users] lighttpd, TNS:could not resolve... In-Reply-To: <651666.6260.qm@web51402.mail.re2.yahoo.com> References: <89615.44098.qm@web51403.mail.re2.yahoo.com> <133436.29754.qm@web51404.mail.re2.yahoo.com> <651666.6260.qm@web51402.mail.re2.yahoo.com> Message-ID: done. (restarted server etc...) exactly the same problem... On Thu, Sep 30, 2010 at 2:51 PM, Dan Little wrote: > I was starting to suspect MapServer is just no seeing the environment > variables... > > Try this... write a wrapper script "mapserv.sh" > > #!/bin/bash > > TNS_ADMIN=/home/gis/conf > > /home/gis/bin/mapserv > > Then update your script to point to "mapserv.sh". > > > > > *From:* Sebastian E. Ovide > *To:* Dan Little > *Cc:* Rahkonen Jukka ; > mapserver-users at lists.osgeo.org > *Sent:* Thu, September 30, 2010 8:01:22 AM > > *Subject:* Re: [mapserver-users] lighttpd, TNS:could not resolve... > > on the same machine, with the same data and same tns file it works fine > with APACHE.... the problems is only with LIGHTTPD... it looks like "TNS_ADMIN" > => "/home/gis/conf/" is ignored (in apache I've used SetEnv and PassEnv > > ??? > > On Thu, Sep 30, 2010 at 12:22 PM, Dan Little wrote: > >> Does shp2img work with your Mapfile? >> >> >> *From:* Sebastian E. Ovide >> *To:* Rahkonen Jukka >> *Cc:* mapserver-users at lists.osgeo.org >> *Sent:* Thu, September 30, 2010 4:47:30 AM >> *Subject:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >> >> the message says: >> >> ORA-12154: TNS:could not resolve the connect identifier specified in >> >> >> so... does mean that gdal didn't get any name for the connection >> ? >> >> >> >> On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide < >> sebastian.ovide at gmail.com> wrote: >> >>> no luck... >>> >>> renamed servicename to capital.. so now connection name==service name... >>> >>> same problem... ogrinfo works, mapserver doesn't.... >>> >>> >>> On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka < >>> Jukka.Rahkonen at mmmtike.fi> wrote: >>> >>>> Hi, >>>> >>>> For me, sometimes with some Oracle user name from some computers >>>> SQL*Plus does not understand if I am using the SERVICE_NAME. It you happen >>>> to have the same situation you should be able to connect with the connection >>>> name, which seems to be MFUATDB for you. >>>> >>>> Actually, the error message "TNS:could not resolve the connect >>>> identifier specified" may mean that you should not use service name but the >>>> connect identifier. Have a try and tell how it went. >>>> >>>> >>>> -Jukka Rahkonen- >>>> >>>> >>>> ------------------------------ >>>> *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: >>>> mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide >>>> *L?hetetty:* 30. syyskuuta 2010 11:15 >>>> *Vastaanottaja:* Dan Little >>>> *Kopio:* mapserver-users at lists.osgeo.org >>>> *Aihe:* Re: [mapserver-users] lighttpd, TNS:could not resolve... >>>> >>>> yes. >>>> >>>> >>>> gis at mapserver:~$ ls -la /home/gis/conf/tnsnames.ora >>>> -rw-r--r-- 1 gis gis 184 2010-09-29 16:19 /home/gis/conf/tnsnames.ora >>>> gis at mapserver:~$ sudo su www-data -c 'cat /home/gis/conf/tnsnames.ora' >>>> MFUATDB = >>>> (DESCRIPTION = >>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>> (CONNECT_DATA = >>>> (SERVER = DEDICATED) >>>> (SERVICE_NAME = mfuatdb) >>>> ) >>>> ) >>>> >>>> >>>> On Wed, Sep 29, 2010 at 7:58 PM, Dan Little wrote: >>>> >>>>> Is tnsnames.ora accessible by the web-server user? (Check the >>>>> permissions.) >>>>> >>>>> Is t >>>>> *From:* Sebastian E. Ovide >>>>> *To:* mapserver-users at lists.osgeo.org >>>>> *Sent:* Wed, September 29, 2010 11:10:09 AM >>>>> *Subject:* [mapserver-users] lighttpd, TNS:could not resolve... >>>>> >>>>> Hi All, >>>>> >>>>> I have installed MapServer on lighttpd + fastcgi. >>>>> >>>>> fastcgi.server = ( >>>>> "/mapserver" => >>>>> ( "localhost" => >>>>> ( >>>>> "socket" => "/tmp/mapserver-fastcgi.socket", >>>>> "bin-path" => "/home/gis/bin/mapserv", >>>>> "bin-environment" => >>>>> ( >>>>> "TNS_ADMIN" => "/home/gis/conf/" >>>>> ), >>>>> "max-procs" => 2, >>>>> "check-local" => "disable" >>>>> ) >>>>> ) >>>>> ) >>>>> >>>>> >>>>> gis at mapserver:~$ cat /home/gis/conf/tnsnames.ora >>>>> MFUATDB = >>>>> (DESCRIPTION = >>>>> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521)) >>>>> (CONNECT_DATA = >>>>> (SERVER = DEDICATED) >>>>> (SERVICE_NAME = mfuatdb) >>>>> ) >>>>> ) >>>>> >>>>> and I'm getting: >>>>> >>>>> msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. >>>>> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >>>>> `TESTII'. ORA-12154: TNS:could not resolve the connect identifier specified >>>>> in >>>>> >>>>> from the logs: >>>>> >>>>> [Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513 >>>>> [Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open >>>>> failed for OGR connection in layer `TESTII'. >>>>> ORA-12154: TNS:could not resolve the connect identifier specified >>>>> in >>>>> >>>>> [Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. >>>>> Failed to draw layer named 'TESTII'. >>>>> [Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at >>>>> 0xa00f298. >>>>> [Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at >>>>> 0xa0237a0. >>>>> [Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at >>>>> 0xa024718. >>>>> >>>>> >>>>> in mapserver: >>>>> >>>>> LAYER >>>>> NAME TESTII >>>>> TYPE POLYGON >>>>> STATUS ON >>>>> CONNECTION "OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb" >>>>> CONNECTIONTYPE OGR >>>>> DATA "CA_WILDFIRE" >>>>> PROJECTION >>>>> "init=epsg:3857" >>>>> END >>>>> CLASS >>>>> # NAME "local_shape" >>>>> COLOR 0 0 255 >>>>> OUTLINECOLOR 0 0 255 >>>>> END >>>>> END >>>>> >>>>> >>>>> >>>>> The connection string is right as I'm using it from gdal: >>>>> >>>>> gis at mapserver:~$ ogrinfo OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb >>>>> :CA_WILDFIRE >>>>> INFO: Open of `OCI:GEO_US_DATA/GEO_US_DATA at mfuatdb:CA_WILDFIRE' >>>>> using driver `OCI' successful. >>>>> 1: CA_WILDFIRE >>>>> >>>>> >>>>> any ideas ? >>>>> >>>>> >>>>> -- >>>>> Sebastian E. Ovide >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Sebastian E. Ovide >>>> >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Sebastian E. Ovide >>> >>> >>> >>> >>> >> >> >> -- >> Sebastian E. Ovide >> >> >> >> >> > > > -- > Sebastian E. Ovide > > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From sweykam at telefonica.net Thu Sep 30 08:19:42 2010 From: sweykam at telefonica.net (Stefanie Weykam) Date: Thu, 30 Sep 2010 17:19:42 +0200 Subject: [mapserver-users] substitute DATA parameter via URL? Message-ID: <4CA4AA8E.503@telefonica.net> Dear list members, I would like to change the following DATA parameter via URL DATA "the_geom from (SELECT the_geom, oid, acar as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326" ..where acar is the variable (a table field name) that should change on request. How would the DATAPATTERN look like? I have tried without success: DATAPATTERN "^the_geom from (SELECT the_geom, oid, [a-z]{4} as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326" ..which throws a parsing error near (DATAPATTERN) And I suppose the corresponding extension to the base URL would look like this? ..&map.layer[myLayer].data="the_geom from (SELECT the_geom, oid, emci as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326" ..worked fine on MapServer 4.6 (before validation war requiered) I wonder if it was easier to retrieve the entire table and substitute the field name. But I have 6 classes with expressions like this: EXPRESSION ([qf]> 20 AND [qf]<= 40) ..which would make the URL-extension even longer. Anyway, I haven?t figured out how to set up the corresponding validation string of the either the classitem or the logical expression or both. I?m (still) working with MapServer v. 5.2.1 Any examples for DATAPATTERN would be highly appreciated. Best regards From Jukka.Rahkonen at mmmtike.fi Thu Sep 30 21:27:01 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 1 Oct 2010 07:27:01 +0300 Subject: [mapserver-users] substitute DATA parameter via URL? References: <4CA4AA8E.503@telefonica.net> Message-ID: Hi, I believe that with your Mapserver version you can do it by having DATA "the_geom from (SELECT the_geom, oid, %acar% as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326" and then making the requests with an extra "acar" parameter &acar=the_column_you_want A live example http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,borders,POI_free_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,6558020,1615375,7978444&SRS=EPSG:3067&STYLES=&tag=shop&value=convenience Change the request to contain &value=supermarket or &value=hardware and you will see slightly different maps. The DATA behind this is DATA "way from (select (way),osm_id,tags from osm_point where (tags @>'%tag%=>%value%')) as foo using unique osm_id using srid=3067" I have never really understood how the DATAPATTERN should be used and I have not found any examples from the documents yet. -Jukka Rahkonen- Stefanie Weykam wrote: [mapserver-users] substitute DATA parameter via URL? > Dear list members, > I would like to change the following DATA parameter via URL > DATA "the_geom from (SELECT the_geom, oid, acar as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326" > ..where acar is the variable (a table field name) that should change on request. > How would the DATAPATTERN look like? > I have tried without success: DATAPATTERN "^the_geom from (SELECT the_geom, oid, [a-z]{4} as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326" ..which throws a parsing error near (DATAPATTERN) > And I suppose the corresponding extension to the base URL would look like this? ..&map.layer[myLayer].data="the_geom from (SELECT the_geom, oid, emci as qf FROM geotable) as foo USING UNIQUE oid USING SRID=4326" ..worked fine on MapServer 4.6 (before validation war requiered) > I wonder if it was easier to retrieve the entire table and substitute the field name. But I have 6 classes with expressions like this: > EXPRESSION ([qf]> 20 AND [qf]<= 40) > ..which would make the URL-extension even longer. Anyway, I haven't figured out how to set up the corresponding validation string of the either the classitem or the logical expression or both. > I'm (still) working with MapServer v. 5.2.1 > Any examples for DATAPATTERN would be highly appreciated. > Best regards _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users