From havard.tveite at umb.no Wed Jun 1 01:18:23 2011 From: havard.tveite at umb.no (Havard Tveite) Date: Wed, 1 Jun 2011 10:18:23 +0200 Subject: [mapserver-users] Is it posible to substitute a value from table for width of line In-Reply-To: <1306908546452-6425708.post@n2.nabble.com> References: <1306908546452-6425708.post@n2.nabble.com> Message-ID: <4DE5F5CF.2070904@umb.no> According to that should be possible. H?vard On 6/1/2011 8:09 AM, prab.raja wrote: > Hi, > I would like to know if it's posible to draw line layer with variable width > from database table. > > Something like this? > > LAYER > NAME line_layer > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=****** dbname=shpdb host=localhost > port=5432" > DATA "the_geom FROM (SELECT gid, the_geom FROM line_layer) > AS SUBQUERY using unique gid" > PROCESSING "CLOSE_CONNECTION=DEFER" > TYPE line > OPACITY 100 > STATUS Off > CLASS > STYLE > COLOR 0 140 70 > WIDTH [gid] > END > END > END > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.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 > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From prab.raja at gmail.com Wed Jun 1 01:27:17 2011 From: prab.raja at gmail.com (prab.raja) Date: Wed, 1 Jun 2011 01:27:17 -0700 (PDT) Subject: [mapserver-users] Re: Is it posible to substitute a value from table for width of line In-Reply-To: <4DE5F5CF.2070904@umb.no> References: <1306908546452-6425708.post@n2.nabble.com> <4DE5F5CF.2070904@umb.no> Message-ID: But when I tried this mapserver gives error message as *"getInteger(): Symbol definition error. Parsing error near (gid)". * **I am using MapServer version 5.2.1. On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] < ml-node+6426034-1909892157-338562 at n2.nabble.com> wrote: > According to > that should be possible. > > H?vard > > On 6/1/2011 8:09 AM, prab.raja wrote: > > > Hi, > > I would like to know if it's posible to draw line layer with variable > width > > from database table. > > > > Something like this? > > > > LAYER > > NAME line_layer > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres password=****** dbname=shpdb > host=localhost > > port=5432" > > DATA "the_geom FROM (SELECT gid, the_geom FROM line_layer) > > AS SUBQUERY using unique gid" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > TYPE line > > OPACITY 100 > > STATUS Off > > CLASS > > STYLE > > COLOR 0 140 70 > > WIDTH [gid] > > END > > END > > END > > > > -- > > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html > To unsubscribe from Is it posible to substitute a value from table for > width of line, click here. > > -- Regards, Prabu Raja -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426054.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Jun 1 01:42:34 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Jun 2011 10:42:34 +0200 Subject: [mapserver-users] Re: Is it posible to substitute a value from table for width of line In-Reply-To: References: <1306908546452-6425708.post@n2.nabble.com> <4DE5F5CF.2070904@umb.no> Message-ID: are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ? On Wed, Jun 1, 2011 at 10:27, prab.raja wrote: > But when I tried this mapserver gives error message as "getInteger(): Symbol > definition error. Parsing error near (gid)". > I am using?MapServer version 5.2.1. > > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <[hidden > email]> wrote: >> >> According to >> that should be possible. >> >> H?vard >> >> On 6/1/2011 8:09 AM, prab.raja wrote: >> > Hi, >> > I would like to know if it's posible to draw line layer with variable >> > width >> > from database table. >> > >> > Something like this? >> > >> > LAYER >> > ? ? ? ?NAME line_layer >> > ? ? ? ?CONNECTIONTYPE postgis >> > ? ? ? ?CONNECTION "user=postgres password=****** dbname=shpdb >> > host=localhost >> > port=5432" >> > ? ? ? ?DATA "the_geom FROM ?(SELECT gid, the_geom FROM line_layer) >> > ? ? ? ? ? AS SUBQUERY using unique gid" >> > ? ? ? ?PROCESSING "CLOSE_CONNECTION=DEFER" >> > ? ? ? ?TYPE line >> > ? ? ? ?OPACITY 100 >> > ? ? ? ?STATUS Off >> > ? ? ? ?CLASS >> > ? ? ? ? ? STYLE >> > ? ? ? ? ? ? ?COLOR 0 140 70 >> > ? ? ? ? ? ? ?WIDTH [gid] >> > ? ? ? ? ? END >> > ? ? ? ?END >> > ? ? END >> > >> > -- >> > View this message in context: >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html >> > Sent from the Mapserver - User mailing list archive at Nabble.com. >> > _______________________________________________ >> > mapserver-users mailing list >> > [hidden email] >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> -- >> H?vard Tveite >> Department of Mathematical Sciences and Technology, UMB >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> _______________________________________________ >> mapserver-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html >> To unsubscribe from Is it posible to substitute a value from table for >> width of line, click here. > > > -- > Regards, > Prabu Raja > > > ________________________________ > View this message in context: Re: Is it posible to substitute a value from > table for width of line > 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 prab.raja at gmail.com Wed Jun 1 01:47:20 2011 From: prab.raja at gmail.com (prab.raja) Date: Wed, 1 Jun 2011 01:47:20 -0700 (PDT) Subject: [mapserver-users] Re: Is it posible to substitute a value from table for width of line In-Reply-To: References: <1306908546452-6425708.post@n2.nabble.com> <4DE5F5CF.2070904@umb.no> Message-ID: yes. Below is the style copied from my Map file. STYLE COLOR 0 140 70 WIDTH [gid] END On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] < ml-node+6426084-491165995-338562 at n2.nabble.com> wrote: > are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ? > > On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> > wrote: > > > But when I tried this mapserver gives error message as "getInteger(): > Symbol > > definition error. Parsing error near (gid)". > > I am using MapServer version 5.2.1. > > > > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <[hidden > > email]> wrote: > >> > >> According to http://www.mapserver.org/mapfile/style.html > > >> that should be possible. > >> > >> H?vard > >> > >> On 6/1/2011 8:09 AM, prab.raja wrote: > >> > Hi, > >> > I would like to know if it's posible to draw line layer with variable > >> > width > >> > from database table. > >> > > >> > Something like this? > >> > > >> > LAYER > >> > NAME line_layer > >> > CONNECTIONTYPE postgis > >> > CONNECTION "user=postgres password=****** dbname=shpdb > >> > host=localhost > >> > port=5432" > >> > DATA "the_geom FROM (SELECT gid, the_geom FROM line_layer) > >> > AS SUBQUERY using unique gid" > >> > PROCESSING "CLOSE_CONNECTION=DEFER" > >> > TYPE line > >> > OPACITY 100 > >> > STATUS Off > >> > CLASS > >> > STYLE > >> > COLOR 0 140 70 > >> > WIDTH [gid] > >> > END > >> > END > >> > END > >> > > >> > -- > >> > View this message in context: > >> > > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html > >> > Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > [hidden email] > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> -- > >> H?vard Tveite > >> Department of Mathematical Sciences and Technology, UMB > >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > >> _______________________________________________ > >> mapserver-users mailing list > >> [hidden email] > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> ________________________________ > >> If you reply to this email, your message will be added to the discussion > > >> below: > >> > >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html > >> To unsubscribe from Is it posible to substitute a value from table for > >> width of line, click here. > > > > > > -- > > Regards, > > Prabu Raja > > > > > > ________________________________ > > View this message in context: Re: Is it posible to substitute a value > from > > table for width of line > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html > To unsubscribe from Is it posible to substitute a value from table for > width of line, click here. > > -- Regards, Prabu Raja -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426093.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Jun 1 01:54:38 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Jun 2011 10:54:38 +0200 Subject: [mapserver-users] Re: Is it posible to substitute a value from table for width of line In-Reply-To: References: <1306908546452-6425708.post@n2.nabble.com> <4DE5F5CF.2070904@umb.no> Message-ID: then make sure you are actually using 5.2.1 and not an older version On Wed, Jun 1, 2011 at 10:47, prab.raja wrote: > yes. > Below is the style copied from my Map file. > ? ? ? ? STYLE > ? ? ? ? ? ? COLOR 0 140 70 > ? ? ? ? ? ? WIDTH [gid] > ? ? ? ? ?END > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden > email]> wrote: >> >> are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ? >> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote: >> > But when I tried this mapserver gives error message as "getInteger(): >> > Symbol >> > definition error. Parsing error near (gid)". >> > I am using?MapServer version 5.2.1. >> > >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <[hidden >> > email]> wrote: >> >> >> >> According to > >> href="http://www.mapserver.org/mapfile/style.html?">http://www.mapserver.org/mapfile/style.html?> >> >> that should be possible. >> >> >> >> H?vard >> >> >> >> On 6/1/2011 8:09 AM, prab.raja wrote: >> >> > Hi, >> >> > I would like to know if it's posible to draw line layer with variable >> >> > width >> >> > from database table. >> >> > >> >> > Something like this? >> >> > >> >> > LAYER >> >> > ? ? ? ?NAME line_layer >> >> > ? ? ? ?CONNECTIONTYPE postgis >> >> > ? ? ? ?CONNECTION "user=postgres password=****** dbname=shpdb >> >> > host=localhost >> >> > port=5432" >> >> > ? ? ? ?DATA "the_geom FROM ?(SELECT gid, the_geom FROM line_layer) >> >> > ? ? ? ? ? AS SUBQUERY using unique gid" >> >> > ? ? ? ?PROCESSING "CLOSE_CONNECTION=DEFER" >> >> > ? ? ? ?TYPE line >> >> > ? ? ? ?OPACITY 100 >> >> > ? ? ? ?STATUS Off >> >> > ? ? ? ?CLASS >> >> > ? ? ? ? ? STYLE >> >> > ? ? ? ? ? ? ?COLOR 0 140 70 >> >> > ? ? ? ? ? ? ?WIDTH [gid] >> >> > ? ? ? ? ? END >> >> > ? ? ? ?END >> >> > ? ? END >> >> > >> >> > -- >> >> > View this message in context: >> >> > >> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html >> >> > Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > [hidden email] >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> >> -- >> >> H?vard Tveite >> >> Department of Mathematical Sciences and Technology, UMB >> >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> [hidden email] >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> ________________________________ >> >> If you reply to this email, your message will be added to the >> >> discussion >> >> below: >> >> >> >> >> >> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html >> >> To unsubscribe from Is it posible to substitute a value from table for >> >> width of line, click here. >> > >> > >> > -- >> > Regards, >> > Prabu Raja >> > >> > >> > ________________________________ >> > View this message in context: Re: Is it posible to substitute a value >> > from >> > table for width of line >> > Sent from the Mapserver - User mailing list archive at Nabble.com. >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > [hidden email] >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> _______________________________________________ >> mapserver-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html >> To unsubscribe from Is it posible to substitute a value from table for >> width of line, click here. > > > -- > Regards, > Prabu Raja > > > ________________________________ > View this message in context: Re: Is it posible to substitute a value from > table for width of line > 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 andreas.siegel at vorarlberg.at Wed Jun 1 01:55:03 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Wed, 1 Jun 2011 01:55:03 -0700 (PDT) Subject: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up In-Reply-To: <1306828201530-6421746.post@n2.nabble.com> References: <1306828201530-6421746.post@n2.nabble.com> Message-ID: <1306918503399-6426115.post@n2.nabble.com> Update. Am i doing something wrong here? There is the same problem when i use the ms4w-windows-mapserver (5.6.6) It also complains about CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up Maybe there is something amiss in the mapefile. "wms_proxy_auth_type" "ntlm" "wms_proxy_type" "http" "wms_proxy_host" "that_proxy_of_ours" "wms_proxy_port" "8080" "wms_proxy_username" "xxxxxxx" "wms_proxy_password" "yyyyyy" Cheers Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426115.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Wed Jun 1 01:57:41 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Jun 2011 10:57:41 +0200 Subject: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up In-Reply-To: <1306918503399-6426115.post@n2.nabble.com> References: <1306828201530-6421746.post@n2.nabble.com> <1306918503399-6426115.post@n2.nabble.com> Message-ID: first check that comes to mind: is your curl version > to 7.10.7 ? On Wed, Jun 1, 2011 at 10:55, sulu wrote: > Update. > > Am i doing something wrong here? > > There is the same problem when i use the ms4w-windows-mapserver (5.6.6) > > It also complains about > CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up > > Maybe there is something amiss in the mapefile. > > ? ? ? ? ? ? ? ? ? ? ? ?"wms_proxy_auth_type" "ntlm" > ? ? ? ? ? ? ? ? ? ? ? ?"wms_proxy_type" "http" > ? ? ? ? ? ? ? ? ? ? ? ?"wms_proxy_host" "that_proxy_of_ours" > ? ? ? ? ? ? ? ? ? ? ? ?"wms_proxy_port" "8080" > ? ? ? ? ? ? ? ? ? ? ? ?"wms_proxy_username" "xxxxxxx" > ? ? ? ? ? ? ? ? ? ? ? ?"wms_proxy_password" "yyyyyy" > > > Cheers > Andy > > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426115.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 prab.raja at gmail.com Wed Jun 1 01:58:37 2011 From: prab.raja at gmail.com (prab.raja) Date: Wed, 1 Jun 2011 01:58:37 -0700 (PDT) Subject: [mapserver-users] Re: Is it posible to substitute a value from table for width of line In-Reply-To: References: <1306908546452-6425708.post@n2.nabble.com> <4DE5F5CF.2070904@umb.no> Message-ID: Below is the mapserv.exe -v output. It shows MapServer version 5.2.1 only. MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] < ml-node+6426114-1083275088-338562 at n2.nabble.com> wrote: > then make sure you are actually using 5.2.1 and not an older version > > On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> > wrote: > > > yes. > > Below is the style copied from my Map file. > > STYLE > > COLOR 0 140 70 > > WIDTH [gid] > > END > > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden > > email]> wrote: > >> > >> are you using the exact syntax of your first example, i.e. "WIDTH [gid]" > ? > >> > >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote: > >> > But when I tried this mapserver gives error message as "getInteger(): > >> > Symbol > >> > definition error. Parsing error near (gid)". > >> > I am using MapServer version 5.2.1. > >> > > >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <[hidden > > >> > email]> wrote: > >> >> > >> >> According to >> >> href=" > http://www.mapserver.org/mapfile/style.html "> > http://www.mapserver.org/mapfile/style.html > > >> >> that should be possible. > >> >> > >> >> H?vard > >> >> > >> >> On 6/1/2011 8:09 AM, prab.raja wrote: > >> >> > Hi, > >> >> > I would like to know if it's posible to draw line layer with > variable > >> >> > width > >> >> > from database table. > >> >> > > >> >> > Something like this? > >> >> > > >> >> > LAYER > >> >> > NAME line_layer > >> >> > CONNECTIONTYPE postgis > >> >> > CONNECTION "user=postgres password=****** dbname=shpdb > >> >> > host=localhost > >> >> > port=5432" > >> >> > DATA "the_geom FROM (SELECT gid, the_geom FROM line_layer) > >> >> > AS SUBQUERY using unique gid" > >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" > >> >> > TYPE line > >> >> > OPACITY 100 > >> >> > STATUS Off > >> >> > CLASS > >> >> > STYLE > >> >> > COLOR 0 140 70 > >> >> > WIDTH [gid] > >> >> > END > >> >> > END > >> >> > END > >> >> > > >> >> > -- > >> >> > View this message in context: > >> >> > > >> >> > > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html > >> >> > Sent from the Mapserver - User mailing list archive at Nabble.com. > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > [hidden email] > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> >> -- > >> >> H?vard Tveite > >> >> Department of Mathematical Sciences and Technology, UMB > >> >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > >> >> _______________________________________________ > >> >> mapserver-users mailing list > >> >> [hidden email] > >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > >> >> > >> >> ________________________________ > >> >> If you reply to this email, your message will be added to the > >> >> discussion > >> >> below: > >> >> > >> >> > >> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html > >> >> To unsubscribe from Is it posible to substitute a value from table > for > >> >> width of line, click here. > >> > > >> > > >> > -- > >> > Regards, > >> > Prabu Raja > >> > > >> > > >> > ________________________________ > >> > View this message in context: Re: Is it posible to substitute a value > >> > from > >> > table for width of line > >> > Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > [hidden email] > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > >> _______________________________________________ > >> mapserver-users mailing list > >> [hidden email] > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> ________________________________ > >> If you reply to this email, your message will be added to the discussion > > >> below: > >> > >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html > >> To unsubscribe from Is it posible to substitute a value from table for > >> width of line, click here. > > > > > > -- > > Regards, > > Prabu Raja > > > > > > ________________________________ > > View this message in context: Re: Is it posible to substitute a value > from > > table for width of line > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426114.html > To unsubscribe from Is it posible to substitute a value from table for > width of line, click here. > > -- Regards, Prabu Raja -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426123.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas.siegel at vorarlberg.at Wed Jun 1 02:01:21 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Wed, 1 Jun 2011 02:01:21 -0700 (PDT) Subject: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up In-Reply-To: References: <1306828201530-6421746.post@n2.nabble.com> <1306918503399-6426115.post@n2.nabble.com> Message-ID: <1306918881636-6426136.post@n2.nabble.com> That sould not be the problem. On the centos-box we have: yum list | grep -i curl curl.i386 7.15.5-9.el5_6.2 installed curl.x86_64 7.15.5-9.el5_6.2 installed curl-devel.i386 7.15.5-9.el5_6.2 installed curl-devel.x86_64 7.15.5-9.el5_6.2 installed I cant tell about ms4w-mapserver. I just installed the binary. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426136.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Wed Jun 1 02:04:20 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Jun 2011 11:04:20 +0200 Subject: [mapserver-users] Re: Is it posible to substitute a value from table for width of line In-Reply-To: References: <1306908546452-6425708.post@n2.nabble.com> <4DE5F5CF.2070904@umb.no> Message-ID: ok. the docs are wrong. WIDTH binding is available since mapserver 5.4.0. On Wed, Jun 1, 2011 at 10:58, prab.raja wrote: > Below is the?mapserv.exe -v output. > It shows?MapServer version 5.2.1 only. > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > ?OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICO > NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUP > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > INPUT=OGR > ?INPUT=GDAL INPUT=SHAPEFILE > On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] <[hidden > email]> wrote: >> >> then make sure you are actually using 5.2.1 and not an older version >> >> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote: >> > yes. >> > Below is the style copied from my Map file. >> > ? ? ? ? STYLE >> > ? ? ? ? ? ? COLOR 0 140 70 >> > ? ? ? ? ? ? WIDTH [gid] >> > ? ? ? ? ?END >> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden >> > email]> wrote: >> >> >> >> are you using the exact syntax of your first example, i.e. "WIDTH >> >> [gid]" ? >> >> >> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote: >> >> > But when I tried this mapserver gives error message as "getInteger(): >> >> > Symbol >> >> > definition error. Parsing error near (gid)". >> >> > I am using?MapServer version 5.2.1. >> >> > >> >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] >> >> > <[hidden >> >> > email]> wrote: >> >> >> >> >> >> According to > >> >> href="> >> >> href="http://www.mapserver.org/mapfile/style.html?">http://www.mapserver.org/mapfile/style.html?">> >> >> href="http://www.mapserver.org/mapfile/style.html?">http://www.mapserver.org/mapfile/style.html?> >> >> >> that should be possible. >> >> >> >> >> >> H?vard >> >> >> >> >> >> On 6/1/2011 8:09 AM, prab.raja wrote: >> >> >> > Hi, >> >> >> > I would like to know if it's posible to draw line layer with >> >> >> > variable >> >> >> > width >> >> >> > from database table. >> >> >> > >> >> >> > Something like this? >> >> >> > >> >> >> > LAYER >> >> >> > ? ? ? ?NAME line_layer >> >> >> > ? ? ? ?CONNECTIONTYPE postgis >> >> >> > ? ? ? ?CONNECTION "user=postgres password=****** dbname=shpdb >> >> >> > host=localhost >> >> >> > port=5432" >> >> >> > ? ? ? ?DATA "the_geom FROM ?(SELECT gid, the_geom FROM line_layer) >> >> >> > ? ? ? ? ? AS SUBQUERY using unique gid" >> >> >> > ? ? ? ?PROCESSING "CLOSE_CONNECTION=DEFER" >> >> >> > ? ? ? ?TYPE line >> >> >> > ? ? ? ?OPACITY 100 >> >> >> > ? ? ? ?STATUS Off >> >> >> > ? ? ? ?CLASS >> >> >> > ? ? ? ? ? STYLE >> >> >> > ? ? ? ? ? ? ?COLOR 0 140 70 >> >> >> > ? ? ? ? ? ? ?WIDTH [gid] >> >> >> > ? ? ? ? ? END >> >> >> > ? ? ? ?END >> >> >> > ? ? END >> >> >> > >> >> >> > -- >> >> >> > View this message in context: >> >> >> > >> >> >> > >> >> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html >> >> >> > Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> >> > _______________________________________________ >> >> >> > mapserver-users mailing list >> >> >> > [hidden email] >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> >> >> -- >> >> >> H?vard Tveite >> >> >> Department of Mathematical Sciences and Technology, UMB >> >> >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> >> >> _______________________________________________ >> >> >> mapserver-users mailing list >> >> >> [hidden email] >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >> >> ________________________________ >> >> >> If you reply to this email, your message will be added to the >> >> >> discussion >> >> >> below: >> >> >> >> >> >> >> >> >> >> >> >> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html >> >> >> To unsubscribe from Is it posible to substitute a value from table >> >> >> for >> >> >> width of line, click here. >> >> > >> >> > >> >> > -- >> >> > Regards, >> >> > Prabu Raja >> >> > >> >> > >> >> > ________________________________ >> >> > View this message in context: Re: Is it posible to substitute a value >> >> > from >> >> > table for width of line >> >> > Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> > >> >> > _______________________________________________ >> >> > mapserver-users mailing list >> >> > [hidden email] >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> >> > >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> [hidden email] >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> ________________________________ >> >> If you reply to this email, your message will be added to the >> >> discussion >> >> below: >> >> >> >> >> >> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html >> >> To unsubscribe from Is it posible to substitute a value from table for >> >> width of line, click here. >> > >> > >> > -- >> > Regards, >> > Prabu Raja >> > >> > >> > ________________________________ >> > View this message in context: Re: Is it posible to substitute a value >> > from >> > table for width of line >> > Sent from the Mapserver - User mailing list archive at Nabble.com. >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > [hidden email] >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> _______________________________________________ >> mapserver-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426114.html >> To unsubscribe from Is it posible to substitute a value from table for >> width of line, click here. > > > -- > Regards, > Prabu Raja > > > ________________________________ > View this message in context: Re: Is it posible to substitute a value from > table for width of line > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Jukka.Rahkonen at mmmtike.fi Wed Jun 1 02:06:42 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 1 Jun 2011 12:06:42 +0300 Subject: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up In-Reply-To: <1306918503399-6426115.post@n2.nabble.com> References: <1306828201530-6421746.post@n2.nabble.com> <1306918503399-6426115.post@n2.nabble.com> Message-ID: Hi, All I can say is that I am running MS4W 3.0.2 updated to use Mapserver 6.0 and I have these two lines in the LAYER-METADATA for setting the proxy and it works for me. "wms_proxy_host" "xxx.yyy.zzz" "wms_proxy_port" "8888" -Jukka Rahkonen- sulu wrote: > > Update. > > Am i doing something wrong here? > > There is the same problem when i use the > ms4w-windows-mapserver (5.6.6) > > It also complains about > CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up > > Maybe there is something amiss in the mapefile. > > "wms_proxy_auth_type" "ntlm" > "wms_proxy_type" "http" > "wms_proxy_host" "that_proxy_of_ours" > "wms_proxy_port" "8080" > "wms_proxy_username" "xxxxxxx" > "wms_proxy_password" "yyyyyy" > > > Cheers > Andy > > > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURL > OPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421 746p6426115.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 prab.raja at gmail.com Wed Jun 1 02:18:52 2011 From: prab.raja at gmail.com (prab.raja) Date: Wed, 1 Jun 2011 02:18:52 -0700 (PDT) Subject: [mapserver-users] Re: Is it posible to substitute a value from table for width of line In-Reply-To: References: <1306908546452-6425708.post@n2.nabble.com> <4DE5F5CF.2070904@umb.no> Message-ID: OK. Thanks! On Wed, Jun 1, 2011 at 2:34 PM, thomas bonfort [via OSGeo.org] < ml-node+6426142-1064851714-338562 at n2.nabble.com> wrote: > ok. the docs are wrong. WIDTH binding is available since mapserver 5.4.0. > > On Wed, Jun 1, 2011 at 10:58, prab.raja <[hidden email]> > wrote: > > > Below is the mapserv.exe -v output. > > It shows MapServer version 5.2.1 only. > > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=PDF > > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > > SUPPORTS=ICO > > NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER > > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI > > SUP > > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > > INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] <[hidden > > email]> wrote: > >> > >> then make sure you are actually using 5.2.1 and not an older version > >> > >> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote: > >> > yes. > >> > Below is the style copied from my Map file. > >> > STYLE > >> > COLOR 0 140 70 > >> > WIDTH [gid] > >> > END > >> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] > <[hidden > >> > email]> wrote: > >> >> > >> >> are you using the exact syntax of your first example, i.e. "WIDTH > >> >> [gid]" ? > >> >> > >> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote: > >> >> > But when I tried this mapserver gives error message as > "getInteger(): > >> >> > Symbol > >> >> > definition error. Parsing error near (gid)". > >> >> > I am using MapServer version 5.2.1. > >> >> > > >> >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] > >> >> > <[hidden > >> >> > email]> wrote: > >> >> >> > >> >> >> According to >> >> >> href=" >> >> >> href=" > http://www.mapserver.org/mapfile/style.html "> > http://www.mapserver.org/mapfile/style.html "> >> >> >> href=" > http://www.mapserver.org/mapfile/style.html "> > http://www.mapserver.org/mapfile/style.html > > >> >> >> that should be possible. > >> >> >> > >> >> >> H?vard > >> >> >> > >> >> >> On 6/1/2011 8:09 AM, prab.raja wrote: > >> >> >> > Hi, > >> >> >> > I would like to know if it's posible to draw line layer with > >> >> >> > variable > >> >> >> > width > >> >> >> > from database table. > >> >> >> > > >> >> >> > Something like this? > >> >> >> > > >> >> >> > LAYER > >> >> >> > NAME line_layer > >> >> >> > CONNECTIONTYPE postgis > >> >> >> > CONNECTION "user=postgres password=****** dbname=shpdb > >> >> >> > host=localhost > >> >> >> > port=5432" > >> >> >> > DATA "the_geom FROM (SELECT gid, the_geom FROM > line_layer) > >> >> >> > AS SUBQUERY using unique gid" > >> >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" > >> >> >> > TYPE line > >> >> >> > OPACITY 100 > >> >> >> > STATUS Off > >> >> >> > CLASS > >> >> >> > STYLE > >> >> >> > COLOR 0 140 70 > >> >> >> > WIDTH [gid] > >> >> >> > END > >> >> >> > END > >> >> >> > END > >> >> >> > > >> >> >> > -- > >> >> >> > View this message in context: > >> >> >> > > >> >> >> > > >> >> >> > > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html > >> >> >> > Sent from the Mapserver - User mailing list archive at > Nabble.com. > >> >> >> > _______________________________________________ > >> >> >> > mapserver-users mailing list > >> >> >> > [hidden email] > >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> > > >> >> >> -- > >> >> >> H?vard Tveite > >> >> >> Department of Mathematical Sciences and Technology, UMB > >> >> >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > >> >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > >> >> >> _______________________________________________ > >> >> >> mapserver-users mailing list > >> >> >> [hidden email] > >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> > >> >> >> > >> >> >> ________________________________ > >> >> >> If you reply to this email, your message will be added to the > >> >> >> discussion > >> >> >> below: > >> >> >> > >> >> >> > >> >> >> > >> >> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html > >> >> >> To unsubscribe from Is it posible to substitute a value from table > > >> >> >> for > >> >> >> width of line, click here. > >> >> > > >> >> > > >> >> > -- > >> >> > Regards, > >> >> > Prabu Raja > >> >> > > >> >> > > >> >> > ________________________________ > >> >> > View this message in context: Re: Is it posible to substitute a > value > >> >> > from > >> >> > table for width of line > >> >> > Sent from the Mapserver - User mailing list archive at Nabble.com. > >> >> > > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > [hidden email] > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> >> > > >> >> _______________________________________________ > >> >> mapserver-users mailing list > >> >> [hidden email] > >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > >> >> > >> >> ________________________________ > >> >> If you reply to this email, your message will be added to the > >> >> discussion > >> >> below: > >> >> > >> >> > >> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html > >> >> To unsubscribe from Is it posible to substitute a value from table > for > >> >> width of line, click here. > >> > > >> > > >> > -- > >> > Regards, > >> > Prabu Raja > >> > > >> > > >> > ________________________________ > >> > View this message in context: Re: Is it posible to substitute a value > >> > from > >> > table for width of line > >> > Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > [hidden email] > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > >> _______________________________________________ > >> mapserver-users mailing list > >> [hidden email] > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> ________________________________ > >> If you reply to this email, your message will be added to the discussion > > >> below: > >> > >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426114.html > >> To unsubscribe from Is it posible to substitute a value from table for > >> width of line, click here. > > > > > > -- > > Regards, > > Prabu Raja > > > > > > ________________________________ > > View this message in context: Re: Is it posible to substitute a value > from > > table for width of line > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426142.html > To unsubscribe from Is it posible to substitute a value from table for > width of line, click here. > > -- Regards, Prabu Raja -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426184.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas.siegel at vorarlberg.at Wed Jun 1 02:26:04 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Wed, 1 Jun 2011 02:26:04 -0700 (PDT) Subject: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up In-Reply-To: References: <1306828201530-6421746.post@n2.nabble.com> <1306918503399-6426115.post@n2.nabble.com> Message-ID: <1306920364356-6426206.post@n2.nabble.com> Hi Jukka. Thanks for answering. If i use only wms_proxy_host and wms_proxy_port parameter in the Layer/Metadata i get a plain old 407 because of missing credentials. But if wms_proxy_password comes into use the "CURLOPT_PROXYAUTH not supported"-error shows up. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426206.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Wed Jun 1 02:34:19 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Jun 2011 11:34:19 +0200 Subject: [mapserver-users] Re: HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up In-Reply-To: <1306920364356-6426206.post@n2.nabble.com> References: <1306828201530-6421746.post@n2.nabble.com> <1306918503399-6426115.post@n2.nabble.com> <1306920364356-6426206.post@n2.nabble.com> Message-ID: looking at the code, it seems the only reason on unix you'd get that message is because the curl library is too old. On ms4w it might be because the maintainer has not set the USE_CURLOPT_PROXYAUTH #define. -- thomas On Wed, Jun 1, 2011 at 11:26, sulu wrote: > Hi Jukka. > > Thanks for answering. > > If i use only wms_proxy_host and wms_proxy_port parameter in the > Layer/Metadata i get a plain old 407 because of missing credentials. > But if wms_proxy_password comes into use the "CURLOPT_PROXYAUTH not > supported"-error shows up. > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/HTTP-request-error-CURLOPT-PROXYAUTH-not-supported-Requires-Curl-7-10-7-and-up-tp6421746p6426206.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 bfraser at geoanalytic.com Wed Jun 1 06:37:19 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 01 Jun 2011 07:37:19 -0600 Subject: [mapserver-users] Re: Is it posible to substitute a value from table for width of line In-Reply-To: References: <1306908546452-6425708.post@n2.nabble.com> <4DE5F5CF.2070904@umb.no> Message-ID: <4DE6408F.2020802@geoanalytic.com> There's even a ticket: http://trac.osgeo.org/mapserver/ticket/3448 Best Regards, Brent Fraser On 6/1/2011 3:18 AM, prab.raja wrote: > OK. Thanks! > > On Wed, Jun 1, 2011 at 2:34 PM, thomas bonfort [via OSGeo.org] > <[hidden email] > wrote: > > ok. the docs are wrong. WIDTH binding is available since mapserver > 5.4.0. > > On Wed, Jun 1, 2011 at 10:58, prab.raja <[hidden email] > > wrote: > > > Below is the mapserv.exe -v output. > > It shows MapServer version 5.2.1 only. > > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > > OUTPUT=PDF > > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > > SUPPORTS=ICO > > NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER > > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI > > SUP > > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG > INPUT=POSTGIS > > INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] > <[hidden > > > email]> wrote: > >> > >> then make sure you are actually using 5.2.1 and not an older > version > >> > >> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote: > >> > yes. > >> > Below is the style copied from my Map file. > >> > STYLE > >> > COLOR 0 140 70 > >> > WIDTH [gid] > >> > END > >> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via > OSGeo.org] <[hidden > >> > email]> wrote: > >> >> > >> >> are you using the exact syntax of your first example, i.e. > "WIDTH > >> >> [gid]" ? > >> >> > >> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote: > >> >> > But when I tried this mapserver gives error message as > "getInteger(): > >> >> > Symbol > >> >> > definition error. Parsing error near (gid)". > >> >> > I am using MapServer version 5.2.1. > >> >> > > >> >> > On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] > >> >> > <[hidden > >> >> > email]> wrote: > >> >> >> > >> >> >> According to >> >> >> href=" >> >> >> href=" href="http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html "> href="http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html "> > >> >> >> href=" href="http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html "> href="http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html > > > > >> >> >> that should be possible. > >> >> >> > >> >> >> H?vard > >> >> >> > >> >> >> On 6/1/2011 8:09 AM, prab.raja wrote: > >> >> >> > Hi, > >> >> >> > I would like to know if it's posible to draw line layer > with > >> >> >> > variable > >> >> >> > width > >> >> >> > from database table. > >> >> >> > > >> >> >> > Something like this? > >> >> >> > > >> >> >> > LAYER > >> >> >> > NAME line_layer > >> >> >> > CONNECTIONTYPE postgis > >> >> >> > CONNECTION "user=postgres password=****** > dbname=shpdb > >> >> >> > host=localhost > >> >> >> > port=5432" > >> >> >> > DATA "the_geom FROM (SELECT gid, the_geom FROM > line_layer) > >> >> >> > AS SUBQUERY using unique gid" > >> >> >> > PROCESSING "CLOSE_CONNECTION=DEFER" > >> >> >> > TYPE line > >> >> >> > OPACITY 100 > >> >> >> > STATUS Off > >> >> >> > CLASS > >> >> >> > STYLE > >> >> >> > COLOR 0 140 70 > >> >> >> > WIDTH [gid] > >> >> >> > END > >> >> >> > END > >> >> >> > END > >> >> >> > > >> >> >> > -- > >> >> >> > View this message in context: > >> >> >> > > >> >> >> > > >> >> >> > > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html > >> >> >> > Sent from the Mapserver - User mailing list archive at > Nabble.com. > > >> >> >> > _______________________________________________ > >> >> >> > mapserver-users mailing list > >> >> >> > [hidden email] > >> >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> > > >> >> >> -- > >> >> >> H?vard Tveite > >> >> >> Department of Mathematical Sciences and Technology, UMB > >> >> >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > >> >> >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > >> >> >> _______________________________________________ > >> >> >> mapserver-users mailing list > >> >> >> [hidden email] > >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> >> > >> >> >> > >> >> >> ________________________________ > >> >> >> If you reply to this email, your message will be added to > the > >> >> >> discussion > >> >> >> below: > >> >> >> > >> >> >> > >> >> >> > >> >> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html > >> >> >> To unsubscribe from Is it posible to substitute a value > from table > > >> >> >> for > >> >> >> width of line, click here. > >> >> > > >> >> > > >> >> > -- > >> >> > Regards, > >> >> > Prabu Raja > >> >> > > >> >> > > >> >> > ________________________________ > >> >> > View this message in context: Re: Is it posible to > substitute a value > >> >> > from > >> >> > table for width of line > >> >> > Sent from the Mapserver - User mailing list archive at > Nabble.com. > >> >> > > >> >> > _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > [hidden email] > >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> >> > > >> >> _______________________________________________ > >> >> mapserver-users mailing list > >> >> [hidden email] > >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > >> >> > >> >> ________________________________ > >> >> If you reply to this email, your message will be added to the > >> >> discussion > >> >> below: > >> >> > >> >> > >> >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426084.html > >> >> To unsubscribe from Is it posible to substitute a value from > table for > > >> >> width of line, click here. > >> > > >> > > >> > -- > >> > Regards, > >> > Prabu Raja > >> > > >> > > >> > ________________________________ > >> > View this message in context: Re: Is it posible to substitute > a value > >> > from > >> > table for width of line > >> > Sent from the Mapserver - User mailing list archive at > Nabble.com. > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > [hidden email] > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > >> _______________________________________________ > >> mapserver-users mailing list > >> [hidden email] > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> ________________________________ > >> If you reply to this email, your message will be added to the > discussion > >> below: > >> > >> > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426114.html > >> To unsubscribe from Is it posible to substitute a value from > table for > > >> width of line, click here. > > > > > > -- > > Regards, > > Prabu Raja > > > > > > ________________________________ > > View this message in context: Re: Is it posible to substitute a > value from > > table for width of line > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > [hidden email] > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426142.html > > To unsubscribe from Is it posible to substitute a value from table > for width of line, click here. > > > > > -- > Regards, > Prabu Raja > > > ------------------------------------------------------------------------ > View this message in context: Re: Is it posible to substitute a value > from table for width of line > > 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 woklist at kyngchaos.com Wed Jun 1 06:40:55 2011 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 1 Jun 2011 08:40:55 -0500 Subject: [mapserver-users] font support problem Message-ID: <5B45A4E0-7436-4DD8-8FF9-3AD1FE4E565E@kyngchaos.com> Something has killed my font support in MapServer in the compilation stage. I'm getting a "Keyword FONT is not valid without TrueType font support" error at runtime. It looks like font support is conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in configuration. I don't see those in the GD sources either. ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From woklist at kyngchaos.com Wed Jun 1 06:44:41 2011 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 1 Jun 2011 08:44:41 -0500 Subject: [mapserver-users] font support problem In-Reply-To: <5B45A4E0-7436-4DD8-8FF9-3AD1FE4E565E@kyngchaos.com> References: <5B45A4E0-7436-4DD8-8FF9-3AD1FE4E565E@kyngchaos.com> Message-ID: <8A1D8392-2598-44F5-B6FD-F7E3B9D3AE5B@kyngchaos.com> It would help if I turned off the find words option ;) There it is in configure, I just need to figure out why it was disabled. On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: > Something has killed my font support in MapServer in the compilation stage. > > I'm getting a "Keyword FONT is not valid without TrueType font support" error at runtime. It looks like font support is conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in configuration. I don't see those in the GD sources either. > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From woodbri at swoodbridge.com Wed Jun 1 06:49:52 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 01 Jun 2011 09:49:52 -0400 Subject: [mapserver-users] font support problem In-Reply-To: <8A1D8392-2598-44F5-B6FD-F7E3B9D3AE5B@kyngchaos.com> References: <5B45A4E0-7436-4DD8-8FF9-3AD1FE4E565E@kyngchaos.com> <8A1D8392-2598-44F5-B6FD-F7E3B9D3AE5B@kyngchaos.com> Message-ID: <4DE64380.9070203@swoodbridge.com> ./configure can not find your truetype font includes and/or libs. You need to make sure you have the truetype package installed on Linux this is called something like freetype2. On my debian system: ls /usr/include/freetype2/freetype/ config ftcid.h ftimage.h ftmodapi.h ftsnames.h ftxf86.h freetype.h fterrdef.h ftincrem.h ftmoderr.h ftstroke.h t1tables.h ftbbox.h fterrors.h ftlcdfil.h ftotval.h ftsynth.h ttnameid.h ftbdf.h ftgasp.h ftlist.h ftoutln.h ftsystem.h tttables.h ftbitmap.h ftglyph.h ftlzw.h ftpfr.h fttrigon.h tttags.h ftcache.h ftgxval.h ftmac.h ftrender.h fttypes.h ttunpat.h ftchapters.h ftgzip.h ftmm.h ftsizes.h ftwinfnt.h ls /usr/lib/libfreetype.* /usr/lib/libfreetype.a /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.la /usr/lib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so -Steve W On 6/1/2011 9:44 AM, William Kyngesburye wrote: > It would help if I turned off the find words option ;) There it is in configure, I just need to figure out why it was disabled. > > On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: > >> Something has killed my font support in MapServer in the compilation stage. >> >> I'm getting a "Keyword FONT is not valid without TrueType font support" error at runtime. It looks like font support is conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in configuration. I don't see those in the GD sources either. >> >> ----- >> William Kyngesburye >> http://www.kyngchaos.com/ >> >> "Time is an illusion - lunchtime doubly so." >> >> - Ford Prefect >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Time is an illusion - lunchtime doubly so." > > - Ford Prefect > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woklist at kyngchaos.com Wed Jun 1 07:11:34 2011 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 1 Jun 2011 09:11:34 -0500 Subject: [mapserver-users] font support problem In-Reply-To: <4DE64380.9070203@swoodbridge.com> References: <5B45A4E0-7436-4DD8-8FF9-3AD1FE4E565E@kyngchaos.com> <8A1D8392-2598-44F5-B6FD-F7E3B9D3AE5B@kyngchaos.com> <4DE64380.9070203@swoodbridge.com> Message-ID: <243EC3B5-114F-464C-90CE-AF426138D2FF@kyngchaos.com> Freetype is not the problem. I already figured it out - my gd font support needs -liconv and configure is not adding it to the gd test. It looks like the mapserver configure doesn't get the libs from the gdlib-config script but makes a common guess. I thought I had this working in the past, but it's possible I only recently added iconv support to my gd. I forget. On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote: > ./configure can not find your truetype font includes and/or libs. You need to make sure you have the truetype package installed on Linux this is called something like freetype2. On my debian system: > > ls /usr/include/freetype2/freetype/ > config ftcid.h ftimage.h ftmodapi.h ftsnames.h ftxf86.h > freetype.h fterrdef.h ftincrem.h ftmoderr.h ftstroke.h t1tables.h > ftbbox.h fterrors.h ftlcdfil.h ftotval.h ftsynth.h ttnameid.h > ftbdf.h ftgasp.h ftlist.h ftoutln.h ftsystem.h tttables.h > ftbitmap.h ftglyph.h ftlzw.h ftpfr.h fttrigon.h tttags.h > ftcache.h ftgxval.h ftmac.h ftrender.h fttypes.h ttunpat.h > ftchapters.h ftgzip.h ftmm.h ftsizes.h ftwinfnt.h > > > ls /usr/lib/libfreetype.* > /usr/lib/libfreetype.a /usr/lib/libfreetype.so.6 > /usr/lib/libfreetype.la /usr/lib/libfreetype.so.6.3.18 > /usr/lib/libfreetype.so > > > -Steve W > > On 6/1/2011 9:44 AM, William Kyngesburye wrote: >> It would help if I turned off the find words option ;) There it is in configure, I just need to figure out why it was disabled. >> >> On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: >> >>> Something has killed my font support in MapServer in the compilation stage. >>> >>> I'm getting a "Keyword FONT is not valid without TrueType font support" error at runtime. It looks like font support is conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure out where this is set in configuration. I don't see those in the GD sources either. >>> >>> ----- >>> William Kyngesburye >>> http://www.kyngchaos.com/ >>> >>> "Time is an illusion - lunchtime doubly so." >>> >>> - Ford Prefect >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> ----- >> William Kyngesburye >> http://www.kyngchaos.com/ >> >> "Time is an illusion - lunchtime doubly so." >> >> - Ford Prefect >> >> >> _______________________________________________ >> 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 ----- William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. From daniel.degasperi at r3-gis.com Wed Jun 1 08:25:46 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Wed, 01 Jun 2011 17:25:46 +0200 Subject: [mapserver-users] SLD with filter In-Reply-To: <4DE526D0.20908@dmsolutions.ca> References: <4DE4DE62.8080204@r3-gis.com> <4DE4E0F7.8050202@dmsolutions.ca> <4DE4FA3C.7010708@r3-gis.com> <4DE526D0.20908@dmsolutions.ca> Message-ID: <4DE659FA.7000504@r3-gis.com> Ok, ticket (with test data) created at http://trac.osgeo.org/mapserver/ticket/3902 Am 31/05/2011 19:35, schrieb Yewondwossen Assefa: > Daniel, > > I just did a quick test with 5.6.x (svn) and a postgis layer using > the metadata but could not reproduce a crash. If it is something I can > reproduce using some test map/data/filter, I will investigate. You can > either send them to me or attache it to a trac bug. > > best regards > > On 31/05/2011 10:25 AM, Daniel Degasperi wrote: >> Ok, with the metadata tag described below mapserver does not >> reprocude this error, but it throws a segfault. >> I've put the coredump online: http://www.r3-gis.com/core.333.gz >> >> Best regards, >> Daniel >> >> Am 31/05/2011 14:37, schrieb Yewondwossen Assefa: >>> Hi Daniel, >>> >>> You could possibly try to set on the layer a metadata for the type >>> of your field to force it to string: something like >>> metadata >>> "ows_localita_type" "Character" >>> ... >>> end >>> >>> regards, >>> >>> On 31/05/2011 8:26 AM, Daniel Degasperi wrote: >>>> Hi, >>>> I've a problem with following filter: >>>> >>>> >>>> >>>> localita >>>> 1.102 >>>> >>>> >>>> >>>> Output: >>>> >>>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xmlns:ows="http://www.opengis.net/ows" version="1.1.0" >>>> language="en-US" xsi:schemaLocation="http://www.opengis.net/ows >>>> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"> >>>> >>>> msWFSGetFeature(): WFS server error. >>>> FLTApplyFilterToLayer() failed >>>> msPostGISLayerWhichShapes(): Query error. Error (ERROR: operator >>>> does not exist: text = numeric >>>> LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= >>>> 1.102) ) >>>> ^ >>>> HINT: No operator matches the given name and argument type(s). You >>>> might need to add explicit type casts. >>>> ) executing query: select >>>> "gc_objid","di_id","localita","di_name_1",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') >>>> as geom,"gc_objid" from (SELECT __data__.di_id as >>>> gc_objid,__data__.the_geom, >>>> __data__.di_id,__data__.localita,__data__.di_name_1 FROM >>>> geo.district_area AS __data__) AS foo where the_geom && >>>> GeomFromText('POLYGON((-393764.596966392 >>>> 4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 >>>> 5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 >>>> 4130435.36164853))',32632) and ( (localita= 1.102) >>>> ) >>>> >>>> >>>> >>>> It seems that the value 1.102 is not quoted. Should I add the >>>> attribute xs:type="string" to the literal node or use the >>>> PropertyIsLike condition? >>>> >>>> I'm using MapServer 5.6.6 >>>> >>>> Best regards, >>>> Daniel >>>> >>>> >>> >>> >> >> > > -- Daniel Degasperi R3 GIS Srl - GmbH www.r3-gis.com From woodbri at swoodbridge.com Wed Jun 1 08:24:27 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 01 Jun 2011 11:24:27 -0400 Subject: [mapserver-users] font support problem In-Reply-To: <243EC3B5-114F-464C-90CE-AF426138D2FF@kyngchaos.com> References: <5B45A4E0-7436-4DD8-8FF9-3AD1FE4E565E@kyngchaos.com> <8A1D8392-2598-44F5-B6FD-F7E3B9D3AE5B@kyngchaos.com> <4DE64380.9070203@swoodbridge.com> <243EC3B5-114F-464C-90CE-AF426138D2FF@kyngchaos.com> Message-ID: <4DE659AB.4030905@swoodbridge.com> When you get a chance please write a bug against this issue. It seems that there are a few things that need to be fixed: 1. error message is wrong and misleading 2. configure is not finding the libraries 3. configure is not detecting a missing library (iconv) and disabling freetype if the missing lib is required. 4. freetype without iconv should be ok unless this is a new requirement 5. doc needs to be updated as required Also I would think the a missing -liconv should cause a fatal link error in make. Thanks, -Steve On 6/1/2011 10:11 AM, William Kyngesburye wrote: > Freetype is not the problem. I already figured it out - my gd font > support needs -liconv and configure is not adding it to the gd test. > It looks like the mapserver configure doesn't get the libs from the > gdlib-config script but makes a common guess. > > I thought I had this working in the past, but it's possible I only > recently added iconv support to my gd. I forget. > > On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote: > >> ./configure can not find your truetype font includes and/or libs. >> You need to make sure you have the truetype package installed on >> Linux this is called something like freetype2. On my debian >> system: >> >> ls /usr/include/freetype2/freetype/ config ftcid.h >> ftimage.h ftmodapi.h ftsnames.h ftxf86.h freetype.h >> fterrdef.h ftincrem.h ftmoderr.h ftstroke.h t1tables.h ftbbox.h >> fterrors.h ftlcdfil.h ftotval.h ftsynth.h ttnameid.h ftbdf.h >> ftgasp.h ftlist.h ftoutln.h ftsystem.h tttables.h >> ftbitmap.h ftglyph.h ftlzw.h ftpfr.h fttrigon.h >> tttags.h ftcache.h ftgxval.h ftmac.h ftrender.h >> fttypes.h ttunpat.h ftchapters.h ftgzip.h ftmm.h >> ftsizes.h ftwinfnt.h >> >> >> ls /usr/lib/libfreetype.* /usr/lib/libfreetype.a >> /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.la >> /usr/lib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so >> >> >> -Steve W >> >> On 6/1/2011 9:44 AM, William Kyngesburye wrote: >>> It would help if I turned off the find words option ;) There it >>> is in configure, I just need to figure out why it was disabled. >>> >>> On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: >>> >>>> Something has killed my font support in MapServer in the >>>> compilation stage. >>>> >>>> I'm getting a "Keyword FONT is not valid without TrueType font >>>> support" error at runtime. It looks like font support is >>>> conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure >>>> out where this is set in configuration. I don't see those in >>>> the GD sources either. >>>> >>>> ----- William Kyngesburye >>>> http://www.kyngchaos.com/ >>>> >>>> "Time is an illusion - lunchtime doubly so." >>>> >>>> - Ford Prefect >>>> >>>> >>>> _______________________________________________ mapserver-users >>>> mailing list mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> ----- William Kyngesburye >>> http://www.kyngchaos.com/ >>> >>> "Time is an illusion - lunchtime doubly so." >>> >>> - Ford Prefect >>> >>> >>> _______________________________________________ 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 > > ----- William Kyngesburye > http://www.kyngchaos.com/ > > The equator is so long, it could encircle the earth completely once. > From woklist at kyngchaos.com Wed Jun 1 08:52:16 2011 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 1 Jun 2011 10:52:16 -0500 Subject: [mapserver-users] font support problem In-Reply-To: <4DE659AB.4030905@swoodbridge.com> References: <5B45A4E0-7436-4DD8-8FF9-3AD1FE4E565E@kyngchaos.com> <8A1D8392-2598-44F5-B6FD-F7E3B9D3AE5B@kyngchaos.com> <4DE64380.9070203@swoodbridge.com> <243EC3B5-114F-464C-90CE-AF426138D2FF@kyngchaos.com> <4DE659AB.4030905@swoodbridge.com> Message-ID: Freetype is found. Iconv is found. GD is found. gdImageStringFT test fails because it doesn't try with iconv. I do see a test for if GD needs iconv in configure, but for some reason it's not getting to this test for me... I'll look into it more later this evening when I have time. On Jun 1, 2011, at 10:24 AM, Stephen Woodbridge wrote: > When you get a chance please write a bug against this issue. It seems that there are a few things that need to be fixed: > > 1. error message is wrong and misleading > 2. configure is not finding the libraries > 3. configure is not detecting a missing library (iconv) and disabling freetype if the missing lib is required. > 4. freetype without iconv should be ok unless this is a new requirement > 5. doc needs to be updated as required > > Also I would think the a missing -liconv should cause a fatal link error in make. > > Thanks, > -Steve > > On 6/1/2011 10:11 AM, William Kyngesburye wrote: >> Freetype is not the problem. I already figured it out - my gd font >> support needs -liconv and configure is not adding it to the gd test. >> It looks like the mapserver configure doesn't get the libs from the >> gdlib-config script but makes a common guess. >> >> I thought I had this working in the past, but it's possible I only >> recently added iconv support to my gd. I forget. >> >> On Jun 1, 2011, at 8:49 AM, Stephen Woodbridge wrote: >> >>> ./configure can not find your truetype font includes and/or libs. >>> You need to make sure you have the truetype package installed on >>> Linux this is called something like freetype2. On my debian >>> system: >>> >>> ls /usr/include/freetype2/freetype/ config ftcid.h >>> ftimage.h ftmodapi.h ftsnames.h ftxf86.h freetype.h >>> fterrdef.h ftincrem.h ftmoderr.h ftstroke.h t1tables.h ftbbox.h >>> fterrors.h ftlcdfil.h ftotval.h ftsynth.h ttnameid.h ftbdf.h >>> ftgasp.h ftlist.h ftoutln.h ftsystem.h tttables.h >>> ftbitmap.h ftglyph.h ftlzw.h ftpfr.h fttrigon.h >>> tttags.h ftcache.h ftgxval.h ftmac.h ftrender.h >>> fttypes.h ttunpat.h ftchapters.h ftgzip.h ftmm.h >>> ftsizes.h ftwinfnt.h >>> >>> >>> ls /usr/lib/libfreetype.* /usr/lib/libfreetype.a >>> /usr/lib/libfreetype.so.6 /usr/lib/libfreetype.la >>> /usr/lib/libfreetype.so.6.3.18 /usr/lib/libfreetype.so >>> >>> >>> -Steve W >>> >>> On 6/1/2011 9:44 AM, William Kyngesburye wrote: >>>> It would help if I turned off the find words option ;) There it >>>> is in configure, I just need to figure out why it was disabled. >>>> >>>> On Jun 1, 2011, at 8:40 AM, William Kyngesburye wrote: >>>> >>>>> Something has killed my font support in MapServer in the >>>>> compilation stage. >>>>> >>>>> I'm getting a "Keyword FONT is not valid without TrueType font >>>>> support" error at runtime. It looks like font support is >>>>> conditionalized on USE_GD_TTF or USE_GD_FT, but I can't figure >>>>> out where this is set in configuration. I don't see those in >>>>> the GD sources either. >>>>> >>>>> ----- William Kyngesburye >>>>> http://www.kyngchaos.com/ >>>>> >>>>> "Time is an illusion - lunchtime doubly so." >>>>> >>>>> - Ford Prefect >>>>> >>>>> >>>>> _______________________________________________ mapserver-users >>>>> mailing list mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> ----- William Kyngesburye >>>> http://www.kyngchaos.com/ >>>> >>>> "Time is an illusion - lunchtime doubly so." >>>> >>>> - Ford Prefect >>>> >>>> >>>> _______________________________________________ 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 >> >> ----- William Kyngesburye >> http://www.kyngchaos.com/ >> >> The equator is so long, it could encircle the earth completely once. >> > ----- William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy From david.fawcett at state.mn.us Wed Jun 1 08:50:28 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 1 Jun 2011 10:50:28 -0500 Subject: [mapserver-users] Hwy Shields Message-ID: Does anyone have a highway shield example map file and symbol set that they are willing to share? Thanks, David. From jmckenna at gatewaygeomatics.com Wed Jun 1 08:59:24 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 01 Jun 2011 12:59:24 -0300 Subject: [mapserver-users] Hwy Shields In-Reply-To: References: Message-ID: <4DE661DC.1080405@gatewaygeomatics.com> On 11-06-01 12:50 PM, Fawcett, David (MPCA) wrote: > Does anyone have a highway shield example map file and symbol set that they are willing to share? Hi David, I recommend that you try the OSM/MapServer steps, and in the end you'll have a nice mapfile with all of the tricks (such as shields) running locally: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData (as you travel down that path, feel free to edit that wiki page with your feedback for everyone, thanks!) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bfraser at geoanalytic.com Wed Jun 1 09:40:26 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 01 Jun 2011 10:40:26 -0600 Subject: [mapserver-users] Hwy Shields In-Reply-To: References: Message-ID: <4DE66B7A.9020107@geoanalytic.com> David, While the below example uses a very simple symbol (a circle), it may get you started: #Circle symbol SYMBOL NAME 'CIRCLE' TYPE ellipse FILLED true POINTS 1 1 END END LAYER # Roads NAME 'Roads' TYPE LINE : CLASS LABEL STYLE SYMBOL 'CIRCLE' SIZE 8 OUTLINECOLOR 0 0 0 COLOR 255 255 255 END FONT "trebuc" TYPE TRUETYPE POSITION CC ALIGN CENTER WRAP ' ' SIZE 5 BUFFER 1 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 ANGLE 0 PARTIALS FALSE ANTIALIAS TRUE MINDISTANCE 250 MINFEATURESIZE 10 END # Label END #Class END #Layer Best Regards, Brent Fraser On 6/1/2011 9:50 AM, Fawcett, David (MPCA) wrote: > Does anyone have a highway shield example map file and symbol set that they are willing to share? > > Thanks, > > David. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From heath at midnighthour.org Wed Jun 1 09:57:12 2011 From: heath at midnighthour.org (B. Heath Robinson) Date: Wed, 1 Jun 2011 11:57:12 -0500 Subject: [mapserver-users] Geom Field with PostGIS Message-ID: <1EB72C0A-4823-4D54-AB9A-7EA7A5E22E92@midnighthour.org> I am using tilecache with mapserver to serve map tiles. I seem to be having a problem because my geometry column is not named 'geom'. Below is my mapfile exerpt and the error message. You can see the the SQL that is built is not correct. I did some digging in the source code and found the lines I think are the culprit. I have also included these below. Mapfile Exerpt CONNECTIONTYPE postgis CONNECTION "dbname='gisdb' host='localhost' port=5432 user='webuser' password='*********' sslmode=disable" DATA 'shape FROM "maps_parcel" USING UNIQUE id USING srid=4326' ERROR An error occurred: msDrawMap(): Image handling error. Failed to draw layer named 'parcels'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: column "shape" does not exist LINE 1: ..."color",encode(AsBinary(force_collection(force_2d("shape")),... ^ ) executing query: select "id","color",encode(AsBinary(force_collection(force_2d("shape")),'NDR'),'hex') as geom,"id" from "maps_parcel" where shape && GeomFromText('POLYGON((-97.4212539097114 31.0482371048694,-97.4212539097114 31.0529247835391,-97.4157822026614 31.0529247835391,-97.4157822026614 31.0482371048694,-97.4212539097114 31.0482371048694))',4326) File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Service.py", line 303, in wsgiHandler format, image = service.dispatchRequest( fields, path_info, req_method, host ) File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Service.py", line 208, in dispatchRequest return self.renderTile(tile, params.has_key('FORCE')) File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Service.py", line 138, in renderTile data = layer.render(tile, force=force) File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Layer.py", line 444, in render return self.renderTile(tile) File "/srv/ve/two-release/lib/python2.6/site-packages/TileCache/Layers/MapServer.py", line 51, in renderTile mapImage = wms.draw() File "/srv/ve/two-release/lib/python2.6/site-packages/mapscript.py", line 1466, in draw def draw(*args): return _mapscript.mapObj_draw(*args) Links are to trac source code 1612 - from msPostGISBuildSQLItems It aliases all geom columns to 'geom' 1861 - from msPostGISBuildSQLWhere It builds the BBOX part of the where clause with the geom column from the config file -------------- next part -------------- An HTML attachment was scrubbed... URL: From Johan.Forsman at LA.GOV Wed Jun 1 12:15:05 2011 From: Johan.Forsman at LA.GOV (Johan Forsman) Date: Wed, 1 Jun 2011 14:15:05 -0500 Subject: [mapserver-users] RE: Hwy Shields In-Reply-To: References: Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) > Sent: Wednesday, June 01, 2011 10:50 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Hwy Shields > > Does anyone have a highway shield example map file and symbol set that > they are willing to share? > > Thanks, > > David. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users I did this as one of the first "advanced" mapfile projects when I started with MapServer, so it probably is both inelegant and incorrect, but I used a line layer for the roads and an annotation layer for the labels. I don't recall precisely the reason I did an annotation layer, but it may have had to do with my preferred positioning of the labels. Here's an partial extract from the symbol set and mapfile: # Highway shields SYMBOL NAME 'interstate' TYPE pixmap IMAGE "interstate.png" END LAYER # Freeways at small scale DATA 'webmaps_LDOTD_2007_hwys' name freeways_small type line OPACITY 100 status on labelitem "HWY_NUM" LABELCACHE on classitem "SHIELD" MINSCALEDENOM 250001 class EXPRESSION "I" NAME "Interstate highways" style color 0 92 230 width 3 antialias true end style color 254 254 254 width 1 antialias true end end #class end #layer freeways_small LAYER # shields and labels for freeways at small scale DATA 'webmaps_LDOTD_2007_hwys' name freeways_small_labels type annotation OPACITY 100 status on labelitem "HWY_NUM" LABELCACHE on classitem "SHIELD" MINSCALEDENOM 250001 class EXPRESSION "I" style SYMBOL 'interstate' end label type truetype antialias true font arial size 8 position cc ANGLE 0 color 254 254 254 partials false MINDISTANCE 200 MINFEATURESIZE auto end #label end #class end #layer freeways_small_labels Hope that helps get you started. Take care, Johan Forsman Geologist Safe Drinking Water Program Louisiana Department of Health and Hospitals Telephone: 225.342.7309 Telefax: 225.342.7303 From bfraser at geoanalytic.com Wed Jun 1 13:00:36 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 01 Jun 2011 14:00:36 -0600 Subject: [mapserver-users] RE: Hwy Shields In-Reply-To: References: Message-ID: <4DE69A64.4050202@geoanalytic.com> Johan, That's the "classic" way of doing it: layer 1 (line): line symbology layer 2 (anno): label with point symbol under the label The "new" way is to use a STYLE object (referencing the point symbol) inside the LABEL object of the line layer so only one layer required. Best Regards, Brent Fraser On 6/1/2011 1:15 PM, Johan Forsman wrote: >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) >> Sent: Wednesday, June 01, 2011 10:50 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Hwy Shields >> >> Does anyone have a highway shield example map file and symbol set that >> they are willing to share? >> >> Thanks, >> >> David. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > I did this as one of the first "advanced" mapfile projects when I started with MapServer, so it probably is both inelegant and incorrect, but I used a line layer for the roads and an annotation layer for the labels. I don't recall precisely the reason I did an annotation layer, but it may have had to do with my preferred positioning of the labels. > > Here's an partial extract from the symbol set and mapfile: > > # Highway shields > SYMBOL > NAME 'interstate' > TYPE pixmap > IMAGE "interstate.png" > END > > LAYER # Freeways at small scale > DATA 'webmaps_LDOTD_2007_hwys' > name freeways_small > type line > OPACITY 100 > status on > labelitem "HWY_NUM" > LABELCACHE on > classitem "SHIELD" > MINSCALEDENOM 250001 > class > EXPRESSION "I" > NAME "Interstate highways" > style > color 0 92 230 > width 3 > antialias true > end > style > color 254 254 254 > width 1 > antialias true > end > end #class > end #layer freeways_small > > LAYER # shields and labels for freeways at small scale > DATA 'webmaps_LDOTD_2007_hwys' > name freeways_small_labels > type annotation > OPACITY 100 > status on > labelitem "HWY_NUM" > LABELCACHE on > classitem "SHIELD" > MINSCALEDENOM 250001 > class > EXPRESSION "I" > style > SYMBOL 'interstate' > end > label > type truetype > antialias true > font arial > size 8 > position cc > ANGLE 0 > color 254 254 254 > partials false > MINDISTANCE 200 > MINFEATURESIZE auto > end #label > end #class > end #layer freeways_small_labels > > Hope that helps get you started. > > Take care, > > Johan Forsman > Geologist > Safe Drinking Water Program > Louisiana Department of Health and Hospitals > Telephone: 225.342.7309 > Telefax: 225.342.7303 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Wed Jun 1 13:33:34 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 01 Jun 2011 14:33:34 -0600 Subject: [mapserver-users] Hwy Shields In-Reply-To: References: Message-ID: <4DE6A21E.8010008@geoanalytic.com> This is kinda cool: http://commons.wikimedia.org/wiki/Category:Highway_shield_blanks Best Regards, Brent Fraser On 6/1/2011 9:50 AM, Fawcett, David (MPCA) wrote: > Does anyone have a highway shield example map file and symbol set that they are willing to share? > > Thanks, > > David. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From luca.casagrande at gmail.com Wed Jun 1 14:29:31 2011 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Wed, 1 Jun 2011 14:29:31 -0700 (PDT) Subject: [mapserver-users] CLUSTER and GetFeatureInfo Message-ID: <1306963771857-6428949.post@n2.nabble.com> Hello everybody, I have a working demo with the new CLUSTER class working fine. What I'd like to do is to get the list of the values for a specific attribute, for every feature in the cluster. Is this possible, for example, with a GetFeatureInfo request? Thanks Luca -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/CLUSTER-and-GetFeatureInfo-tp6428949p6428949.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Wed Jun 1 14:51:53 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 1 Jun 2011 23:51:53 +0200 Subject: [mapserver-users] CLUSTER and GetFeatureInfo In-Reply-To: <1306963771857-6428949.post@n2.nabble.com> References: <1306963771857-6428949.post@n2.nabble.com> Message-ID: 2011/6/1 Luca Casagrande > Hello everybody, > I have a working demo with the new CLUSTER class working fine. What I'd > like > to do is to get the list of the values for a specific attribute, for every > feature in the cluster. Is this possible, for example, with a > GetFeatureInfo > request? > > Luca, If you specify the CLUSTER_GET_ALL_SHAPES processing option then all the features making up the cluster are returned instead of a single feature at the same clustered location. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.ngai at ec.gc.ca Wed Jun 1 16:18:55 2011 From: kevin.ngai at ec.gc.ca (kngai) Date: Wed, 1 Jun 2011 16:18:55 -0700 (PDT) Subject: [mapserver-users] MAXLENGTH not working with WRAP Message-ID: <1306970335929-6429308.post@n2.nabble.com> Hi Everyone, I have setup a wms server to display a polygon on OpenLayers. I can show the labels with WRAP " ". But when I add MAXLENGTH, the map image (tiles) simply doesn't render anymore. Here is my mapfile LABEL: LABEL COLOR 255 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT vera-it SIZE 8 ANTIALIAS TRUE POSITION CC PARTIALS FALSE BUFFER 3 MAXLENGTH 8 WRAP " " END Am I missing something here? ----- Kevin Ngai -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MAXLENGTH-not-working-with-WRAP-tp6429308p6429308.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luca.casagrande at gmail.com Wed Jun 1 23:35:43 2011 From: luca.casagrande at gmail.com (luca.casagrande at gmail.com) Date: Thu, 2 Jun 2011 08:35:43 +0200 Subject: [mapserver-users] CLUSTER and GetFeatureInfo In-Reply-To: References: <1306963771857-6428949.post@n2.nabble.com> Message-ID: 2011/6/1 Tamas Szekeres : > > 2011/6/1 Luca Casagrande >> >> Hello everybody, >> I have a working demo with the new CLUSTER class working fine. What I'd >> like >> to do is to get the list of the values for a specific attribute, for every >> feature in the cluster. Is this possible, for example, with a >> GetFeatureInfo >> request? >> > > Luca, > > If you specify the CLUSTER_GET_ALL_SHAPES processing option then all the > features making up the cluster are returned instead of a single feature at > the same clustered location. > > Best regards, > > Tamas Thanks Tamas. Is this feature currently only in trunk or it's fine with 6.0.0? Ciao L. -- Luca Casagrande twitter: lucacasagrande From szekerest at gmail.com Thu Jun 2 00:13:30 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 2 Jun 2011 09:13:30 +0200 Subject: [mapserver-users] CLUSTER and GetFeatureInfo In-Reply-To: References: <1306963771857-6428949.post@n2.nabble.com> Message-ID: Luca, This is in trunk only. See the related ticket at: http://trac.osgeo.org/mapserver/ticket/3873 Best regards, Tamas 2011/6/2 luca.casagrande at gmail.com > 2011/6/1 Tamas Szekeres : > > > > 2011/6/1 Luca Casagrande > >> > >> Hello everybody, > >> I have a working demo with the new CLUSTER class working fine. What I'd > >> like > >> to do is to get the list of the values for a specific attribute, for > every > >> feature in the cluster. Is this possible, for example, with a > >> GetFeatureInfo > >> request? > >> > > > > Luca, > > > > If you specify the CLUSTER_GET_ALL_SHAPES processing option then all the > > features making up the cluster are returned instead of a single feature > at > > the same clustered location. > > > > Best regards, > > > > Tamas > > Thanks Tamas. > Is this feature currently only in trunk or it's fine with 6.0.0? > > Ciao > L. > > -- > Luca Casagrande > twitter: lucacasagrande > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.jackson at cerc.co.uk Thu Jun 2 03:37:43 2011 From: mark.jackson at cerc.co.uk (Mark Jackson) Date: Thu, 02 Jun 2011 11:37:43 +0100 Subject: [mapserver-users] MapServer and NetCDF with date-time Message-ID: <5.1.1.6.1.20110602102413.01abe690@10.1.0.4> Hi Does anyone have any advice on the best way to serve NetCDF floating point rasters with a date-time dimension? I want to use MapServer to serve up WMS, WMS-T and WCS from NetCDF 3 and NetCDF 4. The NetCDF files will be compliant with the CF conventions and will contain lat, long and date-time with floating-point raster data. Would MapServer / GDAL support this? I've seen that GDAL supports NetCDF but it's unclear whether it supports NetCDF 4 and I can't see any mention of whether it supports WMS-T. Presumably it would need to treat the date-time data like a tile index. Maybe GDAL could read the NetCDF and create a tile index for MapServer (in PostGIS?). I've also found a project which did something very similar called ADAGUC. These guys wrote their own GDAL driver for NetCDF 4 with lat,long,date-time and patched MapServer. Would that still be the best approach now? This PDF describes what they did. I may also contact them directly. http://adaguc.knmi.nl/contents/documents/workshop2008/presentations/ADAGUC_WS2_20081205_Plieger_deReus.pdf Does anyone have any advice? Thanks in advance Mark ____________________________________________________________ Mark Jackson BSc ARCS MSc Cambridge Environmental Research Consultants Ltd 3 King's Parade, Cambridge, CB2 1SJ tel: 01223 357773 fax: 01223 357492 web: www.cerc.co.uk email: mark.jackson at cerc.co.uk ____________________________________________________________ ******************************************************************************************* Cambridge Environmental Research Consultants Ltd. cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network. This e-mail and any files transmitted with it are private and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, this e-mail and any accompanying files have been transmitted to you in error. You may not copy, distribute or make any other use of the information contained in them. CERC is a trading name of Cambridge Environmental Research Consultants Ltd, registered at Cardiff with number 1926883. Registered Office address: 3 Kings Parade, Cambridge, CB2 1SJ. From jxjackso at franklincountyohio.gov Thu Jun 2 05:59:50 2011 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Thu, 2 Jun 2011 08:59:50 -0400 Subject: [mapserver-users] specify location of gdal toolset Message-ID: I've been trying to get MapServer to display ecw files. I got the 3.3 libecw compiled into gdal, but my compile of gdal ended up in /usr/local/bin instead of /usr/bin, which is where I assume mapserver is pulling gdal from. Is there an easy way to "point" MapServer to my custom compiled gdal? Thanks --John Jackson --Deputy Auditor --Franklin County Auditor's Office --jxjackso at franklincountyohio.gov From jjschlafley at yahoo.com Thu Jun 2 06:26:51 2011 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Thu, 2 Jun 2011 06:26:51 -0700 (PDT) Subject: [mapserver-users] Re: Message-ID: <376440.90578.qm@web130224.mail.mud.yahoo.com> http://becomeadv.com/indexz29X.php From mbp at geomtech.com Thu Jun 2 12:16:12 2011 From: mbp at geomtech.com (Mark Phillips) Date: Thu, 2 Jun 2011 15:16:12 -0400 Subject: [mapserver-users] WCS reprojection issue Message-ID: Hi, I'm struggling with an issue related to projections in a MapServer WCS service. I've got a raster data file that is in EPSG:2163, and I'd like to serve it via WCS in EPSG:4326. The only way I have managed to get this to work is to reproject the data manually in advance and then reference the ESPG:4326 copy of the data in my mapfile. When I do that, with the mapfile below, the service seems to work beautifully. What I really want, though, is to be able to leave my data in its original projection and have MapServer reproject on the fly. When I change the mapfile to use the original ESPG:2163 copy of the data, and update the relevant projections in the mapfile from 4326 to 2163, though, the service breaks, in the sense that the data shows up in (very much) the wrong place. I first tried just changing the projections commented in the mapfile below with ###LAYER_PROJECTION and ###LAYER_WCS_SRS from 4326 to 2163 (after changing the DATA line in the layer to point to the EPSG:2163 copy of the data, of course), but that didn't work. I then experimented with changing the ###SERVICE_WCS_SRS line and/or the ###MAP_PROJECTION as well, but no luck. What is especially confusing is that I *can* get this to work for a WMS service. In the case of WMS, MapServer seems quite happy to serve EPSG:2163 data in ESPG:4326, as long as the ###LAYER_PROJECTION and ###LAYER_WCS_SRS lines say EPSG:2163 (with "wcs" replaced by "wms", of course). I'm sure that part of my problem is that I don't completely understand the purpose served by each of the various projections specified in the mapfile. Can someone offer some insight into what the correct approach is to getting MapServer to reproject on the fly in a WCS? In case it matters: I'm using MapServer 6.0, and am testing the WCS with ArcMap 9.3. Thanks! --Mark Here is my working mapfile for ESPG:4326: MAP NAME lucky STATUS ON SIZE 600 400 EXTENT -83.938 34.746 -81.340 36.361 IMAGECOLOR 255 255 255 WEB METADATA "ows_enable_request" "*" "wcs_label" "My WCS Service" "wcs_srs" "EPSG:4326" ###SERVICE_WCS_SRS END END PROJECTION "init=epsg:4326" ###MAP_PROJECTION END LAYER NAME mylayer TYPE RASTER DUMP TRUE STATUS OFF DATA sampledata_wgs84/tif_wgs84.tif INCLUDE "colormap.cmap" PROJECTION "init=epsg:4326" ###LAYER_PROJECTION END METADATA "wcs_srs" "EPSG:4326" ###LAYER_WCS_SRS "wcs_label" "My Layer" "wcs_rangeset_name" "My Range" "wcs_rangeset_label" "My Label" END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulcarlisle at comcast.net Fri Jun 3 02:21:43 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Fri, 3 Jun 2011 02:21:43 -0700 (PDT) Subject: [mapserver-users] WFS Layers and Groups Message-ID: <1307092903017-6434573.post@n2.nabble.com> When I add 'GROUP [group_name]' to a layer and load the mapfile in QGis as a WMS project, layers are grouped into drop-down lists by group_name. When I try to do the same thing using WFS, the layers are displayed as a single list; no group names appear. What am I missing? I believe there is something wrong with my MapServer configuration, but I don't know what it is. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Layers-and-Groups-tp6434573p6434573.html Sent from the Mapserver - User mailing list archive at Nabble.com. From javier.maestu at gmail.com Fri Jun 3 05:15:09 2011 From: javier.maestu at gmail.com (Javier Maestu) Date: Fri, 3 Jun 2011 14:15:09 +0200 Subject: [mapserver-users] WMS Time with Shapefiles or Cascading WMS Message-ID: <015301cc21e7$e28d6120$a7a82360$@gmail.com> Hi all, I'm evaluating to create a WMS service using TIME parameters, this service will have their DATA on shapefiles (not DB). So, I have a set of shapefile each month. My goal is to create a service WMS, that accept a parameter TIME that can generate images using this parameter. For example: I have 3 shapes: January.shp February.shp March.shp And then, I would like to create a service that using the parameter TIME represent the correct shapefile (Jan, Feb, Mar) in function of TIME of the request(01-01-2011). I read and search documentation, but I just find information about raster datasets using PostGIS. If this is not possible, do you know if I can do something similar using MapServer as a WMS client? Thank you! Javier -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Jun 3 06:00:17 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 03 Jun 2011 09:00:17 -0400 Subject: [mapserver-users] WFS Layers and Groups In-Reply-To: <1307092903017-6434573.post@n2.nabble.com> References: <1307092903017-6434573.post@n2.nabble.com> Message-ID: <4DE8DAE1.1030406@mapgears.com> On 11-06-03 05:21 AM, SixDegrees wrote: > When I add 'GROUP [group_name]' to a layer and load the mapfile in QGis as a > WMS project, layers are grouped into drop-down lists by group_name. > > When I try to do the same thing using WFS, the layers are displayed as a > single list; no group names appear. > > What am I missing? I believe there is something wrong with my MapServer > configuration, but I don't know what it is. > Nothing wrong with your MapServer config. Unless I'm mistaken, the WFS 1.1.0 spec does not allow nesting of layers (called FeatureTypes in WFS lingo)... WFS only allows for a flat list of FeatureTypes. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From paulcarlisle at comcast.net Fri Jun 3 06:21:04 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Fri, 3 Jun 2011 06:21:04 -0700 (PDT) Subject: [mapserver-users] Re: WFS Layers and Groups In-Reply-To: <4DE8DAE1.1030406@mapgears.com> References: <1307092903017-6434573.post@n2.nabble.com> <4DE8DAE1.1030406@mapgears.com> Message-ID: <1307107264399-6435246.post@n2.nabble.com> I'm coming to the same conclusion after a good deal of searching - WFS simply doesn't allow grouping or nesting. Ugh. I'm going to keep checking, holding on to the false hope that there's some way to do this. But it's not looking good at the moment. Thanks for your reply. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-Layers-and-Groups-tp6434573p6435246.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Fri Jun 3 07:26:59 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Jun 2011 17:26:59 +0300 Subject: [mapserver-users] WCS reprojection issue References: Message-ID: Hi, Response_crs exists for letting user to select the output CRS. Have you tried it yet? There are better possibilities for a success and especially for understanding what is really happening if you write WCS requests by hand and semd them with a browser instead of using a GIS client. Request examples at http://mapserver.org/ogc/wcs_server.html are good to start with. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Mark Phillips L?hetetty: to 2.6.2011 22:16 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WCS reprojection issue Hi, I'm struggling with an issue related to projections in a MapServer WCS service. I've got a raster data file that is in EPSG:2163, and I'd like to serve it via WCS in EPSG:4326. The only way I have managed to get this to work is to reproject the data manually in advance and then reference the ESPG:4326 copy of the data in my mapfile. When I do that, with the mapfile below, the service seems to work beautifully. What I really want, though, is to be able to leave my data in its original projection and have MapServer reproject on the fly. When I change the mapfile to use the original ESPG:2163 copy of the data, and update the relevant projections in the mapfile from 4326 to 2163, though, the service breaks, in the sense that the data shows up in (very much) the wrong place. I first tried just changing the projections commented in the mapfile below with ###LAYER_PROJECTION and ###LAYER_WCS_SRS from 4326 to 2163 (after changing the DATA line in the layer to point to the EPSG:2163 copy of the data, of course), but that didn't work. I then experimented with changing the ###SERVICE_WCS_SRS line and/or the ###MAP_PROJECTION as well, but no luck. What is especially confusing is that I *can* get this to work for a WMS service. In the case of WMS, MapServer seems quite happy to serve EPSG:2163 data in ESPG:4326, as long as the ###LAYER_PROJECTION and ###LAYER_WCS_SRS lines say EPSG:2163 (with "wcs" replaced by "wms", of course). I'm sure that part of my problem is that I don't completely understand the purpose served by each of the various projections specified in the mapfile. Can someone offer some insight into what the correct approach is to getting MapServer to reproject on the fly in a WCS? In case it matters: I'm using MapServer 6.0, and am testing the WCS with ArcMap 9.3. Thanks! --Mark Here is my working mapfile for ESPG:4326: MAP NAME lucky STATUS ON SIZE 600 400 EXTENT -83.938 34.746 -81.340 36.361 IMAGECOLOR 255 255 255 WEB METADATA "ows_enable_request" "*" "wcs_label" "My WCS Service" "wcs_srs" "EPSG:4326" ###SERVICE_WCS_SRS END END PROJECTION "init=epsg:4326" ###MAP_PROJECTION END LAYER NAME mylayer TYPE RASTER DUMP TRUE STATUS OFF DATA sampledata_wgs84/tif_wgs84.tif INCLUDE "colormap.cmap" PROJECTION "init=epsg:4326" ###LAYER_PROJECTION END METADATA "wcs_srs" "EPSG:4326" ###LAYER_WCS_SRS "wcs_label" "My Layer" "wcs_rangeset_name" "My Range" "wcs_rangeset_label" "My Label" END END END From wyan at ciimar.up.pt Fri Jun 3 07:07:28 2011 From: wyan at ciimar.up.pt (wyan at ciimar.up.pt) Date: Fri, 03 Jun 2011 16:07:28 +0200 Subject: [mapserver-users] setRotation problem Message-ID: <20110603160728.socj6n4cv4ggs8kw@webmail.ciimar.up.pt> HI, I wanna use the mapserver's rotation fuction with php script, but when i used this function the map view rectangle rotated strangely, I cannot find the rotation regular rules, enclosed with my simplised php code, attachments are pics of the results. appriciate it if you can tell me what's the problems. regards william codes are following setRotation(90); $roate=$map->setRotation(0.00000001); //************** here you see, even with a small angle, the map could not rotated as expection //echo $roate; $image=$map->draw(); $image_url=$image->saveWebImage(); ?> ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ----- ?? (???? 2012?01?01? ??) https://webmail.ciimar.up.pt/imp/attachment.php?u=wyan&t=1307110048&f=before.bmp https://webmail.ciimar.up.pt/imp/attachment.php?u=wyan&t=1307110048&f=after.bmp -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From mbp at geomtech.com Fri Jun 3 08:14:44 2011 From: mbp at geomtech.com (Mark Phillips) Date: Fri, 3 Jun 2011 11:14:44 -0400 Subject: [mapserver-users] WCS reprojection issue In-Reply-To: References: Message-ID: Thanks for your suggestion; I will try this. My end goal, however, is to set up a MapServer WCS that can be consumed by ArcMap. This project is for a client that uses ArcMap, and it's not an option for me to tell them to use something else. So, although writing WCS queries by hand for testing might be instructive, as far as I know there is no way for me to customize the queries that ArcMap generates --- the service itself needs to be set up so that it will just work in ArcMap. Any ideas on how to do that? Are there any known compatibility issues with ArcMap? Should I force ArcMap to use a specific WCS version? (I've been telling it to use version 1.0.0 so far.) --Mark On Fri, Jun 3, 2011 at 10:26 AM, Rahkonen Jukka wrote: > Hi, > > Response_crs exists for letting user to select the output CRS. Have you > tried it yet? > There are better possibilities for a success and especially for > understanding what is really happening if you write WCS requests by hand and > semd them with a browser instead of using a GIS client. Request examples at > http://mapserver.org/ogc/wcs_server.html are good to start with. > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Mark Phillips > L?hetetty: to 2.6.2011 22:16 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] WCS reprojection issue > > Hi, > > I'm struggling with an issue related to projections in a MapServer WCS > service. I've got a raster data file that is in EPSG:2163, and I'd like to > serve it via WCS in EPSG:4326. The only way I have managed to get this to > work is to reproject the data manually in advance and then reference the > ESPG:4326 copy of the data in my mapfile. When I do that, with the mapfile > below, the service seems to work beautifully. What I really want, though, > is > to be able to leave my data in its original projection and have MapServer > reproject on the fly. > > When I change the mapfile to use the original ESPG:2163 copy of the data, > and update the relevant projections in the mapfile from 4326 to 2163, > though, the service breaks, in the sense that the data shows up in (very > much) the wrong place. I first tried just changing the > projections commented in the mapfile below with ###LAYER_PROJECTION and > ###LAYER_WCS_SRS from 4326 to 2163 (after changing the DATA line in the > layer to point to the EPSG:2163 copy of the data, of course), but that > didn't work. I then experimented with changing the ###SERVICE_WCS_SRS line > and/or the ###MAP_PROJECTION as well, but no luck. > > What is especially confusing is that I *can* get this to work for a WMS > service. In the case of WMS, MapServer seems quite happy to serve > EPSG:2163 > data in ESPG:4326, as long as the ###LAYER_PROJECTION and ###LAYER_WCS_SRS > lines say EPSG:2163 (with "wcs" replaced by "wms", of course). > > I'm sure that part of my problem is that I don't completely understand the > purpose served by each of the various projections specified in the mapfile. > Can someone offer some insight into what the correct approach is to > getting > MapServer to reproject on the fly in a WCS? > > In case it matters: I'm using MapServer 6.0, and am testing the WCS with > ArcMap 9.3. > > Thanks! > > --Mark > > Here is my working mapfile for ESPG:4326: > > MAP > NAME lucky > STATUS ON > SIZE 600 400 > EXTENT -83.938 34.746 -81.340 36.361 > IMAGECOLOR 255 255 255 > > WEB > METADATA > "ows_enable_request" "*" > "wcs_label" "My WCS Service" > "wcs_srs" "EPSG:4326" ###SERVICE_WCS_SRS > END > END > > PROJECTION > "init=epsg:4326" ###MAP_PROJECTION > END > > LAYER > NAME mylayer > TYPE RASTER > DUMP TRUE > STATUS OFF > DATA sampledata_wgs84/tif_wgs84.tif > INCLUDE "colormap.cmap" > PROJECTION > "init=epsg:4326" ###LAYER_PROJECTION > END > METADATA > "wcs_srs" "EPSG:4326" ###LAYER_WCS_SRS > "wcs_label" "My Layer" > "wcs_rangeset_name" "My Range" > "wcs_rangeset_label" "My Label" > END > END > END > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Jun 3 21:46:07 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 4 Jun 2011 07:46:07 +0300 Subject: [mapserver-users] WCS reprojection issue References: Message-ID: Hi, You can start with these two projection settings: Map level projection: The default output projection of your service. For making everything to work as expected the EXTENT must be edited also so that it gives the output in the units of the output projection. For example EXTENT -83.938 34.746 -81.340 36.361 makes a pretty small window as meters. Layer level projection: The projection of the source data. After editing the projection values continue systematically. Read the GetCapabilities and DescribeCoverage outputs carefully and look if they make sense. Have a try with a browser and GetCoverage for seeing that you can get something out. When you continue to ArcGIS have a look at the Apache access.log and see how do the requests sent by ArcMAP look like. If there are still problems, sending the GetCoverages created by ArcMAP will make is much easier for us to find out what is going wrong. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: Mark Phillips [mailto:mbp at geomtech.com] L?hetetty: pe 3.6.2011 18:14 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] WCS reprojection issue > Thanks for your suggestion; I will try this. > My end goal, however, is to set up a MapServer WCS that can be consumed by > ArcMap. This project is for a client that uses ArcMap, and it's not an > option for me to tell them to use something else. So, although writing WCS > queries by hand for testing might be instructive, as far as I know there is > no way for me to customize the queries that ArcMap generates --- the service > itself needs to be set up so that it will just work in ArcMap. > Any ideas on how to do that? Are there any known compatibility issues with > ArcMap? Should I force ArcMap to use a specific WCS version? (I've been > telling it to use version 1.0.0 so far.) --Mark > On Fri, Jun 3, 2011 at 10:26 AM, Rahkonen Jukka wrote: >> Hi, > >> Response_crs exists for letting user to select the output CRS. Have you >> tried it yet? >> There are better possibilities for a success and especially for >> understanding what is really happening if you write WCS requests by hand and >> semd them with a browser instead of using a GIS client. Request examples at >> http://mapserver.org/ogc/wcs_server.html are good to start with. > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Mark Phillips > L?hetetty: to 2.6.2011 22:16 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] WCS reprojection issue > > Hi, > > I'm struggling with an issue related to projections in a MapServer WCS > service. I've got a raster data file that is in EPSG:2163, and I'd like to > serve it via WCS in EPSG:4326. The only way I have managed to get this to > work is to reproject the data manually in advance and then reference the > ESPG:4326 copy of the data in my mapfile. When I do that, with the mapfile > below, the service seems to work beautifully. What I really want, though, > is > to be able to leave my data in its original projection and have MapServer > reproject on the fly. > > When I change the mapfile to use the original ESPG:2163 copy of the data, > and update the relevant projections in the mapfile from 4326 to 2163, > though, the service breaks, in the sense that the data shows up in (very > much) the wrong place. I first tried just changing the > projections commented in the mapfile below with ###LAYER_PROJECTION and > ###LAYER_WCS_SRS from 4326 to 2163 (after changing the DATA line in the > layer to point to the EPSG:2163 copy of the data, of course), but that > didn't work. I then experimented with changing the ###SERVICE_WCS_SRS line > and/or the ###MAP_PROJECTION as well, but no luck. > > What is especially confusing is that I *can* get this to work for a WMS > service. In the case of WMS, MapServer seems quite happy to serve > EPSG:2163 > data in ESPG:4326, as long as the ###LAYER_PROJECTION and ###LAYER_WCS_SRS > lines say EPSG:2163 (with "wcs" replaced by "wms", of course). > > I'm sure that part of my problem is that I don't completely understand the > purpose served by each of the various projections specified in the mapfile. > Can someone offer some insight into what the correct approach is to > getting > MapServer to reproject on the fly in a WCS? > > In case it matters: I'm using MapServer 6.0, and am testing the WCS with > ArcMap 9.3. > > Thanks! > > --Mark > > Here is my working mapfile for ESPG:4326: > > MAP > NAME lucky > STATUS ON > SIZE 600 400 > EXTENT -83.938 34.746 -81.340 36.361 > IMAGECOLOR 255 255 255 > > WEB > METADATA > "ows_enable_request" "*" > "wcs_label" "My WCS Service" > "wcs_srs" "EPSG:4326" ###SERVICE_WCS_SRS > END > END > > PROJECTION > "init=epsg:4326" ###MAP_PROJECTION > END > > LAYER > NAME mylayer > TYPE RASTER > DUMP TRUE > STATUS OFF > DATA sampledata_wgs84/tif_wgs84.tif > INCLUDE "colormap.cmap" > PROJECTION > "init=epsg:4326" ###LAYER_PROJECTION > END > METADATA > "wcs_srs" "EPSG:4326" ###LAYER_WCS_SRS > "wcs_label" "My Layer" > "wcs_rangeset_name" "My Range" > "wcs_rangeset_label" "My Label" > END > END > END > > From sakaroyban at yahoo.com Sat Jun 4 10:21:14 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Sat, 4 Jun 2011 10:21:14 -0700 (PDT) Subject: [mapserver-users] Problem in extent using openlayers with Mapserver Message-ID: <157145.18940.qm@web121611.mail.ne1.yahoo.com> Hi all. I've really got stuck in this problem and need some help as i'm a newbie using openlayers with mapserver. In mapfile i've set output to be: EXTENT -180 -90 180 90 # Geographic SIZE 800 400 IMAGECOLOR 128 128 255 when i request mapserver through URL, i recieve a complete 800*400 image, but when i use openlayers i get a 800*400 image which original map fills 512*256 of the center and other pixels are filled with IMAGECOLOR. this is my code: map = new OpenLayers.Map( 'map',{'tileSize': new OpenLayers.Size(400,400)} ); layer = new OpenLayers.Layer.MapServer( "World Map", "http://localhost/cgi-bin/mapserv.exe", {map: '/ms4w/apps/ms101/htdocs/ms101.map',layers: 'world_poly', height: 400, width: 800}, {singleTile: true} ); map.addLayer(layer); map.zoomToMaxExtent(); I asked this question in openlayers mailing list with no success. It sounds it is related to mapserver. Any help would be greatly appreciated Regards (also sorry if my english is not very good) -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sat Jun 4 10:34:29 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 04 Jun 2011 13:34:29 -0400 Subject: [mapserver-users] Problem in extent using openlayers with Mapserver In-Reply-To: <157145.18940.qm@web121611.mail.ne1.yahoo.com> References: <157145.18940.qm@web121611.mail.ne1.yahoo.com> Message-ID: <4DEA6CA5.2090700@swoodbridge.com> try just using: map = new OpenLayers.Map( 'map' ); -Steve On 6/4/2011 1:21 PM, Saka Royban wrote: > Hi all. > I've really got stuck in this problem and need some help as i'm a newbie > using openlayers with mapserver. > In mapfile i've set output to be: > EXTENT -180 -90 180 90 # Geographic > SIZE 800 400 > IMAGECOLOR 128 128 255 > > when i request mapserver through URL, i recieve a complete 800*400 > image, but when i use openlayers i get a 800*400 image which original > map fills 512*256 of the center and other pixels are filled with IMAGECOLOR. > this is my code: > map = new OpenLayers.Map( 'map',{'tileSize': new > OpenLayers.Size(400,400)} ); > layer = new OpenLayers.Layer.MapServer( "World Map", > "http://localhost/cgi-bin/mapserv.exe", {map: > '/ms4w/apps/ms101/htdocs/ms101.map',layers: 'world_poly', height: 400, > width: 800}, {singleTile: true} ); > > map.addLayer(layer); > map.zoomToMaxExtent(); > > I asked this question in openlayers mailing list with no success. It > sounds it is related to mapserver. > Any help would be greatly appreciated > > Regards (also sorry if my english is not very good) > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From to.tonton at gmail.com Mon Jun 6 01:42:38 2011 From: to.tonton at gmail.com (Tonton) Date: Mon, 6 Jun 2011 10:42:38 +0200 Subject: [mapserver-users] where is the line ? Message-ID: hello i receive a error from mapserver whith no documentation about : *loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 378)* i don't find docs about loadSymbol() and my mapfile have* 85 lines only * does someone understand which can be my error to have this error message. if i use a sldfile is it necessary to define a style in the class ? regards T. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prab.raja at gmail.com Mon Jun 6 01:46:21 2011 From: prab.raja at gmail.com (Prabu Raja) Date: Mon, 6 Jun 2011 14:16:21 +0530 Subject: [mapserver-users] where is the line ? In-Reply-To: References: Message-ID: Have you included any mapfile using "INCLUDE" keyword within your mapfile? On Mon, Jun 6, 2011 at 2:12 PM, Tonton wrote: > > hello > i receive a error from mapserver whith no documentation about : > > *loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 378)* > > i don't find docs about loadSymbol() > > and my mapfile have* 85 lines only * > > does someone understand which can be my error to have this error message. > > if i use a sldfile is it necessary to define a style in the class ? > > regards > > T. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Regards, Prabu Raja -------------- next part -------------- An HTML attachment was scrubbed... URL: From to.tonton at gmail.com Mon Jun 6 02:31:20 2011 From: to.tonton at gmail.com (Tonton) Date: Mon, 6 Jun 2011 11:31:20 +0200 Subject: [mapserver-users] where is the line ? In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Prabu Raja Post your mapfile content, show that we can check what's wrong. euh # #debut du fichier # MAP NAME '28811' SIZE 640 480 UNITS METERS FONTSET './fonts/fonts.txt' SYMBOLSET './symbols/symbols.txt' EXTENT 4.65883541107178 45.5676007678223 5.06030035018921 45.9033622741699 DEBUG ON CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_error.txt" #definition de la projection de la carte PROJECTION "init=epsg:4326" END #Projection IMAGETYPE "PNG24" # Debut de la section OUTPUTFORMAT OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION 'png' END # debut de la section Web WEB MINSCALEDENOM 1000 MAXSCALEDENOM 1550000 #Modifier cette ligne selon votre installation IMAGEPATH "/var/www/tmp/" IMAGEURL "./tmp/" METADATA ows_TITLE "28811" ows_ONLINERESOURCE " http://192.168.12.60/cgi-bin/mapserv?map=/var/www/mapfile/28811.map" "ows_SRS" "EPSG:4326 " ows_ABSTRACT "OWS Geomod webservice " ows_ACCESSCONSTRAINTS "None" END #METADATA LOG "./tmp/web.log" END #WEB # # debut de Definition de la Couche # LAYER CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=DBname user=USER password=PWD port=5432" DATA "geometry FROM tablename" NAME "28811" TYPE POINT DUMP TRUE TRANSPARENCY ALPHA LABELCACHE ON METADATA ows_TITLE "28811" "ows_SRS" "EPSG:4326" "gml_featureid" "gid" ##required "ows_include_items" "nom_stt" "ows_typename" "28811" END #METADATA LABELITEM nom_stt STATUS ON Class NAME "28811" STYLE SYMBOL 7 SIZE 2 OUTLINECOLOR 255 255 255 COLOR 192 192 192 END #Style LABEL FONT arial TYPE truetype ANTIALIAS true MAXSCALEDENOM 92500 -------------- next part -------------- An HTML attachment was scrubbed... URL: From prab.raja at gmail.com Mon Jun 6 02:39:13 2011 From: prab.raja at gmail.com (Prabu Raja) Date: Mon, 6 Jun 2011 15:09:13 +0530 Subject: [mapserver-users] where is the line ? In-Reply-To: References: Message-ID: Ok. You have included the symbols using "SYMBOLSET" keyword. Problem might be with symbol named 7 or seventh symbol in that file(./symbols/symbols.txt). On Mon, Jun 6, 2011 at 3:01 PM, Tonton wrote: > > > ---------- Forwarded message ---------- > From: Prabu Raja > > Post your mapfile content, show that we can check what's wrong. > > euh > > # > #debut du fichier > # > MAP > NAME '28811' > SIZE 640 480 > UNITS METERS > FONTSET './fonts/fonts.txt' > SYMBOLSET './symbols/symbols.txt' > EXTENT 4.65883541107178 45.5676007678223 5.06030035018921 45.9033622741699 > DEBUG ON > CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_error.txt" #definition de la > projection de la carte > PROJECTION > "init=epsg:4326" > END #Projection > > IMAGETYPE "PNG24" > > # Debut de la section OUTPUTFORMAT > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION 'png' > END > > # debut de la section Web > > WEB > MINSCALEDENOM 1000 > MAXSCALEDENOM 1550000 > #Modifier cette ligne selon votre installation > IMAGEPATH "/var/www/tmp/" > IMAGEURL "./tmp/" > METADATA > ows_TITLE "28811" > ows_ONLINERESOURCE " > http://192.168.12.60/cgi-bin/mapserv?map=/var/www/mapfile/28811.map" > "ows_SRS" "EPSG:4326 " > ows_ABSTRACT "OWS Geomod webservice " > ows_ACCESSCONSTRAINTS "None" > END #METADATA > LOG "./tmp/web.log" > END #WEB > # > # debut de Definition de la Couche > # > LAYER > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=DBname user=USER password=PWD port=5432" > DATA "geometry FROM tablename" > NAME "28811" > TYPE POINT > DUMP TRUE > TRANSPARENCY ALPHA > LABELCACHE ON > METADATA > ows_TITLE "28811" > "ows_SRS" "EPSG:4326" > "gml_featureid" "gid" ##required > "ows_include_items" "nom_stt" > "ows_typename" "28811" > END #METADATA > LABELITEM nom_stt > STATUS ON > Class > NAME "28811" > STYLE > SYMBOL 7 > SIZE 2 > OUTLINECOLOR 255 255 255 > COLOR 192 192 192 > END #Style > LABEL > FONT arial > TYPE truetype > ANTIALIAS true > MAXSCALEDENOM 92500 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Regards, Prabu Raja -------------- next part -------------- An HTML attachment was scrubbed... URL: From to.tonton at gmail.com Mon Jun 6 02:51:10 2011 From: to.tonton at gmail.com (Tonton) Date: Mon, 6 Jun 2011 11:51:10 +0200 Subject: [mapserver-users] where is the line ? In-Reply-To: References: Message-ID: but the file is' nt be modify from janary #7 SYMBOL NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END On Mon, Jun 6, 2011 at 11:39 AM, Prabu Raja wrote: > Ok. You have included the symbols using "SYMBOLSET" keyword. > > Problem might be with symbol named 7 or seventh symbol in that > file(./symbols/symbols.txt). > > On Mon, Jun 6, 2011 at 3:01 PM, Tonton wrote: > >> >> >> ---------- Forwarded message ---------- >> From: Prabu Raja >> >> Post your mapfile content, show that we can check what's wrong. >> >> euh >> >> # >> #debut du fichier >> # >> MAP >> NAME '28811' >> SIZE 640 480 >> UNITS METERS >> FONTSET './fonts/fonts.txt' >> SYMBOLSET './symbols/symbols.txt' >> EXTENT 4.65883541107178 45.5676007678223 5.06030035018921 45.9033622741699 >> >> DEBUG ON >> CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_error.txt" #definition de la >> projection de la carte >> PROJECTION >> "init=epsg:4326" >> END #Projection >> >> IMAGETYPE "PNG24" >> >> # Debut de la section OUTPUTFORMAT >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE PC256 >> EXTENSION 'png' >> END >> >> # debut de la section Web >> >> WEB >> MINSCALEDENOM 1000 >> MAXSCALEDENOM 1550000 >> #Modifier cette ligne selon votre installation >> IMAGEPATH "/var/www/tmp/" >> IMAGEURL "./tmp/" >> METADATA >> ows_TITLE "28811" >> ows_ONLINERESOURCE " >> http://192.168.12.60/cgi-bin/mapserv?map=/var/www/mapfile/28811.map" >> "ows_SRS" "EPSG:4326 " >> ows_ABSTRACT "OWS Geomod webservice " >> ows_ACCESSCONSTRAINTS "None" >> END #METADATA >> LOG "./tmp/web.log" >> END #WEB >> # >> # debut de Definition de la Couche >> # >> LAYER >> CONNECTIONTYPE postgis >> CONNECTION "host=localhost dbname=DBname user=USER password=PWD >> port=5432" >> DATA "geometry FROM tablename" >> NAME "28811" >> TYPE POINT >> DUMP TRUE >> TRANSPARENCY ALPHA >> LABELCACHE ON >> METADATA >> ows_TITLE "28811" >> "ows_SRS" "EPSG:4326" >> "gml_featureid" "gid" ##required >> "ows_include_items" "nom_stt" >> "ows_typename" "28811" >> END #METADATA >> LABELITEM nom_stt >> STATUS ON >> Class >> NAME "28811" >> STYLE >> SYMBOL 7 >> SIZE 2 >> OUTLINECOLOR 255 255 255 >> COLOR 192 192 192 >> END #Style >> LABEL >> FONT arial >> TYPE truetype >> ANTIALIAS true >> MAXSCALEDENOM 92500 >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > -- > Regards, > Prabu Raja > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From to.tonton at gmail.com Mon Jun 6 03:03:46 2011 From: to.tonton at gmail.com (Tonton) Date: Mon, 6 Jun 2011 12:03:46 +0200 Subject: [mapserver-users] where is the line ? In-Reply-To: References: Message-ID: You right in a definition of a symbol in symbolset.txt #16 SYMBOL NAME 'circle-dashed' TYPE ELLIPSE POINTS 1 1 END #FILLED TRUE STYLE 10 10 END END this style not accepted On Mon, Jun 6, 2011 at 11:51 AM, Tonton wrote: > but the file is' nt be modify from janary > > #7 > SYMBOL > NAME 'circle' > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > > > On Mon, Jun 6, 2011 at 11:39 AM, Prabu Raja wrote: > >> Ok. You have included the symbols using "SYMBOLSET" keyword. >> >> Problem might be with symbol named 7 or seventh symbol in that >> file(./symbols/symbols.txt). >> >> On Mon, Jun 6, 2011 at 3:01 PM, Tonton wrote: >> >>> >>> >>> ---------- Forwarded message ---------- >>> From: Prabu Raja >>> >>> Post your mapfile content, show that we can check what's wrong. >>> >>> euh >>> >>> # >>> #debut du fichier >>> # >>> MAP >>> NAME '28811' >>> SIZE 640 480 >>> UNITS METERS >>> FONTSET './fonts/fonts.txt' >>> SYMBOLSET './symbols/symbols.txt' >>> EXTENT 4.65883541107178 45.5676007678223 5.06030035018921 >>> 45.9033622741699 >>> DEBUG ON >>> CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_error.txt" #definition de la >>> projection de la carte >>> PROJECTION >>> "init=epsg:4326" >>> END #Projection >>> >>> IMAGETYPE "PNG24" >>> >>> # Debut de la section OUTPUTFORMAT >>> OUTPUTFORMAT >>> NAME png >>> DRIVER "GD/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE PC256 >>> EXTENSION 'png' >>> END >>> >>> # debut de la section Web >>> >>> WEB >>> MINSCALEDENOM 1000 >>> MAXSCALEDENOM 1550000 >>> #Modifier cette ligne selon votre installation >>> IMAGEPATH "/var/www/tmp/" >>> IMAGEURL "./tmp/" >>> METADATA >>> ows_TITLE "28811" >>> ows_ONLINERESOURCE " >>> http://192.168.12.60/cgi-bin/mapserv?map=/var/www/mapfile/28811.map" >>> "ows_SRS" "EPSG:4326 " >>> ows_ABSTRACT "OWS Geomod webservice " >>> ows_ACCESSCONSTRAINTS "None" >>> END #METADATA >>> LOG "./tmp/web.log" >>> END #WEB >>> # >>> # debut de Definition de la Couche >>> # >>> LAYER >>> CONNECTIONTYPE postgis >>> CONNECTION "host=localhost dbname=DBname user=USER password=PWD >>> port=5432" >>> DATA "geometry FROM tablename" >>> NAME "28811" >>> TYPE POINT >>> DUMP TRUE >>> TRANSPARENCY ALPHA >>> LABELCACHE ON >>> METADATA >>> ows_TITLE "28811" >>> "ows_SRS" "EPSG:4326" >>> "gml_featureid" "gid" ##required >>> "ows_include_items" "nom_stt" >>> "ows_typename" "28811" >>> END #METADATA >>> LABELITEM nom_stt >>> STATUS ON >>> Class >>> NAME "28811" >>> STYLE >>> SYMBOL 7 >>> SIZE 2 >>> OUTLINECOLOR 255 255 255 >>> COLOR 192 192 192 >>> END #Style >>> LABEL >>> FONT arial >>> TYPE truetype >>> ANTIALIAS true >>> MAXSCALEDENOM 92500 >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> -- >> Regards, >> Prabu Raja >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ralf.Trier at logos-ib.de Mon Jun 6 03:53:08 2011 From: Ralf.Trier at logos-ib.de (Ralf Trier) Date: Mon, 6 Jun 2011 12:53:08 +0200 Subject: AW: [mapserver-users] where is the line ? Message-ID: See: http://mapserver.org/mapfile/symbology/construction.html#cartographical- symbol-construction-with-mapserver Style is nested in class now. The documentation links a old Symbolset Description. CU Ralf -------------- next part -------------- An HTML attachment was scrubbed... URL: From to.tonton at gmail.com Mon Jun 6 04:05:54 2011 From: to.tonton at gmail.com (Tonton) Date: Mon, 6 Jun 2011 13:05:54 +0200 Subject: [mapserver-users] msWMSDispatch(): WMS request not enabled Message-ID: today is my day !:0( so now i have new error message and seems whitout documentation on it msWMSDispatch(): WMS request not enabled. Check wms/ows_enable_request settings. ows_enable_request ? is the Status on from mapfile ? /usr/lib/cgi-bin/mapserv -v MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Mon Jun 6 04:13:10 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Mon, 6 Jun 2011 07:13:10 -0400 Subject: [mapserver-users] msWMSDispatch(): WMS request not enabled In-Reply-To: Message-ID: Looks like you need to review the 6.0 migration guide ( http://mapserver.org/MIGRATION_GUIDE.html#migration ). Specifically http://mapserver.org/MIGRATION_GUIDE.html#ogc-web-services Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/6/11 7:05 AM, "Tonton" wrote: > today is my day !:0( > > so now i have new error message and seems? whitout documentation on it > > ?msWMSDispatch(): WMS request not enabled. Check wms/ows_enable_request > settings. > > ows_enable_request ? is the Status on from mapfile ? > > > ?? /usr/lib/cgi-bin/mapserv -v > MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > > _______________________________________________ > 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 to.tonton at gmail.com Mon Jun 6 04:20:39 2011 From: to.tonton at gmail.com (Tonton) Date: Mon, 6 Jun 2011 13:20:39 +0200 Subject: [mapserver-users] msWMSDispatch(): WMS request not enabled In-Reply-To: References: Message-ID: i understood ! thanks On Mon, Jun 6, 2011 at 1:13 PM, Smith, Michael ERDC-CRREL-NH < michael.smith at usace.army.mil> wrote: > Looks like you need to review the 6.0 migration guide ( > http://mapserver.org/MIGRATION_GUIDE.html#migration ). > > Specifically http://mapserver.org/MIGRATION_GUIDE.html#ogc-web-services > > Mike > > > -- > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > > > > > On 6/6/11 7:05 AM, "Tonton" wrote: > > today is my day !:0( > > so now i have new error message and seems whitout documentation on it > > msWMSDispatch(): WMS request not enabled. Check wms/ows_enable_request > settings. > > ows_enable_request ? is the Status on from mapfile ? > > > /usr/lib/cgi-bin/mapserv -v > MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > ------------------------------ > _______________________________________________ > 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 to.tonton at gmail.com Mon Jun 6 05:37:54 2011 From: to.tonton at gmail.com (Tonton) Date: Mon, 6 Jun 2011 14:37:54 +0200 Subject: [mapserver-users] sld sample Message-ID: hello demo server Temporarily Unavailable .. someone have this file ? http://demo.mapserver.org/ogc-demos/map/sld/sld_symbol_external.xml regards T. -------------- next part -------------- An HTML attachment was scrubbed... URL: From traderboy at yahoo.com Mon Jun 6 05:44:58 2011 From: traderboy at yahoo.com (Joe Franklin) Date: Mon, 6 Jun 2011 05:44:58 -0700 (PDT) Subject: [mapserver-users] KML as Outputformat returns incorrect coordinates In-Reply-To: References: Message-ID: <603153.40051.qm@web114406.mail.gq1.yahoo.com> I'm using Mapserver 6.0.? I get the same results using the windows MS4W version as well as compiling it myself on Centos 5.? I'm including a simple map file with an embedded point, but I also tested using a point shapefile.? Anyone else see this problem? ? Works using shp2img- returns -77.00000000,48.000000000: shp2img -m airport.map Doesn't work using mapserv CGI or PHP Mapscript - returns 76.80000000,409.60000000 mapserv -nh? "QUERY_STRING=map=airport.map&service=wms&VERSION=1.1.1&REQUEST=GetMap&SRS=epsg:4326&WIDTH=512&HEIGHT=512&LAYERS=Airports&TRANSPARENT=TRUE&FORMAT=kml&BBOX=-80,40,-60,50" ? ? MAP NAME "Airport" STATUS ON SIZE 512 512 EXTENT -80 40 -60 50 IMAGETYPE kml UNITS DD IMAGECOLOR 255 255 255 PROJECTION ????? "init=epsg:4326" END WEB ? METADATA ????? "ows_enable_request" "*" ????? "wms_title"?????????? "Airport" ????? "wms_onlineresource"? "http://localhost/mapserv?map=/tmp/airport.map" ????? "ows_srs"???????????? "epsg:4326" ? END END? #WEB SYMBOL ??????? NAME 'circle' ??????? TYPE ellipse ??????? FILLED true ??????? POINTS 1 1 END END LAYER ??? NAME "Airports" ??? TYPE point ??? FEATURE ????? POINTS -77 48 END ??? END ??? METADATA ????? "wms_title"?"Airports" ??? END # METADATA ??? STATUS ON ??? CLASS ????? STYLE ??????? COLOR 255 0 0 ??????? SYMBOL 1 ??????? SIZE 5 ????? END # STYLE ????? TEMPLATE "ttt_query.html" ??? END # CLASS END # LAYER END ? MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE From mmypost at yandex.ru Mon Jun 6 06:33:28 2011 From: mmypost at yandex.ru (uvg) Date: Mon, 6 Jun 2011 06:33:28 -0700 (PDT) Subject: [mapserver-users] ANGLE FOLLOW and Label Offset (v. 5.6.6) Message-ID: <1307367208575-6445138.post@n2.nabble.com> Hi all! Sorry for my bad English. I am trying to achieve is a label that follows the rivers that is also OFFSET so that the label does not 'above' on the line for the river. Sample code of mapfile: LABEL COLOR 0 40 255 FONT "arial-italic" TYPE truetype SIZE 7 OFFSET 5 0 ANGLE FOLLOW POSITION LC FORCE true PARTIALS FALSE END "OFFSET" does not work. How can I offset a label? I found a message posted for a long time: http://osgeo-org.1803224.n2.nabble.com/label-FOLLOW-and-OFFSET-td2251280.html Maybe this problem is already solved? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ANGLE-FOLLOW-and-Label-Offset-v-5-6-6-tp6445138p6445138.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Mon Jun 6 06:35:28 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 6 Jun 2011 15:35:28 +0200 Subject: [mapserver-users] ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <1307367208575-6445138.post@n2.nabble.com> References: <1307367208575-6445138.post@n2.nabble.com> Message-ID: The status has not changed: label follow with offset is not supported. regards, thomas On Mon, Jun 6, 2011 at 15:33, uvg wrote: > Hi all! > Sorry for my bad English. > > I am trying to achieve is a label that follows the rivers that is also > OFFSET so that > the label does not ?'above' on the line for the river. > > Sample code of mapfile: > > ?LABEL > ? ? ? ? ?COLOR 0 40 255 > ? ? ? ? ?FONT ?"arial-italic" > ? ? ? ? ?TYPE truetype > ? ? ? ? ?SIZE 7 > ? ? ? ? ?OFFSET 5 0 > ? ? ? ? ?ANGLE FOLLOW > ? ? ? ? ?POSITION LC > ? ? ? ? ?FORCE true > ? ? ? ? ?PARTIALS FALSE > > ? ? ?END > > "OFFSET" ?does not work. > How can I offset a label? > > I found a message posted for a long time: > http://osgeo-org.1803224.n2.nabble.com/label-FOLLOW-and-OFFSET-td2251280.html > > Maybe this problem is already solved? > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/ANGLE-FOLLOW-and-Label-Offset-v-5-6-6-tp6445138p6445138.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 mmypost at yandex.ru Mon Jun 6 06:48:37 2011 From: mmypost at yandex.ru (uvg) Date: Mon, 6 Jun 2011 06:48:37 -0700 (PDT) Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: References: <1307367208575-6445138.post@n2.nabble.com> Message-ID: <6691307368105@web115.yandex.ru> Thank you, Thomas.   Are there any workarounds for this problem? Is there  'best practices' for the problem?   Maybe unvisible layer or other?   06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]" <ml-node+6445146-1155722530-338610 at n2.nabble.com>: The status has not changed: label follow with offset is not supported. regards, thomas On Mon, Jun 6, 2011 at 15:33, uvg < [hidden email] > wrote: > Hi all! > Sorry for my bad English. > > I am trying to achieve is a label that follows the rivers that is also > OFFSET so that > the label does not  'above' on the line for the river. > > Sample code of mapfile: > >  LABEL >          COLOR 0 40 255 >          FONT  "arial-italic" >          TYPE truetype >          SIZE 7 >          OFFSET 5 0 >          ANGLE FOLLOW >          POSITION LC >          FORCE true >          PARTIALS FALSE > >      END > > "OFFSET"  does not work. > How can I offset a label? > > I found a message posted for a long time: > http://osgeo-org.1803224.n2.nabble.com/label-FOLLOW-and-OFFSET-td2251280.html > > Maybe this problem is already solved? > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/ANGLE-FOLLOW-and-Label-Offset-v-5-6-6-tp6445138p6445138.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1803224.n2.nabble.com/ANGLE-FOLLOW-and-Label-Offset-v-5-6-6-tp6445138p6445146.html To unsubscribe from ANGLE FOLLOW and Label Offset (v. 5.6.6), click here . -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ANGLE-FOLLOW-and-Label-Offset-v-5-6-6-tp6445138p6445194.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 Jun 6 07:02:34 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 06 Jun 2011 10:02:34 -0400 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <6691307368105@web115.yandex.ru> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> Message-ID: <4DECDDFA.3010500@swoodbridge.com> There was some recent discussion on the dev list about potentially using the GEOMTRANSFORM to do something like a single sided offset then using that to apply the label to. BUT I do not think that has been implemented yet in mapserver. Google for "mapserver geomtransform" also look at "geoprocessing" for some other ideas. Anyway, you might be able to do what you want if you: 1. import your data into PostGIS 2. create offset geometry in another table 3. export that table to a shapefile 4. then label that as an annotation layer so you do not draw the geometry only the label and use the original data to draw the grometry ie: two layers. I have not tried this, but it might solve your problem. -Steve W On 6/6/2011 9:48 AM, uvg wrote: > Thank you, Thomas. > Are there any workarounds for this problem? > Is there 'best practices' for the problem? > Maybe unvisible layer or other? > 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]" <[hidden email] > >: > > The status has not changed: label follow with offset is not supported. > > regards, > thomas > > On Mon, Jun 6, 2011 at 15:33, uvg <[hidden email]> wrote: > > > Hi all! > > Sorry for my bad English. > > > > I am trying to achieve is a label that follows the rivers that is > also > > OFFSET so that > > the label does not 'above' on the line for the river. > > > > Sample code of mapfile: > > > > LABEL > > COLOR 0 40 255 > > FONT "arial-italic" > > TYPE truetype > > SIZE 7 > > OFFSET 5 0 > > ANGLE FOLLOW > > POSITION LC > > FORCE true > > PARTIALS FALSE > > > > END > > > > "OFFSET" does not work. > > How can I offset a label? > > > > I found a message posted for a long time: > > click here. > > > View this message in context: Re: ANGLE FOLLOW and Label Offset (v. > 5.6.6) > > Sent from the Mapserver - User mailing list archive > at > Nabble.com. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Mon Jun 6 07:20:14 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 6 Jun 2011 16:20:14 +0200 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DECDDFA.3010500@swoodbridge.com> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> Message-ID: There are two problems with the solution you propose: - if you offset the geometry in postgis, the distance of the offset will be in geographical units, i.e. it will not give correct results at all scales when rendered with mapserver (what you basically want is to offset the line by a number of pixels roughly equal to the size of the font used for labelling) - angle follow on offset line should probably be done on a simplified/smoothed geometry. see http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . Ideally someone will want the feature badly enough to fund it :) -- thomas On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge wrote: > There was some recent discussion on the dev list about potentially using the > GEOMTRANSFORM to do something like a single sided offset then using that to > apply the label to. BUT I do not think that has been implemented yet in > mapserver. > > Google for "mapserver geomtransform" also look at "geoprocessing" for some > other ideas. > > Anyway, you might be able to do what you want if you: > > 1. import your data into PostGIS > 2. create offset geometry in another table > 3. export that table to a shapefile > 4. then label that as an annotation layer so you do not draw the geometry > only the label and use the original data to draw the grometry ie: two > layers. > > I have not tried this, but it might solve your problem. > > -Steve W > > On 6/6/2011 9:48 AM, uvg wrote: >> >> Thank you, Thomas. >> Are there any workarounds for this problem? >> Is there 'best practices' for the problem? >> Maybe unvisible layer or other? >> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]" <[hidden email] >> >: >> >> ? ?The status has not changed: label follow with offset is not supported. >> >> ? ?regards, >> ? ?thomas >> >> ? ?On Mon, Jun 6, 2011 at 15:33, uvg <[hidden email]> wrote: >> >> ? ? > Hi all! >> ? ? > Sorry for my bad English. >> ? ? > >> ? ? > I am trying to achieve is a label that follows the rivers that is >> ? ?also >> ? ? > OFFSET so that >> ? ? > the label does not 'above' on the line for the river. >> ? ? > >> ? ? > Sample code of mapfile: >> ? ? > >> ? ? > LABEL >> ? ? > COLOR 0 40 255 >> ? ? > FONT "arial-italic" >> ? ? > TYPE truetype >> ? ? > SIZE 7 >> ? ? > OFFSET 5 0 >> ? ? > ANGLE FOLLOW >> ? ? > POSITION LC >> ? ? > FORCE true >> ? ? > PARTIALS FALSE >> ? ? > >> ? ? > END >> ? ? > >> ? ? > "OFFSET" does not work. >> ? ? > How can I offset a label? >> ? ? > >> ? ? > I found a message posted for a long time: >> ? ? > click here. >> >> >> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >> 5.6.6) >> >> >> Sent from the Mapserver - User mailing list archive >> at >> Nabble.com. >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Bob.Basques at ci.stpaul.mn.us Mon Jun 6 07:23:56 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 06 Jun 2011 09:23:56 -0500 Subject: [mapserver-users] REGEX question (I think) . . . Message-ID: <4DEC9CAC020000A80002AC6F@heckle> All, I'm looking to display only the last four characters of a Parcel ID number from a SHP file attribute. Is there a way to set this up in a MapFile, truncate the leading characters? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jun 6 08:04:12 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 06 Jun 2011 11:04:12 -0400 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> Message-ID: <4DECEC6C.7020103@swoodbridge.com> Duh! you are correct, I always forget this point until I after my second cup of coffee has kicked in :) That article looks very interesting, I have to read up on that. In a past career in computer aided design and manufacturing, we used the idea of a rolling ball offset because it modeled a milling machine. The rolling ball offset is defined as the curve traced by the center of a ball of a given radius as you roll it along a curve. The circumference of the ball can not cross over the original curve so for tight "S" curves if the diameter of the ball is larger than the gap in the "S" then the ball does not enter the gap but floats over it. This same concept would make for well behaved and good looking labels along tight twisty paths like rivers and roads. Another idea for smoothing out curves for labeling might be to apply an N point moving average and allow that to be the label path. I don't think this has been mentioned as an option in the past. -Steve W On 6/6/2011 10:20 AM, thomas bonfort wrote: > There are two problems with the solution you propose: > - if you offset the geometry in postgis, the distance of the offset > will be in geographical units, i.e. it will not give correct results > at all scales when rendered with mapserver (what you basically want is > to offset the line by a number of pixels roughly equal to the size of > the font used for labelling) > - angle follow on offset line should probably be done on a > simplified/smoothed geometry. see > http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . > Ideally someone will want the feature badly enough to fund it :) > > -- > thomas > > > > On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge > wrote: >> There was some recent discussion on the dev list about potentially using the >> GEOMTRANSFORM to do something like a single sided offset then using that to >> apply the label to. BUT I do not think that has been implemented yet in >> mapserver. >> >> Google for "mapserver geomtransform" also look at "geoprocessing" for some >> other ideas. >> >> Anyway, you might be able to do what you want if you: >> >> 1. import your data into PostGIS >> 2. create offset geometry in another table >> 3. export that table to a shapefile >> 4. then label that as an annotation layer so you do not draw the geometry >> only the label and use the original data to draw the grometry ie: two >> layers. >> >> I have not tried this, but it might solve your problem. >> >> -Steve W >> >> On 6/6/2011 9:48 AM, uvg wrote: >>> >>> Thank you, Thomas. >>> Are there any workarounds for this problem? >>> Is there 'best practices' for the problem? >>> Maybe unvisible layer or other? >>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>> >: >>> >>> The status has not changed: label follow with offset is not supported. >>> >>> regards, >>> thomas >>> >>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: >>> >>> > Hi all! >>> > Sorry for my bad English. >>> > >>> > I am trying to achieve is a label that follows the rivers that is >>> also >>> > OFFSET so that >>> > the label does not 'above' on the line for the river. >>> > >>> > Sample code of mapfile: >>> > >>> > LABEL >>> > COLOR 0 40 255 >>> > FONT "arial-italic" >>> > TYPE truetype >>> > SIZE 7 >>> > OFFSET 5 0 >>> > ANGLE FOLLOW >>> > POSITION LC >>> > FORCE true >>> > PARTIALS FALSE >>> > >>> > END >>> > >>> > "OFFSET" does not work. >>> > How can I offset a label? >>> > >>> > I found a message posted for a long time: >>> > click here. >>> >>> >>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >>> 5.6.6) >>> >>> >>> Sent from the Mapserver - User mailing list archive >>> at >>> Nabble.com. >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From bfraser at geoanalytic.com Mon Jun 6 08:30:02 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 06 Jun 2011 09:30:02 -0600 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DECEC6C.7020103@swoodbridge.com> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> Message-ID: <4DECF27A.7020607@geoanalytic.com> Steve, I think just buffering the line would apply a type of smoothing (see attached image). Using the resulting buffer line (or perhaps doing some simple line smoothing on it) for labeling would be good enough. Best Regards, Brent Fraser On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: > Duh! you are correct, I always forget this point until I after my > second cup of coffee has kicked in :) > > That article looks very interesting, I have to read up on that. > > In a past career in computer aided design and manufacturing, we used > the idea of a rolling ball offset because it modeled a milling > machine. The rolling ball offset is defined as the curve traced by the > center of a ball of a given radius as you roll it along a curve. The > circumference of the ball can not cross over the original curve so for > tight "S" curves if the diameter of the ball is larger than the gap in > the "S" then the ball does not enter the gap but floats over it. This > same concept would make for well behaved and good looking labels along > tight twisty paths like rivers and roads. > > Another idea for smoothing out curves for labeling might be to apply > an N point moving average and allow that to be the label path. I don't > think this has been mentioned as an option in the past. > > -Steve W > > On 6/6/2011 10:20 AM, thomas bonfort wrote: >> There are two problems with the solution you propose: >> - if you offset the geometry in postgis, the distance of the offset >> will be in geographical units, i.e. it will not give correct results >> at all scales when rendered with mapserver (what you basically want is >> to offset the line by a number of pixels roughly equal to the size of >> the font used for labelling) >> - angle follow on offset line should probably be done on a >> simplified/smoothed geometry. see >> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . >> Ideally someone will want the feature badly enough to fund it :) >> >> -- >> thomas >> >> >> >> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge >> wrote: >>> There was some recent discussion on the dev list about potentially >>> using the >>> GEOMTRANSFORM to do something like a single sided offset then using >>> that to >>> apply the label to. BUT I do not think that has been implemented yet in >>> mapserver. >>> >>> Google for "mapserver geomtransform" also look at "geoprocessing" >>> for some >>> other ideas. >>> >>> Anyway, you might be able to do what you want if you: >>> >>> 1. import your data into PostGIS >>> 2. create offset geometry in another table >>> 3. export that table to a shapefile >>> 4. then label that as an annotation layer so you do not draw the >>> geometry >>> only the label and use the original data to draw the grometry ie: two >>> layers. >>> >>> I have not tried this, but it might solve your problem. >>> >>> -Steve W >>> >>> On 6/6/2011 9:48 AM, uvg wrote: >>>> >>>> Thank you, Thomas. >>>> Are there any workarounds for this problem? >>>> Is there 'best practices' for the problem? >>>> Maybe unvisible layer or other? >>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>>> >: >>>> >>>> The status has not changed: label follow with offset is not >>>> supported. >>>> >>>> regards, >>>> thomas >>>> >>>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: >>>> >>>> > Hi all! >>>> > Sorry for my bad English. >>>> > >>>> > I am trying to achieve is a label that follows the rivers that is >>>> also >>>> > OFFSET so that >>>> > the label does not 'above' on the line for the river. >>>> > >>>> > Sample code of mapfile: >>>> > >>>> > LABEL >>>> > COLOR 0 40 255 >>>> > FONT "arial-italic" >>>> > TYPE truetype >>>> > SIZE 7 >>>> > OFFSET 5 0 >>>> > ANGLE FOLLOW >>>> > POSITION LC >>>> > FORCE true >>>> > PARTIALS FALSE >>>> > >>>> > END >>>> > >>>> > "OFFSET" does not work. >>>> > How can I offset a label? >>>> > >>>> > I found a message posted for a long time: >>>> > click here. >>>> >>>> >>>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >>>> 5.6.6) >>>> >>>> >>>> >>>> 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 >>> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: line_buffer.png Type: image/png Size: 26478 bytes Desc: not available URL: From thomas.bonfort at gmail.com Mon Jun 6 10:02:52 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 6 Jun 2011 19:02:52 +0200 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DECF27A.7020607@geoanalytic.com> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> <4DECF27A.7020607@geoanalytic.com> Message-ID: Yes, the resulting shape seems like a nice candidate for offseting labels, but the problem with buffer is you will have more difficulty in deciding what is to the left from what is to the right of the line. We'd also have to make sure that the buffer operation is not too costly on cpu cycles. Anyways, until geomtransform is not applied at the layer level, there is no way to use this method as the label does not operate on the transformed geometry. On Mon, Jun 6, 2011 at 17:30, Brent Fraser wrote: > Steve, > > ?I think just buffering the line would apply a type of smoothing (see > attached image). ?Using the resulting buffer line (or perhaps doing some > simple line smoothing on it) for labeling would be good enough. > > Best Regards, > Brent Fraser > > > On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: >> >> Duh! you are correct, I always forget this point until I after my second >> cup of coffee has kicked in :) >> >> That article looks very interesting, I have to read up on that. >> >> In a past career in computer aided design and manufacturing, we used the >> idea of a rolling ball offset because it modeled a milling machine. The >> rolling ball offset is defined as the curve traced by the center of a ball >> of a given radius as you roll it along a curve. The circumference of the >> ball can not cross over the original curve so for tight "S" curves if the >> diameter of the ball is larger than the gap in the "S" then the ball does >> not enter the gap but floats over it. This same concept would make for well >> behaved and good looking labels along tight twisty paths like rivers and >> roads. >> >> Another idea for smoothing out curves for labeling might be to apply an N >> point moving average and allow that to be the label path. I don't think this >> has been mentioned as an option in the past. >> >> -Steve W >> >> On 6/6/2011 10:20 AM, thomas bonfort wrote: >>> >>> There are two problems with the solution you propose: >>> - if you offset the geometry in postgis, the distance of the offset >>> will be in geographical units, i.e. it will not give correct results >>> at all scales when rendered with mapserver (what you basically want is >>> to offset the line by a number of pixels roughly equal to the size of >>> the font used for labelling) >>> - angle follow on offset line should probably be done on a >>> simplified/smoothed geometry. see >>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . >>> Ideally someone will want the feature badly enough to fund it :) >>> >>> -- >>> thomas >>> >>> >>> >>> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge >>> ?wrote: >>>> >>>> There was some recent discussion on the dev list about potentially using >>>> the >>>> GEOMTRANSFORM to do something like a single sided offset then using that >>>> to >>>> apply the label to. BUT I do not think that has been implemented yet in >>>> mapserver. >>>> >>>> Google for "mapserver geomtransform" also look at "geoprocessing" for >>>> some >>>> other ideas. >>>> >>>> Anyway, you might be able to do what you want if you: >>>> >>>> 1. import your data into PostGIS >>>> 2. create offset geometry in another table >>>> 3. export that table to a shapefile >>>> 4. then label that as an annotation layer so you do not draw the >>>> geometry >>>> only the label and use the original data to draw the grometry ie: two >>>> layers. >>>> >>>> I have not tried this, but it might solve your problem. >>>> >>>> -Steve W >>>> >>>> On 6/6/2011 9:48 AM, uvg wrote: >>>>> >>>>> Thank you, Thomas. >>>>> Are there any workarounds for this problem? >>>>> Is there 'best practices' for the problem? >>>>> Maybe unvisible layer or other? >>>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>>>> >: >>>>> >>>>> ? ?The status has not changed: label follow with offset is not >>>>> supported. >>>>> >>>>> ? ?regards, >>>>> ? ?thomas >>>>> >>>>> ? ?On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> ?wrote: >>>>> >>>>> > ?Hi all! >>>>> > ?Sorry for my bad English. >>>>> > >>>>> > ?I am trying to achieve is a label that follows the rivers that is >>>>> ? ?also >>>>> > ?OFFSET so that >>>>> > ?the label does not 'above' on the line for the river. >>>>> > >>>>> > ?Sample code of mapfile: >>>>> > >>>>> > ?LABEL >>>>> > ?COLOR 0 40 255 >>>>> > ?FONT "arial-italic" >>>>> > ?TYPE truetype >>>>> > ?SIZE 7 >>>>> > ?OFFSET 5 0 >>>>> > ?ANGLE FOLLOW >>>>> > ?POSITION LC >>>>> > ?FORCE true >>>>> > ?PARTIALS FALSE >>>>> > >>>>> > ?END >>>>> > >>>>> > ?"OFFSET" does not work. >>>>> > ?How can I offset a label? >>>>> > >>>>> > ?I found a message posted for a long time: >>>>> > ?click here. >>>>> >>>>> >>>>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >>>>> 5.6.6) >>>>> >>>>> >>>>> >>>>> 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 >>>> >> >> _______________________________________________ >> 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 m.bagni at marcobagni.com Mon Jun 6 10:10:23 2011 From: m.bagni at marcobagni.com (mbagni) Date: Mon, 6 Jun 2011 10:10:23 -0700 (PDT) Subject: [mapserver-users] Clipping a coverage using another coverage Message-ID: <1307380223447-6445993.post@n2.nabble.com> Hi all, I have decided to make this question after having looked for an answer without success in MapServer manual and in the Net. My problem is the following: I have a coverage of polygons in and I would like to clip it with another coverage containing only one polygon in order to return only those polygons of the first coverage that are completely or partially contained in the second coverage (which has only one polygon). Practically the problem is like extracting from a coverage that contains all the cities of one country only the cities that are within a region boundary. Is there a way to tell MapServer to perform this selection and return (render) only the features that are within my Region Of Interest? I think that my problem is quite common but I do not know if the lack of any question on this issue shows that its solution is trivial (I really wish it was) or not possible. Thanks in advance for your support. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Clipping-a-coverage-using-another-coverage-tp6445993p6445993.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Mon Jun 6 10:28:49 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 06 Jun 2011 13:28:49 -0400 Subject: [mapserver-users] setRotation problem In-Reply-To: <20110603160728.socj6n4cv4ggs8kw@webmail.ciimar.up.pt> References: <20110603160728.socj6n4cv4ggs8kw@webmail.ciimar.up.pt> Message-ID: <4DED0E51.1040101@pobox.com> On 11-06-03 10:07 AM, wyan at ciimar.up.pt wrote: > HI, > > I wanna use the mapserver's rotation fuction with php script, > but when i used this function the map view rectangle rotated strangely, > I cannot find the rotation regular rules, > enclosed with my simplised php code, > attachments are pics of the results. > appriciate it if you can tell me what's the problems. > > regards > william > > > codes are following > > > dl('php_mapscript.dll'); > > $map=ms_newMapObj("C:/OSGeo4W/apache/htdocs/xxxx.map"); > > //$roate=$map->setRotation(90); > $roate=$map->setRotation(0.00000001); > > //************** here you see, even with a small angle, the map could not > rotated as expection > //echo $roate; > > $image=$map->draw(); > $image_url=$image->saveWebImage(); Wyan, Map rotation forces use of the resampling api which requires proper coordinate system information attached to everything (layers and map). Is it possible this is not the case? If you can boil this down to a sufficiently simple case to demonstrate the problem, and provide it to me perhaps I can look into the issue. Note that you can also set rotation in a mapfile. You might want to see if setting the ANGLE keyword in your mapfile seems to work properly. There is a test case for map rotation in the autotest suite which still seems to work fine at: http://svn.osgeo.org/mapserver/trunk/msautotest/gdal/rot_out.map It is possible there is an issue with the PHP binding for setRotation() (which I am sure is very rarely used) or perhaps the issue is something about your map configuration. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From valemunoz at gmail.com Mon Jun 6 14:07:11 2011 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 6 Jun 2011 17:07:11 -0400 Subject: [mapserver-users] Symbol problem Message-ID: HI! I am using Symbol for display icon over my map, but the images don't display complete... can you help me please? CODE LAYER NAME 'metro' TYPE POINT DATA 'METRO.shp' METADATA 'wms_title' 'metro' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END MAXSCALE 54100 MINSCALE 13517 CLASS EXPRESSION ('[NUM_ACCESO]' =~ /1/ ) NAME 'metro' STYLE SYMBOL 'METRO' SIZE 13 ANTIALIAS TRUE END END END attach image with my problem -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: symbol.JPG Type: image/jpeg Size: 2828 bytes Desc: not available URL: From pagirgis at gmail.com Mon Jun 6 15:29:25 2011 From: pagirgis at gmail.com (Peter Girgis) Date: Tue, 7 Jun 2011 08:29:25 +1000 Subject: [mapserver-users] Display TAB point layer but get label from a second tab file Message-ID: Hi all I wonder if anyone can assist me with this issue. I have a TAB file which contains points and a second TAB file which contains the labels. The two TAB files are relational so I can look up the label using a unique id however I cannot work out whether it is in fact possible to display labels from a second TAB file based on a query. This is similar to JOIN where you would lookup labels from a csv or database however I canot see an option to do this from a TAB file. I assume I may have to convert the TAB file with the labels into a database table and dot he lookup that way but wanted to see if there was any native way first. Any assistance is appreciated.\ regards Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.kanegae at gmail.com Mon Jun 6 15:34:40 2011 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Mon, 6 Jun 2011 19:34:40 -0300 Subject: [mapserver-users] MapServer reading CAD files Message-ID: Hi all, I?d like to embed construction engineering maps ( basically .dwg files) to a webmapping interface. How this could be done? Using .DXF OGR driver? Or is there any option for directly reading .dwg files? http://www.gnu.org/software/libredwg/ should be an option? best regards -- Eduardo Patto Kanegae +55(19)9610-8768 From silasharmeen at gmail.com Mon Jun 6 21:27:02 2011 From: silasharmeen at gmail.com (Sila Khan) Date: Tue, 7 Jun 2011 09:27:02 +0500 Subject: [mapserver-users] Re: s-57 Nautical Charts In-Reply-To: References: Message-ID: On Tue, Jun 7, 2011 at 9:22 AM, Sila Khan wrote: > Hi > Dear map server users! as m new to map server,i want to import nautical > charts on map server,how and in which format it z possible? Does map server > supports s-57 or .BSB formats.plz share your experiences regarding the tool > to view nautical charts or how to load them in map server. > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Jun 6 21:50:07 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 07 Jun 2011 00:50:07 -0400 Subject: [mapserver-users] Re: s-57 Nautical Charts In-Reply-To: References: Message-ID: <4DEDADFF.80206@swoodbridge.com> On 6/7/2011 12:27 AM, Sila Khan wrote: > > > On Tue, Jun 7, 2011 at 9:22 AM, Sila Khan > wrote: > > Hi > Dear map server users! as m new to map server,i want to import > nautical charts on map server,how and in which format it z possible? > Does map server supports s-57 or .BSB formats.plz share your > experiences regarding the tool to view nautical charts or how to > load them in map server. > Thanks Sila, I few of us have done some stuff with nautical charts. To start with you will likely want to use GDAL/OGR. OGR can read S-57 formats. I would recommend converting the layers you want to shapefile format using ogr2ogr. You need to separate the data into polygon, lines, and point data. Then you will need to create a mapfile for rendering the various data layers at the scales you are interested in. You will need to develop symbols the match the symbology of the nautical charts. Maybe some of the other users have symbols they are willing to share. For my own efforts, I only experimented with it briefly and did not develop many of the symbols and that was about 5-8 years ago and I can not find any of that effort at this point. You might also looks at: http://www.iho.int/english/home/ http://www.iho-ohi.net/iho_pubs/IHO_Download.htm These might have links to documents the describe the symbology that you need to develop. -Steve W From mmypost at yandex.ru Mon Jun 6 23:36:32 2011 From: mmypost at yandex.ru (uvg) Date: Mon, 6 Jun 2011 23:36:32 -0700 (PDT) Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> <4DECF27A.7020607@geoanalytic.com> Message-ID: <1307428592425-6448299.post@n2.nabble.com> Hi! Can I change the coordinates of the Label's region through SWIG MapScript API? I use mapscript library for .Net. I tried to use "labelCacheMemberObj" object and "poly" attribute for the problem, but the attribute is read only -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ANGLE-FOLLOW-and-Label-Offset-v-5-6-6-tp6445138p6448299.html Sent from the Mapserver - User mailing list archive at Nabble.com. From judemwenda at gmail.com Tue Jun 7 05:08:42 2011 From: judemwenda at gmail.com (jude mwenda) Date: Tue, 7 Jun 2011 15:08:42 +0300 Subject: [mapserver-users] Datarange Quartiles and Legend Message-ID: Hi, I have a datarange on the map file stipulated as DATARANGE 0.0 1000000 Is there a way to have this specified as data quartiles? And the RangeItem is dynamic. Any pointers on how to go about this.? -- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr n?tzlich f?r andere." Johann Wolfgang von Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Jun 7 06:55:14 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 07 Jun 2011 07:55:14 -0600 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> <4DECF27A.7020607@geoanalytic.com> Message-ID: <4DEE2DC2.4050209@geoanalytic.com> Thomas, Yes, I've been trying to come up with good map file syntax to indicate labeling of the transformed geometry. Currently mapserver allows: - transformed original geometry (buffer, difference) - augmented original geometry (bbox, start/end, vertices) - rendered label geometry (labelpoint, labelpoly) but it doesn't label transformed geometry, only original geometry. The main problem (from a user interface perspective) is how to relate transformed geometry to the label specification. One solution is to allow a LABEL object within a STYLE object: CLASS NAME 'Streams' STYLE GEOMTRANSFORM (buffer([shape], 5)) LABEL usual label settings END # Label END # Style but that's a little strange as STYLE objects are currently allowed within LABEL objects. Another solution is to have "named" geometry and reference it in the LABEL object (and keep the existing CLASS/STYLE/LABEL structure): CLASS NAME 'Streams' STYLE GEOMTRANSFORM my_label_shape = (buffer([shape], 5)) END # Style LABEL usual label settings GEOMETRY my_label_shape END # Label And I'm sure there are other (and hopefully better) solutions. Best Regards, Brent Fraser On 6/6/2011 11:02 AM, thomas bonfort wrote: > Yes, the resulting shape seems like a nice candidate for offseting > labels, but the problem with buffer is you will have more difficulty > in deciding what is to the left from what is to the right of the line. > We'd also have to make sure that the buffer operation is not too > costly on cpu cycles. > Anyways, until geomtransform is not applied at the layer level, there > is no way to use this method as the label does not operate on the > transformed geometry. > > On Mon, Jun 6, 2011 at 17:30, Brent Fraser wrote: >> Steve, >> >> I think just buffering the line would apply a type of smoothing (see >> attached image). Using the resulting buffer line (or perhaps doing some >> simple line smoothing on it) for labeling would be good enough. >> >> Best Regards, >> Brent Fraser >> >> >> On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: >>> Duh! you are correct, I always forget this point until I after my second >>> cup of coffee has kicked in :) >>> >>> That article looks very interesting, I have to read up on that. >>> >>> In a past career in computer aided design and manufacturing, we used the >>> idea of a rolling ball offset because it modeled a milling machine. The >>> rolling ball offset is defined as the curve traced by the center of a ball >>> of a given radius as you roll it along a curve. The circumference of the >>> ball can not cross over the original curve so for tight "S" curves if the >>> diameter of the ball is larger than the gap in the "S" then the ball does >>> not enter the gap but floats over it. This same concept would make for well >>> behaved and good looking labels along tight twisty paths like rivers and >>> roads. >>> >>> Another idea for smoothing out curves for labeling might be to apply an N >>> point moving average and allow that to be the label path. I don't think this >>> has been mentioned as an option in the past. >>> >>> -Steve W >>> >>> On 6/6/2011 10:20 AM, thomas bonfort wrote: >>>> There are two problems with the solution you propose: >>>> - if you offset the geometry in postgis, the distance of the offset >>>> will be in geographical units, i.e. it will not give correct results >>>> at all scales when rendered with mapserver (what you basically want is >>>> to offset the line by a number of pixels roughly equal to the size of >>>> the font used for labelling) >>>> - angle follow on offset line should probably be done on a >>>> simplified/smoothed geometry. see >>>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . >>>> Ideally someone will want the feature badly enough to fund it :) >>>> >>>> -- >>>> thomas >>>> >>>> >>>> >>>> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge >>>> wrote: >>>>> There was some recent discussion on the dev list about potentially using >>>>> the >>>>> GEOMTRANSFORM to do something like a single sided offset then using that >>>>> to >>>>> apply the label to. BUT I do not think that has been implemented yet in >>>>> mapserver. >>>>> >>>>> Google for "mapserver geomtransform" also look at "geoprocessing" for >>>>> some >>>>> other ideas. >>>>> >>>>> Anyway, you might be able to do what you want if you: >>>>> >>>>> 1. import your data into PostGIS >>>>> 2. create offset geometry in another table >>>>> 3. export that table to a shapefile >>>>> 4. then label that as an annotation layer so you do not draw the >>>>> geometry >>>>> only the label and use the original data to draw the grometry ie: two >>>>> layers. >>>>> >>>>> I have not tried this, but it might solve your problem. >>>>> >>>>> -Steve W >>>>> >>>>> On 6/6/2011 9:48 AM, uvg wrote: >>>>>> Thank you, Thomas. >>>>>> Are there any workarounds for this problem? >>>>>> Is there 'best practices' for the problem? >>>>>> Maybe unvisible layer or other? >>>>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>>>>> >: >>>>>> >>>>>> The status has not changed: label follow with offset is not >>>>>> supported. >>>>>> >>>>>> regards, >>>>>> thomas >>>>>> >>>>>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: >>>>>> >>>>>>> Hi all! >>>>>>> Sorry for my bad English. >>>>>>> >>>>>>> I am trying to achieve is a label that follows the rivers that is >>>>>> also >>>>>>> OFFSET so that >>>>>>> the label does not 'above' on the line for the river. >>>>>>> >>>>>>> Sample code of mapfile: >>>>>>> >>>>>>> LABEL >>>>>>> COLOR 0 40 255 >>>>>>> FONT "arial-italic" >>>>>>> TYPE truetype >>>>>>> SIZE 7 >>>>>>> OFFSET 5 0 >>>>>>> ANGLE FOLLOW >>>>>>> POSITION LC >>>>>>> FORCE true >>>>>>> PARTIALS FALSE >>>>>>> >>>>>>> END >>>>>>> >>>>>>> "OFFSET" does not work. >>>>>>> How can I offset a label? >>>>>>> >>>>>>> I found a message posted for a long time: >>>>>>> click here. >>>>>> >>>>>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >>>>>> 5.6.6) >>>>>> >>>>>> >>>>>> >>>>>> 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 >>>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From Bob.Basques at ci.stpaul.mn.us Tue Jun 7 07:21:57 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 07 Jun 2011 09:21:57 -0500 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DEE2DC2.4050209@geoanalytic.com> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> <4DECF27A.7020607@geoanalytic.com> <4DEE2DC2.4050209@geoanalytic.com> Message-ID: <4DEDEDB5020000A80002AD45@heckle> All, I've been following this thread with interest. Was wondering, does it make any sense to consider building out an entirely new geometry set that is based on the original geometry. On the surface this seems like overkill, but I wonder if treating this situation as an indexing sort of problem might not help. The buffered result geometries could easily become more complex than the original geometries for example, and having them as a separated group may be beneficial to performance tuning, etc. Might this be a new commandline tool for building these extras into a dataset (similar to making IDX files?). I could think of a few uses of this type of thing for highlighting, etc. Although, now that I've thought about it even more, the idea of being able to change these things on the fly makes the whole conversation go round back to the beginning again. :c). Making the buffering dynamic has it's advantages as well for example. bobb >>> Brent Fraser wrote: Thomas, Yes, I've been trying to come up with good map file syntax to indicate labeling of the transformed geometry. Currently mapserver allows: - transformed original geometry (buffer, difference) - augmented original geometry (bbox, start/end, vertices) - rendered label geometry (labelpoint, labelpoly) but it doesn't label transformed geometry, only original geometry. The main problem (from a user interface perspective) is how to relate transformed geometry to the label specification. One solution is to allow a LABEL object within a STYLE object: CLASS NAME 'Streams' STYLE GEOMTRANSFORM (buffer([shape], 5)) LABEL usual label settings END # Label END # Style but that's a little strange as STYLE objects are currently allowed within LABEL objects. Another solution is to have "named" geometry and reference it in the LABEL object (and keep the existing CLASS/STYLE/LABEL structure): CLASS NAME 'Streams' STYLE GEOMTRANSFORM my_label_shape = (buffer([shape], 5)) END # Style LABEL usual label settings GEOMETRY my_label_shape END # Label And I'm sure there are other (and hopefully better) solutions. Best Regards, Brent Fraser On 6/6/2011 11:02 AM, thomas bonfort wrote: > Yes, the resulting shape seems like a nice candidate for offseting > labels, but the problem with buffer is you will have more difficulty > in deciding what is to the left from what is to the right of the line. > We'd also have to make sure that the buffer operation is not too > costly on cpu cycles. > Anyways, until geomtransform is not applied at the layer level, there > is no way to use this method as the label does not operate on the > transformed geometry. > > On Mon, Jun 6, 2011 at 17:30, Brent Fraser wrote: >> Steve, >> >> I think just buffering the line would apply a type of smoothing (see >> attached image). Using the resulting buffer line (or perhaps doing some >> simple line smoothing on it) for labeling would be good enough. >> >> Best Regards, >> Brent Fraser >> >> >> On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: >>> Duh! you are correct, I always forget this point until I after my second >>> cup of coffee has kicked in :) >>> >>> That article looks very interesting, I have to read up on that. >>> >>> In a past career in computer aided design and manufacturing, we used the >>> idea of a rolling ball offset because it modeled a milling machine. The >>> rolling ball offset is defined as the curve traced by the center of a ball >>> of a given radius as you roll it along a curve. The circumference of the >>> ball can not cross over the original curve so for tight "S" curves if the >>> diameter of the ball is larger than the gap in the "S" then the ball does >>> not enter the gap but floats over it. This same concept would make for well >>> behaved and good looking labels along tight twisty paths like rivers and >>> roads. >>> >>> Another idea for smoothing out curves for labeling might be to apply an N >>> point moving average and allow that to be the label path. I don't think this >>> has been mentioned as an option in the past. >>> >>> -Steve W >>> >>> On 6/6/2011 10:20 AM, thomas bonfort wrote: >>>> There are two problems with the solution you propose: >>>> - if you offset the geometry in postgis, the distance of the offset >>>> will be in geographical units, i.e. it will not give correct results >>>> at all scales when rendered with mapserver (what you basically want is >>>> to offset the line by a number of pixels roughly equal to the size of >>>> the font used for labelling) >>>> - angle follow on offset line should probably be done on a >>>> simplified/smoothed geometry. see >>>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . >>>> Ideally someone will want the feature badly enough to fund it :) >>>> >>>> -- >>>> thomas >>>> >>>> >>>> >>>> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge >>>> wrote: >>>>> There was some recent discussion on the dev list about potentially using >>>>> the >>>>> GEOMTRANSFORM to do something like a single sided offset then using that >>>>> to >>>>> apply the label to. BUT I do not think that has been implemented yet in >>>>> mapserver. >>>>> >>>>> Google for "mapserver geomtransform" also look at "geoprocessing" for >>>>> some >>>>> other ideas. >>>>> >>>>> Anyway, you might be able to do what you want if you: >>>>> >>>>> 1. import your data into PostGIS >>>>> 2. create offset geometry in another table >>>>> 3. export that table to a shapefile >>>>> 4. then label that as an annotation layer so you do not draw the >>>>> geometry >>>>> only the label and use the original data to draw the grometry ie: two >>>>> layers. >>>>> >>>>> I have not tried this, but it might solve your problem. >>>>> >>>>> -Steve W >>>>> >>>>> On 6/6/2011 9:48 AM, uvg wrote: >>>>>> Thank you, Thomas. >>>>>> Are there any workarounds for this problem? >>>>>> Is there 'best practices' for the problem? >>>>>> Maybe unvisible layer or other? >>>>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>>>>> >: >>>>>> >>>>>> The status has not changed: label follow with offset is not >>>>>> supported. >>>>>> >>>>>> regards, >>>>>> thomas >>>>>> >>>>>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: >>>>>> >>>>>>> Hi all! >>>>>>> Sorry for my bad English. >>>>>>> >>>>>>> I am trying to achieve is a label that follows the rivers that is >>>>>> also >>>>>>> OFFSET so that >>>>>>> the label does not 'above' on the line for the river. >>>>>>> >>>>>>> Sample code of mapfile: >>>>>>> >>>>>>> LABEL >>>>>>> COLOR 0 40 255 >>>>>>> FONT "arial-italic" >>>>>>> TYPE truetype >>>>>>> SIZE 7 >>>>>>> OFFSET 5 0 >>>>>>> ANGLE FOLLOW >>>>>>> POSITION LC >>>>>>> FORCE true >>>>>>> PARTIALS FALSE >>>>>>> >>>>>>> END >>>>>>> >>>>>>> "OFFSET" does not work. >>>>>>> How can I offset a label? >>>>>>> >>>>>>> I found a message posted for a long time: >>>>>>> click here. >>>>>> >>>>>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >>>>>> 5.6.6) >>>>>> >>>>>> >>>>>> >>>>>> 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 >>>>> >>> _______________________________________________ >>> 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 dmorissette at mapgears.com Tue Jun 7 07:30:46 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 07 Jun 2011 10:30:46 -0400 Subject: [mapserver-users] Display TAB point layer but get label from a second tab file In-Reply-To: References: Message-ID: <4DEE3616.6080406@mapgears.com> On 11-06-06 06:29 PM, Peter Girgis wrote: > Hi all > > I wonder if anyone can assist me with this issue. > I have a TAB file which contains points and a second TAB file which > contains the labels. > The two TAB files are relational so I can look up the label using a > unique id however I cannot work out whether it is in fact possible to > display labels from a second TAB file based on a query. > > This is similar to JOIN where you would lookup labels from a csv or > database however I canot see an option to do this from a TAB file. > You could use a OGR SQL statement in the DATA parameter of your layer to join the two tables. This won't be very efficient since I don't think OGR will take advantage of any index in this case, but could be worth a try if your files are not too large. e.g. something like the following (untested) LAYER NAME "mylayer" TYPE POINT CONNECTIONTYPE OGR CONNECTION "/path/to/points.tab" DATA "SELECT * from points LEFT JOIN '/path/to/labels.tab'.labels on points.id = labels.id" STATUS ON CLASS ... END ... END For more info on OGR SQL, see: http://www.gdal.org/ogr/ogr_sql.html ... and use the ogrinfo utility to experiment and test your SQL statement. Another option may be to setup a VRT to join the two tables... that would be doing essentially the same thing internally, except that the SQL statement would be inside the VRT file: http://www.gdal.org/ogr/drv_vrt.html http://mapserver.org/input/vector/VirtualSpatialData.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From bfraser at geoanalytic.com Tue Jun 7 08:01:14 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 07 Jun 2011 09:01:14 -0600 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DEDEDB5020000A80002AD45@heckle> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> <4DECF27A.7020607@geoanalytic.com> <4DEE2DC2.4050209@geoanalytic.com> <4DEDEDB5020000A80002AD45@heckle> Message-ID: <4DEE3D3A.5040801@geoanalytic.com> Bob, I take it you mean making the transformed geometry persistent to minimize the performance hit? You can do that now by creating additional layers with your favorite GUI or command line tools. My buffered geometry is for visualization only (so far?) so the buffer distance is in pixels (or text points). I want the thick line rendered inside the polygon to be 5 pixels wide regardless of the zoom level, or I want the stream label to be placed [approximately] 4 pixels above the stream regardless of the view scale. On the other hand, Steve Lime had mused about having LAYER-level transformed geometry so it could be used in queries. It kind of boggles the mind (well, mine anyway). Would it be possible to select features by attribute (where name='my stream') from one, buffer it (my_buffer=buffer(shape, 500m)), and use the resulting geometry to select from another layer (where building_type="residential' and within(my_buffer))? Oh wait, "Mapserver is not a full-featured GIS"... Best Regards, Brent Fraser On 6/7/2011 8:21 AM, Bob Basques wrote: > > All, > > > I've been following this thread with interest. > > > Was wondering, does it make any sense to consider building out an > entirely new geometry set that is based on the original geometry. On > the surface this seems like overkill, but I wonder if treating this > situation as an indexing sort of problem might not help. The buffered > result geometries could easily become more complex than the original > geometries for example, and having them as a separated group may be > beneficial to performance tuning, etc. > > > Might this be a new commandline tool for building these extras into a > dataset (similar to making IDX files?). I could think of a few uses > of this type of thing for highlighting, etc. Although, now that I've > thought about it even more, the idea of being able to change these > things on the fly makes the whole conversation go round back to the > beginning again. :c). Making the buffering dynamic has it's > advantages as well for example. > > > bobb > > > > > > > >>> Brent Fraser wrote: > > Thomas, > > Yes, I've been trying to come up with good map file syntax to > indicate labeling of the transformed geometry. Currently mapserver > allows: > - transformed original geometry (buffer, difference) > - augmented original geometry (bbox, start/end, vertices) > - rendered label geometry (labelpoint, labelpoly) > > but it doesn't label transformed geometry, only original geometry. The > main problem (from a user interface perspective) is how to relate > transformed geometry to the label specification. > > One solution is to allow a LABEL object within a STYLE object: > > CLASS > NAME 'Streams' > STYLE > GEOMTRANSFORM (buffer([shape], 5)) > > LABEL > usual label settings > END # Label > END # Style > > but that's a little strange as STYLE objects are currently allowed > within LABEL objects. > > Another solution is to have "named" geometry and reference it in the > LABEL object (and keep the existing CLASS/STYLE/LABEL structure): > > CLASS > NAME 'Streams' > STYLE > GEOMTRANSFORM my_label_shape = (buffer([shape], 5)) > END # Style > > LABEL > usual label settings > GEOMETRY my_label_shape > END # Label > > And I'm sure there are other (and hopefully better) solutions. > > Best Regards, > Brent Fraser > > > On 6/6/2011 11:02 AM, thomas bonfort wrote: > > Yes, the resulting shape seems like a nice candidate for offseting > > labels, but the problem with buffer is you will have more difficulty > > in deciding what is to the left from what is to the right of the line. > > We'd also have to make sure that the buffer operation is not too > > costly on cpu cycles. > > Anyways, until geomtransform is not applied at the layer level, there > > is no way to use this method as the label does not operate on the > > transformed geometry. > > > > On Mon, Jun 6, 2011 at 17:30, Brent Fraser > wrote: > >> Steve, > >> > >> I think just buffering the line would apply a type of smoothing (see > >> attached image). Using the resulting buffer line (or perhaps doing > some > >> simple line smoothing on it) for labeling would be good enough. > >> > >> Best Regards, > >> Brent Fraser > >> > >> > >> On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: > >>> Duh! you are correct, I always forget this point until I after my > second > >>> cup of coffee has kicked in :) > >>> > >>> That article looks very interesting, I have to read up on that. > >>> > >>> In a past career in computer aided design and manufacturing, we > used the > >>> idea of a rolling ball offset because it modeled a milling > machine. The > >>> rolling ball offset is defined as the curve traced by the center > of a ball > >>> of a given radius as you roll it along a curve. The circumference > of the > >>> ball can not cross over the original curve so for tight "S" curves > if the > >>> diameter of the ball is larger than the gap in the "S" then the > ball does > >>> not enter the gap but floats over it. This same concept would make > for well > >>> behaved and good looking labels along tight twisty paths like > rivers and > >>> roads. > >>> > >>> Another idea for smoothing out curves for labeling might be to > apply an N > >>> point moving average and allow that to be the label path. I don't > think this > >>> has been mentioned as an option in the past. > >>> > >>> -Steve W > >>> > >>> On 6/6/2011 10:20 AM, thomas bonfort wrote: > >>>> There are two problems with the solution you propose: > >>>> - if you offset the geometry in postgis, the distance of the offset > >>>> will be in geographical units, i.e. it will not give correct results > >>>> at all scales when rendered with mapserver (what you basically > want is > >>>> to offset the line by a number of pixels roughly equal to the size of > >>>> the font used for labelling) > >>>> - angle follow on offset line should probably be done on a > >>>> simplified/smoothed geometry. see > >>>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . > >>>> Ideally someone will want the feature badly enough to fund it :) > >>>> > >>>> -- > >>>> thomas > >>>> > >>>> > >>>> > >>>> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge > >>>> wrote: > >>>>> There was some recent discussion on the dev list about > potentially using > >>>>> the > >>>>> GEOMTRANSFORM to do something like a single sided offset then > using that > >>>>> to > >>>>> apply the label to. BUT I do not think that has been implemented > yet in > >>>>> mapserver. > >>>>> > >>>>> Google for "mapserver geomtransform" also look at > "geoprocessing" for > >>>>> some > >>>>> other ideas. > >>>>> > >>>>> Anyway, you might be able to do what you want if you: > >>>>> > >>>>> 1. import your data into PostGIS > >>>>> 2. create offset geometry in another table > >>>>> 3. export that table to a shapefile > >>>>> 4. then label that as an annotation layer so you do not draw the > >>>>> geometry > >>>>> only the label and use the original data to draw the grometry > ie: two > >>>>> layers. > >>>>> > >>>>> I have not tried this, but it might solve your problem. > >>>>> > >>>>> -Steve W > >>>>> > >>>>> On 6/6/2011 9:48 AM, uvg wrote: > >>>>>> Thank you, Thomas. > >>>>>> Are there any workarounds for this problem? > >>>>>> Is there 'best practices' for the problem? > >>>>>> Maybe unvisible layer or other? > >>>>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] > >>>>>> >: > >>>>>> > >>>>>> The status has not changed: label follow with offset is not > >>>>>> supported. > >>>>>> > >>>>>> regards, > >>>>>> thomas > >>>>>> > >>>>>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: > >>>>>> > >>>>>>> Hi all! > >>>>>>> Sorry for my bad English. > >>>>>>> > >>>>>>> I am trying to achieve is a label that follows the rivers > that is > >>>>>> also > >>>>>>> OFFSET so that > >>>>>>> the label does not 'above' on the line for the river. > >>>>>>> > >>>>>>> Sample code of mapfile: > >>>>>>> > >>>>>>> LABEL > >>>>>>> COLOR 0 40 255 > >>>>>>> FONT "arial-italic" > >>>>>>> TYPE truetype > >>>>>>> SIZE 7 > >>>>>>> OFFSET 5 0 > >>>>>>> ANGLE FOLLOW > >>>>>>> POSITION LC > >>>>>>> FORCE true > >>>>>>> PARTIALS FALSE > >>>>>>> > >>>>>>> END > >>>>>>> > >>>>>>> "OFFSET" does not work. > >>>>>>> How can I offset a label? > >>>>>>> > >>>>>>> I found a message posted for a long time: > >>>>>>> click here. > >>>>>> > >>>>>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. > >>>>>> 5.6.6) > >>>>>> > >>>>>> > >>>>>> > > >>>>>> 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 > >>>>> > >>> _______________________________________________ > >>> 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 Tue Jun 7 08:10:55 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 07 Jun 2011 10:10:55 -0500 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DEE3D3A.5040801@geoanalytic.com> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> <4DECF27A.7020607@geoanalytic.com> <4DEE2DC2.4050209@geoanalytic.com> <4DEDEDB5020000A80002AD45@heckle> <4DEE3D3A.5040801@geoanalytic.com> Message-ID: <4DEDF92F020000A80002AD5B@heckle> Brent, I was thinking initially about some sort of half way between persistent and original, the difference being, primarily, that these buffered objects would end up being real and new geometries, instead of buffered thingies. This would allow for using the existing labeling capabilities. Running these buffered objects out in real time seemed to be the problem. Your specific needs seem to point to dynamic rendering as well (scaled geometries) Sounds like Steve's idea is reminiscent of a conversation we had a few years ago related to putting more GEO control into a user request pipeline, which is essentially a method of working the new geometries forward halfway. You're right though. May have to re-write some of those project descriptors at some point. :c) bobb >>> Brent Fraser wrote: Bob, I take it you mean making the transformed geometry persistent to minimize the performance hit? You can do that now by creating additional layers with your favorite GUI or command line tools. My buffered geometry is for visualization only (so far?) so the buffer distance is in pixels (or text points). I want the thick line rendered inside the polygon to be 5 pixels wide regardless of the zoom level, or I want the stream label to be placed [approximately] 4 pixels above the stream regardless of the view scale. On the other hand, Steve Lime had mused about having LAYER-level transformed geometry so it could be used in queries. It kind of boggles the mind (well, mine anyway). Would it be possible to select features by attribute (where name='my stream') from one, buffer it (my_buffer=buffer(shape, 500m)), and use the resulting geometry to select from another layer (where building_type="residential' and within(my_buffer))? Oh wait, "Mapserver is not a full-featured GIS"... Best Regards, Brent Fraser On 6/7/2011 8:21 AM, Bob Basques wrote: All, I've been following this thread with interest. Was wondering, does it make any sense to consider building out an entirely new geometry set that is based on the original geometry. On the surface this seems like overkill, but I wonder if treating this situation as an indexing sort of problem might not help. The buffered result geometries could easily become more complex than the original geometries for example, and having them as a separated group may be beneficial to performance tuning, etc. Might this be a new commandline tool for building these extras into a dataset (similar to making IDX files?). I could think of a few uses of this type of thing for highlighting, etc. Although, now that I've thought about it even more, the idea of being able to change these things on the fly makes the whole conversation go round back to the beginning again. :c). Making the buffering dynamic has it's advantages as well for example. bobb >>> Brent Fraser ( mailto:bfraser at geoanalytic.com ) wrote: Thomas, Yes, I've been trying to come up with good map file syntax to indicate labeling of the transformed geometry. Currently mapserver allows: - transformed original geometry (buffer, difference) - augmented original geometry (bbox, start/end, vertices) - rendered label geometry (labelpoint, labelpoly) but it doesn't label transformed geometry, only original geometry. The main problem (from a user interface perspective) is how to relate transformed geometry to the label specification. One solution is to allow a LABEL object within a STYLE object: CLASS NAME 'Streams' STYLE GEOMTRANSFORM (buffer([shape], 5)) LABEL usual label settings END # Label END # Style but that's a little strange as STYLE objects are currently allowed within LABEL objects. Another solution is to have "named" geometry and reference it in the LABEL object (and keep the existing CLASS/STYLE/LABEL structure): CLASS NAME 'Streams' STYLE GEOMTRANSFORM my_label_shape = (buffer([shape], 5)) END # Style LABEL usual label settings GEOMETRY my_label_shape END # Label And I'm sure there are other (and hopefully better) solutions. Best Regards, Brent Fraser On 6/6/2011 11:02 AM, thomas bonfort wrote: > Yes, the resulting shape seems like a nice candidate for offseting > labels, but the problem with buffer is you will have more difficulty > in deciding what is to the left from what is to the right of the line. > We'd also have to make sure that the buffer operation is not too > costly on cpu cycles. > Anyways, until geomtransform is not applied at the layer level, there > is no way to use this method as the label does not operate on the > transformed geometry. > > On Mon, Jun 6, 2011 at 17:30, Brent Fraser ( mailto:bfraser at geoanalytic.com ) wrote: >> Steve, >> >> I think just buffering the line would apply a type of smoothing (see >> attached image). Using the resulting buffer line (or perhaps doing some >> simple line smoothing on it) for labeling would be good enough. >> >> Best Regards, >> Brent Fraser >> >> >> On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: >>> Duh! you are correct, I always forget this point until I after my second >>> cup of coffee has kicked in :) >>> >>> That article looks very interesting, I have to read up on that. >>> >>> In a past career in computer aided design and manufacturing, we used the >>> idea of a rolling ball offset because it modeled a milling machine. The >>> rolling ball offset is defined as the curve traced by the center of a ball >>> of a given radius as you roll it along a curve. The circumference of the >>> ball can not cross over the original curve so for tight "S" curves if the >>> diameter of the ball is larger than the gap in the "S" then the ball does >>> not enter the gap but floats over it. This same concept would make for well >>> behaved and good looking labels along tight twisty paths like rivers and >>> roads. >>> >>> Another idea for smoothing out curves for labeling might be to apply an N >>> point moving average and allow that to be the label path. I don't think this >>> has been mentioned as an option in the past. >>> >>> -Steve W >>> >>> On 6/6/2011 10:20 AM, thomas bonfort wrote: >>>> There are two problems with the solution you propose: >>>> - if you offset the geometry in postgis, the distance of the offset >>>> will be in geographical units, i.e. it will not give correct results >>>> at all scales when rendered with mapserver (what you basically want is >>>> to offset the line by a number of pixels roughly equal to the size of >>>> the font used for labelling) >>>> - angle follow on offset line should probably be done on a >>>> simplified/smoothed geometry. see >>>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . >>>> Ideally someone will want the feature badly enough to fund it :) >>>> >>>> -- >>>> thomas >>>> >>>> >>>> >>>> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge >>>> ( mailto:woodbri at swoodbridge.com ) wrote: >>>>> There was some recent discussion on the dev list about potentially using >>>>> the >>>>> GEOMTRANSFORM to do something like a single sided offset then using that >>>>> to >>>>> apply the label to. BUT I do not think that has been implemented yet in >>>>> mapserver. >>>>> >>>>> Google for "mapserver geomtransform" also look at "geoprocessing" for >>>>> some >>>>> other ideas. >>>>> >>>>> Anyway, you might be able to do what you want if you: >>>>> >>>>> 1. import your data into PostGIS >>>>> 2. create offset geometry in another table >>>>> 3. export that table to a shapefile >>>>> 4. then label that as an annotation layer so you do not draw the >>>>> geometry >>>>> only the label and use the original data to draw the grometry ie: two >>>>> layers. >>>>> >>>>> I have not tried this, but it might solve your problem. >>>>> >>>>> -Steve W >>>>> >>>>> On 6/6/2011 9:48 AM, uvg wrote: >>>>>> Thank you, Thomas. >>>>>> Are there any workarounds for this problem? >>>>>> Is there 'best practices' for the problem? >>>>>> Maybe unvisible layer or other? >>>>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>>>>> >: >>>>>> >>>>>> The status has not changed: label follow with offset is not >>>>>> supported. >>>>>> >>>>>> regards, >>>>>> thomas >>>>>> >>>>>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: >>>>>> >>>>>>> Hi all! >>>>>>> Sorry for my bad English. >>>>>>> >>>>>>> I am trying to achieve is a label that follows the rivers that is >>>>>> also >>>>>>> OFFSET so that >>>>>>> the label does not 'above' on the line for the river. >>>>>>> >>>>>>> Sample code of mapfile: >>>>>>> >>>>>>> LABEL >>>>>>> COLOR 0 40 255 >>>>>>> FONT "arial-italic" >>>>>>> TYPE truetype >>>>>>> SIZE 7 >>>>>>> OFFSET 5 0 >>>>>>> ANGLE FOLLOW >>>>>>> POSITION LC >>>>>>> FORCE true >>>>>>> PARTIALS FALSE >>>>>>> >>>>>>> END >>>>>>> >>>>>>> "OFFSET" does not work. >>>>>>> How can I offset a label? >>>>>>> >>>>>>> I found a message posted for a long time: >>>>>>> click here. >>>>>> >>>>>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >>>>>> 5.6.6) >>>>>> >>>>>> >>>>>> >>>>>> 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 >>>>> >>> _______________________________________________ >>> 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 judemwenda at gmail.com Tue Jun 7 09:48:31 2011 From: judemwenda at gmail.com (jude mwenda) Date: Tue, 7 Jun 2011 19:48:31 +0300 Subject: [mapserver-users] Dynamic change of Styling info on mapfile Message-ID: Hi, i have the following problem where i have a mapfile with the following. specified for a layer STYLE COLORRANGE 0 0 0 255 255 0 # black to yellow DATARANGE 0.0 2000000.0 RANGEITEM "POP2005" END So the above loads a nice map. But i would like the colorrange,datarange and rangeitem to be dynamic. Is there a way to change their values during runtime? I have looked at the documentation on variable substitution and tried what there but the mayer fails to load. Please help. -- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr n?tzlich f?r andere." Johann Wolfgang von Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Jun 7 13:45:44 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 07 Jun 2011 16:45:44 -0400 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DEE2DC2.4050209@geoanalytic.com> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> <4DECF27A.7020607@geoanalytic.com> <4DEE2DC2.4050209@geoanalytic.com> Message-ID: <4DEE8DF8.2010001@swoodbridge.com> Brent, Thomas, Could we optionally allow GEOMTRANSFORM inside the LABEL and here it would be only used for the label. I guess the ambiguous part might be does this GEOMTRANSFORM in the label work based on the original geometry or LAYER level GEOMTRANSFORM that might precedes it. This seems like the simple clean solution to me. Thoughts? -Steve W On 6/7/2011 9:55 AM, Brent Fraser wrote: > Thomas, > > Yes, I've been trying to come up with good map file syntax to indicate > labeling of the transformed geometry. Currently mapserver allows: > - transformed original geometry (buffer, difference) > - augmented original geometry (bbox, start/end, vertices) > - rendered label geometry (labelpoint, labelpoly) > > but it doesn't label transformed geometry, only original geometry. The > main problem (from a user interface perspective) is how to relate > transformed geometry to the label specification. > > One solution is to allow a LABEL object within a STYLE object: > > CLASS > NAME 'Streams' > STYLE > GEOMTRANSFORM (buffer([shape], 5)) > > LABEL > usual label settings > END # Label > END # Style > > but that's a little strange as STYLE objects are currently allowed > within LABEL objects. > > Another solution is to have "named" geometry and reference it in the > LABEL object (and keep the existing CLASS/STYLE/LABEL structure): > > CLASS > NAME 'Streams' > STYLE > GEOMTRANSFORM my_label_shape = (buffer([shape], 5)) > END # Style > > LABEL > usual label settings > GEOMETRY my_label_shape > END # Label > > And I'm sure there are other (and hopefully better) solutions. > > Best Regards, > Brent Fraser > > > On 6/6/2011 11:02 AM, thomas bonfort wrote: >> Yes, the resulting shape seems like a nice candidate for offseting >> labels, but the problem with buffer is you will have more difficulty >> in deciding what is to the left from what is to the right of the line. >> We'd also have to make sure that the buffer operation is not too >> costly on cpu cycles. >> Anyways, until geomtransform is not applied at the layer level, there >> is no way to use this method as the label does not operate on the >> transformed geometry. >> >> On Mon, Jun 6, 2011 at 17:30, Brent Fraser >> wrote: >>> Steve, >>> >>> I think just buffering the line would apply a type of smoothing (see >>> attached image). Using the resulting buffer line (or perhaps doing some >>> simple line smoothing on it) for labeling would be good enough. >>> >>> Best Regards, >>> Brent Fraser >>> >>> >>> On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: >>>> Duh! you are correct, I always forget this point until I after my >>>> second >>>> cup of coffee has kicked in :) >>>> >>>> That article looks very interesting, I have to read up on that. >>>> >>>> In a past career in computer aided design and manufacturing, we used >>>> the >>>> idea of a rolling ball offset because it modeled a milling machine. The >>>> rolling ball offset is defined as the curve traced by the center of >>>> a ball >>>> of a given radius as you roll it along a curve. The circumference of >>>> the >>>> ball can not cross over the original curve so for tight "S" curves >>>> if the >>>> diameter of the ball is larger than the gap in the "S" then the ball >>>> does >>>> not enter the gap but floats over it. This same concept would make >>>> for well >>>> behaved and good looking labels along tight twisty paths like rivers >>>> and >>>> roads. >>>> >>>> Another idea for smoothing out curves for labeling might be to apply >>>> an N >>>> point moving average and allow that to be the label path. I don't >>>> think this >>>> has been mentioned as an option in the past. >>>> >>>> -Steve W >>>> >>>> On 6/6/2011 10:20 AM, thomas bonfort wrote: >>>>> There are two problems with the solution you propose: >>>>> - if you offset the geometry in postgis, the distance of the offset >>>>> will be in geographical units, i.e. it will not give correct results >>>>> at all scales when rendered with mapserver (what you basically want is >>>>> to offset the line by a number of pixels roughly equal to the size of >>>>> the font used for labelling) >>>>> - angle follow on offset line should probably be done on a >>>>> simplified/smoothed geometry. see >>>>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . >>>>> Ideally someone will want the feature badly enough to fund it :) >>>>> >>>>> -- >>>>> thomas >>>>> >>>>> >>>>> >>>>> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge >>>>> wrote: >>>>>> There was some recent discussion on the dev list about potentially >>>>>> using >>>>>> the >>>>>> GEOMTRANSFORM to do something like a single sided offset then >>>>>> using that >>>>>> to >>>>>> apply the label to. BUT I do not think that has been implemented >>>>>> yet in >>>>>> mapserver. >>>>>> >>>>>> Google for "mapserver geomtransform" also look at "geoprocessing" for >>>>>> some >>>>>> other ideas. >>>>>> >>>>>> Anyway, you might be able to do what you want if you: >>>>>> >>>>>> 1. import your data into PostGIS >>>>>> 2. create offset geometry in another table >>>>>> 3. export that table to a shapefile >>>>>> 4. then label that as an annotation layer so you do not draw the >>>>>> geometry >>>>>> only the label and use the original data to draw the grometry ie: two >>>>>> layers. >>>>>> >>>>>> I have not tried this, but it might solve your problem. >>>>>> >>>>>> -Steve W >>>>>> >>>>>> On 6/6/2011 9:48 AM, uvg wrote: >>>>>>> Thank you, Thomas. >>>>>>> Are there any workarounds for this problem? >>>>>>> Is there 'best practices' for the problem? >>>>>>> Maybe unvisible layer or other? >>>>>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>>>>>> >: >>>>>>> >>>>>>> The status has not changed: label follow with offset is not >>>>>>> supported. >>>>>>> >>>>>>> regards, >>>>>>> thomas >>>>>>> >>>>>>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: >>>>>>> >>>>>>>> Hi all! >>>>>>>> Sorry for my bad English. >>>>>>>> >>>>>>>> I am trying to achieve is a label that follows the rivers that is >>>>>>> also >>>>>>>> OFFSET so that >>>>>>>> the label does not 'above' on the line for the river. >>>>>>>> >>>>>>>> Sample code of mapfile: >>>>>>>> >>>>>>>> LABEL >>>>>>>> COLOR 0 40 255 >>>>>>>> FONT "arial-italic" >>>>>>>> TYPE truetype >>>>>>>> SIZE 7 >>>>>>>> OFFSET 5 0 >>>>>>>> ANGLE FOLLOW >>>>>>>> POSITION LC >>>>>>>> FORCE true >>>>>>>> PARTIALS FALSE >>>>>>>> >>>>>>>> END >>>>>>>> >>>>>>>> "OFFSET" does not work. >>>>>>>> How can I offset a label? >>>>>>>> >>>>>>>> I found a message posted for a long time: >>>>>>>> click here. >>>>>>> >>>>>>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >>>>>>> 5.6.6) >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> 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 >>>>>> >>>> _______________________________________________ >>>> 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 steve.lime at state.mn.us Tue Jun 7 14:16:33 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 7 Jun 2011 16:16:33 -0500 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DEE8DF8.2010001@swoodbridge.com> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DEE8DF8.2010001@swoodbridge.com> Message-ID: I was thinking about layer and label-level GEOMTRANSFORMs, yes. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Tuesday, June 07, 2011 3:46 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) Brent, Thomas, Could we optionally allow GEOMTRANSFORM inside the LABEL and here it would be only used for the label. I guess the ambiguous part might be does this GEOMTRANSFORM in the label work based on the original geometry or LAYER level GEOMTRANSFORM that might precedes it. This seems like the simple clean solution to me. Thoughts? -Steve W On 6/7/2011 9:55 AM, Brent Fraser wrote: > Thomas, > > Yes, I've been trying to come up with good map file syntax to indicate > labeling of the transformed geometry. Currently mapserver allows: > - transformed original geometry (buffer, difference) > - augmented original geometry (bbox, start/end, vertices) > - rendered label geometry (labelpoint, labelpoly) > > but it doesn't label transformed geometry, only original geometry. The > main problem (from a user interface perspective) is how to relate > transformed geometry to the label specification. > > One solution is to allow a LABEL object within a STYLE object: > > CLASS > NAME 'Streams' > STYLE > GEOMTRANSFORM (buffer([shape], 5)) > > LABEL > usual label settings > END # Label > END # Style > > but that's a little strange as STYLE objects are currently allowed > within LABEL objects. > > Another solution is to have "named" geometry and reference it in the > LABEL object (and keep the existing CLASS/STYLE/LABEL structure): > > CLASS > NAME 'Streams' > STYLE > GEOMTRANSFORM my_label_shape = (buffer([shape], 5)) > END # Style > > LABEL > usual label settings > GEOMETRY my_label_shape > END # Label > > And I'm sure there are other (and hopefully better) solutions. > > Best Regards, > Brent Fraser > > > On 6/6/2011 11:02 AM, thomas bonfort wrote: >> Yes, the resulting shape seems like a nice candidate for offseting >> labels, but the problem with buffer is you will have more difficulty >> in deciding what is to the left from what is to the right of the line. >> We'd also have to make sure that the buffer operation is not too >> costly on cpu cycles. >> Anyways, until geomtransform is not applied at the layer level, there >> is no way to use this method as the label does not operate on the >> transformed geometry. >> >> On Mon, Jun 6, 2011 at 17:30, Brent Fraser >> wrote: >>> Steve, >>> >>> I think just buffering the line would apply a type of smoothing (see >>> attached image). Using the resulting buffer line (or perhaps doing some >>> simple line smoothing on it) for labeling would be good enough. >>> >>> Best Regards, >>> Brent Fraser >>> >>> >>> On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: >>>> Duh! you are correct, I always forget this point until I after my >>>> second >>>> cup of coffee has kicked in :) >>>> >>>> That article looks very interesting, I have to read up on that. >>>> >>>> In a past career in computer aided design and manufacturing, we used >>>> the >>>> idea of a rolling ball offset because it modeled a milling machine. The >>>> rolling ball offset is defined as the curve traced by the center of >>>> a ball >>>> of a given radius as you roll it along a curve. The circumference of >>>> the >>>> ball can not cross over the original curve so for tight "S" curves >>>> if the >>>> diameter of the ball is larger than the gap in the "S" then the ball >>>> does >>>> not enter the gap but floats over it. This same concept would make >>>> for well >>>> behaved and good looking labels along tight twisty paths like rivers >>>> and >>>> roads. >>>> >>>> Another idea for smoothing out curves for labeling might be to apply >>>> an N >>>> point moving average and allow that to be the label path. I don't >>>> think this >>>> has been mentioned as an option in the past. >>>> >>>> -Steve W >>>> >>>> On 6/6/2011 10:20 AM, thomas bonfort wrote: >>>>> There are two problems with the solution you propose: >>>>> - if you offset the geometry in postgis, the distance of the offset >>>>> will be in geographical units, i.e. it will not give correct results >>>>> at all scales when rendered with mapserver (what you basically want is >>>>> to offset the line by a number of pixels roughly equal to the size of >>>>> the font used for labelling) >>>>> - angle follow on offset line should probably be done on a >>>>> simplified/smoothed geometry. see >>>>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . >>>>> Ideally someone will want the feature badly enough to fund it :) >>>>> >>>>> -- >>>>> thomas >>>>> >>>>> >>>>> >>>>> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge >>>>> wrote: >>>>>> There was some recent discussion on the dev list about potentially >>>>>> using >>>>>> the >>>>>> GEOMTRANSFORM to do something like a single sided offset then >>>>>> using that >>>>>> to >>>>>> apply the label to. BUT I do not think that has been implemented >>>>>> yet in >>>>>> mapserver. >>>>>> >>>>>> Google for "mapserver geomtransform" also look at "geoprocessing" for >>>>>> some >>>>>> other ideas. >>>>>> >>>>>> Anyway, you might be able to do what you want if you: >>>>>> >>>>>> 1. import your data into PostGIS >>>>>> 2. create offset geometry in another table >>>>>> 3. export that table to a shapefile >>>>>> 4. then label that as an annotation layer so you do not draw the >>>>>> geometry >>>>>> only the label and use the original data to draw the grometry ie: two >>>>>> layers. >>>>>> >>>>>> I have not tried this, but it might solve your problem. >>>>>> >>>>>> -Steve W >>>>>> >>>>>> On 6/6/2011 9:48 AM, uvg wrote: >>>>>>> Thank you, Thomas. >>>>>>> Are there any workarounds for this problem? >>>>>>> Is there 'best practices' for the problem? >>>>>>> Maybe unvisible layer or other? >>>>>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>>>>>> >: >>>>>>> >>>>>>> The status has not changed: label follow with offset is not >>>>>>> supported. >>>>>>> >>>>>>> regards, >>>>>>> thomas >>>>>>> >>>>>>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: >>>>>>> >>>>>>>> Hi all! >>>>>>>> Sorry for my bad English. >>>>>>>> >>>>>>>> I am trying to achieve is a label that follows the rivers that is >>>>>>> also >>>>>>>> OFFSET so that >>>>>>>> the label does not 'above' on the line for the river. >>>>>>>> >>>>>>>> Sample code of mapfile: >>>>>>>> >>>>>>>> LABEL >>>>>>>> COLOR 0 40 255 >>>>>>>> FONT "arial-italic" >>>>>>>> TYPE truetype >>>>>>>> SIZE 7 >>>>>>>> OFFSET 5 0 >>>>>>>> ANGLE FOLLOW >>>>>>>> POSITION LC >>>>>>>> FORCE true >>>>>>>> PARTIALS FALSE >>>>>>>> >>>>>>>> END >>>>>>>> >>>>>>>> "OFFSET" does not work. >>>>>>>> How can I offset a label? >>>>>>>> >>>>>>>> I found a message posted for a long time: >>>>>>>> click here. >>>>>>> >>>>>>> View this message in context: Re: ANGLE FOLLOW and Label Offset (v. >>>>>>> 5.6.6) >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> 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 >>>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Tue Jun 7 14:17:48 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 07 Jun 2011 15:17:48 -0600 Subject: [mapserver-users] Re: ANGLE FOLLOW and Label Offset (v. 5.6.6) In-Reply-To: <4DEE8DF8.2010001@swoodbridge.com> References: <1307367208575-6445138.post@n2.nabble.com> <6691307368105@web115.yandex.ru> <4DECDDFA.3010500@swoodbridge.com> <4DECEC6C.7020103@swoodbridge.com> <4DECF27A.7020607@geoanalytic.com> <4DEE2DC2.4050209@geoanalytic.com> <4DEE8DF8.2010001@swoodbridge.com> Message-ID: <4DEE957C.9070105@geoanalytic.com> Oh sure, make it simple... Best Regards, Brent Fraser On 6/7/2011 2:45 PM, Stephen Woodbridge wrote: > Brent, Thomas, > > Could we optionally allow GEOMTRANSFORM inside the LABEL and here it > would be only used for the label. I guess the ambiguous part might be > does this GEOMTRANSFORM in the label work based on the original > geometry or LAYER level GEOMTRANSFORM that might precedes it. > > This seems like the simple clean solution to me. > > Thoughts? > > -Steve W > > On 6/7/2011 9:55 AM, Brent Fraser wrote: >> Thomas, >> >> Yes, I've been trying to come up with good map file syntax to indicate >> labeling of the transformed geometry. Currently mapserver allows: >> - transformed original geometry (buffer, difference) >> - augmented original geometry (bbox, start/end, vertices) >> - rendered label geometry (labelpoint, labelpoly) >> >> but it doesn't label transformed geometry, only original geometry. The >> main problem (from a user interface perspective) is how to relate >> transformed geometry to the label specification. >> >> One solution is to allow a LABEL object within a STYLE object: >> >> CLASS >> NAME 'Streams' >> STYLE >> GEOMTRANSFORM (buffer([shape], 5)) >> >> LABEL >> usual label settings >> END # Label >> END # Style >> >> but that's a little strange as STYLE objects are currently allowed >> within LABEL objects. >> >> Another solution is to have "named" geometry and reference it in the >> LABEL object (and keep the existing CLASS/STYLE/LABEL structure): >> >> CLASS >> NAME 'Streams' >> STYLE >> GEOMTRANSFORM my_label_shape = (buffer([shape], 5)) >> END # Style >> >> LABEL >> usual label settings >> GEOMETRY my_label_shape >> END # Label >> >> And I'm sure there are other (and hopefully better) solutions. >> >> Best Regards, >> Brent Fraser >> >> >> On 6/6/2011 11:02 AM, thomas bonfort wrote: >>> Yes, the resulting shape seems like a nice candidate for offseting >>> labels, but the problem with buffer is you will have more difficulty >>> in deciding what is to the left from what is to the right of the line. >>> We'd also have to make sure that the buffer operation is not too >>> costly on cpu cycles. >>> Anyways, until geomtransform is not applied at the layer level, there >>> is no way to use this method as the label does not operate on the >>> transformed geometry. >>> >>> On Mon, Jun 6, 2011 at 17:30, Brent Fraser >>> wrote: >>>> Steve, >>>> >>>> I think just buffering the line would apply a type of smoothing (see >>>> attached image). Using the resulting buffer line (or perhaps doing >>>> some >>>> simple line smoothing on it) for labeling would be good enough. >>>> >>>> Best Regards, >>>> Brent Fraser >>>> >>>> >>>> On 6/6/2011 9:04 AM, Stephen Woodbridge wrote: >>>>> Duh! you are correct, I always forget this point until I after my >>>>> second >>>>> cup of coffee has kicked in :) >>>>> >>>>> That article looks very interesting, I have to read up on that. >>>>> >>>>> In a past career in computer aided design and manufacturing, we used >>>>> the >>>>> idea of a rolling ball offset because it modeled a milling >>>>> machine. The >>>>> rolling ball offset is defined as the curve traced by the center of >>>>> a ball >>>>> of a given radius as you roll it along a curve. The circumference of >>>>> the >>>>> ball can not cross over the original curve so for tight "S" curves >>>>> if the >>>>> diameter of the ball is larger than the gap in the "S" then the ball >>>>> does >>>>> not enter the gap but floats over it. This same concept would make >>>>> for well >>>>> behaved and good looking labels along tight twisty paths like rivers >>>>> and >>>>> roads. >>>>> >>>>> Another idea for smoothing out curves for labeling might be to apply >>>>> an N >>>>> point moving average and allow that to be the label path. I don't >>>>> think this >>>>> has been mentioned as an option in the past. >>>>> >>>>> -Steve W >>>>> >>>>> On 6/6/2011 10:20 AM, thomas bonfort wrote: >>>>>> There are two problems with the solution you propose: >>>>>> - if you offset the geometry in postgis, the distance of the offset >>>>>> will be in geographical units, i.e. it will not give correct results >>>>>> at all scales when rendered with mapserver (what you basically >>>>>> want is >>>>>> to offset the line by a number of pixels roughly equal to the >>>>>> size of >>>>>> the font used for labelling) >>>>>> - angle follow on offset line should probably be done on a >>>>>> simplified/smoothed geometry. see >>>>>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.24.6970 . >>>>>> Ideally someone will want the feature badly enough to fund it :) >>>>>> >>>>>> -- >>>>>> thomas >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Jun 6, 2011 at 16:02, Stephen Woodbridge >>>>>> wrote: >>>>>>> There was some recent discussion on the dev list about potentially >>>>>>> using >>>>>>> the >>>>>>> GEOMTRANSFORM to do something like a single sided offset then >>>>>>> using that >>>>>>> to >>>>>>> apply the label to. BUT I do not think that has been implemented >>>>>>> yet in >>>>>>> mapserver. >>>>>>> >>>>>>> Google for "mapserver geomtransform" also look at >>>>>>> "geoprocessing" for >>>>>>> some >>>>>>> other ideas. >>>>>>> >>>>>>> Anyway, you might be able to do what you want if you: >>>>>>> >>>>>>> 1. import your data into PostGIS >>>>>>> 2. create offset geometry in another table >>>>>>> 3. export that table to a shapefile >>>>>>> 4. then label that as an annotation layer so you do not draw the >>>>>>> geometry >>>>>>> only the label and use the original data to draw the grometry >>>>>>> ie: two >>>>>>> layers. >>>>>>> >>>>>>> I have not tried this, but it might solve your problem. >>>>>>> >>>>>>> -Steve W >>>>>>> >>>>>>> On 6/6/2011 9:48 AM, uvg wrote: >>>>>>>> Thank you, Thomas. >>>>>>>> Are there any workarounds for this problem? >>>>>>>> Is there 'best practices' for the problem? >>>>>>>> Maybe unvisible layer or other? >>>>>>>> 06.06.2011, 17:35, "thomas bonfort [via OSGeo.org]"<[hidden email] >>>>>>>> >: >>>>>>>> >>>>>>>> The status has not changed: label follow with offset is not >>>>>>>> supported. >>>>>>>> >>>>>>>> regards, >>>>>>>> thomas >>>>>>>> >>>>>>>> On Mon, Jun 6, 2011 at 15:33, uvg<[hidden email]> wrote: >>>>>>>> >>>>>>>>> Hi all! >>>>>>>>> Sorry for my bad English. >>>>>>>>> >>>>>>>>> I am trying to achieve is a label that follows the rivers that is >>>>>>>> also >>>>>>>>> OFFSET so that >>>>>>>>> the label does not 'above' on the line for the river. >>>>>>>>> >>>>>>>>> Sample code of mapfile: >>>>>>>>> >>>>>>>>> LABEL >>>>>>>>> COLOR 0 40 255 >>>>>>>>> FONT "arial-italic" >>>>>>>>> TYPE truetype >>>>>>>>> SIZE 7 >>>>>>>>> OFFSET 5 0 >>>>>>>>> ANGLE FOLLOW >>>>>>>>> POSITION LC >>>>>>>>> FORCE true >>>>>>>>> PARTIALS FALSE >>>>>>>>> >>>>>>>>> END >>>>>>>>> >>>>>>>>> "OFFSET" does not work. >>>>>>>>> How can I offset a label? >>>>>>>>> >>>>>>>>> I found a message posted for a long time: >>>>>>>>> click here. >>>>>>>> >>>>>>>> View this message in context: Re: ANGLE FOLLOW and Label Offset >>>>>>>> (v. >>>>>>>> 5.6.6) >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 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 >>>>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From silasharmeen at gmail.com Tue Jun 7 22:54:21 2011 From: silasharmeen at gmail.com (Sila Khan) Date: Wed, 8 Jun 2011 10:54:21 +0500 Subject: [mapserver-users] hi Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Pfeiffer at bd.so.ch Tue Jun 7 23:18:34 2011 From: Michael.Pfeiffer at bd.so.ch (Michael Pfeiffer) Date: Tue, 7 Jun 2011 23:18:34 -0700 (PDT) Subject: [mapserver-users] Labels rendering different in MS 5.4 and 5.6 Message-ID: <1307513914459-6452476.post@n2.nabble.com> Hi everybody, I have a problem with rendering my Labels after upgrading from MS 5.4 to 5.6. The rendering in 5.6 differs from rendering in 5.4 (see attached pictures) http://osgeo-org.1803224.n2.nabble.com/file/n6452476/MS54.png http://osgeo-org.1803224.n2.nabble.com/file/n6452476/MS56.png You can clearly see the difference for the house numbers. In MS 5.4 they are more broad and they are positioned below/above the line. In MapServer 5.6 they are positioned on the line. Here the appendent part of the Mapfile . . . FONTSET "../../fonts/fonts.list" RESOLUTION 96 DEFRESOLUTION 96 . . . LAYER NAME bdbed6 #Ortsplan#Legende GROUP "Ortsplan" STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "dbname=sogis host=localhost user=mspublic" DATA "wkb_geometry from kva_av_gebadr using SRID=-1" TYPE ANNOTATION FILTER "archive=0" LABELITEM "polizein" #LABELCACHE ON POSTLABELCACHE TRUE MINSCALEDENOM 1 MAXSCALEDENOM 3000 #TEMPLATE ttt METADATA dis_name "ortsplan" "SKIP_LEGEND" "2" END CLASS MINSCALEDENOM 100 MAXSCALEDENOM 1300 LABEL ANGLE [txt_rot] TYPE truetype FONT verdana_italic_fett COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINSIZE 4 MAXSIZE 11 SIZE 11 POSITION cc END END END The font is in the same file as the fonts.list The Map is generated with MapScript and not with cgi PHP 5.3.2 Apache 2 Any ideas? Is it a MapServer problem or coluld there be another reason for this? Thx in advance for your hints Michael -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Labels-rendering-different-in-MS-5-4-and-5-6-tp6452476p6452476.html Sent from the Mapserver - User mailing list archive at Nabble.com. From afoletti at gmail.com Wed Jun 8 01:18:11 2011 From: afoletti at gmail.com (Ambrogio Foletti) Date: Wed, 8 Jun 2011 10:18:11 +0200 Subject: [mapserver-users] Fixed labels for polygons Message-ID: Hi there, I just subscribed to the list so I want to say hello before posing my question ;-) And here's my problem: I have a lot of contiguous polygons who need to be labelled. In general this is no problem, but I need to generate the tiles for a WMTS service and the fact that the labels are not fixed but floating aroud, rearranging at every pan and zoom, is indeed an issue. I read the documentation but as I understand it the "POSITION" parameter only tells mapserver the priority and not the absolute emplacement of the label. Is there a way to tell MapServer to always draw the label at a fixed position (over the gravity centre?) on the polygon? Thanks for your help A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Jun 8 01:21:59 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 8 Jun 2011 10:21:59 +0200 Subject: [mapserver-users] Fixed labels for polygons In-Reply-To: References: Message-ID: PROCESSING "LABEL_NO_CLIP=ON" on the polygon layer -- thomas On Wed, Jun 8, 2011 at 10:18, Ambrogio Foletti wrote: > Hi there, > > I just subscribed to the list so I want to say hello before posing my > question ;-) > > And here's my problem: I have a lot of contiguous polygons who need to be > labelled. In general this is no problem, but I need to generate the tiles > for a WMTS service and the fact that the labels are not fixed but floating > aroud, rearranging at every pan and zoom, is indeed an issue. > I read the documentation but as I understand it the "POSITION" parameter > only tells mapserver the priority and not the absolute emplacement of the > label. > Is there a way to tell MapServer to always draw the label at a fixed > position (over the gravity centre?) on the polygon? > > Thanks for your help > A. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From olt at omniscale.de Wed Jun 8 01:29:54 2011 From: olt at omniscale.de (Oliver Tonnhofer) Date: Wed, 8 Jun 2011 10:29:54 +0200 Subject: [mapserver-users] Fixed labels for polygons In-Reply-To: References: Message-ID: <767BA618-D995-4331-A81C-D1E6FB5C0E53@omniscale.de> On 08.06.2011, at 10:18, Ambrogio Foletti wrote: > And here's my problem: I have a lot of contiguous polygons who need to be labelled. In general this is no problem, but I need to generate the tiles for a WMTS service and the fact that the labels are not fixed but floating aroud, rearranging at every pan and zoom, is indeed an issue. > I read the documentation but as I understand it the "POSITION" parameter only tells mapserver the priority and not the absolute emplacement of the label. > Is there a way to tell MapServer to always draw the label at a fixed position (over the gravity centre?) on the polygon? As Thomas said, PROCESSING "LABEL_NO_CLIP=ON" is the right option. See http://mapproxy.org/docs/nightly/labeling.html for more detailed information about labeling for tiled services. Regards, Oliver -- Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.de http://mapproxy.org | https://bitbucket.org/olt | @oltonn From afoletti at gmail.com Wed Jun 8 01:40:00 2011 From: afoletti at gmail.com (Ambrogio Foletti) Date: Wed, 8 Jun 2011 10:40:00 +0200 Subject: [mapserver-users] Fixed labels for polygons In-Reply-To: <767BA618-D995-4331-A81C-D1E6FB5C0E53@omniscale.de> References: <767BA618-D995-4331-A81C-D1E6FB5C0E53@omniscale.de> Message-ID: Thanks for the answer and the precious link. That worked perfectly. Cheers, A. 2011/6/8 Oliver Tonnhofer > > On 08.06.2011, at 10:18, Ambrogio Foletti wrote: > > And here's my problem: I have a lot of contiguous polygons who need to be > labelled. In general this is no problem, but I need to generate the tiles > for a WMTS service and the fact that the labels are not fixed but floating > aroud, rearranging at every pan and zoom, is indeed an issue. > > I read the documentation but as I understand it the "POSITION" parameter > only tells mapserver the priority and not the absolute emplacement of the > label. > > Is there a way to tell MapServer to always draw the label at a fixed > position (over the gravity centre?) on the polygon? > > As Thomas said, PROCESSING "LABEL_NO_CLIP=ON" is the right option. See > http://mapproxy.org/docs/nightly/labeling.html for more detailed > information about labeling for tiled services. > > Regards, > Oliver > > -- > Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.de > http://mapproxy.org | https://bitbucket.org/olt | @oltonn > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakaroyban at yahoo.com Wed Jun 8 06:09:35 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Wed, 8 Jun 2011 06:09:35 -0700 (PDT) Subject: [mapserver-users] Problem in extent using openlayers with Mapserver In-Reply-To: <4DEA6CA5.2090700@swoodbridge.com> References: <157145.18940.qm@web121611.mail.ne1.yahoo.com> <4DEA6CA5.2090700@swoodbridge.com> Message-ID: <940859.89287.qm@web121612.mail.ne1.yahoo.com> ----- Forwarded Message ---- From: Saka Royban To: Stephen Woodbridge Sent: Wed, June 8, 2011 5:38:17 PM Subject: Re: [mapserver-users] Problem in extent using openlayers with Mapserver Thanks stephen for ur help (and sorry for bit abit latency in reply) I've already tried that, i.e. constructing map object without any argument but no result. In fact, in first step i created map without any extra argument and faced that problem and after that i added some arguments to maybe solve the problem. Any idea now? ________________________________ From: Stephen Woodbridge To: mapserver-users at lists.osgeo.org Sent: Sat, June 4, 2011 10:04:29 PM Subject: Re: [mapserver-users] Problem in extent using openlayers with Mapserver try just using: map = new OpenLayers.Map( 'map' ); -Steve On 6/4/2011 1:21 PM, Saka Royban wrote: > Hi all. > I've really got stuck in this problem and need some help as i'm a newbie > using openlayers with mapserver. > In mapfile i've set output to be: > EXTENT -180 -90 180 90 # Geographic > SIZE 800 400 > IMAGECOLOR 128 128 255 > > when i request mapserver through URL, i recieve a complete 800*400 > image, but when i use openlayers i get a 800*400 image which original > map fills 512*256 of the center and other pixels are filled with IMAGECOLOR. > this is my code: > map = new OpenLayers.Map( 'map',{'tileSize': new > OpenLayers.Size(400,400)} ); > layer = new OpenLayers.Layer.MapServer( "World Map", > "http://localhost/cgi-bin/mapserv.exe", {map: > '/ms4w/apps/ms101/htdocs/ms101.map',layers: 'world_poly', height: 400, > width: 800}, {singleTile: true} ); > > map.addLayer(layer); > map.zoomToMaxExtent(); > > I asked this question in openlayers mailing list with no success. It > sounds it is related to mapserver. > Any help would be greatly appreciated > > Regards (also sorry if my english is not very good) > > > > _______________________________________________ > 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 mlacarini9 at gmail.com Wed Jun 8 07:25:39 2011 From: mlacarini9 at gmail.com (MATHEUS LACARINI) Date: Wed, 8 Jun 2011 11:25:39 -0300 Subject: [mapserver-users] email Message-ID: mlacarini9 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matheus.lacarini at sntgeo.com.br Wed Jun 8 09:30:17 2011 From: matheus.lacarini at sntgeo.com.br (Matheus Lacarini) Date: Wed, 8 Jun 2011 13:30:17 -0300 Subject: [mapserver-users] Openlayers Identify Problem Message-ID: <4defa3ad.c34fdc0a.5ccf.05e0@mx.google.com> Hello all, I?m from Brasil and i have a problem with the openlayers identify my query its perfect in the mapfile and the layer file but the query result :msQueryByPoint(): Search returned no results. No matching record(s) found.My url is : http://localhost/cgi-bin/mapserv.exe?img.x=762 &img.y=433&mode=query&layer=gtile_topodata&map=C:/var/webmapit/mapserver.d/m apfiles/users/sntgeo/sntgeo-map_004.map&imgext=-104.42206737491+-39.39825350 4337+-2.9560446250874+11.398253504337 Part of my map file : NAME "sntgeo-map_004_" EXTENT -95.883434 -35.000146 -11.494678 7.000146 FONTSET "/var/webmapit/mapserver.d/fonts/wmi_defaultFontSet.cfg" CONFIG "MS_ERRORFILE" "c:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-map_004.errors.log " DEBUG 5 IMAGETYPE AGGPNG24 MAXSIZE 4096 #-- Larg/Alt maxima da imagem de saida 2384 = A0 SHAPEPATH "/var/webmapit/mapserver.d/mapfiles/users" SYMBOLSET "/var/webmapit/mapserver.d/symbols/wmi_defaultSymbolSet.sym" UNITS DD INCLUDE "/var/webmapit/mapserver.d/mapfiles/include/wmi_map_outputformats.map" INCLUDE "/var/webmapit/mapserver.d/mapfiles/include/wmi_projection_4326.map" WEB IMAGEPATH "/var/www/html/tmp/" #--alterar no servidor IMAGEURL "/tmp/" #--alterar no servidor HEADER "topodata_web_header.html" FOOTER "topodata_web_footer.html" ........ Layer file: ... HEADER "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_header.html " TEMPLATE "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_temp.html" FOOTER "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_footer.html " END ?ndex: // INI: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.ht ml OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': false, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = new OpenLayers.Handler.Click( this, { 'click': this.onClick }, this.handlerOptions ); }, onClick: function(evt) { var tempXY = explodeArray(evt.xy,','); var aX = explodeArray(tempXY[0],'='); var aY = explodeArray(tempXY[1],'='); var tmpPixel = new OpenLayers.Pixel(); tmpPixel.x = aX[1]; tmpPixel.y = aY[1]; var aLonLat = map.getLonLatFromViewPortPx(tmpPixel); doIdentify(aLonLat.lon,aLonLat.lat, aX[1], aY[1] ); //alert('X=' + aLonLat.lon + ' Y=' + aLonLat.lat); } }); var controls; controls = { "single": new OpenLayers.Control.Click({ handlerOptions: { "single": true } }) }; var props = document.getElementById("props"); // FIM: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.ht ml ..... // INI - do identify... var control; for(var key in controls) { control = controls[key]; // only to route output here control.key = key; map.addControl(control); } ....... function toggle(key) { var control = controls[key]; if(control.active) { control.deactivate(); } else { control.activate(); } var status = document.getElementById(key + "Status"); status.innerHTML = control.active ? "Navegar" : "Consultar"; ..... What is the problem? Thanks Matheus Lacarini -------------- next part -------------- An HTML attachment was scrubbed... URL: From vmaffei at gmail.com Wed Jun 8 16:54:47 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Wed, 8 Jun 2011 20:54:47 -0300 Subject: [mapserver-users] Problem using mapserver with WCS Message-ID: Hi, I installed ms4w and i'm trying to configure wcs in my mapfile, but it's not working. The url that i'm using is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=localidades&mode=map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities but i cant see the xml it just stil shows the tiff image. I attached the mapfile so it can help to check which is the problem. Colud you help me with this issue? Thanks!! Virginia -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: example1-1.map Type: application/octet-stream Size: 1412 bytes Desc: not available URL: From warmerdam at pobox.com Wed Jun 8 19:04:59 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 08 Jun 2011 22:04:59 -0400 Subject: [mapserver-users] Problem using mapserver with WCS In-Reply-To: References: Message-ID: <4DF02A4B.6000402@pobox.com> On 11-06-08 07:54 PM, Virginia Maffei wrote: > Hi, I installed ms4w and i'm trying to configure wcs in my mapfile, but it's > not working. The url that i'm using is: > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=localidades&mode=map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities > > > but i cant see the xml it just stil shows the tiff image. > > I attached the mapfile so it can help to check which is the problem. > Virginia, I suspect the mode=map is interfering - try dropping it out of the request. It is not a proper WCS keyword. 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 lgomez at itba.edu.ar Thu Jun 9 02:56:58 2011 From: lgomez at itba.edu.ar (Leticia Gomez) Date: Thu, 9 Jun 2011 06:56:58 -0300 Subject: [mapserver-users] different maps Message-ID: <000601cc268b$92bfe160$b83fa420$@itba.edu.ar> I am new in Mapserver. I need to develop a Web application where different maps can be display (browse) in the same page. But all the examples that I find consist on displaying different maps as "layers" in the same image (overlapped). I need that the page manage different "zones", each on with its map and layers. Each zone must be managed separately, i.e. the user might zoom one zone and not the other ones, etc. Is it possible with MapServer? I read the documentation and find that there exists only one "map variable" global to the web page. I developed a page with multiple image tags, but all of them are associated with the same "map variable", so they move altogether in the same map. Thanks in advance, Leticia -------------- next part -------------- An HTML attachment was scrubbed... URL: From lgomez at itba.edu.ar Thu Jun 9 02:46:03 2011 From: lgomez at itba.edu.ar (Leticia Gomez) Date: Thu, 9 Jun 2011 06:46:03 -0300 Subject: [mapserver-users] different maps Message-ID: <000101cc268a$0c6ffd30$254ff790$@itba.edu.ar> I am new in Mapserver. I need to develop a Web application where different maps can be display (browse) in the same page. But all the examples that I find consist on displaying different maps as "layers" in the same image (overlapped). I need that the page manage different "zones", each on with its map and layers. Each zone must be managed separately, i.e. the user might zoom one zone and not the other ones, etc. Is it possible with MapServer? I read the documentation and find that there exists only one "map variable" global to the web page. I developed a page with multiple image tags, but all of them are associated with the same "map variable", so they move altogether in the same map. Thanks in advance, Leticia -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Thu Jun 9 03:50:48 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 9 Jun 2011 06:50:48 -0400 Subject: [mapserver-users] different maps In-Reply-To: <000101cc268a$0c6ffd30$254ff790$@itba.edu.ar> Message-ID: Leticia, If each one is a separate map and handled differently, just create N separate calls to mapserver. You could do this with OpenLayers and create multiple map instances each calling mapserver with different map attributes (mapfile, zoom, layers). Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/9/11 5:46 AM, "Leticia Gomez" wrote: > I am new in Mapserver. I need to develop a Web application where different > maps can be display (browse) in the same page. But all the examples that I > find consist on displaying different maps as ?layers? in the same image > (overlapped). I need that the page manage different ?zones?, each on with its > map and layers. Each zone must be managed separately, i.e. the user might zoom > one zone and not the other ones, etc. > Is it possible with MapServer? > > I read the documentation and find that there exists only one ?map variable? > global to the web page. I developed a page with multiple image tags, but all > of them are associated with the same ?map variable?, so they move altogether > in the same map. > > > Thanks in advance, > Leticia > > > _______________________________________________ > 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 lgomez at itba.edu.ar Thu Jun 9 04:05:36 2011 From: lgomez at itba.edu.ar (Leticia Gomez) Date: Thu, 9 Jun 2011 08:05:36 -0300 Subject: [mapserver-users] different maps In-Reply-To: References: <000101cc268a$0c6ffd30$254ff790$@itba.edu.ar> Message-ID: <000301cc2695$28f13220$7ad39660$@itba.edu.ar> Thanks Michael, so it might be implemented with Mapscript (no strictly cgi). Is this right? Leticia From: Smith, Michael ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: jueves, 09 de junio de 2011 7:51 To: Leticia Gomez; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] different maps Leticia, If each one is a separate map and handled differently, just create N separate calls to mapserver. You could do this with OpenLayers and create multiple map instances each calling mapserver with different map attributes (mapfile, zoom, layers). Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/9/11 5:46 AM, "Leticia Gomez" wrote: I am new in Mapserver. I need to develop a Web application where different maps can be display (browse) in the same page. But all the examples that I find consist on displaying different maps as "layers" in the same image (overlapped). I need that the page manage different "zones", each on with its map and layers. Each zone must be managed separately, i.e. the user might zoom one zone and not the other ones, etc. Is it possible with MapServer? I read the documentation and find that there exists only one "map variable" global to the web page. I developed a page with multiple image tags, but all of them are associated with the same "map variable", so they move altogether in the same map. Thanks in advance, Leticia _____ _______________________________________________ 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 matheus.lacarini at sntgeo.com.br Thu Jun 9 05:02:47 2011 From: matheus.lacarini at sntgeo.com.br (Matheus Lacarini) Date: Thu, 9 Jun 2011 09:02:47 -0300 Subject: [mapserver-users] ENC: Openlayers Identify Problem Message-ID: <4df0b66c.2499ec0a.5e7c.3b2f@mx.google.com> Hello all, I?m from Brasil and i have a problem with the openlayers identify my query its perfect in the mapfile and the layer file but the query result :msQueryByPoint(): Search returned no results. No matching record(s) found.My url is : http://localhost/cgi-bin/mapserv.exe?img.x=762 &img.y=433&mode=query&layer=gtile_topodata&map=C:/var/webmapit/mapserver.d/m apfiles/users/sntgeo/sntgeo-map_004.map&imgext=-104.42206737491+-39.39825350 4337+-2.9560446250874+11.398253504337 Part of my map file : NAME "sntgeo-map_004_" EXTENT -95.883434 -35.000146 -11.494678 7.000146 FONTSET "/var/webmapit/mapserver.d/fonts/wmi_defaultFontSet.cfg" CONFIG "MS_ERRORFILE" "c:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-map_004.errors.log " DEBUG 5 IMAGETYPE AGGPNG24 MAXSIZE 4096 #-- Larg/Alt maxima da imagem de saida 2384 = A0 SHAPEPATH "/var/webmapit/mapserver.d/mapfiles/users" SYMBOLSET "/var/webmapit/mapserver.d/symbols/wmi_defaultSymbolSet.sym" UNITS DD INCLUDE "/var/webmapit/mapserver.d/mapfiles/include/wmi_map_outputformats.map" INCLUDE "/var/webmapit/mapserver.d/mapfiles/include/wmi_projection_4326.map" WEB IMAGEPATH "/var/www/html/tmp/" #--alterar no servidor IMAGEURL "/tmp/" #--alterar no servidor HEADER "topodata_web_header.html" FOOTER "topodata_web_footer.html" ........ Layer file: ... HEADER "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_header.html " TEMPLATE "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_temp.html" FOOTER "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_footer.html " END ?ndex: // INI: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.ht ml OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': false, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = new OpenLayers.Handler.Click( this, { 'click': this.onClick }, this.handlerOptions ); }, onClick: function(evt) { var tempXY = explodeArray(evt.xy,','); var aX = explodeArray(tempXY[0],'='); var aY = explodeArray(tempXY[1],'='); var tmpPixel = new OpenLayers.Pixel(); tmpPixel.x = aX[1]; tmpPixel.y = aY[1]; var aLonLat = map.getLonLatFromViewPortPx(tmpPixel); doIdentify(aLonLat.lon,aLonLat.lat, aX[1], aY[1] ); //alert('X=' + aLonLat.lon + ' Y=' + aLonLat.lat); } }); var controls; controls = { "single": new OpenLayers.Control.Click({ handlerOptions: { "single": true } }) }; var props = document.getElementById("props"); // FIM: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.ht ml ..... // INI - do identify... var control; for(var key in controls) { control = controls[key]; // only to route output here control.key = key; map.addControl(control); } ....... function toggle(key) { var control = controls[key]; if(control.active) { control.deactivate(); } else { control.activate(); } var status = document.getElementById(key + "Status"); status.innerHTML = control.active ? "Navegar" : "Consultar"; ..... What is the problem? Thanks Matheus Lacarini -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Jun 9 05:07:51 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 9 Jun 2011 15:07:51 +0300 Subject: [mapserver-users] SLD behaviour changed after upgrade to Mapserver 6.0 In-Reply-To: <4DEC9CAC020000A80002AC6F@heckle> References: <4DEC9CAC020000A80002AC6F@heckle> Message-ID: Hi, The following part of SLD document, passed to Mapserver inside SLD_BODY, used to produce a two-part label "KOODI, NIMI_FI" (with comma and space between the parts). It worked with Mapserver 5.2.1 and 5.6.5. Now after upgrading into version 6.0 the result is an error: [Thu Jun 09 14:26:09 2011].652000 msShapeGetAnnotation: Expression parser error. Failed to process text expression: "[KOODI]", "[NIMI_FI]" The relevant part of SLD is this KOODI, NIMI_FI Arial 10 #FF9900 3 #FFFFFF 1 The layer is very basic shapefile layer LAYER NAME "f_areas" STATUS ON DATA "D:\Data\f_areas" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 3 TEMPLATE "d:/program files/ms4w/apps/template.html" TOLERANCEUNITS PIXELS METADATA "wms_title" "f_area" "wms_srs" "EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913" END CLASS NAME "f_areas" STYLE OUTLINECOLOR 0 50 255 WIDTH 2 END END PROJECTION "init=epsg:2393" END END The SLD_BODY is still working if only one is used for -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Jun 9 05:26:52 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 9 Jun 2011 07:26:52 -0500 Subject: [mapserver-users] ENC: Openlayers Identify Problem In-Reply-To: <4df0b66c.2499ec0a.5e7c.3b2f@mx.google.com> References: <4df0b66c.2499ec0a.5e7c.3b2f@mx.google.com> Message-ID: Looking at the URL it seems to be operating in image coordinates which is fine but there's no image size passed (nor one defined in the mapfile) so my guess is that MapServer can't turn that click into a real map coordinate. Try adding the imgsize variable to your query call. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Matheus Lacarini [matheus.lacarini at sntgeo.com.br] Sent: Thursday, June 09, 2011 7:02 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] ENC: Openlayers Identify Problem Hello all, I?m from Brasil and i have a problem with the openlayers identify my query its perfect in the mapfile and the layer file but the query result :msQueryByPoint(): Search returned no results. No matching record(s) found.My url is : http://localhost/cgi-bin/mapserv.exe?img.x=762&img.y=433&mode=query&layer=gtile_topodata&map=C:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-map_004.map&imgext=-104.42206737491+-39.398253504337+-2.9560446250874+11.398253504337 Part of my map file : NAME "sntgeo-map_004_" EXTENT -95.883434 -35.000146 -11.494678 7.000146 FONTSET "/var/webmapit/mapserver.d/fonts/wmi_defaultFontSet.cfg" CONFIG "MS_ERRORFILE" "c:/var/webmapit/mapserver.d/mapfiles/users/sntgeo/sntgeo-map_004.errors.log" DEBUG 5 IMAGETYPE AGGPNG24 MAXSIZE 4096 #-- Larg/Alt maxima da imagem de saida 2384 = A0 SHAPEPATH "/var/webmapit/mapserver.d/mapfiles/users" SYMBOLSET "/var/webmapit/mapserver.d/symbols/wmi_defaultSymbolSet.sym" UNITS DD INCLUDE "/var/webmapit/mapserver.d/mapfiles/include/wmi_map_outputformats.map" INCLUDE "/var/webmapit/mapserver.d/mapfiles/include/wmi_projection_4326.map" WEB IMAGEPATH "/var/www/html/tmp/" #--alterar no servidor IMAGEURL "/tmp/" #--alterar no servidor HEADER "topodata_web_header.html" FOOTER "topodata_web_footer.html" ........ Layer file: ... HEADER "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_header.html" TEMPLATE "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_temp.html" FOOTER "C:\var\webmapit\mapserver.d\mapfiles\users\sntgeo\topodata_muni_footer.html" END ?ndex: // INI: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.html OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': false, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions ); OpenLayers.Control.prototype.initialize.apply( this, arguments ); this.handler = new OpenLayers.Handler.Click( this, { 'click': this.onClick }, this.handlerOptions ); }, onClick: function(evt) { var tempXY = explodeArray(evt.xy,','); var aX = explodeArray(tempXY[0],'='); var aY = explodeArray(tempXY[1],'='); var tmpPixel = new OpenLayers.Pixel(); tmpPixel.x = aX[1]; tmpPixel.y = aY[1]; var aLonLat = map.getLonLatFromViewPortPx(tmpPixel); doIdentify(aLonLat.lon,aLonLat.lat, aX[1], aY[1] ); //alert('X=' + aLonLat.lon + ' Y=' + aLonLat.lat); } }); var controls; controls = { "single": new OpenLayers.Control.Click({ handlerOptions: { "single": true } }) }; var props = document.getElementById("props"); // FIM: http://dev.openlayers.org/releases/OpenLayers-2.10/examples/click-handler.html ..... // INI - do identify... var control; for(var key in controls) { control = controls[key]; // only to route output here control.key = key; map.addControl(control); } ....... function toggle(key) { var control = controls[key]; if(control.active) { control.deactivate(); } else { control.activate(); } var status = document.getElementById(key + "Status"); status.innerHTML = control.active ? "Navegar" : "Consultar"; ..... What is the problem? Thanks Matheus Lacarini From chris.green at ibstv.co.uk Thu Jun 9 05:58:45 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 9 Jun 2011 13:58:45 +0100 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Message-ID: <0ed101cc26a4$f82f4040$e88dc0c0$@green@ibstv.co.uk> Hi All I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 Unix platform. I installed it via the FGS installer package which made the installation process relatively straightforward. Now I see that Mapserver 6.0 has been released and it includes some features that I really want to take advantage of, particularly the ability to cluster dense features. My problem is that apparently the FGS package has not been updated, so from the Mapserver website it looks like I have start from scratch with a scarily long list of libraries and compilations required to install Mapserver 6.0 from scratch. As something of a Unix novice I don't fancy this very much! I am wondering if there is a simple way to in effect replace my existing Mapserver 5.4 executable with Mapserver 6.0 - could I assume that Mapserver 6.0 only requires the same libraries as 5.4 and just compile the 6.0 executable? Any guidance on the direction to take here would be gratefully received. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerry.creager at tamu.edu Thu Jun 9 07:38:23 2011 From: gerry.creager at tamu.edu (Gerry Creager) Date: Thu, 09 Jun 2011 09:38:23 -0500 Subject: [mapserver-users] Simple mapserver HTML template file? Message-ID: <4DF0DADF.6040500@tamu.edu> I've been away from Mapserver for awhile and I'm having trouble wrapping my head, quickly, around a template file for a simple application that requires panning and zooming but no queries. Can anyone help a guy out on short notice? I can likely flesh a an example out but I'm really having trouble getting started. Thanks, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From woodbri at swoodbridge.com Thu Jun 9 07:41:31 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 09 Jun 2011 10:41:31 -0400 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: <0ed101cc26a4$f82f4040$e88dc0c0$@green@ibstv.co.uk> References: <0ed101cc26a4$f82f4040$e88dc0c0$@green@ibstv.co.uk> Message-ID: <4DF0DB9B.6070005@swoodbridge.com> On 6/9/2011 8:58 AM, Chris Green wrote: > Hi All > > I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 > Unix platform. I installed it via the FGS installer package which made > the installation process relatively straightforward. > > Now I see that Mapserver 6.0 has been released and it includes some > features that I really want to take advantage of, particularly the > ability to cluster dense features. My problem is that apparently the FGS > package has not been updated, so from the Mapserver website it looks > like I have start from scratch with a scarily long list of libraries and > compilations required to install Mapserver 6.0 from scratch. As > something of a Unix novice I don?t fancy this very much! > > I am wondering if there is a simple way to in effect replace my existing > Mapserver 5.4 executable with Mapserver 6.0 - could I assume that > Mapserver 6.0 only requires the same libraries as 5.4 and just compile > the 6.0 executable? Any guidance on the direction to take here would be > gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W From fuchs.juancarlos at gmail.com Thu Jun 9 07:47:50 2011 From: fuchs.juancarlos at gmail.com (Juan Carlos Fuchs) Date: Thu, 9 Jun 2011 11:47:50 -0300 Subject: [mapserver-users] Fwd: Tile of tiles with tif images In-Reply-To: References: Message-ID: Subject: Tile of tiles with tif images Dear Gentleman: Situation We have a collection of images tiled with re-tile.py. each record of our .dbf points to a diferent part of one tiff image. Now we want to put them together (the Tiles), say, first, all the tiles from the images of the same province, and later, all the tiles from the provinces of the same projection. when we run tile4ms we get the following weird error Aborted. Unable to open DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-02-may-09-img-img-tif If we get things right, each record in our tile file point to a different part of one tiff image, but the shp file has an geometric extend for each image so, why didn?t this work?? Is there an other way to get an accelerated access to very huge tiffs file, sprengled over an big extension? Thanks in advance Cheers JC -- Juan Carlos Fuchs, arqto & mgtr. -- Juan Carlos Fuchs, arqto & mgtr. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Jun 9 07:47:26 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 09 Jun 2011 10:47:26 -0400 Subject: [mapserver-users] Fwd: Tile of tiles with tif images In-Reply-To: References: Message-ID: <4DF0DCFE.3050205@swoodbridge.com> tile4ms only works with shapefiles as input. gdaltindex is probably what you want for TIF images. -Steve W On 6/9/2011 10:47 AM, Juan Carlos Fuchs wrote: > Subject: Tile of tiles with tif images > Dear Gentleman: > > Situation > We have a collection of images tiled with re-tile.py. > each record of our .dbf points to a diferent part of one tiff image. > > Now we want to put them together (the Tiles), > say, first, all the tiles from the images of the same province, > and later, all the tiles from the provinces of the same projection. > > when we run tile4ms we get the following weird error > Aborted. Unable to open > DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-02-may-09-img-img-tif > > If we get things right, each record in our tile file point to a > different part of one tiff image, but the shp file has an geometric > extend for each image > so, why didn?t this work?? > > Is there an other way to get an accelerated access to very huge tiffs > file, sprengled over an big extension? > > Thanks in advance > Cheers > JC > > -- > Juan Carlos Fuchs, arqto & mgtr. > > > > > > -- > Juan Carlos Fuchs, arqto & mgtr. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sakaroyban at yahoo.com Thu Jun 9 08:03:51 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Thu, 9 Jun 2011 08:03:51 -0700 (PDT) Subject: AW: [mapserver-users] Problem in extent using openlayers withMapserver In-Reply-To: <9185B4F296484201B4790405FC1EB5EB@pcawh2> References: <157145.18940.qm@web121611.mail.ne1.yahoo.com><4DEA6CA5.2090700@swoodbridge.com> <940859.89287.qm@web121612.mail.ne1.yahoo.com> <9185B4F296484201B4790405FC1EB5EB@pcawh2> Message-ID: <283764.46453.qm@web121614.mail.ne1.yahoo.com> Very very thanks. It worked fine. but one strange point: Why they don't easily compute this maxRsolution in their lib using with of map element (instead of supposing all map elements to be in 256*256 size)? Anyway, your helpful point is totally appreciated. ________________________________ From: Arnd Wippermann To: Saka Royban Cc: users at openlayers.org Sent: Thu, June 9, 2011 1:59:10 AM Subject: AW: [mapserver-users] Problem in extent using openlayers withMapserver when you request MapServer via Url, then Mapserver delivers the image as defined by the mapfile (extent, imagesize) => resolution = 0.45. If you request MapServer via OpenLayers.WMS, then the mapoptions are the point. By default is the maxResolution = 1.40625 and the other resolutions are maxResolution/2^zoom. (1.40625 , 0.703125, 0.3515625, ...) map.zoomToMaxExtent() uses the resolution = 0.703125, because that is the best resolution to display maxExtent (-180,-90,180,90). For the next resolution the map would not display in whole. You can set maxResolution=0.45 in the mapoptions. Then the layer should fill the whole map. Arnd ________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Saka Royban Gesendet: Mittwoch, 8. Juni 2011 15:10 An: MapServer Betreff: Re: [mapserver-users] Problem in extent using openlayers withMapserver ----- Forwarded Message ---- From: Saka Royban To: Stephen Woodbridge Sent: Wed, June 8, 2011 5:38:17 PM Subject: Re: [mapserver-users] Problem in extent using openlayers with Mapserver Thanks stephen for ur help (and sorry for bit abit latency in reply) I've already tried that, i.e. constructing map object without any argument but no result. In fact, in first step i created map without any extra argument and faced that problem and after that i added some arguments to maybe solve the problem. Any idea now? ________________________________ From: Stephen Woodbridge To: mapserver-users at lists.osgeo.org Sent: Sat, June 4, 2011 10:04:29 PM Subject: Re: [mapserver-users] Problem in extent using openlayers with Mapserver try just using: map = new OpenLayers.Map( 'map' ); -Steve On 6/4/2011 1:21 PM, Saka Royban wrote: > Hi all. > I've really got stuck in this problem and need some help as i'm a newbie > using openlayers with mapserver. > In mapfile i've set output to be: > EXTENT -180 -90 180 90 # Geographic > SIZE 800 400 > IMAGECOLOR 128 128 255 > > when i request mapserver through URL, i recieve a complete 800*400 > image, but when i use openlayers i get a 800*400 image which original > map fills 512*256 of the center and other pixels are filled with IMAGECOLOR. > this is my code: > map = new OpenLayers.Map( 'map',{'tileSize': new > OpenLayers.Size(400,400)} ); > layer = new OpenLayers.Layer.MapServer( "World Map", > "http://localhost/cgi-bin/mapserv.exe", {map: > '/ms4w/apps/ms101/htdocs/ms101.map',layers: 'world_poly', height: 400, > width: 800}, {singleTile: true} ); > > map.addLayer(layer); > map.zoomToMaxExtent(); > > I asked this question in openlayers mailing list with no success. It > sounds it is related to mapserver. > Any help would be greatly appreciated > > Regards (also sorry if my english is not very good) > > > > _______________________________________________ > 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 chris.green at ibstv.co.uk Thu Jun 9 08:04:53 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 9 Jun 2011 16:04:53 +0100 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: <4DF0DB9B.6070005@swoodbridge.com> References: <0ed101cc26a4$f82f4040$e88dc0c0$@green@ibstv.co.uk> <4DF0DB9B.6070005@swoodbridge.com> Message-ID: <0f1601cc26b6$967b5430$c371fc90$@green@ibstv.co.uk> Hi Steve Thanks for your comments. I have read the documentation and realise that there will be quite a few changes to my mapfile(s). I'm not at all worried about that, it's just a question of patiently working through the changes. However I am very apprehensive of the upgrade itself. Before I installed the FGS package I spent many, many hours trying to compile and install Mapserver myself but eventually had to admit defeat and resort to FGS. Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe just some encouragement!) Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: 09 June 2011 15:42 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) On 6/9/2011 8:58 AM, Chris Green wrote: > Hi All > > I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 > Unix platform. I installed it via the FGS installer package which made > the installation process relatively straightforward. > > Now I see that Mapserver 6.0 has been released and it includes some > features that I really want to take advantage of, particularly the > ability to cluster dense features. My problem is that apparently the FGS > package has not been updated, so from the Mapserver website it looks > like I have start from scratch with a scarily long list of libraries and > compilations required to install Mapserver 6.0 from scratch. As > something of a Unix novice I don't fancy this very much! > > I am wondering if there is a simple way to in effect replace my existing > Mapserver 5.4 executable with Mapserver 6.0 - could I assume that > Mapserver 6.0 only requires the same libraries as 5.4 and just compile > the 6.0 executable? Any guidance on the direction to take here would be > gratefully received. Hi Chris, Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a mapfile point of view. Make sure you read the mapserver migration guide. One of the big changes that we made in 6.0 was to clean up some of the mapfile syntax and remove some deprecated tags. These should not be major changes but it is likely that some (all?) of your mapfiles will need to be tweaked to get them to work. So please plan accordingly. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mwkorver at gmail.com Thu Jun 9 08:09:46 2011 From: mwkorver at gmail.com (Mark Korver) Date: Thu, 9 Jun 2011 10:09:46 -0500 Subject: [mapserver-users] Fwd: Tile of tiles with tif images In-Reply-To: References: Message-ID: As Steve noted, if the input is TIF, then you prob want to be using gdaltindex rather than tile4ms. > Now we want to put them together (the Tiles), > say, first, all the tiles from the images of the same province, > and later, all the tiles from the provinces of the same projection. when re-tile.py does it's work it knows nothing about what province some TIF is in. For you to be able to calculate all the tiles that are in the .dbf that are in some province, and I assume you are talking about the shapefile index produced when using retile.py, you would need to do a spatial query against that dbf using some political boundary polygon. Still, I am not sure what the goal here is. are you trying to re-tile a set of TIFs to create a new group of tiles per province? On Thu, Jun 9, 2011 at 9:47 AM, Juan Carlos Fuchs wrote: > Subject:?Tile of tiles with tif images > Dear Gentleman: > > Situation > We have a collection of images tiled with re-tile.py. > each record of our .dbf points to a diferent part of one tiff image. > > Now we want to put them together (the Tiles), > ?say, first,? all the tiles from the images of the same province, > ?and later, all the tiles from the provinces of the same projection. > > when we run tile4ms we get the following weird error > Aborted. Unable to open > DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-02-may-09-img-img-tif > > If we get things right, each record in our tile file point to a different > part of one tiff image, but the shp file has an geometric extend for each > image > so, why didn?t this work?? > > Is there an other way to get an accelerated access to very huge tiffs file, > sprengled over an big extension? > > Thanks in advance > Cheers > JC > > -- > Juan Carlos Fuchs, arqto & mgtr. > > > > > > -- > Juan Carlos Fuchs, arqto & mgtr. > > > _______________________________________________ > 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 Thu Jun 9 08:28:01 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 9 Jun 2011 10:28:01 -0500 Subject: [mapserver-users] Simple mapserver HTML template file? In-Reply-To: <4DF0DADF.6040500@tamu.edu> References: <4DF0DADF.6040500@tamu.edu> Message-ID: Gerry, I would really look at OpenLayers on the client side and MapServer WMS on the server side. You could probably tweak one of the basic examples and have it up and running in about 15 minutes. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gerry Creager Sent: Thursday, June 09, 2011 9:38 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Simple mapserver HTML template file? I've been away from Mapserver for awhile and I'm having trouble wrapping my head, quickly, around a template file for a simple application that requires panning and zooming but no queries. Can anyone help a guy out on short notice? I can likely flesh a an example out but I'm really having trouble getting started. Thanks, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From michael.smith at usace.army.mil Thu Jun 9 08:31:19 2011 From: michael.smith at usace.army.mil (Smith, Michael D ERDC-CRREL-NH) Date: Thu, 9 Jun 2011 11:31:19 -0400 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: <0f1601cc26b6$967b5430$c371fc90$@green@ibstv.co.uk> Message-ID: Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 11:04 AM, "Chris Green" wrote: > Hi Steve > > Thanks for your comments. I have read the documentation and realise that > there will be quite a few changes to my mapfile(s). I'm not at all worried > about that, it's just a question of patiently working through the changes. > However I am very apprehensive of the upgrade itself. Before I installed the > FGS package I spent many, many hours trying to compile and install Mapserver > myself but eventually had to admit defeat and resort to FGS. > > Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe > just some encouragement!) > > > Chris > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: 09 June 2011 15:42 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > > On 6/9/2011 8:58 AM, Chris Green wrote: >> Hi All >> >> I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 >> Unix platform. I installed it via the FGS installer package which made >> the installation process relatively straightforward. >> >> Now I see that Mapserver 6.0 has been released and it includes some >> features that I really want to take advantage of, particularly the >> ability to cluster dense features. My problem is that apparently the FGS >> package has not been updated, so from the Mapserver website it looks >> like I have start from scratch with a scarily long list of libraries and >> compilations required to install Mapserver 6.0 from scratch. As >> something of a Unix novice I don't fancy this very much! >> >> I am wondering if there is a simple way to in effect replace my existing >> Mapserver 5.4 executable with Mapserver 6.0 - could I assume that >> Mapserver 6.0 only requires the same libraries as 5.4 and just compile >> the 6.0 executable? Any guidance on the direction to take here would be >> gratefully received. > > Hi Chris, > > Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a > mapfile point of view. Make sure you read the mapserver migration guide. > One of the big changes that we made in 6.0 was to clean up some of the > mapfile syntax and remove some deprecated tags. These should not be > major changes but it is likely that some (all?) of your mapfiles will > need to be tweaked to get them to work. > > So please plan accordingly. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From chris.green at ibstv.co.uk Thu Jun 9 08:38:38 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 9 Jun 2011 16:38:38 +0100 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: References: <0f1601cc26b6$967b5430$c371fc90$@green@ibstv.co.uk> Message-ID: <0f7d01cc26bb$4dbe03a0$e93a0ae0$@green@ibstv.co.uk> Hi Michael I'm using Fedora 7. My main problem is the totally daunting list of libraries and other packages like GD and GDAL which have to be available or pre-compiled before you can even start compiling Mapserver 6.0. But it seems to me that most if not all of the required libraries must already be in place for Mapserver 5.4 to run (which it does), so I was hoping that someone could say "don't worry, just do this...." Chris -----Original Message----- From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: 09 June 2011 16:31 To: Chris Green; 'Stephen Woodbridge'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 11:04 AM, "Chris Green" wrote: > Hi Steve > > Thanks for your comments. I have read the documentation and realise that > there will be quite a few changes to my mapfile(s). I'm not at all worried > about that, it's just a question of patiently working through the changes. > However I am very apprehensive of the upgrade itself. Before I installed the > FGS package I spent many, many hours trying to compile and install Mapserver > myself but eventually had to admit defeat and resort to FGS. > > Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe > just some encouragement!) > > > Chris > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: 09 June 2011 15:42 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > > On 6/9/2011 8:58 AM, Chris Green wrote: >> Hi All >> >> I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 >> Unix platform. I installed it via the FGS installer package which made >> the installation process relatively straightforward. >> >> Now I see that Mapserver 6.0 has been released and it includes some >> features that I really want to take advantage of, particularly the >> ability to cluster dense features. My problem is that apparently the FGS >> package has not been updated, so from the Mapserver website it looks >> like I have start from scratch with a scarily long list of libraries and >> compilations required to install Mapserver 6.0 from scratch. As >> something of a Unix novice I don't fancy this very much! >> >> I am wondering if there is a simple way to in effect replace my existing >> Mapserver 5.4 executable with Mapserver 6.0 - could I assume that >> Mapserver 6.0 only requires the same libraries as 5.4 and just compile >> the 6.0 executable? Any guidance on the direction to take here would be >> gratefully received. > > Hi Chris, > > Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a > mapfile point of view. Make sure you read the mapserver migration guide. > One of the big changes that we made in 6.0 was to clean up some of the > mapfile syntax and remove some deprecated tags. These should not be > major changes but it is likely that some (all?) of your mapfiles will > need to be tweaked to get them to work. > > So please plan accordingly. > > -Steve W > _______________________________________________ > 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 michael.smith at usace.army.mil Thu Jun 9 08:42:57 2011 From: michael.smith at usace.army.mil (Smith, Michael D ERDC-CRREL-NH) Date: Thu, 9 Jun 2011 11:42:57 -0400 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: <0f7d01cc26bb$4dbe03a0$e93a0ae0$@green@ibstv.co.uk> Message-ID: Chris, The packages will handle the dependencies. Install via Yum and point to the Enterprise Linux repo and it should do all the installing for you (except put the mapserv binary in your cgi-bin dir, I don't think they do that). Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 6/9/11 11:38 AM, "Chris Green" wrote: > Hi Michael > > > I'm using Fedora 7. My main problem is the totally daunting list of > libraries and other packages like GD and GDAL which have to be available or > pre-compiled before you can even start compiling Mapserver 6.0. But it seems > to me that most if not all of the required libraries must already be in > place for Mapserver 5.4 to run (which it does), so I was hoping that someone > could say "don't worry, just do this...." > > > > Chris > > > > -----Original Message----- > From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] > Sent: 09 June 2011 16:31 > To: Chris Green; 'Stephen Woodbridge'; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > > Chris, > > What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. > > See http://mapserver.org/download.html#linux > > > On 6/9/11 11:04 AM, "Chris Green" wrote: > >> Hi Steve >> >> Thanks for your comments. I have read the documentation and realise that >> there will be quite a few changes to my mapfile(s). I'm not at all worried >> about that, it's just a question of patiently working through the changes. >> However I am very apprehensive of the upgrade itself. Before I installed > the >> FGS package I spent many, many hours trying to compile and install > Mapserver >> myself but eventually had to admit defeat and resort to FGS. >> >> Now there is no FGS to fall back on, I'm hoping for some guidance (or > maybe >> just some encouragement!) >> >> >> Chris >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen >> Woodbridge >> Sent: 09 June 2011 15:42 >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) >> >> On 6/9/2011 8:58 AM, Chris Green wrote: >>> Hi All >>> >>> I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 >>> Unix platform. I installed it via the FGS installer package which made >>> the installation process relatively straightforward. >>> >>> Now I see that Mapserver 6.0 has been released and it includes some >>> features that I really want to take advantage of, particularly the >>> ability to cluster dense features. My problem is that apparently the FGS >>> package has not been updated, so from the Mapserver website it looks >>> like I have start from scratch with a scarily long list of libraries and >>> compilations required to install Mapserver 6.0 from scratch. As >>> something of a Unix novice I don't fancy this very much! >>> >>> I am wondering if there is a simple way to in effect replace my existing >>> Mapserver 5.4 executable with Mapserver 6.0 - could I assume that >>> Mapserver 6.0 only requires the same libraries as 5.4 and just compile >>> the 6.0 executable? Any guidance on the direction to take here would be >>> gratefully received. >> >> Hi Chris, >> >> Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a >> mapfile point of view. Make sure you read the mapserver migration guide. >> One of the big changes that we made in 6.0 was to clean up some of the >> mapfile syntax and remove some deprecated tags. These should not be >> major changes but it is likely that some (all?) of your mapfiles will >> need to be tweaked to get them to work. >> >> So please plan accordingly. >> >> -Steve W >> _______________________________________________ >> 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 gerry.creager at tamu.edu Thu Jun 9 08:49:59 2011 From: gerry.creager at tamu.edu (Gerry Creager) Date: Thu, 09 Jun 2011 10:49:59 -0500 Subject: [mapserver-users] Simple mapserver HTML template file? In-Reply-To: References: <4DF0DADF.6040500@tamu.edu> Message-ID: <4DF0EBA7.8090605@tamu.edu> I'm looking at that now. I need to understand the TEMPLATE element in the LAYER section, though. I created the basic mapfile using Qgis, and it's got a dummy value there. gc Fawcett, David (MPCA) wrote: > Gerry, > > I would really look at OpenLayers on the client side and MapServer WMS on the server side. > > You could probably tweak one of the basic examples and have it up and running in about 15 minutes. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gerry Creager > Sent: Thursday, June 09, 2011 9:38 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Simple mapserver HTML template file? > > I've been away from Mapserver for awhile and I'm having trouble wrapping > my head, quickly, around a template file for a simple application that > requires panning and zooming but no queries. > > Can anyone help a guy out on short notice? I can likely flesh a an > example out but I'm really having trouble getting started. > > Thanks, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From jfuch at indec.mecon.gov.ar Thu Jun 9 09:04:36 2011 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Thu, 9 Jun 2011 13:04:36 -0300 Subject: [mapserver-users] Fwd: Tile of tiles with tif images Message-ID: Hi Mark, Our Goal is to get an image catalog with auto zoom?s in a fast delivery via a web browser with the tile aproach we deliver fast images with low resolution and only the pertinent pieces in an higher resolution... Thanks for asking, any ideas? -JC -----Mensaje original----- De: Mark Korver [mailto:mwkorver at gmail.com] Enviado el: Jueves, 09 de Junio de 2011 12:10 p.m. Para: Juan Carlos Fuchs CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Fwd: Tile of tiles with tif images As Steve noted, if the input is TIF, then you prob want to be using gdaltindex rather than tile4ms. > Now we want to put them together (the Tiles), > say, first, all the tiles from the images of the same province, > and later, all the tiles from the provinces of the same projection. when re-tile.py does it's work it knows nothing about what province some TIF is in. For you to be able to calculate all the tiles that are in the .dbf that are in some province, and I assume you are talking about the shapefile index produced when using retile.py, you would need to do a spatial query against that dbf using some political boundary polygon. Still, I am not sure what the goal here is. are you trying to re-tile a set of TIFs to create a new group of tiles per province? On Thu, Jun 9, 2011 at 9:47 AM, Juan Carlos Fuchs wrote: > Subject:?Tile of tiles with tif images > Dear Gentleman: > > Situation > We have a collection of images tiled with re-tile.py. > each record of our .dbf points to a diferent part of one tiff image. > > Now we want to put them together (the Tiles), > ?say, first,? all the tiles from the images of the same province, > ?and later, all the tiles from the provinces of the same projection. > > when we run tile4ms we get the following weird error > Aborted. Unable to open > DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-0 2-may-09-img-img-tif > > If we get things right, each record in our tile file point to a different > part of one tiff image, but the shp file has an geometric extend for each > image > so, why didn?t this work?? > > Is there an other way to get an accelerated access to very huge tiffs file, > sprengled over an big extension? > > Thanks in advance > Cheers > JC > > -- > Juan Carlos Fuchs, arqto & mgtr. > > > > > > -- > Juan Carlos Fuchs, arqto & mgtr. > > > _______________________________________________ > 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 jfuch at indec.mecon.gov.ar Thu Jun 9 08:58:43 2011 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Thu, 9 Jun 2011 12:58:43 -0300 Subject: [mapserver-users] Fwd: Tile of tiles with tif images Message-ID: Hi Steve, Yes, that?s the point! We are traying to tile a set of tiles that refer each to a diferent Tif image We first tile each image with re-tile.py we obtain a shp file with a dbf with field LOCATION pointing to a piece of the Tif image Next we use tile4ms to put those first tiles (shp?s) in a only one tile, obtaining a new shp why will this not work? after all, we are puting a group of shp?s in a tile. _JC -----Mensaje original----- De: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Enviado el: Jueves, 09 de Junio de 2011 11:47 a.m. Para: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Fwd: Tile of tiles with tif images tile4ms only works with shapefiles as input. gdaltindex is probably what you want for TIF images. -Steve W On 6/9/2011 10:47 AM, Juan Carlos Fuchs wrote: > Subject: Tile of tiles with tif images > Dear Gentleman: > > Situation > We have a collection of images tiled with re-tile.py. > each record of our .dbf points to a diferent part of one tiff image. > > Now we want to put them together (the Tiles), > say, first, all the tiles from the images of the same province, > and later, all the tiles from the provinces of the same projection. > > when we run tile4ms we get the following weird error > Aborted. Unable to open > DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-0 2-may-09-img-img-tif > > If we get things right, each record in our tile file point to a > different part of one tiff image, but the shp file has an geometric > extend for each image > so, why didn?t this work?? > > Is there an other way to get an accelerated access to very huge tiffs > file, sprengled over an big extension? > > Thanks in advance > Cheers > JC > > -- > Juan Carlos Fuchs, arqto & mgtr. > > > > > > -- > Juan Carlos Fuchs, arqto & mgtr. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From chris.green at ibstv.co.uk Thu Jun 9 09:06:10 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 9 Jun 2011 17:06:10 +0100 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: References: <0f7d01cc26bb$4dbe03a0$e93a0ae0$@green@ibstv.co.uk> Message-ID: <0f8101cc26bf$26c27930$74476b90$@green@ibstv.co.uk> Thanks Michael, that's the encouragement that I needed. I will give it a go... Chris -----Original Message----- From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: 09 June 2011 16:43 To: Chris Green; 'Stephen Woodbridge'; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Chris, The packages will handle the dependencies. Install via Yum and point to the Enterprise Linux repo and it should do all the installing for you (except put the mapserv binary in your cgi-bin dir, I don't think they do that). Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 6/9/11 11:38 AM, "Chris Green" wrote: > Hi Michael > > > I'm using Fedora 7. My main problem is the totally daunting list of > libraries and other packages like GD and GDAL which have to be available or > pre-compiled before you can even start compiling Mapserver 6.0. But it seems > to me that most if not all of the required libraries must already be in > place for Mapserver 5.4 to run (which it does), so I was hoping that someone > could say "don't worry, just do this...." > > > > Chris > > > > -----Original Message----- > From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] > Sent: 09 June 2011 16:31 > To: Chris Green; 'Stephen Woodbridge'; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > > Chris, > > What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. > > See http://mapserver.org/download.html#linux > > > On 6/9/11 11:04 AM, "Chris Green" wrote: > >> Hi Steve >> >> Thanks for your comments. I have read the documentation and realise that >> there will be quite a few changes to my mapfile(s). I'm not at all worried >> about that, it's just a question of patiently working through the changes. >> However I am very apprehensive of the upgrade itself. Before I installed > the >> FGS package I spent many, many hours trying to compile and install > Mapserver >> myself but eventually had to admit defeat and resort to FGS. >> >> Now there is no FGS to fall back on, I'm hoping for some guidance (or > maybe >> just some encouragement!) >> >> >> Chris >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen >> Woodbridge >> Sent: 09 June 2011 15:42 >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) >> >> On 6/9/2011 8:58 AM, Chris Green wrote: >>> Hi All >>> >>> I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 >>> Unix platform. I installed it via the FGS installer package which made >>> the installation process relatively straightforward. >>> >>> Now I see that Mapserver 6.0 has been released and it includes some >>> features that I really want to take advantage of, particularly the >>> ability to cluster dense features. My problem is that apparently the FGS >>> package has not been updated, so from the Mapserver website it looks >>> like I have start from scratch with a scarily long list of libraries and >>> compilations required to install Mapserver 6.0 from scratch. As >>> something of a Unix novice I don't fancy this very much! >>> >>> I am wondering if there is a simple way to in effect replace my existing >>> Mapserver 5.4 executable with Mapserver 6.0 - could I assume that >>> Mapserver 6.0 only requires the same libraries as 5.4 and just compile >>> the 6.0 executable? Any guidance on the direction to take here would be >>> gratefully received. >> >> Hi Chris, >> >> Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a >> mapfile point of view. Make sure you read the mapserver migration guide. >> One of the big changes that we made in 6.0 was to clean up some of the >> mapfile syntax and remove some deprecated tags. These should not be >> major changes but it is likely that some (all?) of your mapfiles will >> need to be tweaked to get them to work. >> >> So please plan accordingly. >> >> -Steve W >> _______________________________________________ >> 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 john.callahan at udel.edu Thu Jun 9 09:09:32 2011 From: john.callahan at udel.edu (John Callahan) Date: Thu, 9 Jun 2011 12:09:32 -0400 Subject: [mapserver-users] WFS intersect request Message-ID: I have the following WFS intersect request that if working with GeoServer, and I'm trying to run this app with MapServer. The error I'm getting is: msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature ... I've dome some reading but not sure exactly what's supported. I have used both INTERSECT and INTERSECTS, both return the same error. Should I skip these and go with BBOX? If so, I assume I would need to get rid of the lowerCorner/upperCorner items and just list the coordinates separated by commas. Or could there be a problem with the PropertyName = SHAPE? I couldn't find doc on what this value should be. My data are either shapefiles or postgis layers. The POST request is: SHAPE 149081.76574899518 163078.62572595105 205627.85303800018 194899.95291598293 Thanks for any help you can provide. - John *********************************** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu ******************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fawcett at state.mn.us Thu Jun 9 08:55:04 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 9 Jun 2011 10:55:04 -0500 Subject: [mapserver-users] Simple mapserver HTML template file? In-Reply-To: <4DF0EBA7.8090605@tamu.edu> References: <4DF0DADF.6040500@tamu.edu> <4DF0EBA7.8090605@tamu.edu> Message-ID: If you aren't querying, you shouldn't need a template. All that you should need is a map/layer that can be served as a WMS. OpenLayers and the HTML page that you create to contain the OpenLayers map handle the layout. You could start with a really simple example like this and point it at your WMS. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/lite.html David. -----Original Message----- From: Gerry Creager [mailto:gerry.creager at tamu.edu] Sent: Thursday, June 09, 2011 10:50 AM To: Fawcett, David (MPCA) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Simple mapserver HTML template file? I'm looking at that now. I need to understand the TEMPLATE element in the LAYER section, though. I created the basic mapfile using Qgis, and it's got a dummy value there. gc Fawcett, David (MPCA) wrote: > Gerry, > > I would really look at OpenLayers on the client side and MapServer WMS on the server side. > > You could probably tweak one of the basic examples and have it up and running in about 15 minutes. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gerry Creager > Sent: Thursday, June 09, 2011 9:38 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Simple mapserver HTML template file? > > I've been away from Mapserver for awhile and I'm having trouble wrapping > my head, quickly, around a template file for a simple application that > requires panning and zooming but no queries. > > Can anyone help a guy out on short notice? I can likely flesh a an > example out but I'm really having trouble getting started. > > Thanks, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From adube at mapgears.com Thu Jun 9 09:14:44 2011 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 09 Jun 2011 12:14:44 -0400 Subject: [mapserver-users] WFS intersect request In-Reply-To: References: Message-ID: <4DF0F174.3050002@mapgears.com> Hello, If you run a WFS GetCapabilities request on your server, it should tell which filters it supports, see : http://mapserver.org/ogc/filter_encoding.html#server-side Someone correct me if I'm wrong, but I think MapServer needs to be compiled with GEOS in order to do intersect filters. HTH, Alexandre On 11-06-09 12:09 PM, John Callahan wrote: > I have the following WFS intersect request that if working with > GeoServer, and I'm trying to run this app with MapServer. The error > I'm getting is: > > msWFSGetFeature(): WFS server error. Invalid or > Unsupported FILTER in GetFeature ... > > > I've dome some reading but not sure exactly what's supported. I have > used both INTERSECT and INTERSECTS, both return the same error. > Should I skip these and go with BBOX? If so, I assume I would need to > get rid of the lowerCorner/upperCorner items and just list the > coordinates separated by commas. Or could there be a problem with the > PropertyName = SHAPE? I couldn't find doc on what this value should > be. My data are either shapefiles or postgis layers. > > The POST request is: > > xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > xmlns:massgis="http://massgis.state.ma.us/featuretype"> > > > SHAPE > > 149081.76574899518 163078.62572595105 > 205627.85303800018 194899.95291598293 > > > > > > > > Thanks for any help you can provide. > > - John > > *********************************** > John Callahan, Research Scientist > Delaware Geological Survey > University of Delaware > URL: http://www.dgs.udel.edu > ******************************* > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at udel.edu Thu Jun 9 09:47:41 2011 From: john.callahan at udel.edu (John Callahan) Date: Thu, 9 Jun 2011 12:47:41 -0400 Subject: [mapserver-users] Re: WFS intersect request In-Reply-To: <4DF0F174.3050002@mapgears.com> References: <4DF0F174.3050002@mapgears.com> Message-ID: Thanks. Yes, my server does support Intersect filter, according to the WFS GetCaps file. I'm using the latest MS4W install with MS 6. John On Thursday, June 9, 2011, Alexandre Dube wrote: > > > > > > > Hello, > > ? If you run a WFS GetCapabilities request on your server, it should > tell which filters it supports, see : > http://mapserver.org/ogc/filter_encoding.html#server-side > > ? Someone correct me if I'm wrong, but I think MapServer needs to be > compiled with GEOS in order to do intersect filters. > > HTH, > > Alexandre > > > On 11-06-09 12:09 PM, John Callahan wrote: > I have the following WFS intersect request that if > working with GeoServer, and I'm trying to run this app with > MapServer.? The error I'm getting is: > > msWFSGetFeature(): WFS server error. > Invalid or Unsupported FILTER in GetFeature ... > > > I've dome some reading but not sure exactly what's supported.? I > have used both INTERSECT and INTERSECTS, both return the same > error.? Should I skip these and go with BBOX?? If so, I assume I > would need to get rid of the lowerCorner/upperCorner items and > just list the coordinates separated by commas.? Or could there be > a problem with the PropertyName = SHAPE??? I couldn't find doc on > what this value should be.? My data are either shapefiles or > postgis layers. > > The POST request is: > > service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > xmlns:massgis="http://massgis.state.ma.us/featuretype"> > > > SHAPE > srsName="EPSG:26957"> > 149081.76574899518 > 163078.62572595105 > 205627.85303800018 > 194899.95291598293 > > > > > > > > Thanks for any help you can provide. > > - John > > *********************************** > John Callahan, Research Scientist > Delaware Geological Survey > University of Delaware > URL: http://www.dgs.udel.edu > ******************************* > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Alexandre Dub? > Mapgears > www.mapgears.com > > > > -- *********************************** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu ******************************* From woodbri at swoodbridge.com Thu Jun 9 09:52:44 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 09 Jun 2011 12:52:44 -0400 Subject: [mapserver-users] Fwd: Tile of tiles with tif images In-Reply-To: References: Message-ID: <4DF0FA5C.1060007@swoodbridge.com> Ok, I think there is a misunderstanding on how the commands work: [set of shapefiles] -> tile4ms -> one shapefile with pointers to the set [set of images] -> gdaltindex -> one shapefile with pointers to the set What you are trying to do is: multiple [sets of images] -> to multiple shapefiles then concatentate your multiple shapefiles into a single index. Mapserver does not support indexes of indexes of files. tile4ms does not concatenate the files into a single file it creates a tileindex. You can take your multiple tif tileindexes and create a tile index for that and it can be used to display the bbox for each of the images by specifying the LAYER TYPE POLYGON in the mapfile. BUT you can not use it to display the TIF images. If you want to create one large tileindex of all your TIF files the just process them all through gdaltindex into a new tile index that contains all the original images. -Steve On 6/9/2011 11:58 AM, Fuchs Juan Carlos wrote: > Hi Steve, > Yes, that?s the point! > We are traying to tile a set of tiles that refer each to a diferent Tif > image > We first tile each image with re-tile.py > we obtain a shp file with a dbf with field LOCATION pointing to a piece of > the Tif image > Next we use tile4ms to put those first tiles (shp?s) in a only one tile, > obtaining a new shp > why will this not work? after all, we are puting a group of shp?s in a tile. > > _JC > > -----Mensaje original----- > De: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Enviado el: Jueves, 09 de Junio de 2011 11:47 a.m. > Para: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] Fwd: Tile of tiles with tif images > > > > > tile4ms only works with shapefiles as input. > gdaltindex is probably what you want for TIF images. > > -Steve W > > On 6/9/2011 10:47 AM, Juan Carlos Fuchs wrote: >> Subject: Tile of tiles with tif images >> Dear Gentleman: >> >> Situation >> We have a collection of images tiled with re-tile.py. >> each record of our .dbf points to a diferent part of one tiff image. >> >> Now we want to put them together (the Tiles), >> say, first, all the tiles from the images of the same province, >> and later, all the tiles from the provinces of the same projection. >> >> when we run tile4ms we get the following weird error >> Aborted. Unable to open >> > DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-0 > 2-may-09-img-img-tif >> >> If we get things right, each record in our tile file point to a >> different part of one tiff image, but the shp file has an geometric >> extend for each image >> so, why didn?t this work?? >> >> Is there an other way to get an accelerated access to very huge tiffs >> file, sprengled over an big extension? >> >> Thanks in advance >> Cheers >> JC >> >> -- >> Juan Carlos Fuchs, arqto& mgtr. >> >> >> >> >> >> -- >> Juan Carlos Fuchs, arqto& mgtr. >> >> >> >> _______________________________________________ >> 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 mwkorver at gmail.com Thu Jun 9 10:20:18 2011 From: mwkorver at gmail.com (Mark Korver) Date: Thu, 9 Jun 2011 12:20:18 -0500 Subject: [mapserver-users] Fwd: Tile of tiles with tif images In-Reply-To: References: Message-ID: Probably the part of confusion here is that there are several strategies for increasing speed with raster base-layers. One is to optimize the TIFS for use with standard WMS queries, the other is to create a TMS pyramid, which essentially amounts to pre-generating all the raster tiles before hand. optimizing WMS with a set of large TIFs involves work with the TIFS that may include changing the size by cutting them down to a small er size, changing their internal structure ( internally tiling them ) adding overviews etc. I don't use it myself, but retile.py is normally used to create a TMS pyramid, or so I thought. That means that when you serve these files you are using just HTTP to access TMSed data, not MapServer. Because you are not using MapServer to process anything this is the quickest way to serve rasters to a browser, same as Google maps etc. with openlayers client the diff is var layerName = new OpenLayers.Layer.TMS() vs var layerName = new OpenLayers.Layer.WMS() On Thu, Jun 9, 2011 at 11:04 AM, Fuchs Juan Carlos wrote: > Hi Mark, > > Our Goal is to get an image catalog > with auto zoom?s in a fast delivery via a web browser > with the tile aproach we deliver fast images with low resolution > and only the pertinent pieces in an higher resolution... > > Thanks for asking, any ideas? > -JC > > > -----Mensaje original----- > De: Mark Korver [mailto:mwkorver at gmail.com] > Enviado el: Jueves, 09 de Junio de 2011 12:10 p.m. > Para: Juan Carlos Fuchs > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] Fwd: Tile of tiles with tif images > > > As Steve noted, if the input is TIF, then you prob want to be using > gdaltindex rather than tile4ms. > >> Now we want to put them together (the Tiles), >> ?say, first, ?all the tiles from the images of the same province, >> ?and later, all the tiles from the provinces of the same projection. > > when ?re-tile.py does it's work it knows nothing about what province > some TIF is in. ?For you to be able to calculate all the tiles that > are in the .dbf that are in some province, and I assume you are > talking about the shapefile index produced when using retile.py, you > would need to do a spatial query against that dbf using some political > boundary polygon. > > Still, I am not sure what the goal here is. ?are you trying to re-tile > a set of TIFs to create a new group of tiles per province? > > > > On Thu, Jun 9, 2011 at 9:47 AM, Juan Carlos Fuchs > wrote: >> Subject:?Tile of tiles with tif images >> Dear Gentleman: >> >> Situation >> We have a collection of images tiled with re-tile.py. >> each record of our .dbf points to a diferent part of one tiff image. >> >> Now we want to put them together (the Tiles), >> ?say, first,? all the tiles from the images of the same province, >> ?and later, all the tiles from the provinces of the same projection. >> >> when we run tile4ms we get the following weird error >> Aborted. Unable to open >> > DBF:/home/jfuch/public_html/wms/Fase8/cbers-2b-cordoba-laborde-168-b-137-4-0 > 2-may-09-img-img-tif >> >> If we get things right, each record in our tile file point to a different >> part of one tiff image, but the shp file has an geometric extend for each >> image >> so, why didn?t this work?? >> >> Is there an other way to get an accelerated access to very huge tiffs > file, >> sprengled over an big extension? >> >> Thanks in advance >> Cheers >> JC >> >> -- >> Juan Carlos Fuchs, arqto & mgtr. >> >> >> >> >> >> -- >> Juan Carlos Fuchs, arqto & mgtr. >> >> >> _______________________________________________ >> 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 esmin.gracic at gmail.com Thu Jun 9 10:34:56 2011 From: esmin.gracic at gmail.com (Esmin Gracic) Date: Thu, 9 Jun 2011 19:34:56 +0200 Subject: [mapserver-users] purchasing satellite imagery Message-ID: Hi all. We're in process of developing robust eGov solution including GIS (using mapserver/postgis/pgrouting :) ). This municipality has 1.059 km2. Do you have any recommendation on where to purchase satellite imagery, and which scale/resolution do you recommend. Basic GIS usage is TAX calculation based on more than 70 parameters (mostly including distances to important institutions and road types etc...). This is based on vector data, but great imagery is also in client's interest. Some estimated prices per km2 would be nice, too, 'cause I need to give some numbers to the client. I've googled around, but would like some info from firsthand users. Quickbird has a resolution of 0,6 meter, but I guess that would be overkill (and overpriced for client) Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorge.arevalo at deimos-space.com Thu Jun 9 10:58:37 2011 From: jorge.arevalo at deimos-space.com (=?ISO-8859-1?Q?Jorge_Ar=E9valo?=) Date: Thu, 9 Jun 2011 19:58:37 +0200 Subject: [mapserver-users] Mapserver can't write on a directory it should can Message-ID: Hello, I'm executing Mapserver 5.6.4 under Apache2 in a Ubuntu 10.04 machine. I'm having problems writing log file. In the mapfile, I have: # Logging CONFIG "MS_ERRORFILE" "/var/www/mapserver/log/mylogfile.log" DEBUG 5 Any request I make gets the same answer msSetErrorFile(): General error message. Failed to open MS_ERRORFILE /var/www/mapserver/log/mylogfile.log If I change the path to /tmp/mylogfile.log it works, but then I have a similar problem with SLD: msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 7 (Failed connect to mymachine:80; Operation now in progress) for http://mymachine/sld/polygon_simplepolygon.sld msSLDApplySLDURL: WMS server error. Could not open SLD http://mymachine/sld/polygon_simplepolygon.sld and save it in temporary file /var/www/mapfiles/4df0f886_22dd_0.sld.xml. Please make sure that the sld url is valid and that imagepath and imageurl are set properly in the map file IMAGEPATH and IMAGEURL are properly set in Mapfile (a writable directory and a correct url). The log directory belongs to www-data, and the SLD directory too. I made a test executing, with the www-data user, a python script that creates a file in those directories and it works. Why mapserv process can't do it? Even when I change the permissions of log directory or SLD directory to 777, mapserv can't write on them, but it can it /tmp. Why? Many thanks in advance, and best regards, -- Jorge Ar?valo Internet & Mobilty Division, DEIMOS jorge.arevalo at deimos-space.com http://es.linkedin.com/in/jorgearevalo80 http://mobility.grupodeimos.com/ http://gis4free.wordpress.com http://geohash.org/ezjqgrgzz0g From david.fawcett at state.mn.us Thu Jun 9 11:30:05 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 9 Jun 2011 13:30:05 -0500 Subject: [mapserver-users] purchasing satellite imagery In-Reply-To: References: Message-ID: Where on the globe is this municipality? That may determine the availability, resolution, cost of the imagery. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Esmin Gracic Sent: Thursday, June 09, 2011 12:35 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] purchasing satellite imagery Hi all. We're in process of developing robust eGov solution including GIS (using mapserver/postgis/pgrouting :) ). This municipality has 1.059 km2. Do you have any recommendation on where to purchase satellite imagery, and which scale/resolution do you recommend. Basic GIS usage is TAX calculation based on more than 70 parameters (mostly including distances to important institutions and road types etc...). This is based on vector data, but great imagery is also in client's interest. Some estimated prices per km2 would be nice, too, 'cause I need to give some numbers to the client. I've googled around, but would like some info from firsthand users. Quickbird has a resolution of 0,6 meter, but I guess that would be overkill (and overpriced for client) Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From esmin.gracic at gmail.com Thu Jun 9 12:19:05 2011 From: esmin.gracic at gmail.com (Esmin Gracic) Date: Thu, 9 Jun 2011 21:19:05 +0200 Subject: [mapserver-users] purchasing satellite imagery In-Reply-To: References: Message-ID: sjenica municipality, south serbia ( 43?16?N 20?00?E). On Thu, Jun 9, 2011 at 8:30 PM, Fawcett, David (MPCA) < david.fawcett at state.mn.us> wrote: > Where on the globe is this municipality? That may determine the > availability, resolution, cost of the imagery.**** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Esmin Gracic > *Sent:* Thursday, June 09, 2011 12:35 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] purchasing satellite imagery**** > > ** ** > > Hi all. > > We're in process of developing robust eGov solution including GIS (using > mapserver/postgis/pgrouting :) ). > This municipality has 1.059 km2. > > Do you have any recommendation on where to purchase satellite imagery, and > which scale/resolution do you recommend. Basic GIS usage is TAX calculation > based on more than 70 parameters (mostly including distances to important > institutions and road types etc...). This is based on vector data, but great > imagery is also in client's interest. > Some estimated prices per km2 would be nice, too, 'cause I need to give > some numbers to the client. > > I've googled around, but would like some info from firsthand users. > Quickbird has a resolution of 0,6 meter, but I guess that would be overkill > (and overpriced for client) > > Thanks!**** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Thu Jun 9 14:02:33 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 09 Jun 2011 15:02:33 -0600 Subject: [mapserver-users] purchasing satellite imagery In-Reply-To: References: Message-ID: <4DF134E9.4010008@geoanalytic.com> Spot Image has some cost effective imagery (up to 2.5 meter resolution), or have a look at Ikonos imagery(from SpaceTurk) at 1.0 meter. But there are other satellites (with lots of options) available, so you may want to contact a imagery reseller. Best Regards, Brent Fraser On 6/9/2011 11:34 AM, Esmin Gracic wrote: > Hi all. > > We're in process of developing robust eGov solution including GIS > (using mapserver/postgis/pgrouting :) ). > This municipality has 1.059 km2. > > Do you have any recommendation on where to purchase satellite imagery, > and which scale/resolution do you recommend. Basic GIS usage is TAX > calculation based on more than 70 parameters (mostly including > distances to important institutions and road types etc...). This is > based on vector data, but great imagery is also in client's interest. > Some estimated prices per km2 would be nice, too, 'cause I need to > give some numbers to the client. > > I've googled around, but would like some info from firsthand users. > Quickbird has a resolution of 0,6 meter, but I guess that would be > overkill (and overpriced for client) > > Thanks! > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vmaffei at gmail.com Thu Jun 9 20:58:51 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Fri, 10 Jun 2011 00:58:51 -0300 Subject: [mapserver-users] Problem using mapserver with WCS In-Reply-To: <4DF02A4B.6000402@pobox.com> References: <4DF02A4B.6000402@pobox.com> Message-ID: Thanks Frank, i dropped the map= from the url but now it throws an error that i dont understand: msWCSGetCoverageMetadata(): WCS server error. Unable to determine the SRS for this layer, no projection defined and no metadata available. Do you have any idea whats the problem i'm having? the mapfile is the same one. Virginia On Wed, Jun 8, 2011 at 11:04 PM, Frank Warmerdam wrote: > On 11-06-08 07:54 PM, Virginia Maffei wrote: > >> Hi, I installed ms4w and i'm trying to configure wcs in my mapfile, but >> it's >> not working. The url that i'm using is: >> >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=localidades&mode=map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities >> < >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=localidades&mode=map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities >> > >> >> but i cant see the xml it just stil shows the tiff image. >> >> I attached the mapfile so it can help to check which is the problem. >> >> > Virginia, > > I suspect the mode=map is interfering - try dropping it out of the > request. It is not a proper WCS keyword. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Thu Jun 9 23:21:29 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Thu, 9 Jun 2011 23:21:29 -0700 (PDT) Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: Message-ID: <187136.44334.qm@web33208.mail.mud.yahoo.com> Hi Chris, I'm a Suse/Ubuntu user, in both cases totally because of the well supported GIS related packages for these distros. So I have completely avoided the issues are facing right now :-) Though I'd imagine it will not be long before 6.0 is available natively for Fedora, given 5.6 is supported. I'm not too familiar with the RH Linux family, but the OpenSuse Geo repository partially supports Centos & RH4/5, and I have found the maintainers there to be very helpful. If a RH or Centos build will be compatible with Fedora, it would be worth asking around there. Mapserver is not currently built for these distros, but someone may be prepared to do this for you. http://download.opensuse.org/repositories/Application:/Geo/ Personally, I'd suggest you switch to a distro that does what you want, & if that includes well maintained & supported, pre-built mapserver (& related) packages, Ubuntu & OpenSuse are well worth considering. HTH, ? Brent Wood --- On Fri, 6/10/11, Smith, Michael D ERDC-CRREL-NH wrote: From: Smith, Michael D ERDC-CRREL-NH Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) To: "Chris Green" , "'Stephen Woodbridge'" , mapserver-users at lists.osgeo.org Date: Friday, June 10, 2011, 3:31 AM Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11? 11:04 AM, "Chris Green" wrote: > Hi Steve > > Thanks for your comments. I have read the documentation and realise that > there will be quite a few changes to my mapfile(s). I'm not at all worried > about that, it's just a question of patiently working through the changes. > However I am very apprehensive of the upgrade itself. Before I installed the > FGS package I spent many, many hours trying to compile and install Mapserver > myself but eventually had to admit defeat and resort to FGS. > > Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe > just some encouragement!) > > > Chris > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: 09 June 2011 15:42 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > > On 6/9/2011 8:58 AM, Chris Green wrote: >> Hi All >> >> I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 >> Unix platform. I installed it via the FGS installer package which made >> the installation process relatively straightforward. >> >> Now I see that Mapserver 6.0 has been released and it includes some >> features that I really want to take advantage of, particularly the >> ability to cluster dense features. My problem is that apparently the FGS >> package has not been updated, so from the Mapserver website it looks >> like I have start from scratch with a scarily long list of libraries and >> compilations required to install Mapserver 6.0 from scratch. As >> something of a Unix novice I don't fancy this very much! >> >> I am wondering if there is a simple way to in effect replace my existing >> Mapserver 5.4 executable with Mapserver 6.0 - could I assume that >> Mapserver 6.0 only requires the same libraries as 5.4 and just compile >> the 6.0 executable? Any guidance on the direction to take here would be >> gratefully received. > > Hi Chris, > > Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a > mapfile point of view. Make sure you read the mapserver migration guide. > One of the big changes that we made in 6.0 was to clean up some of the > mapfile syntax and remove some deprecated tags. These should not be > major changes but it is likely that some (all?) of your mapfiles will > need to be tweaked to get them to work. > > So please plan accordingly. > > -Steve W > _______________________________________________ > 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 chris.green at ibstv.co.uk Fri Jun 10 00:34:55 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Fri, 10 Jun 2011 08:34:55 +0100 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: <187136.44334.qm@web33208.mail.mud.yahoo.com> References: <187136.44334.qm@web33208.mail.mud.yahoo.com> Message-ID: <11aa01cc2740$e4aac9d0$ae005d70$@green@ibstv.co.uk> Hi Brent Thank you for your very helpful comments, much appreciated. It is pretty clear to me that I have to start by changing my elderly Fedora to something better suited to supporting GIS applications including Mapserver 6.0. It is strange - I'm not at all afraid of PHP/Mapscript (although the documentation is not great) or of Javascript, but the whole Linux world is just so confusing that I get a form of paralysis by analysis soon after I start trying to compare the different options. Anyway I will certainly take a look at Ubuntu / OpenSuse. Chris From: pcreso at pcreso.com [mailto:pcreso at pcreso.com] Sent: 10 June 2011 07:21 To: chris.green at ibstv.co.uk Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Hi Chris, I'm a Suse/Ubuntu user, in both cases totally because of the well supported GIS related packages for these distros. So I have completely avoided the issues are facing right now :-) Though I'd imagine it will not be long before 6.0 is available natively for Fedora, given 5.6 is supported. I'm not too familiar with the RH Linux family, but the OpenSuse Geo repository partially supports Centos & RH4/5, and I have found the maintainers there to be very helpful. If a RH or Centos build will be compatible with Fedora, it would be worth asking around there. Mapserver is not currently built for these distros, but someone may be prepared to do this for you. http://download.opensuse.org/repositories/Application:/Geo/ Personally, I'd suggest you switch to a distro that does what you want, & if that includes well maintained & supported, pre-built mapserver (& related) packages, Ubuntu & OpenSuse are well worth considering. HTH, Brent Wood --- On Fri, 6/10/11, Smith, Michael D ERDC-CRREL-NH wrote: From: Smith, Michael D ERDC-CRREL-NH Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) To: "Chris Green" , "'Stephen Woodbridge'" , mapserver-users at lists.osgeo.org Date: Friday, June 10, 2011, 3:31 AM Chris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 11:04 AM, "Chris Green" wrote: > Hi Steve > > Thanks for your comments. I have read the documentation and realise that > there will be quite a few changes to my mapfile(s). I'm not at all worried > about that, it's just a question of patiently working through the changes. > However I am very apprehensive of the upgrade itself. Before I installed the > FGS package I spent many, many hours trying to compile and install Mapserver > myself but eventually had to admit defeat and resort to FGS. > > Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe > just some encouragement!) > > > Chris > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: 09 June 2011 15:42 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > > On 6/9/2011 8:58 AM, Chris Green wrote: >> Hi All >> >> I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 >> Unix platform. I installed it via the FGS installer package which made >> the installation process relatively straightforward. >> >> Now I see that Mapserver 6.0 has been released and it includes some >> features that I really want to take advantage of, particularly the >> ability to cluster dense features. My problem is that apparently the FGS >> package has not been updated, so from the Mapserver website it looks >> like I have start from scratch with a scarily long list of libraries and >> compilations required to install Mapserver 6.0 from scratch. As >> something of a Unix novice I don't fancy this very much! >> >> I am wondering if there is a simple way to in effect replace my existing >> Mapserver 5.4 executable with Mapserver 6.0 - could I assume that >> Mapserver 6.0 only requires the same libraries as 5.4 and just compile >> the 6.0 executable? Any guidance on the direction to take here would be >> gratefully received. > > Hi Chris, > > Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a > mapfile point of view. Make sure you read the mapserver migration guide. > One of the big changes that we made in 6.0 was to clean up some of the > mapfile syntax and remove some deprecated tags. These should not be > major changes but it is likely that some (all?) of your mapfiles will > need to be tweaked to get them to work. > > So please plan accordingly. > > -Steve W > _______________________________________________ > 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 paulcarlisle at comcast.net Fri Jun 10 01:26:44 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Fri, 10 Jun 2011 01:26:44 -0700 (PDT) Subject: [mapserver-users] MapServer Fails Message-ID: <1307694404358-6461326.post@n2.nabble.com> We have several NITF images that can be successfully translated to, say, PNG or GTiff format using a gdal_translate command similar to the following: gdal_translate -ot Byte -of GTiff -scale -b 3 -b 2 -b 1myNitf.ntf ~/myGTif.tif However, we are having trouble getting MapServer to serve these images. We get what looks like a single pixel, greatly enlarged to fill the entire returned image file, showing one or two colors from the input image. We have adjusted the BBox to encompass larger areas with no success. MapServer is configured at DEBUG level 5, both CPL_DEBUG and PROJ_DEBUG are enabled, but no error messages occur during processing; the same is true when running mapserv on the command line, feeding it the query string from the browser request - no errors, and an image consisting of a block of one or two solid colors is returned. Any thoughts on A) how to configure the mapfile, B) how to further investigate what is going on? It might be useful to be able to see the underlying GDAL calls being made, for instance, or the various parameters - in particular, the bounding box being passed - or C) any other guidance on how to proceed in debugging this problem? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-Fails-tp6461326p6461326.html Sent from the Mapserver - User mailing list archive at Nabble.com. From michael.smith at usace.army.mil Fri Jun 10 03:06:07 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Fri, 10 Jun 2011 06:06:07 -0400 Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: <11aa01cc2740$e4aac9d0$ae005d70$@green@ibstv.co.uk> Message-ID: For Fedora, I think you want the EPEL and ELGIS repos. See http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/10/11 3:34 AM, "Chris Green" wrote: > Hi Brent > > Thank you for your very helpful comments, much appreciated. It is pretty clear > to me that I have to start by changing my elderly Fedora to something better > suited to supporting GIS applications including Mapserver 6.0. It is strange ? > I?m not at all afraid of PHP/Mapscript (although the documentation is not > great) or of Javascript, but the whole Linux world is just so confusing that I > get a form of paralysis by analysis soon after I start trying to compare the > different options. > > Anyway I will certainly take a look at Ubuntu / OpenSuse. > > > Chris > > > From: pcreso at pcreso.com [mailto:pcreso at pcreso.com] > Sent: 10 June 2011 07:21 > To: chris.green at ibstv.co.uk > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > > Hi Chris, > > I'm a Suse/Ubuntu user, in both cases totally because of the well supported > GIS related packages for these distros. So I have completely avoided the > issues are facing right now :-) Though I'd imagine it will not be long before > 6.0 is available natively for Fedora, given 5.6 is supported. > > I'm not too familiar with the RH Linux family, but the OpenSuse Geo repository > partially supports Centos & RH4/5, and I have found the maintainers there to > be very helpful. If a RH or Centos build will be compatible with Fedora, it > would be worth asking around there. Mapserver is not currently built for these > distros, but someone may be prepared to do this for you. > > http://download.opensuse.org/repositories/Application:/Geo/ > > Personally, I'd suggest you switch to a distro that does what you want, & if > that includes well maintained & supported, pre-built mapserver (& related) > packages, Ubuntu & OpenSuse are well worth considering. > > HTH, > > Brent Wood > > > > --- On Fri, 6/10/11, Smith, Michael D ERDC-CRREL-NH > wrote: > From: Smith, Michael D ERDC-CRREL-NH > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > To: "Chris Green" , "'Stephen Woodbridge'" > , mapserver-users at lists.osgeo.org > Date: Friday, June 10, 2011, 3:31 AMChris, > > What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. > > See http://mapserver.org/download.html#linux > > > On 6/9/11 11:04 AM, "Chris Green" > wrote: > >> > Hi Steve >> > >> > Thanks for your comments. I have read the documentation and realise that >> > there will be quite a few changes to my mapfile(s). I'm not at all worried >> > about that, it's just a question of patiently working through the changes. >> > However I am very apprehensive of the upgrade itself. Before I installed >> the >> > FGS package I spent many, many hours trying to compile and install >> Mapserver >> > myself but eventually had to admit defeat and resort to FGS. >> > >> > Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe >> > just some encouragement!) >> > >> > >> > Chris >> > >> > -----Original Message----- >> > From: mapserver-users-bounces at lists.osgeo.org >> >> > [mailto:mapserver-users-bounces at lists.osgeo.org >> ] On Behalf Of >> Stephen >> > Woodbridge >> > Sent: 09 June 2011 15:42 >> > To: mapserver-users at lists.osgeo.org >> >> > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) >> > >> > On 6/9/2011 8:58 AM, Chris Green wrote: >>> >> Hi All >>> >> >>> >> I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 >>> >> Unix platform. I installed it via the FGS installer package which made >>> >> the installation process relatively straightforward. >>> >> >>> >> Now I see that Mapserver 6.0 has been released and it includes some >>> >> features that I really want to take advantage of, particularly the >>> >> ability to cluster dense features. My problem is that apparently the FGS >>> >> package has not been updated, so from the Mapserver website it looks >>> >> like I have start from scratch with a scarily long list of libraries and >>> >> compilations required to install Mapserver 6.0 from scratch. As >>> >> something of a Unix novice I don't fancy this very much! >>> >> >>> >> I am wondering if there is a simple way to in effect replace my existing >>> >> Mapserver 5.4 executable with Mapserver 6.0 - could I assume that >>> >> Mapserver 6.0 only requires the same libraries as 5.4 and just compile >>> >> the 6.0 executable? Any guidance on the direction to take here would be >>> >> gratefully received. >> > >> > Hi Chris, >> > >> > Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a >> > mapfile point of view. Make sure you read the mapserver migration guide. >> > One of the big changes that we made in 6.0 was to clean up some of the >> > mapfile syntax and remove some deprecated tags. These should not be >> > major changes but it is likely that some (all?) of your mapfiles will >> > need to be tweaked to get them to work. >> > >> > So please plan accordingly. >> > >> > -Steve W >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Jun 10 06:02:24 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 10 Jun 2011 09:02:24 -0400 Subject: [mapserver-users] Problem using mapserver with WCS In-Reply-To: References: <4DF02A4B.6000402@pobox.com> Message-ID: <4DF215E0.9080605@pobox.com> On 11-06-09 11:58 PM, Virginia Maffei wrote: > Thanks Frank, i dropped the map= from the url but now it throws an error that i > dont understand: > msWCSGetCoverageMetadata(): WCS server error. Unable to determine the SRS for > this layer, no projection defined and no metadata available. > > Do you have any idea whats the problem i'm having? the mapfile is the same one. Virginia, I notice you do not have any PROJECTION blocks or SRS service metadata at the layer or map level. I would suggest you re-review the WCS documentation. You might want to use the following as an example of a fairly minimalist WCS service mapfile (ignore all the request comments at the start - these are part of the autotest). http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/wcs_simple.map Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at pobox.com Fri Jun 10 06:16:04 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 10 Jun 2011 09:16:04 -0400 Subject: [mapserver-users] MapServer Fails In-Reply-To: <1307694404358-6461326.post@n2.nabble.com> References: <1307694404358-6461326.post@n2.nabble.com> Message-ID: <4DF21914.4090805@pobox.com> On 11-06-10 04:26 AM, SixDegrees wrote: > We have several NITF images that can be successfully translated to, say, PNG > or GTiff format using a gdal_translate command similar to the following: > > gdal_translate -ot Byte -of GTiff -scale -b 3 -b 2 -b 1myNitf.ntf > ~/myGTif.tif > > However, we are having trouble getting MapServer to serve these images. We > get what looks like a single pixel, greatly enlarged to fill the entire > returned image file, showing one or two colors from the input image. We have > adjusted the BBox to encompass larger areas with no success. MapServer is > configured at DEBUG level 5, both CPL_DEBUG and PROJ_DEBUG are enabled, but > no error messages occur during processing; the same is true when running > mapserv on the command line, feeding it the query string from the browser > request - no errors, and an image consisting of a block of one or two solid > colors is returned. > > Any thoughts on A) how to configure the mapfile, B) how to further > investigate what is going on? It might be useful to be able to see the > underlying GDAL calls being made, for instance, or the various parameters - > in particular, the bounding box being passed - or C) any other guidance on > how to proceed in debugging this problem? Paul, If you capture all the MapServer debug output you should be alle to see the window accessed and the scaling used. eg. [Fri Jun 10 09:14:27 2011].271521 msDrawRasterLayerLow(grid1): entering. GDAL: GDALOpen(/home/warmerda/mapserver/msautotest/gdal/./data/float.tif, this=0x1146570) succeeds as GTiff. [Fri Jun 10 09:14:27 2011].287958 msDrawRasterLayerGDAL(): Entering transform. [Fri Jun 10 09:14:27 2011].288045 msDrawRasterLayerGDAL(): src=0,0,40,30, dst=0,0,400,300 [Fri Jun 10 09:14:27 2011].288071 msDrawRasterLayerGDAL(): source raster PL (0.000,-0.000) for dst PL (0,0). [Fri Jun 10 09:14:27 2011].288114 msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,0,0,0 [Fri Jun 10 09:14:27 2011].309383 msDrawRasterGDAL_16BitClassification(grid1): scaling to 4 buckets from range=-10.5,10.5. You didn't provide any information on how you configured the layer in mapserver. I am wondering if you used PROCESSING "SCALE=AUTO" or not? That would be the rough analog of the -scale option used for gdal_translate. 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 Jun 10 06:35:28 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 10 Jun 2011 13:35:28 +0000 Subject: [mapserver-users] Mapserver 6.0, SLD and halo In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63D063@suutari.haapa.mmm.fi> Hi, This part of SLD used to work with 5.x 3 #FFFFFF 1 It does not work with 6.0. Mapserver accepts the SLD if we take off this part: 3 However, the document http://mapserver.org/ogc/sld.html says that also Radius is supported "Halo Yes Supported (fill converted to outlinecolor, and radius is converted to outlinewidth. Note that outlinewidth is only available for AGG in >=5.2)" -Jukka Rahkonen- From yassefa at dmsolutions.ca Fri Jun 10 07:14:05 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 10 Jun 2011 10:14:05 -0400 Subject: [mapserver-users] Mapserver 6.0, SLD and halo In-Reply-To: <84446DEF76453C439E9E97E438E13A63D063@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63D063@suutari.haapa.mmm.fi> Message-ID: <4DF226AD.8070901@dmsolutions.ca> Thanks for putting this in trac (#3915 and #3916). I will give it a look early next week. beat regards, On 10/06/2011 9:35 AM, Rahkonen Jukka wrote: > Hi, > > This part of SLD used to work with 5.x > > > > 3 > > > #FFFFFF > 1 > > > > It does not work with 6.0. Mapserver accepts the SLD if we take off this part: > > 3 > > > However, the document http://mapserver.org/ogc/sld.html says that also Radius is supported > > "Halo Yes Supported (fill converted to outlinecolor, and radius is converted to outlinewidth. > Note that outlinewidth is only available for AGG in>=5.2)" > > -Jukka Rahkonen-_______________________________________________ > 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 benftee at gmail.com Fri Jun 10 08:05:40 2011 From: benftee at gmail.com (Ben Thompson) Date: Fri, 10 Jun 2011 11:05:40 -0400 Subject: [mapserver-users] query results lost Message-ID: Hello...we upgraded to the latest ms4w version 3.0.1 (MapServer and MapScript to 5.6.6 ) and some things went bad. after doing a $oLayer->queryByPoint which yields results (layer->numresults>0), a call to $map_object->saveQuery yields a file showing *no results*: MapServer Query - Generated by msSaveQuery() 1 1 33 -1 10718763.8336106 3518854.14068547 -1 0 -1 -1 -1 -1 -1 -1 1 NULL NULL -1 0 so I rewrote our code to avoid using that...a php is loaded into an iframe (frame.src=blablabla.php?xxx), in which the query results are accesed via $map_object->$oMapSession->oMap...all layers have ->numresults=0 anyone have a clue as to what went bad? the code worked fine in an older mapserver/mapscript... thanks, Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at gmx.net Fri Jun 10 08:43:27 2011 From: armin.burger at gmx.net (Armin Burger) Date: Fri, 10 Jun 2011 17:43:27 +0200 Subject: [mapserver-users] Google tile schema to coordinates conversion Message-ID: <4DF23B9F.603@gmx.net> Hi all I would like to set up a scripting solution based on MapScript that replies correctly to requests using the Google tile schema x+y+z. Does anybody know a formula how to transform the XYZ request values to bounding box coordinates in the Google Spherical Mercator projection? I know that Mapserver CGI offers the tile mode for this. It works very well, but I would need a Mapscript solution for more flexibility of the request handling. Any hint appreciated Armin From paulcarlisle at comcast.net Fri Jun 10 10:00:45 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Fri, 10 Jun 2011 10:00:45 -0700 (PDT) Subject: [mapserver-users] Re: MapServer Fails In-Reply-To: <4DF21914.4090805@pobox.com> References: <1307694404358-6461326.post@n2.nabble.com> <4DF21914.4090805@pobox.com> Message-ID: <1307725245619-6463085.post@n2.nabble.com> I'm using PROCESSING "SCALE=AUTO". I don't have my mapfile available at this location, but I can access it on Monday. I'm not seeing as much output as you've indicated. Where is this being output? On the command line when mapserv is called with a query string? Or in the log file? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-Fails-tp6461326p6463085.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Fri Jun 10 10:31:41 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 10 Jun 2011 13:31:41 -0400 Subject: [mapserver-users] Re: MapServer Fails In-Reply-To: <1307725245619-6463085.post@n2.nabble.com> References: <1307694404358-6461326.post@n2.nabble.com> <4DF21914.4090805@pobox.com> <1307725245619-6463085.post@n2.nabble.com> Message-ID: <4DF254FD.4040303@pobox.com> On 11-06-10 01:00 PM, SixDegrees wrote: > I'm using PROCESSING "SCALE=AUTO". I don't have my mapfile available at this > location, but I can access it on Monday. > > I'm not seeing as much output as you've indicated. Where is this being > output? On the command line when mapserv is called with a query string? Or > in the log file? Paul, I generated that adding the -all_debug 5 commandline switch to shp2img. But with mapserver it would be accomplished by setting the DEBUG level (on at least the LAYER) to 5. The debug output can go several places. You can set the the following in your MAP object to ensure that debug output goes to stderr. CONFIG "MS_ERRORFILE" "stderr" More details on debug output at: http://mapserver.org/development/rfc/ms-rfc-28.html Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From paulcarlisle at comcast.net Fri Jun 10 10:37:34 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Fri, 10 Jun 2011 10:37:34 -0700 (PDT) Subject: [mapserver-users] Re: MapServer Fails In-Reply-To: <4DF254FD.4040303@pobox.com> References: <1307694404358-6461326.post@n2.nabble.com> <4DF21914.4090805@pobox.com> <1307725245619-6463085.post@n2.nabble.com> <4DF254FD.4040303@pobox.com> Message-ID: <1307727454215-6463216.post@n2.nabble.com> OK, thanks. I've got everything set much the way you suggest already, but perhaps I missed some of the output. I'll check again on Monday. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-Fails-tp6461326p6463216.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Fri Jun 10 10:47:03 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 10 Jun 2011 14:47:03 -0300 Subject: [mapserver-users] Re: MapServer Fails In-Reply-To: <4DF254FD.4040303@pobox.com> References: <1307694404358-6461326.post@n2.nabble.com> <4DF21914.4090805@pobox.com> <1307725245619-6463085.post@n2.nabble.com> <4DF254FD.4040303@pobox.com> Message-ID: <4DF25897.7050708@gatewaygeomatics.com> > > More details on debug output at: > > http://mapserver.org/development/rfc/ms-rfc-28.html Actually the official doc for debugging MapServer lives at: http://www.mapserver.org/optimization/debugging.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From armin.burger at gmx.net Fri Jun 10 13:35:37 2011 From: armin.burger at gmx.net (Armin Burger) Date: Fri, 10 Jun 2011 22:35:37 +0200 Subject: [mapserver-users] Google tile schema to coordinates conversion In-Reply-To: <4DF23B9F.603@gmx.net> References: <4DF23B9F.603@gmx.net> Message-ID: <4DF28019.7050107@gmx.net> I discovered now the conversion method in the Mapserver source code in maptile.c => msTileSetExtent(). armin On 10/06/2011 17:43, Armin Burger wrote: > Hi all > > I would like to set up a scripting solution based on MapScript that > replies correctly to requests using the Google tile schema x+y+z. Does > anybody know a formula how to transform the XYZ request values to > bounding box coordinates in the Google Spherical Mercator projection? > > I know that Mapserver CGI offers the tile mode for this. It works very > well, but I would need a Mapscript solution for more flexibility of the > request handling. > > Any hint appreciated > > Armin > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pcreso at pcreso.com Fri Jun 10 14:30:10 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 10 Jun 2011 14:30:10 -0700 (PDT) Subject: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) In-Reply-To: Message-ID: <571216.78721.qm@web33204.mail.mud.yahoo.com> Just my opinion. But the koolest thing is we do have choices!! ELGIS is nice, but I found it more limited in terms of supported packages (that I use anyway) & speed of update to new versionscompared to both OpenSuse & Ubuntu. My computer use pretty much revolves around Open Source GIS stuff (& has done for over 10 years now). I've been a somewhat promiscuous Linux user, jumping to whichever made my life easiest for a click & go Linux GIS workstation. For a few years, OpenSuse ruled my desktop, but for the last 18 months or so I have felt UbuntuGIS has the edge. There are still things I prefer about OpenSuse, some nice things about Fedora too, but for something that just installs and runs on desktops, notebooks & netbooks, & has a full, well maintained GIS repository, with everything I need (almost anyway - no hi res & full res GHSSH for GMT :-), for now I'm running Ubuntu.? I'm not saying it's best for everyone, just passing on my experience. See: Ubuntu stable: https://launchpad.net/~ubuntugis/+archive/ppa Ubuntu unstable: https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable ?(also note there are many related packages in other repositories) OpenSUSE:GEO: http://download.opensuse.org/repositories/Application:/Geo/openSUSE_11.4/x86_64/ Cheers, ? Brent Wood --- On Fri, 6/10/11, Smith, Michael ERDC-CRREL-NH wrote: From: Smith, Michael ERDC-CRREL-NH Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) To: "Chris Green" , pcreso at pcreso.com Cc: mapserver-users at lists.osgeo.org Date: Friday, June 10, 2011, 10:06 PM Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 ?(gulp!) For Fedora, I think you want the EPEL and ELGIS repos. See http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 6/10/11 3:34 AM, "Chris Green" wrote: Hi Brent ? Thank you for your very helpful comments, much appreciated. It is pretty clear to me that I have to start by changing my elderly Fedora to something better suited to supporting GIS applications including Mapserver 6.0. It is strange ? I?m not at all afraid of PHP/Mapscript (although the documentation is not great) or of Javascript, but the whole Linux world is just so confusing that I get a form of paralysis by analysis soon after I start trying to compare the different options. ? Anyway I will certainly take a look at Ubuntu / OpenSuse. ? ? Chris ? From: pcreso at pcreso.com [mailto:pcreso at pcreso.com] Sent: 10 June 2011 07:21 To: chris.green at ibstv.co.uk Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) Hi Chris, I'm a Suse/Ubuntu user, in both cases totally because of the well supported GIS related packages for these distros. So I have completely avoided the issues are facing right now :-) Though I'd imagine it will not be long before 6.0 is available natively for Fedora, given 5.6 is supported. I'm not too familiar with the RH Linux family, but the OpenSuse Geo repository partially supports Centos & RH4/5, and I have found the maintainers there to be very helpful. If a RH or Centos build will be compatible with Fedora, it would be worth asking around there. Mapserver is not currently built for these distros, but someone may be prepared to do this for you. http://download.opensuse.org/repositories/Application:/Geo/ Personally, I'd suggest you switch to a distro that does what you want, & if that includes well maintained & supported, pre-built mapserver (& related) packages, Ubuntu & OpenSuse are well worth considering. HTH, ??Brent Wood --- On Fri, 6/10/11, Smith, Michael D ERDC-CRREL-NH wrote: From: Smith, Michael D ERDC-CRREL-NH Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) To: "Chris Green" , "'Stephen Woodbridge'" , mapserver-users at lists.osgeo.org Date: Friday, June 10, 2011, 3:31 AMChris, What Linux OS are you on? There are packages for Ubuntu, Debian, RHEL, etc. See http://mapserver.org/download.html#linux On 6/9/11 ?11:04 AM, "Chris Green" > wrote: > Hi Steve > > Thanks for your comments. I have read the documentation and realise that > there will be quite a few changes to my mapfile(s). I'm not at all worried > about that, it's just a question of patiently working through the changes. > However I am very apprehensive of the upgrade itself. Before I installed the > FGS package I spent many, many hours trying to compile and install Mapserver > myself but eventually had to admit defeat and resort to FGS. > > Now there is no FGS to fall back on, I'm hoping for some guidance (or maybe > just some encouragement!) > > > Chris > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org ] On Behalf Of Stephen > Woodbridge > Sent: 09 June 2011 15:42 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] upgrade Mapserver 5.4 to 6.0 (gulp!) > > On 6/9/2011 8:58 AM, Chris Green wrote: >> Hi All >> >> I have been running Mapserver 5.4 for about 18 months on a Fedora core 7 >> Unix platform. I installed it via the FGS installer package which made >> the installation process relatively straightforward. >> >> Now I see that Mapserver 6.0 has been released and it includes some >> features that I really want to take advantage of, particularly the >> ability to cluster dense features. My problem is that apparently the FGS >> package has not been updated, so from the Mapserver website it looks >> like I have start from scratch with a scarily long list of libraries and >> compilations required to install Mapserver 6.0 from scratch. As >> something of a Unix novice I don't fancy this very much! >> >> I am wondering if there is a simple way to in effect replace my existing >> Mapserver 5.4 executable with Mapserver 6.0 - could I assume that >> Mapserver 6.0 only requires the same libraries as 5.4 and just compile >> the 6.0 executable? Any guidance on the direction to take here would be >> gratefully received. > > Hi Chris, > > Be aware that 5.4 to 6.0 is probably NOT a transparent upgrade from a > mapfile point of view. Make sure you read the mapserver migration guide. > One of the big changes that we made in 6.0 was to clean up some of the > mapfile syntax and remove some deprecated tags. These should not be > major changes but it is likely that some (all?) of your mapfiles will > need to be tweaked to get them to work. > > So please plan accordingly. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Fri Jun 10 14:36:19 2011 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 10 Jun 2011 16:36:19 -0500 Subject: [mapserver-users] Google tile schema to coordinates conversion In-Reply-To: <4DF28019.7050107@gmx.net> References: <4DF23B9F.603@gmx.net> <4DF28019.7050107@gmx.net> Message-ID: there is also code here http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ On Fri, Jun 10, 2011 at 3:35 PM, Armin Burger wrote: > I discovered now the conversion method in the Mapserver source code in > maptile.c => msTileSetExtent(). > > armin > > > On 10/06/2011 17:43, Armin Burger wrote: >> >> Hi all >> >> I would like to set up a scripting solution based on MapScript that >> replies correctly to requests using the Google tile schema x+y+z. Does >> anybody know a formula how to transform the XYZ request values to >> bounding box coordinates in the Google Spherical Mercator projection? >> >> I know that Mapserver CGI offers the tile mode for this. It works very >> well, but I would need a Mapscript solution for more flexibility of the >> request handling. >> >> Any hint appreciated >> >> Armin >> _______________________________________________ >> 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 thakkar at nexgenwireless.com Fri Jun 10 18:24:08 2011 From: thakkar at nexgenwireless.com (jt2000) Date: Fri, 10 Jun 2011 18:24:08 -0700 (PDT) Subject: [mapserver-users] Unable to render a raster with 4 bands Message-ID: <1307755448185-6464301.post@n2.nabble.com> I have a GRD raster that I'm trying to show on the map using mapserver. Currently I'm getting all transparent output. I've converted it to TIF using gdal_translate and it converted fine. I also used shp2img to convert to png without any issues. Here is gdalinfo on the TIF file. Driver: GTiff/GeoTIFF Files: Test.tif Size is 1293, 1276 Coordinate System is: PROJCS["NAD83 / UTM zone 18N", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010002, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-75], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","26918"]] Origin = (306885.000000000000000,4328685.000000000000000) Pixel Size = (30.000000000000000,-30.000000000000000) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 306885.000, 4328685.000) ( 77d13'57.95"W, 39d 5' 9.33"N) Lower Left ( 306885.000, 4290405.000) ( 77d13'19.14"W, 38d44'28.42"N) Upper Right ( 345675.000, 4328685.000) ( 76d47' 4.23"W, 39d 5'37.14"N) Lower Right ( 345675.000, 4290405.000) ( 76d46'33.21"W, 38d44'55.89"N) Center ( 326280.000, 4309545.000) ( 77d 0'13.63"W, 38d55' 3.48"N) Band 1 Block=1293x1 Type=Byte, ColorInterp=Red NoData Value=0 Band 2 Block=1293x1 Type=Byte, ColorInterp=Green NoData Value=0 Band 3 Block=1293x1 Type=Byte, ColorInterp=Blue NoData Value=0 Band 4 Block=1293x1 Type=Byte, ColorInterp=Alpha NoData Value=0 Offset: -200, Scale:0.00305185094759972 I'm seeing this in the mapserver log. [Fri Jun 10 19:57:28 2011].556592 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. [Fri Jun 10 19:57:28 2011].569044 msPostGISLayerIsOpen called. [Fri Jun 10 19:57:28 2011].891159 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. [Fri Jun 10 19:57:28 2011].891559 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. [Fri Jun 10 19:57:28 2011].891901 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. [Fri Jun 10 19:57:28 2011].892286 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. [Fri Jun 10 19:57:28 2011].903631 msPostGISLayerIsOpen called. [Fri Jun 10 19:57:29 2011].131158 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. [Fri Jun 10 19:57:29 2011].131362 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. [Fri Jun 10 19:57:29 2011].131523 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. [Fri Jun 10 19:57:29 2011].131717 LoadGDALImage(rasterlayer): NODATA value 0 in GDAL file or PROCESSING directive ignored. Not yet supported for unclassified scaled data. What do I need to change in the map file to make this work? I have tried PROCESSING "SCALE=0,0.00305185094759972" to see if that would help. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Unable-to-render-a-raster-with-4-bands-tp6464301p6464301.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thakkar at nexgenwireless.com Fri Jun 10 18:28:06 2011 From: thakkar at nexgenwireless.com (jt2000) Date: Fri, 10 Jun 2011 18:28:06 -0700 (PDT) Subject: [mapserver-users] Re: Unable to render a raster with 4 bands In-Reply-To: <1307755448185-6464301.post@n2.nabble.com> References: <1307755448185-6464301.post@n2.nabble.com> Message-ID: <1307755686796-6464302.post@n2.nabble.com> BTW, I'm using mapserver 5.6.6 and GDAL 1.8.0 MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Unable-to-render-a-raster-with-4-bands-tp6464301p6464302.html Sent from the Mapserver - User mailing list archive at Nabble.com. From judemwenda at gmail.com Sat Jun 11 00:41:14 2011 From: judemwenda at gmail.com (jude mwenda) Date: Sat, 11 Jun 2011 10:41:14 +0300 Subject: [mapserver-users] Php Mapscript help Message-ID: Hi, I have been having this problem and simple google search seems no to shed any light on this. i have an index.php file that i want to load as a WMS service. Attached is the index file as specified on the doc. On my php info, it states mapscript is installed. http://dpaste.com/553024/ On loading this on my browser as index.php?service=WMS&version=1.1.1&Request=GetCapabilities A file is downloaded but on opening it on a text editor is its empty. I want to load this layer as a WMS layer on openlayers, the following does not return any results. any pointers? var indexlayer = new OpenLayers.Layer.WMS("test"," http://localhost/map/phpmapscript-demo/index.phtml?",{format:'image/png'}); -- Regards, Jude Mwenda Skype id: jmwenda Twitter: www.twitter.com/judemwenda Web: www.africangeogeek.com "Was ist mein Leben, wenn ich nicht mehr n?tzlich f?r andere." Johann Wolfgang von Goethe -------------- next part -------------- An HTML attachment was scrubbed... URL: From jachym.cepicky at gmail.com Sat Jun 11 04:50:35 2011 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Sat, 11 Jun 2011 13:50:35 +0200 Subject: [mapserver-users] wfs 1.1.0 via mapserver and ogr Message-ID: Hi, Hi, I try to load some data to MapServer (and display them as WMS) from WFS 1.1.0 server (also MapServer-based). >From various reasons, I defined the WFS layer as OGR layer type, with connection set to WFS definition file: LAYER CONNECTION "wfs.wfs" CONNECTIONTYPE OGR DATA "line" #EXTENT 12.735342 48.152419 17.141855 51.38089 METADATA "ows_abstract" "My abstract" "wfs_typename" "line" "wfs_version" "1.1.0" "wms_title" "Line" END # METADATA NAME "line" PROJECTION "+init=epsg:4326" END # PROJECTION STATUS ON TEMPLATE "foo" TILEITEM "location" TYPE LINE UNITS METERS CLASS STYLE ANGLE 0 COLOR 238 153 0 OFFSET 0 0 OUTLINECOLOR 134 81 0 SIZE 5 WIDTH 5 END # STYLE END # CLASS END # LAYER (wfs.wfs should be attached to this e-mail). When I try to display the data (using shp2img or standard WMS request), nothing is displayed, because of MapServer->OGR asks the WFS server with following request: http://localhost/cgi-bin/ows?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=line&FILTER=msGeometry48.7275012197312094,12.9295317871890720 51.1769623652315175,18.1965700336475784 This is WRONG because of the axes are inverted, the filter *should* look like 12.9295317871890720,48.7275012197312094 18.1965700336475784,51.1769623652315175 Then it works. My question is, where can/should I influence this behaviour? I tried several options in PROJECTION section of the MapFile (+axis=neu, ...) but nothing made the OGR driver to change the axes order. So it seems, that MapServer is creating the WFS 1.0.0 style filters with Easting-Northing also when the connection is defined as WFS 1.1.0 and gml Box is used in the filter, but Box does not exist in GML3 and Envelope should be used instead. (according to http://lists.osgeo.org/pipermail/gdal-dev/2011-June/029029.html) With WFS 1.0.0 it works perfectly (axes are in EAST-NORTH order). What to do, so that mapserver reades WFS 1.1.0 via OGR properly? Thanks Jachym -- Jachym Cepicky e-mail: jachym.cepicky gmail com URL: http://les-ejk.cz GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp -------------- next part -------------- A non-text attachment was scrubbed... Name: wfs.wfs Type: application/octet-stream Size: 9062 bytes Desc: not available URL: From niccolo at rigacci.org Sat Jun 11 05:36:24 2011 From: niccolo at rigacci.org (Niccolo Rigacci) Date: Sat, 11 Jun 2011 14:36:24 +0200 Subject: [mapserver-users] Google tile schema to coordinates conversion In-Reply-To: <4DF23B9F.603@gmx.net> References: <4DF23B9F.603@gmx.net> Message-ID: <20110611123624.GA10753@rigacci.org> On Fri, Jun 10, 2011 at 05:43:27PM +0200, Armin Burger wrote: > > I would like to set up a scripting solution based on MapScript that > replies correctly to requests using the Google tile schema x+y+z. > Does anybody know a formula how to transform the XYZ request values > to bounding box coordinates in the Google Spherical Mercator > projection? Just for the curious: the Bing map uses Quadkeys into the URL instead of x+y+z, here you can find the math beyond that: http://msdn.microsoft.com/en-us/library/bb259689.aspx -- Niccolo Rigacci Firenze - Italy Tel. ufficio: 055-0118525 From woodbri at swoodbridge.com Sat Jun 11 07:10:32 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 11 Jun 2011 10:10:32 -0400 Subject: [mapserver-users] Google tile schema to coordinates conversion In-Reply-To: <20110611123624.GA10753@rigacci.org> References: <4DF23B9F.603@gmx.net> <20110611123624.GA10753@rigacci.org> Message-ID: <4DF37758.6060705@swoodbridge.com> On 6/11/2011 8:36 AM, Niccolo Rigacci wrote: > On Fri, Jun 10, 2011 at 05:43:27PM +0200, Armin Burger wrote: >> >> I would like to set up a scripting solution based on MapScript that >> replies correctly to requests using the Google tile schema x+y+z. >> Does anybody know a formula how to transform the XYZ request values >> to bounding box coordinates in the Google Spherical Mercator >> projection? > > Just for the curious: the Bing map uses Quadkeys into the URL > instead of x+y+z, here you can find the math beyond that: > > http://msdn.microsoft.com/en-us/library/bb259689.aspx > > You might also want to look at mod_geocache as if supports all common tiling schemes off of a single tilecache. It also has a demo mode that will generate a sample OpenLayers page(s) to demo setup and access to the cache using each tiling scheme. -Steve W From vmaffei at gmail.com Sat Jun 11 11:56:57 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Sat, 11 Jun 2011 15:56:57 -0300 Subject: [mapserver-users] Problem using mapserver with WCS In-Reply-To: <4DF215E0.9080605@pobox.com> References: <4DF02A4B.6000402@pobox.com> <4DF215E0.9080605@pobox.com> Message-ID: Thank you Frank! I looked at your mapfile and i noticed there were some configurations that were missing. Now its working! regards, Virginia On Fri, Jun 10, 2011 at 10:02 AM, Frank Warmerdam wrote: > On 11-06-09 11:58 PM, Virginia Maffei wrote: > >> Thanks Frank, i dropped the map= from the url but now it throws an error >> that i >> dont understand: >> msWCSGetCoverageMetadata(): WCS server error. Unable to determine the SRS >> for >> this layer, no projection defined and no metadata available. >> >> Do you have any idea whats the problem i'm having? the mapfile is the same >> one. >> > > Virginia, > > I notice you do not have any PROJECTION blocks or SRS service metadata at > the layer or map level. I would suggest you re-review the WCS > documentation. > > You might want to use the following as an example of a fairly > minimalist WCS service mapfile (ignore all the request comments at > the start - these are part of the autotest). > > http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/wcs_simple.map > > > 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 vmaffei at gmail.com Sat Jun 11 14:32:21 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Sat, 11 Jun 2011 18:32:21 -0300 Subject: [mapserver-users] GetCoverage pops up to download mapserv.exe Message-ID: Hi, i'm trying to do a getcoverage with WCS and it just pops up asking if i want to download mapserv.exe. The url i'm using is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=400000,700000,800000,600000&WIDTH=491&HEIGHT=543&FORMAT=GTiff does anyone knows whats happening and how to resolve it? I checked the FAQ but i didn't understand thanks! Virginia -------------- next part -------------- An HTML attachment was scrubbed... URL: From vmaffei at gmail.com Sat Jun 11 14:46:35 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Sat, 11 Jun 2011 18:46:35 -0300 Subject: [mapserver-users] Requested BBOX outside requested coverage Message-ID: Hi, i want to do a getcoverage with wcs but the log throws: [Sat Jun 11 18:27:50 2011].26000 msWCSGetCoverage(): WCS server error. Requested BBOX (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) is outside requested coverage BBOX (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) [Sat Jun 11 18:27:50 2011].26000 freeLayer(): freeing layer at 021CB940. the url is: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=400000,700000,800000,600000&WIDTH=491&HEIGHT=543&FORMAT=GTiff Could someone explain me whats wrong and how does bbox works? Sorry, but i'm very new at this... thank you! Virginia -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbp at geomtech.com Sat Jun 11 15:03:30 2011 From: mbp at geomtech.com (Mark Phillips) Date: Sat, 11 Jun 2011 18:03:30 -0400 Subject: [mapserver-users] GetCoverage pops up to download mapserv.exe In-Reply-To: References: Message-ID: Assuming your cgi-bin directory is properly configured to run mapserv.exe as a cgi executable, rather than serving it as a static file, this is probably the result of mapserver encountering a problem and delivering an error message to the browser, probably in the form of an xml response, and what is happening is that the browser is confused about the mime type of the response. Try saving the file and viewing it with an editor; you'll probably find an error message in it. On Sat, Jun 11, 2011 at 5:32 PM, Virginia Maffei wrote: > Hi, i'm trying to do a getcoverage with WCS and it just pops up asking if i > want to download mapserv.exe. > > The url i'm using is: > > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=400000,700000,800000,600000&WIDTH=491&HEIGHT=543&FORMAT=GTiff > > does anyone knows whats happening and how to resolve it? I checked the FAQ > but i didn't understand > > thanks! > > Virginia > > > _______________________________________________ > 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 vmaffei at gmail.com Sat Jun 11 15:41:43 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Sat, 11 Jun 2011 19:41:43 -0300 Subject: [mapserver-users] GetCoverage pops up to download mapserv.exe In-Reply-To: References: Message-ID: Thanks Mark! the message its showing is: msWCSGetCoverage(): WCS server error. Requested BBOX (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) is outside requested coverage BBOX (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) I posted it in another post but i thought this issue wasn't related with the other one. Do you have any idea about how bbox works? regards, Virginia On Sat, Jun 11, 2011 at 7:03 PM, Mark Phillips wrote: > Assuming your cgi-bin directory is properly configured to run mapserv.exe > as a cgi executable, rather than serving it as a static file, this is > probably the result of mapserver encountering a problem and delivering an > error message to the browser, probably in the form of an xml response, and > what is happening is that the browser is confused about the mime type of the > response. Try saving the file and viewing it with an editor; you'll > probably find an error message in it. > > On Sat, Jun 11, 2011 at 5:32 PM, Virginia Maffei wrote: > >> Hi, i'm trying to do a getcoverage with WCS and it just pops up asking if >> i want to download mapserv.exe. >> >> The url i'm using is: >> >> >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=400000,700000,800000,600000&WIDTH=491&HEIGHT=543&FORMAT=GTiff >> >> does anyone knows whats happening and how to resolve it? I checked the FAQ >> but i didn't understand >> >> thanks! >> >> Virginia >> >> >> _______________________________________________ >> 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 mbp at geomtech.com Sat Jun 11 15:57:12 2011 From: mbp at geomtech.com (Mark Phillips) Date: Sat, 11 Jun 2011 18:57:12 -0400 Subject: [mapserver-users] GetCoverage pops up to download mapserv.exe In-Reply-To: References: Message-ID: Virginia, I don't feel like I understand WCS very well myself --- I'm currently struggling with getting my own WCS service working the way I need, and am not having a lot of success. But for what it's worth, it looks to me like your issue has to do with projections. One of your BBOXes seems to be specified in lon/lat (the numbers (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033 look like lon/lat values), and the other one looks like values in a different projection. I suspect that the problem has something to do with the projections specified in your mapfile, and/or the projection being requested in the request. I'm afraid I can't offer much more specific advise than that right now, though, because I don't understand the details myself! --Mark On Sat, Jun 11, 2011 at 6:41 PM, Virginia Maffei wrote: > Thanks Mark! > the message its showing is: > > xmlns="http://www.opengis.net/ogc" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://www.opengis.net/ogc > http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd"> > locator="bbox">msWCSGetCoverage(): WCS server error. Requested BBOX > (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) is > outside requested coverage BBOX > (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) > > > > I posted it in another post but i thought this issue wasn't related with > the other one. > > Do you have any idea about how bbox works? > > regards, > Virginia > > > On Sat, Jun 11, 2011 at 7:03 PM, Mark Phillips wrote: > >> Assuming your cgi-bin directory is properly configured to run mapserv.exe >> as a cgi executable, rather than serving it as a static file, this is >> probably the result of mapserver encountering a problem and delivering an >> error message to the browser, probably in the form of an xml response, and >> what is happening is that the browser is confused about the mime type of the >> response. Try saving the file and viewing it with an editor; you'll >> probably find an error message in it. >> >> On Sat, Jun 11, 2011 at 5:32 PM, Virginia Maffei wrote: >> >>> Hi, i'm trying to do a getcoverage with WCS and it just pops up asking if >>> i want to download mapserv.exe. >>> >>> The url i'm using is: >>> >>> >>> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=400000,700000,800000,600000&WIDTH=491&HEIGHT=543&FORMAT=GTiff >>> >>> does anyone knows whats happening and how to resolve it? I checked the >>> FAQ but i didn't understand >>> >>> thanks! >>> >>> Virginia >>> >>> >>> _______________________________________________ >>> 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 vmaffei at gmail.com Sat Jun 11 16:19:15 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Sat, 11 Jun 2011 20:19:15 -0300 Subject: [mapserver-users] GetCoverage pops up to download mapserv.exe In-Reply-To: References: Message-ID: Thanks Mark! Every comment or help is welcome :) good luck with your WCS! regards, Virginia On Sat, Jun 11, 2011 at 7:57 PM, Mark Phillips wrote: > Virginia, > > I don't feel like I understand WCS very well myself --- I'm currently > struggling with getting my own WCS service working the way I need, and am > not having a lot of success. But for what it's worth, it looks to me like > your issue has to do with projections. One of your BBOXes seems to be > specified in lon/lat (the > numbers (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033 > look like lon/lat values), and the other one looks like values in a > different projection. I suspect that the problem has something to do with > the projections specified in your mapfile, and/or the projection being > requested in the request. I'm afraid I can't offer much more specific > advise than that right now, though, because I don't understand the details > myself! > > --Mark > > > On Sat, Jun 11, 2011 at 6:41 PM, Virginia Maffei wrote: > >> Thanks Mark! >> the message its showing is: >> >> > xmlns="http://www.opengis.net/ogc" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >> http://www.opengis.net/ogc >> http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd"> >> > locator="bbox">msWCSGetCoverage(): WCS server error. Requested BBOX >> (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) is >> outside requested coverage BBOX >> (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) >> >> >> >> I posted it in another post but i thought this issue wasn't related with >> the other one. >> >> Do you have any idea about how bbox works? >> >> regards, >> Virginia >> >> >> On Sat, Jun 11, 2011 at 7:03 PM, Mark Phillips wrote: >> >>> Assuming your cgi-bin directory is properly configured to run mapserv.exe >>> as a cgi executable, rather than serving it as a static file, this is >>> probably the result of mapserver encountering a problem and delivering an >>> error message to the browser, probably in the form of an xml response, and >>> what is happening is that the browser is confused about the mime type of the >>> response. Try saving the file and viewing it with an editor; you'll >>> probably find an error message in it. >>> >>> On Sat, Jun 11, 2011 at 5:32 PM, Virginia Maffei wrote: >>> >>>> Hi, i'm trying to do a getcoverage with WCS and it just pops up asking >>>> if i want to download mapserv.exe. >>>> >>>> The url i'm using is: >>>> >>>> >>>> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=400000,700000,800000,600000&WIDTH=491&HEIGHT=543&FORMAT=GTiff >>>> >>>> does anyone knows whats happening and how to resolve it? I checked the >>>> FAQ but i didn't understand >>>> >>>> thanks! >>>> >>>> Virginia >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Sun Jun 12 05:43:40 2011 From: wal3 at mindspring.com (Worth Lutz) Date: Sun, 12 Jun 2011 08:43:40 -0400 Subject: [mapserver-users] query results lost In-Reply-To: References: Message-ID: <4BF6216F1B4B4EBC8EA59B29089975F2@Worthlaptop> This is probably related to the different ways results are accessed in PHP MapScript. This changed between version 5.4 and 5.6 and again between 5.6 and 6.0. See the two functions below. The first shows the differences between the versions. The second function is trying to get an object with numResults and bounds of the results in it. This is easy in version 6.0 but requires a loop to get the bounds in earlier versions. This loop will show you the differences in version 5.4 and 5.6. Note the layer->open and close used only in version 5.4. I hope this helps. static function layerGetShape($layer, $result) { if (MAPSERVER_VERSION < 50600) { $shape = $layer->getFeature($result->shapeindex); } else if (MAPSERVER_VERSION < 60000) { $shape = $layer->resultsGetShape($result->shapeindex,$result->tileindex); } else { $shape = $layer->getShape( $result ); } return $shape; } static function layerGetResultsObj($layer, $getBounds = FALSE) { $debug = Debug::getInstance(); $debug->log(__FUNCTION__." - MAPSERVER_VERSION = ".MAPSERVER_VERSION); $results->numresults = $layer->getNumResults(); $debug->log(__FUNCTION__." - results->numresults = ".$results->numresults); if (MAPSERVER_VERSION >= 60000) { $results->bounds = $layer->getResultsBounds(); } else { $results->bounds = NULL; if ($getBounds && $results->numresults > 0) { $debug->log(__FUNCTION__." - in get bounds if"); $result = $layer->getResult(0); $debug->log(__FUNCTION__." - shapeindex=".$result->shapeindex); if (MAPSERVER_VERSION < 50600) { $layer->open(); $shape = $layer->getFeature($result->shapeindex); } else { $shape = $layer->resultsGetShape($result->shapeindex,$result->tileindex); } $results->bounds->minx = $shape->bounds->minx; $results->bounds->maxx = $shape->bounds->maxx; $results->bounds->miny = $shape->bounds->miny; $results->bounds->maxy = $shape->bounds->maxy; $debug->log(__FUNCTION__." - before loop"); $debug->startTimer('calc_bounds'); for ($i = 1; $i < $results->numresults; $i++) { $result = $layer->getResult($i); if (MAPSERVER_VERSION < 50600) { $shape = $layer->getFeature($result->shapeindex); } else { $shape = $layer->getShape( $result ); } if ($shape->bounds->minx < $results->bounds->minx) { $results->bounds->minx = $shape->bounds->minx; } if ($shape->bounds->miny < $results->bounds->miny) { $results->bounds->miny = $shape->bounds->miny; } if ($shape->bounds->maxx > $results->bounds->maxx) { $results->bounds->maxx = $shape->bounds->maxx; } if ($shape->bounds->maxy > $results->bounds->maxy) { $results->bounds->maxy = $shape->bounds->maxy; } } $debug->stopTimer('calc_bounds'); $debug->log(__FUNCTION__." - results->bounds-> ". $results->bounds->minx.", ".$results->bounds->miny.", ".$results->bounds->maxx.", ".$results->bounds->maxy ); if (MAPSERVER_VERSION < 50600) { $layer->close(); } } } $debug->log(__FUNCTION__." - at end"." - results->numresults = ".$results->numresults); return $results; } _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ben Thompson Sent: Friday, June 10, 2011 11:06 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] query results lost Hello...we upgraded to the latest ms4w version 3.0.1 (MapServer and MapScript to 5.6.6 ) and some things went bad. after doing a $oLayer->queryByPoint which yields results (layer->numresults>0), a call to $map_object->saveQuery yields a file showing *no results*: MapServer Query - Generated by msSaveQuery() 1 1 33 -1 10718763.8336106 3518854.14068547 -1 0 -1 -1 -1 -1 -1 -1 1 NULL NULL -1 0 so I rewrote our code to avoid using that...a php is loaded into an iframe (frame.src=blablabla.php?xxx), in which the query results are accesed via $map_object->$oMapSession->oMap...all layers have ->numresults=0 anyone have a clue as to what went bad? the code worked fine in an older mapserver/mapscript... thanks, Ben _____ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1382 / Virus Database: 1513/3692 - Release Date: 06/10/11 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vmaffei at gmail.com Sun Jun 12 13:14:43 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Sun, 12 Jun 2011 17:14:43 -0300 Subject: [mapserver-users] WCS pops up to open image Message-ID: Hi, i'm trying to publish a tiff loaded in postgis raster and when i make a GetCoverage it just pops up a window to download the image (mapserv.exe.tiff) Why is it happening? If i download the image its looking correctly what i'm expecting but i want to see it in the browser. Thanks! Virginia -------------- next part -------------- An HTML attachment was scrubbed... URL: From silasharmeen at gmail.com Sun Jun 12 21:04:51 2011 From: silasharmeen at gmail.com (Sila Khan) Date: Mon, 13 Jun 2011 09:04:51 +0500 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 41, Issue 34 In-Reply-To: <20110610183951.34CDFE02448@lists.osgeo.org> References: <20110610183951.34CDFE02448@lists.osgeo.org> Message-ID: plz tell me the steps to add a shape file in mapserver as i found it bit complicated as compare to geoserver. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.bagni at marcobagni.com Mon Jun 13 05:51:59 2011 From: m.bagni at marcobagni.com (Marco Bagni) Date: Mon, 13 Jun 2011 14:51:59 +0200 Subject: [mapserver-users] Demo.Mapserver.Org is Down: any (good) news?? Message-ID: Hi all, I am trying to apply the Styled Layer Descriptor (SLD) feature to my project and I am looking for syntactically correct examples of such directives. Reading the official manual at http://mapserver.org/ogc/sld.html I tried to browse the contained examples but all the links point to demo.mapserver.org and the site is always "temporary unavailable". The problem is that this "temporary" is going on without interruption since more two weeks (such is the time I have waited before asking for the help of the community). Is there some good fellow that can share a correct example of an SLD XML file where there is the rule to fill with some color some polygons contained within a region (BBOX or more sophisticated region boundary like a user polygon)? Thanks in advance for your support. Cheers Marco Bagni From jmckenna at gatewaygeomatics.com Mon Jun 13 06:03:17 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 13 Jun 2011 10:03:17 -0300 Subject: [mapserver-users] Demo.Mapserver.Org is Down: any (good) news?? In-Reply-To: References: Message-ID: <4DF60A95.5000405@gatewaygeomatics.com> On 11-06-13 9:51 AM, Marco Bagni wrote: > Reading the official manual at http://mapserver.org/ogc/sld.html I tried > to browse the contained examples but all the links point to > demo.mapserver.org and the site is always "temporary unavailable". I've fixed the issue on the demo.mapserver.org - please retry. If you ever see problems again don't hesitate to send a message to the mailing list. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From m.bagni at marcobagni.com Mon Jun 13 06:57:17 2011 From: m.bagni at marcobagni.com (Marco Bagni) Date: Mon, 13 Jun 2011 15:57:17 +0200 Subject: [mapserver-users] Demo.Mapserver.Org is Down: any (good) news?? In-Reply-To: <4DF60A95.5000405@gatewaygeomatics.com> References: <4DF60A95.5000405@gatewaygeomatics.com> Message-ID: <4de31bd88f4c80f4de78f6f6f2e1134f.squirrel@webmail.marcobagni.com> Now it works! Thanks. BTW: any working example of an SLD filter where a generic polygon is used to define the area used to apply a particular attribute? On Mon, June 13, 2011 3:03 pm, Jeff McKenna wrote: > On 11-06-13 9:51 AM, Marco Bagni wrote: >> Reading the official manual at http://mapserver.org/ogc/sld.html I >> tried >> to browse the contained examples but all the links point to >> demo.mapserver.org and the site is always "temporary unavailable". > > I've fixed the issue on the demo.mapserver.org - please retry. If you > ever see problems again don't hesitate to send a message to the mailing > list. > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ICT & GIS Senior Specialist Phone: +39 06 3751 5913 Mobile: +39 380 709 5502 Phone: +1 904 807 7866 From MarkVolz at co.lyon.mn.us Mon Jun 13 06:57:44 2011 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 13 Jun 2011 08:57:44 -0500 Subject: [mapserver-users] WFS Server with ArcGIS Client Message-ID: <3D56274B4A7874468F58FADDBFD098010B12DEBD@llmhs02.r8nssis.local> Hello, I would like to be able to use MapServer as a WFS Server with ArcGIS 10 as a client via the Data interoperability Extension. Currently I have WFS working for a Quantum GIS 1.6 client, and the WMS Server is working fine for both QGIS and ArcGIS 10. Does anyone have any tips on how I can set up MapServer to serve WFS to an ArcGIS Client? I am using MS4W, and my MapServer version is 5.2.2. Thanks Mark Volz -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.bagni at marcobagni.com Mon Jun 13 09:40:18 2011 From: m.bagni at marcobagni.com (Marco Bagni) Date: Mon, 13 Jun 2011 18:40:18 +0200 Subject: [mapserver-users] SLD and Spatial Filtering: what is working and what is not? Message-ID: Hi all, playing with the SLD feature and trying to use it in order to show with a RED color only those polygons, in a coverage, that fit within a user-defined fence I have found some things that seem to be broken: The following SLD filter works fine: REQUESTED_LAYER_NAME xxx Geometry 8.473,40.231 9,40.784 #FF0000 This SLD file works as exepected, all the polygons outside the BBOX rectangle are not displayed and those that fall within are displayed in RED color. eplacing the ogc:Filter with something more versatile like a fence (in the example I have used exactly the same vertices of the BBOX rectangle given above) it does not work. Why? REQUESTED_LAYER_NAME xxx Geometry 8.473,40.231 8.473,40.784 9,40.784 9,40.231 8.473,40.231 #FF0000 I have tried also DWithin with no results (the filter is applied but no polygons are displayed). BTW sorry for my ignorance by what is the difference between Within and DWithin? And where can I find some written reference on the meaning of the Spatial Filters? What am I doing wrong? What kind of ogc:Filters are available in the SLD feature (applied to a WMS request)? Since the documentation on this particular issue is very poor I am asking the help of this community with the promise to produce, for the benefit of us all, a short and effective HOWTO "recipe" when the problem shall be sorted out. Thanks in advance. Marco Bagni From jmckenna at gatewaygeomatics.com Mon Jun 13 10:48:26 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 13 Jun 2011 14:48:26 -0300 Subject: [mapserver-users] SLD and Spatial Filtering: what is working and what is not? In-Reply-To: References: Message-ID: <4DF64D6A.5040205@gatewaygeomatics.com> On 11-06-13 1:40 PM, Marco Bagni wrote: > > Since the documentation on this particular issue is very poor I am asking > the help of this community with the promise to produce, for the benefit of > us all, a short and effective HOWTO "recipe" when the problem shall be > sorted out. That's wonderful news. You can start to add documentation right away by: 1) heading to the MapServer wiki (http://trac.osgeo.org/mapserver/) 2) then log in (if you need to create a login see http://www.osgeo.org/osgeo_userid) 3) then pan the wiki page down and you'll see all of the wonderful wiki pages that users have created. 4) create your wiki pages 5) send an email to mapserver-users list pointing to your new wiki page Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Mon Jun 13 13:12:26 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 13 Jun 2011 20:12:26 +0000 Subject: [mapserver-users] Re: WFS Server with ArcGIS Client In-Reply-To: <3D56274B4A7874468F58FADDBFD098010B12DEBD@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD098010B12DEBD@llmhs02.r8nssis.local> Message-ID: <84446DEF76453C439E9E97E438E13A63D62A@suutari.haapa.mmm.fi> Hi, If you happen to work with PostGIS data and you are on Linux you may think about having a try with TinyOWS. It works nicely together with Mapserver and I know that is works with Data Interoperability. With a little odd thing, though. For every attribute ArcGIS creates a dummy .xld_nil attribute at least with my server. TinyOWS is in 1.0 release candidate phase but Windows executables are not yet available, therefore Linux. You can try yourself with an open WFS service http://188.64.1.61/cgi-bin/tinyows -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Mark Volz [MarkVolz at co.lyon.mn.us] puolesta L?hetetty: 13. kes?kuuta 2011 16:57 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WFS Server with ArcGIS Client Hello, I would like to be able to use MapServer as a WFS Server with ArcGIS 10 as a client via the Data interoperability Extension. Currently I have WFS working for a Quantum GIS 1.6 client, and the WMS Server is working fine for both QGIS and ArcGIS 10. Does anyone have any tips on how I can set up MapServer to serve WFS to an ArcGIS Client? I am using MS4W, and my MapServer version is 5.2.2. Thanks Mark Volz From jmckenna at gatewaygeomatics.com Mon Jun 13 13:36:33 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 13 Jun 2011 17:36:33 -0300 Subject: [mapserver-users] Re: WFS Server with ArcGIS Client In-Reply-To: <84446DEF76453C439E9E97E438E13A63D62A@suutari.haapa.mmm.fi> References: <3D56274B4A7874468F58FADDBFD098010B12DEBD@llmhs02.r8nssis.local> <84446DEF76453C439E9E97E438E13A63D62A@suutari.haapa.mmm.fi> Message-ID: <4DF674D1.4080004@gatewaygeomatics.com> On 11-06-13 5:12 PM, Rahkonen Jukka wrote: > > TinyOWS is in 1.0 release candidate phase but Windows executables are not yet available, therefore Linux. Quick note: TinyOWS has been available in MS4W as an addon package for quite some time now. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Mon Jun 13 13:53:22 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 13 Jun 2011 20:53:22 +0000 Subject: [mapserver-users] Re: WFS Server with ArcGIS Client In-Reply-To: <4DF674D1.4080004@gatewaygeomatics.com> References: <3D56274B4A7874468F58FADDBFD098010B12DEBD@llmhs02.r8nssis.local> <84446DEF76453C439E9E97E438E13A63D62A@suutari.haapa.mmm.fi>, <4DF674D1.4080004@gatewaygeomatics.com> Message-ID: <84446DEF76453C439E9E97E438E13A63D63C@suutari.haapa.mmm.fi> Hi, Another quick note: Version 1.0 c is much much better than 0.9 which is available as MS4W addon package. But of course one can experiment with 0.9 too until 1.0 for MS4W is ready. -Jukka- ________________________________________ Jeff McKenna wrote: On 11-06-13 5:12 PM, Rahkonen Jukka wrote: > > TinyOWS is in 1.0 release candidate phase but Windows executables are not yet available, therefore Linux. Quick note: TinyOWS has been available in MS4W as an addon package for quite some time now. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From m.bagni at marcobagni.com Mon Jun 13 14:02:27 2011 From: m.bagni at marcobagni.com (Marco Bagni) Date: Mon, 13 Jun 2011 23:02:27 +0200 Subject: [mapserver-users] SLD and Spatial Filtering: what is working and what is not? In-Reply-To: <4DF64D6A.5040205@gatewaygeomatics.com> References: <4DF64D6A.5040205@gatewaygeomatics.com> Message-ID: <07c6bf85bd4a1833df84248c426a738c.squirrel@webmail.marcobagni.com> Jeff, apart fine sarcasm, can you (would you) be of some help? I promised my support AFTER having found the solution! ;-) Cheers Marco Bagni On Mon, June 13, 2011 7:48 pm, Jeff McKenna wrote: > On 11-06-13 1:40 PM, Marco Bagni wrote: >> >> Since the documentation on this particular issue is very poor I am >> asking >> the help of this community with the promise to produce, for the benefit >> of >> us all, a short and effective HOWTO "recipe" when the problem shall be >> sorted out. > > That's wonderful news. You can start to add documentation right away by: > > 1) heading to the MapServer wiki (http://trac.osgeo.org/mapserver/) > 2) then log in (if you need to create a login see > http://www.osgeo.org/osgeo_userid) > 3) then pan the wiki page down and you'll see all of the wonderful wiki > pages that users have created. > 4) create your wiki pages > 5) send an email to mapserver-users list pointing to your new wiki page > > Thanks! > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From yassefa at dmsolutions.ca Mon Jun 13 14:35:32 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 13 Jun 2011 17:35:32 -0400 Subject: [mapserver-users] Re: WFS Server with ArcGIS Client In-Reply-To: <84446DEF76453C439E9E97E438E13A63D63C@suutari.haapa.mmm.fi> References: <3D56274B4A7874468F58FADDBFD098010B12DEBD@llmhs02.r8nssis.local> <84446DEF76453C439E9E97E438E13A63D62A@suutari.haapa.mmm.fi>, <4DF674D1.4080004@gatewaygeomatics.com> <84446DEF76453C439E9E97E438E13A63D63C@suutari.haapa.mmm.fi> Message-ID: <4DF682A4.6080302@dmsolutions.ca> ms4w adds on for tinyows 1.0.0rc3 is uploaded on the server and should be available in few minutes for download. best regards, On 13/06/2011 4:53 PM, Rahkonen Jukka wrote: > Hi, > > Another quick note: Version 1.0 c is much much better than 0.9 which is available as MS4W addon package. But of course one can experiment with 0.9 too until 1.0 for MS4W is ready. > > -Jukka- > ________________________________________ > Jeff McKenna wrote: > > > On 11-06-13 5:12 PM, Rahkonen Jukka wrote: >> TinyOWS is in 1.0 release candidate phase but Windows executables are not yet available, therefore Linux. > Quick note: TinyOWS has been available in MS4W as an addon package for > quite some time now. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sakaroyban at yahoo.com Mon Jun 13 23:08:57 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Mon, 13 Jun 2011 23:08:57 -0700 (PDT) Subject: [mapserver-users] Asking for guidelines about a project Message-ID: <134627.96201.qm@web121619.mail.ne1.yahoo.com> Hi all. Strictly Speaking, i have a project that i should display some moving objects on a map via browser. Generally, i don't know how to start? i mean how should i save these time-based objects in DB and how to retrieve and display them via Mapserver? where should i use client side scripting like OpneLayers? Any help woudbe greatly appreciated. Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From silasharmeen at gmail.com Mon Jun 13 23:49:04 2011 From: silasharmeen at gmail.com (Sila Khan) Date: Tue, 14 Jun 2011 11:49:04 +0500 Subject: [mapserver-users] how to get start with mapserver Message-ID: Dear mapserver users I have followed the steps for mapserver at windows XP given in the following link http://www.gistutor.com/mapserver/3-beginner-mapserver-tutorials/7-how-to-generate-a-simple-map-using-mapserver-and-a-shapefile.html but still m unable to get map, when i click startmap.html a very small image apears at upper left corner and output directory shows empty image . plz help me to know where i m wrong Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Jun 14 00:51:22 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Jun 2011 07:51:22 +0000 Subject: [mapserver-users] Re: WFS Server with ArcGIS Client In-Reply-To: <4DF682A4.6080302@dmsolutions.ca> References: <3D56274B4A7874468F58FADDBFD098010B12DEBD@llmhs02.r8nssis.local> <84446DEF76453C439E9E97E438E13A63D62A@suutari.haapa.mmm.fi>, <4DF674D1.4080004@gatewaygeomatics.com> <84446DEF76453C439E9E97E438E13A63D63C@suutari.haapa.mmm.fi>, <4DF682A4.6080302@dmsolutions.ca> Message-ID: <84446DEF76453C439E9E97E438E13A63D752@suutari.haapa.mmm.fi> Hi, Thanks for the update. The included config.xml was still using the old syntax and new version of TinyOWS does not work with it. I paste here below a config.xml that works with the 1.0 rc3 version with the demo data layers "france" and "world". Demo shapefiles are included in the package http://tinyows.org/tracdocs/release/tinyows-1.0.0rc3.tar.bz2 and they should be imported into PostGIS first. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Yewondwossen Assefa [yassefa at dmsolutions.ca] puolesta L?hetetty: 14. kes?kuuta 2011 0:35 Vastaanottaja: mapserver-users at lists.osgeo.org Kopio: TinyOWS users discuss list; ms4w-users Aihe: Re: [mapserver-users] Re: WFS Server with ArcGIS Client ms4w adds on for tinyows 1.0.0rc3 is uploaded on the server and should be available in few minutes for download. best regards, On 13/06/2011 4:53 PM, Rahkonen Jukka wrote: > Hi, > > Another quick note: Version 1.0 c is much much better than 0.9 which is available as MS4W addon package. But of course one can experiment with 0.9 too until 1.0 for MS4W is ready. > > -Jukka- > ________________________________________ > Jeff McKenna wrote: > > > On 11-06-13 5:12 PM, Rahkonen Jukka wrote: >> TinyOWS is in 1.0 release candidate phase but Windows executables are not yet available, therefore Linux. > Quick note: TinyOWS has been available in MS4W as an addon package for > quite some time now. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- 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 From Jukka.Rahkonen at mmmtike.fi Tue Jun 14 04:51:05 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Jun 2011 11:51:05 +0000 Subject: [mapserver-users] Where is the use of map_resolution documented? In-Reply-To: <07c6bf85bd4a1833df84248c426a738c.squirrel@webmail.marcobagni.com> References: <4DF64D6A.5040205@gatewaygeomatics.com> <07c6bf85bd4a1833df84248c426a738c.squirrel@webmail.marcobagni.com> Message-ID: <84446DEF76453C439E9E97E438E13A63D7D5@suutari.haapa.mmm.fi> Hi, I know more or less what map_resolution does and how it is used, but I could not easily find where it is documented. Any suggestions? -Jukka Rahkonen- From yassefa at dmsolutions.ca Tue Jun 14 05:55:21 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 14 Jun 2011 08:55:21 -0400 Subject: [mapserver-users] Re: WFS Server with ArcGIS Client In-Reply-To: <84446DEF76453C439E9E97E438E13A63D752@suutari.haapa.mmm.fi> References: <3D56274B4A7874468F58FADDBFD098010B12DEBD@llmhs02.r8nssis.local> <84446DEF76453C439E9E97E438E13A63D62A@suutari.haapa.mmm.fi>, <4DF674D1.4080004@gatewaygeomatics.com> <84446DEF76453C439E9E97E438E13A63D63C@suutari.haapa.mmm.fi>, <4DF682A4.6080302@dmsolutions.ca> <84446DEF76453C439E9E97E438E13A63D752@suutari.haapa.mmm.fi> Message-ID: <4DF75A39.8020409@dmsolutions.ca> Thanks. Updated on the server and svn. On 14/06/2011 3:51 AM, Rahkonen Jukka wrote: > Hi, > > Thanks for the update. The included config.xml was still using the old syntax and new version of TinyOWS does not work with it. I paste here below a config.xml that works with the 1.0 rc3 version with the demo data layers "france" and "world". Demo shapefiles are included in the package http://tinyows.org/tracdocs/release/tinyows-1.0.0rc3.tar.bz2 and they should be imported into PostGIS first. > > schema_dir="/ms4w/apps/tinyows/schema/"> > > title="TinyOWS Server - Demo Service" /> > > writable="1" > ns_prefix="tows" > ns_uri="http://www.tinyows.org" > name="world" > title="World Administrative Boundaries" /> > writable="1" > ns_prefix="tows" > ns_uri="http://www.tinyows.org" > name="france" > title="French Administrative Sub Boundaries (IGN - GeoFLA Departements)" /> > > > -Jukka Rahkonen- > > ________________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Yewondwossen Assefa [yassefa at dmsolutions.ca] puolesta > L?hetetty: 14. kes?kuuta 2011 0:35 > Vastaanottaja: mapserver-users at lists.osgeo.org > Kopio: TinyOWS users discuss list; ms4w-users > Aihe: Re: [mapserver-users] Re: WFS Server with ArcGIS Client > > ms4w adds on for tinyows 1.0.0rc3 is uploaded on the server and should > be available in few minutes for download. > > best regards, > > On 13/06/2011 4:53 PM, Rahkonen Jukka wrote: >> Hi, >> >> Another quick note: Version 1.0 c is much much better than 0.9 which is available as MS4W addon package. But of course one can experiment with 0.9 too until 1.0 for MS4W is ready. >> >> -Jukka- >> ________________________________________ >> Jeff McKenna wrote: >> >> >> On 11-06-13 5:12 PM, Rahkonen Jukka wrote: >>> TinyOWS is in 1.0 release candidate phase but Windows executables are not yet available, therefore Linux. >> Quick note: TinyOWS has been available in MS4W as an addon package for >> quite some time now. >> >> -jeff >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- > ---------------------------------------------------------------- > 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 ---------------------------------------------------------------- From stephan at meissl.name Tue Jun 14 06:34:41 2011 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Tue, 14 Jun 2011 15:34:41 +0200 Subject: [mapserver-users] Requested BBOX outside requested coverage In-Reply-To: References: Message-ID: <1308058481.4796.460.camel@io> Virginia, it looks strange that the second parameter in your bounding box is bigger than the fourth one. Besides that I suspect that you might be using different projections with different units (meter vs. degree). cu Stephan On Sat, 2011-06-11 at 18:46 -0300, Virginia Maffei wrote: > Hi, i want to do a getcoverage with wcs but the log throws: > > > > [Sat Jun 11 18:27:50 2011].26000 msWCSGetCoverage(): WCS server error. > Requested BBOX > (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) is outside requested coverage BBOX (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) > [Sat Jun 11 18:27:50 2011].26000 freeLayer(): freeing layer at > 021CB940. > > > the url is: > > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=400000,700000,800000,600000&WIDTH=491&HEIGHT=543&FORMAT=GTiff > > > Could someone explain me whats wrong and how does bbox works? > > > Sorry, but i'm very new at this... > > > thank you! > > > Virginia > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From stephan at meissl.name Tue Jun 14 06:44:16 2011 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Tue, 14 Jun 2011 15:44:16 +0200 Subject: [mapserver-users] WCS pops up to open image In-Reply-To: References: Message-ID: <1308059056.4796.468.camel@io> Virginia, as far as I know only Safari supports displaying TIFF images natively. There are add-ons available for Firofox, though. cu Stephan On Sun, 2011-06-12 at 17:14 -0300, Virginia Maffei wrote: > Hi, i'm trying to publish a tiff loaded in postgis raster and when i > make a GetCoverage it just pops up a window to download the image > (mapserv.exe.tiff) > Why is it happening? If i download the image its looking correctly > what i'm expecting but i want to see it in the browser. > > > Thanks! > > > Virginia > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From vmaffei at gmail.com Tue Jun 14 07:15:09 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Tue, 14 Jun 2011 11:15:09 -0300 Subject: [mapserver-users] Requested BBOX outside requested coverage In-Reply-To: <1308058481.4796.460.camel@io> References: <1308058481.4796.460.camel@io> Message-ID: Thanks Stephen! That was the problem! Virginia On Tue, Jun 14, 2011 at 10:34 AM, Stephan Mei?l wrote: > Virginia, > > it looks strange that the second parameter in your bounding box is > bigger than the fourth one. > > Besides that I suspect that you might be using different projections > with different units (meter vs. degree). > > cu > Stephan > > > On Sat, 2011-06-11 at 18:46 -0300, Virginia Maffei wrote: > > Hi, i want to do a getcoverage with wcs but the log throws: > > > > > > > > [Sat Jun 11 18:27:50 2011].26000 msWCSGetCoverage(): WCS server error. > > Requested BBOX > > (-66.5079075029609,-84.6440997947261,-30.3257514953085,-83.1977984037033) > is outside requested coverage BBOX > (366582.290141166,6127927.10038269,857582.290141166,6670927.10038269) > > [Sat Jun 11 18:27:50 2011].26000 freeLayer(): freeing layer at > > 021CB940. > > > > > > the url is: > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-1.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&coverage=localidades&CRS=EPSG:32721&BBOX=400000,700000,800000,600000&WIDTH=491&HEIGHT=543&FORMAT=GTiff > > > > > > Could someone explain me whats wrong and how does bbox works? > > > > > > Sorry, but i'm very new at this... > > > > > > thank you! > > > > > > Virginia > > > > > > > > > > _______________________________________________ > > 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 vmaffei at gmail.com Tue Jun 14 07:15:37 2011 From: vmaffei at gmail.com (Virginia Maffei) Date: Tue, 14 Jun 2011 11:15:37 -0300 Subject: [mapserver-users] WCS pops up to open image In-Reply-To: <1308059056.4796.468.camel@io> References: <1308059056.4796.468.camel@io> Message-ID: I changed the format to PNG and it worked! Virginia On Tue, Jun 14, 2011 at 10:44 AM, Stephan Mei?l wrote: > Virginia, > > as far as I know only Safari supports displaying TIFF images natively. > There are add-ons available for Firofox, though. > > cu > Stephan > > > On Sun, 2011-06-12 at 17:14 -0300, Virginia Maffei wrote: > > Hi, i'm trying to publish a tiff loaded in postgis raster and when i > > make a GetCoverage it just pops up a window to download the image > > (mapserv.exe.tiff) > > Why is it happening? If i download the image its looking correctly > > what i'm expecting but i want to see it in the browser. > > > > > > Thanks! > > > > > > Virginia > > > > > > _______________________________________________ > > 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 bfraser at geoanalytic.com Tue Jun 14 07:44:08 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 14 Jun 2011 08:44:08 -0600 Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <134627.96201.qm@web121619.mail.ne1.yahoo.com> References: <134627.96201.qm@web121619.mail.ne1.yahoo.com> Message-ID: <4DF773B8.1000907@geoanalytic.com> Saka, I've had good success using PostGIS for data storage in implementing tracking systems. While you'll need to create your own code for updating the positions in the database, mapserver can read points from PostGIS and can render the points into a map image for use with the OpenLayers client. There are other solutions too, like OpenGTS (http://opengts.sourceforge.net/index.html) Best Regards, Brent Fraser On 6/14/2011 12:08 AM, Saka Royban wrote: > Hi all. > Strictly Speaking, i have a project that i should display some moving > objects on a map via browser. > Generally, i don't know how to start? i mean how should i save these > time-based objects in DB and how to retrieve and display them via > Mapserver? where should i use client side scripting like OpneLayers? > Any help woudbe greatly appreciated. > > Thanks in advance > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at umb.no Tue Jun 14 07:50:38 2011 From: havard.tveite at umb.no (Havard Tveite) Date: Tue, 14 Jun 2011 16:50:38 +0200 Subject: [mapserver-users] Where is the use of map_resolution documented? In-Reply-To: <84446DEF76453C439E9E97E438E13A63D7D5@suutari.haapa.mmm.fi> References: <4DF64D6A.5040205@gatewaygeomatics.com> <07c6bf85bd4a1833df84248c426a738c.squirrel@webmail.marcobagni.com> <84446DEF76453C439E9E97E438E13A63D7D5@suutari.haapa.mmm.fi> Message-ID: <4DF7753E.2060003@umb.no> Dear Jukka, It is in RFC55 and mentioned in the symbol construction document, but it should of course be documented with MAP. If this is not to be kept a secret, I think a documentation ticket would be a good idea. H?vard On 6/14/2011 1:51 PM, Rahkonen Jukka wrote: > > Hi, > > I know more or less what map_resolution does and how it is used, but I could not easily find where it is documented. Any suggestions? > > -Jukka Rahkonen-_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From bfraser at geoanalytic.com Tue Jun 14 08:15:58 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 14 Jun 2011 09:15:58 -0600 Subject: [mapserver-users] how to get start with mapserver In-Reply-To: References: Message-ID: <4DF77B2E.5020401@geoanalytic.com> Sila, While the tutorial is fairly good, it implies that you should install ms4w into "C:\Program Files\Mapserver\ms4w". Instead, I would recommend installing ms4w into the default location of "C:\ms4w", at least while you are getting familiar with mapserver and ms4w. Once you've done that, you can access the installed ms4w demo apps with: http://localhost/index.phtml Best Regards, Brent Fraser On 6/14/2011 12:49 AM, Sila Khan wrote: > Dear mapserver users > I have followed the steps for mapserver at windows XP given in the > following link > http://www.gistutor.com/mapserver/3-beginner-mapserver-tutorials/7-how-to-generate-a-simple-map-using-mapserver-and-a-shapefile.html > > but still m unable to get map, when i click startmap.html a very small > image apears at upper left corner and output directory shows empty image . > plz help me to know where i m wrong > Thanks > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorge.arevalo at deimos-space.com Tue Jun 14 10:10:27 2011 From: jorge.arevalo at deimos-space.com (=?ISO-8859-1?Q?Jorge_Ar=E9valo?=) Date: Tue, 14 Jun 2011 19:10:27 +0200 Subject: [mapserver-users] Question about MapServer Message-ID: Hello, I'm executing Mapserver 5.6.4 under Apache2 in a Ubuntu 10.04 machine. I'm having problems with a SLD file. Basically, when I execute a request like this: http://myserver/cgi-bin/mapserv?map=/var/mapserver/mapfiles/sld_cookbook_polygon.map&service=WMS&version=1.1.1&request=GetMap&layers=sld_cookbook_polygon&sld=http://myserver/sld/polygon_simplepolygon.sld I get this error: msSLDApplySLDURL: WMS server error. Could not open SLD http://myserver/sld/polygon_simplepolygon.sld and save it in temporary file /var/mapserver/output/4df778fc_14b7_0.sld.xml. Please make sure that the sld url is valid and that imagepath and imageurl are set properly in the map file msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 7 (Failed connect to agropilot:80; Operation now in progress) for http://myserver/sld/polygon_simplepolygon.sld The log file shows this: [Tue Jun 14 16:17:38 2011].364355 CGI Request 1 on process 4465 [Tue Jun 14 16:17:38 2011].410841 msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 3 ( malformed) for /var/mapserver/sld/polygon_simplepolygon.sld [Tue Jun 14 16:17:38 2011].410930 msSLDApplySLDURL: WMS server error. Could not open SLD /var/mapserver/sld/polygon_simplepolygon.sld and save it in temporary file /var/mapserver/output/4df76d82_1171_0.sld.xml. Please make sure that the sld url is valid and that imagepath and imageurl are set properly in the map file [Tue Jun 14 16:17:38 2011].415803 mapserv request processing time (msLoadMap not incl.): 0.051s [Tue Jun 14 16:17:38 2011].415854 msFreeMap(): freeing map at 0x1168370. [Tue Jun 14 17:06:36 2011].91881 CGI Request 1 on process 5303 [Tue Jun 14 17:06:39 2011].97592 msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 7 (Failed connect to agropilot:80; Operation now in progress) for http://myserver/sld/polygon_simplepolygon.sld [Tue Jun 14 17:06:39 2011].97700 msSLDApplySLDURL: WMS server error. Could not open SLD http://myserver/sld/polygon_simplepolygon.sld and save it in temporary file /var/mapserver/output/4df778fc_14b7_0.sld.xml. Please make sure that the sld url is valid and that imagepath and imageurl are set properly in the map file [Tue Jun 14 17:06:39 2011].97779 mapserv request processing time (msLoadMap not incl.): 3.006s [Tue Jun 14 17:06:39 2011].97799 msFreeMap(): freeing map at 0x18e4420. The IMAGEPATH and IMAGEURL vars have a valid value in mapfile: IMAGEPATH "/var/mapserver/output" IMAGEURL "http://myserver/output" The output directory exists and is writable by www-data (even when I change permission to 777, the same error); http://myserver/output is reachable. The curious thing is the file /var/mapserver/output/4df778fc_14b7_0.sld.xml is actually created, but it's empty. I had problems before because apparmor didn't allow writing in /var/www, but I changed the apache directory to /var/mapserver, and now apache can write on it. In fac, it's writting a log file. I don't understand this error. Any idea? Many thanks in advance, and best regards, -- Jorge Ar?valo Internet & Mobility Division, DEIMOS jorge.arevalo at deimos-space.com http://es.linkedin.com/in/jorgearevalo80 http://mobility.grupodeimos.com/ http://gis4free.wordpress.com http://geohash.org/ezjqgrgzz0g From jorge.arevalo at deimos-space.com Tue Jun 14 11:12:21 2011 From: jorge.arevalo at deimos-space.com (=?ISO-8859-1?Q?Jorge_Ar=E9valo?=) Date: Tue, 14 Jun 2011 20:12:21 +0200 Subject: [mapserver-users] Re: Question about MapServer In-Reply-To: References: Message-ID: 2011/6/14 Jorge Ar?valo : > Hello, > > I'm executing Mapserver 5.6.4 under Apache2 in a Ubuntu 10.04 machine. > I'm having problems with a SLD file. Basically, when I execute a > request like this: > > > http://myserver/cgi-bin/mapserv?map=/var/mapserver/mapfiles/sld_cookbook_polygon.map&service=WMS&version=1.1.1&request=GetMap&layers=sld_cookbook_polygon&sld=http://myserver/sld/polygon_simplepolygon.sld > > I get this error: > > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msSLDApplySLDURL: WMS server error. Could not open SLD > http://myserver/sld/polygon_simplepolygon.sld and save it in temporary > file /var/mapserver/output/4df778fc_14b7_0.sld.xml. Please make sure > that the sld url is valid and that imagepath and imageurl are set > properly in the map file > msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with > curl error code 7 (Failed connect to agropilot:80; Operation now in > progress) for http://myserver/sld/polygon_simplepolygon.sld > > > > The log file shows this: > > [Tue Jun 14 16:17:38 2011].364355 CGI Request 1 on process 4465 > [Tue Jun 14 16:17:38 2011].410841 msHTTPExecuteRequests(): HTTP > request error. HTTP: request failed with curl error code 3 ( > malformed) for /var/mapserver/sld/polygon_simplepolygon.sld > [Tue Jun 14 16:17:38 2011].410930 msSLDApplySLDURL: WMS server error. > Could not open SLD /var/mapserver/sld/polygon_simplepolygon.sld and > save it in temporary file > /var/mapserver/output/4df76d82_1171_0.sld.xml. Please make sure that > the sld url is valid and that imagepath and imageurl are set properly > in the map file > [Tue Jun 14 16:17:38 2011].415803 mapserv request processing time > (msLoadMap not incl.): 0.051s > [Tue Jun 14 16:17:38 2011].415854 msFreeMap(): freeing map at 0x1168370. > [Tue Jun 14 17:06:36 2011].91881 CGI Request 1 on process 5303 > [Tue Jun 14 17:06:39 2011].97592 msHTTPExecuteRequests(): HTTP request > error. HTTP: request failed with curl error code 7 (Failed connect to > agropilot:80; Operation now in progress) for > http://myserver/sld/polygon_simplepolygon.sld > [Tue Jun 14 17:06:39 2011].97700 msSLDApplySLDURL: WMS server error. > Could not open SLD http://myserver/sld/polygon_simplepolygon.sld and > save it in temporary file > /var/mapserver/output/4df778fc_14b7_0.sld.xml. Please make sure that > the sld url is valid and that imagepath and imageurl are set properly > in the map file > [Tue Jun 14 17:06:39 2011].97779 mapserv request processing time > (msLoadMap not incl.): 3.006s > [Tue Jun 14 17:06:39 2011].97799 msFreeMap(): freeing map at 0x18e4420. > > > The IMAGEPATH and IMAGEURL vars have a valid value in mapfile: > > IMAGEPATH "/var/mapserver/output" > IMAGEURL "http://myserver/output" > > The output directory exists and is writable by www-data (even when I > change permission to 777, the same error); http://myserver/output is > reachable. The curious thing is the file > /var/mapserver/output/4df778fc_14b7_0.sld.xml is actually created, but > it's empty. > > I had problems before because apparmor didn't allow writing in > /var/www, but I changed the apache directory to /var/mapserver, and > now apache can write on it. In fac, it's writting a log file. I don't > understand this error. Any idea? > > Many thanks in advance, and best regards, > > -- > Jorge Ar?valo > Internet & Mobility Division, DEIMOS > jorge.arevalo at deimos-space.com > http://es.linkedin.com/in/jorgearevalo80 > http://mobility.grupodeimos.com/ > http://gis4free.wordpress.com > http://geohash.org/ezjqgrgzz0g > I forgot to mention something: HTTP: request failed with curl error code 7 (Failed connect to agropilot:80; Operation now in progress) for http://myserver/sld/polygon_simplepolygon.sld It may be obvious, buy "myserver" is really "agropilot", an url from my internal network. I replaced "agropilot" for "myserver" to simplfy it (I forgot to replace it one time, sorry). The point is the url http://agropilot/sld/polygon_simplepolygon.sld is reachable in my network. I can see the file using a web browser, but curl fails. I don't know why. -- Jorge Ar?valo Internet & Mobility Division, DEIMOS jorge.arevalo at deimos-space.com http://es.linkedin.com/in/jorgearevalo80 http://mobility.grupodeimos.com/ http://gis4free.wordpress.com http://geohash.org/ezjqgrgzz0g From thatsanicehatyouhave at mac.com Tue Jun 14 19:10:02 2011 From: thatsanicehatyouhave at mac.com (thatsanicehatyouhave at mac.com) Date: Tue, 14 Jun 2011 22:10:02 -0400 Subject: [mapserver-users] Advice for a new server for a huge data set. Message-ID: <44988ED4-8422-4258-9D2D-D7E2DEA0AFEA@mac.com> Hello, I have recently discovered MapServer and I wanted to get some advice about setting up a new WMS. I have a data set that is several terabytes in size that I'd like to serve. As just a trial, I want to start with a single raster layer. Is there an example of a MapServer setup that I can look at that only serves raster images in the form of individual tiles? The raster examples I have seen use a single image that MS apparently slices up on demand, but no such single image for my data exists (it's far too big). What is the recommended approach? I could write a script that can generate the images on demand from the raw data - can these be passed to mapserv? I can also pre-generate tiles of the whole data set. If I want to implement a zoom, presumably I'd generate multiple sets of these at different scales? Would each zoom level be a new layer? I'm sure I'll have lots more questions, but this should start me on the right path! Cheers, Demitri From Bob.Basques at ci.stpaul.mn.us Tue Jun 14 21:57:15 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 14 Jun 2011 23:57:15 -0500 Subject: [mapserver-users] Advice for a new server for a huge data set. Message-ID: <4DF7F55B020000A80002B1DC@heckle> Demitri, You will want to build yourself a tile system (there are a number of tools for this) with an attached index of the tiles. You'll need to build a set of tiles for each level of zoom (pixel scales) that you will be using in the map interface drill down. With the right indexing of tiles, and proper tile building, you can serve up just about an unlimited size raster dataset. MapServer includes some utilities to build a tile set as does GDAL/OGR. Do a search on the keywords Mapserver, tiles and index, and that should get you close to what you are looking for. bobb >>> 06/14/11 10:10 PM >>> Hello, I have recently discovered MapServer and I wanted to get some advice about setting up a new WMS. I have a data set that is several terabytes in size that I'd like to serve. As just a trial, I want to start with a single raster layer. Is there an example of a MapServer setup that I can look at that only serves raster images in the form of individual tiles? The raster examples I have seen use a single image that MS apparently slices up on demand, but no such single image for my data exists (it's far too big). What is the recommended approach? I could write a script that can generate the images on demand from the raw data - can these be passed to mapserv? I can also pre-generate tiles of the whole data set. If I want to implement a zoom, presumably I'd generate multiple sets of these at different scales? Would each zoom level be a new layer? I'm sure I'll have lots more questions, but this should start me on the right path! Cheers, Demitri _______________________________________________ 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 John.Westwood at port.ac.uk Fri Jun 10 09:25:30 2011 From: John.Westwood at port.ac.uk (John Westwood) Date: Fri, 10 Jun 2011 17:25:30 +0100 Subject: [mapserver-users] Rendering artefacts when serving raster via WMS Message-ID: <4DF2538A020000530000FF58@gw-gwia2.iso.port.ac.uk> Hello I have a problem with MapServer making a mess of some georegistered raster map images when serving them as tiles via WMS. The images are not reprojected on the fly, so this isn't the cause of the problem. The source images are 24bit geotiff and the requesting format is jpeg or png. The maps are OS New Popular and they exhibited poor contrast so I boosted the contrast and colours in Photoshop 7 using the auto color or the auto contrast option. Unfortunately, some of the sheets now exhibit horrible artefacting or ghost images. Other maps in the set that have been boosted do not have these problems. I attach two screenshots, original.jpg and mapserver.jpg. These are portions of the original image and the MapServer served image, respectively. Further examples of this problem can be found via the map viewer on Historical Maps section of the Vision of Britain website (www.visionofbritain.org.uk), check out the New Popular maps in the vicinity of the Wirral. I have tried various things to fix this, but to no avail. Things I have tried: Increasing the jpeg quality output Using png instead of jpeg for the output Using GDAL or AGG instead of GD Here is the output format portion of my map file: OUTPUTFORMAT NAME "jpg" DRIVER GD/JPEG IMAGEMODE RGB EXTENSION "jpg" MIMETYPE "image/jpg" FORMATOPTION "QUALITY=85" END OUTPUTFORMAT NAME "png" DRIVER GD/PNG IMAGEMODE RGB EXTENSION "png" MIMETYPE "image/png" END Does anybody have any ideas what the problem could be? I know it is something to do with the fact that I boosted the images and MapServer doesn't like them, but I would like to fix it. Suggestions greatly appreciated. Regards, John Westwood Great Britain GIS Project Vision of Britain www.visionofbritain.org.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: original.jpg Type: image/jpeg Size: 215882 bytes Desc: JPEG image URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver.jpg Type: image/jpeg Size: 300595 bytes Desc: JPEG image URL: From warmerdam at pobox.com Wed Jun 15 07:54:44 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 15 Jun 2011 10:54:44 -0400 Subject: [mapserver-users] Unable to render a raster with 4 bands In-Reply-To: <1307755448185-6464301.post@n2.nabble.com> References: <1307755448185-6464301.post@n2.nabble.com> Message-ID: <4DF8C7B4.2020902@pobox.com> On 11-06-10 09:24 PM, jt2000 wrote: > I have a GRD raster that I'm trying to show on the map using mapserver. > Currently I'm getting all transparent output. > > I've converted it to TIF using gdal_translate and it converted fine. I also > used shp2img to convert to png without any issues. > Band 1 Block=1293x1 Type=Byte, ColorInterp=Red > NoData Value=0 > What do I need to change in the map file to make this work? > I have tried PROCESSING "SCALE=0,0.00305185094759972" to see if that would > help. jt2000, You don't provide your LAYER definition so there isn't much to go on. What I can say is that based on the debug output the layer is being rendered and it would seem there was at least some overlap of the data file with your map area. I do not know why you are using a SCALE processing option. The imagery is already 8bit, not floating point, so there should be no need to dramatically rescale. Don't worry too much about the debug output about NODATA value 0 being ignored. At worst this should mean that nodata areas will actually be drawn. It should not mean that things show up transparent when they are not. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at pobox.com Wed Jun 15 08:04:51 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 15 Jun 2011 11:04:51 -0400 Subject: [mapserver-users] Rendering artefacts when serving raster via WMS In-Reply-To: <4DF2538A020000530000FF58@gw-gwia2.iso.port.ac.uk> References: <4DF2538A020000530000FF58@gw-gwia2.iso.port.ac.uk> Message-ID: <4DF8CA13.1030308@pobox.com> On 11-06-10 12:25 PM, John Westwood wrote: > Does anybody have any ideas what the problem could be? I know it is something > to do with the fact that I boosted the images and MapServer doesn't like them, > but I would like to fix it. Suggestions greatly appreciated. John, I'm afraid I don't have much to offer. I just wanted you to know that someone had looked at your post and had no bright ideas about why it is happening. If this is quite important to you, you could file a ticket on the issue, reducing it to a simple map file with one input GeoTIFF and a request (ideally with shp2img) that produces the artifacted output. Then I could dig into this from my end. If you do that, you can directly assign the MapServer ticket to "warmerdam". 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 bfraser at geoanalytic.com Wed Jun 15 08:19:41 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 15 Jun 2011 09:19:41 -0600 Subject: [mapserver-users] Rendering artefacts when serving raster via WMS In-Reply-To: <4DF8CA13.1030308@pobox.com> References: <4DF2538A020000530000FF58@gw-gwia2.iso.port.ac.uk> <4DF8CA13.1030308@pobox.com> Message-ID: <4DF8CD8D.9010604@geoanalytic.com> John, It looks like a resampling problem. You could try adding PROCESSING "OVERSAMPLE_RATIO=1" PROCESSING "LOAD_FULL_RES_IMAGE=NO" to your layer definition. I had some success with these when trying to get mapserver to render large (and readable) images from OpenStreetMap. Best Regards, Brent Fraser On 6/15/2011 9:04 AM, Frank Warmerdam wrote: > On 11-06-10 12:25 PM, John Westwood wrote: >> Does anybody have any ideas what the problem could be? I know it is >> something >> to do with the fact that I boosted the images and MapServer doesn't >> like them, >> but I would like to fix it. Suggestions greatly appreciated. > > John, > > I'm afraid I don't have much to offer. I just wanted you to know that > someone had looked at your post and had no bright ideas about why it is > happening. If this is quite important to you, you could file a ticket > on the issue, reducing it to a simple map file with one input GeoTIFF > and a request (ideally with shp2img) that produces the artifacted output. > Then I could dig into this from my end. > > If you do that, you can directly assign the MapServer ticket to > "warmerdam". > > Best regards, From steve.lime at state.mn.us Wed Jun 15 08:23:24 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 15 Jun 2011 10:23:24 -0500 Subject: [mapserver-users] Rendering artefacts when serving raster via WMS In-Reply-To: <4DF8CA13.1030308@pobox.com> References: <4DF2538A020000530000FF58@gw-gwia2.iso.port.ac.uk> <4DF8CA13.1030308@pobox.com> Message-ID: >From the sample it almost looks like the mapserver.jpg is the result of two images being overlayed either on the server (by mapserver) or in the client. The artifacts look like there's an offset applied to one of them because of the parallel lines. How are the images managed (perhaps as tiles)? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Wednesday, June 15, 2011 10:05 AM To: John Westwood; MAPSERVER-USERS Subject: Re: [mapserver-users] Rendering artefacts when serving raster via WMS On 11-06-10 12:25 PM, John Westwood wrote: > Does anybody have any ideas what the problem could be? I know it is something > to do with the fact that I boosted the images and MapServer doesn't like them, > but I would like to fix it. Suggestions greatly appreciated. John, I'm afraid I don't have much to offer. I just wanted you to know that someone had looked at your post and had no bright ideas about why it is happening. If this is quite important to you, you could file a ticket on the issue, reducing it to a simple map file with one input GeoTIFF and a request (ideally with shp2img) that produces the artifacted output. Then I could dig into this from my end. If you do that, you can directly assign the MapServer ticket to "warmerdam". Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mrdouville at shaw.ca Wed Jun 15 14:49:13 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Wed, 15 Jun 2011 14:49:13 -0700 (PDT) Subject: [mapserver-users] Mapserver 6.0 MINSCALEDENOM/MAXSCALEDENOM and different EPSG codes? Message-ID: <1308174553050-6480784.post@n2.nabble.com> We seem to be having some discrepancies in how the MINSCALEDENOM/MAXSCALEDENOM is being respected depending on which EPSG SRS is being requested.(with Mapserver 6.0) For EPSG:3005 things seem to be ok .. however for EPSG:4326 .. MINSCALEDENOM seems to take over and no features are displayed at expected scales. Of note though.. if I set MINSCALEDENOM from ?1000001? to something like ?11?.. I do seem to get back features at somewhat the appropriate scale levels. (but then that hoops the scale dependency for EPSG:3005!) See similar post.. http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg14402.html http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg14402.html Thanks for any assistance.. Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-6-0-MINSCALEDENOM-MAXSCALEDENOM-and-different-EPSG-codes-tp6480784p6480784.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michelle.Douville at gov.bc.ca Wed Jun 15 14:44:09 2011 From: Michelle.Douville at gov.bc.ca (Douville, Michelle R CITZ:EX) Date: Wed, 15 Jun 2011 14:44:09 -0700 Subject: [mapserver-users] Mapserver 6.0 MINSCALEDENOM/MAXSCALEDENOM and different EPSG codes? Message-ID: <778A437F7730AC4490F0CF836C7509EBDB25591F@e7mbx09.idir.bcgov> We seem to be having some discrepancies in how the MINSCALEDENOM/MAXSCALEDENOM is being respected depending on which EPSG SRS is being requested.(with Mapserver 6.0) For EPSG:3005 things seem to be ok .. however for EPSG:4326 .. MINSCALEDENOM seems to take over and no features are displayed at expected scales. Of note though.. if I set MINSCALEDENOM from '1000001' to something like '11'.. I do seem to get back features at somewhat the appropriate scale levels. (but then that hoops the scale dependency for EPSG:3005!) See similar post.. http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg14402.html Thanks for any assistance.. Michelle -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at udel.edu Wed Jun 15 19:24:50 2011 From: john.callahan at udel.edu (John Callahan) Date: Wed, 15 Jun 2011 22:24:50 -0400 Subject: [mapserver-users] Re: WFS intersect request In-Reply-To: References: <4DF0F174.3050002@mapgears.com> Message-ID: This WFS GetFeature request did work if I replaced with the spatial filter. - John On Thu, Jun 9, 2011 at 12:47 PM, John Callahan wrote: > Thanks. Yes, my server does support Intersect filter, according to the > WFS GetCaps file. I'm using the latest MS4W install with MS 6. > > John > > > On Thursday, June 9, 2011, Alexandre Dube wrote: > > > > > > > > > > > > > > Hello, > > > > If you run a WFS GetCapabilities request on your server, it should > > tell which filters it supports, see : > > http://mapserver.org/ogc/filter_encoding.html#server-side > > > > Someone correct me if I'm wrong, but I think MapServer needs to be > > compiled with GEOS in order to do intersect filters. > > > > HTH, > > > > Alexandre > > > > > > On 11-06-09 12:09 PM, John Callahan wrote: > > I have the following WFS intersect request that if > > working with GeoServer, and I'm trying to run this app with > > MapServer. The error I'm getting is: > > > > msWFSGetFeature(): WFS server error. > > Invalid or Unsupported FILTER in GetFeature ... > > > > > > I've dome some reading but not sure exactly what's supported. I > > have used both INTERSECT and INTERSECTS, both return the same > > error. Should I skip these and go with BBOX? If so, I assume I > > would need to get rid of the lowerCorner/upperCorner items and > > just list the coordinates separated by commas. Or could there be > > a problem with the PropertyName = SHAPE? I couldn't find doc on > > what this value should be. My data are either shapefiles or > > postgis layers. > > > > The POST request is: > > > > > service="WFS" version="1.1.0" xsi:schemaLocation=" > http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > xmlns:massgis="http://massgis.state.ma.us/featuretype"> > > > > > > SHAPE > > > srsName="EPSG:26957"> > > 149081.76574899518 > > 163078.62572595105 > > 205627.85303800018 > > 194899.95291598293 > > > > > > > > > > > > > > > > Thanks for any help you can provide. > > > > - John > > > > *********************************** > > John Callahan, Research Scientist > > Delaware Geological Survey > > University of Delaware > > URL: http://www.dgs.udel.edu > > ******************************* > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From afarrell at imgs.ie Thu Jun 16 03:37:45 2011 From: afarrell at imgs.ie (afarrell) Date: Thu, 16 Jun 2011 03:37:45 -0700 (PDT) Subject: [mapserver-users] Rasters Message-ID: <1308220665301-6482500.post@n2.nabble.com> Hi, I've converted some 8 bit rasters to GeoTIFF format and spherical mercator projection using FME. I'm getting large blue edges where the tiles meet: http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg In ArcGIS the tiles appear seamless. Is this because MapServer do not support the nodata tiff tag, as it is not officially part of the geotiff standard (http://www.awaresystems.be/imaging/tiff/tifftags/gdal_nodata.html). I do not believe there is a problem with the files we are writing, as other applications (e.g. ArcCatalog) pick up on the nodata value just fine. Another potential solution is to add an alpha band to the raster instead of a nodata value. Do you think MapServer will support this? Would using ecw images resolve the issue? Here is an excerpt of the MapServer file: # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB IMAGEPATH "C:/ms4w/tmp/" IMAGEURL "C:/ms4w/tmp/" # WMS server settings METADATA 'wms_title' '"TESTMAPFILE"' 'wms_onlineresource' 'http://193.120.94.23:8081//cgi-bin/mapserv.exe?map=C:/MS4W/apps/CacheMapConfig/raster.map' 'wms_srs' 'EPSG:900913' END END LAYER NAME test #DATA "GEOTIFF_SM\O3036-C.tif" STATUS ON TYPE RASTER DEBUG 1 MINSCALE 13500 MAXSCALE 55000 TILEINDEX "ireland.shp" TILEITEM "LOCATION" END Many thanks, Annette -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rasters-tp6482500p6482500.html Sent from the Mapserver - User mailing list archive at Nabble.com. From afarrell at imgs.ie Thu Jun 16 03:47:13 2011 From: afarrell at imgs.ie (afarrell) Date: Thu, 16 Jun 2011 03:47:13 -0700 (PDT) Subject: [mapserver-users] Re: Rasters In-Reply-To: <1308220665301-6482500.post@n2.nabble.com> References: <1308220665301-6482500.post@n2.nabble.com> Message-ID: <1308221233203-6482532.post@n2.nabble.com> We are using MapServer 5.6 Thanks, Annette -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Rasters-tp6482500p6482532.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Thu Jun 16 04:12:16 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 16 Jun 2011 13:12:16 +0200 Subject: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image In-Reply-To: References: Message-ID: Any update on this one? Tamas 2011/5/28 Tamas Szekeres > Folks, > > According to a client's report, the current behaviour of drawing the legend > images may be confusing, as the polygon layer with no fill shows line > thumbnail (zigzag) in the legend image. > I've been tracking down the changes in SVN and came to the conlusion that > this behaviour has been introduced with > http://trac.osgeo.org/mapserver/changeset/2172 8 years ago. > > I'd be curious to know if this approach is satisfactory for all users, or > would it be more convenient to show an empty rectangle in these cases? I > would personally be in favour of drawing a rectangle in order to make it > clear that the layer type is polygon and not line. Or is there any other > reason that I'm not aware of, which makes the current approach more > compelling? > > > Best regards, > > Tamas > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.bagni at marcobagni.com Thu Jun 16 04:29:12 2011 From: m.bagni at marcobagni.com (Marco Bagni) Date: Thu, 16 Jun 2011 13:29:12 +0200 Subject: [mapserver-users] Re: WFS intersect request In-Reply-To: References: <4DF0F174.3050002@mapgears.com> Message-ID: Dear John, let me take your request as the occasion to share a thought with this community. You are experiencing my same problem and your last deduction is correct: BBOX works, for the rest the mismatch between the available documentation and the real implementation of the spatial filters (if really implemented! at this point doubting is legitimate) makes impossible for a normal human being to sort out how to make the Intersect or other filters work. What is missing is the proper syntax on how to describe the feature boundaries that you want to use to perform the spatial filter. I have seen examples where your "SHAPE" was replaced by "Polygon" but also for that statement was not clear how to say what projection (EPSG) use. Fortunately the given (working) example for the BBOX filter that you can find in the documentation is complete (covers also the declaration of the EPSG directive) and works. You and I (and many more users with the same problem) are facing the "other side" of the Open Source. Who writes the code and releases it for public domain, sometimes arranges things in such a way that, elegantly, the users are "suggested" to turn to his commercial consultancy services in order to have the information that makes the whole thing work; he has to put some bread on his table too! But almost all of the problems that we are facing in this specific area depend mostly on us, since I find difficult to think that in so many years nobody has tried to apply a Spatial filter different from BBOX. Most probably these guys used this very list to ask the support from other users but when it came the time to "return" something to the user's community (for instance the simple howto recipe that solved their problem), then all the animosity and kindness shown up in the request message, disappeared and the found solution remained in their code without being shared with the rest of us. Let's start to SHARE. Be generous and the community shall become a real living thing made of requests and also of solutions (real solution, well written and comprehensible to everybody). Many parts of Mapserver features are well supported by this community and the knowledge is already generously shared. This peculiar area (SLD and WFS filtering) is not but the solution is within our realm, just share it. Thank you for your kind attention. Marco On Thu, June 16, 2011 4:24 am, John Callahan wrote: > This WFS GetFeature request did work if I replaced with > the > spatial filter. > > - John > > > > On Thu, Jun 9, 2011 at 12:47 PM, John Callahan > wrote: > >> Thanks. Yes, my server does support Intersect filter, according to the >> WFS GetCaps file. I'm using the latest MS4W install with MS 6. >> >> John >> >> >> On Thursday, June 9, 2011, Alexandre Dub From yassefa at dmsolutions.ca Thu Jun 16 05:18:21 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 16 Jun 2011 08:18:21 -0400 Subject: [mapserver-users] Re: WFS intersect request In-Reply-To: References: <4DF0F174.3050002@mapgears.com> Message-ID: <4DF9F48D.1030100@dmsolutions.ca> Hi John, Can you try something like : Geometry-61.63,45.04 -60.78,45.04 -60.78,46.08 -61.63,46.08, Polygon, MultiPolygon, MultiSurface, Box, LineString are supported as geometries for these operators. gml:Envelope is not right now. Let me know. best regards, \On 09/06/2011 12:47 PM, John Callahan wrote: > Thanks. Yes, my server does support Intersect filter, according to the > WFS GetCaps file. I'm using the latest MS4W install with MS 6. > > John > > > On Thursday, June 9, 2011, Alexandre Dube wrote: >> >> >> >> >> >> Hello, >> >> If you run a WFS GetCapabilities request on your server, it should >> tell which filters it supports, see : >> http://mapserver.org/ogc/filter_encoding.html#server-side >> >> Someone correct me if I'm wrong, but I think MapServer needs to be >> compiled with GEOS in order to do intersect filters. >> >> HTH, >> >> Alexandre >> >> >> On 11-06-09 12:09 PM, John Callahan wrote: >> I have the following WFS intersect request that if >> working with GeoServer, and I'm trying to run this app with >> MapServer. The error I'm getting is: >> >> msWFSGetFeature(): WFS server error. >> Invalid or Unsupported FILTER in GetFeature ... >> >> >> I've dome some reading but not sure exactly what's supported. I >> have used both INTERSECT and INTERSECTS, both return the same >> error. Should I skip these and go with BBOX? If so, I assume I >> would need to get rid of the lowerCorner/upperCorner items and >> just list the coordinates separated by commas. Or could there be >> a problem with the PropertyName = SHAPE? I couldn't find doc on >> what this value should be. My data are either shapefiles or >> postgis layers. >> >> The POST request is: >> >> > service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >> > xmlns:massgis="http://massgis.state.ma.us/featuretype"> >> >> >> SHAPE >> > srsName="EPSG:26957"> >> 149081.76574899518 >> 163078.62572595105 >> 205627.85303800018 >> 194899.95291598293 >> >> >> >> >> >> >> >> Thanks for any help you can provide. >> >> - John >> >> *********************************** >> John Callahan, Research Scientist >> Delaware Geological Survey >> University of Delaware >> URL: http://www.dgs.udel.edu >> ******************************* >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> -- >> Alexandre Dub? >> Mapgears >> www.mapgears.com >> >> >> >> -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dmorissette at mapgears.com Thu Jun 16 05:38:31 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 16 Jun 2011 08:38:31 -0400 Subject: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image In-Reply-To: References: Message-ID: <4DF9F947.7060500@mapgears.com> Personally, I do not feel strongly either way, other than being hesitant to change something that's been in place for 8 years. Perhaps an option could be added to control the type of icon to generate? On 11-06-16 07:12 AM, Tamas Szekeres wrote: > Any update on this one? > > Tamas > > > > 2011/5/28 Tamas Szekeres > > > Folks, > > According to a client's report, the current behaviour of drawing the > legend images may be confusing, as the polygon layer with no fill > shows line thumbnail (zigzag) in the legend image. > I've been tracking down the changes in SVN and came to the conlusion > that this behaviour has been introduced with > http://trac.osgeo.org/mapserver/changeset/2172 8 years ago. > > I'd be curious to know if this approach is satisfactory for all > users, or would it be more convenient to show an empty rectangle in > these cases? I would personally be in favour of drawing a rectangle > in order to make it clear that the layer type is polygon and not > line. Or is there any other reason that I'm not aware of, which > makes the current approach more compelling? > > > Best regards, > > Tamas > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From yassefa at dmsolutions.ca Thu Jun 16 05:47:55 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 16 Jun 2011 08:47:55 -0400 Subject: [mapserver-users] Re: WFS intersect request In-Reply-To: References: <4DF0F174.3050002@mapgears.com> Message-ID: <4DF9FB7B.3060400@dmsolutions.ca> Hi, On 16/06/2011 7:29 AM, Marco Bagni wrote: > Dear John, > > let me take your request as the occasion to share a thought with this > community. > > You are experiencing my same problem and your last deduction is correct: > BBOX works, for the rest the mismatch between the available documentation > and the real implementation of the spatial filters (if really implemented! > at this point doubting is legitimate) makes impossible for a normal human > being to sort out how to make the Intersect or other filters work. > The docs on this at http://mapserver.org/ogc/filter_encoding.html on Spatial operator Intersects suggests to use intersect with polygon. It was not revised for some time but was working at the time of implementation. You can also check examples in the the autotest tools; http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/ (in wfs_filter.map) > What is missing is the proper syntax on how to describe the feature > boundaries that you want to use to perform the spatial filter. > > I have seen examples where your "SHAPE" was replaced by "Polygon" but also > for that statement was not clear how to say what projection (EPSG) use. > > Fortunately the given (working) example for the BBOX filter that you can > find in the documentation is complete (covers also the declaration of the > EPSG directive) and works. > > You and I (and many more users with the same problem) are facing the > "other side" of the Open Source. Who writes the code and releases it for > public domain, sometimes arranges things in such a way that, elegantly, > the users are "suggested" to turn to his commercial consultancy services > in order to have the information that makes the whole thing work; he has > to put some bread on his table too! > wow, that is an unfair comment. I think you are very wrong on your assumptions and how you think people make a living on open source. Non constructive comment here. Sometime it simply takes time to as answer to questions on the mailing list and address every requests. Note that all things put in trac as bugs or enhancements are considered at release time and depending on time and how critical they are, they are addressed. > But almost all of the problems that we are facing in this specific area > depend mostly on us, since I find difficult to think that in so many years > nobody has tried to apply a Spatial filter different from BBOX. > > Most probably these guys used this very list to ask the support from other > users but when it came the time to "return" something to the user's > community (for instance the simple howto recipe that solved their > problem), then all the animosity and kindness shown up in the request > message, disappeared and the found solution remained in their code without > being shared with the rest of us. > > Let's start to SHARE. Be generous and the community shall become a real > living thing made of requests and also of solutions (real solution, well > written and comprehensible to everybody). > > Many parts of Mapserver features are well supported by this community and > the knowledge is already generously shared. This peculiar area (SLD and > WFS filtering) is not but the solution is within our realm, just share it. > I have not tried or checked your specific issue you sent but reading through it, I did not see a MapServer version. Try it with 6.0. If things don't work, provide a sample map/data/test that I can reproduce and attach it to a trac bug. Assefa -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Jun 16 06:04:57 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 16 Jun 2011 09:04:57 -0400 Subject: [mapserver-users] Re: WFS intersect request In-Reply-To: <4DF9FB7B.3060400@dmsolutions.ca> References: <4DF0F174.3050002@mapgears.com> <4DF9FB7B.3060400@dmsolutions.ca> Message-ID: <4DF9FF79.9020508@mapgears.com> On 11-06-16 08:47 AM, Yewondwossen Assefa wrote: > > On 16/06/2011 7:29 AM, Marco Bagni wrote: >> >> You and I (and many more users with the same problem) are facing the >> "other side" of the Open Source. Who writes the code and releases it for >> public domain, sometimes arranges things in such a way that, elegantly, >> the users are "suggested" to turn to his commercial consultancy services >> in order to have the information that makes the whole thing work; he has >> to put some bread on his table too! >> > wow, that is an unfair comment. I think you are very wrong on your > assumptions and how you think people make a living on open source. Non > constructive comment here. > "Unfair" is the only word I can think of as well. The rest of your message was a call for participation which was great (and I'm with you on that part: the community needs to stay involved), but this paragraph was unnecessary and ruined the value of the rest of the message. The MapServer dev community (over 20 committers BTW) is one of the most open and fair ones that I've seen, as demonstrated by the very large and active users community that has been around the project for 15 years, so please do not undermine their efforts with comments like this. There may be other open source projects where users are intentionally being held hostage by the authors using hidden features and lack of documentation, but MapServer is not one of those and I can assure you that the lack of documentation that you encountered for some WFS features is not one of these instances. The problem with lack of docs in many areas is most of the time due to things evolving and lack of time/resources to update documentation. I'm glad to read that YOU WILL contribute back, since user contributed howtos are part of the solution. The wiki is at http://trac.osgeo.org/mapserver/ and waiting for contributions. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Nicolas.Chenier at AGR.GC.CA Thu Jun 16 07:04:03 2011 From: Nicolas.Chenier at AGR.GC.CA (Chenier, Nicolas) Date: Thu, 16 Jun 2011 10:04:03 -0400 Subject: [mapserver-users] Issue after upgrading to MapServer 6.0.0 In-Reply-To: <4DF9FF79.9020508@mapgears.com> Message-ID: Hi all, Our legend and overview maps are not loading correctly when MapServer 6.0.0 is enabled (all works fine when using our original MapServer 5.6 binaries). The error returned for both the legend and the overview map is the same: loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 167) I have searched quickly for this issue but did not find anything. Any help would be greatly appreciated! Thank you, Nicolas From warmerdam at pobox.com Thu Jun 16 07:12:24 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 16 Jun 2011 10:12:24 -0400 Subject: [mapserver-users] Rasters In-Reply-To: <1308220665301-6482500.post@n2.nabble.com> References: <1308220665301-6482500.post@n2.nabble.com> Message-ID: <4DFA0F48.3060509@pobox.com> On 11-06-16 06:37 AM, afarrell wrote: > Hi, > > I've converted some 8 bit rasters to GeoTIFF format and spherical mercator > projection using FME. > I'm getting large blue edges where the tiles meet: > > http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg > http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg > > In ArcGIS the tiles appear seamless. > > Is this because MapServer do not support the nodata tiff tag, as it is not > officially part of the geotiff standard > (http://www.awaresystems.be/imaging/tiff/tifftags/gdal_nodata.html). I > do not believe there is a problem with the files we are writing, as other > applications (e.g. ArcCatalog) pick up on the nodata value just fine. Annette, I would be interested in seeing a gdalinfo report on one of the GeoTIFF files produced with FME. The problem isn't that the tag is non-standard (after all it is a GDAL produced tag and MapServer uses GDAL as does FME and ArcGIS). The problem is just in the MapServer raster layer implementation and whether it honours the metadata. An immediate work around is to figure out what that blue pixel value is and set the OFFSITE keyword in your raster layer to match it. For instance if the blue were red=0, green=149, blue=189 you would add the following in the LAYER: OFFSITE 0 149 189 Ideally though, MapServer would pick it up automatically. > Another potential solution is to add an alpha band to the raster instead of > a nodata value. Do you think MapServer will support this? yes > Would using ecw images resolve the issue? no, and it is often very difficult to keep track of nodata areas in lossily compressed formats like ecw, mrsid, jpeg2000 and jpeg. -- ---------------------------------------+-------------------------------------- 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 bfraser at geoanalytic.com Thu Jun 16 07:19:02 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 16 Jun 2011 08:19:02 -0600 Subject: [mapserver-users] Issue after upgrading to MapServer 6.0.0 In-Reply-To: References: Message-ID: <4DFA10D6.5060904@geoanalytic.com> The most common change I needed to make was moving PATTERN, STYLE, and GAP from my SYMBOL definitions to the STYLE objects. So for example in V5 I had: # -- Symbol Defs: -- SYMBOL NAME 'dashed5' TYPE SIMPLE STYLE 5 5 END END # -- in my LAYER->CLASS object -- STYLE SYMBOL "dashed5" WIDTH 1 COLOR 80 80 80 END And in V6 it is now: SYMBOL NAME 'dashed5' TYPE SIMPLE END # -- in my LAYER->CLASS object -- STYLE SYMBOL "dashed5" PATTERN 5 5 END WIDTH 1 COLOR 80 80 80 END Best Regards, Brent Fraser On 6/16/2011 8:04 AM, Chenier, Nicolas wrote: > Hi all, > > Our legend and overview maps are not loading correctly when MapServer > 6.0.0 is enabled (all works fine when using our original MapServer 5.6 > binaries). > > The error returned for both the legend and the overview map is the same: > > loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 167) > > I have searched quickly for this issue but did not find anything. Any > help would be greatly appreciated! > > Thank you, > > Nicolas > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Thu Jun 16 07:27:34 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 16 Jun 2011 08:27:34 -0600 Subject: [mapserver-users] Rasters In-Reply-To: <4DFA0F48.3060509@pobox.com> References: <1308220665301-6482500.post@n2.nabble.com> <4DFA0F48.3060509@pobox.com> Message-ID: <4DFA12D6.7030807@geoanalytic.com> Frank, Does MapServer now use GDAL by default to read tiffs (instead of its own tiff handling), or do you need to specify a CONNECTIONTYPE? Or perhaps create a VRT file referencing the tiff to force the use of GDAL to read the tiff? Best Regards, Brent Fraser On 6/16/2011 8:12 AM, Frank Warmerdam wrote: > On 11-06-16 06:37 AM, afarrell wrote: >> Hi, >> >> I've converted some 8 bit rasters to GeoTIFF format and spherical >> mercator >> projection using FME. >> I'm getting large blue edges where the tiles meet: >> >> http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg >> http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg >> >> In ArcGIS the tiles appear seamless. >> >> Is this because MapServer do not support the nodata tiff tag, as it >> is not >> officially part of the geotiff standard >> (http://www.awaresystems.be/imaging/tiff/tifftags/gdal_nodata.html). I >> do not believe there is a problem with the files we are writing, as >> other >> applications (e.g. ArcCatalog) pick up on the nodata value just fine. > > Annette, > > I would be interested in seeing a gdalinfo report on one of the > GeoTIFF files produced with FME. The problem isn't that the > tag is non-standard (after all it is a GDAL produced tag and > MapServer uses GDAL as does FME and ArcGIS). The problem is > just in the MapServer raster layer implementation and whether it > honours the metadata. > > An immediate work around is to figure out what that blue pixel > value is and set the OFFSITE keyword in your raster layer to > match it. > > For instance if the blue were red=0, green=149, blue=189 you > would add the following in the LAYER: > > OFFSITE 0 149 189 > > Ideally though, MapServer would pick it up automatically. > >> Another potential solution is to add an alpha band to the raster >> instead of >> a nodata value. Do you think MapServer will support this? > > yes > >> Would using ecw images resolve the issue? > > no, and it is often very difficult to keep track of nodata > areas in lossily compressed formats like ecw, mrsid, jpeg2000 > and jpeg. > > > From warmerdam at pobox.com Thu Jun 16 07:35:10 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 16 Jun 2011 10:35:10 -0400 Subject: [mapserver-users] Rasters In-Reply-To: <4DFA12D6.7030807@geoanalytic.com> References: <1308220665301-6482500.post@n2.nabble.com> <4DFA0F48.3060509@pobox.com> <4DFA12D6.7030807@geoanalytic.com> Message-ID: <4DFA149E.8000200@pobox.com> On 11-06-16 10:27 AM, Brent Fraser wrote: > Frank, > > Does MapServer now use GDAL by default to read tiffs (instead of its own tiff > handling), or do you need to specify a CONNECTIONTYPE? Or perhaps create a VRT > file referencing the tiff to force the use of GDAL to read the tiff? Brent, MapServer now reads all raster layer input using GDAL. All the legacy mechanisms were removed in the last few years. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From John.Westwood at port.ac.uk Thu Jun 16 07:55:24 2011 From: John.Westwood at port.ac.uk (John Westwood) Date: Thu, 16 Jun 2011 15:55:24 +0100 Subject: [mapserver-users] Rendering artefacts when serving raster via WMS Message-ID: <4DFA276D0200005300010164@gw-gwia2.iso.port.ac.uk> Hi Steve Yes, the images are requested as tiles. I should probably try a standard (whole image) request or try shp2img to eliminate that possibility. The requesting software is OpenLayers. The website is using GeoWebCache to cache the tiles, but the test image supplied went directly from MapServer to OpenLayers. I probably won't have time to look at this again until next week. I will keep the list up-to-date with my progress. John Westwood >>> "Lime, Steve D (DNR)" 15/06/11 4:24 PM >>> >From the sample it almost looks like the mapserver.jpg is the result of two images being overlayed either on the server (by mapserver) or in the client. The artifacts look like there's an offset applied to one of them because of the parallel lines. How are the images managed (perhaps as tiles)? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Wednesday, June 15, 2011 10:05 AM To: John Westwood; MAPSERVER-USERS Subject: Re: [mapserver-users] Rendering artefacts when serving raster via WMS On 11-06-10 12:25 PM, John Westwood wrote: > Does anybody have any ideas what the problem could be? I know it is something > to do with the fact that I boosted the images and MapServer doesn't like them, > but I would like to fix it. Suggestions greatly appreciated. John, I'm afraid I don't have much to offer. I just wanted you to know that someone had looked at your post and had no bright ideas about why it is happening. If this is quite important to you, you could file a ticket on the issue, reducing it to a simple map file with one input GeoTIFF and a request (ideally with shp2img) that produces the artifacted output. Then I could dig into this from my end. If you do that, you can directly assign the MapServer ticket to "warmerdam". Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ 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 bfraser at geoanalytic.com Thu Jun 16 08:56:39 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 16 Jun 2011 09:56:39 -0600 Subject: [mapserver-users] Re: WFS intersect request In-Reply-To: References: <4DF0F174.3050002@mapgears.com> Message-ID: <4DFA27B7.6020404@geoanalytic.com> On 6/16/2011 5:29 AM, Marco Bagni wrote: > You and I (and many more users with the same problem) are facing the > "other side" of the Open Source. Who writes the code and releases it for > public domain, sometimes arranges things in such a way that, elegantly, > the users are "suggested" to turn to his commercial consultancy services > in order to have the information that makes the whole thing work; he has > to put some bread on his table too! In 15+ years of dealing with Open Source I've never seen a case where information was withheld to force/encourage users to pay for support. BUT I do understand your frustration; people here offer support for free, but there is a limit to how much time they can spend on a problem. The trick is get someone to look at your problem and spend some time on it. For new users reading this, here is the secret to getting your question answered: - Do your homework: read the available documentation, work through the tutorials - Know your tools and techniques (especially your operating system command line and security framework) - When asking a question, try to distill the problem down to a simple case A more complex question is How do we motivate people to do more documentation and support? Marco, many thanks for your comments; it highlights one of the major challenges of Open Source. Best Regards, Brent Fraser From John.Westwood at port.ac.uk Thu Jun 16 08:41:54 2011 From: John.Westwood at port.ac.uk (John Westwood) Date: Thu, 16 Jun 2011 16:41:54 +0100 Subject: [mapserver-users] Rendering artefacts when serving raster via WMS Message-ID: <4DFA32520200005300010182@gw-gwia2.iso.port.ac.uk> Hi Brent Thanks for the hint. I gave it a try but it did not help. I will have another look at the problem next week. Regards John W. >>> Brent Fraser 15/06/11 4:21 PM >>> John, It looks like a resampling problem. You could try adding PROCESSING "OVERSAMPLE_RATIO=1" PROCESSING "LOAD_FULL_RES_IMAGE=NO" to your layer definition. I had some success with these when trying to get mapserver to render large (and readable) images from OpenStreetMap. Best Regards, Brent Fraser On 6/15/2011 9:04 AM, Frank Warmerdam wrote: > On 11-06-10 12:25 PM, John Westwood wrote: >> Does anybody have any ideas what the problem could be? I know it is >> something >> to do with the fact that I boosted the images and MapServer doesn't >> like them, >> but I would like to fix it. Suggestions greatly appreciated. > > John, > > I'm afraid I don't have much to offer. I just wanted you to know that > someone had looked at your post and had no bright ideas about why it is > happening. If this is quite important to you, you could file a ticket > on the issue, reducing it to a simple map file with one input GeoTIFF > and a request (ideally with shp2img) that produces the artifacted output. > Then I could dig into this from my end. > > If you do that, you can directly assign the MapServer ticket to > "warmerdam". > > Best regards, _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From AFarrell at imgs.ie Thu Jun 16 09:43:01 2011 From: AFarrell at imgs.ie (Annette Farrell) Date: Thu, 16 Jun 2011 17:43:01 +0100 Subject: [mapserver-users] Rasters In-Reply-To: <4DFA149E.8000200@pobox.com> References: <1308220665301-6482500.post@n2.nabble.com><4DFA0F48.3060509@pobox.com> <4DFA12D6.7030807@geoanalytic.com> <4DFA149E.8000200@pobox.com> Message-ID: <2DE6501DCC5DDB4D910BC3BA529014FA6B02EA@mailsrvr.IMGS.local> Many thanks for the quick response. Using the alpha band resolved the issue. The rasters display seamlessly. What format of rasters would you recommend in terms of performance and size? Most people are using virtual servers now and want to use ecw images instead of geotiffs due to the size on disk of the images. Or do most people cache rasters using Kamap for example which means the native format of the raster is redundant. I'm concerned about the size of the cached data and it would be best to connect to the rasters directly if they perform. Thanks, Annette -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: 16 June 2011 15:35 To: Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Rasters On 11-06-16 10:27 AM, Brent Fraser wrote: > Frank, > > Does MapServer now use GDAL by default to read tiffs (instead of its > own tiff handling), or do you need to specify a CONNECTIONTYPE? Or > perhaps create a VRT file referencing the tiff to force the use of GDAL to read the tiff? Brent, MapServer now reads all raster layer input using GDAL. All the legacy mechanisms were removed in the last few years. Best regards, -- ---------------------------------------+-------------------------------- ---------------------------------------+------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Thu Jun 16 10:29:08 2011 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 16 Jun 2011 13:29:08 -0400 Subject: [mapserver-users] Scalebar Object in PHP Mapscript Message-ID: Hi, I create a scalebar like this $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); And create an image of the map with the scalebar embedded On the image, the map is well scaled but the scalebar is not. Is the code above good? Is there some more parameters I should set? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Thu Jun 16 11:42:50 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Thu, 16 Jun 2011 19:42:50 +0100 Subject: [mapserver-users] Mapserver 6.0 WMS Message-ID: <025101cc2c55$32488ec0$96d9ac40$@green@ibstv.co.uk> Hi List I am in the process of upgrading from Mapserver 5.4 to 6.0 , running under Ubuntu 10.04. However I am struggling with the more stringent requirements in Mapserver 6.0 when running as a WMS server. I can see the principles applied in http://mapserver.org/MIGRATION_GUIDE.html#migration, but can't find ticket 1088 or any other documentation to show me how to ensure that the various parameters like FORMAT and STYLES are delivered in the way that Mapserver 6.0 now requires before it will accept a GetMap request. As things stand I can't get past the error message "msWMSGetCapabilities(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings" Can someone point me in the right direction here? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fawcett at state.mn.us Thu Jun 16 11:51:40 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 16 Jun 2011 13:51:40 -0500 Subject: [mapserver-users] Mapserver 6.0 WMS In-Reply-To: <025101cc2c55$32488ec0$96d9ac40$@green@ibstv.co.uk> References: <025101cc2c55$32488ec0$96d9ac40$@green@ibstv.co.uk> Message-ID: Chris, I can't find that ticket either, but this should help. Look at: http://mapserver.org/MIGRATION_GUIDE.html#ogc-web-services And this: http://mapserver.org/development/rfc/ms-rfc-67.html David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: Thursday, June 16, 2011 1:43 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver 6.0 WMS Hi List I am in the process of upgrading from Mapserver 5.4 to 6.0 , running under Ubuntu 10.04. However I am struggling with the more stringent requirements in Mapserver 6.0 when running as a WMS server. I can see the principles applied in http://mapserver.org/MIGRATION_GUIDE.html#migration, but can't find ticket 1088 or any other documentation to show me how to ensure that the various parameters like FORMAT and STYLES are delivered in the way that Mapserver 6.0 now requires before it will accept a GetMap request. As things stand I can't get past the error message "msWMSGetCapabilities(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings" Can someone point me in the right direction here? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Thu Jun 16 11:54:15 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 16 Jun 2011 14:54:15 -0400 Subject: [mapserver-users] Mapserver 6.0 WMS In-Reply-To: <025101cc2c55$32488ec0$96d9ac40$@green@ibstv.co.uk> Message-ID: Chris, Look at this section of the migration guide http://mapserver.org/MIGRATION_GUIDE.html#ogc-web-services You have to specifically enable WMS now. In the MAP WEB section add "ows_enable_request" "*" Mike On 6/16/11 2:42 PM, "Chris Green" wrote: > Hi List > > I am in the process of upgrading from Mapserver 5.4 to 6.0 , running under > Ubuntu 10.04. However I am struggling with the more stringent requirements in > Mapserver 6.0 when running as a WMS server. I can see the principles applied > in http://mapserver.org/MIGRATION_GUIDE.html#migration, but can?t find > ticket 1088 or any other documentation to show me how to ensure that the > various parameters like FORMAT and STYLES are delivered in the way that > Mapserver 6.0 now requires before it will accept a GetMap request. > > As things stand I can?t get past the error message ?msWMSGetCapabilities(): > WMS server error. WMS request not enabled. Check wms/ows_enable_request > settings? > > Can someone point me in the right direction here? > > > > 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 steve.lime at state.mn.us Thu Jun 16 15:31:17 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 16 Jun 2011 17:31:17 -0500 Subject: [mapserver-users] Scalebar Object in PHP Mapscript In-Reply-To: References: Message-ID: What do you mean by "the map is well scaled but the scalebar is not "? Other common params would be SIZE, STYLE and INTERVALS. Does the map have units set? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Thursday, June 16, 2011 12:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Scalebar Object in PHP Mapscript Hi, I create a scalebar like this $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); And create an image of the map with the scalebar embedded On the image, the map is well scaled but the scalebar is not. Is the code above good? Is there some more parameters I should set? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrdouville at shaw.ca Thu Jun 16 15:41:47 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Thu, 16 Jun 2011 15:41:47 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver 6.0 MINSCALEDENOM/MAXSCALEDENOM and different EPSG codes? In-Reply-To: <778A437F7730AC4490F0CF836C7509EBDB25591F@e7mbx09.idir.bcgov> References: <778A437F7730AC4490F0CF836C7509EBDB25591F@e7mbx09.idir.bcgov> Message-ID: <1308264107553-6485065.post@n2.nabble.com> Additional info.. This works.. MAP NAME TestScale EXTENT -140 50 -100 90 SIZE 100 100 UNITS DD PROJECTION "init=epsg:4326" END This doesn't... MAP NAME TestScale EXTENT 200000 200000 1900000 1900000 SIZE 100 100 UNITS METERS PROJECTION "init=epsg:3005" END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-6-0-MINSCALEDENOM-MAXSCALEDENOM-and-different-EPSG-codes-tp6480805p6485065.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sakaroyban at yahoo.com Thu Jun 16 22:52:01 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Thu, 16 Jun 2011 22:52:01 -0700 (PDT) Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <4DF773B8.1000907@geoanalytic.com> References: <134627.96201.qm@web121619.mail.ne1.yahoo.com> <4DF773B8.1000907@geoanalytic.com> Message-ID: <433062.77447.qm@web121619.mail.ne1.yahoo.com> Thanks a lot brent I checked provided link and i;m gonna give it a try. About ur helpful advices, i'm confused about how to save data in PostGIS? with what schema? I mean i have to keep track of each paced point by moving objects. Should i record each point as a record, so it means one table per moving object ? Also for displaying these varaiant data, there should some sort of plan. I don't think i'm able to say to MapServer CGI at each second connect to PostGIS and read the new data, then i have to use MapScript. Am i right? (Can this process be done via OpenLayers?) Best Regards ________________________________ From: Brent Fraser To: Saka Royban Cc: MapServer Sent: Tue, June 14, 2011 7:14:08 PM Subject: Re: [mapserver-users] Asking for guidelines about a project Saka, I've had good success using PostGIS for data storage in implementing tracking systems. While you'll need to create your own code for updating the positions in the database, mapserver can read points from PostGIS and can render the points into a map image for use with the OpenLayers client. There are other solutions too, like OpenGTS (http://opengts.sourceforge.net/index.html) Best Regards, Brent Fraser On 6/14/2011 12:08 AM, Saka Royban wrote: Hi all. >Strictly Speaking, i have a project that i should display some moving >objects on a map via browser. >Generally, i don't know how to start? i mean how should i save these >time-based objects in DB and how to retrieve and display them via >Mapserver? where should i use client side scripting like OpneLayers? >Any help woudbe greatly appreciated. > >Thanks in advance > > _______________________________________________ mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bluecarto at gmail.com Fri Jun 17 06:33:19 2011 From: bluecarto at gmail.com (Pierre GIRAUD) Date: Fri, 17 Jun 2011 15:33:19 +0200 Subject: [mapserver-users] Cascading Mapserver - WMS client - GetLegendGraphic ? In-Reply-To: <99F4D44109DA3A448A9C811B14E04B15161878B9C5@donkey.landcare.ad.landcareresearch.co.nz> References: <99F4D44109DA3A448A9C811B14E04B15161878B9C5@donkey.landcare.ad.landcareresearch.co.nz> Message-ID: Can someone please confirm that cascading getLegendGraphic is not supported ? Thanks. Pierre On Fri, May 20, 2011 at 6:34 AM, Andrew Cowie wrote: > Hello list, > > > > We have a cascading WMS using Mapserver as a client to request maps from > another Mapserver. We have it working well, however we are wondering whether > it is possible to do a GetLegendGraphic request to this top level Mapserver > and have it in turn pass on that request to the underlying mapserver, which > would then return the legend graphic. > > > > Here?s a snippet of our ?top level? Mapserver mapfile, which sits on our > public server: > > ... > > ?????? LEGEND > > ? ??????????? STATUS OFF > > ????????????? KEYSIZE 30 15 > > ????????????? KEYSPACING 10 10 > > ????????????? LABEL > > ???????????????????? COLOR 0 0 0 > > ???????????????????? FONT 'arialbd' > > ???????????????????? TYPE truetype > > ???????????????????? SIZE 10 > > ????????????? END > > ?????? END > > ?????? LAYER > > ????????????? NAME ?coastpoly? > > ????????????? TYPE RASTER > > ????????????? CONNECTIONTYPE WMS > > ????????????? CONNECTION "http://ourprivateserver/wms?" > > ????????????? PROCESSING "CLOSE_CONNECTION=DEFER" > > > > ????????????? METADATA > > ???????????????????? "wms_name"?????????? ?????? "coastpoly" > > ???????????????????? "wms_title" ??????????????? "Topographic Coastline > Polygons" > > ???????????????????? "wms_server_version"? ????? "1.1.1" > > ???????????????????? "wms_format"????????? ????? "image/png" > > ???????????????????? "wms_srs"?????????????????? "EPSG:2193 EPSG:27200 > EPSG:4326" > > ????????????? END > > ?????? END > > ... > > > > And a snippet from our underlying Mapserver: > > ... > > ?????? LEGEND > > ? ??????????? STATUS OFF > > ????????????? KEYSIZE 30 15 > > ????????????? KEYSPACING 10 10 > > ????????????? LABEL > > ???????????????????? COLOR 0 0 0 > > ???????????????????? FONT 'arialbd' > > ???????????????????? TYPE truetype > > ???????????????????? SIZE 10 > > ????????????? END > > ?????? END > > ?????? LAYER > > ????????????? NAME 'coastpoly' > > ????????????? TYPE POLYGON > > ????????????? STATUS OFF > > ????????????? CONNECTIONTYPE postgis > > ????????????? CONNECTION "dbname='ourdb' host=?ourprivateserver? port=5432 > user='user' password=pass" > > ????????????? PROCESSING "CLOSE_CONNECTION=DEFER" > > ????????????? DATA 'the_geom FROM "data"."coastlinepoly" USING UNIQUE gid > USING srid=2193' > > ?????? ?????? PROJECTION > > ???????????????????? "proj=tmerc" "lat_0=0" "lon_0=173" "k=0.9996" > "x_0=1600000" "y_0=10000000" "ellps=GRS80" "towgs84=0,0,0,0,0,0,0" > "units=m" > > ????????????? END > > ????????????? EXTENT 983515.7211 4728776.8709 2117458.3527 6223676.2306 > > ????????????? METADATA > > ???????????????????? "wms_name"?????????? ?????? "coastpoly" > > ????????????? ?????? "wms_title" ??????????????? "Topographic Coastline > Polygons" > > ???????????????????? "wms_version"?????????????? "1.1.1" > > ???????????????????? "wms_format"????????? ????? "image/png" > > ???????????????????? "wms_srs"?????????????????? "EPSG:2193 EPSG:27200 > EPSG:4326" > > ???????????????????? "wms_abstract" > "Abstract" > > ????????????? END > > ????????????? CLASS > > ???????????????????? NAME 'Coast Polygon' > > ???????????????????? STYLE > > ??????????????????????????? COLOR 225 223 197 > > ???????????????????? END > > ????????????? END > > ?????? END > > ... > > > > I think we may be missing something obvious here, so any ideas greatly > appreciated... J > > > > Andrew > > > > ________________________________ > Please consider the environment before printing this email > Warning: This electronic message together with any attachments is > confidential. If you receive it in error: (i) you must not read, use, > disclose, copy or retain it; (ii) please contact the sender immediately by > reply email and then delete the emails. > The views expressed in this email may not be those of Landcare Research New > Zealand Limited. http://www.landcareresearch.co.nz > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Pierre GIRAUD http://www.camptocamp.com From dmorissette at mapgears.com Fri Jun 17 06:40:39 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 17 Jun 2011 09:40:39 -0400 Subject: [mapserver-users] Cascading Mapserver - WMS client - GetLegendGraphic ? In-Reply-To: References: <99F4D44109DA3A448A9C811B14E04B15161878B9C5@donkey.landcare.ad.landcareresearch.co.nz> Message-ID: <4DFB5957.2000103@mapgears.com> On 11-06-17 09:33 AM, Pierre GIRAUD wrote: > Can someone please confirm that cascading getLegendGraphic is not supported ? > That's correct. Cascading of GetLegendGraphic is not currently supported. Coincidentally, a ticket was also created yesterday about the same thing: http://trac.osgeo.org/mapserver/ticket/3923 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Steve.Toutant at inspq.qc.ca Fri Jun 17 06:41:00 2011 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 17 Jun 2011 09:41:00 -0400 Subject: [mapserver-users] Cascading Mapserver - WMS client - GetLegendGraphic ? In-Reply-To: Message-ID: cascading getLegendGraphic is not supported I already opened a ticket...yesterday! for this enhancement Ticket URL: Steve Pierre GIRAUD @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2011-06-17 09:33 A Andrew Cowie cc "mapserver-users at lists.osgeo.org" Objet Re: [mapserver-users] Cascading Mapserver - WMS client - GetLegendGraphic ? Can someone please confirm that cascading getLegendGraphic is not supported ? Thanks. Pierre On Fri, May 20, 2011 at 6:34 AM, Andrew Cowie wrote: > Hello list, > > > > We have a cascading WMS using Mapserver as a client to request maps from > another Mapserver. We have it working well, however we are wondering whether > it is possible to do a GetLegendGraphic request to this top level Mapserver > and have it in turn pass on that request to the underlying mapserver, which > would then return the legend graphic. > > > > Here?s a snippet of our ?top level? Mapserver mapfile, which sits on our > public server: > > ... > > LEGEND > > STATUS OFF > > KEYSIZE 30 15 > > KEYSPACING 10 10 > > LABEL > > COLOR 0 0 0 > > FONT 'arialbd' > > TYPE truetype > > SIZE 10 > > END > > END > > LAYER > > NAME ?coastpoly? > > TYPE RASTER > > CONNECTIONTYPE WMS > > CONNECTION "http://ourprivateserver/wms?" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > > > METADATA > > "wms_name" "coastpoly" > > "wms_title" "Topographic Coastline > Polygons" > > "wms_server_version" "1.1.1" > > "wms_format" "image/png" > > "wms_srs" "EPSG:2193 EPSG:27200 > EPSG:4326" > > END > > END > > ... > > > > And a snippet from our underlying Mapserver: > > ... > > LEGEND > > STATUS OFF > > KEYSIZE 30 15 > > KEYSPACING 10 10 > > LABEL > > COLOR 0 0 0 > > FONT 'arialbd' > > TYPE truetype > > SIZE 10 > > END > > END > > LAYER > > NAME 'coastpoly' > > TYPE POLYGON > > STATUS OFF > > CONNECTIONTYPE postgis > > CONNECTION "dbname='ourdb' host=?ourprivateserver? port=5432 > user='user' password=pass" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > DATA 'the_geom FROM "data"."coastlinepoly" USING UNIQUE gid > USING srid=2193' > > PROJECTION > > "proj=tmerc" "lat_0=0" "lon_0=173" "k=0.9996" > "x_0=1600000" "y_0=10000000" "ellps=GRS80" "towgs84=0,0,0,0,0,0,0" > "units=m" > > END > > EXTENT 983515.7211 4728776.8709 2117458.3527 6223676.2306 > > METADATA > > "wms_name" "coastpoly" > > "wms_title" "Topographic Coastline > Polygons" > > "wms_version" "1.1.1" > > "wms_format" "image/png" > > "wms_srs" "EPSG:2193 EPSG:27200 > EPSG:4326" > > "wms_abstract" > "Abstract" > > END > > CLASS > > NAME 'Coast Polygon' > > STYLE > > COLOR 225 223 197 > > END > > END > > END > > ... > > > > I think we may be missing something obvious here, so any ideas greatly > appreciated... J > > > > Andrew > > > > ________________________________ > Please consider the environment before printing this email > Warning: This electronic message together with any attachments is > confidential. If you receive it in error: (i) you must not read, use, > disclose, copy or retain it; (ii) please contact the sender immediately by > reply email and then delete the emails. > The views expressed in this email may not be those of Landcare Research New > Zealand Limited. http://www.landcareresearch.co.nz > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Pierre GIRAUD http://www.camptocamp.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 mrdouville at shaw.ca Fri Jun 17 07:13:44 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Fri, 17 Jun 2011 07:13:44 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver 6.0 MINSCALEDENOM/MAXSCALEDENOM and different EPSG codes? In-Reply-To: <1308264107553-6485065.post@n2.nabble.com> References: <778A437F7730AC4490F0CF836C7509EBDB25591F@e7mbx09.idir.bcgov> <1308264107553-6485065.post@n2.nabble.com> Message-ID: <1308320024010-6487265.post@n2.nabble.com> Bug reported..Thanks Chris Hodgson.. http://trac.osgeo.org/mapserver/ticket/3883 http://trac.osgeo.org/mapserver/ticket/3883 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-6-0-MINSCALEDENOM-MAXSCALEDENOM-and-different-EPSG-codes-tp6480805p6487265.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From luis.peinado at geodata.es Fri Jun 17 08:11:27 2011 From: luis.peinado at geodata.es (luis peinado) Date: Fri, 17 Jun 2011 17:11:27 +0200 Subject: [mapserver-users] Postgis simplify function and mapserver Message-ID: Hi list, I wish to change a query parameter in my postgis layer depending of the scale of the map I want, let's see: DATA "the_geom FROM (SELECT finfres.gid as gid, ST_Transform(simplify(ambits.the_geom,5),23031) as the_geom ... So I would like to know if it's possible to pass the second parameter of simplify function depending of the map scale, without any value on the querystring (using %%). Thanks a lot for any help. -- *Llu?s Peinado* ***Geodata Sistemas,SL.* luis.peinado at geodata.es T. 933 035 367 (ext. 21) F. 933 080 071 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Jun 17 08:19:20 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 17 Jun 2011 09:19:20 -0600 Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <433062.77447.qm@web121619.mail.ne1.yahoo.com> References: <134627.96201.qm@web121619.mail.ne1.yahoo.com> <4DF773B8.1000907@geoanalytic.com> <433062.77447.qm@web121619.mail.ne1.yahoo.com> Message-ID: <4DFB7078.9000307@geoanalytic.com> The database schema depends on what you want to do with the data (display current position? A track of historical positions?), and how much data you expect (how may objects will be tracked? how often will they report?). A simple schema would have one table (e.g. "vehicles"), with one row per tracked object Table: Vehicles ID: Name: Position: Status: UpdateTime: 1 My Car point(51,-115) active 2011-06-16 10:23:54+02 2 Another Car point(52,-116) inactive 2010-05-15 11:13:12+02 With this schema, when a new position arrives for "My Car", an update statement is issued to change the row's Position and UpdateTime (and possibly Status). The table is treated as a PostGIS point layer by mapserver. In my implementations, the position data was updated every 30 to 60 minutes (they were ships and construction vehicles), so there was no need to ask mapserver to regenerate a graphic every second; an updated map was shown whenever a user did a pan or zoom. You may be able to configure OpenLayers to do a CGI request to mapserver every few seconds, but I've never done that. Best Regards, Brent Fraser On 6/16/2011 11:52 PM, Saka Royban wrote: > Thanks a lot brent > I checked provided link and i;m gonna give it a try. > About ur helpful advices, i'm confused about how to save data in > PostGIS? with what schema? > I mean i have to keep track of each paced point by moving objects. > Should i record each point as a record, so it means one table per > moving object ? > Also for displaying these varaiant data, there should some sort of > plan. I don't think i'm able to say to MapServer CGI at each second > connect to PostGIS and read the new data, then i have to use > MapScript. Am i right? (Can this process be done via OpenLayers?) > > Best Regards > > ------------------------------------------------------------------------ > *From:* Brent Fraser > *To:* Saka Royban > *Cc:* MapServer > *Sent:* Tue, June 14, 2011 7:14:08 PM > *Subject:* Re: [mapserver-users] Asking for guidelines about a project > > Saka, > > I've had good success using PostGIS for data storage in implementing > tracking systems. While you'll need to create your own code for > updating the positions in the database, mapserver can read points from > PostGIS and can render the points into a map image for use with the > OpenLayers client. > > There are other solutions too, like OpenGTS > (http://opengts.sourceforge.net/index.html) > Best Regards, > Brent Fraser > > On 6/14/2011 12:08 AM, Saka Royban wrote: >> Hi all. >> Strictly Speaking, i have a project that i should display some moving >> objects on a map via browser. >> Generally, i don't know how to start? i mean how should i save these >> time-based objects in DB and how to retrieve and display them via >> Mapserver? where should i use client side scripting like OpneLayers? >> Any help woudbe greatly appreciated. >> >> Thanks in advance >> >> >> _______________________________________________ >> 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.Toutant at inspq.qc.ca Fri Jun 17 09:18:53 2011 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 17 Jun 2011 12:18:53 -0400 Subject: [mapserver-users] Scalebar Object in PHP Mapscript In-Reply-To: Message-ID: Yes the units are set. What do you mean by ?the map is well scaled but the scalebar is not ?? I mean the image printed is the same size as the map in my application. But it seems that the scalebar is not appropriate $oMap->setProjection is set to 900913 in php mapscript, The WMS called is in Projection EPSG:32198, but 900913 is in the list of available projections Is it possible that php mapscript returns the map image in 900913, but a scalebar in 32198? Any other ideas Thank you for your help, Steve "Lime, Steve D (DNR)" 2011-06-16 18:31 A "Steve.Toutant at inspq.qc.ca" , "mapserver-users at lists.osgeo.org" cc Objet RE: [mapserver-users] Scalebar Object in PHP Mapscript What do you mean by ?the map is well scaled but the scalebar is not ?? Other common params would be SIZE, STYLE and INTERVALS. Does the map have units set? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Thursday, June 16, 2011 12:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Scalebar Object in PHP Mapscript Hi, I create a scalebar like this $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); And create an image of the map with the scalebar embedded On the image, the map is well scaled but the scalebar is not. Is the code above good? Is there some more parameters I should set? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakaroyban at yahoo.com Fri Jun 17 09:56:39 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Fri, 17 Jun 2011 09:56:39 -0700 (PDT) Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <4DFB7078.9000307@geoanalytic.com> References: <134627.96201.qm@web121619.mail.ne1.yahoo.com> <4DF773B8.1000907@geoanalytic.com> <433062.77447.qm@web121619.mail.ne1.yahoo.com> <4DFB7078.9000307@geoanalytic.com> Message-ID: <873468.91062.qm@web121607.mail.ne1.yahoo.com> Thanks for ur answer and also Josh's answer. In fact, i should be able to display path of vehicles (usually more than 1 vehicle in display area) and also be able to save points passed by vehicles and time of passing (for some queries). Cause of that, i thought maybe i need one table per vehicle. Do u think any more idea? Best Regards ________________________________ From: Brent Fraser To: Saka Royban Cc: MapServer Sent: Fri, June 17, 2011 7:49:20 PM Subject: Re: [mapserver-users] Asking for guidelines about a project The database schema depends on what you want to do with the data (display current position? A track of historical positions?), and how much data you expect (how may objects will be tracked? how often will they report?). A simple schema would have one table (e.g. "vehicles"), with one row per tracked object Table: Vehicles ID: Name: Position: Status: UpdateTime: 1 My Car point(51,-115) active 2011-06-16 10:23:54+02 2 Another Car point(52,-116) inactive 2010-05-15 11:13:12+02 With this schema, when a new position arrives for "My Car", an update statement is issued to change the row's Position and UpdateTime (and possibly Status). The table is treated as a PostGIS point layer by mapserver. In my implementations, the position data was updated every 30 to 60 minutes (they were ships and construction vehicles), so there was no need to ask mapserver to regenerate a graphic every second; an updated map was shown whenever a user did a pan or zoom. You may be able to configure OpenLayers to do a CGI request to mapserver every few seconds, but I've never done that. Best Regards, Brent Fraser On 6/16/2011 11:52 PM, Saka Royban wrote: Thanks a lot brent >I checked provided link and i;m gonna give it a try. >About ur helpful advices, i'm confused about how to save data in >PostGIS? with what schema? > >I mean i have to keep track of each paced point by moving objects. >Should i record each point as a record, so it means one table per >moving object ? >Also for displaying these varaiant data, there should some sort of >plan. I don't think i'm able to say to MapServer CGI at each second >connect to PostGIS and read the new data, then i have to use >MapScript. Am i right? (Can this process be done via OpenLayers?) > >Best Regards > > > > ________________________________ From: Brent Fraser >To: Saka Royban >Cc: MapServer >Sent: Tue, June 14, 2011 7:14:08 PM >Subject: Re: [mapserver-users] Asking for guidelines about a >project > > Saka, > > I've had good success using PostGIS for data storage in >implementing tracking systems. While you'll need to create your own >code for updating the positions in the database, mapserver can read >points from PostGIS and can render the points into a map image for >use with the OpenLayers client. > > There are other solutions too, like OpenGTS >(http://opengts.sourceforge.net/index.html) > >Best Regards, Brent Fraser >On 6/14/2011 12:08 AM, Saka Royban wrote: >Hi all. >>Strictly Speaking, i have a project that i should display some >>moving objects on a map via browser. >>Generally, i don't know how to start? i mean how should i save >>these time-based objects in DB and how to retrieve and display >>them via Mapserver? where should i use client side scripting >>like OpneLayers? >>Any help woudbe greatly appreciated. >> >>Thanks in advance >> >> _______________________________________________ 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 dmorissette at mapgears.com Fri Jun 17 09:58:58 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 17 Jun 2011 12:58:58 -0400 Subject: [mapserver-users] Scalebar Object in PHP Mapscript In-Reply-To: References: Message-ID: <4DFB87D2.9010302@mapgears.com> On 11-06-17 12:18 PM, Steve.Toutant at inspq.qc.ca wrote: > > $oMap->setProjection is set to 900913 in php mapscript, > The WMS called is in Projection EPSG:32198, but 900913 is in the list of > available projections > Did you set the units at the map level? Setting the projection is not enough. i.e. $oMap->set("units", MS_METERS); -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Steve.Toutant at inspq.qc.ca Fri Jun 17 10:08:33 2011 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 17 Jun 2011 13:08:33 -0400 Subject: RE [Polluriel potentiel] Re: [mapserver-users] Scalebar Object in PHP Mapscript In-Reply-To: <4DFB87D2.9010302@mapgears.com> Message-ID: Here is my definition $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); Daniel Morissette @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2011-06-17 12:58 A mapserver-users at lists.osgeo.org cc Objet [Polluriel potentiel] Re: [mapserver-users] Scalebar Object in PHP Mapscript On 11-06-17 12:18 PM, Steve.Toutant at inspq.qc.ca wrote: > > $oMap->setProjection is set to 900913 in php mapscript, > The WMS called is in Projection EPSG:32198, but 900913 is in the list of > available projections > Did you set the units at the map level? Setting the projection is not enough. i.e. $oMap->set("units", MS_METERS); -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ 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 bfraser at geoanalytic.com Fri Jun 17 10:27:00 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 17 Jun 2011 11:27:00 -0600 Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <873468.91062.qm@web121607.mail.ne1.yahoo.com> References: <134627.96201.qm@web121619.mail.ne1.yahoo.com> <4DF773B8.1000907@geoanalytic.com> <433062.77447.qm@web121619.mail.ne1.yahoo.com> <4DFB7078.9000307@geoanalytic.com> <873468.91062.qm@web121607.mail.ne1.yahoo.com> Message-ID: <4DFB8E64.70203@geoanalytic.com> Well, it's up to you how to model the objects (that's the great thing about relational databases). Typically, I've added a table of "Historical Positions" with basically the same structure as the "vehicle" table (but in that case the unique key is not the vehicle ID, but instead just a system assigned key like OID). As for the points passed by, I would not save that information in a table, instead consider it the result of a spatial query (say in a PostGIS view) at display time. A system like this usually takes a large of amount of time for requirements, investigation, design, and prototyping. And of course, construction, testing, documentation, and training. If you want something more packaged you can just download and install, you may want to do some searching on the web. Best Regards, Brent Fraser On 6/17/2011 10:56 AM, Saka Royban wrote: > Thanks for ur answer and also Josh's answer. > In fact, i should be able to display path of vehicles (usually more > than 1 vehicle in display area) and also be able to save points passed > by vehicles and time of passing (for some queries). Cause of that, i > thought maybe i need one table per vehicle. > Do u think any more idea? > > Best Regards > > ------------------------------------------------------------------------ > *From:* Brent Fraser > *To:* Saka Royban > *Cc:* MapServer > *Sent:* Fri, June 17, 2011 7:49:20 PM > *Subject:* Re: [mapserver-users] Asking for guidelines about a project > > The database schema depends on what you want to do with the data > (display current position? A track of historical positions?), and how > much data you expect (how may objects will be tracked? how often will > they report?). > > A simple schema would have one table (e.g. "vehicles"), with one row > per tracked object > > Table: Vehicles > > ID: Name: Position: Status: UpdateTime: > 1 My Car point(51,-115) active 2011-06-16 10:23:54+02 > 2 Another Car point(52,-116) inactive 2010-05-15 11:13:12+02 > > With this schema, when a new position arrives for "My Car", an update > statement is issued to change the row's Position and UpdateTime (and > possibly Status). > > The table is treated as a PostGIS point layer by mapserver. > > In my implementations, the position data was updated every 30 to 60 > minutes (they were ships and construction vehicles), so there was no > need to ask mapserver to regenerate a graphic every second; an updated > map was shown whenever a user did a pan or zoom. You may be able to > configure OpenLayers to do a CGI request to mapserver every few > seconds, but I've never done that. > > Best Regards, > Brent Fraser > > On 6/16/2011 11:52 PM, Saka Royban wrote: >> Thanks a lot brent >> I checked provided link and i;m gonna give it a try. >> About ur helpful advices, i'm confused about how to save data in >> PostGIS? with what schema? >> I mean i have to keep track of each paced point by moving objects. >> Should i record each point as a record, so it means one table per >> moving object ? >> Also for displaying these varaiant data, there should some sort of >> plan. I don't think i'm able to say to MapServer CGI at each second >> connect to PostGIS and read the new data, then i have to use >> MapScript. Am i right? (Can this process be done via OpenLayers?) >> >> Best Regards >> >> ------------------------------------------------------------------------ >> *From:* Brent Fraser >> *To:* Saka Royban >> *Cc:* MapServer >> *Sent:* Tue, June 14, 2011 7:14:08 PM >> *Subject:* Re: [mapserver-users] Asking for guidelines about a project >> >> Saka, >> >> I've had good success using PostGIS for data storage in >> implementing tracking systems. While you'll need to create your own >> code for updating the positions in the database, mapserver can read >> points from PostGIS and can render the points into a map image for >> use with the OpenLayers client. >> >> There are other solutions too, like OpenGTS >> (http://opengts.sourceforge.net/index.html) >> Best Regards, >> Brent Fraser >> >> On 6/14/2011 12:08 AM, Saka Royban wrote: >>> Hi all. >>> Strictly Speaking, i have a project that i should display some >>> moving objects on a map via browser. >>> Generally, i don't know how to start? i mean how should i save these >>> time-based objects in DB and how to retrieve and display them via >>> Mapserver? where should i use client side scripting like OpneLayers? >>> Any help woudbe greatly appreciated. >>> >>> Thanks in advance >>> >>> >>> _______________________________________________ >>> 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 Steve.Toutant at inspq.qc.ca Fri Jun 17 10:43:01 2011 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 17 Jun 2011 13:43:01 -0400 Subject: [mapserver-users] Scalebar Object in PHP Mapscript In-Reply-To: Message-ID: I have this set as well $oMap->set("units", MS_METERS); But I still have the problem Steve "Lime, Steve D (DNR)" 2011-06-16 18:31 A "Steve.Toutant at inspq.qc.ca" , "mapserver-users at lists.osgeo.org" cc Objet RE: [mapserver-users] Scalebar Object in PHP Mapscript What do you mean by ?the map is well scaled but the scalebar is not ?? Other common params would be SIZE, STYLE and INTERVALS. Does the map have units set? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve.Toutant at inspq.qc.ca Sent: Thursday, June 16, 2011 12:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Scalebar Object in PHP Mapscript Hi, I create a scalebar like this $oMap->scalebar->set("units", MS_METERS); $oMap->scalebar->outlinecolor->setRGB(0,0,0); $oMap->scalebar->set("status", MS_EMBED); And create an image of the map with the scalebar embedded On the image, the map is well scaled but the scalebar is not. Is the code above good? Is there some more parameters I should set? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at remoteinformation.com.au Sun Jun 19 06:31:56 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Sun, 19 Jun 2011 23:31:56 +1000 Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <20110618013145.12740E01BDF@lists.osgeo.org> References: <20110618013145.12740E01BDF@lists.osgeo.org> Message-ID: <1DA4BFA0-9284-4721-801A-740F2EB468EF@remoteinformation.com.au> I've done similar to Brent's suggestions, but tracking boats with 2 hourly updates. We just stored all the location data in one table with a reference id to a boat name and details in another project. The default setting showed the current location and the last 72 hours of track... Using a query like select blah order by recordtime desc limit 36. we then created a linestring and mapped those. It was a bit heavy on the poor old (really old) server, but there were only about 70 boats all up. In retrospect (and if I had more boats or users), I would create two tables, one holding the all the point locations, and one holding the default tracks. The default tracks would be updated by a trigger on insertion of the new records into the locations table, rather than all being computed on the fly. Anyway, 101 ways to skin a cat. cheers Ben On 18/06/2011, at 11:31 AM, mapserver-users-request at lists.osgeo.org wrote: >>>> From: Brent Fraser >>>> Date: 18 June 2011 3:27:00 AM AEST >>>> To: Saka Royban >>>> Cc: MapServer >>>> Subject: Re: [mapserver-users] Asking for guidelines about a project >>>> >>>> >>>> Well, it's up to you how to model the objects (that's the great thing about relational databases). Typically, I've added a table of "Historical Positions" with basically the same structure as the "vehicle" table (but in that case the unique key is not the vehicle ID, but instead just a system assigned key like OID). As for the points passed by, I would not save that information in a table, instead consider it the result of a spatial query (say in a PostGIS view) at display time. >>>> >>>> A system like this usually takes a large of amount of time for requirements, investigation, design, and prototyping. And of course, construction, testing, documentation, and training. If you want something more packaged you can just download and install, you may want to do some searching on the web. >>>> >>>> Best Regards, >>>> Brent Fraser >>>> >>>> On 6/17/2011 10:56 AM, Saka Royban wrote: >>>>> >>>>> Thanks for ur answer and also Josh's answer. >>>>> In fact, i should be able to display path of vehicles (usually more than 1 vehicle in display area) and also be able to save points passed by vehicles and time of passing (for some queries). Cause of that, i thought maybe i need one table per vehicle. >>>>> Do u think any more idea? >>>>> >>>>> Best Regards >>>>> >>>>> From: Brent Fraser >>>>> To: Saka Royban >>>>> Cc: MapServer >>>>> Sent: Fri, June 17, 2011 7:49:20 PM >>>>> Subject: Re: [mapserver-users] Asking for guidelines about a project >>>>> >>>>> The database schema depends on what you want to do with the data (display current position? A track of historical positions?), and how much data you expect (how may objects will be tracked? how often will they report?). >>>>> >>>>> A simple schema would have one table (e.g. "vehicles"), with one row per tracked object >>>>> >>>>> Table: Vehicles >>>>> >>>>> ID: Name: Position: Status: UpdateTime: >>>>> 1 My Car point(51,-115) active 2011-06-16 10:23:54+02 >>>>> 2 Another Car point(52,-116) inactive 2010-05-15 11:13:12+02 >>>>> >>>>> With this schema, when a new position arrives for "My Car", an update statement is issued to change the row's Position and UpdateTime (and possibly Status). >>>>> >>>>> The table is treated as a PostGIS point layer by mapserver. >>>>> >>>>> In my implementations, the position data was updated every 30 to 60 minutes (they were ships and construction vehicles), so there was no need to ask mapserver to regenerate a graphic every second; an updated map was shown whenever a user did a pan or zoom. You may be able to configure OpenLayers to do a CGI request to mapserver every few seconds, but I've never done that. >>>>> >>>>> Best Regards, >>>>> Brent Fraser >>>>> >>>>> On 6/16/2011 11:52 PM, Saka Royban wrote: >>>>>> >>>>>> Thanks a lot brent >>>>>> I checked provided link and i;m gonna give it a try. >>>>>> About ur helpful advices, i'm confused about how to save data in PostGIS? with what schema? >>>>>> I mean i have to keep track of each paced point by moving objects. Should i record each point as a record, so it means one table per moving object ? >>>>>> Also for displaying these varaiant data, there should some sort of plan. I don't think i'm able to say to MapServer CGI at each second connect to PostGIS and read the new data, then i have to use MapScript. Am i right? (Can this process be done via OpenLayers?) >>>>>> >>>>>> Best Regards >>>>>> >>>>>> From: Brent Fraser >>>>>> To: Saka Royban >>>>>> Cc: MapServer >>>>>> Sent: Tue, June 14, 2011 7:14:08 PM >>>>>> Subject: Re: [mapserver-users] Asking for guidelines about a project >>>>>> >>>>>> Saka, >>>>>> >>>>>> I've had good success using PostGIS for data storage in implementing tracking systems. While you'll need to create your own code for updating the positions in the database, mapserver can read points from PostGIS and can render the points into a map image for use with the OpenLayers client. >>>>>> >>>>>> There are other solutions too, like OpenGTS (http://opengts.sourceforge.net/index.html) >>>>>> Best Regards, >>>>>> Brent Fraser >>>>>> >>>>>> On 6/14/2011 12:08 AM, Saka Royban wrote: >>>>>>> >>>>>>> Hi all. >>>>>>> Strictly Speaking, i have a project that i should display some moving objects on a map via browser. >>>>>>> Generally, i don't know how to start? i mean how should i save these time-based objects in DB and how to retrieve and display them via Mapserver? where should i use client side scripting like OpneLayers? >>>>>>> Any help woudbe greatly appreciated. >>>>>>> >>>>>>> Thanks in advance >>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakaroyban at yahoo.com Sun Jun 19 23:10:01 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Sun, 19 Jun 2011 23:10:01 -0700 (PDT) Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <643274.47128.qm@web33204.mail.mud.yahoo.com> References: <643274.47128.qm@web33204.mail.mud.yahoo.com> Message-ID: <890977.96066.qm@web121603.mail.ne1.yahoo.com> I don't know how to express my thanks to your helpful answer and Brent Fraser, as well. specially, i wasn't careful about using views in this application. >>You don't need a table per vehicle, as all share the same columns, you just >>need to have a vehicle id >>column to be able to select the required vehicle >>from the table. I didn't get what ur meaning. No table per vehicle? while i have to store every point with its time, so it means 1 record for each point. (Can i have an array of time in one cell? if so, it means i have a line of points in one cell, and corresponding array of times in another cell) >>Do you want a fixed map extent & just show vehicles in that region? >>Do you want to have the map automatically zoom to an extent covering all >>currently displayed vehicles? >>Do you want the map to automatically recenter on a vehicle point as the point >>nears an edge of the map? Of course, user selects some vehicles, and if not in current displayed region, map automatically changes the displayed extent. Around recentering map when a vehicle reaches map edges, I think (if i'm wrong Plz correct me) it would be done via Openlayers with some scripting. As it knows current extent and new position of vehicles, it is possible computing whether vehicle reaches edge or not. Best Regards Saka ________________________________ From: Brent Wood To: MapServer ; Saka Royban Sent: Sat, June 18, 2011 3:08:47 AM Subject: Re: [mapserver-users] Asking for guidelines about a project Given how these sorts of things tend to grow, it may also be worth planning for a system to store the vehicle/points/times, as well as maintain the "live" table of vehicle positions. In fact the table of live positions can simply be a view on the historic table providing the current situation instead of a physical table. >From this you can automatically generate hourly or daily tracklines (linestrings made up from the points within an interval ordered by time) which can also be made available by mapserver, via an interface allowing users to select vehicles & start/end times to show where they have been as well as where they are, or where were they at a specified time. With respect to automatic on screen map updates, it can get complicated: Do you want a fixed map extent & just show vehicles in that region? Do you want to have the map automatically zoom to an extent covering all currently displayed vehicles? Do you want the map to automatically recenter on a vehicle point as the point nears an edge of the map? A fixed extent is relatively easy, & can be done with a just mapfile & HTML (have the web page retrieve the map automatically as a URL via WMS as often as desired) You don't need a table per vehicle, as all share the same columns, you just need to have a vehicle id column to be able to select the required vehicle from the table. More powerful & flexible approaches are more complicated, but can be done. It very much depends on what you want to do. Cheers, Brent Wood --- On Sat, 6/18/11, Saka Royban wrote: >From: Saka Royban >Subject: Re: [mapserver-users] Asking for guidelines about a project >To: "MapServer" >Date: Saturday, June 18, 2011, 4:56 AM > > >Thanks for ur answer and also Josh's answer. >In fact, i should be able to display path of vehicles (usually more than 1 >vehicle in display area) and also be able to save points passed by vehicles and >time of passing (for some queries). Cause of that, i thought maybe i need one >table per vehicle. >Do u think any more idea? > >Best Regards > > > > ________________________________ From: Brent Fraser >To: Saka Royban >Cc: MapServer >Sent: Fri, June 17, 2011 7:49:20 PM >Subject: Re: [mapserver-users] Asking for guidelines about a project > > The database schema depends on what you want to do with the data (display >current position? A track of historical positions?), and how much data you >expect (how may objects will be tracked? how often will they report?). > >A simple schema would have one table (e.g. "vehicles"), with one row per >tracked object > >Table: Vehicles > >ID: Name: Position: Status: UpdateTime: >1 My Car point(51,-115) active 2011-06-16 10:23:54+02 >2 Another Car point(52,-116) inactive 2010-05-15 11:13:12+02 > >With this schema, when a new position arrives for "My Car", an update >statement is issued to change the row's Position and UpdateTime (and >possibly Status). > > The table is treated as a PostGIS point layer by mapserver. > > In my implementations, the position data was updated every 30 to 60 >minutes (they were ships and construction vehicles), so there was no need to >ask mapserver to regenerate a graphic every second; an updated map was shown >whenever a user did a pan or zoom. You may be able to configure OpenLayers >to do a CGI request to mapserver every few seconds, but I've never done >that. > > >Best Regards, >Brent Fraser >On 6/16/2011 11:52 PM, Saka Royban wrote: >Thanks a lot brent >>I checked provided link and i;m gonna give it a try. >>About ur helpful advices, i'm confused about how to save data in >>PostGIS? with what schema? >> >>I mean i have to keep track of each paced point by moving objects. >>Should i record each point as a record, so it means one table per >>moving object ? >>Also for displaying these varaiant data, there should some sort of >>plan. I don't think i'm able to say to MapServer CGI at each second >>connect to PostGIS and read the new data, then i have to use >>MapScript. Am i right? (Can this process be done via OpenLayers?) >> >>Best Regards >> >> >> >> ________________________________ From: Brent Fraser >>To: Saka Royban >>Cc: MapServer >>Sent: Tue, June 14, 2011 7:14:08 PM >>Subject: Re: [mapserver-users] Asking for guidelines about a >>project >> >> Saka, >> >> I've had good success using PostGIS for data storage in >>implementing tracking systems. While you'll need to create your own >>code for updating the positions in the database, mapserver can read >>points from PostGIS and can render the points into a map image for >>use with the OpenLayers client. >> >> There are other solutions too, like OpenGTS >>(http://opengts.sourceforge.net/index.html) >> >>Best Regards, >>Brent Fraser >>On 6/14/2011 12:08 AM, Saka Royban wrote: >>Hi all. >>>Strictly Speaking, i have a project that i should display some >>>moving objects on a map via browser. >>>Generally, i don't know how to start? i mean how should i save >>>these time-based objects in DB and how to retrieve and display >>>them via Mapserver? where should i use client side scripting >>>like OpneLayers? >>>Any help woudbe greatly appreciated. >>> >>>Thanks in advance >>> >>> >>>_______________________________________________ >>>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 >> >-----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 chris.green at ibstv.co.uk Mon Jun 20 00:21:52 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Mon, 20 Jun 2011 08:21:52 +0100 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? Message-ID: <00d901cc2f1a$bb703550$32509ff0$@green@ibstv.co.uk> Hi list I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have been trying to get clustering to work with Mapscript. Actually it works fine when using a mapfile very similar to the 'Clustering Railway Stations' example given in the 6.0 documentation if I use the mapfile to generate a WMS layer without Mapscript. However using the same mapfile I can't get the clustered output to appear with Mapscript when I try the usual construction along the lines of: $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); .. .. .. $image=$map->draw(); $image_url=$image->saveWebImage(); This structure works on a non-clustered layer in the same mapfile. I can see in the documentation for MS RFC 69 that the idea is to use a new Mapscript object called clusterObj, but I can't find any information on how to construct a clusterObj and several hours of trial and error yesterday didn't get me very far. Can someone tell me how I should set up and use clusterObj? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Jun 20 00:41:15 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 20 Jun 2011 09:41:15 +0200 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <6987883197480784653@unknownmsgid> References: <6987883197480784653@unknownmsgid> Message-ID: Chris, clusterObj should not be constructed from scratch, it is an existing member of layerObj. Not sure how is that working in PHP, however. Best regards, Tamas 2011/6/20 Chris Green > Hi list**** > > ** ** > > I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have > been trying to get clustering to work with Mapscript. Actually it works fine > when using a mapfile very similar to the ?Clustering Railway Stations? > example given in the 6.0 documentation if I use the mapfile to generate a > WMS layer without Mapscript. However using the same mapfile I can?t get the > clustered output to appear with Mapscript when I try the usual construction > along the lines of:**** > > ** ** > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");**** > > $layer1=$map->getLayerByName("test1");**** > > ..**** > > ..**** > > ..**** > > $image=$map->draw();**** > > $image_url=$image->saveWebImage();**** > > ** ** > > This structure works on a non-clustered layer in the same mapfile. I can > see in the documentation for MS RFC 69 that the idea is to use a new > Mapscript object called clusterObj, but I can?t find any information on how > to construct a clusterObj and several hours of trial and error yesterday > didn?t get me very far. Can someone tell me how I should set up and use > clusterObj?**** > > ** ** > > ** ** > > 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 schroeter at netgis.de Mon Jun 20 02:21:12 2011 From: schroeter at netgis.de (Sven Schroeter) Date: Mon, 20 Jun 2011 11:21:12 +0200 Subject: [mapserver-users] Mapserver docs mobile app Message-ID: <001201cc2f2b$66156880$32403980$@de> Hi all, I'm playing with jquery mobile and phonegap and needed an example for a "Documentation App". So I have downloaded for test purposes the Mapfile documentation and changed the HTML and CSS a little bit. Now here is a Mapfile Documentation for mobile devices (android 2.2, tested on a HTC Desire HD): http://www.netgis.de/mapserver_mdoc/mapserver_mdoc.zip (mapserver_mdoc.apk in a zip) The "webapp" you can find here: http://www.netgis.de/mapserver_mdoc/ If you want, I can upload the app in the android market. Maybe you can give feedback how it works on other android devices? Thanks and greetings Sven From ahmettemiz88 at gmail.com Mon Jun 20 03:36:19 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Mon, 20 Jun 2011 13:36:19 +0300 Subject: [mapserver-users] compilatin problem Message-ID: I try to install mapserver 6 in ubuntu 11. l am using libpng12. I am getting this error message: ./libmapserver.a(mapimageio.o): In function `readPNG': /usr/local/mapserver/mapimageio.c:738: undefined reference to `png_set_longjmp_fn' collect2: ld returned 1 exit status what can I do ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From jmckenna at gatewaygeomatics.com Mon Jun 20 06:02:42 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 20 Jun 2011 10:02:42 -0300 Subject: [mapserver-users] Mapserver docs mobile app In-Reply-To: <001201cc2f2b$66156880$32403980$@de> References: <001201cc2f2b$66156880$32403980$@de> Message-ID: <4DFF44F2.2090704@gatewaygeomatics.com> On 11-06-20 6:21 AM, Sven Schroeter wrote: > Hi all, > > I'm playing with jquery mobile and phonegap and needed an example for a > "Documentation App". > So I have downloaded for test purposes the Mapfile documentation and changed > the HTML and CSS a little bit. > Now here is a Mapfile Documentation for mobile devices (android 2.2, tested > on a HTC Desire HD): > http://www.netgis.de/mapserver_mdoc/mapserver_mdoc.zip > (mapserver_mdoc.apk in a zip) > > The "webapp" you can find here: > http://www.netgis.de/mapserver_mdoc/ > > If you want, I can upload the app in the android market. > Maybe you can give feedback how it works on other android devices? > Thanks and greetings > Sven Interesting. I would say once you are satisfied with it fire an email to the mapserver-dev mailing list and we can post it on the MapServer website. Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bfraser at geoanalytic.com Mon Jun 20 06:43:52 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 20 Jun 2011 07:43:52 -0600 Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <1DA4BFA0-9284-4721-801A-740F2EB468EF@remoteinformation.com.au> References: <20110618013145.12740E01BDF@lists.osgeo.org> <1DA4BFA0-9284-4721-801A-740F2EB468EF@remoteinformation.com.au> Message-ID: <4DFF4E98.1010701@geoanalytic.com> Ben, Our setup was similar. We had a current_location table and a archive_location table. To filter the archive_location for positions in the last 24 hours we had a view: CREATE VIEW archive_v AS SELECT archive_location.vessel_id, archive_location.time_fix, archive_location.speed, archive_location.heading, archive_location.vessel_coordinate, archive_location.archive_sequence, vessel_cfg.vessel_name, owner.org_name FROM archive_location,owner,vessel_cfg WHERE archive_location.owner_id=owner.org_id AND archive_location.vessel_id=vessel_cfg.vessel_id AND ((now() AT TIME ZONE 'utc') - (archive_location.time_fix)) <= '24 hour'; I can't recall how we created linestrings for the tracks from the above view, but I think we used the archive_sequence number (this was assigned at insert time, per vessel) to order the points into lines. Best Regards, Brent Fraser On 6/19/2011 7:31 AM, Ben Madin wrote: > I've done similar to Brent's suggestions, but tracking boats with 2 > hourly updates. We just stored all the location data in one table with > a reference id to a boat name and details in another project. > > The default setting showed the current location and the last 72 hours > of track... Using a query like select blah order by recordtime desc > limit 36. we then created a linestring and mapped those. It was a bit > heavy on the poor old (really old) server, but there were only about > 70 boats all up. > > In retrospect (and if I had more boats or users), I would create two > tables, one holding the all the point locations, and one holding the > default tracks. The default tracks would be updated by a trigger on > insertion of the new records into the locations table, rather than all > being computed on the fly. > > Anyway, 101 ways to skin a cat. > > cheers > > Ben > > > > > > On 18/06/2011, at 11:31 AM, mapserver-users-request at lists.osgeo.org > wrote: > >>>>> *From:*Brent Fraser >>>> > >>>>> *Date:*18 June 2011 3:27:00 AM AEST >>>>> *To:*Saka Royban > >>>>> *Cc:*MapServer >>>> > >>>>> *Subject:**Re: [mapserver-users] Asking for guidelines about a >>>>> project* >>>>> >>>>> >>>>> Well, it's up to you how to model the objects (that's the >>>>> great thing about relational databases). Typically, I've added a >>>>> table of "Historical Positions" with basically the same structure >>>>> as the "vehicle" table (but in that case the unique key is not >>>>> the vehicle ID, but instead just a system assigned key like >>>>> OID). As for the points passed by, I would not save that >>>>> information in a table, instead consider it the result of a >>>>> spatial query (say in a PostGIS view) at display time. >>>>> >>>>> A system like this usually takes a large of amount of time for >>>>> requirements, investigation, design, and prototyping. And of >>>>> course, construction, testing, documentation, and training. If >>>>> you want something more packaged you can just download and >>>>> install, you may want to do some searching on the web. >>>>> >>>>> Best Regards, >>>>> Brent Fraser >>>>> >>>>> On 6/17/2011 10:56 AM, Saka Royban wrote: >>>>>> Thanks for ur answer and also Josh's answer. >>>>>> In fact, i should be able to display path of vehicles (usually >>>>>> more than 1 vehicle in display area) and also be able to save >>>>>> points passed by vehicles and time of passing (for some queries). >>>>>> Cause of that, i thought maybe i need one table per vehicle. >>>>>> Do u think any more idea? >>>>>> >>>>>> Best Regards >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> *From:*Brent Fraser >>>>>> *To:*Saka Royban >>>>>> *Cc:*MapServer >>>>>> *Sent:*Fri, June 17, 2011 7:49:20 PM >>>>>> *Subject:*Re: [mapserver-users] Asking for guidelines about a project >>>>>> >>>>>> The database schema depends on what you want to do with the data >>>>>> (display current position? A track of historical positions?), >>>>>> and how much data you expect (how may objects will be tracked? >>>>>> how often will they report?). >>>>>> >>>>>> A simple schema would have one table (e.g. "vehicles"), with one >>>>>> row per tracked object >>>>>> >>>>>> Table: Vehicles >>>>>> >>>>>> ID: Name: Position: Status: UpdateTime: >>>>>> 1 My Car point(51,-115) active 2011-06-16 10:23:54+02 >>>>>> 2 Another Car point(52,-116) inactive 2010-05-15 11:13:12+02 >>>>>> >>>>>> With this schema, when a new position arrives for "My Car", an >>>>>> update statement is issued to change the row's Position and >>>>>> UpdateTime (and possibly Status). >>>>>> >>>>>> The table is treated as a PostGIS point layer by mapserver. >>>>>> >>>>>> In my implementations, the position data was updated every 30 >>>>>> to 60 minutes (they were ships and construction vehicles), so >>>>>> there was no need to ask mapserver to regenerate a graphic every >>>>>> second; an updated map was shown whenever a user did a pan or >>>>>> zoom. You may be able to configure OpenLayers to do a CGI >>>>>> request to mapserver every few seconds, but I've never done that. >>>>>> >>>>>> Best Regards, >>>>>> Brent Fraser >>>>>> >>>>>> On 6/16/2011 11:52 PM, Saka Royban wrote: >>>>>>> Thanks a lot brent >>>>>>> I checked provided link and i;m gonna give it a try. >>>>>>> About ur helpful advices, i'm confused about how to save data in >>>>>>> PostGIS? with what schema? >>>>>>> I mean i have to keep track of each paced point by moving >>>>>>> objects. Should i record each point as a record, so it means one >>>>>>> table per moving object ? >>>>>>> Also for displaying these varaiant data, there should some sort >>>>>>> of plan. I don't think i'm able to say to MapServer CGI at each >>>>>>> second connect to PostGIS and read the new data, then i have to >>>>>>> use MapScript. Am i right? (Can this process be done via >>>>>>> OpenLayers?) >>>>>>> >>>>>>> Best Regards >>>>>>> >>>>>>> ------------------------------------------------------------------------ >>>>>>> *From:*Brent Fraser >>>>>>> *To:*Saka Royban >>>>>>> *Cc:*MapServer >>>>>>> *Sent:*Tue, June 14, 2011 7:14:08 PM >>>>>>> *Subject:*Re: [mapserver-users] Asking for guidelines about a >>>>>>> project >>>>>>> >>>>>>> Saka, >>>>>>> >>>>>>> I've had good success using PostGIS for data storage in >>>>>>> implementing tracking systems. While you'll need to create your >>>>>>> own code for updating the positions in the database, mapserver >>>>>>> can read points from PostGIS and can render the points into a >>>>>>> map image for use with the OpenLayers client. >>>>>>> >>>>>>> There are other solutions too, like OpenGTS >>>>>>> (http://opengts.sourceforge.net/index.html) >>>>>>> Best Regards, >>>>>>> Brent Fraser >>>>>>> >>>>>>> On 6/14/2011 12:08 AM, Saka Royban wrote: >>>>>>>> Hi all. >>>>>>>> Strictly Speaking, i have a project that i should display some >>>>>>>> moving objects on a map via browser. >>>>>>>> Generally, i don't know how to start? i mean how should i save >>>>>>>> these time-based objects in DB and how to retrieve and display >>>>>>>> them via Mapserver? where should i use client side scripting >>>>>>>> like OpneLayers? >>>>>>>> Any help woudbe greatly appreciated. >>>>>>>> >>>>>>>> Thanks in advance >>>>> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Mon Jun 20 06:48:55 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 20 Jun 2011 09:48:55 -0400 Subject: [mapserver-users] Mapserver docs mobile app In-Reply-To: <4DFF44F2.2090704@gatewaygeomatics.com> References: <001201cc2f2b$66156880$32403980$@de> <4DFF44F2.2090704@gatewaygeomatics.com> Message-ID: <4DFF4FC7.60901@mapgears.com> On 11-06-20 09:02 AM, Jeff McKenna wrote: > On 11-06-20 6:21 AM, Sven Schroeter wrote: >> >> The "webapp" you can find here: >> http://www.netgis.de/mapserver_mdoc/ >> >> If you want, I can upload the app in the android market. >> Maybe you can give feedback how it works on other android devices? >> Thanks and greetings >> Sven > > Interesting. I would say once you are satisfied with it fire an email to > the mapserver-dev mailing list and we can post it on the MapServer website. > Very cool indeed! The web version could become http://m.mapserver.org/ ... -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From chris.green at ibstv.co.uk Mon Jun 20 07:02:41 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Mon, 20 Jun 2011 15:02:41 +0100 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: References: <6987883197480784653@unknownmsgid> Message-ID: <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> Hi Tamas Thanks for your comment. My first thought was that it should be available from layerObj, and I spent quite a while trying variations like: $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); $cluster1=$layer1->getClusterByName(?cluster1?); But unfortunately I couldn?t make anything like that work. Anyone know how this clusterObj works in php-Mapscript? Chris From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: 20 June 2011 08:41 To: Chris Green Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? Chris, clusterObj should not be constructed from scratch, it is an existing member of layerObj. Not sure how is that working in PHP, however. Best regards, Tamas 2011/6/20 Chris Green Hi list I am running Mapserver 6.0 under Ubuntu 10.04 with PHP-Mapscript and I have been trying to get clustering to work with Mapscript. Actually it works fine when using a mapfile very similar to the ?Clustering Railway Stations? example given in the 6.0 documentation if I use the mapfile to generate a WMS layer without Mapscript. However using the same mapfile I can?t get the clustered output to appear with Mapscript when I try the usual construction along the lines of: $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); .. .. .. $image=$map->draw(); $image_url=$image->saveWebImage(); This structure works on a non-clustered layer in the same mapfile. I can see in the documentation for MS RFC 69 that the idea is to use a new Mapscript object called clusterObj, but I can?t find any information on how to construct a clusterObj and several hours of trial and error yesterday didn?t get me very far. Can someone tell me how I should set up and use clusterObj? 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 dmorissette at mapgears.com Mon Jun 20 07:22:03 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 20 Jun 2011 10:22:03 -0400 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> References: <6987883197480784653@unknownmsgid> <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> Message-ID: <4DFF578B.7020705@mapgears.com> On 11-06-20 10:02 AM, Chris Green wrote: > Hi Tamas > > Thanks for your comment. My first thought was that it should be > available from layerObj, and I spent quite a while trying variations like: > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); > > $layer1=$map->getLayerByName("test1"); > > $cluster1=$layer1->getClusterByName(?cluster1?); > > But unfortunately I couldn?t make anything like that work. Anyone know > how this clusterObj works in php-Mapscript? > AFAIK there is only one cluster object per layer, and according to the PHP MapScript source, you should be able to reach it as $layer1->cluster. The same methods as in SWIG MapScript seem to be implemented for the clusterObj in PHP MapScript. If that doesn't work then please let us know and we'll look deeper. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From dmorissette at mapgears.com Mon Jun 20 07:26:27 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 20 Jun 2011 10:26:27 -0400 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <4DFF578B.7020705@mapgears.com> References: <6987883197480784653@unknownmsgid> <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> <4DFF578B.7020705@mapgears.com> Message-ID: <4DFF5893.60205@mapgears.com> On 11-06-20 10:22 AM, Daniel Morissette wrote: > On 11-06-20 10:02 AM, Chris Green wrote: >> Hi Tamas >> >> Thanks for your comment. My first thought was that it should be >> available from layerObj, and I spent quite a while trying variations >> like: >> >> $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); >> >> $layer1=$map->getLayerByName("test1"); >> >> $cluster1=$layer1->getClusterByName(?cluster1?); >> >> But unfortunately I couldn?t make anything like that work. Anyone know >> how this clusterObj works in php-Mapscript? >> > > > AFAIK there is only one cluster object per layer, and according to the > PHP MapScript source, you should be able to reach it as > $layer1->cluster. The same methods as in SWIG MapScript seem to be > implemented for the clusterObj in PHP MapScript. If that doesn't work > then please let us know and we'll look deeper. > ... and I see that clusterObj is documented in: http://mapserver.org/mapscript/php/index.html#clusterobj ... and the ref to the clusterObj in the layerObj is listed in: http://mapserver.org/mapscript/php/index.html#layerobj -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From chris.green at ibstv.co.uk Mon Jun 20 08:58:46 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Mon, 20 Jun 2011 16:58:46 +0100 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <4DFF5893.60205@mapgears.com> References: <6987883197480784653@unknownmsgid> <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> <4DFF578B.7020705@mapgears.com> <4DFF5893.60205@mapgears.com> Message-ID: <005601cc2f62$f058be70$d10a3b50$@green@ibstv.co.uk> Daniel This works.... $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); $layer1->cluster; Thanks very much for the help! Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: 20 June 2011 15:26 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? On 11-06-20 10:22 AM, Daniel Morissette wrote: > On 11-06-20 10:02 AM, Chris Green wrote: >> Hi Tamas >> >> Thanks for your comment. My first thought was that it should be >> available from layerObj, and I spent quite a while trying variations >> like: >> >> $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); >> >> $layer1=$map->getLayerByName("test1"); >> >> $cluster1=$layer1->getClusterByName(?cluster1?); >> >> But unfortunately I couldn?t make anything like that work. Anyone know >> how this clusterObj works in php-Mapscript? >> > > > AFAIK there is only one cluster object per layer, and according to the > PHP MapScript source, you should be able to reach it as > $layer1->cluster. The same methods as in SWIG MapScript seem to be > implemented for the clusterObj in PHP MapScript. If that doesn't work > then please let us know and we'll look deeper. > ... and I see that clusterObj is documented in: http://mapserver.org/mapscript/php/index.html#clusterobj ... and the ref to the clusterObj in the layerObj is listed in: http://mapserver.org/mapscript/php/index.html#layerobj -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ron.alt at taxadmin.org Mon Jun 20 09:25:36 2011 From: ron.alt at taxadmin.org (Ron Alt) Date: Mon, 20 Jun 2011 12:25:36 -0400 Subject: [mapserver-users] Problems installing MapScript on Mac OSx Message-ID: <29263733-313A-4413-8E13-9A933DD700BD@taxadmin.org> Hello: I am a beginner with Mapserver and would appreciate any help. I am having touble installing mapscript on a Mac osx 10.5 & 6. I have used the installers developed by William Kyngesburye at http://www.kyngchaos.com/software/mapserver. The installers have run sucessfully, but it appears as though Mapscript did not install. The mapserver cgi responds. The php server responds. However, when viewing the phpinfo(), there is not information displayed for mapscript. Also, I get an error when sending running a simple script [cannot find dl("php_mapscript.so");] Questions: Where are the mapscript files stored on OSx? (I cannot find them anywhere) Has anyone else encountered a similar problem with this build? Are there any other installers for Macs? note, I also tried his vers. 5.6.6-3 installer, but it would not work with the current UnixImageIO framework. Would appreciate any help. Thanks, Ron Alt FTA ron.alt at taxadmin.org From chris.green at ibstv.co.uk Mon Jun 20 10:38:32 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Mon, 20 Jun 2011 18:38:32 +0100 Subject: [mapserver-users] Mapserver 6.0 regex Message-ID: <00c001cc2f70$dfecea30$9fc6be90$@green@ibstv.co.uk> I have one (hopefully the last!) problem with migrating from Mapserver 4.6 to 6.0, this time over the use of regex. Using Mapscript on a Fedora platform I have been setting a filter in this manner: $map=newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); $layer1->set("filteritem", "Attribute1"); $layer1->setFilter("/target/"); This worked fine, but not anymore. I see in the migration guide that a regex should now be delineated as a string so I assume that "/target/" should become "target". But that doesn't work either. I am wondering if part of the problem is that as well as going from Mapserver 4.6 to 5.0 I also changed from Fedora to Ubuntu 10.04, and I see from the Mapserver documentation on Expressions that the OS may affect regex operation. Am I missing something obvious here? I am really tired of going in circles over this. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Mon Jun 20 11:52:36 2011 From: woklist at kyngchaos.com (William Kyngesburye) Date: Mon, 20 Jun 2011 13:52:36 -0500 Subject: [mapserver-users] Problems installing MapScript on Mac OSx In-Reply-To: <29263733-313A-4413-8E13-9A933DD700BD@taxadmin.org> References: <29263733-313A-4413-8E13-9A933DD700BD@taxadmin.org> Message-ID: First, the web server may need to be restarted, though the installer usually does this. But it's probably PHP. PHP 5.3 now does not allow (by default) dl() loading of extensions, so your script that tries to dl('php_mapscript.so') will fail. It can be enabled, but I can't get this to work in my PHP package. So you need to add the extension to your php.ini. I just noticed that I missed this bit in my Mapserver installer, so you need to do it yourself. Edit /usr/local/php5cgi/lib/php.ini and add this line (there is a "Dynamic Extensions" section, but it can go anywhere): extension=php_mapscript.so On Jun 20, 2011, at 11:25 AM, Ron Alt wrote: > Hello: I am a beginner with Mapserver and would appreciate any help. > > I am having touble installing mapscript on a Mac osx 10.5 & 6. > > I have used the installers developed by William Kyngesburye at http://www.kyngchaos.com/software/mapserver. > The installers have run sucessfully, but it appears as though Mapscript did not install. > > The mapserver cgi responds. > The php server responds. > > However, when viewing the phpinfo(), there is not information displayed for mapscript. > Also, I get an error when sending running a simple script [cannot find dl("php_mapscript.so");] > > Questions: > Where are the mapscript files stored on OSx? (I cannot find them anywhere) > Has anyone else encountered a similar problem with this build? > Are there any other installers for Macs? > > note, I also tried his vers. 5.6.6-3 installer, but it would not work with the current UnixImageIO framework. > > Would appreciate any help. > > Thanks, > Ron Alt > FTA > ron.alt at taxadmin.org > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. From jmckenna at gatewaygeomatics.com Mon Jun 20 12:30:57 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 20 Jun 2011 16:30:57 -0300 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <005601cc2f62$f058be70$d10a3b50$@green@ibstv.co.uk> References: <6987883197480784653@unknownmsgid> <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> <4DFF578B.7020705@mapgears.com> <4DFF5893.60205@mapgears.com> <005601cc2f62$f058be70$d10a3b50$@green@ibstv.co.uk> Message-ID: <4DFF9FF1.5010901@gatewaygeomatics.com> Hi Chris, I've added your PHP MapScript example to the mapfile's CLUSTER page: http://www.mapserver.org/mapfile/cluster.html Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-06-20 12:58 PM, Chris Green wrote: > Daniel > > > This works.... > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); > $layer1=$map->getLayerByName("test1"); > $layer1->cluster; > > > Thanks very much for the help! > > > Chris > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette > Sent: 20 June 2011 15:26 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? > > On 11-06-20 10:22 AM, Daniel Morissette wrote: >> On 11-06-20 10:02 AM, Chris Green wrote: >>> Hi Tamas >>> >>> Thanks for your comment. My first thought was that it should be >>> available from layerObj, and I spent quite a while trying variations >>> like: >>> >>> $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); >>> >>> $layer1=$map->getLayerByName("test1"); >>> >>> $cluster1=$layer1->getClusterByName(?cluster1?); >>> >>> But unfortunately I couldn?t make anything like that work. Anyone know >>> how this clusterObj works in php-Mapscript? >>> >> >> >> AFAIK there is only one cluster object per layer, and according to the >> PHP MapScript source, you should be able to reach it as >> $layer1->cluster. The same methods as in SWIG MapScript seem to be >> implemented for the clusterObj in PHP MapScript. If that doesn't work >> then please let us know and we'll look deeper. >> > > ... and I see that clusterObj is documented in: > > http://mapserver.org/mapscript/php/index.html#clusterobj > > ... and the ref to the clusterObj in the layerObj is listed in: > > http://mapserver.org/mapscript/php/index.html#layerobj > From ahmettemiz88 at gmail.com Mon Jun 20 12:43:13 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Mon, 20 Jun 2011 22:43:13 +0300 Subject: [mapserver-users] libpng latest version problematic Message-ID: hello I have difficulty on compilation of ms 6.0 because of libpng. Is libpng's latest version (1.5) uncompatible with ms 6.0 ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From chris.green at ibstv.co.uk Mon Jun 20 12:47:09 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Mon, 20 Jun 2011 20:47:09 +0100 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <4DFF9FF1.5010901@gatewaygeomatics.com> References: <6987883197480784653@unknownmsgid> <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> <4DFF578B.7020705@mapgears.com> <4DFF5893.60205@mapgears.com> <005601cc2f62$f058be70$d10a3b50$@green@ibstv.co.uk> <4DFF9FF1.5010901@gatewaygeomatics.com> Message-ID: <010401cc2f82$d791eae0$86b5c0a0$@green@ibstv.co.uk> Hi Jeff Thanks. Fame at last...! However I am still struggling with the combination of clustering and regex filtering. What I can say for sure is that clustering works if no regex filter is applied, and filtering works (using a regex filter in the form "/target/") with no clustering. But I have so far failed to make the two work together. This is where I am currently (which does not work for me): $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); $layer1->cluster; $layer1->set("filteritem", "attribute 1"); $layer1->setFilter("/target/"); Any ideas? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 20 June 2011 20:31 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? Hi Chris, I've added your PHP MapScript example to the mapfile's CLUSTER page: http://www.mapserver.org/mapfile/cluster.html Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-06-20 12:58 PM, Chris Green wrote: > Daniel > > > This works.... > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); > $layer1=$map->getLayerByName("test1"); > $layer1->cluster; > > > Thanks very much for the help! > > > Chris > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette > Sent: 20 June 2011 15:26 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? > > On 11-06-20 10:22 AM, Daniel Morissette wrote: >> On 11-06-20 10:02 AM, Chris Green wrote: >>> Hi Tamas >>> >>> Thanks for your comment. My first thought was that it should be >>> available from layerObj, and I spent quite a while trying variations >>> like: >>> >>> $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); >>> >>> $layer1=$map->getLayerByName("test1"); >>> >>> $cluster1=$layer1->getClusterByName(?cluster1?); >>> >>> But unfortunately I couldn?t make anything like that work. Anyone know >>> how this clusterObj works in php-Mapscript? >>> >> >> >> AFAIK there is only one cluster object per layer, and according to the >> PHP MapScript source, you should be able to reach it as >> $layer1->cluster. The same methods as in SWIG MapScript seem to be >> implemented for the clusterObj in PHP MapScript. If that doesn't work >> then please let us know and we'll look deeper. >> > > ... and I see that clusterObj is documented in: > > http://mapserver.org/mapscript/php/index.html#clusterobj > > ... and the ref to the clusterObj in the layerObj is listed in: > > http://mapserver.org/mapscript/php/index.html#layerobj > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon Jun 20 12:50:35 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 20 Jun 2011 16:50:35 -0300 Subject: [mapserver-users] libpng latest version problematic In-Reply-To: References: Message-ID: <4DFFA48B.7020801@gatewaygeomatics.com> On 11-06-20 4:43 PM, ahmet temiz wrote: > hello > > I have difficulty on compilation of ms 6.0 because of libpng. > Is libpng's latest version (1.5) uncompatible with ms 6.0 ? Hello, Others will I'm sure correct me if I am wrong, but I believe the issue is that GDAL was recently fixed to handle libpng 1.5 and that won't be available until GDAL 1.8.1 is released (http://trac.osgeo.org/gdal/ticket/3914). Personally, for Windows builds for the MS4W product, I still use libpng 1.2.35 for that reason. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From dmorissette at mapgears.com Mon Jun 20 13:06:17 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 20 Jun 2011 16:06:17 -0400 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <010401cc2f82$d791eae0$86b5c0a0$@green@ibstv.co.uk> References: <6987883197480784653@unknownmsgid> <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> <4DFF578B.7020705@mapgears.com> <4DFF5893.60205@mapgears.com> <005601cc2f62$f058be70$d10a3b50$@green@ibstv.co.uk> <4DFF9FF1.5010901@gatewaygeomatics.com> <010401cc2f82$d791eae0$86b5c0a0$@green@ibstv.co.uk> Message-ID: <4DFFA839.2050006@mapgears.com> On 11-06-20 03:47 PM, Chris Green wrote: > Hi Jeff > > Thanks. Fame at last...! > > However I am still struggling with the combination of clustering and regex filtering. What I can say for sure is that clustering works if no regex filter is applied, and filtering works (using a regex filter in the form "/target/") with no clustering. But I have so far failed to make the two work together. > > This is where I am currently (which does not work for me): > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); > $layer1=$map->getLayerByName("test1"); > $layer1->cluster; FYI the line "$layer1->cluster;" does nothing. > $layer1->set("filteritem", "attribute 1"); > $layer1->setFilter("/target/"); > I haven't used the cluster stuff myself so I am not exactly clear on how it should be used, but if you are trying to set the cluster's expression then you might have more luck using: $layer1->cluster->setFilter("/target/"); After quickly re-reading the RFC it's not clear to me what the cluster filter does and against which attribute the expression will be evaluated. There is also a GROUP expression in the clusterObj which is supposed to define how the grouping would be made (but once again how does it work). Perhaps Tamas could clarify that here and in docs with a few examples? -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jmckenna at gatewaygeomatics.com Mon Jun 20 14:30:00 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 20 Jun 2011 18:30:00 -0300 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <010401cc2f82$d791eae0$86b5c0a0$@green@ibstv.co.uk> References: <6987883197480784653@unknownmsgid> <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> <4DFF578B.7020705@mapgears.com> <4DFF5893.60205@mapgears.com> <005601cc2f62$f058be70$d10a3b50$@green@ibstv.co.uk> <4DFF9FF1.5010901@gatewaygeomatics.com> <010401cc2f82$d791eae0$86b5c0a0$@green@ibstv.co.uk> Message-ID: <4DFFBBD8.9020506@gatewaygeomatics.com> Hi Chris, Let's plan this for our next phase of attack. As you travel down this cluster-php-mapscript path, document your full examples in the MapServer wiki: - login to the wiki (use your osgeo ID, which you can create at http://www.osgeo.org/osgeo_userid) - goto http://trac.osgeo.org/mapserver/wiki/PHPMapScript - create a new page there, in the "Examples" section - add as many examples as you wish for the Cluster object - be sure to add "this was added by [yourname] [email]" - when you are satisfied with that, email the mapserver-dev mailing list - then I will change the CLUSTER example in http://www.mapserver.org/mapfile/cluster.html#php-mapscript-usage to point to your page And you get all the glory! :) thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-06-20 4:47 PM, Chris Green wrote: > Hi Jeff > > Thanks. Fame at last...! > > However I am still struggling with the combination of clustering and regex filtering. What I can say for sure is that clustering works if no regex filter is applied, and filtering works (using a regex filter in the form "/target/") with no clustering. But I have so far failed to make the two work together. > > This is where I am currently (which does not work for me): > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); > $layer1=$map->getLayerByName("test1"); > $layer1->cluster; > $layer1->set("filteritem", "attribute 1"); > $layer1->setFilter("/target/"); > > Any ideas? > > > Chris > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: 20 June 2011 20:31 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? > > Hi Chris, > > I've added your PHP MapScript example to the mapfile's CLUSTER page: > http://www.mapserver.org/mapfile/cluster.html > > Thanks! > > -jeff > > > From lists at remoteinformation.com.au Mon Jun 20 21:29:46 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Tue, 21 Jun 2011 14:29:46 +1000 Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <20110621011525.0844012A9FF9@lists.osgeo.org> References: <20110621011525.0844012A9FF9@lists.osgeo.org> Message-ID: <667C0AFD-D62A-417D-8DE6-E0C3DA2D469D@remoteinformation.com.au> Brent et al, Becoming off topic, but ours went something like : DATA "the_move FROM (select ST_MakeLine(the_geom) as the_move, sq.polltime FROM (SELECT the_geom, CAST(polltime AS date) as polltime FROM vms WHERE vesselname like '%pg_sql%' ORDER BY polltime LIMIT 36) sq GROUP BY sq.polltime) AS foo USING UNIQUE polltime USING SRID=4326" but all credit for the concept goes to Regina Obe - I think she was showing running tracks! try postgresonline or the postgis list. cheers Ben On 21/06/2011, at 11:15 AM, mapserver-users-request at lists.osgeo.org wrote: > From: Brent Fraser > Date: 20 June 2011 11:43:52 PM AEST > To: Ben Madin > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Asking for guidelines about a project > > > Ben, > > Our setup was similar. We had a current_location table and a archive_location table. To filter the archive_location for positions in the last 24 hours we had a view: > > CREATE VIEW archive_v AS > SELECT > archive_location.vessel_id, > archive_location.time_fix, > archive_location.speed, > archive_location.heading, > archive_location.vessel_coordinate, > archive_location.archive_sequence, > vessel_cfg.vessel_name, > owner.org_name > FROM archive_location,owner,vessel_cfg > WHERE archive_location.owner_id=owner.org_id AND > archive_location.vessel_id=vessel_cfg.vessel_id AND > ((now() AT TIME ZONE 'utc') - (archive_location.time_fix)) <= '24 hour'; > > I can't recall how we created linestrings for the tracks from the above view, but I think we used the archive_sequence number (this was assigned at insert time, per vessel) to order the points into lines. > Best Regards, > Brent Fraser > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Tue Jun 21 04:54:46 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Tue, 21 Jun 2011 12:54:46 +0100 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <4DFFBBD8.9020506@gatewaygeomatics.com> References: <6987883197480784653@unknownmsgid> <001a01cc2f52$b915d020$2b417060$@green@ibstv.co.uk> <4DFF578B.7020705@mapgears.com> <4DFF5893.60205@mapgears.com> <005601cc2f62$f058be70$d10a3b50$@green@ibstv.co.uk> <4DFF9FF1.5010901@gatewaygeomatics.com> <010401cc2f82$d791eae0$86b5c0a0$@green@ibstv.co.uk> <4DFFBBD8.9020506@gatewaygeomatics.com> Message-ID: <00a401cc300a$04921330$0db63990$@green@ibstv.co.uk> Hi Jeff I'd be happy to go down that path and document examples along the way as you suggest, but I have a feeling that there may be something about the way that the cluster algorithm works that makes it incompatible with the regex filtering that I would also like to do. If that turns out to be the case then I will need to restructure the way that I access my data, in effect to filter it myself before presenting it to the layer to be displayed with clustering. This will be quite a task - before I decide which way to go on this is there someone out there who can confirm (at least in principle) that it should be possible to simultaneously filter and cluster the data in a layer if I can only find the right mapscript syntax to make it happen? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 20 June 2011 22:30 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? Hi Chris, Let's plan this for our next phase of attack. As you travel down this cluster-php-mapscript path, document your full examples in the MapServer wiki: - login to the wiki (use your osgeo ID, which you can create at http://www.osgeo.org/osgeo_userid) - goto http://trac.osgeo.org/mapserver/wiki/PHPMapScript - create a new page there, in the "Examples" section - add as many examples as you wish for the Cluster object - be sure to add "this was added by [yourname] [email]" - when you are satisfied with that, email the mapserver-dev mailing list - then I will change the CLUSTER example in http://www.mapserver.org/mapfile/cluster.html#php-mapscript-usage to point to your page And you get all the glory! :) thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-06-20 4:47 PM, Chris Green wrote: > Hi Jeff > > Thanks. Fame at last...! > > However I am still struggling with the combination of clustering and regex filtering. What I can say for sure is that clustering works if no regex filter is applied, and filtering works (using a regex filter in the form "/target/") with no clustering. But I have so far failed to make the two work together. > > This is where I am currently (which does not work for me): > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); > $layer1=$map->getLayerByName("test1"); > $layer1->cluster; > $layer1->set("filteritem", "attribute 1"); > $layer1->setFilter("/target/"); > > Any ideas? > > > Chris > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: 20 June 2011 20:31 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? > > Hi Chris, > > I've added your PHP MapScript example to the mapfile's CLUSTER page: > http://www.mapserver.org/mapfile/cluster.html > > Thanks! > > -jeff > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Tue Jun 21 05:31:59 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 21 Jun 2011 14:31:59 +0200 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: <1707053307015630229@unknownmsgid> References: <6987883197480784653@unknownmsgid> <4DFF578B.7020705@mapgears.com> <4DFF5893.60205@mapgears.com> <4DFF9FF1.5010901@gatewaygeomatics.com> <4DFFBBD8.9020506@gatewaygeomatics.com> <1707053307015630229@unknownmsgid> Message-ID: Hi Chris, The cluster->filter setting accepts mapserver expressions which should evaluate to a boolean value. This is something similar to the layer->filter option, provided the option to exclude certain features to be used in the clustering algoritm. I'm not sure about you exact requirement, so I cannot decide whether it provides a solution or not. Best regards, Tamas 2011/6/21 Chris Green > Hi Jeff > > I'd be happy to go down that path and document examples along the way as > you suggest, but I have a feeling that there may be something about the way > that the cluster algorithm works that makes it incompatible with the regex > filtering that I would also like to do. If that turns out to be the case > then I will need to restructure the way that I access my data, in effect to > filter it myself before presenting it to the layer to be displayed with > clustering. This will be quite a task - before I decide which way to go on > this is there someone out there who can confirm (at least in principle) that > it should be possible to simultaneously filter and cluster the data in a > layer if I can only find the right mapscript syntax to make it happen? > > > > Chris > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: 20 June 2011 22:30 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? > > Hi Chris, > > Let's plan this for our next phase of attack. As you travel down this > cluster-php-mapscript path, document your full examples in the MapServer > wiki: > > - login to the wiki (use your osgeo ID, which you can create at > http://www.osgeo.org/osgeo_userid) > - goto http://trac.osgeo.org/mapserver/wiki/PHPMapScript > - create a new page there, in the "Examples" section > - add as many examples as you wish for the Cluster object > - be sure to add "this was added by [yourname] [email]" > - when you are satisfied with that, email the mapserver-dev mailing list > - then I will change the CLUSTER example in > http://www.mapserver.org/mapfile/cluster.html#php-mapscript-usage to > point to your page > > And you get all the glory! :) > > thanks! > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > On 11-06-20 4:47 PM, Chris Green wrote: > > Hi Jeff > > > > Thanks. Fame at last...! > > > > However I am still struggling with the combination of clustering and > regex filtering. What I can say for sure is that clustering works if no > regex filter is applied, and filtering works (using a regex filter in the > form "/target/") with no clustering. But I have so far failed to make the > two work together. > > > > This is where I am currently (which does not work for me): > > > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); > > $layer1=$map->getLayerByName("test1"); > > $layer1->cluster; > > $layer1->set("filteritem", "attribute 1"); > > $layer1->setFilter("/target/"); > > > > Any ideas? > > > > > > Chris > > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > > Sent: 20 June 2011 20:31 > > To: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? > > > > Hi Chris, > > > > I've added your PHP MapScript example to the mapfile's CLUSTER page: > > http://www.mapserver.org/mapfile/cluster.html > > > > Thanks! > > > > -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 bartvde at osgis.nl Tue Jun 21 05:37:51 2011 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 21 Jun 2011 14:37:51 +0200 (CEST) Subject: [mapserver-users] symbol position moving when using angle Message-ID: <52612.145.50.39.8.1308659871.squirrel@webmail.hostingdiscounter.nl> Hi list, hopefully someone can explain the following issue to me. I am using a vector symbol (ttf), and when using no angle, it is positioned correctly. However, when I use ANGLE on the STYLE (using an attribute in the dataset), things get weird and the symbol position changes. Image brous4.png (no rotation in Mapserver, red exclamation marks are Mapserver, black exclamation marks are ArcMap, blue dot is the same Mapserver layer using a circle symbol to display the location): http://www.osgis.nl/download/mapserver/brous4.png Image brous3.png, now we rotate the symbols in Mapserver, but their location is moving (a simple OFFSET does not seem to be a possible solution however): http://www.osgis.nl/download/mapserver/brous3.png TIA for any guidance. Best regards, Bart From chris.green at ibstv.co.uk Tue Jun 21 06:23:46 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Tue, 21 Jun 2011 14:23:46 +0100 Subject: [mapserver-users] PHP-Mapscript - clusterObj ? In-Reply-To: References: <6987883197480784653@unknownmsgid> <4DFF578B.7020705@mapgears.com> <4DFF5893.60205@mapgears.com> <4DFF9FF1.5010901@gatewaygeomatics.com> <4DFFBBD8.9020506@gatewaygeomatics.com> <1707053307015630229@unknownmsgid> Message-ID: <012e01cc3016$734cab80$59e60280$@green@ibstv.co.uk> Tamas OK, it?s good to know that I should be able to make it work. At the moment I have a layer with around 5000 features, each feature having an attribute showing the groups that it belongs to ? something like the following: Feature 1 ?group1|group3|group4|group7? Feature2 ?group1|group2|group5|group8? . . . Feature5000 ?group2|group4|group7|group9? If I use a mapfile that incorporates a cluster class (very similar to the example in the documentation) and set the layer up with no filter as follows then I get the expected cluster map which incorporates all 5000 features: $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); .. .. $image=$map->draw(); $image_url=$image->saveWebImage(); If I try to incorporate a filter into this layer in the form ?/group4/? then I get no output at all. I tried various methods to apply the filter, e.g.: $layer1->set(?filteritem?, ?Groups?); $layer1->setFilter(?/group4/?); Or (as suggested by Daniel) $layer1->cluster->setFilter(?/group4/?); I also tried using ?group4? instead of ?/group4/? because there is some reference in 6.0 documentation to the regex syntax changing, but this did not help. On the other hand if reorganise the mapfile so the layer has no cluster class, then filtering works fine, so only around 400 features from group4 are displayed when I use: $layer1->set(?filteritem?, ?Groups?); $layer1->setFilter(?/group4/?); I have been experimenting with this for the last two days but have not found a way to obtain a clustered output that is filtered (or a filtered output that is clustered, I don?t care which). Can you confirm if you think there should be a way to make this work (and even better, suggest some other syntax I could try)? Chris From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: 21 June 2011 13:32 To: Chris Green Cc: Jeff McKenna; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? Hi Chris, The cluster->filter setting accepts mapserver expressions which should evaluate to a boolean value. This is something similar to the layer->filter option, provided the option to exclude certain features to be used in the clustering algoritm. I'm not sure about you exact requirement, so I cannot decide whether it provides a solution or not. Best regards, Tamas 2011/6/21 Chris Green Hi Jeff I'd be happy to go down that path and document examples along the way as you suggest, but I have a feeling that there may be something about the way that the cluster algorithm works that makes it incompatible with the regex filtering that I would also like to do. If that turns out to be the case then I will need to restructure the way that I access my data, in effect to filter it myself before presenting it to the layer to be displayed with clustering. This will be quite a task - before I decide which way to go on this is there someone out there who can confirm (at least in principle) that it should be possible to simultaneously filter and cluster the data in a layer if I can only find the right mapscript syntax to make it happen? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 20 June 2011 22:30 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? Hi Chris, Let's plan this for our next phase of attack. As you travel down this cluster-php-mapscript path, document your full examples in the MapServer wiki: - login to the wiki (use your osgeo ID, which you can create at http://www.osgeo.org/osgeo_userid) - goto http://trac.osgeo.org/mapserver/wiki/PHPMapScript - create a new page there, in the "Examples" section - add as many examples as you wish for the Cluster object - be sure to add "this was added by [yourname] [email]" - when you are satisfied with that, email the mapserver-dev mailing list - then I will change the CLUSTER example in http://www.mapserver.org/mapfile/cluster.html#php-mapscript-usage to point to your page And you get all the glory! :) thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-06-20 4:47 PM, Chris Green wrote: > Hi Jeff > > Thanks. Fame at last...! > > However I am still struggling with the combination of clustering and regex filtering. What I can say for sure is that clustering works if no regex filter is applied, and filtering works (using a regex filter in the form "/target/") with no clustering. But I have so far failed to make the two work together. > > This is where I am currently (which does not work for me): > > $map = ms_newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); > $layer1=$map->getLayerByName("test1"); > $layer1->cluster; > $layer1->set("filteritem", "attribute 1"); > $layer1->setFilter("/target/"); > > Any ideas? > > > Chris > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna > Sent: 20 June 2011 20:31 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] PHP-Mapscript - clusterObj ? > > Hi Chris, > > I've added your PHP MapScript example to the mapfile's CLUSTER page: > http://www.mapserver.org/mapfile/cluster.html > > Thanks! > > -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 reh2 at prodigy.net Tue Jun 21 06:43:54 2011 From: reh2 at prodigy.net (Robert Hollingsworth) Date: Tue, 21 Jun 2011 06:43:54 -0700 (PDT) Subject: [mapserver-users] Re: symbol position moving when using angle In-Reply-To: <20110622012420.F04F8E0214E@lists.osgeo.org> Message-ID: <492313.81578.qm@web80506.mail.mud.yahoo.com> looks to me like the 'base point' around which the symbol is defined in terms of x-y position, and therefore around which the thing will rotate -- is to the lower-left of the visible exclamation mark: ?????? # ?????? # ?????? # ?????? # x? << rotates around this while you really want something like: ?????? # ?????? # ?????? #?? << rotates around this point ?????? # I'm guessing this is the normal case for most ttf's?? Can you find or create a ttf char that is defined like the second case?? Otherwise probably need to use a bitmap or just block out what you need with mapserver vector symbology Robert ====================================================== original msg ====================================================== Hi list, hopefully someone can explain the following issue to me. I am using a vector symbol (ttf), and when using no angle, it is positioned correctly. However, when I use ANGLE on the STYLE (using an attribute in the dataset), things get weird and the symbol position changes. Image brous4.png (no rotation in Mapserver, red exclamation marks are Mapserver, black exclamation marks are ArcMap, blue dot is the same Mapserver layer using a circle symbol to display the location): http://www.osgis.nl/download/mapserver/brous4.png Image brous3.png, now we rotate the symbols in Mapserver, but their location is moving (a simple OFFSET does not seem to be a possible solution however): http://www.osgis.nl/download/mapserver/brous3.png TIA for any guidance. Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Tue Jun 21 06:54:47 2011 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 21 Jun 2011 15:54:47 +0200 (CEST) Subject: [mapserver-users] Re: symbol position moving when using angle In-Reply-To: <492313.81578.qm@web80506.mail.mud.yahoo.com> References: <492313.81578.qm@web80506.mail.mud.yahoo.com> Message-ID: <62488.145.50.39.8.1308664487.squirrel@webmail.hostingdiscounter.nl> Hi Robert, thanks for your answer, indeed that must be the explanation. However, the ESRI software (ArcMap in this case) is doing what we expect with the same true type font. Best regards, Bart > looks to me like the 'base point' around which the symbol is defined in > terms > of x-y position, and therefore around which the thing will rotate -- is to > the lower-left of the visible exclamation mark: > > ?????? # > ?????? # > ?????? # > > ?????? # > x? << rotates around this > > while you really want something like: > > ?????? # > ?????? # > ?????? #?? << rotates around this point > > ?????? # > > I'm guessing this is the normal case for most ttf's?? Can you find or > create a ttf char that is defined like the second case?? Otherwise > probably need to use a bitmap or just block out what you need with > mapserver vector symbology > > Robert > ====================================================== > original msg > ====================================================== > Hi list, > > hopefully someone can explain the following issue to me. > > I am using a vector symbol (ttf), and when using no angle, it is > positioned correctly. > > However, when I use ANGLE on the STYLE (using an attribute in the > dataset), things get weird and the symbol position changes. > > Image brous4.png (no rotation in Mapserver, red exclamation marks are > Mapserver, black exclamation marks are ArcMap, blue dot is the same > Mapserver layer using a circle symbol to display the location): > > http://www.osgis.nl/download/mapserver/brous4.png > > Image brous3.png, now we rotate the symbols in Mapserver, but their > location is moving (a simple OFFSET does not seem to be a possible > solution however): > > http://www.osgis.nl/download/mapserver/brous3.png > > TIA for any guidance. > > Best regards, > Bart > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Andreas-Alexander.Maul at bgr.de Tue Jun 21 07:02:33 2011 From: Andreas-Alexander.Maul at bgr.de (Maul, Andreas-Alexander) Date: Tue, 21 Jun 2011 16:02:33 +0200 Subject: AW: [mapserver-users] Re: symbol position moving when using angle In-Reply-To: <62488.145.50.39.8.1308664487.squirrel@webmail.hostingdiscounter.nl> References: <492313.81578.qm@web80506.mail.mud.yahoo.com> <62488.145.50.39.8.1308664487.squirrel@webmail.hostingdiscounter.nl> Message-ID: Hi Bart, may be this is what you are looking for: >From the map file documentation: LABEL ... POSITION [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto] Position of the label relative to the labeling point (layers only). First letter is "Y" position, second letter is "X" position. "Auto" tells MapServer to calculate a label position that will not interfere with other labels. With points, MapServer selects from the 8 outer positions (i.e. excluding cc). With polygons, MapServer selects from cc (added in MapServer 5.4), uc, lc, cl and cr as possible positions. With lines, it only uses lc or uc, until it finds a position that doesn't collide with labels that have already been drawn. If all positions cause a conflict, then the label is not drawn (Unless the label's FORCE a parameter is set to "true"). "Auto" placement is only available with cached labels. Regards, Andreas -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Bart van den Eijnden (OSGIS) Gesendet: Dienstag, 21. Juni 2011 15:55 An: Robert Hollingsworth Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Re: symbol position moving when using angle Hi Robert, thanks for your answer, indeed that must be the explanation. However, the ESRI software (ArcMap in this case) is doing what we expect with the same true type font. Best regards, Bart > looks to me like the 'base point' around which the symbol is defined in > terms > of x-y position, and therefore around which the thing will rotate -- is to > the lower-left of the visible exclamation mark: > > ?????? # > ?????? # > ?????? # > > ?????? # > x? << rotates around this > > while you really want something like: > > ?????? # > ?????? # > ?????? #?? << rotates around this point > > ?????? # > > I'm guessing this is the normal case for most ttf's?? Can you find or > create a ttf char that is defined like the second case?? Otherwise > probably need to use a bitmap or just block out what you need with > mapserver vector symbology > > Robert > ====================================================== > original msg > ====================================================== > Hi list, > > hopefully someone can explain the following issue to me. > > I am using a vector symbol (ttf), and when using no angle, it is > positioned correctly. > > However, when I use ANGLE on the STYLE (using an attribute in the > dataset), things get weird and the symbol position changes. > > Image brous4.png (no rotation in Mapserver, red exclamation marks are > Mapserver, black exclamation marks are ArcMap, blue dot is the same > Mapserver layer using a circle symbol to display the location): > > http://www.osgis.nl/download/mapserver/brous4.png > > Image brous3.png, now we rotate the symbols in Mapserver, but their > location is moving (a simple OFFSET does not seem to be a possible > solution however): > > http://www.osgis.nl/download/mapserver/brous3.png > > TIA for any guidance. > > Best regards, > Bart > _______________________________________________ > 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 bartvde at osgis.nl Tue Jun 21 07:12:46 2011 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 21 Jun 2011 16:12:46 +0200 (CEST) Subject: AW: [mapserver-users] Re: symbol position moving when using angle In-Reply-To: References: <492313.81578.qm@web80506.mail.mud.yahoo.com> <62488.145.50.39.8.1308664487.squirrel@webmail.hostingdiscounter.nl> Message-ID: <24775.145.50.39.8.1308665566.squirrel@webmail.hostingdiscounter.nl> Hi Andreas, I am not drawing labels in this particular case, I am drawing points with a ttf symbol. CLASS STYLE ANGLE [GRADENHOEK] SYMBOL "foo" SIZE 50 COLOR 255 0 0 END END SYMBOL NAME "foo" TYPE TRUETYPE FONT "arial" CHARACTER "!" ANTIALIAS TRUE END Best regards, Bart > Hi Bart, > may be this is what you are looking for: > From the map file documentation: > > LABEL > ... > POSITION [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto] > Position of the label relative to the labeling point (layers only). > First letter is "Y" position, second letter is "X" position. "Auto" > tells MapServer to calculate a label position that will not interfere > with other labels. With points, MapServer selects from the 8 outer > positions (i.e. excluding cc). With polygons, MapServer selects from > cc (added in MapServer 5.4), uc, lc, cl and cr as possible positions. > With lines, it only uses lc or uc, until it finds a position that > doesn't collide with labels that have already been drawn. If all > positions cause a conflict, then the label is not drawn (Unless the > label's FORCE a parameter is set to "true"). "Auto" placement is only > available with cached labels. > > Regards, > Andreas > > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Bart van > den Eijnden (OSGIS) > Gesendet: Dienstag, 21. Juni 2011 15:55 > An: Robert Hollingsworth > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Re: symbol position moving when using angle > > Hi Robert, > > thanks for your answer, indeed that must be the explanation. > > However, the ESRI software (ArcMap in this case) is doing what we expect > with the same true type font. > > Best regards, > Bart > >> looks to me like the 'base point' around which the symbol is defined in >> terms >> of x-y position, and therefore around which the thing will rotate -- is >> to >> the lower-left of the visible exclamation mark: >> >> ?????? # >> ?????? # >> ?????? # >> >> ?????? # >> x? << rotates around this >> >> while you really want something like: >> >> ?????? # >> ?????? # >> ?????? #?? << rotates around this point >> >> ?????? # >> >> I'm guessing this is the normal case for most ttf's?? Can you find or >> create a ttf char that is defined like the second case?? Otherwise >> probably need to use a bitmap or just block out what you need with >> mapserver vector symbology >> >> Robert >> ====================================================== >> original msg >> ====================================================== >> Hi list, >> >> hopefully someone can explain the following issue to me. >> >> I am using a vector symbol (ttf), and when using no angle, it is >> positioned correctly. >> >> However, when I use ANGLE on the STYLE (using an attribute in the >> dataset), things get weird and the symbol position changes. >> >> Image brous4.png (no rotation in Mapserver, red exclamation marks are >> Mapserver, black exclamation marks are ArcMap, blue dot is the same >> Mapserver layer using a circle symbol to display the location): >> >> http://www.osgis.nl/download/mapserver/brous4.png >> >> Image brous3.png, now we rotate the symbols in Mapserver, but their >> location is moving (a simple OFFSET does not seem to be a possible >> solution however): >> >> http://www.osgis.nl/download/mapserver/brous3.png >> >> TIA for any guidance. >> >> Best regards, >> Bart >> _______________________________________________ >> 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 Andreas-Alexander.Maul at bgr.de Tue Jun 21 07:36:45 2011 From: Andreas-Alexander.Maul at bgr.de (Maul, Andreas-Alexander) Date: Tue, 21 Jun 2011 16:36:45 +0200 Subject: [mapserver-users] Re: symbol position moving when using angle In-Reply-To: <24775.145.50.39.8.1308665566.squirrel@webmail.hostingdiscounter.nl> References: <492313.81578.qm@web80506.mail.mud.yahoo.com> <62488.145.50.39.8.1308664487.squirrel@webmail.hostingdiscounter.nl> <24775.145.50.39.8.1308665566.squirrel@webmail.hostingdiscounter.nl> Message-ID: Hi Bart, the Migration Guide says that the keyword POSITION can also be used in the STYLE section since version 6.0. Regards, Andreas -----Urspr?ngliche Nachricht----- Von: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] Gesendet: Dienstag, 21. Juni 2011 16:13 An: Maul, Andreas-Alexander Cc: mapserver-users at lists.osgeo.org; bartvde at osgis.nl Betreff: Re: AW: [mapserver-users] Re: symbol position moving when using angle Hi Andreas, I am not drawing labels in this particular case, I am drawing points with a ttf symbol. CLASS STYLE ANGLE [GRADENHOEK] SYMBOL "foo" SIZE 50 COLOR 255 0 0 END END SYMBOL NAME "foo" TYPE TRUETYPE FONT "arial" CHARACTER "!" ANTIALIAS TRUE END Best regards, Bart > Hi Bart, > may be this is what you are looking for: > From the map file documentation: > > LABEL > ... > POSITION [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto] > Position of the label relative to the labeling point (layers only). > First letter is "Y" position, second letter is "X" position. "Auto" > tells MapServer to calculate a label position that will not interfere > with other labels. With points, MapServer selects from the 8 outer > positions (i.e. excluding cc). With polygons, MapServer selects from > cc (added in MapServer 5.4), uc, lc, cl and cr as possible positions. > With lines, it only uses lc or uc, until it finds a position that > doesn't collide with labels that have already been drawn. If all > positions cause a conflict, then the label is not drawn (Unless the > label's FORCE a parameter is set to "true"). "Auto" placement is only > available with cached labels. > > Regards, > Andreas > > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Bart van > den Eijnden (OSGIS) > Gesendet: Dienstag, 21. Juni 2011 15:55 > An: Robert Hollingsworth > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Re: symbol position moving when using angle > > Hi Robert, > > thanks for your answer, indeed that must be the explanation. > > However, the ESRI software (ArcMap in this case) is doing what we expect > with the same true type font. > > Best regards, > Bart > >> looks to me like the 'base point' around which the symbol is defined in >> terms >> of x-y position, and therefore around which the thing will rotate -- is >> to >> the lower-left of the visible exclamation mark: >> >> ?????? # >> ?????? # >> ?????? # >> >> ?????? # >> x? << rotates around this >> >> while you really want something like: >> >> ?????? # >> ?????? # >> ?????? #?? << rotates around this point >> >> ?????? # >> >> I'm guessing this is the normal case for most ttf's?? Can you find or >> create a ttf char that is defined like the second case?? Otherwise >> probably need to use a bitmap or just block out what you need with >> mapserver vector symbology >> >> Robert >> ====================================================== >> original msg >> ====================================================== >> Hi list, >> >> hopefully someone can explain the following issue to me. >> >> I am using a vector symbol (ttf), and when using no angle, it is >> positioned correctly. >> >> However, when I use ANGLE on the STYLE (using an attribute in the >> dataset), things get weird and the symbol position changes. >> >> Image brous4.png (no rotation in Mapserver, red exclamation marks are >> Mapserver, black exclamation marks are ArcMap, blue dot is the same >> Mapserver layer using a circle symbol to display the location): >> >> http://www.osgis.nl/download/mapserver/brous4.png >> >> Image brous3.png, now we rotate the symbols in Mapserver, but their >> location is moving (a simple OFFSET does not seem to be a possible >> solution however): >> >> http://www.osgis.nl/download/mapserver/brous3.png >> >> TIA for any guidance. >> >> Best regards, >> Bart >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From steve.lime at state.mn.us Tue Jun 21 08:34:19 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 21 Jun 2011 10:34:19 -0500 Subject: [mapserver-users] Mapserver docs mobile app In-Reply-To: <4DFF4FC7.60901@mapgears.com> References: <001201cc2f2b$66156880$32403980$@de> <4DFF44F2.2090704@gatewaygeomatics.com> <4DFF4FC7.60901@mapgears.com> Message-ID: Good idea. Site works nice on an iPhone 4... -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Monday, June 20, 2011 8:49 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver docs mobile app On 11-06-20 09:02 AM, Jeff McKenna wrote: > On 11-06-20 6:21 AM, Sven Schroeter wrote: >> >> The "webapp" you can find here: >> http://www.netgis.de/mapserver_mdoc/ >> >> If you want, I can upload the app in the android market. >> Maybe you can give feedback how it works on other android devices? >> Thanks and greetings >> Sven > > Interesting. I would say once you are satisfied with it fire an email to > the mapserver-dev mailing list and we can post it on the MapServer website. > Very cool indeed! The web version could become http://m.mapserver.org/ ... -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ 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 Jun 21 09:09:09 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 21 Jun 2011 11:09:09 -0500 Subject: [mapserver-users] Mapserver 6.0 regex In-Reply-To: <00c001cc2f70$dfecea30$9fc6be90$@green@ibstv.co.uk> References: <00c001cc2f70$dfecea30$9fc6be90$@green@ibstv.co.uk> Message-ID: Hmmm... A plain 'ol regex expression did not change between 5.6 and 6.0, so this is still valid: FILTERITEM 'myitem' FILTER /myregex/ Where regex's changed is inside logical expressions: FILTER ('[myitem]' ~= /myregex/) becomes FILTER ('[myitem]' ~ 'myregex') There are regression tests for these cases (query/filters.map) so I'm pretty sure MapServer proper is working ok. You might try setting the filter and filteritem directly in the mapfile see if that works. If it does then it's likely a problem with PHP/MapScript. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: Monday, June 20, 2011 12:39 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver 6.0 regex I have one (hopefully the last!) problem with migrating from Mapserver 4.6 to 6.0, this time over the use of regex. Using Mapscript on a Fedora platform I have been setting a filter in this manner: $map=newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); $layer1->set("filteritem", "Attribute1"); $layer1->setFilter("/target/"); This worked fine, but not anymore. I see in the migration guide that a regex should now be delineated as a string so I assume that "/target/" should become "target". But that doesn't work either. I am wondering if part of the problem is that as well as going from Mapserver 4.6 to 5.0 I also changed from Fedora to Ubuntu 10.04, and I see from the Mapserver documentation on Expressions that the OS may affect regex operation. Am I missing something obvious here? I am really tired of going in circles over this... Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Tue Jun 21 09:46:39 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Tue, 21 Jun 2011 17:46:39 +0100 Subject: [mapserver-users] Mapserver 6.0 regex In-Reply-To: References: <00c001cc2f70$dfecea30$9fc6be90$@green@ibstv.co.uk> Message-ID: <023a01cc3032$cb02fb10$6108f130$@green@ibstv.co.uk> Hi Steve That's a very constructive suggestion. With no mapscript involved and with the mapfile set up without a cluster class I added into the layer section: FILTERITEM 'Groups' FILTER /group4/ This worked: I got only group4 features. Then I changed the mapfile to use a cluster class, with no filter: this worked, I got all features clustered and with labels showing the FeatureCount for each cluster. Then I inserted the same FILTERITEM and FILTER into the layer as above, and there is no output. Nada. So it seems to be not a mapscript problem, but some kind of conflict between clustering and filtering in Mapserver? Chris From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sent: 21 June 2011 17:09 To: Chris Green; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Mapserver 6.0 regex Hmmm. A plain 'ol regex expression did not change between 5.6 and 6.0, so this is still valid: FILTERITEM 'myitem' FILTER /myregex/ Where regex's changed is inside logical expressions: FILTER ('[myitem]' ~= /myregex/) becomes FILTER ('[myitem]' ~ 'myregex') There are regression tests for these cases (query/filters.map) so I'm pretty sure MapServer proper is working ok. You might try setting the filter and filteritem directly in the mapfile see if that works. If it does then it's likely a problem with PHP/MapScript. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: Monday, June 20, 2011 12:39 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver 6.0 regex I have one (hopefully the last!) problem with migrating from Mapserver 4.6 to 6.0, this time over the use of regex. Using Mapscript on a Fedora platform I have been setting a filter in this manner: $map=newMapobj("/var/www/vhosts/mysite/httpdocs/test.map"); $layer1=$map->getLayerByName("test1"); $layer1->set("filteritem", "Attribute1"); $layer1->setFilter("/target/"); This worked fine, but not anymore. I see in the migration guide that a regex should now be delineated as a string so I assume that "/target/" should become "target". But that doesn't work either. I am wondering if part of the problem is that as well as going from Mapserver 4.6 to 5.0 I also changed from Fedora to Ubuntu 10.04, and I see from the Mapserver documentation on Expressions that the OS may affect regex operation. Am I missing something obvious here? I am really tired of going in circles over this. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From reh2 at prodigy.net Tue Jun 21 10:16:46 2011 From: reh2 at prodigy.net (Robert Hollingsworth) Date: Tue, 21 Jun 2011 10:16:46 -0700 (PDT) Subject: [mapserver-users] Re: symbol position moving when using angle In-Reply-To: <62488.145.50.39.8.1308664487.squirrel@webmail.hostingdiscounter.nl> Message-ID: <637797.14245.qm@web80506.mail.mud.yahoo.com> Bart, re: recent comments about ability to POSITION a symbol in mapserver 6, (sorry, my message probably won't insert into the message thread nicely) I wonder if any offsetting behavior would cure this problem for a ttf symbol.? Or another way to state it, I wonder if there is an inconsistency in mapserver on how it places and rotates ttf symbols. Seems we really want this behavior: +-----+ |? #? | |? #? | |? #? | |? X? |?? <-- Place the cell where the X is directly over the |???? |?????? POINT object's x,y location |? #? |????????????? AND also rotate the symbol around X |???? | +-----+ ^ | and DON'T rotate the ttf symbol around this point, as appears to be the current case... also, from your original sample image, it appears the symbol has a bit of this: +-------+ |? # ?? | |? # ?? | |? # ?? | |? # ?? |?? |??? ?? |???????? |? # ?? | |??? ?? | +-------+ so, one might actually want to be able to SPECIFY an x,y offset within the character cell on which the symbol is PLACED and a separate spec for an x,y offset within the char cell on which to ROTATE? (with reasonable defaults, such as, both being the geometric center of the char cell)? Robert Hi Robert, thanks for your answer, indeed that must be the explanation. However, the ESRI software (ArcMap in this case) is doing what we expect with the same true type font. Best regards, Bart > looks to me like the 'base point' around which the symbol is defined in > terms > of x-y position, and therefore around which the thing will rotate -- is to > the lower-left of the visible exclamation mark: > > ?????? # > ?????? # > ?????? # > > ?????? # > x? << rotates around this > > while you really want something like: > > ?????? # > ?????? # > ?????? #?? << rotates around this point > > ?????? # > > I'm guessing this is the normal case for most ttf's?? Can you find or > create a ttf char that is defined like the second case?? Otherwise > probably need to use a bitmap or just block out what you need with > mapserver vector symbology > > Robert > ====================================================== > original msg > ====================================================== > Hi list, > > hopefully someone can explain the following issue to me. > > I am using a vector symbol (ttf), and when using no angle, it is > positioned correctly. > > However, when I use ANGLE on the STYLE (using an attribute in the > dataset), things get weird and the symbol position changes. > > Image brous4.png (no rotation in Mapserver, red exclamation marks are > Mapserver, black exclamation marks are ArcMap, blue dot is the same > Mapserver layer using a circle symbol to display the location): > > http://www.osgis.nl/download/mapserver/brous4.png > > Image brous3.png, now we rotate the symbols in Mapserver, but their > location is moving (a simple OFFSET does not seem to be a possible > solution however): > > http://www.osgis.nl/download/mapserver/brous3.png > > TIA for any guidance. > > Best regards, > Bart > _______________________________________________ > 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 Tue Jun 21 10:34:49 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 21 Jun 2011 19:34:49 +0200 Subject: [mapserver-users] Mapserver 6.0 regex In-Reply-To: <3818619934034668659@unknownmsgid> References: <3818619934034668659@unknownmsgid> Message-ID: Hi Chris, The cluster->filter can only accept mapserver expressions, filteritem and regex at layer level does not affect this setting. However I consider the layer level filter should probably work, could you file a ticket by adding some test data and a mapfile example? Best regards, Tamas 2011/6/21 Chris Green > Hi Steve**** > > ** ** > > That?s a very constructive suggestion. With no mapscript involved and with > the mapfile set up without a cluster class I added into the layer section: > **** > > ** ** > > FILTERITEM ?Groups?**** > > FILTER /group4/**** > > ** ** > > This worked: I got only group4 features.**** > > ** ** > > ** ** > > Then I changed the mapfile to use a cluster class, with no filter: this > worked, I got all features clustered and with labels showing the > FeatureCount for each cluster. **** > > ** ** > > Then I inserted the same FILTERITEM and FILTER into the layer as above, and > there is no output. Nada.**** > > ** ** > > So it seems to be not a mapscript problem, but some kind of conflict > between clustering and filtering in Mapserver?**** > > ** ** > > ** ** > > Chris**** > > ** ** > > *From:* Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] > *Sent:* 21 June 2011 17:09 > *To:* Chris Green; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] Mapserver 6.0 regex**** > > ** ** > > Hmmm? A plain ?ol regex expression did not change between 5.6 and 6.0, so > this is still valid:**** > > ** ** > > FILTERITEM ?myitem?**** > > FILTER /myregex/**** > > ** ** > > Where regex?s changed is *inside* logical expressions:**** > > ** ** > > FILTER (?[myitem]? ~= /myregex/) becomes FILTER (?[myitem]? ~ ?myregex?) > **** > > ** ** > > There are regression tests for these cases (query/filters.map) so I?m > pretty sure MapServer proper is working ok. You might try setting the filter > and filteritem directly in the mapfile see if that works. If it does then > it?s likely a problem with PHP/MapScript.**** > > ** ** > > Steve**** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Chris Green > *Sent:* Monday, June 20, 2011 12:39 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Mapserver 6.0 regex**** > > ** ** > > I have one (hopefully the last!) problem with migrating from Mapserver 4.6 > to 6.0, this time over the use of regex.**** > > ** ** > > Using Mapscript on a Fedora platform I have been setting a filter in this > manner:**** > > ** ** > > ** ** > > $map=newMapobj("/var/www/vhosts/mysite/httpdocs/test.map");**** > > $layer1=$map->getLayerByName("test1");**** > > $layer1->set("filteritem", "Attribute1");**** > > $layer1->setFilter("/target/");**** > > ** ** > > This worked fine, but not anymore. I see in the migration guide that a > regex should now be delineated as a string so I assume that ?/target/? > should become ?target?. But that doesn?t work either.**** > > ** ** > > ** ** > > I am wondering if part of the problem is that as well as going from > Mapserver 4.6 to 5.0 I also changed from Fedora to Ubuntu 10.04, and I see > from the Mapserver documentation on Expressions that the OS may affect regex > operation.**** > > ** ** > > Am I missing something obvious here? I am really tired of going in > circles over this?**** > > ** ** > > ** ** > > 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 thomas.bonfort at gmail.com Tue Jun 21 10:52:53 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 21 Jun 2011 19:52:53 +0200 Subject: [mapserver-users] symbol position moving when using angle In-Reply-To: <52612.145.50.39.8.1308659871.squirrel@webmail.hostingdiscounter.nl> References: <52612.145.50.39.8.1308659871.squirrel@webmail.hostingdiscounter.nl> Message-ID: Bart, What mapserver version, and which renderer? Le 21 juin 2011 14:38, "Bart van den Eijnden (OSGIS)" a ?crit : > Hi list, > > hopefully someone can explain the following issue to me. > > I am using a vector symbol (ttf), and when using no angle, it is > positioned correctly. > > However, when I use ANGLE on the STYLE (using an attribute in the > dataset), things get weird and the symbol position changes. > > Image brous4.png (no rotation in Mapserver, red exclamation marks are > Mapserver, black exclamation marks are ArcMap, blue dot is the same > Mapserver layer using a circle symbol to display the location): > > http://www.osgis.nl/download/mapserver/brous4.png > > Image brous3.png, now we rotate the symbols in Mapserver, but their > location is moving (a simple OFFSET does not seem to be a possible > solution however): > > http://www.osgis.nl/download/mapserver/brous3.png > > TIA for any guidance. > > Best regards, > Bart > > _______________________________________________ > 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 bartvde at osgis.nl Tue Jun 21 11:02:27 2011 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Tue, 21 Jun 2011 20:02:27 +0200 Subject: [mapserver-users] symbol position moving when using angle In-Reply-To: References: <52612.145.50.39.8.1308659871.squirrel@webmail.hostingdiscounter.nl> Message-ID: <9AF63322-710E-4238-80B9-19A01A8738CA@osgis.nl> Hi Thomas, I tested both 5.2 and 5.7 (i.e. trunk a few months after the 5.6 release). Renderer: my guess is GD but I would need to check on Thursday to be sure. Best regards, Bart Sent from my iPhone On Jun 21, 2011, at 7:52 PM, thomas bonfort wrote: > Bart, > What mapserver version, and which renderer? > > Le 21 juin 2011 14:38, "Bart van den Eijnden (OSGIS)" a ?crit : > > Hi list, > > > > hopefully someone can explain the following issue to me. > > > > I am using a vector symbol (ttf), and when using no angle, it is > > positioned correctly. > > > > However, when I use ANGLE on the STYLE (using an attribute in the > > dataset), things get weird and the symbol position changes. > > > > Image brous4.png (no rotation in Mapserver, red exclamation marks are > > Mapserver, black exclamation marks are ArcMap, blue dot is the same > > Mapserver layer using a circle symbol to display the location): > > > > http://www.osgis.nl/download/mapserver/brous4.png > > > > Image brous3.png, now we rotate the symbols in Mapserver, but their > > location is moving (a simple OFFSET does not seem to be a possible > > solution however): > > > > http://www.osgis.nl/download/mapserver/brous3.png > > > > TIA for any guidance. > > > > Best regards, > > Bart > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Jun 21 11:11:18 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 21 Jun 2011 20:11:18 +0200 Subject: [mapserver-users] symbol position moving when using angle In-Reply-To: <9AF63322-710E-4238-80B9-19A01A8738CA@osgis.nl> References: <52612.145.50.39.8.1308659871.squirrel@webmail.hostingdiscounter.nl> <9AF63322-710E-4238-80B9-19A01A8738CA@osgis.nl> Message-ID: 6.0 should be ok except for GD: have a look in msautotest/renderers/point-truetype. I would guess a recent 5.x is ok with agg to. Guetting it to work with GD is very low on my todo list (i.e. improbable without funding) Le 21 juin 2011 20:02, "Bart van den Eijnden" a ?crit : > Hi Thomas, > > I tested both 5.2 and 5.7 (i.e. trunk a few months after the 5.6 release). > > Renderer: my guess is GD but I would need to check on Thursday to be sure. > > Best regards, > Bart > > Sent from my iPhone > > On Jun 21, 2011, at 7:52 PM, thomas bonfort wrote: > >> Bart, >> What mapserver version, and which renderer? >> >> Le 21 juin 2011 14:38, "Bart van den Eijnden (OSGIS)" a ?crit : >> > Hi list, >> > >> > hopefully someone can explain the following issue to me. >> > >> > I am using a vector symbol (ttf), and when using no angle, it is >> > positioned correctly. >> > >> > However, when I use ANGLE on the STYLE (using an attribute in the >> > dataset), things get weird and the symbol position changes. >> > >> > Image brous4.png (no rotation in Mapserver, red exclamation marks are >> > Mapserver, black exclamation marks are ArcMap, blue dot is the same >> > Mapserver layer using a circle symbol to display the location): >> > >> > http://www.osgis.nl/download/mapserver/brous4.png >> > >> > Image brous3.png, now we rotate the symbols in Mapserver, but their >> > location is moving (a simple OFFSET does not seem to be a possible >> > solution however): >> > >> > http://www.osgis.nl/download/mapserver/brous3.png >> > >> > TIA for any guidance. >> > >> > Best regards, >> > Bart >> > >> > _______________________________________________ >> > 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 sakaroyban at yahoo.com Tue Jun 21 11:21:52 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Tue, 21 Jun 2011 11:21:52 -0700 (PDT) Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <667C0AFD-D62A-417D-8DE6-E0C3DA2D469D@remoteinformation.com.au> References: <20110621011525.0844012A9FF9@lists.osgeo.org> <667C0AFD-D62A-417D-8DE6-E0C3DA2D469D@remoteinformation.com.au> Message-ID: <955212.78010.qm@web121611.mail.ne1.yahoo.com> Thanks a lot for your informative answers. As u mentioned, it's going to be off topic (of mapserver, Postgis list sounds a better place for it), but unfortunately I'm still confused. According to what i understood from your Select(s), you are saving all vehicles with their points and timestamps in one table. Why not to partition this into some tables for preventing a large table? (because i have to deal a growing number of vehicles, this is of importance to me) Dear Ben Also, I'm so sorry, but i didn't find Regina Obe comments on running tracks in internet. Do u have any more information? With best wishes Best Regards ________________________________ From: Ben Madin To: mapserver-users at lists.osgeo.org Sent: Tue, June 21, 2011 8:59:46 AM Subject: Re: [mapserver-users] Asking for guidelines about a project Brent et al, Becoming off topic, but ours went something like : DATA "the_move FROM (select ST_MakeLine(the_geom) as the_move, sq.polltime FROM (SELECT the_geom, CAST(polltime AS date) as polltime FROM vms WHERE vesselname like '%pg_sql%' ORDER BY polltime LIMIT 36) sq GROUP BY sq.polltime) AS foo USING UNIQUE polltime USING SRID=4326" but all credit for the concept goes to Regina Obe - I think she was showing running tracks! try postgresonline or the postgis list. cheers Ben On 21/06/2011, at 11:15 AM, mapserver-users-request at lists.osgeo.org wrote: From: Brent Fraser > >Date: 20 June 2011 11:43:52 PM AEST > >To: Ben Madin > >Cc: mapserver-users at lists.osgeo.org > >Subject: Re: [mapserver-users] Asking for guidelines about a project > > >Ben, > > Our setup was similar. We had a current_location table and a archive_location >table. To filter the archive_location for positions in the last 24 hours we had >a view: > >CREATE VIEW archive_v AS > SELECT > archive_location.vessel_id, > archive_location.time_fix, > archive_location.speed, > archive_location.heading, > archive_location.vessel_coordinate, > archive_location.archive_sequence, > vessel_cfg.vessel_name, > owner.org_name > FROM archive_location,owner,vessel_cfg > WHERE archive_location.owner_id=owner.org_id AND > archive_location.vessel_id=vessel_cfg.vessel_id AND > ((now() AT TIME ZONE 'utc') - (archive_location.time_fix)) <= >'24 hour'; > >I can't recall how we created linestrings for the tracks from the above view, >but I think we used the archive_sequence number (this was assigned at insert >time, per vessel) to order the points into lines. > >Best Regards, Brent Fraser > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Jun 21 11:44:14 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 21 Jun 2011 12:44:14 -0600 Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <955212.78010.qm@web121611.mail.ne1.yahoo.com> References: <20110621011525.0844012A9FF9@lists.osgeo.org> <667C0AFD-D62A-417D-8DE6-E0C3DA2D469D@remoteinformation.com.au> <955212.78010.qm@web121611.mail.ne1.yahoo.com> Message-ID: <4E00E67E.4050302@geoanalytic.com> Mainly because adding a new vehicle is trivial from a site maintenance perspective if you have all vehicles in one table. Adding a table would likely mean you would need to add a layer in Mapserver, but it depends on your user interface needs. For my first implementation, I did have some concerns regarding performance if I put all the historical positions in a table with the current positions. That's why I had two tables: current_position table with about 6 to 20 rows (since I have 6 to 20 vehicles), and an archive_positions table that grew over time. Since the user was usually just concerned with displaying the current position, queries were handled very quickly. As it turned out, the archive_positions table grew to only several hundred thousand records (maybe a million?), and Postgresql had no problems with that. So if I did it again, I'd likely use one table, containing the current and historical positions. But as I mentioned earlier, it might depend on how may vehicles you anticipate tracking, and how often they report (and to some extent how fast they move). Do you have that information? Best Regards, Brent Fraser On 6/21/2011 12:21 PM, Saka Royban wrote: > Thanks a lot for your informative answers. > As u mentioned, it's going to be off topic (of mapserver, Postgis list > sounds a better place for it), but unfortunately I'm still confused. > According to what i understood from your Select(s), you are saving all > vehicles with their points and timestamps in one table. Why not to > partition this into some tables for preventing a large table? > (because i have to deal a growing number of vehicles, this is of > importance to me) > > Dear Ben > Also, I'm so sorry, but i didn't find Regina Obe comments on running > tracks in internet. Do u have any more information? > > With best wishes > Best Regards > > ------------------------------------------------------------------------ > *From:* Ben Madin > *To:* mapserver-users at lists.osgeo.org > *Sent:* Tue, June 21, 2011 8:59:46 AM > *Subject:* Re: [mapserver-users] Asking for guidelines about a project > > Brent et al, > > Becoming off topic, but ours went something like : > > DATA "the_move FROM (select ST_MakeLine(the_geom) as the_move, sq.polltime > FROM (SELECT the_geom, CAST(polltime AS date) as polltime > FROM vms > WHERE vesselname like '%pg_sql%' > ORDER BY polltime LIMIT 36) sq > GROUP BY sq.polltime) AS foo USING UNIQUE polltime USING SRID=4326" > > but all credit for the concept goes to Regina Obe - I think she was > showing running tracks! try postgresonline or the postgis list. > > cheers > > Ben > > > > On 21/06/2011, at 11:15 AM, mapserver-users-request at lists.osgeo.org > wrote: > >> *From:*Brent Fraser > > >> *Date:*20 June 2011 11:43:52 PM AEST >> *To:*Ben Madin > > >> *Cc:*mapserver-users at lists.osgeo.org >> >> *Subject:**Re: [mapserver-users] Asking for guidelines about a project* >> >> >> Ben, >> >> Our setup was similar. We had a current_location table and a >> archive_location table. To filter the archive_location for positions >> in the last 24 hours we had a view: >> >> CREATE VIEW archive_v AS >> SELECT >> archive_location.vessel_id, >> archive_location.time_fix, >> archive_location.speed, >> archive_location.heading, >> archive_location.vessel_coordinate, >> archive_location.archive_sequence, >> vessel_cfg.vessel_name, >> owner.org_name >> FROM archive_location,owner,vessel_cfg >> WHERE archive_location.owner_id=owner.org_id AND >> archive_location.vessel_id=vessel_cfg.vessel_id AND >> ((now() AT TIME ZONE 'utc') - >> (archive_location.time_fix)) <= '24 hour'; >> >> I can't recall how we created linestrings for the tracks from the >> above view, but I think we used the archive_sequence number (this was >> assigned at insert time, per vessel) to order the points into lines. >> Best Regards, >> Brent Fraser >> > > > _______________________________________________ > 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 eduardo.kanegae at gmail.com Tue Jun 21 17:07:28 2011 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Tue, 21 Jun 2011 21:07:28 -0300 Subject: [mapserver-users] MapServer 6 - CGI but php mapscript not Message-ID: Hi, When trying to load php_mapscript module my PHP crashes and report the following error: [17-Jun-2011 20:28:21] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' - /usr/lib/php/modules/php_mapscript.so: undefined symbol: zval_set_isref_p in Unknown on line 0 and does not appear at phpinfo() output. I?m running a CentOS Linux 5.6 with MapServer 6, Apache 2.2.3, PHP 5.2.10 (with apache handler) and this was my configure script general output: MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall -DNDEBUG C++ compiler: g++ -O2 -fPIC -Wall -DNDEBUG Debug: Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal SVG Symbol support: -DUSE_AGG_SVG_SYMBOLS Cairo (SVG,PDF) support: -DUSE_CAIRO KML support: -DUSE_KML -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: -DUSE_FRIBIDI Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: -DUSE_XMLMAPFILE XSLT support: -DUSE_XSLT EXSLT support: -DUSE_EXSLT -------------- Data Format Drivers ------- PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WFS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: yes What did I put wrong at ./configure ? thanks -- Eduardo Patto Kanegae http://www.webmapit.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From sakaroyban at yahoo.com Tue Jun 21 20:46:59 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Tue, 21 Jun 2011 20:46:59 -0700 (PDT) Subject: [mapserver-users] Asking for guidelines about a project In-Reply-To: <4E00E67E.4050302@geoanalytic.com> References: <20110621011525.0844012A9FF9@lists.osgeo.org> <667C0AFD-D62A-417D-8DE6-E0C3DA2D469D@remoteinformation.com.au> <955212.78010.qm@web121611.mail.ne1.yahoo.com> <4E00E67E.4050302@geoanalytic.com> Message-ID: <922931.67059.qm@web121613.mail.ne1.yahoo.com> There is at least (and for now) 100 vehicles with update rate of 5-15 minute. That' why i'm so careful abut table design. Anyway, thanks a million for all your helpful answers. Regards ________________________________ From: Brent Fraser To: Saka Royban Cc: MapServer Sent: Tue, June 21, 2011 11:14:14 PM Subject: Re: [mapserver-users] Asking for guidelines about a project Mainly because adding a new vehicle is trivial from a site maintenance perspective if you have all vehicles in one table. Adding a table would likely mean you would need to add a layer in Mapserver, but it depends on your user interface needs. For my first implementation, I did have some concerns regarding performance if I put all the historical positions in a table with the current positions. That's why I had two tables: current_position table with about 6 to 20 rows (since I have 6 to 20 vehicles), and an archive_positions table that grew over time. Since the user was usually just concerned with displaying the current position, queries were handled very quickly. As it turned out, the archive_positions table grew to only several hundred thousand records (maybe a million?), and Postgresql had no problems with that. So if I did it again, I'd likely use one table, containing the current and historical positions. But as I mentioned earlier, it might depend on how may vehicles you anticipate tracking, and how often they report (and to some extent how fast they move). Do you have that information? Best Regards, Brent Fraser On 6/21/2011 12:21 PM, Saka Royban wrote: Thanks a lot for your informative answers. >As u mentioned, it's going to be off topic (of mapserver, Postgis list >sounds a better place for it), but unfortunately I'm still confused. >According to what i understood from your Select(s), you are saving all >vehicles with their points and timestamps in one table. Why not to >partition this into some tables for preventing a large table? >(because i have to deal a growing number of vehicles, this is of >importance to me) > >Dear Ben >Also, I'm so sorry, but i didn't find Regina Obe comments on running >tracks in internet. Do u have any more information? > >With best wishes >Best Regards > > > > ________________________________ From: Ben Madin >To: mapserver-users at lists.osgeo.org >Sent: Tue, June 21, 2011 8:59:46 AM >Subject: Re: [mapserver-users] Asking for guidelines about a >project > >Brent et al, > > >Becoming off topic, but ours went something like : > > >DATA "the_move FROM (select ST_MakeLine(the_geom) as the_move, >sq.polltime >FROM (SELECT the_geom, CAST(polltime AS date) as polltime >FROM vms >WHERE vesselname like '%pg_sql%' >ORDER BY polltime LIMIT 36) sq >GROUP BY sq.polltime) AS foo USING UNIQUE polltime USING >SRID=4326" > > >but all credit for the concept goes to Regina Obe - I think she >was showing running tracks! try postgresonline or the postgis >list. > > >cheers > > >Ben > > > > > > >On 21/06/2011, at 11:15 AM, mapserver-users-request at lists.osgeo.org wrote: > >From: Brent Fraser >> >>Date: 20 June 2011 11:43:52 PM AEST >> >>To: Ben Madin >> >>Cc: mapserver-users at lists.osgeo.org >> >>Subject: Re: [mapserver-users] Asking for guidelines >>about a project >> >> >>Ben, >> >> Our setup was similar. We had a current_location table and >>a archive_location table. To filter the archive_location for >>positions in the last 24 hours we had a view: >> >>CREATE VIEW archive_v AS >> SELECT >> archive_location.vessel_id, >> archive_location.time_fix, >> archive_location.speed, >> archive_location.heading, >> archive_location.vessel_coordinate, >> archive_location.archive_sequence, >> vessel_cfg.vessel_name, >> owner.org_name >> FROM archive_location,owner,vessel_cfg >> WHERE archive_location.owner_id=owner.org_id AND >> >>archive_location.vessel_id=vessel_cfg.vessel_id AND >> ((now() AT TIME ZONE 'utc') - >>(archive_location.time_fix)) <= '24 hour'; >> >>I can't recall how we created linestrings for the tracks from >>the above view, but I think we used the archive_sequence >>number (this was assigned at insert time, per vessel) to order >>the points into lines. >> >>Best Regards, Brent Fraser >> > > _______________________________________________ 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 chris.green at ibstv.co.uk Wed Jun 22 00:12:56 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 22 Jun 2011 08:12:56 +0100 Subject: [mapserver-users] Mapserver layer - MySQL connection Message-ID: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> Hi all I'm using Mapserver 6.0 and I have GDAL 1.8.0 installed, running under Ubuntu 10.04. I am trying to make a connection from a layer to MySQL, following the guidance given in the MySQL section of Mapserver documentation. My problem is that when I try to connect using ogrinfo like: ~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306 I get a mySQL connect failure message "ERROR 1: MySQL connect failed for: testDB, Access denied for user'root'@'localhost' (using password: NO)" It seems that MySQL is refusing this connection request because the password that I entered in the ogrinfo command is not being passed to MySQL and I can't find a way to overcome this. The same user name and password work fine if I access MySQL directly rather than via ogrinfo. Does anyone have an idea what my problem is? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Jun 22 00:25:51 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 22 Jun 2011 07:25:51 +0000 Subject: [mapserver-users] Mapserver layer - MySQL connection In-Reply-To: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> References: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> Message-ID: <84446DEF76453C439E9E97E438E13A630101CD@suutari.haapa.mmm.fi> Hi, Try first by removing the space characters after separating commas. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Chris Green [chris.green at ibstv.co.uk] puolesta L?hetetty: 22. kes?kuuta 2011 10:12 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver layer - MySQL connection Hi all I?m using Mapserver 6.0 and I have GDAL 1.8.0 installed, running under Ubuntu 10.04. I am trying to make a connection from a layer to MySQL, following the guidance given in the MySQL section of Mapserver documentation. My problem is that when I try to connect using ogrinfo like: ~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306 I get a mySQL connect failure message ?ERROR 1: MySQL connect failed for: testDB, Access denied for user?root?@?localhost? (using password: NO)? It seems that MySQL is refusing this connection request because the password that I entered in the ogrinfo command is not being passed to MySQL and I can?t find a way to overcome this. The same user name and password work fine if I access MySQL directly rather than via ogrinfo. Does anyone have an idea what my problem is? Chris From chris.green at ibstv.co.uk Wed Jun 22 00:29:00 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 22 Jun 2011 08:29:00 +0100 Subject: [mapserver-users] Mapserver layer - MySQL connection In-Reply-To: <84446DEF76453C439E9E97E438E13A630101CD@suutari.haapa.mmm.fi> References: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> <84446DEF76453C439E9E97E438E13A630101CD@suutari.haapa.mmm.fi> Message-ID: <03a001cc30ae$0e649fa0$2b2ddee0$@green@ibstv.co.uk> Jukka You are a genius -it worked! Thanks -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 22 June 2011 08:26 To: Chris Green; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver layer - MySQL connection Hi, Try first by removing the space characters after separating commas. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Chris Green [chris.green at ibstv.co.uk] puolesta L?hetetty: 22. kes?kuuta 2011 10:12 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver layer - MySQL connection Hi all I?m using Mapserver 6.0 and I have GDAL 1.8.0 installed, running under Ubuntu 10.04. I am trying to make a connection from a layer to MySQL, following the guidance given in the MySQL section of Mapserver documentation. My problem is that when I try to connect using ogrinfo like: ~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306 I get a mySQL connect failure message ?ERROR 1: MySQL connect failed for: testDB, Access denied for user?root?@?localhost? (using password: NO)? It seems that MySQL is refusing this connection request because the password that I entered in the ogrinfo command is not being passed to MySQL and I can?t find a way to overcome this. The same user name and password work fine if I access MySQL directly rather than via ogrinfo. Does anyone have an idea what my problem is? Chris From silasharmeen at gmail.com Wed Jun 22 01:37:54 2011 From: silasharmeen at gmail.com (Sila Khan) Date: Wed, 22 Jun 2011 13:37:54 +0500 Subject: [mapserver-users] Fwd: how to add more than one layer from a same s57 chart In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Sila Khan Date: Wed, Jun 22, 2011 at 12:29 PM Subject: how to add more than one layer from a same s57 chart To: mapserver-users Dear List i have added a layer from s57 chart,but i got more layers in it like point polygon which i found through orginfo,now i want to add them as well with my previous layer.i added a LAYER parameter in .mapfile to add a new layer but it didnt show it. plz tell me how to add more than one layer of s57 chart in .mapfile Thanks Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Wed Jun 22 02:09:18 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 22 Jun 2011 10:09:18 +0100 Subject: [mapserver-users] Mapserver layer - MySQL connection In-Reply-To: <03a001cc30ae$0e649fa0$2b2ddee0$@green@ibstv.co.uk> References: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> <84446DEF76453C439E9E97E438E13A630101CD@suutari.haapa.mmm.fi> <03a001cc30ae$0e649fa0$2b2ddee0$@green@ibstv.co.uk> Message-ID: <004b01cc30bc$11c48b20$354da160$@green@ibstv.co.uk> Jukka It seems I celebrated too soon.....although this now succeeds: ~# ogrinfo mysql:testDB,user=root,password=mysql,port=3306 ...when I try to create an ovf file like so: mysql:testDB,user=root,password=mysql,port=3306,tables=testTa ble SELECT City, Latitude, Longitude FROM testTable wkbPoint I get the error "Unable to open datasource 'var/www/vhosts/mysite/httpdocs/OGR_test.ovf' with the following drivers." This is followed by the list of drivers which includes MySQL. Something wrong in my ovf file? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: 22 June 2011 08:29 To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Mapserver layer - MySQL connection Jukka You are a genius -it worked! Thanks -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 22 June 2011 08:26 To: Chris Green; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver layer - MySQL connection Hi, Try first by removing the space characters after separating commas. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Chris Green [chris.green at ibstv.co.uk] puolesta L?hetetty: 22. kes?kuuta 2011 10:12 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver layer - MySQL connection Hi all I?m using Mapserver 6.0 and I have GDAL 1.8.0 installed, running under Ubuntu 10.04. I am trying to make a connection from a layer to MySQL, following the guidance given in the MySQL section of Mapserver documentation. My problem is that when I try to connect using ogrinfo like: ~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306 I get a mySQL connect failure message ?ERROR 1: MySQL connect failed for: testDB, Access denied for user?root?@?localhost? (using password: NO)? It seems that MySQL is refusing this connection request because the password that I entered in the ogrinfo command is not being passed to MySQL and I can?t find a way to overcome this. The same user name and password work fine if I access MySQL directly rather than via ogrinfo. Does anyone have an idea what my problem is? Chris _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From chris.green at ibstv.co.uk Wed Jun 22 04:17:35 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 22 Jun 2011 12:17:35 +0100 Subject: [mapserver-users] MySQL connection: so near, yet so far... In-Reply-To: <004b01cc30bc$11c48b20$354da160$@green@ibstv.co.uk> References: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> <84446DEF76453C439E9E97E438E13A630101CD@suutari.haapa.mmm.fi> <03a001cc30ae$0e649fa0$2b2ddee0$@green@ibstv.co.uk> <004b01cc30bc$11c48b20$354da160$@green@ibstv.co.uk> Message-ID: <006701cc30cd$fd298f50$f77cadf0$@green@ibstv.co.uk> I am trying to establish a MySQL connection to a Mapserver 6.0 layer using OGR. After much trial and error (mostly error) I have got to the point where I have an ovf file which I can test using ogrinfo, but which I cannot make work in a layer. My ovf file (OGR_test.ovf) is mysql:testDB,user=root,password=mysql,port=3306,tables=testTa ble SELECT City, Latitude, Longitude FROM testTable wkbPoint I can successfully test this and see the data in testTable via: ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf However when I create a test layer I cannot establish the OGR connection. I am trying with: LAYER NAME "testLayer" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "OGR_test.ovf" DATA "OGR_test" CLASS NAME "MyClass" STYLE SYMBOL 'circle' SIZE 15 COLOR 0 255 0 END END END This produces an "internal server error". I have also tried using an absolute path to OGR_test.ovf, still no success. It seems that I have not got the CONNECTION and DATA parameters right but after reading the MySQL and the OGR sections in the Mapserver documentation many times I still can't figure out what I'm doing wrong. Can someone help? Regards, Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: 22 June 2011 10:09 To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Mapserver layer - MySQL connection Jukka It seems I celebrated too soon.....although this now succeeds: ~# ogrinfo mysql:testDB,user=root,password=mysql,port=3306 ...when I try to create an ovf file like so: mysql:testDB,user=root,password=mysql,port=3306,tables=testTa ble SELECT City, Latitude, Longitude FROM testTable wkbPoint I get the error "Unable to open datasource 'var/www/vhosts/mysite/httpdocs/OGR_test.ovf' with the following drivers." This is followed by the list of drivers which includes MySQL. Something wrong in my ovf file? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: 22 June 2011 08:29 To: 'Rahkonen Jukka'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Mapserver layer - MySQL connection Jukka You are a genius -it worked! Thanks -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 22 June 2011 08:26 To: Chris Green; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver layer - MySQL connection Hi, Try first by removing the space characters after separating commas. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Chris Green [chris.green at ibstv.co.uk] puolesta L?hetetty: 22. kes?kuuta 2011 10:12 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Mapserver layer - MySQL connection Hi all I?m using Mapserver 6.0 and I have GDAL 1.8.0 installed, running under Ubuntu 10.04. I am trying to make a connection from a layer to MySQL, following the guidance given in the MySQL section of Mapserver documentation. My problem is that when I try to connect using ogrinfo like: ~# ogrinfo mysql:testDB, user=root, password=mysql, port=3306 I get a mySQL connect failure message ?ERROR 1: MySQL connect failed for: testDB, Access denied for user?root?@?localhost? (using password: NO)? It seems that MySQL is refusing this connection request because the password that I entered in the ogrinfo command is not being passed to MySQL and I can?t find a way to overcome this. The same user name and password work fine if I access MySQL directly rather than via ogrinfo. Does anyone have an idea what my problem is? Chris _______________________________________________ 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 stephan.holl at intevation.de Wed Jun 22 04:55:52 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Wed, 22 Jun 2011 13:55:52 +0200 Subject: [mapserver-users] MySQL connection: so near, yet so far... In-Reply-To: <006701cc30cd$fd298f50$f77cadf0$@green@ibstv.co.uk> References: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> <84446DEF76453C439E9E97E438E13A630101CD@suutari.haapa.mmm.fi> <03a001cc30ae$0e649fa0$2b2ddee0$@green@ibstv.co.uk> <004b01cc30bc$11c48b20$354da160$@green@ibstv.co.uk> <006701cc30cd$fd298f50$f77cadf0$@green@ibstv.co.uk> Message-ID: <20110622135552.0b8aea0e@thoe.hq.intevation.de> Hello Chris, "Chris Green" , [20110622 - 12:17:35] > I am trying to establish a MySQL connection to a Mapserver 6.0 layer > using OGR. After much trial and error (mostly error) I have got to > the point where I have an ovf file which I can test using ogrinfo, > but which I cannot make work in a layer. > > My ovf file (OGR_test.ovf) is > > > > > mysql:testDB,user=root,password=mysql,port=3306,tables=testTa > ble > SELECT City, Latitude, Longitude FROM > testTable wkbPoint > y="Latitude"/> > > > > I can successfully test this and see the data in testTable via: > > ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf > > > However when I create a test layer I cannot establish the OGR > connection. I am trying with: > > LAYER > NAME "testLayer" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "OGR_test.ovf" > DATA "OGR_test" > CLASS > NAME "MyClass" > STYLE > SYMBOL 'circle' > SIZE 15 > COLOR 0 255 0 > END > END > END > > This produces an "internal server error". > > I have also tried using an absolute path to OGR_test.ovf, still no > success. It seems that I have not got the CONNECTION and DATA > parameters right but after reading the MySQL and the OGR sections in > the Mapserver documentation many times I still can't figure out what > I'm doing wrong. > > Can someone help? Just a guess. Make sure you have the exact same env-vars set for apache as you have set within the shell your ogrinfo-command works. Sometimes there can be a differnces there? Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From pedroaa10 at gmail.com Wed Jun 22 05:38:03 2011 From: pedroaa10 at gmail.com (Pedro Arriondo) Date: Wed, 22 Jun 2011 09:38:03 -0300 Subject: [mapserver-users] PHPMapscript: Include Directive Message-ID: Hi friends, i'd like know if is possible control the INCLUDE directive with PHPMapscript. Thanks for your time. Sorry for my (bad) english! Pedro. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pedroaa10 at gmail.com Wed Jun 22 06:01:45 2011 From: pedroaa10 at gmail.com (Pedro Arriondo) Date: Wed, 22 Jun 2011 10:01:45 -0300 Subject: [mapserver-users] PHPMapscript: Include Directive Message-ID: > > _______________________________________________ > 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 pedroaa10 at gmail.com Wed Jun 22 06:29:04 2011 From: pedroaa10 at gmail.com (Pedro Arriondo) Date: Wed, 22 Jun 2011 10:29:04 -0300 Subject: [mapserver-users] PHPMapscript: Include Directive Message-ID: Hi friends, i'd like know if is possible control the INCLUDE directive with PHPMapscript. Thanks for your time. Sorry for my (bad) english! Pedro. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Wed Jun 22 06:35:19 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 22 Jun 2011 07:35:19 -0600 Subject: [mapserver-users] PHPMapscript: Include Directive In-Reply-To: References: Message-ID: <4E01EF97.4080408@geoanalytic.com> Yes, you can use "include". PHP Mapscript is an extension to PHP, not a replacement. Best Regards, Brent Fraser On 6/22/2011 7:29 AM, Pedro Arriondo wrote: > Hi friends, i'd like know if is possible control the INCLUDE directive > with PHPMapscript. > > Thanks for your time. > > Sorry for my (bad) english! > > Pedro. > > > _______________________________________________ > 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 bfraser at geoanalytic.com Wed Jun 22 07:08:02 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 22 Jun 2011 08:08:02 -0600 Subject: [mapserver-users] PHPMapscript: Include Directive In-Reply-To: References: <4E01EF97.4080408@geoanalytic.com> Message-ID: <4E01F742.6090206@geoanalytic.com> Yes, a map loaded using ms_newMapObj() can contain "include" statements. Best Regards, Brent Fraser On 6/22/2011 7:59 AM, Pedro Arriondo wrote: > Thanks for your answer, but i refer to Mapserver's INCLUDE Directive > (http://mapserver.org/mapfile/Include.html) > > 2011/6/22 Brent Fraser > > > Yes, you can use "include". PHP Mapscript is an extension to PHP, > not a replacement. > > Best Regards, > Brent Fraser > > > On 6/22/2011 7:29 AM, Pedro Arriondo wrote: >> Hi friends, i'd like know if is possible control the INCLUDE >> directive with PHPMapscript. >> >> Thanks for your time. >> >> Sorry for my (bad) english! >> >> Pedro. >> >> >> _______________________________________________ >> 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 chris.green at ibstv.co.uk Wed Jun 22 07:16:54 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 22 Jun 2011 15:16:54 +0100 Subject: [mapserver-users] MySQL connection: so near, yet so far... In-Reply-To: <20110622135552.0b8aea0e@thoe.hq.intevation.de> References: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> <84446DEF76453C439E9E97E438E13A630101CD@suutari.haapa.mmm.fi> <03a001cc30ae$0e649fa0$2b2ddee0$@green@ibstv.co.uk> <004b01cc30bc$11c48b20$354da160$@green@ibstv.co.uk> <006701cc30cd$fd298f50$f77cadf0$@green@ibstv.co.uk> <20110622135552.0b8aea0e@thoe.hq.intevation.de> Message-ID: <00d201cc30e7$0a28b3c0$1e7a1b40$@green@ibstv.co.uk> Thanks Stephen That was a useful pointer, I have the OGR connection working now. One remaining problem: the source data in my MySQL database is unprojected lat/lon, and I want to project to Google 900913. It seems that it should be possible to get OGR to do this within the ovf file by including an SRS statement like EPSG:900913, but this doesn't work. Adding a projection statement to the layer doesn't help either. Anyone know how to do this? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephan Holl Sent: 22 June 2011 12:56 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MySQL connection: so near, yet so far... Hello Chris, "Chris Green" , [20110622 - 12:17:35] > I am trying to establish a MySQL connection to a Mapserver 6.0 layer > using OGR. After much trial and error (mostly error) I have got to the > point where I have an ovf file which I can test using ogrinfo, but > which I cannot make work in a layer. > > My ovf file (OGR_test.ovf) is > > > > > mysql:testDB,user=root,password=mysql,port=3306,tables= > testTa > ble > SELECT City, Latitude, Longitude FROM > testTable wkbPoint > y="Latitude"/> > > > > I can successfully test this and see the data in testTable via: > > ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf > > > However when I create a test layer I cannot establish the OGR > connection. I am trying with: > > LAYER > NAME "testLayer" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "OGR_test.ovf" > DATA "OGR_test" > CLASS > NAME "MyClass" > STYLE > SYMBOL 'circle' > SIZE 15 > COLOR 0 255 0 > END > END > END > > This produces an "internal server error". > > I have also tried using an absolute path to OGR_test.ovf, still no > success. It seems that I have not got the CONNECTION and DATA > parameters right but after reading the MySQL and the OGR sections in > the Mapserver documentation many times I still can't figure out what > I'm doing wrong. > > Can someone help? Just a guess. Make sure you have the exact same env-vars set for apache as you have set within the shell your ogrinfo-command works. Sometimes there can be a differnces there? Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From pedroaa10 at gmail.com Wed Jun 22 07:19:24 2011 From: pedroaa10 at gmail.com (Pedro Arriondo) Date: Wed, 22 Jun 2011 11:19:24 -0300 Subject: [mapserver-users] PHPMapscript: Include Directive In-Reply-To: References: <4E01EF97.4080408@geoanalytic.com> <4E01F742.6090206@geoanalytic.com> Message-ID: Yes, i load mapfiles with include directives, but my question is how control it with phpmapscript. For example: how delete, add or modify include directives contained in an object ms_newMapObj() > > > 2011/6/22 Brent Fraser > >> ** >> Yes, a map loaded using ms_newMapObj() can contain "include" statements. >> >> Best Regards, >> Brent Fraser >> >> >> On 6/22/2011 7:59 AM, Pedro Arriondo wrote: >> >> Thanks for your answer, but i refer to Mapserver's INCLUDE Directive ( >> http://mapserver.org/mapfile/Include.html) >> >> 2011/6/22 Brent Fraser >> >>> Yes, you can use "include". PHP Mapscript is an extension to PHP, not a >>> replacement. >>> >>> Best Regards, >>> Brent Fraser >>> >>> >>> On 6/22/2011 7:29 AM, Pedro Arriondo wrote: >>> >>> Hi friends, i'd like know if is possible control the INCLUDE directive >>> with PHPMapscript. >>> >>> Thanks for your time. >>> >>> Sorry for my (bad) english! >>> >>> Pedro. >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Wed Jun 22 07:30:38 2011 From: michael.smith at usace.army.mil (Smith, Michael D ERDC-CRREL-NH) Date: Wed, 22 Jun 2011 10:30:38 -0400 Subject: [mapserver-users] MySQL connection: so near, yet so far... In-Reply-To: <00d201cc30e7$0a28b3c0$1e7a1b40$@green@ibstv.co.uk> Message-ID: Chris, You'd want to set the projection in your vrt to the projection of the data (4326). Also set the projection of your layer in mapserver to 4326. Then set the projection of the map to 900913 to get Mapserver to reproject. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 6/22/11 10:16 AM, "Chris Green" wrote: > Thanks Stephen > > That was a useful pointer, I have the OGR connection working now. One > remaining problem: the source data in my MySQL database is unprojected > lat/lon, and I want to project to Google 900913. > > It seems that it should be possible to get OGR to do this within the ovf > file by including an SRS statement like EPSG:900913, > but this doesn't work. Adding a projection statement to the layer doesn't > help either. > > Anyone know how to do this? > > > > Chris > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephan Holl > Sent: 22 June 2011 12:56 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MySQL connection: so near, yet so far... > > Hello Chris, > > "Chris Green" , [20110622 - 12:17:35] > >> I am trying to establish a MySQL connection to a Mapserver 6.0 layer >> using OGR. After much trial and error (mostly error) I have got to the >> point where I have an ovf file which I can test using ogrinfo, but >> which I cannot make work in a layer. >> >> My ovf file (OGR_test.ovf) is >> >> >> >> >> mysql:testDB,user=root,password=mysql,port=3306,tables= >> testTa >> ble >> SELECT City, Latitude, Longitude FROM >> testTable wkbPoint >> > y="Latitude"/> >> >> >> >> I can successfully test this and see the data in testTable via: >> >> ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf >> >> >> However when I create a test layer I cannot establish the OGR >> connection. I am trying with: >> >> LAYER >> NAME "testLayer" >> STATUS DEFAULT >> TYPE POINT >> CONNECTIONTYPE OGR >> CONNECTION "OGR_test.ovf" >> DATA "OGR_test" >> CLASS >> NAME "MyClass" >> STYLE >> SYMBOL 'circle' >> SIZE 15 >> COLOR 0 255 0 >> END >> END >> END >> >> This produces an "internal server error". >> >> I have also tried using an absolute path to OGR_test.ovf, still no >> success. It seems that I have not got the CONNECTION and DATA >> parameters right but after reading the MySQL and the OGR sections in >> the Mapserver documentation many times I still can't figure out what >> I'm doing wrong. >> >> Can someone help? > > Just a guess. > > Make sure you have the exact same env-vars set for apache as you have set > within the shell your ogrinfo-command works. Sometimes there can be a > differnces there? > > Best > > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 > Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Wed Jun 22 07:30:47 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 22 Jun 2011 08:30:47 -0600 Subject: [mapserver-users] PHPMapscript: Include Directive In-Reply-To: References: <4E01EF97.4080408@geoanalytic.com> <4E01F742.6090206@geoanalytic.com> Message-ID: <4E01FC97.2000000@geoanalytic.com> Not as far as I know. I assume that when ms_newMapObj() is executed, mapserver parses the mapfile (and parses and included files), and creates structures/objects in memory from the mapfile objects. The "include" directive is never created as an object and so cannot be manipulated by PHP. Best Regards, Brent Fraser On 6/22/2011 8:19 AM, Pedro Arriondo wrote: > Yes, i load mapfiles with include directives, but my question is how > control it with phpmapscript. > For example: how delete, add or modify include directives contained in > an object ms_newMapObj() > > > > > 2011/6/22 Brent Fraser > > > Yes, a map loaded using ms_newMapObj() can contain "include" > statements. > > Best Regards, > Brent Fraser > > > On 6/22/2011 7:59 AM, Pedro Arriondo wrote: >> Thanks for your answer, but i refer to Mapserver's INCLUDE >> Directive (http://mapserver.org/mapfile/Include.html) >> >> 2011/6/22 Brent Fraser > > >> >> Yes, you can use "include". PHP Mapscript is an >> extension to PHP, not a replacement. >> >> Best Regards, >> Brent Fraser >> >> >> On 6/22/2011 7:29 AM, Pedro Arriondo wrote: >>> Hi friends, i'd like know if is possible control the >>> INCLUDE directive with PHPMapscript. >>> >>> Thanks for your time. >>> >>> Sorry for my (bad) english! >>> >>> Pedro. >>> >>> >>> _______________________________________________ >>> 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 pedroaa10 at gmail.com Wed Jun 22 07:40:34 2011 From: pedroaa10 at gmail.com (Pedro Arriondo) Date: Wed, 22 Jun 2011 11:40:34 -0300 Subject: [mapserver-users] PHPMapscript: Include Directive In-Reply-To: <4E01FC97.2000000@geoanalytic.com> References: <4E01EF97.4080408@geoanalytic.com> <4E01F742.6090206@geoanalytic.com> <4E01FC97.2000000@geoanalytic.com> Message-ID: Excellent, you has cleared my doubts. Thanks for your time 2011/6/22 Brent Fraser > ** > Not as far as I know. I assume that when ms_newMapObj() is executed, > mapserver parses the mapfile (and parses and included files), and creates > structures/objects in memory from the mapfile objects. The "include" > directive is never created as an object and so cannot be manipulated by PHP. > > Best Regards, > Brent Fraser > > > On 6/22/2011 8:19 AM, Pedro Arriondo wrote: > > Yes, i load mapfiles with include directives, but my question is how > control it with phpmapscript. > For example: how delete, add or modify include directives contained in an > object ms_newMapObj() > > > > >> >> >> 2011/6/22 Brent Fraser >> >>> Yes, a map loaded using ms_newMapObj() can contain "include" statements. >>> >>> Best Regards, >>> Brent Fraser >>> >>> >>> On 6/22/2011 7:59 AM, Pedro Arriondo wrote: >>> >>> Thanks for your answer, but i refer to Mapserver's INCLUDE Directive ( >>> http://mapserver.org/mapfile/Include.html) >>> >>> 2011/6/22 Brent Fraser >>> >>>> Yes, you can use "include". PHP Mapscript is an extension to PHP, not >>>> a replacement. >>>> >>>> Best Regards, >>>> Brent Fraser >>>> >>>> >>>> On 6/22/2011 7:29 AM, Pedro Arriondo wrote: >>>> >>>> Hi friends, i'd like know if is possible control the INCLUDE directive >>>> with PHPMapscript. >>>> >>>> Thanks for your time. >>>> >>>> Sorry for my (bad) english! >>>> >>>> Pedro. >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fawcett at state.mn.us Wed Jun 22 07:38:35 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 22 Jun 2011 09:38:35 -0500 Subject: [mapserver-users] MySQL connection: so near, yet so far... In-Reply-To: <00d201cc30e7$0a28b3c0$1e7a1b40$@green@ibstv.co.uk> References: <038901cc30ab$d0309f10$7091dd30$@green@ibstv.co.uk> <84446DEF76453C439E9E97E438E13A630101CD@suutari.haapa.mmm.fi> <03a001cc30ae$0e649fa0$2b2ddee0$@green@ibstv.co.uk> <004b01cc30bc$11c48b20$354da160$@green@ibstv.co.uk> <006701cc30cd$fd298f50$f77cadf0$@green@ibstv.co.uk> <20110622135552.0b8aea0e@thoe.hq.intevation.de> <00d201cc30e7$0a28b3c0$1e7a1b40$@green@ibstv.co.uk> Message-ID: You should be able to add a projection block to your layer, specifying that your layer data is geographic (probably epsg:4326?) Then add a projection block to the MAP block of your map file to specify that the output projection for your map is epsg:900913. If 900913 isn't in your proj4 database, you could try epsg:3785. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: Wednesday, June 22, 2011 9:17 AM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] MySQL connection: so near, yet so far... Thanks Stephen That was a useful pointer, I have the OGR connection working now. One remaining problem: the source data in my MySQL database is unprojected lat/lon, and I want to project to Google 900913. It seems that it should be possible to get OGR to do this within the ovf file by including an SRS statement like EPSG:900913, but this doesn't work. Adding a projection statement to the layer doesn't help either. Anyone know how to do this? Chris -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephan Holl Sent: 22 June 2011 12:56 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MySQL connection: so near, yet so far... Hello Chris, "Chris Green" , [20110622 - 12:17:35] > I am trying to establish a MySQL connection to a Mapserver 6.0 layer > using OGR. After much trial and error (mostly error) I have got to the > point where I have an ovf file which I can test using ogrinfo, but > which I cannot make work in a layer. > > My ovf file (OGR_test.ovf) is > > > > > mysql:testDB,user=root,password=mysql,port=3306,tables= > testTa > ble > SELECT City, Latitude, Longitude FROM > testTable wkbPoint > y="Latitude"/> > > > > I can successfully test this and see the data in testTable via: > > ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf > > > However when I create a test layer I cannot establish the OGR > connection. I am trying with: > > LAYER > NAME "testLayer" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "OGR_test.ovf" > DATA "OGR_test" > CLASS > NAME "MyClass" > STYLE > SYMBOL 'circle' > SIZE 15 > COLOR 0 255 0 > END > END > END > > This produces an "internal server error". > > I have also tried using an absolute path to OGR_test.ovf, still no > success. It seems that I have not got the CONNECTION and DATA > parameters right but after reading the MySQL and the OGR sections in > the Mapserver documentation many times I still can't figure out what > I'm doing wrong. > > Can someone help? Just a guess. Make sure you have the exact same env-vars set for apache as you have set within the shell your ogrinfo-command works. Sometimes there can be a differnces there? Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From chris.green at ibstv.co.uk Wed Jun 22 07:55:34 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 22 Jun 2011 15:55:34 +0100 Subject: [mapserver-users] MySQL connection: so near, yet so far... In-Reply-To: References: <00d201cc30e7$0a28b3c0$1e7a1b40$@green@ibstv.co.uk> Message-ID: <010801cc30ec$719b9ae0$54d2d0a0$@green@ibstv.co.uk> Thanks Mike. Outstanding. Chris -----Original Message----- From: Smith, Michael D ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil] Sent: 22 June 2011 15:31 To: Chris Green; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MySQL connection: so near, yet so far... Chris, You'd want to set the projection in your vrt to the projection of the data (4326). Also set the projection of your layer in mapserver to 4326. Then set the projection of the map to 900913 to get Mapserver to reproject. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 6/22/11 10:16 AM, "Chris Green" wrote: > Thanks Stephen > > That was a useful pointer, I have the OGR connection working now. One > remaining problem: the source data in my MySQL database is unprojected > lat/lon, and I want to project to Google 900913. > > It seems that it should be possible to get OGR to do this within the ovf > file by including an SRS statement like EPSG:900913, > but this doesn't work. Adding a projection statement to the layer doesn't > help either. > > Anyone know how to do this? > > > > Chris > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephan Holl > Sent: 22 June 2011 12:56 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MySQL connection: so near, yet so far... > > Hello Chris, > > "Chris Green" , [20110622 - 12:17:35] > >> I am trying to establish a MySQL connection to a Mapserver 6.0 layer >> using OGR. After much trial and error (mostly error) I have got to the >> point where I have an ovf file which I can test using ogrinfo, but >> which I cannot make work in a layer. >> >> My ovf file (OGR_test.ovf) is >> >> >> >> >> mysql:testDB,user=root,password=mysql,port=3306,tables= >> testTa >> ble >> SELECT City, Latitude, Longitude FROM >> testTable wkbPoint >> > y="Latitude"/> >> >> >> >> I can successfully test this and see the data in testTable via: >> >> ~# ogrinfo var/www/vhosts/mysite/httpdocs/data/OGR_test.ovf >> >> >> However when I create a test layer I cannot establish the OGR >> connection. I am trying with: >> >> LAYER >> NAME "testLayer" >> STATUS DEFAULT >> TYPE POINT >> CONNECTIONTYPE OGR >> CONNECTION "OGR_test.ovf" >> DATA "OGR_test" >> CLASS >> NAME "MyClass" >> STYLE >> SYMBOL 'circle' >> SIZE 15 >> COLOR 0 255 0 >> END >> END >> END >> >> This produces an "internal server error". >> >> I have also tried using an absolute path to OGR_test.ovf, still no >> success. It seems that I have not got the CONNECTION and DATA >> parameters right but after reading the MySQL and the OGR sections in >> the Mapserver documentation many times I still can't figure out what >> I'm doing wrong. >> >> Can someone help? > > Just a guess. > > Make sure you have the exact same env-vars set for apache as you have set > within the shell your ogrinfo-command works. Sometimes there can be a > differnces there? > > Best > > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 > Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > > > _______________________________________________ > 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 Jun 22 13:23:07 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 22 Jun 2011 15:23:07 -0500 Subject: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image In-Reply-To: <4DF9F947.7060500@mapgears.com> References: <4DF9F947.7060500@mapgears.com> Message-ID: What about allowing the definition of a geometry (like inline features) using percentages. The defaults would be "as is" but could be overridden, kinda like the LEGENDICON class parameter. We could add a LEGENDFEATURE parameter... That would give folks a ton of control and by specifying coordinates in percentages things would scale. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Thursday, June 16, 2011 7:39 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image Personally, I do not feel strongly either way, other than being hesitant to change something that's been in place for 8 years. Perhaps an option could be added to control the type of icon to generate? On 11-06-16 07:12 AM, Tamas Szekeres wrote: > Any update on this one? > > Tamas > > > > 2011/5/28 Tamas Szekeres > > > Folks, > > According to a client's report, the current behaviour of drawing the > legend images may be confusing, as the polygon layer with no fill > shows line thumbnail (zigzag) in the legend image. > I've been tracking down the changes in SVN and came to the conlusion > that this behaviour has been introduced with > http://trac.osgeo.org/mapserver/changeset/2172 8 years ago. > > I'd be curious to know if this approach is satisfactory for all > users, or would it be more convenient to show an empty rectangle in > these cases? I would personally be in favour of drawing a rectangle > in order to make it clear that the layer type is polygon and not > line. Or is there any other reason that I'm not aware of, which > makes the current approach more compelling? > > > Best regards, > > Tamas > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From msubedee at yahoo.com Wed Jun 22 16:55:47 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Wed, 22 Jun 2011 16:55:47 -0700 (PDT) Subject: [mapserver-users] error: Unable to select IMAGETYPE `PNG' In-Reply-To: References: <4E01EF97.4080408@geoanalytic.com> <4E01F742.6090206@geoanalytic.com> <4E01FC97.2000000@geoanalytic.com> Message-ID: <408676.42096.qm@web37401.mail.mud.yahoo.com> Hi all, I am trying to set up a new MapServer in a Ubuntu 10.04 machine. I 've installed and configured all the necessary/required components (including libpng-1.2.18). While configuring MapServer, I have included libpng package as well and my ./configure shows: configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. However, while I check ./mapserv -v, I could not find OUTPUT=PNG and am getting the error: msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `PNG'. I am not sure what went wrong during installation/configuration. I checked mail archives but could not find the exact solution (but have tried for some of the solutions found in Web). Please let me know if you have resolved this problem. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From silasharmeen at gmail.com Wed Jun 22 22:51:52 2011 From: silasharmeen at gmail.com (unknown) Date: Wed, 22 Jun 2011 22:51:52 -0700 (PDT) Subject: [mapserver-users] Re: [Info] S-57 nautical map on MapServer In-Reply-To: <1279892382095-5329589.post@n2.nabble.com> References: <1279892382095-5329589.post@n2.nabble.com> Message-ID: <1308808312781-6507259.post@n2.nabble.com> plz let me know that how we would render s57 in S52 format.any new tool we have to use for this purpose??or it could be done in .mapfile as well. plz share All steps to view s57 charts in s52/IHO format. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Info-S-57-nautical-map-on-MapServer-tp5329589p6507259.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dirk.raffel at googlemail.com Thu Jun 23 01:58:14 2011 From: dirk.raffel at googlemail.com (Dirk Raffel) Date: Thu, 23 Jun 2011 10:58:14 +0200 Subject: [mapserver-users] LABELPOLY with increased padding Message-ID: Hi, the documentation for the STYLE element says that LABELPOLY creates a polygon that covers the label with 1 pixel padding. Unfortunately, 1 pixel padding doesn't look too good in my case, see this example image https://docs.google.com/leaf?id=0B6vp23tQ3ixPM2Y1Y2VhZTEtZDQ2MC00ODVkLWFiNzEtMzM3Y2FiZDY0OGQz&hl=en_US&authkey=CJ_72NMH STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 150 220 OUTLINECOLOR 0 150 220 END Does anyone know of any workarounds to achieve a bigger padding, other than hacking the mapserver source? Are there any plans to further improve label styling in future mapserver releases in a way that would solve issues like this? Thanks, Dirk -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Jun 23 02:15:46 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 23 Jun 2011 11:15:46 +0200 Subject: [mapserver-users] LABELPOLY with increased padding In-Reply-To: References: Message-ID: I agree this would be an important feature to have. For now, you should be able to hack around it by specifying the width of the outline as twice the value of the padding you want. You do loose the possibility of having an outline of a different color than the fill. STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 150 220 OUTLINECOLOR 0 150 220 WIDTH 7 END Note that I have not tried this, please post back with your results... -- thomas On Thu, Jun 23, 2011 at 10:58, Dirk Raffel wrote: > Hi, > the documentation for the STYLE element says that LABELPOLY creates a > polygon that covers the label with 1 pixel padding. > Unfortunately, 1 pixel padding doesn't look too good in my case, see this > example > image?https://docs.google.com/leaf?id=0B6vp23tQ3ixPM2Y1Y2VhZTEtZDQ2MC00ODVkLWFiNzEtMzM3Y2FiZDY0OGQz&hl=en_US&authkey=CJ_72NMH > STYLE > ? GEOMTRANSFORM 'labelpoly' > ? COLOR 0 150 220 > ? OUTLINECOLOR 0 150 220 > END > Does anyone know of any workarounds to achieve a bigger padding, other than > hacking the mapserver source? > Are there any plans to further improve label styling in future mapserver > releases in a way that would solve issues like this? > Thanks, > Dirk > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jgolinowski at codematix.de Thu Jun 23 02:35:33 2011 From: jgolinowski at codematix.de (Jana Golinowski) Date: Thu, 23 Jun 2011 11:35:33 +0200 Subject: [mapserver-users] LABELPOLY with increased padding In-Reply-To: References: Message-ID: <4E0308E5.60407@codematix.de> > I agree this would be an important feature to have. > For now, you should be able to hack around it by specifying the width > of the outline as twice the value of the padding you want. You do > loose the possibility of having an outline of a different color than > the fill. It is possible to have different colors for fill and outline. You just have to use 2 styles with varying widths: LABEL ... STYLE GEOMTRANSFORM LABELPOLY COLOR 0 0 0 OUTLINECOLOR 0 0 0 WIDTH 10 END STYLE GEOMTRANSFORM LABELPOLY COLOR 0 150 220 OUTLINECOLOR 0 150 220 WIDTH 8 END END The problem is that you can't have a transparent fill with a small outline and this padding. Greetings, Jana. From thomas.bonfort at gmail.com Thu Jun 23 02:53:05 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 23 Jun 2011 11:53:05 +0200 Subject: [mapserver-users] LABELPOLY with increased padding In-Reply-To: <4E0308E5.60407@codematix.de> References: <4E0308E5.60407@codematix.de> Message-ID: On Thu, Jun 23, 2011 at 11:35, Jana Golinowski wrote: >> I agree this would be an important feature to have. >> For now, you should be able to hack around it by specifying the width >> of the outline as twice the value of the padding you want. You do >> loose the possibility of having an outline of a different color than >> the fill. > > It is possible to have different colors for fill and outline. You just have > to use 2 styles with varying widths: > > LABEL > ?... > ?STYLE > ? ?GEOMTRANSFORM LABELPOLY > ? ?COLOR 0 0 0 > ? ?OUTLINECOLOR 0 0 0 > ? ?WIDTH 10 > ?END > ?STYLE > ? ?GEOMTRANSFORM LABELPOLY > ? ?COLOR 0 150 220 > ? ?OUTLINECOLOR 0 150 220 > ? ?WIDTH 8 > ?END > END yeah, nice one ! > > The problem is that you can't have a transparent fill with a small outline > and this padding. as said, this is just a hack for now. We definitely need to be able to set the padding for the labelpoly. Opening a bugreport/feature-enhancement for this would be the first step so we don't forget it. regards, thomas > > Greetings, Jana. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dirk.raffel at googlemail.com Thu Jun 23 03:08:40 2011 From: dirk.raffel at googlemail.com (Dirk Raffel) Date: Thu, 23 Jun 2011 12:08:40 +0200 Subject: [mapserver-users] LABELPOLY with increased padding In-Reply-To: References: Message-ID: On Thu, Jun 23, 2011 at 11:15 AM, thomas bonfort wrote: > I agree this would be an important feature to have. > For now, you should be able to hack around it by specifying the width > of the outline as twice the value of the padding you want. You do > loose the possibility of having an outline of a different color than > the fill. > > STYLE > GEOMTRANSFORM 'labelpoly' > COLOR 0 150 220 > OUTLINECOLOR 0 150 220 > WIDTH 7 > END > > Note that I have not tried this, please post back with your results... > > Yes, this helps a lot, see https://docs.google.com/leaf?id=0B6vp23tQ3ixPZDk2Mjk3N2EtM2Q5Mi00MTgyLWIxYWYtZjczYTE5ZWMyMTM2&hl=en_US&authkey=CPryva8D STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 150 220 OUTLINECOLOR 0 150 220 WIDTH 24 END Dirk -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Jun 23 07:25:45 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 23 Jun 2011 09:25:45 -0500 Subject: [mapserver-users] error: Unable to select IMAGETYPE `PNG' In-Reply-To: <408676.42096.qm@web37401.mail.mud.yahoo.com> References: <4E01EF97.4080408@geoanalytic.com> <4E01F742.6090206@geoanalytic.com> <4E01FC97.2000000@geoanalytic.com> <408676.42096.qm@web37401.mail.mud.yahoo.com> Message-ID: Try PNG8 or PNG24 (assuming this is 6.0). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukesh Subedee Sent: Wednesday, June 22, 2011 6:56 PM To: mapserver mailing list Subject: [mapserver-users] error: Unable to select IMAGETYPE `PNG' Hi all, I am trying to set up a new MapServer in a Ubuntu 10.04 machine. I 've installed and configured all the necessary/required components (including libpng-1.2.18). While configuring MapServer, I have included libpng package as well and my ./configure shows: configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. However, while I check ./mapserv -v, I could not find OUTPUT=PNG and am getting the error: msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `PNG'. I am not sure what went wrong during installation/configuration. I checked mail archives but could not find the exact solution (but have tried for some of the solutions found in Web). Please let me know if you have resolved this problem. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From msubedee at yahoo.com Thu Jun 23 09:19:16 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Thu, 23 Jun 2011 09:19:16 -0700 (PDT) Subject: [mapserver-users] error: Unable to select IMAGETYPE `PNG' In-Reply-To: References: <4E01EF97.4080408@geoanalytic.com> <4E01F742.6090206@geoanalytic.com> <4E01FC97.2000000@geoanalytic.com> <408676.42096.qm@web37401.mail.mud.yahoo.com> Message-ID: <823500.56906.qm@web37407.mail.mud.yahoo.com> Thanks Steve. I had tried both, PNG8 and PNG24 but no luck. I am using MapServer 5.6.5 as I'd already installed the same version in couple of machines before and I did not get any problem. Could there be any other issue that I missed/overlooked? Mukesh ________________________________ From: "Lime, Steve D (DNR)" To: Mukesh Subedee ; mapserver mailing list Sent: Thursday, June 23, 2011 7:25:45 Subject: RE: [mapserver-users] error: Unable to select IMAGETYPE `PNG' Try PNG8 or PNG24 (assuming this is 6.0). Steve From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukesh Subedee Sent: Wednesday, June 22, 2011 6:56 PM To: mapserver mailing list Subject: [mapserver-users] error: Unable to select IMAGETYPE `PNG' Hi all, I am trying to set up a new MapServer in a Ubuntu 10.04 machine. I 've installed and configured all the necessary/required components (including libpng-1.2.18). While configuring MapServer, I have included libpng package as well and my ./configure shows: configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. However, while I check ./mapserv -v, I could not find OUTPUT=PNG and am getting the error: msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `PNG'. I am not sure what went wrong during installation/configuration. I checked mail archives but could not find the exact solution (but have tried for some of the solutions found in Web). Please let me know if you have resolved this problem. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Jun 23 10:34:16 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 23 Jun 2011 19:34:16 +0200 Subject: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image In-Reply-To: References: <4DF9F947.7060500@mapgears.com> Message-ID: That would be a good idea to define a feature for the legend icon per class. We should also be able to define a custom text attribute so that we could customize the text displayed for the annotation layers. I assume this would apply for a new RFC in practice. Best regards, Tamas 2011/6/22 Lime, Steve D (DNR) > What about allowing the definition of a geometry (like inline features) > using percentages. The defaults > would be "as is" but could be overridden, kinda like the LEGENDICON class > parameter. We could add a > LEGENDFEATURE parameter... That would give folks a ton of control and by > specifying coordinates in percentages > things would scale. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette > Sent: Thursday, June 16, 2011 7:39 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Re: Polygon layer with no fill shows line > thumbnail in the legend image > > Personally, I do not feel strongly either way, other than being hesitant > to change something that's been in place for 8 years. Perhaps an option > could be added to control the type of icon to generate? > > On 11-06-16 07:12 AM, Tamas Szekeres wrote: > > Any update on this one? > > > > Tamas > > > > > > > > 2011/5/28 Tamas Szekeres szekerest at gmail.com>> > > > > Folks, > > > > According to a client's report, the current behaviour of drawing the > > legend images may be confusing, as the polygon layer with no fill > > shows line thumbnail (zigzag) in the legend image. > > I've been tracking down the changes in SVN and came to the conlusion > > that this behaviour has been introduced with > > http://trac.osgeo.org/mapserver/changeset/2172 8 years ago. > > > > I'd be curious to know if this approach is satisfactory for all > > users, or would it be more convenient to show an empty rectangle in > > these cases? I would personally be in favour of drawing a rectangle > > in order to make it clear that the layer type is polygon and not > > line. Or is there any other reason that I'm not aware of, which > > makes the current approach more compelling? > > > > > > Best regards, > > > > Tamas > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Daniel Morissette > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > > _______________________________________________ > 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 Jun 23 12:29:54 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 23 Jun 2011 14:29:54 -0500 Subject: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image In-Reply-To: References: <4DF9F947.7060500@mapgears.com> Message-ID: A small one?. From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Thursday, June 23, 2011 12:34 PM To: Lime, Steve D (DNR) Cc: Daniel Morissette; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image That would be a good idea to define a feature for the legend icon per class. We should also be able to define a custom text attribute so that we could customize the text displayed for the annotation layers. I assume this would apply for a new RFC in practice. Best regards, Tamas 2011/6/22 Lime, Steve D (DNR) > What about allowing the definition of a geometry (like inline features) using percentages. The defaults would be "as is" but could be overridden, kinda like the LEGENDICON class parameter. We could add a LEGENDFEATURE parameter... That would give folks a ton of control and by specifying coordinates in percentages things would scale. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Thursday, June 16, 2011 7:39 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Polygon layer with no fill shows line thumbnail in the legend image Personally, I do not feel strongly either way, other than being hesitant to change something that's been in place for 8 years. Perhaps an option could be added to control the type of icon to generate? On 11-06-16 07:12 AM, Tamas Szekeres wrote: > Any update on this one? > > Tamas > > > > 2011/5/28 Tamas Szekeres >> > > Folks, > > According to a client's report, the current behaviour of drawing the > legend images may be confusing, as the polygon layer with no fill > shows line thumbnail (zigzag) in the legend image. > I've been tracking down the changes in SVN and came to the conlusion > that this behaviour has been introduced with > http://trac.osgeo.org/mapserver/changeset/2172 8 years ago. > > I'd be curious to know if this approach is satisfactory for all > users, or would it be more convenient to show an empty rectangle in > these cases? I would personally be in favour of drawing a rectangle > in order to make it clear that the layer type is polygon and not > line. Or is there any other reason that I'm not aware of, which > makes the current approach more compelling? > > > Best regards, > > Tamas > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ 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 Jun 23 14:00:21 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 23 Jun 2011 16:00:21 -0500 Subject: [mapserver-users] LABELPOLY with increased padding In-Reply-To: References: Message-ID: I believe padding pre-6.0 was a by-product of the buffer value. In this case I was hoping to allow geometry operations like class/style-geomtransforms do. E.g. GEOMTRANSFORM (buffer([labelpoly], 2)) Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dirk Raffel Sent: Thursday, June 23, 2011 5:09 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] LABELPOLY with increased padding On Thu, Jun 23, 2011 at 11:15 AM, thomas bonfort > wrote: I agree this would be an important feature to have. For now, you should be able to hack around it by specifying the width of the outline as twice the value of the padding you want. You do loose the possibility of having an outline of a different color than the fill. STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 150 220 OUTLINECOLOR 0 150 220 WIDTH 7 END Note that I have not tried this, please post back with your results... Yes, this helps a lot, see https://docs.google.com/leaf?id=0B6vp23tQ3ixPZDk2Mjk3N2EtM2Q5Mi00MTgyLWIxYWYtZjczYTE5ZWMyMTM2&hl=en_US&authkey=CPryva8D STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 150 220 OUTLINECOLOR 0 150 220 WIDTH 24 END Dirk -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul_pag00 at hotmail.com Thu Jun 23 15:27:00 2011 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Thu, 23 Jun 2011 15:27:00 -0700 (PDT) Subject: [mapserver-users] color standards in layers Message-ID: <1308868020936-6510229.post@n2.nabble.com> Hello evryone i'm a mapserver user, i love the way i work, but i have a question i'm not a GIS Specialyst, but i want to know if there is color ruler for the representation of the layers,because i want to follow the goegraphic rules, some information about it i really apreciate. Thanks a lot Greetings Paul A. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/color-standards-in-layers-tp6510229p6510229.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Jun 23 17:03:29 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 23 Jun 2011 20:03:29 -0400 Subject: [mapserver-users] color standards in layers In-Reply-To: <1308868020936-6510229.post@n2.nabble.com> References: <1308868020936-6510229.post@n2.nabble.com> Message-ID: <4E03D451.1090102@swoodbridge.com> On 6/23/2011 6:27 PM, Paul Alarcon wrote: > Hello evryone i'm a mapserver user, i love the way i work, but i have a > question i'm not a GIS Specialyst, but i want to know if there is color > ruler for the representation of the layers,because i want to follow the > goegraphic rules, some information about it i really apreciate. Hi Paul, There has been a lot written on this subject and there is probably not simple answer because to a large extent it depends on what you are trying to show with you map. A lot of people like the Google maps or Virtual Earth maps as color schemes. You might also find the following interesting reading: http://www.google.com/#q=cartographic+color+standards+for+maps There are some very good books on the subject that discuss this in detail you can enter "gis cartography" into amazon book search to a good sample of them. Hope this helps, -Steve W From punk.kish at gmail.com Thu Jun 23 17:11:14 2011 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Thu, 23 Jun 2011 20:11:14 -0400 Subject: [mapserver-users] color standards in layers In-Reply-To: <4E03D451.1090102@swoodbridge.com> References: <1308868020936-6510229.post@n2.nabble.com> <4E03D451.1090102@swoodbridge.com> Message-ID: <6FA1E3BA-AC23-40C2-96BC-0ED02C1314DA@gmail.com> > On 6/23/2011 6:27 PM, Paul Alarcon wrote: >> Hello evryone i'm a mapserver user, i love the way i work, but i have a >> question i'm not a GIS Specialyst, but i want to know if there is color >> ruler for the representation of the layers,because i want to follow the >> goegraphic rules, some information about it i really apreciate. > try colorbrewer.org -- Puneet Kishor http://punkish.org Research http://carbonmodel.org Science Fellow http://creativecommons.org From sakaroyban at yahoo.com Thu Jun 23 21:57:05 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Thu, 23 Jun 2011 21:57:05 -0700 (PDT) Subject: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Message-ID: <840899.64766.qm@web121609.mail.ne1.yahoo.com> Hi all I have a nearly beginner question. Is there any usage for using HTML templates with OpenLayers? i.e. Why and in which case w may need templating while we use openlayers as a viewer? (the reason is that before starting openlayers, i was working with templates. and now it sounds to me that openlayers completely overrides templates, in use.) Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Jun 23 22:11:41 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 24 Jun 2011 00:11:41 -0500 Subject: [mapserver-users] Simple Question: using HTML templates with OpenLayers? In-Reply-To: <840899.64766.qm@web121609.mail.ne1.yahoo.com> References: <840899.64766.qm@web121609.mail.ne1.yahoo.com> Message-ID: Browse templates are pretty much useless with OpenLayers. Query templates, on the other hand, are very useful for a number of things w/OpenLayers. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saka Royban [sakaroyban at yahoo.com] Sent: Thursday, June 23, 2011 11:57 PM To: MapServer Subject: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Hi all I have a nearly beginner question. Is there any usage for using HTML templates with OpenLayers? i.e. Why and in which case w may need templating while we use openlayers as a viewer? (the reason is that before starting openlayers, i was working with templates. and now it sounds to me that openlayers completely overrides templates, in use.) Regards From sakaroyban at yahoo.com Thu Jun 23 22:27:11 2011 From: sakaroyban at yahoo.com (Saka Royban) Date: Thu, 23 Jun 2011 22:27:11 -0700 (PDT) Subject: [mapserver-users] Simple Question: using HTML templates with OpenLayers? In-Reply-To: References: <840899.64766.qm@web121609.mail.ne1.yahoo.com> Message-ID: <365440.50394.qm@web121608.mail.ne1.yahoo.com> Thanks a lot Steve so informative. however, Could u guide me to some of possible needs of query templates when using openlayers? ________________________________ From: "Lime, Steve D (DNR)" To: Saka Royban ; MapServer Sent: Fri, June 24, 2011 9:41:41 AM Subject: RE: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Browse templates are pretty much useless with OpenLayers. Query templates, on the other hand, are very useful for a number of things w/OpenLayers. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saka Royban [sakaroyban at yahoo.com] Sent: Thursday, June 23, 2011 11:57 PM To: MapServer Subject: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Hi all I have a nearly beginner question. Is there any usage for using HTML templates with OpenLayers? i.e. Why and in which case w may need templating while we use openlayers as a viewer? (the reason is that before starting openlayers, i was working with templates. and now it sounds to me that openlayers completely overrides templates, in use.) Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From silasharmeen at gmail.com Thu Jun 23 23:45:35 2011 From: silasharmeen at gmail.com (Sila Khan) Date: Fri, 24 Jun 2011 11:45:35 +0500 Subject: [mapserver-users] (no subject) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Fri Jun 24 01:01:57 2011 From: kobben at itc.nl (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Fri, 24 Jun 2011 10:01:57 +0200 Subject: [mapserver-users] color standards in layers In-Reply-To: <4E03D451.1090102@swoodbridge.com> Message-ID: A good place to visit is ColorBrewer by Cynthia Brewer: http://colorbrewer2.org -- Barend K?bben (Senior Lecturer) ITC - University of Twente, Faculty of Geo-Information Science and Earth Observation PO Box 217, 7500AE Enschede (The Netherlands) +31-(0)53 4874 253 On 24-06-11 02:03, "Stephen Woodbridge" wrote: >On 6/23/2011 6:27 PM, Paul Alarcon wrote: >> Hello evryone i'm a mapserver user, i love the way i work, but i have a >> question i'm not a GIS Specialyst, but i want to know if there is color >> ruler for the representation of the layers,because i want to follow the >> goegraphic rules, some information about it i really apreciate. > >Hi Paul, > >There has been a lot written on this subject and there is probably not >simple answer because to a large extent it depends on what you are >trying to show with you map. > >A lot of people like the Google maps or Virtual Earth maps as color >schemes. You might also find the following interesting reading: > >http://www.google.com/#q=cartographic+color+standards+for+maps > >There are some very good books on the subject that discuss this in >detail you can enter "gis cartography" into amazon book search to a good >sample of them. > >Hope this helps, > -Steve W >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users Faculty of Geo-Information Science and Earth Observation (ITC) University of Twente Chamber of Commerce: 501305360000 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From jean-francois at gigand.fr Fri Jun 24 04:44:16 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Fri, 24 Jun 2011 13:44:16 +0200 Subject: [mapserver-users] Symbol size in meters, width in pixels units Message-ID: Hi, I need to make maps showing proportional symbols (the size depends on an attribute, and is expressed in meters). But I need the outline width to be constant across resolutions, so I need to specify it in pixels. Since both properties have to be expressed in the same LAYER's sizeunits (whether meters or pixels), it seems impossible. Of course I need AGG'rendering (PNG & SVG). I have notice that GD would draw 1px outline anyway. Is there a solution? Thanks, JF Gigand From david.fawcett at state.mn.us Fri Jun 24 06:24:27 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 24 Jun 2011 08:24:27 -0500 Subject: [mapserver-users] color standards in layers In-Reply-To: <4E03D451.1090102@swoodbridge.com> References: <1308868020936-6510229.post@n2.nabble.com> <4E03D451.1090102@swoodbridge.com> Message-ID: You may also want to look at ColorBrewer: http://colorbrewer2.org/ It is very useful in helping you decide on color themes for maps. It will also provide you with the color codes (RGB or Hex) that you can use directly in MapServer. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Thursday, June 23, 2011 7:03 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] color standards in layers On 6/23/2011 6:27 PM, Paul Alarcon wrote: > Hello evryone i'm a mapserver user, i love the way i work, but i have a > question i'm not a GIS Specialyst, but i want to know if there is color > ruler for the representation of the layers,because i want to follow the > goegraphic rules, some information about it i really apreciate. Hi Paul, There has been a lot written on this subject and there is probably not simple answer because to a large extent it depends on what you are trying to show with you map. A lot of people like the Google maps or Virtual Earth maps as color schemes. You might also find the following interesting reading: http://www.google.com/#q=cartographic+color+standards+for+maps There are some very good books on the subject that discuss this in detail you can enter "gis cartography" into amazon book search to a good sample of them. Hope this helps, -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Weisbend at wapa.gov Fri Jun 24 08:53:12 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Fri, 24 Jun 2011 09:53:12 -0600 Subject: [mapserver-users] numeric sort of query results? Message-ID: <4E045E88020000DF0007A3AD@a-gwiadomvs-n.hq.wapa.gov> Hello, I would like to an on the fly sort a list of numeric values return when querying a layer in MapServer. I've been looking at the javascript .sort() function but can't seem to get my returned query values all in one array. Any idea's and or help would be greatly appreciated. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Fri Jun 24 12:07:59 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 24 Jun 2011 12:07:59 -0700 (PDT) Subject: [mapserver-users] color standards in layers In-Reply-To: <1308868020936-6510229.post@n2.nabble.com> Message-ID: <1308942479.85069.YahooMailClassic@web33204.mail.mud.yahoo.com> Two places I'd suggest looking: cpt city provides a wide range of palettes for mapping & other data that can be adapted to mapserver, including several standard palettes: http://soliton.vm.bytemark.co.uk/pub/cpt-city/ and colorbrewer allows you to set up & preview various optimised palettes for maps: http://colorbrewer2.org/ (also as Cynthia Brewer's palettes at the above site) Cheers, ? Brent Wood --- On Fri, 6/24/11, Paul Alarcon wrote: From: Paul Alarcon Subject: [mapserver-users] color standards in layers To: mapserver-users at lists.osgeo.org Date: Friday, June 24, 2011, 10:27 AM Hello evryone i'm a mapserver user, i love the way i work, but i have a question i'm not a GIS Specialyst, but i want to know if there is color ruler for the representation of the layers,because i want to follow the goegraphic rules, some information about it i really apreciate. Thanks a lot Greetings Paul A. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/color-standards-in-layers-tp6510229p6510229.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 Bob.Basques at ci.stpaul.mn.us Fri Jun 24 12:15:15 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 24 Jun 2011 14:15:15 -0500 Subject: [mapserver-users] color standards in layers In-Reply-To: <1308942479.85069.YahooMailClassic@web33204.mail.mud.yahoo.com> References: <1308868020936-6510229.post@n2.nabble.com> <1308942479.85069.YahooMailClassic@web33204.mail.mud.yahoo.com> Message-ID: <4E049BF3020000A80002B662@heckle> All, Another piece of the equation along these lines, is paying attention to color blindness types etc. There are some federal standards out there as a matter of fact related to the serving up of color content over the web related to color blindness. Something else to think about. bobb >>> wrote: Two places I'd suggest looking: cpt city provides a wide range of palettes for mapping & other data that can be adapted to mapserver, including several standard palettes: http://soliton.vm.bytemark.co.uk/pub/cpt-city/ and colorbrewer allows you to set up & preview various optimised palettes for maps: http://colorbrewer2.org/ (also as Cynthia Brewer's palettes at the above site) Cheers, Brent Wood --- On Fri, 6/24/11, Paul Alarcon wrote: From: Paul Alarcon Subject: [mapserver-users] color standards in layers To: mapserver-users at lists.osgeo.org Date: Friday, June 24, 2011, 10:27 AM Hello evryone i'm a mapserver user, i love the way i work, but i have a question i'm not a GIS Specialyst, but i want to know if there is color ruler for the representation of the layers,because i want to follow the goegraphic rules, some information about it i really apreciate. Thanks a lot Greetings Paul A. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/color-standards-in-layers-tp6510229p6510229.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org ( /mc/compose?to=mapserver-users at lists.osgeo.org ) http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Fri Jun 24 12:52:27 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 24 Jun 2011 14:52:27 -0500 Subject: [mapserver-users] Simple Question: using HTML templates with OpenLayers? In-Reply-To: <365440.50394.qm@web121608.mail.ne1.yahoo.com> References: <840899.64766.qm@web121609.mail.ne1.yahoo.com> <365440.50394.qm@web121608.mail.ne1.yahoo.com> Message-ID: I use queries and templates to: - The obvious one, answer selection queries (by box, point or shape). Typically this is in response to hover, click or draw OL controls. - Create data to be displayed as vector features (e.g. return GeoJSON or KML). Typically this is done as part of application initialization. Those are the biggies. Here's an example OL site (with ExtJS) that uses MapServer queries extensively to feed data back to the application... http://www.dnr.state.mn.us/waters/csg/index.html Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saka Royban Sent: Friday, June 24, 2011 12:27 AM To: MapServer Subject: Re: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Thanks a lot Steve so informative. however, Could u guide me to some of possible needs of query templates when using openlayers? ________________________________ From: "Lime, Steve D (DNR)" To: Saka Royban ; MapServer Sent: Fri, June 24, 2011 9:41:41 AM Subject: RE: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Browse templates are pretty much useless with OpenLayers. Query templates, on the other hand, are very useful for a number of things w/OpenLayers. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Saka Royban [sakaroyban at yahoo.com] Sent: Thursday, June 23, 2011 11:57 PM To: MapServer Subject: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Hi all I have a nearly beginner question. Is there any usage for using HTML templates with OpenLayers? i.e. Why and in which case w may need templating while we use openlayers as a viewer? (the reason is that before starting openlayers, i was working with templates. and now it sounds to me that openlayers completely overrides templates, in use.) Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Fri Jun 24 13:04:55 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 24 Jun 2011 13:04:55 -0700 (PDT) Subject: [mapserver-users] color standards in layers In-Reply-To: <4E049BF3020000A80002B662@heckle> Message-ID: <1308945895.89572.YahooMailClassic@web33202.mail.mud.yahoo.com> Cynthia? Brewer's site (http://colorbrewer2.org/) offers the option to select colour schemes to avoid problems with colour blindness. I don't know if they comply with US federal standards, but it would seem a good place to look. --- On Sat, 6/25/11, Bob Basques wrote: From: Bob Basques Subject: Re: [mapserver-users] color standards in layers To: "Paul Alarcon" , mapserver-users at lists.osgeo.org, pcreso at pcreso.com Date: Saturday, June 25, 2011, 7:15 AM All, Another piece of the equation along these lines, is paying attention to color blindness types etc. There are some federal standards out there as a matter of fact related to the serving up of color content over the web related to color blindness. Something else to think about. bobb >>> wrote: Two places I'd suggest looking: cpt city provides a wide range of palettes for mapping & other data that can be adapted to mapserver, including several standard palettes: http://soliton.vm.bytemark.co.uk/pub/cpt-city/ and colorbrewer allows you to set up & preview various optimised palettes for maps: http://colorbrewer2.org/?(also as Cynthia Brewer's palettes at the above site) Cheers, ? Brent Wood --- On Fri, 6/24/11, Paul Alarcon ?wrote: From: Paul Alarcon Subject: [mapserver-users] color standards in layers To: mapserver-users at lists.osgeo.org Date: Friday, June 24, 2011, 10:27 AM Hello evryone i'm a mapserver user, i love the way i work, but i have a question i'm not a GIS Specialyst, but i want to know if there is color ruler for the representation of the layers,because i want to follow the goegraphic rules, some information about it i really apreciate. Thanks a lot Greetings Paul A. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/color-standards-in-layers-tp6510229p6510229.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 bfraser at geoanalytic.com Fri Jun 24 14:28:08 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 24 Jun 2011 15:28:08 -0600 Subject: [mapserver-users] color standards in layers In-Reply-To: <4E049BF3020000A80002B662@heckle> References: <1308868020936-6510229.post@n2.nabble.com> <1308942479.85069.YahooMailClassic@web33204.mail.mud.yahoo.com> <4E049BF3020000A80002B662@heckle> Message-ID: <4E050168.8040402@geoanalytic.com> Here's some info on that http://colororacle.cartography.ch/ Best Regards, Brent Fraser On 6/24/2011 1:15 PM, Bob Basques wrote: > > All, > > > Another piece of the equation along these lines, is paying attention > to color blindness types etc. There are some federal standards out > there as a matter of fact related to the serving up of color content > over the web related to color blindness. > > > Something else to think about. > > > bobb > > > > > >>> wrote: > > Two places I'd suggest looking: > > cpt city provides a wide range of palettes for mapping & other data > that can be adapted to mapserver, including several standard palettes: > http://soliton.vm.bytemark.co.uk/pub/cpt-city/ > > and colorbrewer allows you to set up & preview various optimised > palettes for maps: > http://colorbrewer2.org/ (also as Cynthia Brewer's palettes at the > above site) > > Cheers, > > Brent Wood > > --- On *Fri, 6/24/11, Paul Alarcon //* wrote: > > > From: Paul Alarcon > Subject: [mapserver-users] color standards in layers > To: mapserver-users at lists.osgeo.org > Date: Friday, June 24, 2011, 10:27 AM > > Hello evryone i'm a mapserver user, i love the way i work, but i > have a > question i'm not a GIS Specialyst, but i want to know if there is > color > ruler for the representation of the layers,because i want to > follow the > goegraphic rules, some information about it i really apreciate. > > Thanks a lot > > Greetings > > Paul A. > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/color-standards-in-layers-tp6510229p6510229.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 andrewfa at slingshot.co.nz Sun Jun 26 17:02:46 2011 From: andrewfa at slingshot.co.nz (AndrewFarrow) Date: Sun, 26 Jun 2011 17:02:46 -0700 (PDT) Subject: [mapserver-users] raster masks on mapserver Message-ID: <1309132966933-6518447.post@n2.nabble.com> Hi, I would like to know if it is possible to use a shapefile mask over a raster? Currently I have 2 raster layers each with a different resolution. If I don't use a mask then where there is white tiles (nodata) will overwrite the layer beneath. I have a shape file that matches the white tiles so shouldn't be too hard to apply the mask, however for mapserver I cannot find this capability? Any help would be much appreciated. Kind Regards Andrew Farrow -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/raster-masks-on-mapserver-tp6518447p6518447.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Sun Jun 26 19:23:31 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 26 Jun 2011 20:23:31 -0600 Subject: [mapserver-users] raster masks on mapserver In-Reply-To: <1309132966933-6518447.post@n2.nabble.com> References: <1309132966933-6518447.post@n2.nabble.com> Message-ID: <4E07E9A3.1000109@geoanalytic.com> Andrew, How about using OFFSITE 255 255 255 in the LAYER object to make the white transparent? This might not be a good solution if white is a naturally occurring data value in the raster ... Best Regards, Brent Fraser On 6/26/2011 6:02 PM, AndrewFarrow wrote: > Hi, > > I would like to know if it is possible to use a shapefile mask over a > raster? Currently I have 2 raster layers each with a different resolution. > If I don't use a mask then where there is white tiles (nodata) will > overwrite the layer beneath. I have a shape file that matches the white > tiles so shouldn't be too hard to apply the mask, however for mapserver I > cannot find this capability? > > Any help would be much appreciated. > > Kind Regards > > Andrew Farrow > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/raster-masks-on-mapserver-tp6518447p6518447.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 kensei3000 at yahoo.com Sun Jun 26 20:36:33 2011 From: kensei3000 at yahoo.com (kensei3000) Date: Sun, 26 Jun 2011 20:36:33 -0700 (PDT) Subject: [mapserver-users] "Low-resolution" raster image problem when using Openlayers Message-ID: <1309145793.97438.YahooMailNeo@web65407.mail.ac4.yahoo.com> Hi! I am trying to use MapServer as a WMS layer in Openlayers. I setup the MapServer in our server machine, using my own PC as the test client. I created a simple .map file in our server that contains one raster image. Using the mapserver tool 'mapserv' in a URL string, I was able to load the output map with full resolution correctly in a browser (Google Chrome). However, when I tried to load the map using a simple Openlayers script (HMTL) which I created on our server (accessible via browser), the map image appeared to have a much lower-resolution (i.e. 256-colors only) and was pixelized. Also, I could see white lines representing the tile edges of the map.? I did another test. This time, I installed MapServer in my own PC. I created a .map file similar to the one I used in our server, with the same raster image. I created a similar Openlayers script (HTML) in my own PC, but this time it would call the MapServer from my own PC. I loaded the script using a browser and the image displayed correctly with full resolution.? Does anyone have an idea what the problem could be? I would appreciate any help in this matter. Thanks in advance! :) ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From silasharmeen at gmail.com Mon Jun 27 00:32:25 2011 From: silasharmeen at gmail.com (Sila Khan) Date: Mon, 27 Jun 2011 12:32:25 +0500 Subject: [mapserver-users] mapserver WMS Message-ID: i followed the same pattern of mapfile for accessing maps through wms and when i start it in browser it gives Error like this loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47) when i modify the recommended line it goes to an other line with same Error plz help me to rectify the Error NAME "WMS-test"STATUS ONSIZE 400 300SYMBOLSET ../etc/symbols.symEXTENT -2200000 -712631 3072800 3840000UNITS METERSSHAPEPATH "../data"IMAGECOLOR 255 255 255FONTSET ../etc/fonts.txt WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" ##required "wms_onlineresource" "http://yourpath/cgi-bin/mapserv.exe?" ##required "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ##recommended ENDEND PROJECTION "init=epsg:42304" ##requiredEND ## Start of layer definitions# LAYER NAME "park" METADATA "wms_title" "Parks" ##required END TYPE POLYGON STATUS OFF DATA park PROJECTION "init=epsg:42304" ##recommended END CLASS NAME "Parks" STYLE COLOR 200 255 0 OUTLINECOLOR 120 120 120 END ENDEND # Layer LAYER NAME popplace METADATA "wms_title" "Cities" ##required END TYPE POINT STATUS ON DATA popplace PROJECTION "init=epsg:42304" ##recommended END CLASS NAME "Cities" STYLE SYMBOL 2 SIZE 8 COLOR 0 0 0 END ENDEND # Layer END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Mon Jun 27 01:05:11 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Mon, 27 Jun 2011 09:05:11 +0100 Subject: [mapserver-users] php-Mapscript and MySQL layer syntax Message-ID: <0b0401cc34a0$f0abbba0$d20332e0$@green@ibstv.co.uk> Hi to all I am using PHP5-Mapscript together with Mapserver 6.0 and I have a layer which obtains its data from a MySQL database via an OGR connection. This all works, but I am having trouble with two items of PHP-Mapscript syntax: 1. $layer->getExtent() - I can't make this work with my layer: can someone confirm if it works with a MySQL layer and if so give a syntax example? 2. $query= $layer->queryByAttributes(null, $expression, MS_MULTIPLE); On the 2nd question I came across some advice from Frank Wamerdam dated 2006 which said: "The trick with OGR connections to pass the filter through to OGR is to use a query expression starting with WHERE. So you might do something like: expr = 'WHERE ' + $qField + ' = ' + $qValue $qLayer->queryByAttributes(null,$expr,MS_MULTIPLE); (forgive my incorrect PHP syntax, I'm just trying to get the idea accross)." However I can't come up with any expression that gives me any results at all. Is there any current advice on how to do this kind of query over an OGR connection? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From jachym.cepicky at gmail.com Mon Jun 27 02:32:36 2011 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Mon, 27 Jun 2011 11:32:36 +0200 Subject: [mapserver-users] using gdal subdataset as datasource Message-ID: Hi, I use gdal 1.9.0 (trunk), mapserver 6.0.0, ubuntu 11.04 I need to access several gdal subdatasets within gdal dataset as different tileindexes (need to build time-support on top of this). Situation: 1) I have GDAL WCS data source file, with temporal information in it 2) I created shapefile with 2 attributes: location AND time. location cotains the subdataset definition, which can be read by gdal ogrinfo on /tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T030000_pph.wcs.tindex/20101014T030000_pph.wcs.tindex.shp (which is the generated time index file): ... OGRFeature(20101014T030000_pph.wcs.tindex):18 location (String) = WCS_SDS:time="2010-10-14T21:00:00.000Z",/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T030000_pph.wcs time (String) = 2010-10-14T21:00:00.000Z POLYGON ((409900 -11700,12900 -11700,12900 0,409900 0,409900 -11700)) ... gdalinfo on tindex location: gdalinfo 'WCS_SDS:time="2010-10-14T21:00:00.000Z",/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T030000_pph.wcs' Driver: WCS/OGC Web Coverage Service Files: none associated Size is 645, 585 Coordinate System is: PROJCS["GGRS87 / Greek Grid", GEOGCS["GGRS87", DATUM["Greek_Geodetic_Reference_System_1987", SPHEROID["GRS 1980",6378137,298.257222101, AUTHORITY["EPSG","7019"]], TOWGS84[-199.87,74.79,246.62,0,0,0,0], AUTHORITY["EPSG","6121"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4121"]], UNIT["metre",1, AUTHORITY["EPSG","9001"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",24], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], AUTHORITY["EPSG","2100"], AXIS["Easting",EAST], AXIS["Northing",NORTH]] Origin = (409900.000000000000000,4503200.000000000000000) Pixel Size = (20.000000000000000,-20.000000000000000) Metadata: TIME_POSITION=2010-10-14T21:00:00.000Z Corner Coordinates: Upper Left ( 409900.000, 4503200.000) ( 22d56' 2.07"E, 40d40'29.14"N) Lower Left ( 409900.000, 4491500.000) ( 22d56' 8.10"E, 40d34' 9.76"N) Upper Right ( 422800.000, 4503200.000) ( 23d 5'11.49"E, 40d40'33.86"N) Lower Right ( 422800.000, 4491500.000) ( 23d 5'16.66"E, 40d34'14.45"N) Center ( 416350.000, 4497350.000) ( 23d 0'39.58"E, 40d37'21.89"N) Band 1 Block=645x585 Type=Float64, ColorInterp=Undefined -> works perfectly BUT when I run GetMap request (WMS) on that layer, I got mapscript.MapServerError: msDrawMap(): Image handling error. Failed to draw layer named '20101014T030000_pph'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T030000_pph.wcs.tindex/WCS_SDS:time="2010-10-14T03:00:00.000Z",/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T030000_pph.wcs' for layer '20101014T030000_pph'. , referer: http://briseide.localhost/map/index2.php WMS Mapfile layer definition looks like LAYER METADATA "wms_timeitem" "time" "wms_timeextent" "2010-10-14T03:00:00.000Z,2010-10-14T04:00:00.000Z,2010-10-14T05:00:00.000Z,2010-10-14T06:00:00.000Z,2010-10-14T07:00:00.000Z,2010-10-14T08:00:00.000Z,2010-10-14T09:00:00.000Z,2010-10-14T10:00:00.000Z,2010-10-14T11:00:00.000Z,2010-10-14T12:00:00.000Z,2010-10-14T13:00:00.000Z,2010-10-14T14:00:00.000Z,2010-10-14T15:00:00.000Z,2010-10-14T16:00:00.000Z,2010-10-14T17:00:00.000Z,2010-10-14T18:00:00.000Z,2010-10-14T19:00:00.000Z,2010-10-14T20:00:00.000Z,2010-10-14T21:00:00.000Z" "wms_title" "20101014T030000_pph" END # METADATA NAME "20101014T030000_pph" PROJECTION "proj=tmerc" "lat_0=0" "lon_0=24" "k=0.9996" "x_0=500000" "y_0=0" "datum=GGRS87" "units=m" "no_defs" END # PROJECTION STATUS OFF TEMPLATE "foo" TILEINDEX "/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T030000_pph.wcs.tindex/20101014T030000_pph.wcs.tindex.shp" TILEITEM "location" TYPE RASTER UNITS METERS CLASS STYLE ANGLE 0 OFFSET 0 0 END # STYLE END # CLASS END # LAYER The part "/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T030000_pph.wcs.tindex/" of the requested "file name" should *NOT* be there. Questions: 1) What did I wrong with the configuration? 2) Is there other way, how to access temporal-enabled time data, available as GDAL subdataset? Thanks Jachym -- Jachym Cepicky e-mail: jachym.cepicky gmail com URL: http://les-ejk.cz GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp From m.bagni at marcobagni.com Mon Jun 27 03:51:23 2011 From: m.bagni at marcobagni.com (Marco Bagni) Date: Mon, 27 Jun 2011 12:51:23 +0200 Subject: [mapserver-users] mapserver WMS In-Reply-To: References: Message-ID: <20e8f536f8297e132d117eb66f92b8a9.squirrel@webmail.marcobagni.com> Hi, very likely there is a problem with your DATA declaration since, as far as I know you have to put the name of the coverage enclosed within quotes and complete with the extension like: DATA 'popplace.shp' On the other side this MAP file looks wery "skinny". Here is an example of a MAP "template" I am using with my system for a vector coverage in SHP format: ###<<>>6493f0c28e6856b_VL2 LAYER NAME '6493f0c28e6856b_VL2' TYPE LINE DATA 'absolute path to the location of the shape file like /usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/reg2010_s.shp' DUMP true HEADER 'this is optional and allows to return the results of an identify in html format but in order to have this you have to declare "'wms_feature_info_mime_type' 'text/html'" in the WEB METADATA section of the MAP part of the map file, that at the beginning of the file :/usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_header.html' TEMPLATE 'this MUST be filled with something also some gibberish like "templatestuff" or the absolute path to a real HTML file like: /usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_query.html' FOOTER 'applies the same comment of the HEADER token /usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_footer.html' EXTENT 313361.0014 3933878.5013 1312106.7514 5220491.2513 METADATA 'wfs_title' 'VL_2: Regioni' # this name is the name displayed in the WMS clients 'ows_title' 'VL_2: Regioni' 'ows_abstract' 'UserData:; ;__System___; Sector: Cartographic Background; Category: Administrative Boundaries; Table: District Limit; Date_from: 0000-00-00; Date_to: 0000-00-00; DataType: LINE' 'ows_srs' 'EPSG:4326' 'ows_include_items' 'all' 'ows_types' 'auto' 'gml_featureid' 'ID' # this stuff is for WFS queries and contains the list of the coverage fields that must be exported 'gml_include_items' 'all' 'gml_types' 'auto' 'gml_COD_REG_type' 'Integer' 'gml_NOME_REG_type' 'String' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=utm' 'ellps=WGS84' 'datum=WGS84' 'zone=32' 'north' 'units=m' 'no_defs' END # # In this field the user can insert the commands to display the map # accordingly with a classification based on the value of one or more fields # following the MAP Server syntax like in the following example: # # # CLASSITEM 'Code' # CLASS # NAME '1.000 < Code < 13.250' # EXPRESSION ( ([Code] >= 1.000) AND ([Code] <= 13.250) ) # STYLE # WIDTH 1 # OUTLINECOLOR 0 0 0 # COLOR 0 255 0 # END # END # CLASS # NAME '13.250 < Code < 25.500' # EXPRESSION ( ([Code] >= 13.250) AND ([Code] <= 25.500) ) # STYLE # WIDTH 1 # OUTLINECOLOR 0 0 0 # COLOR 0 191 64 # END # END # CLASS NAME 'VL_2: Regioni' TEXT ([NOME_REG]) STYLE WIDTH 1 OUTLINECOLOR 0 0 0 COLOR 127 127 127 END LABEL # the field used to display the label is declared in the TEXT token few lines before FONT 'arial' TYPE bitmap COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION auto SIZE tiny WRAP '@' END END END ###<<>>6493f0c28e6856b_VL2 Hoping that this will be of some help. Cheers Marco Bagni On Mon, June 27, 2011 9:32 am, Sila Khan wrote: > i followed the same pattern of mapfile for accessing maps through wms > and when i start it in browser it gives Error like this > loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47) > when i modify the recommended line it goes to an other line with same > Error > plz help me to rectify the Error > > > > > NAME "WMS-test"STATUS ONSIZE 400 300SYMBOLSET ../etc/symbols.symEXTENT > -2200000 -712631 3072800 3840000UNITS METERSSHAPEPATH > "../data"IMAGECOLOR 255 255 255FONTSET ../etc/fonts.txt > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "WMS Demo Server" ##required > "wms_onlineresource" "http://yourpath/cgi-bin/mapserv.exe?" > ##required > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" > ##recommended > ENDEND > PROJECTION > "init=epsg:42304" ##requiredEND > ## Start of layer definitions# > LAYER > NAME "park" > METADATA > "wms_title" "Parks" ##required > END > TYPE POLYGON > STATUS OFF > DATA park > PROJECTION > "init=epsg:42304" ##recommended > END > CLASS > NAME "Parks" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > ENDEND # Layer > LAYER > NAME popplace > METADATA > "wms_title" "Cities" ##required > END > TYPE POINT > STATUS ON > DATA popplace > PROJECTION > "init=epsg:42304" ##recommended > END > CLASS > NAME "Cities" > STYLE > SYMBOL 2 > SIZE 8 > COLOR 0 0 0 > END > ENDEND # Layer > END # Map File > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Mon Jun 27 05:38:38 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 27 Jun 2011 09:38:38 -0300 Subject: [mapserver-users] mapserver WMS In-Reply-To: References: Message-ID: <4E0879CE.4050704@gatewaygeomatics.com> That is the example mapfile from the docs...maybe you could include your small test mapfile. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-06-27 4:32 AM, Sila Khan wrote: > i followed the same pattern of mapfile for accessing maps through wms > and when i start it in browser it gives Error like this > loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47) > when i modify the recommended line it goes to an other line with same Error > plz help me to rectify the Error > > > > > NAME "WMS-test" > STATUS ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT -2200000 -712631 3072800 3840000 > UNITS METERS > SHAPEPATH "../data" > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "WMS Demo Server" ##required > "wms_onlineresource" "http://yourpath/cgi-bin/mapserv.exe?" ##required > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ##recommended > END > END > > PROJECTION > "init=epsg:42304" ##required > END > > # > # Start of layer definitions > # > > LAYER > NAME "park" > METADATA > "wms_title" "Parks" ##required > END > TYPE POLYGON > STATUS OFF > DATA park > PROJECTION > "init=epsg:42304" ##recommended > END > CLASS > NAME "Parks" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END # Layer > > LAYER > NAME popplace > METADATA > "wms_title" "Cities" ##required > END > TYPE POINT > STATUS ON > DATA popplace > PROJECTION > "init=epsg:42304" ##recommended > END > CLASS > NAME "Cities" > STYLE > SYMBOL 2 > SIZE 8 > COLOR 0 0 0 > END > END > END # Layer > > END # Map File > From Ralf.Trier at logos-ib.de Mon Jun 27 06:33:00 2011 From: Ralf.Trier at logos-ib.de (Ralf Trier) Date: Mon, 27 Jun 2011 15:33:00 +0200 Subject: [mapserver-users] not able to label a feature with concatenated strings (data field + string literal) Message-ID: I' am updated to PHP-Script Version 6.0. I older version I labeled features with concatenated strings (data field + string literal). The documentation of the class section says that Text can be set like: Text ([FIRSTNAME],[LASTNAME]) According to the Migration Guide I can use TEXT ([area] + ' acres') TEXT '[area] acres' None of these 3 versions work. Mostly I get an error like: yyparse(): Expression parser error. syntax error msShapeGetAnnotation: Expression parser error. Failed to process text expression: Any idea, what I can do. From dmorissette at mapgears.com Mon Jun 27 06:54:25 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 27 Jun 2011 09:54:25 -0400 Subject: [mapserver-users] mapserver WMS In-Reply-To: References: Message-ID: <4E088B91.8060001@mapgears.com> Which version of MapServer? Line 47 in the map that you pasted is the end of the first layer definition. Are you sure that you copied the right mapfile? The error suggests an error loading a hashtable, which would be the METADATA block just before the TYPE keyword (as if something was wrong with your metadata block). Perhaps try removing the "##required" comment in the metadata block. I'm not aware of any version of MapServer suffering of this kind of problem with comments inside METADATA blocks, but ya never know... Oh wait... I think I found it... it must be a combination of the comment at the end of the line, combined with incorrect line ends for your platform... (Windows CRLF vs Linux/Unix CR) the result is that the "END" delimiter of the metadata block is not seen (it's considered part of the comment on the previous line) Removing the comments at the end of the lines, or cleaning up the line breaks should fix the problem. On 11-06-27 03:32 AM, Sila Khan wrote: > i followed the same pattern of mapfile for accessing maps through wms > and when i start it in browser it gives Error like this > loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47) > when i modify the recommended line it goes to an other line with same Error > plz help me to rectify the Error > > > > > NAME "WMS-test" > STATUS ON > SIZE 400 300 > SYMBOLSET ../etc/symbols.sym > EXTENT -2200000 -712631 3072800 3840000 > UNITS METERS > SHAPEPATH "../data" > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "WMS Demo Server" ##required > "wms_onlineresource" "http://yourpath/cgi-bin/mapserv.exe?" ##required > "wms_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ##recommended > END > END > > PROJECTION > "init=epsg:42304" ##required > END > > # > # Start of layer definitions > # > > LAYER > NAME "park" > METADATA > "wms_title" "Parks" ##required > END > TYPE POLYGON > STATUS OFF > DATA park > PROJECTION > "init=epsg:42304" ##recommended > END > CLASS > NAME "Parks" > STYLE > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END # Layer > > LAYER > NAME popplace > METADATA > "wms_title" "Cities" ##required > END > TYPE POINT > STATUS ON > DATA popplace > PROJECTION > "init=epsg:42304" ##recommended > END > CLASS > NAME "Cities" > STYLE > SYMBOL 2 > SIZE 8 > COLOR 0 0 0 > END > END > END # Layer > > END # Map File > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From steve.lime at state.mn.us Mon Jun 27 06:56:21 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 27 Jun 2011 08:56:21 -0500 Subject: [mapserver-users] numeric sort of query results? In-Reply-To: <4E045E88020000DF0007A3AD@a-gwiadomvs-n.hq.wapa.gov> References: <4E045E88020000DF0007A3AD@a-gwiadomvs-n.hq.wapa.gov> Message-ID: I've used the javascript push() method to build arrays from MapServer templates. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Weisbender Sent: Friday, June 24, 2011 10:53 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] numeric sort of query results? Hello, I would like to an on the fly sort a list of numeric values return when querying a layer in MapServer. I've been looking at the javascript .sort() function but can't seem to get my returned query values all in one array. Any idea's and or help would be greatly appreciated. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Westwood at port.ac.uk Mon Jun 27 07:41:06 2011 From: John.Westwood at port.ac.uk (John Westwood) Date: Mon, 27 Jun 2011 15:41:06 +0100 Subject: [mapserver-users] Rendering artefacts when serving raster via WMS * SOLVED * Sort of Message-ID: <4E08A4920200005300010561@gw-gwia2.iso.port.ac.uk> Hi After testing with shp2img I have just realised what is causing this problem. It is all my fault :) Some of the map sheets overlap and I am using the OFFSITE command with 255 255 255 to make white transparent, hence some of the sheet behind is showing through. Unfortunately, I need the OFFSITE command to make white transparent so that the white 'border' around the sheet does not obscure the map sheet it is overlapping. I'm not sure what would be the easiest / best way around this. Does anybody have any ideas? Thanks. Regards, John W. Great Britain Historical GIS Project >>> Frank Warmerdam 15/06/11 4:05 PM >>> On 11-06-10 12:25 PM, John Westwood wrote: > Does anybody have any ideas what the problem could be? I know it is something > to do with the fact that I boosted the images and MapServer doesn't like them, > but I would like to fix it. Suggestions greatly appreciated. John, I'm afraid I don't have much to offer. I just wanted you to know that someone had looked at your post and had no bright ideas about why it is happening. If this is quite important to you, you could file a ticket on the issue, reducing it to a simple map file with one input GeoTIFF and a request (ideally with shp2img) that produces the artifacted output. Then I could dig into this from my end. If you do that, you can directly assign the MapServer ticket to "warmerdam". 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 steve.lime at state.mn.us Mon Jun 27 08:10:45 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 27 Jun 2011 10:10:45 -0500 Subject: [mapserver-users] not able to label a feature with concatenated strings (data field + string literal) In-Reply-To: References: Message-ID: Hi Ralf: There looks to be an error in the migration guide with one of the examples. Specifically: TEXT ([area] + ' acres') should be TEXT ('[area]' + ' acres') You have to explicitly cast the attribute area to a string. That said TEXT '[area] acres' should work. What output/error do you get with that? The new expression parsing isn't used at all in that case so I would expect something different that what's below. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ralf Trier Sent: Monday, June 27, 2011 8:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] not able to label a feature with concatenated strings (data field + string literal) I' am updated to PHP-Script Version 6.0. I older version I labeled features with concatenated strings (data field + string literal). The documentation of the class section says that Text can be set like: Text ([FIRSTNAME],[LASTNAME]) According to the Migration Guide I can use TEXT ([area] + ' acres') TEXT '[area] acres' None of these 3 versions work. Mostly I get an error like: yyparse(): Expression parser error. syntax error msShapeGetAnnotation: Expression parser error. Failed to process text expression: Any idea, what I can do. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From paulcarlisle at comcast.net Mon Jun 27 10:14:21 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Mon, 27 Jun 2011 10:14:21 -0700 (PDT) Subject: [mapserver-users] NITF and World Files Message-ID: <1309194861243-6521391.post@n2.nabble.com> We have a collection of NITF files that are missing coordinate system information; they are essentially pixel-based. Elsewhere we have information on the projections used. We are reluctant to modify the original NITF files, but would like to display them through MapServer with the correct projection information. If we provide a world file containing this information for each NITF file, can we associate the two in the mapfile and have MapServer use the world file information instead of fruitlessly pawing through the NITF for it? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/NITF-and-World-Files-tp6521391p6521391.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Mon Jun 27 10:21:58 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 27 Jun 2011 13:21:58 -0400 Subject: [mapserver-users] NITF and World Files In-Reply-To: <1309194861243-6521391.post@n2.nabble.com> References: <1309194861243-6521391.post@n2.nabble.com> Message-ID: <4E08BC36.7020807@pobox.com> On 11-06-27 01:14 PM, SixDegrees wrote: > We have a collection of NITF files that are missing coordinate system > information; they are essentially pixel-based. Elsewhere we have information > on the projections used. We are reluctant to modify the original NITF files, > but would like to display them through MapServer with the correct projection > information. If we provide a world file containing this information for each > NITF file, can we associate the two in the mapfile and have MapServer use > the world file information instead of fruitlessly pawing through the NITF > for it? Six Degrees, Yes, you should be able to drop a .wld or .nfw file next to the nitf file to provide georeferencing. If that doesn't work for some reason you could provide a similar effect with a VRT file (email me directly for details if needed). 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 Ralf.Trier at logos-ib.de Tue Jun 28 00:05:26 2011 From: Ralf.Trier at logos-ib.de (Ralf Trier) Date: Tue, 28 Jun 2011 09:05:26 +0200 Subject: [mapserver-users] not able to label a feature with concatenatedstrings (data field + string literal) In-Reply-To: References: Message-ID: Hi Steve thanks a lot this works: TEXT ('[area]' + ' acres') An Overview of what I tried und the results TEXT ([DB_FIELD]+'L') yyparse(): Expression parser error. syntax error msShapeGetAnnotation: Expression parser error. Failed to process text expression: [DB_FIELD]+'L' TEXT ([DB_FIELD],'L') yyparse(): Expression parser error. syntax error msShapeGetAnnotation: Expression parser error. Failed to process text expression: [DB_FIELD],'L' TEXT ('[DB_FIELD] L') => shows Label exact as between '' e.g. [DB_FIELD] L TEXT ('[DB_FIELD]'+' L') => ok TEXT '[DB_FIELD] L' => ok TEXT 'L [DB_FIELD]' => ok TEXT '[DB_FIELD]' => ok TEXT [DB_FIELD] =>in PHP-Script catched Exception 'MapScriptException' with message 'Failed to open map file "a.map"' =>in MS_ERRORFILE getSymbol(): Symbol definition error. Parsing error near (DB_FIELD):(line 739) Best regards, Ralf > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Lime, Steve D (DNR) > Gesendet: Montag, 27. Juni 2011 17:31 > An: Ralf Trier; mapserver-users at lists.osgeo.org > Betreff: RE: [mapserver-users] not able to label a feature with > concatenatedstrings (data field + string literal) > > Hi Ralf: There looks to be an error in the migration guide with one of > the examples. Specifically: > > TEXT ([area] + ' acres') should be TEXT ('[area]' + ' acres') > > You have to explicitly cast the attribute area to a string. That said > TEXT '[area] acres' should work. What output/error do you get with > that? > The new expression parsing isn't used at all in that case so I would > expect something different that what's below. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Ralf Trier > Sent: Monday, June 27, 2011 8:33 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] not able to label a feature with > concatenated strings (data field + string literal) > > I' am updated to PHP-Script Version 6.0. > > I older version I labeled features with concatenated strings (data > field > + string literal). > > The documentation of the class section says that Text can be set like: > Text ([FIRSTNAME],[LASTNAME]) > According to the Migration Guide I can use > TEXT ([area] + ' acres') > TEXT '[area] acres' > None of these 3 versions work. > > Mostly I get an error like: > yyparse(): Expression parser error. syntax error > msShapeGetAnnotation: Expression parser error. Failed to process text > expression: > > Any idea, what I can do. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From steve.lime at state.mn.us Tue Jun 28 11:58:47 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 28 Jun 2011 13:58:47 -0500 Subject: [mapserver-users] not able to label a feature with concatenatedstrings (data field + string literal) In-Reply-To: References: Message-ID: Cool. It's working as intended then. Thanks for the feedback... Steve -----Original Message----- From: Ralf Trier [mailto:Ralf.Trier at logos-ib.de] Sent: Tuesday, June 28, 2011 2:05 AM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] not able to label a feature with concatenatedstrings (data field + string literal) Hi Steve thanks a lot this works: TEXT ('[area]' + ' acres') An Overview of what I tried und the results TEXT ([DB_FIELD]+'L') yyparse(): Expression parser error. syntax error msShapeGetAnnotation: Expression parser error. Failed to process text expression: [DB_FIELD]+'L' TEXT ([DB_FIELD],'L') yyparse(): Expression parser error. syntax error msShapeGetAnnotation: Expression parser error. Failed to process text expression: [DB_FIELD],'L' TEXT ('[DB_FIELD] L') => shows Label exact as between '' e.g. [DB_FIELD] L TEXT ('[DB_FIELD]'+' L') => ok TEXT '[DB_FIELD] L' => ok TEXT 'L [DB_FIELD]' => ok TEXT '[DB_FIELD]' => ok TEXT [DB_FIELD] =>in PHP-Script catched Exception 'MapScriptException' with message 'Failed to open map file "a.map"' =>in MS_ERRORFILE getSymbol(): Symbol definition error. Parsing error near (DB_FIELD):(line 739) Best regards, Ralf > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Lime, Steve D (DNR) > Gesendet: Montag, 27. Juni 2011 17:31 > An: Ralf Trier; mapserver-users at lists.osgeo.org > Betreff: RE: [mapserver-users] not able to label a feature with > concatenatedstrings (data field + string literal) > > Hi Ralf: There looks to be an error in the migration guide with one of > the examples. Specifically: > > TEXT ([area] + ' acres') should be TEXT ('[area]' + ' acres') > > You have to explicitly cast the attribute area to a string. That said > TEXT '[area] acres' should work. What output/error do you get with > that? > The new expression parsing isn't used at all in that case so I would > expect something different that what's below. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Ralf Trier > Sent: Monday, June 27, 2011 8:33 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] not able to label a feature with > concatenated strings (data field + string literal) > > I' am updated to PHP-Script Version 6.0. > > I older version I labeled features with concatenated strings (data > field > + string literal). > > The documentation of the class section says that Text can be set like: > Text ([FIRSTNAME],[LASTNAME]) > According to the Migration Guide I can use > TEXT ([area] + ' acres') > TEXT '[area] acres' > None of these 3 versions work. > > Mostly I get an error like: > yyparse(): Expression parser error. syntax error > msShapeGetAnnotation: Expression parser error. Failed to process text > expression: > > Any idea, what I can do. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From steve.lime at state.mn.us Tue Jun 28 13:03:09 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 28 Jun 2011 15:03:09 -0500 Subject: [mapserver-users] error: Unable to select IMAGETYPE `PNG' In-Reply-To: <823500.56906.qm@web37407.mail.mud.yahoo.com> References: <4E01EF97.4080408@geoanalytic.com> <4E01F742.6090206@geoanalytic.com> <4E01FC97.2000000@geoanalytic.com> <408676.42096.qm@web37401.mail.mud.yahoo.com> <823500.56906.qm@web37407.mail.mud.yahoo.com> Message-ID: You could create an output format named PNG to suit your needs. Not sure why that wouldn?t be there by default. I believe PNG would mean GD, 8-bit based output. AGGPNG24 should be defined by default and would provide the best quality. Steve From: Mukesh Subedee [mailto:msubedee at yahoo.com] Sent: Thursday, June 23, 2011 11:19 AM To: Lime, Steve D (DNR); mapserver mailing list Subject: Re: [mapserver-users] error: Unable to select IMAGETYPE `PNG' Thanks Steve. I had tried both, PNG8 and PNG24 but no luck. I am using MapServer 5.6.5 as I'd already installed the same version in couple of machines before and I did not get any problem. Could there be any other issue that I missed/overlooked? Mukesh ________________________________ From: "Lime, Steve D (DNR)" To: Mukesh Subedee ; mapserver mailing list Sent: Thursday, June 23, 2011 7:25:45 Subject: RE: [mapserver-users] error: Unable to select IMAGETYPE `PNG' Try PNG8 or PNG24 (assuming this is 6.0). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukesh Subedee Sent: Wednesday, June 22, 2011 6:56 PM To: mapserver mailing list Subject: [mapserver-users] error: Unable to select IMAGETYPE `PNG' Hi all, I am trying to set up a new MapServer in a Ubuntu 10.04 machine. I 've installed and configured all the necessary/required components (including libpng-1.2.18). While configuring MapServer, I have included libpng package as well and my ./configure shows: configure: checking where PNG is installed... checking for png_init_io in -lpng... yes using libpng from system libs. However, while I check ./mapserv -v, I could not find OUTPUT=PNG and am getting the error: msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `PNG'. I am not sure what went wrong during installation/configuration. I checked mail archives but could not find the exact solution (but have tried for some of the solutions found in Web). Please let me know if you have resolved this problem. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulcarlisle at comcast.net Tue Jun 28 15:58:33 2011 From: paulcarlisle at comcast.net (SixDegrees) Date: Tue, 28 Jun 2011 15:58:33 -0700 (PDT) Subject: [mapserver-users] Re: NITF and World Files In-Reply-To: <4E08BC36.7020807@pobox.com> References: <1309194861243-6521391.post@n2.nabble.com> <4E08BC36.7020807@pobox.com> Message-ID: <1309301913116-6526996.post@n2.nabble.com> Thank you very much for the VRT file suggestion. I had not heard of them before, and they solved my problem much better than my original plan, which would have required making copies of the original files. Going through a VRT lets us use the original file with the desired transforms applied with almost no overhead. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/NITF-and-World-Files-tp6521391p6526996.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andrewfa at slingshot.co.nz Tue Jun 28 21:01:02 2011 From: andrewfa at slingshot.co.nz (AndrewFarrow) Date: Tue, 28 Jun 2011 21:01:02 -0700 (PDT) Subject: [mapserver-users] Re: raster masks on mapserver In-Reply-To: <4E07E9A3.1000109@geoanalytic.com> References: <1309132966933-6518447.post@n2.nabble.com> <4E07E9A3.1000109@geoanalytic.com> Message-ID: <1309320062491-6527650.post@n2.nabble.com> Thanks Brent, What I ended up doing was using OFFSITE and also layered underneath the higher resolution aerial with a lower resolution aerial, so I am assuming any white deleted from high resolution graphic and was transparent would still have white underneath from lower resolution aerials. Kind Regards Andrew -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/raster-masks-on-mapserver-tp6518447p6527650.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mhln25 at gmail.com Wed Jun 29 00:29:30 2011 From: mhln25 at gmail.com (Mahalakshmi Narayanan) Date: Wed, 29 Jun 2011 12:59:30 +0530 Subject: [mapserver-users] PHP MapScript dynamic tooltips with 6.0 - help pls Message-ID: Greetings from Chennai ! I represent the National Informatics Centre, Department of Communications and Information Technology, Government of India. We have been using MapServer since 3.5 version days. We have developed a few web based GIS applications using MapServer and they are currently hosted in our servers. The following two websites are hosted in the public domain and a few as Intranet applications: http://tnmaps.tn.nic.in http://www.census2001.tn.nic.in We appreciate the excellent software and kudos to the community. Tooltip using imagemap had been a great feature since many of our villages are very small and labelling is ruled out. During migration from 5.2 version to 6.0, we find that the Imagemap feature is dropped. Since we have been using PHP/MapScript to provide dynamic tooltips, we are unable to achieve the same in 6.0. HTML static .map gives the desired imagemap but through PHP we are unable to generate it dynamically. We tried a few lines like below but without success.. $map2->outputformat->setOption("MIME_TYPE", "text/html; driver=imagemap"); //$map2->outputformat->setOption("DRIVER", "imagemap"); $map2->selectOutputFormat('text/html'); $map2->outputformat->set("extension", "html"); Would be grateful if anyone in the community could help us resolve this issue, pls. -- With kind regards, Mahalakshmi Narayanan From dmorissette at mapgears.com Wed Jun 29 06:38:48 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 29 Jun 2011 09:38:48 -0400 Subject: [mapserver-users] PHP MapScript dynamic tooltips with 6.0 - help pls In-Reply-To: References: Message-ID: <4E0B2AE8.6080203@mapgears.com> On 11-06-29 03:29 AM, Mahalakshmi Narayanan wrote: > > Tooltip using imagemap had been a great feature since many of our > villages are very small and labelling is ruled out. During > > migration from 5.2 version to 6.0, we find that the Imagemap feature > is dropped. Since we have been using PHP/MapScript to > > provide dynamic tooltips, we are unable to achieve the same in 6.0. > HTML static .map gives the desired imagemap but through PHP > > we are unable to generate it dynamically. We tried a few lines like > below but without success.. > There has been an alternative to HTML imagemaps in MapServer using query templates for the last few releases. The following docs might help: http://mapserver.org/output/imagemaps.html Another option could be to look at defining a templated output format. See: http://mapserver.org/output/template_output.html and http://mapserver.org/development/rfc/ms-rfc-36.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From geographika at gmail.com Wed Jun 29 10:18:40 2011 From: geographika at gmail.com (geographika) Date: Wed, 29 Jun 2011 19:18:40 +0200 Subject: [mapserver-users] Dynamic CLASS titles Message-ID: <4E0B5E70.8070900@gmail.com> Hi list, I'm fairly sure I read that it is not possible to use expressions to define a class name or title, so the following is not possible: CLASS NAME '2' TITLE '[Field_Value]' EXPRESSION '2' STYLE COLOR 51 153 25 WIDTH 2 END END Has anyone any workarounds, or Python based mapscript samples they've used to generate legends based on dynamic classes for a layer? Regards, Seth -- web:http://geographika.co.uk twitter: @geographika -------------- next part -------------- An HTML attachment was scrubbed... URL: From tilo.keller at freenet.de Wed Jun 29 11:26:15 2011 From: tilo.keller at freenet.de (Tipatino) Date: Wed, 29 Jun 2011 11:26:15 -0700 (PDT) Subject: [mapserver-users] Query-wrong results in IE8 if zoomsize is not 100% Message-ID: <1309371975957-6530144.post@n2.nabble.com> Hi folks, a query at a point-shapefile gives unexpected results such as "msQueryByPoint(): Search returned no results. No matching record(s) found" if the zoom size of the Internet Explorer (8) is different then 100%. It seems like the coordinates you hit are different to the ones the MapServer is processing. This does not occur with Browsers like firefox. Any possibilities to avoid that ? Sorry if this is posted before - I just didn't find it. I use version 5.6.1 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Query-wrong-results-in-IE8-if-zoomsize-is-not-100-tp6530144p6530144.html Sent from the Mapserver - User mailing list archive at Nabble.com. From david.fawcett at state.mn.us Wed Jun 29 11:28:01 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 29 Jun 2011 13:28:01 -0500 Subject: [mapserver-users] Query-wrong results in IE8 if zoomsize is not 100% In-Reply-To: <1309371975957-6530144.post@n2.nabble.com> References: <1309371975957-6530144.post@n2.nabble.com> Message-ID: This sounds like a client issue, not a MapServer issue. What client are you using? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tipatino Sent: Wednesday, June 29, 2011 1:26 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Query-wrong results in IE8 if zoomsize is not 100% Hi folks, a query at a point-shapefile gives unexpected results such as "msQueryByPoint(): Search returned no results. No matching record(s) found" if the zoom size of the Internet Explorer (8) is different then 100%. It seems like the coordinates you hit are different to the ones the MapServer is processing. This does not occur with Browsers like firefox. Any possibilities to avoid that ? Sorry if this is posted before - I just didn't find it. I use version 5.6.1 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Query-wrong-results-in-IE8-if-zoomsize-is-not-100-tp6530144p6530144.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 joanne.mcgraw at SYMPATICO.CA Wed Jun 29 11:42:16 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 29 Jun 2011 11:42:16 -0700 (PDT) Subject: [mapserver-users] EPSG:42304 -> EPSG:3978? or 3979? Message-ID: <1309372936219-6530222.post@n2.nabble.com> Hello all, I know this isn't really a MapServer question, but I know that some of the people involved in this stuff read this forum and don't know where else to post it. I'm trying to understand if the old, unofficial, NRCan EPSG:42304 code (often used in Canadian MapServer installations) translates to the new official EPSG:3978 or EPSG:3979 code. But, I can't figure out the answer and am hoping that someone who reads this can straighten me out. I know little about projections at this level and apologize if I'm using the wrong terminology or am passing along mis-information in asking for clarification. There was an custom EPSG code that many, in Canada, used in MapServer installations, EPSG:42304. From what I understood, it was a projection defined by Natural Resources Canada and others adopted it as a kind of unofficial "standard". The only definition of that projection I've been able to find, in terms of how to define it in a PROJ4 file (which is why I'm looking for it) is at: http://spatialreference.org/ref/sr-org/6754/, where its parameters are specified as: +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs I was led to believe this projection was submitted for inclusion as an official EPSG code and that it had been approved. Now, there's two official EPSG codes that I've found that seem to be similar. They are EPSG:3978 and EPSG:3979. Using the EPSG Registry's (http://www.epsg-registry.org/) "retrieve by code" tool, I've looked at the definitions of 3978 and 3979 and can find the only difference between the two to be their Geodetic Datum (one being Canada and one being North America) which ultimately only seems to be different with respect to their "Area of Use". When I look at the PROJ.4 site's EPSG list (http://svn.osgeo.org/metacrs/proj/trunk/proj/nad/epsg), the entries for the two are the exact same, which suggests my interpretation of the "Area of Use" being the only difference might be correct. # NAD83 / Canada Atlas Lambert <3978> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <> # NAD83(CSRS) / Canada Atlas Lambert <3979> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs <> Unfortunately, neither of these parameter lists are exactly the same as the 42304 definition from above (these have "+towgs84=0,0,.." and the 42304 one has "+datum=NAD83"...for all I know, those two parameters are defining the same thing). So, my question is: Are either of these official EPSG codes actually the same as that unofficial 42304 code? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/EPSG-42304-EPSG-3978-or-3979-tp6530222p6530222.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tilo.keller at freenet.de Wed Jun 29 12:11:40 2011 From: tilo.keller at freenet.de (Tipatino) Date: Wed, 29 Jun 2011 12:11:40 -0700 (PDT) Subject: [mapserver-users] RE: Query-wrong results in IE8 if zoomsize is not 100% In-Reply-To: References: <1309371975957-6530144.post@n2.nabble.com> Message-ID: <1309374700599-6530337.post@n2.nabble.com> Hi David thanks for the message, its just within a simple html page. However, the same things happens for example with the airports in the well known ITASCA example (http://maps.dnr.state.mn.us/cgi-bin/mapserv54?img.x=332&img.y=130&mode=browse&layer=airports&zoomdir=0&zoomsize=2&imgxy=300.0+300.0&imgext=388201.781900+5200193.595290+500990.486520+5312982.299910&map=%2Fusr%2Flocal%2Fwww%2Fdocs_maps%2Fmapserver_demos%2Fworkshop-5.4%2Fitasca.map&root=%2Fmapserver_demos%2Fworkshop-5.4&savequery=true&program=%2Fcgi-bin%2Fmapserv54&map_web=+TEMPLATE+itasca_basic.html) I would be curious to know if you can reproduce it ... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Query-wrong-results-in-IE8-if-zoomsize-is-not-100-tp6530144p6530337.html Sent from the Mapserver - User mailing list archive at Nabble.com. From david.fawcett at state.mn.us Wed Jun 29 12:49:17 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 29 Jun 2011 14:49:17 -0500 Subject: [mapserver-users] RE: Query-wrong results in IE8 if zoomsize is not 100% In-Reply-To: <1309374700599-6530337.post@n2.nabble.com> References: <1309371975957-6530144.post@n2.nabble.com> <1309374700599-6530337.post@n2.nabble.com> Message-ID: I can reproduce it in both IE8 and FF3. Not sure what the issue is. I switched to the townships layer to make sure that it wasn't a tolerance issue in querying a point feature. Obviously, they guy who built this page knows nothing about MapServer ; / David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tipatino Sent: Wednesday, June 29, 2011 2:12 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: Query-wrong results in IE8 if zoomsize is not 100% Hi David thanks for the message, its just within a simple html page. However, the same things happens for example with the airports in the well known ITASCA example (http://maps.dnr.state.mn.us/cgi-bin/mapserv54?img.x=332&img.y=130&mode=browse&layer=airports&zoomdir=0&zoomsize=2&imgxy=300.0+300.0&imgext=388201.781900+5200193.595290+500990.486520+5312982.299910&map=%2Fusr%2Flocal%2Fwww%2Fdocs_maps%2Fmapserver_demos%2Fworkshop-5.4%2Fitasca.map&root=%2Fmapserver_demos%2Fworkshop-5.4&savequery=true&program=%2Fcgi-bin%2Fmapserv54&map_web=+TEMPLATE+itasca_basic.html) I would be curious to know if you can reproduce it ... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Query-wrong-results-in-IE8-if-zoomsize-is-not-100-tp6530144p6530337.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 karsten at terragis.net Wed Jun 29 13:06:29 2011 From: karsten at terragis.net (karsten vennemann) Date: Wed, 29 Jun 2011 22:06:29 +0200 Subject: [mapserver-users] limit GetLegendGraphic to feature types (classes) in dynamic layer Message-ID: Hi Folks, I have set up a dynamic WMS layer using MapServer variables (and a PostGIS layer). That is working well. Depending on user input on the web map I would like not only to show only the types of features in the dynamic layer on the map (that part is working already) but also in the legend (i.e. legend icons limited to the current feature class). Is there a way to limit the wms GetLegendGraphic request to specific feature type classes (define din map file) ? Specifically is the a way without using SLDs , something even simpler like a filter ? Thanks Karsten Karsten Vennemann Principal Terra GIS LTD Seattle, WA USA www.terragis.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Jun 29 13:34:23 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 29 Jun 2011 17:34:23 -0300 Subject: [mapserver-users] EPSG:42304 -> EPSG:3978? or 3979? In-Reply-To: <1309372936219-6530222.post@n2.nabble.com> References: <1309372936219-6530222.post@n2.nabble.com> Message-ID: <4E0B8C4F.9050402@gatewaygeomatics.com> Hello Joanne, Yes, in fact it was me who submitted the custom NRCan EPSG:42304 Lambert Conformal Conic projection to the OGP Geodetic Subcommittee. I submitted it around January of 2009, and it was accepted around June of 2009. They informed me that they added EPSG:3978 and EPSG:3979 accordingly. Since then I have repeatedly asked NRCan to update their Atlas services for these accepted EPSG codes, to no success. However I have noticed that these new EPSG codes are available in most software now, and that make me very happy :) Hopefully this little info help you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-06-29 3:42 PM, myOpenLayersUName wrote: > Hello all, > I know this isn't really a MapServer question, but I know that some of the > people involved in this stuff read this forum and don't know where else to > post it. > > I'm trying to understand if the old, unofficial, NRCan EPSG:42304 code > (often used in Canadian MapServer installations) translates to the new > official EPSG:3978 or EPSG:3979 code. But, I can't figure out the answer and > am hoping that someone who reads this can straighten me out. I know little > about projections at this level and apologize if I'm using the wrong > terminology or am passing along mis-information in asking for clarification. > > There was an custom EPSG code that many, in Canada, used in MapServer > installations, EPSG:42304. From what I understood, it was a projection > defined by Natural Resources Canada and others adopted it as a kind of > unofficial "standard". The only definition of that projection I've been able > to find, in terms of how to define it in a PROJ4 file (which is why I'm > looking for it) is at: http://spatialreference.org/ref/sr-org/6754/, where > its parameters are specified as: > > +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 > +ellps=GRS80 +datum=NAD83 +units=m +no_defs > > I was led to believe this projection was submitted for inclusion as an > official EPSG code and that it had been approved. Now, there's two official > EPSG codes that I've found that seem to be similar. They are EPSG:3978 and > EPSG:3979. Using the EPSG Registry's (http://www.epsg-registry.org/) > "retrieve by code" tool, I've looked at the definitions of 3978 and 3979 and > can find the only difference between the two to be their Geodetic Datum (one > being Canada and one being North America) which ultimately only seems to be > different with respect to their "Area of Use". > > When I look at the PROJ.4 site's EPSG list > (http://svn.osgeo.org/metacrs/proj/trunk/proj/nad/epsg), the entries for the > two are the exact same, which suggests my interpretation of the "Area of > Use" being the only difference might be correct. > > # NAD83 / Canada Atlas Lambert > <3978> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 > +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs<> > # NAD83(CSRS) / Canada Atlas Lambert > <3979> +proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 > +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs<> > > > Unfortunately, neither of these parameter lists are exactly the same as the > 42304 definition from above (these have "+towgs84=0,0,.." and the 42304 one > has "+datum=NAD83"...for all I know, those two parameters are defining the > same thing). > > > So, my question is: Are either of these official EPSG codes actually the > same as that unofficial 42304 code? > > Cheers, > jtm From joanne.mcgraw at SYMPATICO.CA Wed Jun 29 14:54:20 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 29 Jun 2011 14:54:20 -0700 (PDT) Subject: [mapserver-users] Re: EPSG:42304 -> EPSG:3978? or 3979? In-Reply-To: <4E0B8C4F.9050402@gatewaygeomatics.com> References: <1309372936219-6530222.post@n2.nabble.com> <4E0B8C4F.9050402@gatewaygeomatics.com> Message-ID: <1309384460012-6530859.post@n2.nabble.com> Oh Jeff, It seems I'm always saying "no" to that question from you and then finding out later that I should have said "yes" but didn't realize it. So, first of all, thank you for continuing to respond to my questions even when I'm repeatedly too slow to follow something that's readily apparent to others. Unfortunately, in answer to your question this time, I'm going to go with "sort of." You have confirmed my understanding of what happened, but I'm still not sure which of these two new EPSG codes I should be picking to update my own application and get away from using 42304. Can I just change the EPSG code to one or the other of the new ones (or either, since they seem to be the same as far as I can tell)? Or, do I have to reproject the data from the old 42304 to one of them before I can do this? When I compare the PROJ4 definitions of the new and old, they aren't the same and that suggests I need to reproject but someone told me that I should not have to do that... that I should be able to just change the code in my Mapfiles and OpenLayers WMS definitions. How do I proceed? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/EPSG-42304-EPSG-3978-or-3979-tp6530222p6530859.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Wed Jun 29 18:00:08 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 29 Jun 2011 21:00:08 -0400 Subject: [mapserver-users] Re: EPSG:42304 -> EPSG:3978? or 3979? In-Reply-To: <1309384460012-6530859.post@n2.nabble.com> References: <1309372936219-6530222.post@n2.nabble.com> <4E0B8C4F.9050402@gatewaygeomatics.com> <1309384460012-6530859.post@n2.nabble.com> Message-ID: <4E0BCA98.1060309@pobox.com> On 11-06-29 05:54 PM, myOpenLayersUName wrote: > Oh Jeff, > > It seems I'm always saying "no" to that question from you and then finding > out later that I should have said "yes" but didn't realize it. So, first of > all, thank you for continuing to respond to my questions even when I'm > repeatedly too slow to follow something that's readily apparent to others. > > Unfortunately, in answer to your question this time, I'm going to go with > "sort of." You have confirmed my understanding of what happened, but I'm > still not sure which of these two new EPSG codes I should be picking to > update my own application and get away from using 42304. > > Can I just change the EPSG code to one or the other of the new ones (or > either, since they seem to be the same as far as I can tell)? Or, do I have > to reproject the data from the old 42304 to one of them before I can do > this? When I compare the PROJ4 definitions of the new and old, they aren't > the same and that suggests I need to reproject but someone told me that I > should not have to do that... that I should be able to just change the code > in my Mapfiles and OpenLayers WMS definitions. Joanne, The difference between 3978 and 3979 is that 3978 is NAD83 while 3979 is NAD83 (Canadian Spatial Reference System). I don't know much about CSRS but I assume it is a refined NAD83 - roughly similar to HPGN in the USA. Most software in the free software world won't do anything special with NAD83 (CSRS) and will not likely even know enough to treat it as NAD83. So my suggestion is to stick with 3978 unless you really really know you want to label the data as NAD83 (CSRS) and are willing to suffer incompatibilities due to it. 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 ian.walberg at airborne.aero Wed Jun 29 19:13:50 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 29 Jun 2011 22:13:50 -0400 Subject: [mapserver-users] Plotting points as a line from sqlite database In-Reply-To: <4E0BCA98.1060309@pobox.com> References: <1309372936219-6530222.post@n2.nabble.com><4E0B8C4F.9050402@gatewaygeomatics.com><1309384460012-6530859.post@n2.nabble.com> <4E0BCA98.1060309@pobox.com> Message-ID: I hope this isn't too stupid a question. Would like to display a list of positions in an sqlite database as a line, to show the flight path of an aircraft. The data is in the db as Lat, Long and point (lat, long) We can display the positions as individual dots but not as a line, I fear the problem is that the data is a point. As the data is being accumulated we would prefer not to create a new line in the database each time if possible. Any suggestions to what options we have would be appreciated. Thanks Ian From jmckenna at gatewaygeomatics.com Wed Jun 29 19:38:06 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 29 Jun 2011 23:38:06 -0300 Subject: [mapserver-users] Re: EPSG:42304 -> EPSG:3978? or 3979? In-Reply-To: <1309384460012-6530859.post@n2.nabble.com> References: <1309372936219-6530222.post@n2.nabble.com> <4E0B8C4F.9050402@gatewaygeomatics.com> <1309384460012-6530859.post@n2.nabble.com> Message-ID: <4E0BE18E.3010102@gatewaygeomatics.com> Hello Joanne, In my case I always use EPSG:3978 now for any of my applications which previously used the custom 42304...no change to the data is needed. PS. glad to hear that you are using it...I wish the Atlas maintainers would also as well. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-06-29 6:54 PM, myOpenLayersUName wrote: > Oh Jeff, > > It seems I'm always saying "no" to that question from you and then finding > out later that I should have said "yes" but didn't realize it. So, first of > all, thank you for continuing to respond to my questions even when I'm > repeatedly too slow to follow something that's readily apparent to others. > > Unfortunately, in answer to your question this time, I'm going to go with > "sort of." You have confirmed my understanding of what happened, but I'm > still not sure which of these two new EPSG codes I should be picking to > update my own application and get away from using 42304. > > Can I just change the EPSG code to one or the other of the new ones (or > either, since they seem to be the same as far as I can tell)? Or, do I have > to reproject the data from the old 42304 to one of them before I can do > this? When I compare the PROJ4 definitions of the new and old, they aren't > the same and that suggests I need to reproject but someone told me that I > should not have to do that... that I should be able to just change the code > in my Mapfiles and OpenLayers WMS definitions. > > How do I proceed? From woodbri at swoodbridge.com Wed Jun 29 20:48:32 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 29 Jun 2011 23:48:32 -0400 Subject: [mapserver-users] Plotting points as a line from sqlite database In-Reply-To: References: <1309372936219-6530222.post@n2.nabble.com><4E0B8C4F.9050402@gatewaygeomatics.com><1309384460012-6530859.post@n2.nabble.com> <4E0BCA98.1060309@pobox.com> Message-ID: <4E0BF210.8050501@swoodbridge.com> On 6/29/2011 10:13 PM, Ian Walberg wrote: > I hope this isn't too stupid a question. > > Would like to display a list of positions in an sqlite database as a > line, to show the flight path of an aircraft. The data is in the db as > Lat, Long and point (lat, long) > > We can display the positions as individual dots but not as a line, I > fear the problem is that the data is a point. > > As the data is being accumulated we would prefer not to create a new > line in the database each time if possible. > > Any suggestions to what options we have would be appreciated. Hi Ian, In postgis there is an aggregrate function makeline() that you can feed points to. I think there may be an equivalent function in SpatiaLite. In sqlite, you might be able to use a group_concat() something like: select 'LINESTRING('|| group_concat(lat||' '||long, ',') ||')' from points; But I think the issue will be that this is not a format that mapserver understands. You might be able to access this via GDAL/OGR but I'm not sure on that. -Steve W From steve.lime at state.mn.us Wed Jun 29 21:44:41 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 29 Jun 2011 23:44:41 -0500 Subject: [mapserver-users] PHP MapScript dynamic tooltips with 6.0 - help pls In-Reply-To: <4E0B2AE8.6080203@mapgears.com> References: , <4E0B2AE8.6080203@mapgears.com> Message-ID: The imagemap code is still in the 6.0 distribution and I would assume should still work. There may not be a default output format for that driver though. Have you tried defining one? Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette [dmorissette at mapgears.com] Sent: Wednesday, June 29, 2011 8:38 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP MapScript dynamic tooltips with 6.0 - help pls On 11-06-29 03:29 AM, Mahalakshmi Narayanan wrote: > > Tooltip using imagemap had been a great feature since many of our > villages are very small and labelling is ruled out. During > > migration from 5.2 version to 6.0, we find that the Imagemap feature > is dropped. Since we have been using PHP/MapScript to > > provide dynamic tooltips, we are unable to achieve the same in 6.0. > HTML static .map gives the desired imagemap but through PHP > > we are unable to generate it dynamically. We tried a few lines like > below but without success.. > There has been an alternative to HTML imagemaps in MapServer using query templates for the last few releases. The following docs might help: http://mapserver.org/output/imagemaps.html Another option could be to look at defining a templated output format. See: http://mapserver.org/output/template_output.html and http://mapserver.org/development/rfc/ms-rfc-36.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From tilo.keller at freenet.de Thu Jun 30 00:22:52 2011 From: tilo.keller at freenet.de (Tipatino) Date: Thu, 30 Jun 2011 00:22:52 -0700 (PDT) Subject: [mapserver-users] RE: Query-wrong results in IE8 if zoomsize is not 100% In-Reply-To: References: <1309371975957-6530144.post@n2.nabble.com> <1309374700599-6530337.post@n2.nabble.com> Message-ID: <1309418572435-6532131.post@n2.nabble.com> There are no such problems with FF4 and it is definetly not a tolerance problem since it appears at both higher and lower zoom size. What's wrong with the page ? I think its a good example to illustrate the basic concepts... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Query-wrong-results-in-IE8-if-zoomsize-is-not-100-tp6530144p6532131.html Sent from the Mapserver - User mailing list archive at Nabble.com. From david.fawcett at state.mn.us Thu Jun 30 06:44:09 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 30 Jun 2011 08:44:09 -0500 Subject: [mapserver-users] Plotting points as a line from sqlite database In-Reply-To: <4E0BF210.8050501@swoodbridge.com> References: <1309372936219-6530222.post@n2.nabble.com><4E0B8C4F.9050402@gatewaygeomatics.com><1309384460012-6530859.post@n2.nabble.com> <4E0BCA98.1060309@pobox.com> <4E0BF210.8050501@swoodbridge.com> Message-ID: ST_MAKELINE() does exist in recent versions of Spatialite. It doesn't appear to have made it in to the docs, but it can be seen in this example from the cookbook. http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/pp-adjacent.html Another example is in this thread from the Spatialite list: http://groups.google.com/group/spatialite-users/browse_thread/thread/0020f8e907ae9226 You will likely need recent versions of both Spatialite and OGR to make it work. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, June 29, 2011 10:49 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Plotting points as a line from sqlite database On 6/29/2011 10:13 PM, Ian Walberg wrote: > I hope this isn't too stupid a question. > > Would like to display a list of positions in an sqlite database as a > line, to show the flight path of an aircraft. The data is in the db as > Lat, Long and point (lat, long) > > We can display the positions as individual dots but not as a line, I > fear the problem is that the data is a point. > > As the data is being accumulated we would prefer not to create a new > line in the database each time if possible. > > Any suggestions to what options we have would be appreciated. Hi Ian, In postgis there is an aggregrate function makeline() that you can feed points to. I think there may be an equivalent function in SpatiaLite. In sqlite, you might be able to use a group_concat() something like: select 'LINESTRING('|| group_concat(lat||' '||long, ',') ||')' from points; But I think the issue will be that this is not a format that mapserver understands. You might be able to access this via GDAL/OGR but I'm not sure on that. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mark at spatialcloud.com Thu Jun 30 06:59:02 2011 From: mark at spatialcloud.com (Mark Korver) Date: Thu, 30 Jun 2011 08:59:02 -0500 Subject: [mapserver-users] Plotting points as a line from sqlite database In-Reply-To: References: <1309372936219-6530222.post@n2.nabble.com> <4E0B8C4F.9050402@gatewaygeomatics.com> <1309384460012-6530859.post@n2.nabble.com> <4E0BCA98.1060309@pobox.com> Message-ID: Assuming you are using something like Openlayers as the client you could use json to return the data pts formatted as a linestring. This would give you better options to show attribute data as a popup etc. like in the example http://openlayers.org/dev/examples/vector-formats.html On Wed, Jun 29, 2011 at 9:13 PM, Ian Walberg wrote: > I hope this isn't too stupid a question. > > Would like to display a list of positions in an sqlite database as a > line, to show the flight path of an aircraft. The data is in the db as > Lat, Long and point (lat, long) > > We can display the positions as individual dots but not as a line, I > fear the problem is that the data is a point. > > As the data is being accumulated we would prefer not to create a new > line in the database each time if possible. > > Any suggestions to what options we have would be appreciated. > > Thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From joanne.mcgraw at SYMPATICO.CA Thu Jun 30 07:20:13 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 30 Jun 2011 07:20:13 -0700 (PDT) Subject: [mapserver-users] Re: EPSG:42304 -> EPSG:3978? or 3979? In-Reply-To: <4E0BE18E.3010102@gatewaygeomatics.com> References: <1309372936219-6530222.post@n2.nabble.com> <4E0B8C4F.9050402@gatewaygeomatics.com> <1309384460012-6530859.post@n2.nabble.com> <4E0BE18E.3010102@gatewaygeomatics.com> Message-ID: <1309443613063-6533451.post@n2.nabble.com> I'll ignore the questions and replies that have hijacked the thread and say a big thank you to both Frank and Jeff. I'll start looking into specifically what's required to switch our apps from EPSG:42304 to EPSG:3978 (now that I know which one it should be). Thanks to you both! And, Frank...nice to hear from you. Hope all is well! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/EPSG-42304-EPSG-3978-or-3979-tp6530222p6533451.html Sent from the Mapserver - User mailing list archive at Nabble.com. From to.tonton at gmail.com Thu Jun 30 08:38:49 2011 From: to.tonton at gmail.com (Tonton) Date: Thu, 30 Jun 2011 17:38:49 +0200 Subject: [mapserver-users] mapserver SLD element font style : underline Message-ID: hello i've the same trouble with halo and radius radius break halo definition but my question is about to underline font in label with SLD does underline should work ? i try in mapserver and on udig it is the same unworking . regards Tonton /usr/lib/cgi-bin/mapserv -v MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From to.tonton at gmail.com Thu Jun 30 08:48:05 2011 From: to.tonton at gmail.com (Tonton) Date: Thu, 30 Jun 2011 17:48:05 +0200 Subject: [mapserver-users] mapserver SLD Scale Message-ID: hello i'd like to find sample for min/maxscale in a sld synthax and where to write it in the file for show label of point in different scale that seen label or together for first ;) regards tonton -------------- next part -------------- An HTML attachment was scrubbed... URL: From ChiefDan at gmail.com Thu Jun 30 11:42:16 2011 From: ChiefDan at gmail.com (ChiefDan) Date: Thu, 30 Jun 2011 11:42:16 -0700 (PDT) Subject: [mapserver-users] Mapserver 5.6.6 and Python mapscript Message-ID: <1309459336021-6534460.post@n2.nabble.com> I am trying to get the python mapscript up and running on an Ubuntu box from a mapserver tar file. I've gone through the README and followed the steps, although I am not sure what "appropriate changes" I need to make in the test.map file. I am running into 2 issues when running the tests: test saving query to a file ... ERROR set image of new symbolObj ... Segmentation fault I successfully compiled mapserver using the following config settings: --enable-runpath --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-proj=/usr/local --with-php=/usr/include/php5 --with-gd=/usr/local --with-freetype=/usr/local --with-png=/usr/local --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wmsclient --with-postgis=/usr/lib/postgresql/8.3/bin/pg_config Any pointers would be appreciated. Dan -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-5-6-6-and-Python-mapscript-tp6534460p6534460.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jachym.cepicky at gmail.com Thu Jun 30 13:12:48 2011 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Thu, 30 Jun 2011 22:12:48 +0200 Subject: [mapserver-users] Mapserver 5.6.6 and Python mapscript In-Reply-To: <1309459336021-6534460.post@n2.nabble.com> References: <1309459336021-6534460.post@n2.nabble.com> Message-ID: Any reason not to use ubuntugis repository? https://wiki.ubuntu.com/UbuntuGIS j 2011/6/30 ChiefDan : > I am trying to get the python mapscript up and running on an Ubuntu box from > a mapserver tar file. > I've gone through the README and followed the steps, although I am not sure > what "appropriate changes" I need to make in the test.map file. I am running > into 2 issues when running the tests: > > test saving query to a file ... ERROR > set image of new symbolObj ... Segmentation fault > > > I successfully compiled mapserver using the following config settings: > --enable-runpath --with-gdal=/usr/local/bin/gdal-config > --with-ogr=/usr/local/bin/gdal-config --with-proj=/usr/local > --with-php=/usr/include/php5 --with-gd=/usr/local --with-freetype=/usr/local > --with-png=/usr/local --with-jpeg=/usr/local --with-libiconv=/usr/local > --with-wmsclient --with-postgis=/usr/lib/postgresql/8.3/bin/pg_config > > > Any pointers would be appreciated. > > Dan > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-5-6-6-and-Python-mapscript-tp6534460p6534460.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 > -- Jachym Cepicky e-mail: jachym.cepicky gmail com URL: http://les-ejk.cz GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp From arnd.wippermann at web.de Thu Jun 30 15:26:29 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri, 1 Jul 2011 00:26:29 +0200 Subject: AW: [mapserver-users] mapserver SLD Scale In-Reply-To: References: Message-ID: <3A5368C11EE14BE494DB7141F9F1063F@pcawh2> hi, here an online example for ... ... of a polygonlayer. http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_Demo/MapServe r_SLD_Demo.asp?SLDsrcIdx=37 &mapservVersion=6.0.0&SLDsrcSet=gis.ibbeck.de Arnd _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Tonton Gesendet: Donnerstag, 30. Juni 2011 17:48 An: mapserver-users Betreff: [mapserver-users] mapserver SLD Scale hello i'd like to find sample for min/maxscale in a sld synthax and where to write it in the file for show label of point in different scale that seen label or together for first ;) regards tonton -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Wed Jun 29 10:15:09 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed, 29 Jun 2011 19:15:09 +0200 Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers In-Reply-To: <1309334180.76765.YahooMailNeo@web65411.mail.ac4.yahoo.com> References: <1309145793.97438.YahooMailNeo@web65407.mail.ac4.yahoo.com> <7D275BCF3E4441F7A9FE9BB927E975F0@pcawh2> <1309228343.92303.YahooMailNeo@web65409.mail.ac4.yahoo.com> <378B6F35D5FF48699D5F5F4BF499F9A8@pcawh2> <1309334180.76765.YahooMailNeo@web65411.mail.ac4.yahoo.com> Message-ID: <59C873204EDD4BD082C271EDD80E9735@pcawh2> Hi Ken, Quote : "Interestingly, if I use the 'mapserv' executable directly in the browser instead of using OpenLayers API, the image also renders correctly." There could be no difference (OpenLayers.Layer.WMS or .MapServer), because with OpenLayers you only create an url for an image tag (). The response have to be the same as from the browser directly. The difference could only be a result from different requests or the same request to different servers. Arnd _____ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Mittwoch, 29. Juni 2011 09:56 An: Arnd Wippermann Cc: users at openlayers.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, I checked the images properties of the tile images using ImageMagick. tile_topleft_remote.png has image type "Palette" (8-bit) tile_topleft_local.png has image type "TrueColor" (32-bit) The results I got seem to correlate with your findings. Indeed, it appears that the image rendering between my local pc and the server are different. The map files are exactly same since I sync them in both computers. The MapServer versions, however, are different. Here's what I got: LOCAL: MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE REMOTE: MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The MapServer executable in the remote server is an older version (5.6.1) than the one in my pc (6.0.0). I edited the map files and images in my local pc, then synced them to the server, so there may be an incompatibility. I checked the Mapserver Migration Guide (http://mapserver.org/de/MIGRATION_GUIDE.html) and my guess was that the default OUTPUTFORMAT specifications of both versions could be different. I did not specify an explicit OUTPUTFORMAT in my map file. I created another test. This time I explicitly defined the OUTPUTFORMAT with the following lines added to the map file in the remote server: OUTPUTFORMAT NAME jpeg DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END The result was that the output image generated by the remote server rendered in TrueColor, similar to the output image in my local pc. Problem appears to be fixed. My guess right now is that the IMAGEMODE parameter above was somehow set to PC256 (i.e. 8-bit color palette) by default. Interestingly, if I use the 'mapserv' executable directly in the browser instead of using OpenLayers API, the image also renders correctly. EXAMPLE: http://remotehost/cgi-bin/mapserv?map=/opt/maps/sandbox/mapserver_openlayers _if/sample.map&mode=map Above 'sample.map' did not have the OUTPUTFORMAT object explicitly defined. In another test I ran using the original 'sample.map' (i.e. no OUTPUTFORMAT object), I edited the OpenLayers code in the remote server: //sample.html FROM: 17 layer = new OpenLayers.Layer.MapServer("World Map", TO: 17 layer = new OpenLayers.Layer.WMS("World Map", I used the generic 'WMS' layer instead of the 'MapServer' layer. And the result was that the output image rendered correctly. I am not yet sure why. I might need to run additional tests to confirm my findings. Thanks for your help in pointing out the discrepancies in the images and in MapServer. :) Ken _____ From: Arnd Wippermann To: 'kensei3000' Cc: users at openlayers.org Sent: Wednesday, June 29, 2011 2:28 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers use some image viewer to get information of your images. tile_topleft_remote.png is a 8bit image (256 color image), where only 45 colors used. tile_topleft_local.png is a 24bit image (16,7 Mill. colors), where 13274 colors used. The requests ask for map_imagetype=png. So it seems, that your mapfiles are different, because the response of the servers delivers a different image for the same imagetype. Or do you use different MapServer versions? The problem has to be an issue with MapServer and not with OpenLayers. Arnd _____ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Dienstag, 28. Juni 2011 04:32 An: Arnd Wippermann Cc: users at openlayers.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, Thanks a lot for the tip. I copied the image url of the top-left most tile for both local pc and remote server tests. Here is what I got: Local: http://localhost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_ope nlayers_if%2Fsample.map&layers=sample_raster&mode=map&map_imagetype=png&mape xt=-90+0+0+90&imgext=-90+0+0+90&map_size=256+256&imgx=128&imgy=128&imgxy=256 +256 Remote: http://remotehost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_op enlayers_if%2Fsample.map&layers=sample_raster&mode=map&map_imagetype=png&map ext=-180+-90+0+90&imgext=-180+-90+0+90&map_size=256+256&imgx=128&imgy=128&im gxy=256+256 The only significant difference of the two urls appear to be the 'mapext' and 'imgext' parameters. When I checked the resulting images after inputting the urls in the browser, I noticed that the tile images had different sizes and positions. I believe this was due to the said parameters. I tried changing the 'mapext' and 'imagext' parameters of the server test url to match that of the local test url, and indeed the size and position of the remote server tile image changed. However, I am still unable to figure out what causes the color distortion or "downsampling" of the image in the remote server. For further reference, I've attached the tile images I got using the above urls. Here is the openlayers code I used. It is the same for both local and remote server tests except for the host in line 18. //sample.html 1 2 3 10 11 25 26 27
28 29 And below is the common .map file I created with the help of the Quantum GIS Mapserver Export tool. The raster image has an associated World file (.wld) for georeferencing. 1 # Map file created from QGIS project file /var/maps/sandbox/mapserver_openlayers_if/sample.qgs 2 # Edit this file to customize for your map interface 3 # (Created with PyQgis MapServer Export plugin) 4 MAP 5 NAME "QGIS-MAP" 6 # Map image size 7 SIZE 8180 4930 8 UNITS meters 9 10 EXTENT -86.515507 -50.290979 88.076495 48.225271 11 PROJECTION 12 'proj=longlat' 13 'ellps=WGS84' 14 'towgs84=0,0,0,0,0,0,0' 15 'no_defs' 16 END 17 18 # Background color for the map canvas -- change as desired 19 IMAGECOLOR 255 255 255 20 IMAGEQUALITY 95 21 IMAGETYPE jpeg 22 23 # Legend 24 LEGEND 25 IMAGECOLOR 255 255 255 26 STATUS ON 27 KEYSIZE 18 12 28 LABEL 29 TYPE BITMAP 30 SIZE MEDIUM 31 COLOR 0 0 89 32 END 33 END 34 35 # Web interface definition. Only the template parameter 36 # is required to display a map. See MapServer documentation 37 WEB 38 # Set IMAGEPATH to the path where MapServer should 39 # write its output. 40 IMAGEPATH '/tmp/' 41 42 # Set IMAGEURL to the url that points to IMAGEPATH 43 # as defined in your web server configuration 44 IMAGEURL '/tmp/' 45 46 #Scale range at which web interface will operate 47 # Template and header/footer settings 48 # Only the template parameter is required to display a map. See MapServer documentation 49 TEMPLATE 'fooOnlyForWMSGetFeatureInfo' 50 END 51 52 LAYER 53 NAME 'sample_raster' 54 TYPE RASTER 55 DUMP true 56 TEMPLATE fooOnlyForWMSGetFeatureInfo 57 EXTENT -86.515507 -50.290979 88.076495 48.225271 58 DATA 'sec_field.jpg' 59 STATUS DEFAULT 60 TRANSPARENCY 100 61 PROJECTION 62 'proj=longlat' 63 'ellps=WGS84' 64 'towgs84=0,0,0,0,0,0,0' 65 'no_defs' 66 END 67 END 68 69 END Hope you could provide further assistance. Ken _____ From: Arnd Wippermann To: 'kensei3000' Cc: users at openlayers.org Sent: Tuesday, June 28, 2011 1:53 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers hi, if you do a right click on a tile to get the context menu, you should be able to copy the url (if the tiles of your server is the most top of the visible layers). Compare the different urls. If you load them in your browser you should get a response for a single tile from your server. Perhaps that gives you an idea, what goes wrong. Arnd _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von kensei3000 Gesendet: Montag, 27. Juni 2011 05:37 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi! I am trying to use MapServer as a WMS layer in Openlayers. I setup the MapServer in our server machine, using my own PC as the test client. I created a simple .map file in our server that contains one raster image. Using the mapserver tool 'mapserv' in a URL string, I was able to load the output map with full resolution correctly in a browser (Google Chrome). However, when I tried to load the map using a simple Openlayers script (HMTL) which I created on our server (accessible via browser), the map image appeared to have a much lower-resolution (i.e. 256-colors only) and was pixelized. Also, I could see white lines representing the tile edges of the map. I did another test. This time, I installed MapServer in my own PC. I created a .map file similar to the one I used in our server, with the same raster image. I created a similar Openlayers script (HTML) in my own PC, but this time it would call the MapServer from my own PC. I loaded the script using a browser and the image displayed correctly with full resolution. Does anyone have an idea what the problem could be? I would appreciate any help in this matter. Thanks in advance! :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Thu Jun 30 15:41:20 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri, 1 Jul 2011 00:41:20 +0200 Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers In-Reply-To: <1309402669.5661.YahooMailNeo@web65408.mail.ac4.yahoo.com> References: <1309145793.97438.YahooMailNeo@web65407.mail.ac4.yahoo.com> <7D275BCF3E4441F7A9FE9BB927E975F0@pcawh2> <1309228343.92303.YahooMailNeo@web65409.mail.ac4.yahoo.com> <378B6F35D5FF48699D5F5F4BF499F9A8@pcawh2> <1309334180.76765.YahooMailNeo@web65411.mail.ac4.yahoo.com> <59C873204EDD4BD082C271EDD80E9735@pcawh2> <1309402669.5661.YahooMailNeo@web65408.mail.ac4.yahoo.com> Message-ID: You can request tiles from MapServer by a MapServer cgi request or by a WMS request. OpenLayers uses this DEFAULT_PARAMS: { mode: "map", map_imagetype: "png" // a 8bit png if not otherwise declared in the mapfile }, for OpenLayers.Layer.MapServer DEFAULT_PARAMS: { service: "WMS", version: "1.1.1", request: "GetMap", styles: "", exceptions: "application/vnd.ogc.se_inimage", format: "image/jpeg" }, for OpenLayers.Layer.WMS if you not specify a imageformat, then the OpenLayers.Layer.MapServer requests a png and the WMS requests a jpg (if not set transparent=true). Arnd _____ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Donnerstag, 30. Juni 2011 04:58 An: Arnd Wippermann Cc: mapserver-users at lists.osgeo.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, I see. I used the same 'mapserv' url in both OpenLayers.Layer.WMS and .MapServer code. The requests were sent to the same remote server. So the difference must be in the requests. Is it possible that OpenLayers.Layer.WMS generated a different output url string from the one generated by OpenLayers.Layer.MapServer? Ken _____ From: Arnd Wippermann To: 'kensei3000' Cc: mapserver-users at lists.osgeo.org Sent: Thursday, June 30, 2011 1:15 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Ken, Quote : "Interestingly, if I use the 'mapserv' executable directly in the browser instead of using OpenLayers API, the image also renders correctly." There could be no difference (OpenLayers.Layer.WMS or .MapServer), because with OpenLayers you only create an url for an image tag (). The response have to be the same as from the browser directly. The difference could only be a result from different requests or the same request to different servers. Arnd _____ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Mittwoch, 29. Juni 2011 09:56 An: Arnd Wippermann Cc: users at openlayers.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, I checked the images properties of the tile images using ImageMagick. tile_topleft_remote.png has image type "Palette" (8-bit) tile_topleft_local.png has image type "TrueColor" (32-bit) The results I got seem to correlate with your findings. Indeed, it appears that the image rendering between my local pc and the server are different. The map files are exactly same since I sync them in both computers. The MapServer versions, however, are different. Here's what I got: LOCAL: MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE REMOTE: MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The MapServer executable in the remote server is an older version (5.6.1) than the one in my pc (6.0.0). I edited the map files and images in my local pc, then synced them to the server, so there may be an incompatibility. I checked the Mapserver Migration Guide (http://mapserver.org/de/MIGRATION_GUIDE.html) and my guess was that the default OUTPUTFORMAT specifications of both versions could be different. I did not specify an explicit OUTPUTFORMAT in my map file. I created another test. This time I explicitly defined the OUTPUTFORMAT with the following lines added to the map file in the remote server: OUTPUTFORMAT NAME jpeg DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END The result was that the output image generated by the remote server rendered in TrueColor, similar to the output image in my local pc. Problem appears to be fixed. My guess right now is that the IMAGEMODE parameter above was somehow set to PC256 (i.e. 8-bit color palette) by default. Interestingly, if I use the 'mapserv' executable directly in the browser instead of using OpenLayers API, the image also renders correctly. EXAMPLE: http://remotehost/cgi-bin/mapserv?map=/opt/maps/sandbox/mapserver_openlayers _if/sample.map&mode=map Above 'sample.map' did not have the OUTPUTFORMAT object explicitly defined. In another test I ran using the original 'sample.map' (i.e. no OUTPUTFORMAT object), I edited the OpenLayers code in the remote server: //sample.html FROM: 17 layer = new OpenLayers.Layer.MapServer("World Map", TO: 17 layer = new OpenLayers.Layer.WMS("World Map", I used the generic 'WMS' layer instead of the 'MapServer' layer. And the result was that the output image rendered correctly. I am not yet sure why. I might need to run additional tests to confirm my findings. Thanks for your help in pointing out the discrepancies in the images and in MapServer. :) Ken _____ From: Arnd Wippermann To: 'kensei3000' Cc: users at openlayers.org Sent: Wednesday, June 29, 2011 2:28 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers use some image viewer to get information of your images. tile_topleft_remote.png is a 8bit image (256 color image), where only 45 colors used. tile_topleft_local.png is a 24bit image (16,7 Mill. colors), where 13274 colors used. The requests ask for map_imagetype=png. So it seems, that your mapfiles are different, because the response of the servers delivers a different image for the same imagetype. Or do you use different MapServer versions? The problem has to be an issue with MapServer and not with OpenLayers. Arnd _____ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Dienstag, 28. Juni 2011 04:32 An: Arnd Wippermann Cc: users at openlayers.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, Thanks a lot for the tip. I copied the image url of the top-left most tile for both local pc and remote server tests. Here is what I got: Local: http://localhost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_ope nlayers_if%2Fsample.map&layers=sample_raster&mode=map&map_imagetype=png&mape xt=-90+0+0+90&imgext=-90+0+0+90&map_size=256+256&imgx=128&imgy=128&imgxy=256 +256 Remote: http://remotehost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_op enlayers_if%2Fsample.map&layers=sample_raster&mode=map&map_imagetype=png&map ext=-180+-90+0+90&imgext=-180+-90+0+90&map_size=256+256&imgx=128&imgy=128&im gxy=256+256 The only significant difference of the two urls appear to be the 'mapext' and 'imgext' parameters. When I checked the resulting images after inputting the urls in the browser, I noticed that the tile images had different sizes and positions. I believe this was due to the said parameters. I tried changing the 'mapext' and 'imagext' parameters of the server test url to match that of the local test url, and indeed the size and position of the remote server tile image changed. However, I am still unable to figure out what causes the color distortion or "downsampling" of the image in the remote server. For further reference, I've attached the tile images I got using the above urls. Here is the openlayers code I used. It is the same for both local and remote server tests except for the host in line 18. //sample.html 1 2 3 10 11 25 26 27
28 29 And below is the common .map file I created with the help of the Quantum GIS Mapserver Export tool. The raster image has an associated World file (.wld) for georeferencing. 1 # Map file created from QGIS project file /var/maps/sandbox/mapserver_openlayers_if/sample.qgs 2 # Edit this file to customize for your map interface 3 # (Created with PyQgis MapServer Export plugin) 4 MAP 5 NAME "QGIS-MAP" 6 # Map image size 7 SIZE 8180 4930 8 UNITS meters 9 10 EXTENT -86.515507 -50.290979 88.076495 48.225271 11 PROJECTION 12 'proj=longlat' 13 'ellps=WGS84' 14 'towgs84=0,0,0,0,0,0,0' 15 'no_defs' 16 END 17 18 # Background color for the map canvas -- change as desired 19 IMAGECOLOR 255 255 255 20 IMAGEQUALITY 95 21 IMAGETYPE jpeg 22 23 # Legend 24 LEGEND 25 IMAGECOLOR 255 255 255 26 STATUS ON 27 KEYSIZE 18 12 28 LABEL 29 TYPE BITMAP 30 SIZE MEDIUM 31 COLOR 0 0 89 32 END 33 END 34 35 # Web interface definition. Only the template parameter 36 # is required to display a map. See MapServer documentation 37 WEB 38 # Set IMAGEPATH to the path where MapServer should 39 # write its output. 40 IMAGEPATH '/tmp/' 41 42 # Set IMAGEURL to the url that points to IMAGEPATH 43 # as defined in your web server configuration 44 IMAGEURL '/tmp/' 45 46 #Scale range at which web interface will operate 47 # Template and header/footer settings 48 # Only the template parameter is required to display a map. See MapServer documentation 49 TEMPLATE 'fooOnlyForWMSGetFeatureInfo' 50 END 51 52 LAYER 53 NAME 'sample_raster' 54 TYPE RASTER 55 DUMP true 56 TEMPLATE fooOnlyForWMSGetFeatureInfo 57 EXTENT -86.515507 -50.290979 88.076495 48.225271 58 DATA 'sec_field.jpg' 59 STATUS DEFAULT 60 TRANSPARENCY 100 61 PROJECTION 62 'proj=longlat' 63 'ellps=WGS84' 64 'towgs84=0,0,0,0,0,0,0' 65 'no_defs' 66 END 67 END 68 69 END Hope you could provide further assistance. Ken _____ From: Arnd Wippermann To: 'kensei3000' Cc: users at openlayers.org Sent: Tuesday, June 28, 2011 1:53 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers hi, if you do a right click on a tile to get the context menu, you should be able to copy the url (if the tiles of your server is the most top of the visible layers). Compare the different urls. If you load them in your browser you should get a response for a single tile from your server. Perhaps that gives you an idea, what goes wrong. Arnd _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von kensei3000 Gesendet: Montag, 27. Juni 2011 05:37 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi! I am trying to use MapServer as a WMS layer in Openlayers. I setup the MapServer in our server machine, using my own PC as the test client. I created a simple .map file in our server that contains one raster image. Using the mapserver tool 'mapserv' in a URL string, I was able to load the output map with full resolution correctly in a browser (Google Chrome). However, when I tried to load the map using a simple Openlayers script (HMTL) which I created on our server (accessible via browser), the map image appeared to have a much lower-resolution (i.e. 256-colors only) and was pixelized. Also, I could see white lines representing the tile edges of the map. I did another test. This time, I installed MapServer in my own PC. I created a .map file similar to the one I used in our server, with the same raster image. I created a similar Openlayers script (HTML) in my own PC, but this time it would call the MapServer from my own PC. I loaded the script using a browser and the image displayed correctly with full resolution. Does anyone have an idea what the problem could be? I would appreciate any help in this matter. Thanks in advance! :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From kensei3000 at yahoo.com Wed Jun 29 19:57:49 2011 From: kensei3000 at yahoo.com (kensei3000) Date: Wed, 29 Jun 2011 19:57:49 -0700 (PDT) Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers In-Reply-To: <59C873204EDD4BD082C271EDD80E9735@pcawh2> References: <1309145793.97438.YahooMailNeo@web65407.mail.ac4.yahoo.com> <7D275BCF3E4441F7A9FE9BB927E975F0@pcawh2> <1309228343.92303.YahooMailNeo@web65409.mail.ac4.yahoo.com> <378B6F35D5FF48699D5F5F4BF499F9A8@pcawh2> <1309334180.76765.YahooMailNeo@web65411.mail.ac4.yahoo.com> <59C873204EDD4BD082C271EDD80E9735@pcawh2> Message-ID: <1309402669.5661.YahooMailNeo@web65408.mail.ac4.yahoo.com> Hi Arnd, I see. I used the same 'mapserv' url in both OpenLayers.Layer.WMS and .MapServer code. The requests were sent to the same remote server. So the difference must be in the requests. Is it possible that OpenLayers.Layer.WMS generated a different output url string from the one generated by OpenLayers.Layer.MapServer? Ken ________________________________ From: Arnd Wippermann To: 'kensei3000' Cc: mapserver-users at lists.osgeo.org Sent: Thursday, June 30, 2011 1:15 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Ken, ? Quote : "Interestingly, if I use the 'mapserv' executable directly in the browser instead of using OpenLayers API, the image also renders correctly." ? There could be no difference (OpenLayers.Layer.WMS or .MapServer), because with OpenLayers you only create an url for an image tag (). The response have to be the same as from the browser directly. ? The difference could only be a result from different requests or the same request to different servers. ? Arnd ? ________________________________ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Mittwoch, 29. Juni 2011 09:56 An: Arnd Wippermann Cc: users at openlayers.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, I checked the images properties of the tile images using ImageMagick. tile_topleft_remote.png has image type "Palette" (8-bit) tile_topleft_local.png has image type "TrueColor" (32-bit) The results I got seem to correlate with your findings. Indeed, it appears that the image rendering between my local pc and the server are different. The map files are exactly same since I sync them in both computers. ? ?? The MapServer versions, however, are different. Here's what I got: LOCAL: MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE REMOTE: MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The MapServer executable in the remote server is an older version (5.6.1) than the one in my pc (6.0.0). I edited the map files and images in my local pc, then synced them to the server, so there may be an incompatibility. I checked the Mapserver Migration Guide (http://mapserver.org/de/MIGRATION_GUIDE.html) and my guess was that the default OUTPUTFORMAT specifications of both versions could be different.?I did not specify an explicit OUTPUTFORMAT in my map file. I created another test. This time I explicitly defined the OUTPUTFORMAT with the following lines added to the map file in the remote server: ?OUTPUTFORMAT ? ? NAME jpeg ? ? DRIVER "AGG/JPEG" ? ? MIMETYPE "image/jpeg" ? ? IMAGEMODE RGB ? ? EXTENSION "jpg" ? END The result was that the output image generated by the remote server rendered in TrueColor, similar to the output image in my local pc. Problem appears to be fixed. My guess right now is that the ?IMAGEMODE parameter above was somehow set to PC256 (i.e. 8-bit color palette) by default. Interestingly, if I use the 'mapserv' executable directly in the browser instead of using OpenLayers API, the image also renders correctly. EXAMPLE:? http://remotehost/cgi-bin/mapserv?map=/opt/maps/sandbox/mapserver_openlayers_if/sample.map&mode=map Above 'sample.map' did not have the OUTPUTFORMAT object explicitly defined.? In another test I ran using the original 'sample.map' (i.e. no OUTPUTFORMAT object), I edited the OpenLayers code in the remote server: //sample.html FROM: ? ? 17?? ? ? ? ? ?layer = new OpenLayers.Layer.MapServer("World Map",? TO: ? ? 17? ? ? ? ? ?layer = new OpenLayers.Layer.WMS("World Map",? I used the generic 'WMS' layer instead of the 'MapServer' layer. And the result was that the output image rendered correctly. I am not yet sure why.? I might need to run additional tests to confirm my findings. Thanks for your help in pointing out the discrepancies in the images and in MapServer. :) Ken ?? ________________________________ From: Arnd Wippermann To: 'kensei3000' Cc: users at openlayers.org Sent: Wednesday, June 29, 2011 2:28 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers use some image viewer to get information of your images. ? tile_topleft_remote.pngis a 8bit image (256 color image), where only 45 colors used. ? tile_topleft_local.png is a 24bit image (16,7 Mill. colors), where 13274 colors used. ? The requests ask for map_imagetype=png. So it seems, that your mapfiles are different, because the response of the servers delivers a different?image for the same imagetype. Or do you use?different MapServer versions? ? The problem has to be an issue with MapServer and not with OpenLayers. ? Arnd ? ________________________________ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Dienstag, 28. Juni 2011 04:32 An: Arnd Wippermann Cc: users at openlayers.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, Thanks a lot for the tip. I copied the image url of the top-left most tile for both local pc and remote server tests. Here is what I got: Local: http://localhost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_openlayers_if%2Fsample.map&layers=sample_raster&mode=map&map_imagetype=png&mapext=-90+0+0+90&imgext=-90+0+0+90&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 Remote: http://remotehost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_openlayers_if%2Fsample.map&layers=sample_raster&mode=map&map_imagetype=png&mapext=-180+-90+0+90&imgext=-180+-90+0+90&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 The only significant difference of the two urls appear to be the 'mapext' and 'imgext' parameters. When I checked the resulting images after inputting the urls in the browser, I noticed that the tile images had different sizes and positions. I believe this was due to the said parameters. I tried changing the 'mapext' and 'imagext' parameters of the server test url to match that of the local test url, and indeed the size and position of the remote server tile image changed. However, I am still unable to figure out what causes the color distortion or "downsampling" of the image in the remote server. For further reference, I've attached the tile images I got using the above urls. Here is the openlayers code I used. It is the same for both local and remote server tests except for the host in line 18.? //sample.html ? ? ?1 ? ? ?2? ? ? ?3? ? ? ? 10? ? ? ? 11? ? ? ? 25? ? ? 26? ? ? 27? ?
? ? 28? ? ? 29 And below is the common .map file I created with the help of the Quantum GIS Mapserver Export tool. The raster image has an associated World file (.wld) for georeferencing. ? ? ?1# Map file created from QGIS project file /var/maps/sandbox/mapserver_openlayers_if/sample.qgs ? ? ?2# Edit this file to customize for your map interface ? ? ?3# (Created with PyQgis MapServer Export plugin) ? ? ?4MAP ? ? ?5?NAME "QGIS-MAP" ? ? ?6?# Map image size ? ? ?7?SIZE 8180 4930 ? ? ?8?UNITS meters ? ? ?9 ? ? 10?EXTENT -86.515507 -50.290979 88.076495 48.225271 ? ? 11?PROJECTION ? ? 12? ?'proj=longlat' ? ? 13? ?'ellps=WGS84' ? ? 14? ?'towgs84=0,0,0,0,0,0,0' ? ? 15? ?'no_defs' ? ? 16?END ? ? 17 ? ? 18?# Background color for the map canvas -- change as desired ? ? 19?IMAGECOLOR 255 255 255 ? ? 20?IMAGEQUALITY 95 ? ? 21?IMAGETYPE jpeg ? ? 22 ? ? 23?# Legend ? ? 24?LEGEND ? ? 25? ? ?IMAGECOLOR 255 255 255 ? ? 26? ?STATUS ON ? ? 27? ?KEYSIZE 18 12 ? ? 28? ?LABEL ? ? 29? ? ?TYPE BITMAP ? ? 30? ? ?SIZE MEDIUM ? ? 31? ? ?COLOR 0 0 89 ? ? 32? ?END ? ? 33?END ? ? 34 ? ? 35?# Web interface definition. Only the template parameter ? ? 36?# is required to display a map. See MapServer documentation ? ? 37?WEB ? ? 38? ?# Set IMAGEPATH to the path where MapServer should ? ? 39? ?# write its output. ? ? 40? ?IMAGEPATH '/tmp/' ? ? 41 ? ? 42? ?# Set IMAGEURL to the url that points to IMAGEPATH ? ? 43? ?# as defined in your web server configuration ? ? 44? ?IMAGEURL '/tmp/' ? ? 45 ? ? 46? ?#Scale range at which web interface will operate ? ? 47? ?# Template and header/footer settings ? ? 48? ?# Only the template parameter is required to display a map. See MapServer documentation ? ? 49? ?TEMPLATE 'fooOnlyForWMSGetFeatureInfo' ? ? 50?END ? ? 51 ? ? 52?LAYER ? ? 53? ?NAME 'sample_raster' ? ? 54? ?TYPE RASTER ? ? 55? ?DUMP true ? ? 56? ?TEMPLATE fooOnlyForWMSGetFeatureInfo ? ? 57?EXTENT -86.515507 -50.290979 88.076495 48.225271 ? ? 58? ?DATA 'sec_field.jpg' ? ? 59? ?STATUS DEFAULT ? ? 60? ?TRANSPARENCY 100 ? ? 61? ?PROJECTION ? ? 62? ?'proj=longlat' ? ? 63? ?'ellps=WGS84' ? ? 64? ?'towgs84=0,0,0,0,0,0,0' ? ? 65? ?'no_defs' ? ? 66? ?END ? ? 67?END ? ? 68 ? ? 69END Hope you could provide further assistance. Ken ________________________________ From: Arnd Wippermann To: 'kensei3000' Cc: users at openlayers.org Sent: Tuesday, June 28, 2011 1:53 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers hi, ? if you do a right click on a tile to get the context menu, you should be able to copy the url (if the tiles of your server is the most top of the visible layers). Compare the different urls. If you load them in your browser you should get a response for a single tile from your server. ? Perhaps that gives you an idea, what goes wrong. ? Arnd ________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von kensei3000 Gesendet: Montag, 27. Juni 2011 05:37 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi! I am trying to use MapServer as a WMS layer in Openlayers. I setup the MapServer in our server machine, using my own PC as the test client. I created a simple .map file in our server that contains one raster image. Using the mapserver tool 'mapserv' in a URL string, I was able to load the output map with full resolution correctly in a browser (Google Chrome). However, when I tried to load the map using a simple Openlayers script (HMTL) which I created on our server (accessible via browser), the map image appeared to have a much lower-resolution (i.e. 256-colors only) and was pixelized. Also, I could see white lines representing the tile edges of the map.? I did another test. This time, I installed MapServer in my own PC. I created a .map file similar to the one I used in our server, with the same raster image. I created a similar Openlayers script (HTML) in my own PC, but this time it would call the MapServer from my own PC. I loaded the script using a browser and the image displayed correctly with full resolution.? Does anyone have an idea what the problem could be? I would appreciate any help in this matter. Thanks in advance! :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From kensei3000 at yahoo.com Thu Jun 30 19:19:04 2011 From: kensei3000 at yahoo.com (kensei3000) Date: Thu, 30 Jun 2011 19:19:04 -0700 (PDT) Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers In-Reply-To: References: <1309145793.97438.YahooMailNeo@web65407.mail.ac4.yahoo.com> <7D275BCF3E4441F7A9FE9BB927E975F0@pcawh2> <1309228343.92303.YahooMailNeo@web65409.mail.ac4.yahoo.com> <378B6F35D5FF48699D5F5F4BF499F9A8@pcawh2> <1309334180.76765.YahooMailNeo@web65411.mail.ac4.yahoo.com> <59C873204EDD4BD082C271EDD80E9735@pcawh2> <1309402669.5661.YahooMailNeo@web65408.mail.ac4.yahoo.com> Message-ID: <1309486744.70849.YahooMailNeo@web65403.mail.ac4.yahoo.com> Hi Arnd, I checked the source code for OpenLayers.Layer.MapServer and OpenLayers.Layer.WMS and confirmed the DEFAULT_PARAMS you indicated. I tried calling MapServer using the DEFAULT_PARAMS for OpenLayers.Layers.MapServer in this url: http://remotehost/cgi-bin/mapserv?map=/opt/maps/sandbox/mapserver_openlayers_if/sample.map&mode=map&map_imagetype=png And indeed an 8-bit image was rendered.? I read from the documentation that MapServer can act like a WMS server, which is why OpenLayers.Layers.WMS works with MapServer also. I believe you have succinctly explained the cause of the image rendering discrepancy. Problem appears to be solved. Thanks for all your help. :) Ken ________________________________ From: Arnd Wippermann To: 'kensei3000' Cc: mapserver-users at lists.osgeo.org Sent: Friday, July 1, 2011 6:41 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers You can request tiles from MapServer by a MapServer cgi?request or by?a WMS request. ? OpenLayers uses this ? ??? DEFAULT_PARAMS: { ??????? mode: "map", ??????? map_imagetype: "png" // a 8bit png if not otherwise declared in the mapfile ??? }, for OpenLayers.Layer.MapServer ? ??? DEFAULT_PARAMS: { service: "WMS", ????????????????????? version: "1.1.1", ????????????????????? request: "GetMap", ????????????????????? styles: "", ????????????????????? exceptions: "application/vnd.ogc.se_inimage", ????????????????????? format: "image/jpeg" ???????????????????? }, for OpenLayers.Layer.WMS ? if you not specify a imageformat, then the OpenLayers.Layer.MapServer requests a png and the?WMS requests a jpg (if not set transparent=true). ? Arnd ________________________________ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Donnerstag, 30. Juni 2011 04:58 An: Arnd Wippermann Cc: mapserver-users at lists.osgeo.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, I see. I used the same 'mapserv' url in both OpenLayers.Layer.WMS and .MapServer code. The requests were sent to the same remote server. So the difference must be in the requests. Is it possible that OpenLayers.Layer.WMS generated a different output url string from the one generated by OpenLayers.Layer.MapServer? Ken ________________________________ From: Arnd Wippermann To: 'kensei3000' Cc: mapserver-users at lists.osgeo.org Sent: Thursday, June 30, 2011 1:15 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Ken, ? Quote : "Interestingly, if I use the 'mapserv' executable directly in the browser instead of using OpenLayers API, the image also renders correctly." ? There could be no difference (OpenLayers.Layer.WMS or .MapServer), because with OpenLayers you only create an url for an image tag (). The response have to be the same as from the browser directly. ? The difference could only be a result from different requests or the same request to different servers. ? Arnd ? ________________________________ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Mittwoch, 29. Juni 2011 09:56 An: Arnd Wippermann Cc: users at openlayers.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, I checked the images properties of the tile images using ImageMagick. tile_topleft_remote.png has image type "Palette" (8-bit) tile_topleft_local.png has image type "TrueColor" (32-bit) The results I got seem to correlate with your findings. Indeed, it appears that the image rendering between my local pc and the server are different. The map files are exactly same since I sync them in both computers. ? ?? The MapServer versions, however, are different. Here's what I got: LOCAL: MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE REMOTE: MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The MapServer executable in the remote server is an older version (5.6.1) than the one in my pc (6.0.0). I edited the map files and images in my local pc, then synced them to the server, so there may be an incompatibility. I checked the Mapserver Migration Guide (http://mapserver.org/de/MIGRATION_GUIDE.html) and my guess was that the default OUTPUTFORMAT specifications of both versions could be different.?I did not specify an explicit OUTPUTFORMAT in my map file. I created another test. This time I explicitly defined the OUTPUTFORMAT with the following lines added to the map file in the remote server: ?OUTPUTFORMAT ? ? NAME jpeg ? ? DRIVER "AGG/JPEG" ? ? MIMETYPE "image/jpeg" ? ? IMAGEMODE RGB ? ? EXTENSION "jpg" ? END The result was that the output image generated by the remote server rendered in TrueColor, similar to the output image in my local pc. Problem appears to be fixed. My guess right now is that the ?IMAGEMODE parameter above was somehow set to PC256 (i.e. 8-bit color palette) by default. Interestingly, if I use the 'mapserv' executable directly in the browser instead of using OpenLayers API, the image also renders correctly. EXAMPLE:? http://remotehost/cgi-bin/mapserv?map=/opt/maps/sandbox/mapserver_openlayers_if/sample.map&mode=map Above 'sample.map' did not have the OUTPUTFORMAT object explicitly defined.? In another test I ran using the original 'sample.map' (i.e. no OUTPUTFORMAT object), I edited the OpenLayers code in the remote server: //sample.html FROM: ? ? 17?? ? ? ? ? ?layer = new OpenLayers.Layer.MapServer("World Map",? TO: ? ? 17? ? ? ? ? ?layer = new OpenLayers.Layer.WMS("World Map",? I used the generic 'WMS' layer instead of the 'MapServer' layer. And the result was that the output image rendered correctly. I am not yet sure why.? I might need to run additional tests to confirm my findings. Thanks for your help in pointing out the discrepancies in the images and in MapServer. :) Ken ?? ________________________________ From: Arnd Wippermann To: 'kensei3000' Cc: users at openlayers.org Sent: Wednesday, June 29, 2011 2:28 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers use some image viewer to get information of your images. ? tile_topleft_remote.pngis a 8bit image (256 color image), where only 45 colors used. ? tile_topleft_local.png is a 24bit image (16,7 Mill. colors), where 13274 colors used. ? The requests ask for map_imagetype=png. So it seems, that your mapfiles are different, because the response of the servers delivers a different?image for the same imagetype. Or do you use?different MapServer versions? ? The problem has to be an issue with MapServer and not with OpenLayers. ? Arnd ? ________________________________ Von: kensei3000 [mailto:kensei3000 at yahoo.com] Gesendet: Dienstag, 28. Juni 2011 04:32 An: Arnd Wippermann Cc: users at openlayers.org Betreff: Re: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi Arnd, Thanks a lot for the tip. I copied the image url of the top-left most tile for both local pc and remote server tests. Here is what I got: Local: http://localhost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_openlayers_if%2Fsample.map&layers=sample_raster&mode=map&map_imagetype=png&mapext=-90+0+0+90&imgext=-90+0+0+90&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 Remote: http://remotehost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_openlayers_if%2Fsample.map&layers=sample_raster&mode=map&map_imagetype=png&mapext=-180+-90+0+90&imgext=-180+-90+0+90&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 The only significant difference of the two urls appear to be the 'mapext' and 'imgext' parameters. When I checked the resulting images after inputting the urls in the browser, I noticed that the tile images had different sizes and positions. I believe this was due to the said parameters. I tried changing the 'mapext' and 'imagext' parameters of the server test url to match that of the local test url, and indeed the size and position of the remote server tile image changed. However, I am still unable to figure out what causes the color distortion or "downsampling" of the image in the remote server. For further reference, I've attached the tile images I got using the above urls. Here is the openlayers code I used. It is the same for both local and remote server tests except for the host in line 18.? //sample.html ? ? ?1 ? ? ?2? ? ? ?3? ? ? ? 10? ? ? ? 11? ? ? ? 25? ? ? 26? ? ? 27? ?
? ? 28? ? ? 29 And below is the common .map file I created with the help of the Quantum GIS Mapserver Export tool. The raster image has an associated World file (.wld) for georeferencing. ? ? ?1# Map file created from QGIS project file /var/maps/sandbox/mapserver_openlayers_if/sample.qgs ? ? ?2# Edit this file to customize for your map interface ? ? ?3# (Created with PyQgis MapServer Export plugin) ? ? ?4MAP ? ? ?5?NAME "QGIS-MAP" ? ? ?6?# Map image size ? ? ?7?SIZE 8180 4930 ? ? ?8?UNITS meters ? ? ?9 ? ? 10?EXTENT -86.515507 -50.290979 88.076495 48.225271 ? ? 11?PROJECTION ? ? 12? ?'proj=longlat' ? ? 13? ?'ellps=WGS84' ? ? 14? ?'towgs84=0,0,0,0,0,0,0' ? ? 15? ?'no_defs' ? ? 16?END ? ? 17 ? ? 18?# Background color for the map canvas -- change as desired ? ? 19?IMAGECOLOR 255 255 255 ? ? 20?IMAGEQUALITY 95 ? ? 21?IMAGETYPE jpeg ? ? 22 ? ? 23?# Legend ? ? 24?LEGEND ? ? 25? ? ?IMAGECOLOR 255 255 255 ? ? 26? ?STATUS ON ? ? 27? ?KEYSIZE 18 12 ? ? 28? ?LABEL ? ? 29? ? ?TYPE BITMAP ? ? 30? ? ?SIZE MEDIUM ? ? 31? ? ?COLOR 0 0 89 ? ? 32? ?END ? ? 33?END ? ? 34 ? ? 35?# Web interface definition. Only the template parameter ? ? 36?# is required to display a map. See MapServer documentation ? ? 37?WEB ? ? 38? ?# Set IMAGEPATH to the path where MapServer should ? ? 39? ?# write its output. ? ? 40? ?IMAGEPATH '/tmp/' ? ? 41 ? ? 42? ?# Set IMAGEURL to the url that points to IMAGEPATH ? ? 43? ?# as defined in your web server configuration ? ? 44? ?IMAGEURL '/tmp/' ? ? 45 ? ? 46? ?#Scale range at which web interface will operate ? ? 47? ?# Template and header/footer settings ? ? 48? ?# Only the template parameter is required to display a map. See MapServer documentation ? ? 49? ?TEMPLATE 'fooOnlyForWMSGetFeatureInfo' ? ? 50?END ? ? 51 ? ? 52?LAYER ? ? 53? ?NAME 'sample_raster' ? ? 54? ?TYPE RASTER ? ? 55? ?DUMP true ? ? 56? ?TEMPLATE fooOnlyForWMSGetFeatureInfo ? ? 57?EXTENT -86.515507 -50.290979 88.076495 48.225271 ? ? 58? ?DATA 'sec_field.jpg' ? ? 59? ?STATUS DEFAULT ? ? 60? ?TRANSPARENCY 100 ? ? 61? ?PROJECTION ? ? 62? ?'proj=longlat' ? ? 63? ?'ellps=WGS84' ? ? 64? ?'towgs84=0,0,0,0,0,0,0' ? ? 65? ?'no_defs' ? ? 66? ?END ? ? 67?END ? ? 68 ? ? 69END Hope you could provide further assistance. Ken ________________________________ From: Arnd Wippermann To: 'kensei3000' Cc: users at openlayers.org Sent: Tuesday, June 28, 2011 1:53 AM Subject: AW: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers hi, ? if you do a right click on a tile to get the context menu, you should be able to copy the url (if the tiles of your server is the most top of the visible layers). Compare the different urls. If you load them in your browser you should get a response for a single tile from your server. ? Perhaps that gives you an idea, what goes wrong. ? Arnd ________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von kensei3000 Gesendet: Montag, 27. Juni 2011 05:37 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] "Low-resolution" raster image problem when usingOpenlayers Hi! I am trying to use MapServer as a WMS layer in Openlayers. I setup the MapServer in our server machine, using my own PC as the test client. I created a simple .map file in our server that contains one raster image. Using the mapserver tool 'mapserv' in a URL string, I was able to load the output map with full resolution correctly in a browser (Google Chrome). However, when I tried to load the map using a simple Openlayers script (HMTL) which I created on our server (accessible via browser), the map image appeared to have a much lower-resolution (i.e. 256-colors only) and was pixelized. Also, I could see white lines representing the tile edges of the map.? I did another test. This time, I installed MapServer in my own PC. I created a .map file similar to the one I used in our server, with the same raster image. I created a similar Openlayers script (HTML) in my own PC, but this time it would call the MapServer from my own PC. I loaded the script using a browser and the image displayed correctly with full resolution.? Does anyone have an idea what the problem could be? I would appreciate any help in this matter. Thanks in advance! :) -------------- next part -------------- An HTML attachment was scrubbed... URL: