From kusum at infobase.in Sat Nov 1 05:15:02 2008 From: kusum at infobase.in (Kusum) Date: Sat, 1 Nov 2008 17:45:02 +0530 Subject: [mapserver-users] Re: AW: [OpenLayers-Users] Projection Problem References: Message-ID: <2F3D078C6AE94F8AA97F343DC63DA4D7@kusumsaini> I am using orthographic projection to generate globe layer Its showing globe but sometimes half of it or some part. Also I am not able to rotate or pan through the globe. In openlayers I am using var options = { controls: [], restrictedExtent: extent, numZoomLevels: 10, maxResolution:0.49990340909090999, projection:"EPSG:9840" } and my mapfile is as follows:- EXTENT -180 -90 180 90 UNITS DD SIZE 550 450 PROJECTION "proj=ortho" "ellps=WGS84" "lat_0=51.0000" "lon_0=0.0000" "x_0=0.00" "y_0=0.00" END #World_Background LAYER NAME "background1" STATUS DEFAULT PROJECTION "proj=latlong" END TYPE RASTER DATA "wsiearth.tif" TEMPLATE "ttt.html" END I am confused this is due to the extent I have set or projection definition set in mapfile. Please help as this is very urgent and I have a deadline to meet. Regards Kusum -------------------------------------------------- From: "Arnd Wippermann" Sent: Friday, October 31, 2008 11:01 PM To: "'Kusum'" Cc: Subject: AW: [OpenLayers-Users] Projection Problem > You can use MapServer to reproject your georeferenced tiff and > OpenLayers.Layer.MapServer (or OpenLayers.Layer.WMS) to request it from > Mapserver. > > OpenLayers can not reproject raster data as a desktop application as > arcgis > can do. But MapServer could do this part. > > Arnd Wippermann > > > -----Urspr?ngliche Nachricht----- > Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im > Auftrag von Kusum > Gesendet: Freitag, 31. Oktober 2008 12:46 > An: George Mu'ammar; users at openlayers.org > Betreff: Re: [OpenLayers-Users] Projection Problem > > Actually I had a tiff image and it was geo referred and in arc gis I was > able to see it as globe by changing its projection and to see it in > openlayers I used OpenLayers.Layer.Image > > Did I use the wrong option or Had I to use something different?? > > Pls reply > > Regards > Kusum > > -------------------------------------------------- > From: "George Mu'ammar" > Sent: Friday, October 31, 2008 5:10 PM > To: > Subject: Re: [OpenLayers-Users] Projection Problem > >> Dear Kusum, do this test: >> Open your gif using any graphics application or browser. Does it look >> like the map you want to see ? You won't get anything more than that >> from using an Image layer. >> Regards >> -- >> George Mu'ammar >> >> >> Quoting Kusum : >> >>> Dear All >>> >>> I have a world image which I want to show at orthographic projection >>> so that it appears as a globe. >>> So I am using this image >>> var options = >>> { >>> numZoomLevels: 10, >>> projection:"EPSG:9840" >>> } >>> layer = new OpenLayers.Layer.Image( >>> 'World Map', >>> >> >>> 'http://localhost/maplab/app_atlas/images/wsiearth.GIF', >>> new >>> OpenLayers.Bounds(-180,-47.48309659090924,180,90), >>> new OpenLayers.Size(580, 320), >>> options); >>> >>> >>> But it is shown as a flat image and not as globe. >>> >>> I am using Mapserver . >>> Is there any code change I have to make to get the image in globe form. >>> >>> Pls suggest.I am completely messed up. >>> >>> regards >>> Kusum >> >> >> _______________________________________________ >> Users mailing list >> Users at openlayers.org >> http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > Users at openlayers.org > http://openlayers.org/mailman/listinfo/users > > From cemre.yilmaz at gmail.com Sat Nov 1 11:43:57 2008 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Sat, 1 Nov 2008 20:43:57 +0200 Subject: [mapserver-users] install ms4w Message-ID: <28babe2b0811011143p47b0931aq7e99fa262fa657f4@mail.gmail.com> Hello everybody I have a problem with installation of MS4W. I follow the instructions on new users tab on MapServer web site. But the apache server didin't start. - So I have downloaded apache 2.2.10 web server from the apace web site and installed it. It is running. - Then I have installed OSGeo4W map server I have tested it writing mapserv -v in the command line and it is also running. After those installation I have tried the ms4w workshop documentation and tutorial for some exercise but none of them has worked. I have copied the course tutorial data in the C: drive of my computer. And I have pointed the file "http://localhost/ms101/vector_index.html" but it didn't work Do you have any idea what is wrong with the installation? Please write me soon it is important for my thesis. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat Nov 1 13:52:41 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 1 Nov 2008 22:52:41 +0200 Subject: [mapserver-users] install ms4w References: <28babe2b0811011143p47b0931aq7e99fa262fa657f4@mail.gmail.com> Message-ID: Hi, My recommendation is to go on with the easiest way, which for my mind is MS4W. Just make Apache run, it is for sure possible. Possible reasons for Apache not starting with "apache-install.bat" include: - port 80 is reserved for some other service solution: edit C:\ms4w\Apache\conf}httpd.conf and use some other port - your user rights do not allow you to install Apache as service solution: start Apache as program from C:\ms4w\Apache\bin\httpd.exe -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: cemre yilmaz L?hetetty: la 1.11.2008 20:43 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] install ms4w Hello everybody I have a problem with installation of MS4W. I follow the instructions on new users tab on MapServer web site. But the apache server didin't start. - So I have downloaded apache 2.2.10 web server from the apace web site and installed it. It is running. - Then I have installed OSGeo4W map server I have tested it writing mapserv -v in the command line and it is also running. After those installation I have tried the ms4w workshop documentation and tutorial for some exercise but none of them has worked. I have copied the course tutorial data in the C: drive of my computer. And I have pointed the file "http://localhost/ms101/vector_index.html" but it didn't work Do you have any idea what is wrong with the installation? Please write me soon it is important for my thesis. From jmckenna at gatewaygeomatics.com Sat Nov 1 14:54:53 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 02 Nov 2008 06:54:53 +0900 Subject: [mapserver-users] install ms4w In-Reply-To: References: <28babe2b0811011143p47b0931aq7e99fa262fa657f4@mail.gmail.com> Message-ID: <490CD02D.8000609@gatewaygeomatics.com> Rahkonen Jukka wrote: > Hi, > > My recommendation is to go on with the easiest way, which for my mind is MS4W. Just make Apache run, it is for sure possible. > > Possible reasons for Apache not starting with "apache-install.bat" include: > - port 80 is reserved for some other service > solution: edit C:\ms4w\Apache\conf}httpd.conf and use some other port > - your user rights do not allow you to install Apache as service > solution: start Apache as program from C:\ms4w\Apache\bin\httpd.exe > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: cemre yilmaz > L?hetetty: la 1.11.2008 20:43 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] install ms4w > > Hello everybody I have a problem with installation of MS4W. I follow the > instructions on new users tab on MapServer web site. But the apache server > didin't start. > > - So I have downloaded apache 2.2.10 web server from the apace web site and > installed it. It is running. > > - Then I have installed OSGeo4W map server I have tested it writing mapserv > -v in the command line and it is also running. > > After those installation I have tried the ms4w workshop documentation and > tutorial for some exercise but none of them has worked. > > I have copied the course tutorial data in the C: drive of my computer. And I > have pointed the file "http://localhost/ms101/vector_index.html" but it > didn't work > > Do you have any idea what is wrong with the installation? Please write me > soon it is important for my thesis. > > To follow-up on Jukka's good response, if you execute "/ms4w/"apache-install.bat" from the commandline you should be able to see the Apache errors in the commandline window. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From karsten at TERRAGIS.NET Sun Nov 2 22:04:23 2008 From: karsten at TERRAGIS.NET (Karsten Vennemann) Date: Sun, 2 Nov 2008 22:04:23 -0800 (PST) Subject: [MAPSERVER-USERS] wms getfeatureinfo get multiple results back ? Message-ID: <20297727.post@talk.nabble.com> Hi I'm using Mapserver with Openlayers to retrieve attributes via a getfeatureinfo query to a postgis/wms layer. I defined templates and it works fine to identify one point but if there are multiple points (with the same geometry) on the same location I only get one to display in the html template output. I added to my "wms_onlineresource" "http://xy.com/cgi-bin/mapserv?map=/mnt/maps/usa.map&mode=nquery&". Any ideas what I might be missing to get multiple results back ? -- View this message in context: http://www.nabble.com/wms-getfeatureinfo-get-multiple-results-back---tp20297727p20297727.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kreshna_iceheart at yahoo.com Sun Nov 2 23:19:32 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Sun, 2 Nov 2008 23:19:32 -0800 (PST) Subject: [mapserver-users] Matching .TFW file with EXTENT parameter? Message-ID: <595175.8185.qm@web56108.mail.re3.yahoo.com> I have a map file with following MapExtent parameter: EXTENT 106.335006 -6.896956 107.315811 -5.983994 Recently, I got a TIFF file without coordinates. I plan to use the TIFF file with my map. Thus, I'm supposed to create a .TFW file using text editor, am I correct? Problem is: I'm not sure what parameter to be put in the .TFW file. Here is the parameters I put in my TFW file so far: 1.000 0.000 0.000 -1.000 106.335006 -5.983994 And I failed to show the raster on my map. Please note that I am merely guessing. It seems that the fifth and the sixth like of the TFW should be the leftmost and rightmost number of my EXTENT parameter, respectively, but I have no idea what the first four lines are for. Based on EXTENT parameter above, what the correct .TFW values should be? Many thanks, -Kresh From rykovd at gmail.com Mon Nov 3 03:51:54 2008 From: rykovd at gmail.com (Denis Rykov) Date: Mon, 3 Nov 2008 17:51:54 +0600 Subject: [mapserver-users] Dynamic SQL Message-ID: <2c9bd88a0811030351r2bde05c5m65d0aad40361490e@mail.gmail.com> Hi all! This is my map-file: MAP IMAGETYPE GIF EXTENT 77.892399 49.045435 87.227800 56.044065 SIZE 800 600 WEB TEMPLATE "/ms4w/apps/mslocal/templates/exampleGL.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "roads" CONNECTIONTYPE postgis CONNECTION "user=postgres password=gaster84 dbname=city host=localhost" DATA "the_geom from (SELECT the_geom,gid, distance(the_geom, geometryfromtext('POINT(' || (%mx% + %img.x% * %mw% / %iw%) || ' ' || (%my% - %img.y% * %mh% / %ih%) || ')',4326)) AS dist FROM roads) as foo using srid=4326 using unique gid" TYPE LINE ... When i insert url such as http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/mslocal/map/exampleGL.map&layer=roads&mx=77&my=87&iw=800&ih=600&mw=10&mh=7&mode=browse&img.x=400&img.y=400 MapServer returns error msDrawMap(): Image handling error. Unable to initialize image. msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. If i use map file (fragment): DATA "the_geom from (SELECT the_geom,gid, distance(the_geom, geometryfromtext('POINT(' || (%mx% + %imgx% * %mw% / %iw%) || ' ' || (%my% - %imgy% * %mh% / %ih%) || ')',4326)) AS dist FROM roads) as foo using srid=4326 using unique gid" and url http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/mslocal/map/exampleGL2.map&layer=roads&mx=77&my=56&iw=800&ih=600&mw=10&mh=7&mode=browse&imgx=400&imgy=400 MapServer works correctly and generate map. If i click on map then img.x and img.y automatically added to url and MapServer returns error such i write above. Please help me. I want, that mouse click coordinates returns to the mapfile. What I need do? -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Mon Nov 3 06:20:45 2008 From: stephan.holl at intevation.de (Stephan Holl) Date: Mon, 3 Nov 2008 15:20:45 +0100 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite Message-ID: <20081103152045.7c01acd8@thoe.hq.intevation.de> Dear mapserver-users, I am updating a mapserver 4.1.0.3 app to mapserver 5.2.0 and found the issue that the following mapfile-block produces a seg fault with php-mapscript. QUERYMAP COLOR 0 255 255 STATUS on STYLE hilite END With mapserver 4.10.3 everything was fine. Is this a known issue? Setting it the querymap to something else than STYLE 'hilite' everything works normal. Did anybody run into this? I found a bug about another hilite-stuff[1], but also the 5.2-branch from SVN has this behaviour. Thanks for any comments on this. Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 50 8 32 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: 197 bytes Desc: not available URL: From dmorissette at mapgears.com Mon Nov 3 06:34:29 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 03 Nov 2008 09:34:29 -0500 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite In-Reply-To: <20081103152045.7c01acd8@thoe.hq.intevation.de> References: <20081103152045.7c01acd8@thoe.hq.intevation.de> Message-ID: <490F0BF5.3080305@mapgears.com> Stephan, QUERYMAP HILITE works in our apps, so it must be something specific to your config or mapfile that triggers the issue. If you could please file a ticket with a simple testcase (data, mapfile and request URL) to reproduce the issue then we can have a look. Daniel Stephan Holl wrote: > Dear mapserver-users, > > I am updating a mapserver 4.1.0.3 app to mapserver 5.2.0 and found the > issue that the following mapfile-block produces a seg fault with > php-mapscript. > > QUERYMAP > COLOR 0 255 255 > STATUS on > STYLE hilite > END > > With mapserver 4.10.3 everything was fine. Is this a known issue? > Setting it the querymap to something else than STYLE 'hilite' > everything works normal. > > Did anybody run into this? I found a bug about another hilite-stuff[1], > but also the 5.2-branch from SVN has this behaviour. > > Thanks for any comments on this. > > Best > > Stephan > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From pal.kristensen at statkart.no Mon Nov 3 08:02:36 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Mon, 3 Nov 2008 08:02:36 -0800 (PST) Subject: [MAPSERVER-USERS] Hiding WMS layers Message-ID: <20305350.post@talk.nabble.com> Hi! Is there any news on this issue?? http://www.nabble.com/Hide-tileindex-layer-to7365847.html#a7365847 The discussion ended without any conclusions. Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/Hiding-WMS-layers-tp20305350p20305350.html Sent from the Mapserver - User mailing list archive at Nabble.com. From randre at gmail.com Mon Nov 3 10:18:36 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 3 Nov 2008 10:18:36 -0800 Subject: [mapserver-users] Matching .TFW file with EXTENT parameter? In-Reply-To: <595175.8185.qm@web56108.mail.re3.yahoo.com> References: <595175.8185.qm@web56108.mail.re3.yahoo.com> Message-ID: <9c2015090811031018g7f2295d6v4c14cb63d091c002@mail.gmail.com> Hi Kresh, The parameters in a .tfw file are explained here: http://www.kralidis.ca/gis/worldfile.htm One caveat to be aware of is that the pixel coordinates are for the center of the pixel, not the UL corner. So if you have an image with the UL corner at (x,y), you need to use the following in your worldfile Pixel_X_size 0 0 Pixel_Y_size (usually a negative number when using North-up data) UL_x + (Pixel_X_size / 2) UL_y + (Pixel_Y_size /2) Roger -- On Sun, Nov 2, 2008 at 11:19 PM, kreshna_iceheart at yahoo.com < kreshna_iceheart at yahoo.com> wrote: > I have a map file with following MapExtent parameter: > EXTENT 106.335006 -6.896956 107.315811 -5.983994 > > Recently, I got a TIFF file without coordinates. I plan to use the TIFF > file with my map. Thus, I'm supposed to create a .TFW file using text > editor, am I correct? > > Problem is: I'm not sure what parameter to be put in the .TFW file. Here is > the parameters I put in my TFW file so far: > 1.000 > 0.000 > 0.000 > -1.000 > 106.335006 > -5.983994 > > And I failed to show the raster on my map. > > Please note that I am merely guessing. It seems that the fifth and the > sixth like of the TFW should be the leftmost and rightmost number of my > EXTENT parameter, respectively, but I have no idea what the first four lines > are for. > > Based on EXTENT parameter above, what the correct .TFW values should be? > Many thanks, > > -Kresh > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Mon Nov 3 10:39:40 2008 From: pauljame at gmail.com (Paul james) Date: Mon, 3 Nov 2008 15:39:40 -0300 Subject: [mapserver-users] Mapscript + google maps layer? Message-ID: <33fad6880811031039o42a4958dx8ffc796eb1dddfa8@mail.gmail.com> Hello guys! Is it possible to add a google layer in my Mapserver/Mapscript app? How? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Nov 3 10:44:49 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 03 Nov 2008 12:44:49 -0600 Subject: [mapserver-users] Dynamic SQL In-Reply-To: <2c9bd88a0811030351r2bde05c5m65d0aad40361490e@mail.gmail.com> References: <2c9bd88a0811030351r2bde05c5m65d0aad40361490e@mail.gmail.com> Message-ID: <490EF241.5157.008F.0@dnr.state.mn.us> Browse mode expects an imgext in this case. It's necessary to turn the img.x and img.y into map coordinates. Imgext is the extent of the map you clicked in. Steve >>> On 11/3/2008 at 5:51 AM, in message <2c9bd88a0811030351r2bde05c5m65d0aad40361490e at mail.gmail.com>, "Denis Rykov" wrote: > Hi all! This is my map-file: > > MAP > IMAGETYPE GIF > EXTENT 77.892399 49.045435 87.227800 56.044065 > SIZE 800 600 > WEB > TEMPLATE "/ms4w/apps/mslocal/templates/exampleGL.html" > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > LAYER > NAME "roads" > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=gaster84 dbname=city host=localhost" > > DATA "the_geom from (SELECT the_geom,gid, distance(the_geom, > geometryfromtext('POINT(' || (%mx% + %img.x% * %mw% / %iw%) || ' ' > || (%my% - %img.y% * %mh% / %ih%) || ')',4326)) AS dist FROM > roads) as foo using srid=4326 using unique gid" > > TYPE LINE > ... > > When i insert url such as > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/mslocal/map/exampleGL.map& > layer=roads&mx=77&my=87&iw=800&ih=600&mw=10&mh=7&mode=browse&img.x=400&img.y=400 > MapServer returns error > > msDrawMap(): Image handling error. Unable to initialize image. > msCalculateScale(): General error message. Invalid image extent, > minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > msCalculateScale(): General error message. Invalid image extent, > minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. > > If i use map file (fragment): > > DATA "the_geom from (SELECT the_geom,gid, distance(the_geom, > geometryfromtext('POINT(' || (%mx% + %imgx% * %mw% / %iw%) || ' ' > || (%my% - %imgy% * %mh% / %ih%) || ')',4326)) AS dist FROM > roads) as foo using srid=4326 using unique gid" > > and url > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/mslocal/map/exampleGL2.ma > p&layer=roads&mx=77&my=56&iw=800&ih=600&mw=10&mh=7&mode=browse&imgx=400&imgy=400 > MapServer works correctly and generate map. If i click on map then img.x and > img.y automatically added to url and MapServer returns error such i write > above. > > Please help me. I want, that mouse click coordinates returns to the mapfile. > What I need do? From rykovd at gmail.com Mon Nov 3 10:58:54 2008 From: rykovd at gmail.com (Denis Rykov) Date: Tue, 4 Nov 2008 00:58:54 +0600 Subject: [mapserver-users] Browse mode Message-ID: <2c9bd88a0811031058s558f3ba9n816aabd88547620d@mail.gmail.com> What I need do, that map is not recentered if I click on the map in BROWSE mode? -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Mon Nov 3 11:35:22 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 04 Nov 2008 08:35:22 +1300 Subject: [mapserver-users] Matching .TFW file with EXTENT parameter? In-Reply-To: <595175.8185.qm@web56108.mail.re3.yahoo.com> References: <595175.8185.qm@web56108.mail.re3.yahoo.com> Message-ID: <49100949.379F.0037.0@asurequality.com> Hi Kresh Tiff World File (.tfw) 6 rows: First row is x-pixel resolution (width in your coordinate system) Second and third rows are so-called "rotational components" but are set to zero in the case of an unrotated mapsheet. The fourth row is the y-pixel resolution (dimension in coordiantes). The negative sign indicates that the image y-axis is positive down which is the opposite from real world coordinates. The 5th and 6th rows are the Easting and Northing of the middle of the upper left pixel Robert >>> "kreshna_iceheart at yahoo.com" 3/11/2008 8:19 p.m. >>> I have a map file with following MapExtent parameter: EXTENT 106.335006 -6.896956 107.315811 -5.983994 Recently, I got a TIFF file without coordinates. I plan to use the TIFF file with my map. Thus, I'm supposed to create a .TFW file using text editor, am I correct? Problem is: I'm not sure what parameter to be put in the .TFW file. Here is the parameters I put in my TFW file so far: 1.000 0.000 0.000 -1.000 106.335006 -5.983994 And I failed to show the raster on my map. Please note that I am merely guessing. It seems that the fifth and the sixth like of the TFW should be the leftmost and rightmost number of my EXTENT parameter, respectively, but I have no idea what the first four lines are for. Based on EXTENT parameter above, what the correct .TFW values should be? Many thanks, -Kresh _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From godwin.liz at gmail.com Mon Nov 3 14:19:05 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Mon, 3 Nov 2008 17:19:05 -0500 Subject: [mapserver-users] GDAL and SDE raster Message-ID: Hey folks, We've been beating ourselves up over this problem and I'm not sure what to try next. We can't seem to connect to SDE for a raster using GDAL in mapserver. This is happening on Linux. snippit from mapfile: TYPE RASTER DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" when trying to draw a map, i get a seg fault. When trying a getFeatureinfo request, I get this error: /filepath/SDE:server,port:5151,sde,user: Image handling error. Unable to open file LayerName for layer `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does not exist in the file system, and is not recognised as a supported dataset name. ... fatal error. msRasterQueryByRect() Any ideas how I might start to debug this? I have DEBUG set to 5 in both the LAYER and MAP object in the map file. Thanks! Liz -------------- next part -------------- An HTML attachment was scrubbed... URL: From cemre.yilmaz at gmail.com Mon Nov 3 14:20:16 2008 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Tue, 4 Nov 2008 00:20:16 +0200 Subject: [mapserver-users] ms4w 3547 error Message-ID: <28babe2b0811031420q38294836q3119b97111937e75@mail.gmail.com> Hello everybody; I have tried to install ms4w web server but it doesn't work. The error code is 3547. I have found a solution but still ms4w doesn't work.If you know about this error could you please write me. Kind regards. Cemre YILMAZ -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at gmx.net Mon Nov 3 15:10:38 2008 From: armin.burger at gmx.net (Armin Burger) Date: Tue, 04 Nov 2008 00:10:38 +0100 Subject: [mapserver-users] WCS time support bugs Message-ID: <490F84EE.1010106@gmx.net> Hi everybody I wanted to test the time support functionality of WCS but this seems not to be working. There is an older bug report at http://trac.osgeo.org/mapserver/ticket/1856 but it seems this has not been fixed yet. I use a PostGIS table to store the tileindex for the time series and as mentioned in the bug report there is still a wrong filter applied to the tileindex. Did anybody already try if the fix suggested in the ticket will work? In addition, the time support of WCS does not have a time *range* similar to WMS-T "ows_timeextent" like "ows_timeextent" "2006-01-01/2006-06-01" WCS requires to list every single date of the available coverages under "wcs_timeposition" which is not very feasible for longer time series. The bug report at Ticket #2487 http://trac.osgeo.org/mapserver/ticket/2487 lists this problem as fixed, but when I use "wcs_timeposition" "2006-01-01/2006-06-01" and request a coverage with a parameter '&TIME=2006-05-11', with MapServer v5.2 I still get the exception ... WCS server error. The coverage does not have a time position of 2006-05-11. ... Any idea if the definition has to be set in another way? Best regards Armin From ivan.lucena at pmldnet.com Mon Nov 3 16:40:57 2008 From: ivan.lucena at pmldnet.com (=?utf-8?Q?Lucena,=20Ivan?=) Date: Tue, 04 Nov 2008 00:40:57 +0000 Subject: =?utf-8?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIEdEQUwgYW5kIFNERSByYXN0ZXI=?= Message-ID: <20081104004057.32445.qmail@s466.sureserver.com> I don't have SDE to tell you the truth but I would suggest you to create a VRT version of your dataset and use the VRT on your map file. [ gdal_translate -of vrt /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER replacement.vrt ] > -------Original Message------- > From: Liz Godwin > Subject: [mapserver-users] GDAL and SDE raster > Sent: Nov 03 '08 22:19 > > Hey folks, > > We've been beating ourselves up over this problem and I'm not sure > what to try next. > > We can't seem to connect to SDE for a raster using GDAL in mapserver. > This is happening on Linux. > > snippit from mapfile: > TYPE RASTER > DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" > > when trying to draw a map, i get a seg fault. When trying a > getFeatureinfo request, I get this error: > > /filepath/SDE:server,port:5151,sde,user: Image handling error. Unable to > open file LayerName for layer > `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does > not exist in the file system, and is not recognised as a supported dataset > name. > ... fatal error. > msRasterQueryByRect() > > Any ideas how I might start to debug this? I have DEBUG set to 5 in both > the LAYER and MAP object in the map file. > > Thanks! > > Liz > > -------------------- > _______________________________________________ > mapserver-users mailing list > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] > mapserver-users at lists.osgeo.org > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] > http://lists.osgeo.org/mailman/listinfo/mapserver-users From kreshna_iceheart at yahoo.com Mon Nov 3 18:43:17 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Mon, 3 Nov 2008 18:43:17 -0800 (PST) Subject: [mapserver-users] Matching .TFW file with EXTENT parameter? In-Reply-To: <49100949.379F.0037.0@asurequality.com> Message-ID: <626697.12854.qm@web56107.mail.re3.yahoo.com> Thanks, folks. But how do I know my x-pixel resolution? And y-pixel resolution? Can it be derived from EXTENT parameters? Thanks again, -Kresh --- On Mon, 11/3/08, Robert Sanson wrote: > From: Robert Sanson > Subject: Re: [mapserver-users] Matching .TFW file with EXTENT parameter? > To: mapserver-users at lists.osgeo.org, kreshna_iceheart at yahoo.com > Date: Monday, November 3, 2008, 2:35 PM > Hi Kresh > Tiff World File (.tfw) > 6 rows: > First row is x-pixel resolution (width in your coordinate > system) > Second and third rows are so-called "rotational > components" but are set to zero in the case of an > unrotated mapsheet. > The fourth row is the y-pixel resolution (dimension in > coordiantes). The negative sign indicates that the image > y-axis is positive down which is the opposite from real > world coordinates. > The 5th and 6th rows are the Easting and Northing of the > middle of the upper left pixel > Robert > > >>> "kreshna_iceheart at yahoo.com" > 3/11/2008 8:19 p.m. > >>> > I have a map file with following MapExtent parameter: > EXTENT 106.335006 -6.896956 107.315811 -5.983994 > > Recently, I got a TIFF file without coordinates. I plan to > use the TIFF file with my map. Thus, I'm supposed to > create a .TFW file using text editor, am I correct? > > Problem is: I'm not sure what parameter to be put in > the .TFW file. Here is the parameters I put in my TFW file > so far: > 1.000 > 0.000 > 0.000 > -1.000 > 106.335006 > -5.983994 > > And I failed to show the raster on my map. > > Please note that I am merely guessing. It seems that the > fifth and the sixth like of the TFW should be the leftmost > and rightmost number of my EXTENT parameter, respectively, > but I have no idea what the first four lines are for. > > Based on EXTENT parameter above, what the correct .TFW > values should be? Many thanks, > > -Kresh > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------------------------------------------ > The contents of this email are confidential to > AsureQuality. If you have received this communication in > error please notify the sender immediately and delete the > message and any attachments. The opinions expressed in this > email are not necessarily those of AsureQuality. This > message has been scanned for known viruses before delivery. > AsureQuality supports the Unsolicited Electronic Messages > Act 2007. If you do not wish to receive similar > communications in future, please notify the sender of this > message. > ------------------------------------------------------------------ > > > This message has been scanned for malware by SurfControl > plc. www.surfcontrol.com From SansonR at asurequality.com Mon Nov 3 18:56:07 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 04 Nov 2008 15:56:07 +1300 Subject: [mapserver-users] Matching .TFW file with EXTENT parameter? In-Reply-To: <626697.12854.qm@web56107.mail.re3.yahoo.com> References: <49100949.379F.0037.0@asurequality.com> <626697.12854.qm@web56107.mail.re3.yahoo.com> Message-ID: <49107096.379F.0037.0@asurequality.com> Many / most GIS have a georegistration tool, that allows you to load an image requiring registration, then click on various points within the map and enter the coordinates. The system will then orient (locate and rotate if necessary) and size the image in terms of real world coordinates. You will need to find such a GIS and use it (gvSIGm, ArcMap, MapInfo, TNTMips, Manifold and others), or else work it out from land features you can recognise. Do you know where the upper left corner of your image is located? Can you identify features on the image, such as street intersections? If you can measure the distance between features on your image (in terms of pixels) and the corresponding "on the ground" measurement, you will be able to work out the size of your pixels. Cheers, Robert S >>> "kreshna_iceheart at yahoo.com" 4/11/2008 3:43 p.m. >>> Thanks, folks. But how do I know my x-pixel resolution? And y-pixel resolution? Can it be derived from EXTENT parameters? Thanks again, -Kresh --- On Mon, 11/3/08, Robert Sanson wrote: > From: Robert Sanson > Subject: Re: [mapserver-users] Matching .TFW file with EXTENT parameter? > To: mapserver-users at lists.osgeo.org, kreshna_iceheart at yahoo.com > Date: Monday, November 3, 2008, 2:35 PM > Hi Kresh > Tiff World File (.tfw) > 6 rows: > First row is x-pixel resolution (width in your coordinate > system) > Second and third rows are so-called "rotational > components" but are set to zero in the case of an > unrotated mapsheet. > The fourth row is the y-pixel resolution (dimension in > coordiantes). The negative sign indicates that the image > y-axis is positive down which is the opposite from real > world coordinates. > The 5th and 6th rows are the Easting and Northing of the > middle of the upper left pixel > Robert > > >>> "kreshna_iceheart at yahoo.com" > 3/11/2008 8:19 p.m. > >>> > I have a map file with following MapExtent parameter: > EXTENT 106.335006 -6.896956 107.315811 -5.983994 > > Recently, I got a TIFF file without coordinates. I plan to > use the TIFF file with my map. Thus, I'm supposed to > create a .TFW file using text editor, am I correct? > > Problem is: I'm not sure what parameter to be put in > the .TFW file. Here is the parameters I put in my TFW file > so far: > 1.000 > 0.000 > 0.000 > -1.000 > 106.335006 > -5.983994 > > And I failed to show the raster on my map. > > Please note that I am merely guessing. It seems that the > fifth and the sixth like of the TFW should be the leftmost > and rightmost number of my EXTENT parameter, respectively, > but I have no idea what the first four lines are for. > > Based on EXTENT parameter above, what the correct .TFW > values should be? Many thanks, > > -Kresh > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------------------------------------------ > The contents of this email are confidential to > AsureQuality. If you have received this communication in > error please notify the sender immediately and delete the > message and any attachments. The opinions expressed in this > email are not necessarily those of AsureQuality. This > message has been scanned for known viruses before delivery. > AsureQuality supports the Unsolicited Electronic Messages > Act 2007. If you do not wish to receive similar > communications in future, please notify the sender of this > message. > ------------------------------------------------------------------ > > > This message has been scanned for malware by SurfControl > plc. www.surfcontrol.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Mon Nov 3 23:31:09 2008 From: stephan.holl at intevation.de (Stephan Holl) Date: Tue, 4 Nov 2008 08:31:09 +0100 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite In-Reply-To: <490F0BF5.3080305@mapgears.com> References: <20081103152045.7c01acd8@thoe.hq.intevation.de> <490F0BF5.3080305@mapgears.com> Message-ID: <20081104083109.63aeca4c@thoe.hq.intevation.de> Hello Daniel, Daniel Morissette , [20081103 - 09:34:29] thanks for your fast reply. > QUERYMAP HILITE works in our apps, so it must be something specific > to your config or mapfile that triggers the issue. If you could > please file a ticket with a simple testcase (data, mapfile and > request URL) I am using php/mapscript with a fairly old php (4.4.7). MS 4.10.3 works as expected, but it seems that it has a memory-leak somewhere (but that's a different topic). I first thought that the search-stuff is handled somewhat different in ms 5.x, but when setting the querymap to selected the searched features are found correctly. > to reproduce the issue then we can have a look. I will try to sort out a little script with mapfile to reproduce it. Best Stephan > Stephan Holl wrote: > > Dear mapserver-users, > > > > I am updating a mapserver 4.1.0.3 app to mapserver 5.2.0 and found > > the issue that the following mapfile-block produces a seg fault with > > php-mapscript. > > > > QUERYMAP > > COLOR 0 255 255 > > STATUS on > > STYLE hilite > > END > > > > With mapserver 4.10.3 everything was fine. Is this a known issue? > > Setting it the querymap to something else than STYLE 'hilite' > > everything works normal. > > > > Did anybody run into this? I found a bug about another > > hilite-stuff[1], but also the 5.2-branch from SVN has this > > behaviour. > > > > Thanks for any comments on this. > > > > Best > > > > Stephan > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Stephan Holl | Tel.: +49 (0)541-33 50 8 32 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: 197 bytes Desc: not available URL: From snaperski at gmail.com Mon Nov 3 23:45:32 2008 From: snaperski at gmail.com (Raivo Alla) Date: Tue, 4 Nov 2008 09:45:32 +0200 Subject: [mapserver-users] AGG and cartoline trap Message-ID: <49dc012b0811032345o3a89435amb465a3267ab14a3a@mail.gmail.com> Hi! I have question about AGG incapability to handle CARTOLINE type of symbols which in my case leads to problem - I can't figure out how I can manage to describe symbol seen here: http://picasaweb.google.com/snaperski/Ort#5264703564091103650 With GD rendering I could use symbol definition as follows: SYMBOL NAME "dotline" TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 3 STYLE 1 20 1 20 END END and in mapfile describe the style like that: CLASS NAME "Elektriliin" EXPRESSION '10' STYLE SYMBOL "line" SIZE 1 COLOR 0 0 0 END STYLE SYMBOL "dotline" SIZE 8 #vertical stripes COLOR 0 0 0 END END How I can do that without cartolines? Sincerely, Raivo Alla From umberto.nicoletti at gmail.com Mon Nov 3 23:46:24 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 4 Nov 2008 08:46:24 +0100 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite In-Reply-To: <20081103152045.7c01acd8@thoe.hq.intevation.de> References: <20081103152045.7c01acd8@thoe.hq.intevation.de> Message-ID: <75b4b93e0811032346i4f677186vfd26c0338b15c9a3@mail.gmail.com> I was hit by the same bug: when you specify hilite you MUST have a style section for each of your classes. The fix is therefore to add a style section to ALL of your classes. Failure to comply will cause the new agg code (I think the gd renderer is immune, but it needs to be checked) to dereference a null pointer. The problem also exists with cgi mapserver and is not only related to mapscript. Umberto On Mon, Nov 3, 2008 at 3:20 PM, Stephan Holl wrote: > Dear mapserver-users, > > I am updating a mapserver 4.1.0.3 app to mapserver 5.2.0 and found the > issue that the following mapfile-block produces a seg fault with > php-mapscript. > > QUERYMAP > COLOR 0 255 255 > STATUS on > STYLE hilite > END > > With mapserver 4.10.3 everything was fine. Is this a known issue? > Setting it the querymap to something else than STYLE 'hilite' > everything works normal. > > Did anybody run into this? I found a bug about another hilite-stuff[1], > but also the 5.2-branch from SVN has this behaviour. > > Thanks for any comments on this. > > Best > > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 50 8 32 > 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 stephan.holl at intevation.de Tue Nov 4 00:05:29 2008 From: stephan.holl at intevation.de (Stephan Holl) Date: Tue, 4 Nov 2008 09:05:29 +0100 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite In-Reply-To: <75b4b93e0811032346i4f677186vfd26c0338b15c9a3@mail.gmail.com> References: <20081103152045.7c01acd8@thoe.hq.intevation.de> <75b4b93e0811032346i4f677186vfd26c0338b15c9a3@mail.gmail.com> Message-ID: <20081104090529.3a13410c@thoe.hq.intevation.de> Hello Umberto, "Umberto Nicoletti" , [20081104 - 08:46:24] > I was hit by the same bug: > > when you specify hilite you MUST have a style section for each of your > classes. The fix is therefore to add a style section to ALL of your > classes. You mean each of my classes of layers which are being queryable? > > Failure to comply will cause the new agg code (I think the gd renderer > is immune, but it needs to be checked) to dereference a null pointer. > The problem also exists with cgi mapserver and is not only related to > mapscript. Ah, I am using the gd-rendering though. Ugh, thank your for your hint. I was not aware of that. Did I overlook this issue in the migration-guide? Stephan > On Mon, Nov 3, 2008 at 3:20 PM, Stephan Holl > wrote: > > Dear mapserver-users, > > > > I am updating a mapserver 4.1.0.3 app to mapserver 5.2.0 and found > > the issue that the following mapfile-block produces a seg fault with > > php-mapscript. > > > > QUERYMAP > > COLOR 0 255 255 > > STATUS on > > STYLE hilite > > END > > > > With mapserver 4.10.3 everything was fine. Is this a known issue? > > Setting it the querymap to something else than STYLE 'hilite' > > everything works normal. > > > > Did anybody run into this? I found a bug about another > > hilite-stuff[1], but also the 5.2-branch from SVN has this > > behaviour. > > > > Thanks for any comments on this. > > > > Best > > > > Stephan > > > > -- > > Stephan Holl | Tel.: +49 (0)541-33 50 > > 8 32 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 > > > > -- Stephan Holl | Tel.: +49 (0)541-33 50 8 32 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: 197 bytes Desc: not available URL: From umberto.nicoletti at gmail.com Tue Nov 4 00:10:26 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 4 Nov 2008 09:10:26 +0100 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite In-Reply-To: <20081104090529.3a13410c@thoe.hq.intevation.de> References: <20081103152045.7c01acd8@thoe.hq.intevation.de> <75b4b93e0811032346i4f677186vfd26c0338b15c9a3@mail.gmail.com> <20081104090529.3a13410c@thoe.hq.intevation.de> Message-ID: <75b4b93e0811040010w15c74daended74c11205f7e8@mail.gmail.com> On Tue, Nov 4, 2008 at 9:05 AM, Stephan Holl wrote: > Hello Umberto, > > "Umberto Nicoletti" , [20081104 - 08:46:24] > >> I was hit by the same bug: >> >> when you specify hilite you MUST have a style section for each of your >> classes. The fix is therefore to add a style section to ALL of your >> classes. > > You mean each of my classes of layers which are being queryable? exactly. > >> >> Failure to comply will cause the new agg code (I think the gd renderer >> is immune, but it needs to be checked) to dereference a null pointer. >> The problem also exists with cgi mapserver and is not only related to >> mapscript. > > Ah, I am using the gd-rendering though. then I must correct my statement: also the gd driver is affected. The bug was introduced when we (mostly I, for those who like finger pointing ;-) ) rewrote the layers, classes, styles arrays to be arrays of pointers. I'll file an issue on bugzilla later today. > > Ugh, thank your for your hint. I was not aware of that. Did I overlook > this issue in the migration-guide? Nope, I think we (the developers) were not aware of this problem until now so it was probably not documented there. Umberto > > Stephan > > >> On Mon, Nov 3, 2008 at 3:20 PM, Stephan Holl >> wrote: >> > Dear mapserver-users, >> > >> > I am updating a mapserver 4.1.0.3 app to mapserver 5.2.0 and found >> > the issue that the following mapfile-block produces a seg fault with >> > php-mapscript. >> > >> > QUERYMAP >> > COLOR 0 255 255 >> > STATUS on >> > STYLE hilite >> > END >> > >> > With mapserver 4.10.3 everything was fine. Is this a known issue? >> > Setting it the querymap to something else than STYLE 'hilite' >> > everything works normal. >> > >> > Did anybody run into this? I found a bug about another >> > hilite-stuff[1], but also the 5.2-branch from SVN has this >> > behaviour. >> > >> > Thanks for any comments on this. >> > >> > Best >> > >> > Stephan >> > >> > -- >> > Stephan Holl | Tel.: +49 (0)541-33 50 >> > 8 32 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 >> > >> > > > > -- > Stephan Holl | Tel.: +49 (0)541-33 50 8 32 > 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 thomas.bonfort at gmail.com Tue Nov 4 00:40:18 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 4 Nov 2008 09:40:18 +0100 Subject: [mapserver-users] AGG and cartoline trap In-Reply-To: <49dc012b0811032345o3a89435amb465a3267ab14a3a@mail.gmail.com> References: <49dc012b0811032345o3a89435amb465a3267ab14a3a@mail.gmail.com> Message-ID: you can get that with a truetype or vector symbol SYMBOL NAME 'rail' TYPE TRUETYPE FONT arial CHARACTER '|' GAP -20 END then STYLE COLOR 0 0 0 WIDTH 1 END STYLE COLOR 0 0 0 SIZE 8 SYMBOL 'rail' END cheers, thomas On Tue, Nov 4, 2008 at 08:45, Raivo Alla wrote: > Hi! > > I have question about AGG incapability to handle CARTOLINE type of > symbols which in my case leads to problem - I can't figure out how I > can manage to describe symbol > seen here: http://picasaweb.google.com/snaperski/Ort#5264703564091103650 > > With GD rendering I could use symbol definition as follows: > > SYMBOL > NAME "dotline" > TYPE cartoline > LINECAP butt > LINEJOIN miter > LINEJOINMAXSIZE 3 > STYLE > 1 20 1 20 > END > END > > and in mapfile describe the style like that: > > CLASS > NAME "Elektriliin" > EXPRESSION '10' > STYLE > SYMBOL "line" > SIZE 1 > COLOR 0 0 0 > END > STYLE > SYMBOL "dotline" > SIZE 8 #vertical stripes > COLOR 0 0 0 > END > END > > How I can do that without cartolines? > > > Sincerely, > Raivo Alla > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stephan.holl at intevation.de Tue Nov 4 00:40:43 2008 From: stephan.holl at intevation.de (Stephan Holl) Date: Tue, 4 Nov 2008 09:40:43 +0100 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite In-Reply-To: <75b4b93e0811040010w15c74daended74c11205f7e8@mail.gmail.com> References: <20081103152045.7c01acd8@thoe.hq.intevation.de> <75b4b93e0811032346i4f677186vfd26c0338b15c9a3@mail.gmail.com> <20081104090529.3a13410c@thoe.hq.intevation.de> <75b4b93e0811040010w15c74daended74c11205f7e8@mail.gmail.com> Message-ID: <20081104094043.399053e6@thoe.hq.intevation.de> Hello Umberto, "Umberto Nicoletti" , [20081104 - 09:10:26] > On Tue, Nov 4, 2008 at 9:05 AM, Stephan Holl > wrote: > > Hello Umberto, > > > > "Umberto Nicoletti" , [20081104 - > > 08:46:24] > > > >> I was hit by the same bug: > >> > >> when you specify hilite you MUST have a style section for each of > >> your classes. The fix is therefore to add a style section to ALL > >> of your classes. > > > > You mean each of my classes of layers which are being queryable? > > exactly. uff, my mapfile is more than 10000 lines long and has _many_ classes... But yes, testing with one layer and it worked. > >> Failure to comply will cause the new agg code (I think the gd > >> renderer is immune, but it needs to be checked) to dereference a > >> null pointer. The problem also exists with cgi mapserver and is > >> not only related to mapscript. > > > > Ah, I am using the gd-rendering though. > > then I must correct my statement: also the gd driver is affected. The > bug was introduced when we (mostly I, for those who like finger > pointing ;-) ) rewrote the layers, classes, styles arrays to be arrays > of pointers. > > I'll file an issue on bugzilla later today. Please drop a note (and a URL) on this thread so we find it. > > Ugh, thank your for your hint. I was not aware of that. Did I > > overlook this issue in the migration-guide? > > Nope, I think we (the developers) were not aware of this problem until > now so it was probably not documented there. Thank you for clarifying! Best regards Stephan > >> On Mon, Nov 3, 2008 at 3:20 PM, Stephan Holl > >> wrote: > >> > Dear mapserver-users, > >> > > >> > I am updating a mapserver 4.1.0.3 app to mapserver 5.2.0 and > >> > found the issue that the following mapfile-block produces a seg > >> > fault with php-mapscript. > >> > > >> > QUERYMAP > >> > COLOR 0 255 255 > >> > STATUS on > >> > STYLE hilite > >> > END > >> > > >> > With mapserver 4.10.3 everything was fine. Is this a known issue? > >> > Setting it the querymap to something else than STYLE 'hilite' > >> > everything works normal. > >> > > >> > Did anybody run into this? I found a bug about another > >> > hilite-stuff[1], but also the 5.2-branch from SVN has this > >> > behaviour. > >> > > >> > Thanks for any comments on this. > >> > > >> > Best > >> > > >> > Stephan > >> > > >> > -- > >> > Stephan Holl | Tel.: +49 (0)541-33 > >> > 50 8 32 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 > >> > > >> > > > > > > > -- > > Stephan Holl | Tel.: +49 (0)541-33 50 > > 8 32 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - > > HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. > > Jan-Oliver Wagner > > -- Stephan Holl | Tel.: +49 (0)541-33 50 8 32 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: 197 bytes Desc: not available URL: From snaperski at gmail.com Tue Nov 4 01:19:43 2008 From: snaperski at gmail.com (Raivo Alla) Date: Tue, 4 Nov 2008 11:19:43 +0200 Subject: [mapserver-users] AGG and cartoline trap In-Reply-To: References: <49dc012b0811032345o3a89435amb465a3267ab14a3a@mail.gmail.com> Message-ID: <49dc012b0811040119i54d99854l5da28b27c2b5417c@mail.gmail.com> Thank you! Very nice-looking and elegant solution;) Raivo On Tue, Nov 4, 2008 at 10:40 AM, thomas bonfort wrote: > you can get that with a truetype or vector symbol > > SYMBOL > NAME 'rail' > TYPE TRUETYPE > FONT arial > CHARACTER '|' > GAP -20 > END > > then > > STYLE > COLOR 0 0 0 > WIDTH 1 > END > STYLE > COLOR 0 0 0 > SIZE 8 > SYMBOL 'rail' > END > > cheers, > thomas > > On Tue, Nov 4, 2008 at 08:45, Raivo Alla wrote: >> Hi! >> >> I have question about AGG incapability to handle CARTOLINE type of >> symbols which in my case leads to problem - I can't figure out how I >> can manage to describe symbol >> seen here: http://picasaweb.google.com/snaperski/Ort#5264703564091103650 >> >> With GD rendering I could use symbol definition as follows: >> >> SYMBOL >> NAME "dotline" >> TYPE cartoline >> LINECAP butt >> LINEJOIN miter >> LINEJOINMAXSIZE 3 >> STYLE >> 1 20 1 20 >> END >> END >> >> and in mapfile describe the style like that: >> >> CLASS >> NAME "Elektriliin" >> EXPRESSION '10' >> STYLE >> SYMBOL "line" >> SIZE 1 >> COLOR 0 0 0 >> END >> STYLE >> SYMBOL "dotline" >> SIZE 8 #vertical stripes >> COLOR 0 0 0 >> END >> END >> >> How I can do that without cartolines? >> >> >> Sincerely, >> Raivo Alla >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From veeraswamyd at yahoo.co.in Tue Nov 4 03:05:54 2008 From: veeraswamyd at yahoo.co.in (lakku) Date: Tue, 4 Nov 2008 03:05:54 -0800 (PST) Subject: [MAPSERVER-USERS] installation error Message-ID: <20320172.post@talk.nabble.com> hi all iam new to mapserver i have downloaded ms4w_2.3.0.zip file on desktop when i extract this file into C folder it is displaying error as "cannot create ms4w\apache\bin\httpd.exe access is denied" plz tell me why it happens -- View this message in context: http://www.nabble.com/installation-error-tp20320172p20320172.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Tue Nov 4 03:17:54 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 4 Nov 2008 16:47:54 +0530 Subject: [MAPSERVER-USERS] installation error In-Reply-To: <20320172.post@talk.nabble.com> References: <20320172.post@talk.nabble.com> Message-ID: <002401c93e6f$00ee02a0$02ca07e0$@com> Hi, http://dl.maptools.org/dl/ms4w/ .This url contains all versions of mapserver. please download and extract somewhere in you local drive. Copy the ms4w to C Drive. Thanks Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of lakku Sent: Tuesday, November 04, 2008 4:36 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] installation error hi all iam new to mapserver i have downloaded ms4w_2.3.0.zip file on desktop when i extract this file into C folder it is displaying error as "cannot create ms4w\apache\bin\httpd.exe access is denied" plz tell me why it happens -- View this message in context: http://www.nabble.com/installation-error-tp20320172p20320172.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 cnieman at dmsolutions.ca Tue Nov 4 03:54:31 2008 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 04 Nov 2008 06:54:31 -0500 Subject: [mapserver-users] AGG and cartoline trap In-Reply-To: <49dc012b0811032345o3a89435amb465a3267ab14a3a@mail.gmail.com> References: <49dc012b0811032345o3a89435amb465a3267ab14a3a@mail.gmail.com> Message-ID: <491037F7.7020902@dmsolutions.ca> Hi, There is a symbol type "simple" that does more or less the same as cartolines. SYMBOL NAME "dotline" TYPE simple LINECAP butt LINEJOIN miter PATTERN 1 20 1 20 END END should do the trick. Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca Raivo Alla wrote: > Hi! > > I have question about AGG incapability to handle CARTOLINE type of > symbols which in my case leads to problem - I can't figure out how I > can manage to describe symbol > seen here: http://picasaweb.google.com/snaperski/Ort#5264703564091103650 > > With GD rendering I could use symbol definition as follows: > > SYMBOL > NAME "dotline" > TYPE cartoline > LINECAP butt > LINEJOIN miter > LINEJOINMAXSIZE 3 > STYLE > 1 20 1 20 > END > END > > and in mapfile describe the style like that: > > CLASS > NAME "Elektriliin" > EXPRESSION '10' > STYLE > SYMBOL "line" > SIZE 1 > COLOR 0 0 0 > END > STYLE > SYMBOL "dotline" > SIZE 8 #vertical stripes > COLOR 0 0 0 > END > END > > How I can do that without cartolines? > > > Sincerely, > Raivo Alla > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca Web: http://research.dmsolutions.ca Phone: 613-565-5056 x12 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Tue Nov 4 03:58:51 2008 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Tue, 04 Nov 2008 06:58:51 -0500 Subject: [mapserver-users] AGG and cartoline trap In-Reply-To: <491037F7.7020902@dmsolutions.ca> References: <49dc012b0811032345o3a89435amb465a3267ab14a3a@mail.gmail.com> <491037F7.7020902@dmsolutions.ca> Message-ID: <491038FB.4080300@dmsolutions.ca> Ah, never mind, Thomas' answer is better. But for future reference, symbol type simple provides the LINECAP and LINEJOIN options for line styling that cartoline used to provide. C Christy Nieman wrote: > Hi, > > There is a symbol type "simple" that does more or less the same as > cartolines. > > SYMBOL > NAME "dotline" > TYPE simple > LINECAP butt > LINEJOIN miter > PATTERN > 1 20 1 20 > END > END > > should do the trick. > > Christy > > -- > Christy Nieman > GIS Technician > DM Solutions Group, Inc. > Email: cnieman at dmsolutions.ca > Web: http://dmsolutions.ca > Web: http://research.dmsolutions.ca > > Raivo Alla wrote: >> Hi! >> >> I have question about AGG incapability to handle CARTOLINE type of >> symbols which in my case leads to problem - I can't figure out how I >> can manage to describe symbol >> seen here: http://picasaweb.google.com/snaperski/Ort#5264703564091103650 >> >> With GD rendering I could use symbol definition as follows: >> >> SYMBOL >> NAME "dotline" >> TYPE cartoline >> LINECAP butt >> LINEJOIN miter >> LINEJOINMAXSIZE 3 >> STYLE >> 1 20 1 20 >> END >> END >> >> and in mapfile describe the style like that: >> >> CLASS >> NAME "Elektriliin" >> EXPRESSION '10' >> STYLE >> SYMBOL "line" >> SIZE 1 >> COLOR 0 0 0 >> END >> STYLE >> SYMBOL "dotline" >> SIZE 8 #vertical stripes >> COLOR 0 0 0 >> END >> END >> >> How I can do that without cartolines? >> >> >> Sincerely, >> Raivo Alla >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -- > Christy Nieman > GIS Technician > DM Solutions Group, Inc. > Email: cnieman at dmsolutions.ca > Web: http://dmsolutions.ca > Web: http://research.dmsolutions.ca > Phone: 613-565-5056 x12 > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Nov 4 05:21:10 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 4 Nov 2008 15:21:10 +0200 Subject: [MAPSERVER-USERS] installation error In-Reply-To: <20320172.post@talk.nabble.com> Message-ID: Hi, Did unzip otherwise go as supposed, so that c:\ms4w directory was created and some files got extracted there? Some wild guesses: You have a managered computer and you do not have enough right for the file system; security settings or antivirus software denies installation of web server; zip file is corrupt. In case of managered computer try unzipping to some other drive than system drive, they are usually not as strictly controlled. If you do not have any have a try with USB drive. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta lakku > L?hetetty: 4. marraskuuta 2008 13:06 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [MAPSERVER-USERS] installation error > > > hi all > iam new to mapserver > i have downloaded ms4w_2.3.0.zip file on desktop when i > extract this file into C folder it is displaying error as > "cannot create ms4w\apache\bin\httpd.exe access is denied" > plz tell me why it happens > -- > View this message in context: > http://www.nabble.com/installation-error-tp20320172p20320172.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 godwin.liz at gmail.com Tue Nov 4 05:24:52 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 4 Nov 2008 08:24:52 -0500 Subject: [mapserver-users] GDAL and SDE raster In-Reply-To: <20081104004057.32445.qmail@s466.sureserver.com> References: <20081104004057.32445.qmail@s466.sureserver.com> Message-ID: Thank you, but that option doesn't appear to work for Raster data types. Liz On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan wrote: > I don't have SDE to tell you the truth but I would suggest you to create a > VRT version of your dataset and use the VRT on your map file. [ > gdal_translate -of vrt > /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER > replacement.vrt ] > > > -------Original Message------- > > From: Liz Godwin > > Subject: [mapserver-users] GDAL and SDE raster > > Sent: Nov 03 '08 22:19 > > > > Hey folks, > > > > We've been beating ourselves up over this problem and I'm not sure > > what to try next. > > > > We can't seem to connect to SDE for a raster using GDAL in mapserver. > > This is happening on Linux. > > > > snippit from mapfile: > > TYPE RASTER > > DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" > > > > when trying to draw a map, i get a seg fault. When trying a > > getFeatureinfo request, I get this error: > > > > /filepath/SDE:server,port:5151,sde,user: Image handling error. Unable to > > open file LayerName for layer > > `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does > > not exist in the file system, and is not recognised as a supported > dataset > > name. > > ... fatal error. > > msRasterQueryByRect() > > > > Any ideas how I might start to debug this? I have DEBUG set to 5 in > both > > the LAYER and MAP object in the map file. > > > > Thanks! > > > > Liz > > > > -------------------- > > _______________________________________________ > > mapserver-users mailing list > > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] > > mapserver-users at lists.osgeo.org > > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at gmail.com Tue Nov 4 06:04:42 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 4 Nov 2008 15:04:42 +0100 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite In-Reply-To: <20081104094043.399053e6@thoe.hq.intevation.de> References: <20081103152045.7c01acd8@thoe.hq.intevation.de> <75b4b93e0811032346i4f677186vfd26c0338b15c9a3@mail.gmail.com> <20081104090529.3a13410c@thoe.hq.intevation.de> <75b4b93e0811040010w15c74daended74c11205f7e8@mail.gmail.com> <20081104094043.399053e6@thoe.hq.intevation.de> Message-ID: <75b4b93e0811040604p2c8b8992kd4a205b3095fa907@mail.gmail.com> issue created: http://trac.osgeo.org/mapserver/ticket/2803 From ron at ocean.org.il Tue Nov 4 06:01:47 2008 From: ron at ocean.org.il (Ron Goldman) Date: Tue, 04 Nov 2008 16:01:47 +0200 Subject: [mapserver-users] Re: GDAL and SDE raster Message-ID: <491055CB.2010801@ocean.org.il> I had a similar problem with NetCDF raster. It probably won't help much for SDE but make sure you have absolute filepath after the "SDE:" and not before it. Date: Tue, 4 Nov 2008 08:24:52 -0500 From: "Liz Godwin" Subject: Re: [mapserver-users] GDAL and SDE raster To: "Lucena, Ivan" Cc: eidsnessl at agr.gc.ca, mapserver-users at lists.osgeo.org, whittekerc at agr.gc.ca Message-ID: Content-Type: text/plain; charset="iso-8859-1" Thank you, but that option doesn't appear to work for Raster data types. Liz On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan wrote: > > I don't have SDE to tell you the truth but I would suggest you to create a > > VRT version of your dataset and use the VRT on your map file. [ > > gdal_translate -of vrt > > /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER > > replacement.vrt ] > > > >> > > -------Original Message------- >> > > From: Liz Godwin >> > > Subject: [mapserver-users] GDAL and SDE raster >> > > Sent: Nov 03 '08 22:19 >> > > >> > > Hey folks, >> > > >> > > We've been beating ourselves up over this problem and I'm not sure >> > > what to try next. >> > > >> > > We can't seem to connect to SDE for a raster using GDAL in mapserver. >> > > This is happening on Linux. >> > > >> > > snippit from mapfile: >> > > TYPE RASTER >> > > DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" >> > > >> > > when trying to draw a map, i get a seg fault. When trying a >> > > getFeatureinfo request, I get this error: >> > > >> > > /filepath/SDE:server,port:5151,sde,user: Image handling error. Unable to >> > > open file LayerName for layer >> > > `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does >> > > not exist in the file system, and is not recognised as a supported >> > > dataset > >> > > name. >> > > ... fatal error. >> > > msRasterQueryByRect() >> > > >> > > Any ideas how I might start to debug this? I have DEBUG set to 5 in >> > > both > >> > > the LAYER and MAP object in the map file. >> > > >> > > Thanks! >> > > >> > > Liz >> > > >> > > -------------------- >> > > _______________________________________________ >> > > mapserver-users mailing list >> > > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] >> > > mapserver-users at lists.osgeo.org >> > > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users *********************************************************** This outgoing email was scanned for viruses and other malicious content by the IT Department of Israel Oceanographic & Limnological Research. AntiVirus system managed by Eli W. Tel. 972-4-8565267 IMPORTANT: Do not open attachments from unrecognized senders. Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe. *********************************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: ron.vcf Type: text/x-vcard Size: 338 bytes Desc: not available URL: From godwin.liz at gmail.com Tue Nov 4 07:01:19 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 4 Nov 2008 10:01:19 -0500 Subject: [mapserver-users] Re: GDAL and SDE raster In-Reply-To: <491055CB.2010801@ocean.org.il> References: <491055CB.2010801@ocean.org.il> Message-ID: Well, there is no filepath, that's what confusing me. The error message suggests that it is looking in one, but it's SDE. I forgot to mention before that I did a test with the gdalinfo utility, and it seemed to find the correct thing in SDE. Liz On Tue, Nov 4, 2008 at 9:01 AM, Ron Goldman wrote: > I had a similar problem with NetCDF raster. It probably won't help much for > SDE > but make sure you have absolute filepath after the "SDE:" and not before > it. > > > Date: Tue, 4 Nov 2008 08:24:52 -0500 > From: "Liz Godwin" > Subject: Re: [mapserver-users] GDAL and SDE raster > To: "Lucena, Ivan" > Cc: eidsnessl at agr.gc.ca, mapserver-users at lists.osgeo.org, > whittekerc at agr.gc.ca > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > > > Thank you, but that option doesn't appear to work for Raster data types. > > > Liz > > > On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan >wrote: > > > > I don't have SDE to tell you the truth but I would suggest you to create >> a >> > VRT version of your dataset and use the VRT on your map file. [ >> > gdal_translate -of vrt >> > /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER >> > replacement.vrt ] >> > >> >> >>> > > -------Original Message------- >>> > > From: Liz Godwin >>> > > Subject: [mapserver-users] GDAL and SDE raster >>> > > Sent: Nov 03 '08 22:19 >>> > > >>> > > Hey folks, >>> > > >>> > > We've been beating ourselves up over this problem and I'm not sure >>> > > what to try next. >>> > > >>> > > We can't seem to connect to SDE for a raster using GDAL in >>> mapserver. >>> > > This is happening on Linux. >>> > > >>> > > snippit from mapfile: >>> > > TYPE RASTER >>> > > DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" >>> > > >>> > > when trying to draw a map, i get a seg fault. When trying a >>> > > getFeatureinfo request, I get this error: >>> > > >>> > > /filepath/SDE:server,port:5151,sde,user: Image handling error. >>> Unable to >>> > > open file LayerName for layer >>> > > `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' >>> does >>> > > not exist in the file system, and is not recognised as a supported >>> >>> >> > dataset >> >> >>> > > name. >>> > > ... fatal error. >>> > > msRasterQueryByRect() >>> > > >>> > > Any ideas how I might start to debug this? I have DEBUG set to 5 in >>> >>> >> > both >> >> >>> > > the LAYER and MAP object in the map file. >>> > > >>> > > Thanks! >>> > > >>> > > Liz >>> > > >>> > > -------------------- >>> > > _______________________________________________ >>> > > mapserver-users mailing list >>> > > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] >>> > > mapserver-users at lists.osgeo.org >>> > > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] >>> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > >> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html > > ------------------------------ > > _______________________________________________ > > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > *********************************************************** > This outgoing email was scanned for viruses and other malicious content by > the IT Department of Israel Oceanographic & Limnological Research. > AntiVirus system managed by Eli W. Tel. 972-4-8565267 > IMPORTANT: Do not open attachments from unrecognized senders. Never open > attached files with extensions: *.pif, *.scr, *.vbs, *.exe. > *********************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.lucena at pmldnet.com Tue Nov 4 07:13:28 2008 From: ivan.lucena at pmldnet.com (=?utf-8?Q?Lucena,=20Ivan?=) Date: Tue, 04 Nov 2008 15:13:28 +0000 Subject: =?utf-8?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIFJlOiBHREFMIGFuZCBTREUgcmFzdGVy?= Message-ID: <20081104151328.19377.qmail@s466.sureserver.com> Ron, Some raster driver in GDAL are not flie based but RDBMS based but most of the softwares based on GDAL did not noticed that change. In those case, instead of a file path what you need is a identification string but those software usually have code to grab the file path, to check if the file really exist, to check other files on the same folder and that is where it crashes. What I suggest to Liz is to use a VRT file instead of the identification string. As you might know, a VRT file does not contain the data but a path to the real data set. I use that trick to load images direct from the RDBMS server to OpenEv and QuantumGIS: % gdal_translate -of VRT ... check if it works: % gdalinfo ... check what is inside it: % more ... load it: % openev % qgis ... click on add layer ... select your I thought that it would work for mapserve too... /filepath/ But Liz tried and said it doesn't. Too bad, I was counting on it. ;( Regards, Ivan > -------Original Message------- > From: Ron Goldman > Subject: [mapserver-users] Re: GDAL and SDE raster > Sent: Nov 04 '08 14:01 > > I had a similar problem with NetCDF raster. It probably won't help much for SDE > but make sure you have absolute filepath after the "SDE:" and not before it. > > > Date: Tue, 4 Nov 2008 08:24:52 -0500 > From: "Liz Godwin" > Subject: Re: [mapserver-users] GDAL and SDE raster > To: "Lucena, Ivan" > Cc: eidsnessl at agr.gc.ca, mapserver-users at lists.osgeo.org, > whittekerc at agr.gc.ca > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > > Thank you, but that option doesn't appear to work for Raster data types. > > > Liz > > > On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan wrote: > > > > > I don't have SDE to tell you the truth but I would suggest you to create a > > > VRT version of your dataset and use the VRT on your map file. [ > > > gdal_translate -of vrt > > > /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER > > > replacement.vrt ] > > > > >?? > >> > >??-------Original Message------- > >> > >??From: Liz Godwin > >> > >??Subject: [mapserver-users] GDAL and SDE raster > >> > >??Sent: Nov 03 '08 22:19 > >> > > > >> > >??Hey folks, > >> > > > >> > >??We've been beating ourselves up over this problem and I'm not sure > >> > >??what to try next. > >> > > > >> > >??We can't seem to connect to SDE for a raster using GDAL in mapserver. > >> > >??This is happening on Linux. > >> > > > >> > >??snippit from mapfile: > >> > >??TYPE RASTER > >> > >??DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" > >> > > > >> > >??when trying to draw a map, i get a seg fault.??When trying a > >> > >??getFeatureinfo request, I get this error: > >> > > > >> > >??/filepath/SDE:server,port:5151,sde,user: Image handling error. Unable to > >> > >??open file LayerName for layer > >> > >??`/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does > >> > >??not exist in the file system, and is not recognised as a supported > >>???? > > > dataset > >?? > >> > >??name. > >> > >??... fatal error. > >> > >??msRasterQueryByRect() > >> > > > >> > >??Any ideas how I might start to debug this???I have DEBUG set to 5 in > >>???? > > > both > >?? > >> > >??the LAYER and MAP object in the map file. > >> > > > >> > >??Thanks! > >> > > > >> > >??Liz > >> > > > >> > >??-------------------- > >> > >??_______________________________________________ > >> > >??mapserver-users mailing list > >> > >??[LINK: compose.php?to=mapserver-users at lists.osgeo.org] > >> > >??mapserver-users at lists.osgeo.org > >> > >??[LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] > >> > >??http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>???? > > > > >?? > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html > > ------------------------------ > > _______________________________________________ > > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > *********************************************************** > This outgoing email was scanned for viruses and other malicious content by the IT Department of Israel Oceanographic & Limnological Research. > AntiVirus system managed by Eli W. Tel. 972-4-8565267 > IMPORTANT: Do not open attachments from unrecognized senders. > Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe. > ***********************************************************________________________________ _______________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From godwin.liz at gmail.com Tue Nov 4 07:41:13 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 4 Nov 2008 10:41:13 -0500 Subject: [mapserver-users] Re: GDAL and SDE raster In-Reply-To: <20081104151328.19377.qmail@s466.sureserver.com> References: <20081104151328.19377.qmail@s466.sureserver.com> Message-ID: I'll give it a try. I didn't actually try it - I read the docs and it didn't suggest that it would support rasters. Liz On Tue, Nov 4, 2008 at 10:13 AM, Lucena, Ivan wrote: > Ron, > > Some raster driver in GDAL are not flie based but RDBMS based but most of > the softwares based on GDAL did not > noticed that change. In those case, instead of a file path what you need is > a identification string but those software > usually have code to grab the file path, to check if the file really exist, > to check other files on the same folder and > that is where it crashes. > > What I suggest to Liz is to use a VRT file instead of the identification > string. As you might know, a VRT file does not > contain the data but a path to the real data set. > > I use that trick to load images direct from the RDBMS server to OpenEv and > QuantumGIS: > > % gdal_translate -of VRT > > ... check if it works: > % gdalinfo > ... check what is inside it: > % more > ... load it: > % openev > % qgis > ... click on add layer > ... select your > > I thought that it would work for mapserve too... > > /filepath/ > > But Liz tried and said it doesn't. Too bad, I was counting on it. ;( > > Regards, > > Ivan > > > -------Original Message------- > > From: Ron Goldman > > Subject: [mapserver-users] Re: GDAL and SDE raster > > Sent: Nov 04 '08 14:01 > > > > I had a similar problem with NetCDF raster. It probably won't help much > for SDE > > but make sure you have absolute filepath after the "SDE:" and not before > it. > > > > > > Date: Tue, 4 Nov 2008 08:24:52 -0500 > > From: "Liz Godwin" > > Subject: Re: [mapserver-users] GDAL and SDE raster > > To: "Lucena, Ivan" > > Cc: eidsnessl at agr.gc.ca, mapserver-users at lists.osgeo.org, > > whittekerc at agr.gc.ca > > Message-ID: > > > > Content-Type: text/plain; charset="iso-8859-1" > > > > > > Thank you, but that option doesn't appear to work for Raster data types. > > > > > > Liz > > > > > > On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan >wrote: > > > > > > > > I don't have SDE to tell you the truth but I would suggest you to > create a > > > > VRT version of your dataset and use the VRT on your map file. [ > > > > gdal_translate -of vrt > > > > /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER > > > > replacement.vrt ] > > > > > > > > > >> > > -------Original Message------- > > >> > > From: Liz Godwin > > >> > > Subject: [mapserver-users] GDAL and SDE raster > > >> > > Sent: Nov 03 '08 22:19 > > >> > > > > >> > > Hey folks, > > >> > > > > >> > > We've been beating ourselves up over this problem and I'm not > sure > > >> > > what to try next. > > >> > > > > >> > > We can't seem to connect to SDE for a raster using GDAL in > mapserver. > > >> > > This is happening on Linux. > > >> > > > > >> > > snippit from mapfile: > > >> > > TYPE RASTER > > >> > > DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" > > >> > > > > >> > > when trying to draw a map, i get a seg fault. When trying a > > >> > > getFeatureinfo request, I get this error: > > >> > > > > >> > > /filepath/SDE:server,port:5151,sde,user: Image handling error. > Unable to > > >> > > open file LayerName for layer > > >> > > > `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does > > >> > > not exist in the file system, and is not recognised as a > supported > > >> > > > > dataset > > > > > >> > > name. > > >> > > ... fatal error. > > >> > > msRasterQueryByRect() > > >> > > > > >> > > Any ideas how I might start to debug this? I have DEBUG set to > 5 in > > >> > > > > both > > > > > >> > > the LAYER and MAP object in the map file. > > >> > > > > >> > > Thanks! > > >> > > > > >> > > Liz > > >> > > > > >> > > -------------------- > > >> > > _______________________________________________ > > >> > > mapserver-users mailing list > > >> > > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] > > >> > > mapserver-users at lists.osgeo.org > > >> > > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] > > >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > > > > > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html > > > > ------------------------------ > > > > _______________________________________________ > > > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > *********************************************************** > > This outgoing email was scanned for viruses and other malicious content > by the IT Department of Israel > Oceanographic & Limnological Research. > > AntiVirus system managed by Eli W. Tel. 972-4-8565267 > > IMPORTANT: Do not open attachments from unrecognized senders. > > Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe. > > > > ***********************************************************________________________________ > _______________ > > 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 umberto.nicoletti at gmail.com Tue Nov 4 07:54:47 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 4 Nov 2008 16:54:47 +0100 Subject: [mapserver-users] MS 5.2.0 and QUERYMAP Hilite In-Reply-To: <20081104094043.399053e6@thoe.hq.intevation.de> References: <20081103152045.7c01acd8@thoe.hq.intevation.de> <75b4b93e0811032346i4f677186vfd26c0338b15c9a3@mail.gmail.com> <20081104090529.3a13410c@thoe.hq.intevation.de> <75b4b93e0811040010w15c74daended74c11205f7e8@mail.gmail.com> <20081104094043.399053e6@thoe.hq.intevation.de> Message-ID: <75b4b93e0811040754k252c0cbbmc051df38e665470d@mail.gmail.com> Stephan I have created a patch that might solve this problem. It is attached to the ticket: http://trac.osgeo.org/mapserver/ticket/2803 could you try it and report if it works? Thanks, Umberto On Tue, Nov 4, 2008 at 9:40 AM, Stephan Holl wrote: > Hello Umberto, > > "Umberto Nicoletti" , [20081104 - 09:10:26] > >> On Tue, Nov 4, 2008 at 9:05 AM, Stephan Holl >> wrote: >> > Hello Umberto, >> > >> > "Umberto Nicoletti" , [20081104 - >> > 08:46:24] >> > >> >> I was hit by the same bug: >> >> >> >> when you specify hilite you MUST have a style section for each of >> >> your classes. The fix is therefore to add a style section to ALL >> >> of your classes. >> > >> > You mean each of my classes of layers which are being queryable? >> >> exactly. > > uff, my mapfile is more than 10000 lines long and has _many_ classes... > > But yes, testing with one layer and it worked. > >> >> Failure to comply will cause the new agg code (I think the gd >> >> renderer is immune, but it needs to be checked) to dereference a >> >> null pointer. The problem also exists with cgi mapserver and is >> >> not only related to mapscript. >> > >> > Ah, I am using the gd-rendering though. >> >> then I must correct my statement: also the gd driver is affected. The >> bug was introduced when we (mostly I, for those who like finger >> pointing ;-) ) rewrote the layers, classes, styles arrays to be arrays >> of pointers. >> >> I'll file an issue on bugzilla later today. > > Please drop a note (and a URL) on this thread so we find it. > >> > Ugh, thank your for your hint. I was not aware of that. Did I >> > overlook this issue in the migration-guide? >> >> Nope, I think we (the developers) were not aware of this problem until >> now so it was probably not documented there. > > Thank you for clarifying! > > Best regards > > Stephan > >> >> On Mon, Nov 3, 2008 at 3:20 PM, Stephan Holl >> >> wrote: >> >> > Dear mapserver-users, >> >> > >> >> > I am updating a mapserver 4.1.0.3 app to mapserver 5.2.0 and >> >> > found the issue that the following mapfile-block produces a seg >> >> > fault with php-mapscript. >> >> > >> >> > QUERYMAP >> >> > COLOR 0 255 255 >> >> > STATUS on >> >> > STYLE hilite >> >> > END >> >> > >> >> > With mapserver 4.10.3 everything was fine. Is this a known issue? >> >> > Setting it the querymap to something else than STYLE 'hilite' >> >> > everything works normal. >> >> > >> >> > Did anybody run into this? I found a bug about another >> >> > hilite-stuff[1], but also the 5.2-branch from SVN has this >> >> > behaviour. >> >> > >> >> > Thanks for any comments on this. >> >> > >> >> > Best >> >> > >> >> > Stephan >> >> > >> >> > -- >> >> > Stephan Holl | Tel.: +49 (0)541-33 >> >> > 50 8 32 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 >> >> > >> >> > >> > >> > >> > -- >> > Stephan Holl | Tel.: +49 (0)541-33 50 >> > 8 32 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - >> > HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. >> > Jan-Oliver Wagner >> > > > > -- > Stephan Holl | Tel.: +49 (0)541-33 50 8 32 > 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 hobu.inc at gmail.com Tue Nov 4 08:50:30 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Tue, 4 Nov 2008 10:50:30 -0600 Subject: [mapserver-users] Re: GDAL and SDE raster In-Reply-To: References: <20081104151328.19377.qmail@s466.sureserver.com> Message-ID: <7D10614B-8DEB-4DF9-BFBB-6D95696BB5A6@gmail.com> Liz, To use SDE raster data in MapServer, you must use GDAL compiled with SDE raster support. The "native" SDE raster support that was in MapServer was removed and no longer works. Ensure that your GDAL SDE raster is working with gdalinfo and then specify your layer as follows: LAYER TYPE RASTER DATA "SDE:sdemachine.iastate.edu, 5151,database,username,password,fully.specified.tablename,RASTER" ... END On Nov 4, 2008, at 9:41 AM, Liz Godwin wrote: > I'll give it a try. I didn't actually try it - I read the docs and > it didn't suggest that it would support rasters. > > Liz > > On Tue, Nov 4, 2008 at 10:13 AM, Lucena, Ivan > wrote: > Ron, > > Some raster driver in GDAL are not flie based but RDBMS based but > most of the softwares based on GDAL did not > noticed that change. In those case, instead of a file path what you > need is a identification string but those software > usually have code to grab the file path, to check if the file really > exist, to check other files on the same folder and > that is where it crashes. > > What I suggest to Liz is to use a VRT file instead of the > identification string. As you might know, a VRT file does not > contain the data but a path to the real data set. > > I use that trick to load images direct from the RDBMS server to > OpenEv and QuantumGIS: > > % gdal_translate -of VRT > > ... check if it works: > % gdalinfo > ... check what is inside it: > % more > ... load it: > % openev > % qgis > ... click on add layer > ... select your > > I thought that it would work for mapserve too... > > /filepath/ > > But Liz tried and said it doesn't. Too bad, I was counting on it. ;( > > Regards, > > Ivan > > > -------Original Message------- > > From: Ron Goldman > > Subject: [mapserver-users] Re: GDAL and SDE raster > > Sent: Nov 04 '08 14:01 > > > > I had a similar problem with NetCDF raster. It probably won't > help much for SDE > > but make sure you have absolute filepath after the "SDE:" and not > before it. > > > > > > Date: Tue, 4 Nov 2008 08:24:52 -0500 > > From: "Liz Godwin" > > Subject: Re: [mapserver-users] GDAL and SDE raster > > To: "Lucena, Ivan" > > Cc: eidsnessl at agr.gc.ca, mapserver-users at lists.osgeo.org, > > whittekerc at agr.gc.ca > > Message-ID: > > > > Content-Type: text/plain; charset="iso-8859-1" > > > > > > Thank you, but that option doesn't appear to work for Raster data > types. > > > > > > Liz > > > > > > On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan >wrote: > > > > > > > > I don't have SDE to tell you the truth but I would suggest > you to create a > > > > VRT version of your dataset and use the VRT on your map file. [ > > > > gdal_translate -of vrt > > > > /filepath/SDE:server,port:5151,sde,user/ > pass,schema.table,RASTER > > > > replacement.vrt ] > > > > > > > > > >> > > -------Original Message------- > > >> > > From: Liz Godwin > > >> > > Subject: [mapserver-users] GDAL and SDE raster > > >> > > Sent: Nov 03 '08 22:19 > > >> > > > > >> > > Hey folks, > > >> > > > > >> > > We've been beating ourselves up over this problem and I'm > not sure > > >> > > what to try next. > > >> > > > > >> > > We can't seem to connect to SDE for a raster using GDAL > in mapserver. > > >> > > This is happening on Linux. > > >> > > > > >> > > snippit from mapfile: > > >> > > TYPE RASTER > > >> > > DATA "SDE:server,port: > 5151,sde,user,pass,schema.table,RASTER" > > >> > > > > >> > > when trying to draw a map, i get a seg fault. When > trying a > > >> > > getFeatureinfo request, I get this error: > > >> > > > > >> > > /filepath/SDE:server,port:5151,sde,user: Image handling > error. Unable to > > >> > > open file LayerName for layer > > >> > > `/filepath/SDE:server,port:5151,sde,user/ > pass,schema.table,RASTER' does > > >> > > not exist in the file system, and is not recognised as a > supported > > >> > > > > dataset > > > > > >> > > name. > > >> > > ... fatal error. > > >> > > msRasterQueryByRect() > > >> > > > > >> > > Any ideas how I might start to debug this? I have DEBUG > set to 5 in > > >> > > > > both > > > > > >> > > the LAYER and MAP object in the map file. > > >> > > > > >> > > Thanks! > > >> > > > > >> > > Liz > > >> > > > > >> > > -------------------- > > >> > > _______________________________________________ > > >> > > mapserver-users mailing list > > >> > > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] > > >> > > mapserver-users at lists.osgeo.org > > >> > > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users > ] > > >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > > > > > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html > > > > ------------------------------ > > > > _______________________________________________ > > > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > *********************************************************** > > This outgoing email was scanned for viruses and other malicious > content by the IT Department of Israel > Oceanographic & Limnological Research. > > AntiVirus system managed by Eli W. Tel. 972-4-8565267 > > IMPORTANT: Do not open attachments from unrecognized senders. > > Never open attached files with extensions: *.pif, *.scr, *.vbs, > *.exe. > > > ***********************************************************________________________________ > _______________ > > 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 ruijgomes at gmail.com Tue Nov 4 09:21:19 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Tue, 4 Nov 2008 17:21:19 +0000 Subject: [mapserver-users] Pan in javascript Message-ID: <31e2f7000811040921n106e7391xe56d791bcc92fb5f@mail.gmail.com> Hi... I'm new in the list and i have a problem: I try to create a pan using javascript but when i pull down the button mouse and drag the web browser drag the image. How i can make the browser stop draging the image? There another way to do the pan? (CSS CBE Drag Events?) Thanks and sorry for my English. -- Rui Gomes From lists at dipole-consulting.com Tue Nov 4 09:35:50 2008 From: lists at dipole-consulting.com (Didrik Pinte) Date: Tue, 04 Nov 2008 18:35:50 +0100 Subject: [mapserver-users] Pan in javascript In-Reply-To: <31e2f7000811040921n106e7391xe56d791bcc92fb5f@mail.gmail.com> References: <31e2f7000811040921n106e7391xe56d791bcc92fb5f@mail.gmail.com> Message-ID: <1225820150.28900.85.camel@localhost> On Tue, 2008-11-04 at 17:21 +0000, Rui Gomes wrote: > Hi... > > I'm new in the list and i have a problem: > > I try to create a pan using javascript but when i pull down the button > mouse and drag the web browser drag the image. How i can make the > browser stop draging the image? > > There another way to do the pan? (CSS CBE Drag Events?) Try openlayers. Panning will work like a charm. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From godwin.liz at gmail.com Tue Nov 4 10:06:22 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 4 Nov 2008 13:06:22 -0500 Subject: [mapserver-users] Re: GDAL and SDE raster In-Reply-To: <7D10614B-8DEB-4DF9-BFBB-6D95696BB5A6@gmail.com> References: <20081104151328.19377.qmail@s466.sureserver.com> <7D10614B-8DEB-4DF9-BFBB-6D95696BB5A6@gmail.com> Message-ID: Howard, I did try gdalinfo and it works great. Just to be sure, I used gdal_transform to create a tiff file and asked mapserver to try that instead using shp2img, and that worked beautifully. So it's just that the GDAL inside mapserver (??!!)) isn't making the same connection or something. I don't know why. When I do a getfeatureinfo I get that error I mentioned in the first post, but for maps, I just get a segmentation fault. Liz On Tue, Nov 4, 2008 at 11:50 AM, Howard Butler wrote: > Liz, > > To use SDE raster data in MapServer, you must use GDAL compiled with SDE > raster support. The "native" SDE raster support that was in MapServer was > removed and no longer works. > > Ensure that your GDAL SDE raster is working with gdalinfo and then specify > your layer as follows: > > > LAYER > > TYPE RASTER > DATA "SDE:sdemachine.iastate.edu > ,5151,database,username,password,fully.specified.tablename,RASTER" > ... > > END > > > On Nov 4, 2008, at 9:41 AM, Liz Godwin wrote: > > I'll give it a try. I didn't actually try it - I read the docs and it >> didn't suggest that it would support rasters. >> >> Liz >> >> On Tue, Nov 4, 2008 at 10:13 AM, Lucena, Ivan >> wrote: >> Ron, >> >> Some raster driver in GDAL are not flie based but RDBMS based but most of >> the softwares based on GDAL did not >> noticed that change. In those case, instead of a file path what you need >> is a identification string but those software >> usually have code to grab the file path, to check if the file really >> exist, to check other files on the same folder and >> that is where it crashes. >> >> What I suggest to Liz is to use a VRT file instead of the identification >> string. As you might know, a VRT file does not >> contain the data but a path to the real data set. >> >> I use that trick to load images direct from the RDBMS server to OpenEv and >> QuantumGIS: >> >> % gdal_translate -of VRT >> >> ... check if it works: >> % gdalinfo >> ... check what is inside it: >> % more >> ... load it: >> % openev >> % qgis >> ... click on add layer >> ... select your >> >> I thought that it would work for mapserve too... >> >> /filepath/ >> >> But Liz tried and said it doesn't. Too bad, I was counting on it. ;( >> >> Regards, >> >> Ivan >> >> > -------Original Message------- >> > From: Ron Goldman >> > Subject: [mapserver-users] Re: GDAL and SDE raster >> > Sent: Nov 04 '08 14:01 >> > >> > I had a similar problem with NetCDF raster. It probably won't help much >> for SDE >> > but make sure you have absolute filepath after the "SDE:" and not >> before it. >> > >> > >> > Date: Tue, 4 Nov 2008 08:24:52 -0500 >> > From: "Liz Godwin" >> > Subject: Re: [mapserver-users] GDAL and SDE raster >> > To: "Lucena, Ivan" >> > Cc: eidsnessl at agr.gc.ca, mapserver-users at lists.osgeo.org, >> > whittekerc at agr.gc.ca >> > Message-ID: >> > >> > Content-Type: text/plain; charset="iso-8859-1" >> > >> > >> > Thank you, but that option doesn't appear to work for Raster data >> types. >> > >> > >> > Liz >> > >> > >> > On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan > >wrote: >> > >> > >> > > > I don't have SDE to tell you the truth but I would suggest you to >> create a >> > > > VRT version of your dataset and use the VRT on your map file. [ >> > > > gdal_translate -of vrt >> > > > /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER >> > > > replacement.vrt ] >> > > > >> > > >> > >> > > -------Original Message------- >> > >> > > From: Liz Godwin >> > >> > > Subject: [mapserver-users] GDAL and SDE raster >> > >> > > Sent: Nov 03 '08 22:19 >> > >> > > >> > >> > > Hey folks, >> > >> > > >> > >> > > We've been beating ourselves up over this problem and I'm not >> sure >> > >> > > what to try next. >> > >> > > >> > >> > > We can't seem to connect to SDE for a raster using GDAL in >> mapserver. >> > >> > > This is happening on Linux. >> > >> > > >> > >> > > snippit from mapfile: >> > >> > > TYPE RASTER >> > >> > > DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" >> > >> > > >> > >> > > when trying to draw a map, i get a seg fault. When trying a >> > >> > > getFeatureinfo request, I get this error: >> > >> > > >> > >> > > /filepath/SDE:server,port:5151,sde,user: Image handling error. >> Unable to >> > >> > > open file LayerName for layer >> > >> > > >> `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does >> > >> > > not exist in the file system, and is not recognised as a >> supported >> > >> >> > > > dataset >> > > >> > >> > > name. >> > >> > > ... fatal error. >> > >> > > msRasterQueryByRect() >> > >> > > >> > >> > > Any ideas how I might start to debug this? I have DEBUG set to >> 5 in >> > >> >> > > > both >> > > >> > >> > > the LAYER and MAP object in the map file. >> > >> > > >> > >> > > Thanks! >> > >> > > >> > >> > > Liz >> > >> > > >> > >> > > -------------------- >> > >> > > _______________________________________________ >> > >> > > mapserver-users mailing list >> > >> > > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] >> > >> > > mapserver-users at lists.osgeo.org >> > >> > > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users >> ] >> > >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> >> > > > >> > > >> > -------------- next part -------------- >> > An HTML attachment was scrubbed... >> > URL: >> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html >> > >> > ------------------------------ >> > >> > _______________________________________________ >> > >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > >> > *********************************************************** >> > This outgoing email was scanned for viruses and other malicious content >> by the IT Department of Israel >> Oceanographic & Limnological Research. >> > AntiVirus system managed by Eli W. Tel. 972-4-8565267 >> > IMPORTANT: Do not open attachments from unrecognized senders. >> > Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe. >> > >> >> ***********************************************************________________________________ >> _______________ >> > 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 godwin.liz at gmail.com Tue Nov 4 10:36:58 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 4 Nov 2008 13:36:58 -0500 Subject: [mapserver-users] Re: GDAL and SDE raster In-Reply-To: <20081104151328.19377.qmail@s466.sureserver.com> References: <20081104151328.19377.qmail@s466.sureserver.com> Message-ID: tried this but I don't know how to get it to work with mapserver. On Tue, Nov 4, 2008 at 10:13 AM, Lucena, Ivan wrote: > Ron, > > Some raster driver in GDAL are not flie based but RDBMS based but most of > the softwares based on GDAL did not > noticed that change. In those case, instead of a file path what you need is > a identification string but those software > usually have code to grab the file path, to check if the file really exist, > to check other files on the same folder and > that is where it crashes. > > What I suggest to Liz is to use a VRT file instead of the identification > string. As you might know, a VRT file does not > contain the data but a path to the real data set. > > I use that trick to load images direct from the RDBMS server to OpenEv and > QuantumGIS: > > % gdal_translate -of VRT > > ... check if it works: > % gdalinfo > ... check what is inside it: > % more > ... load it: > % openev > % qgis > ... click on add layer > ... select your > > I thought that it would work for mapserve too... > > /filepath/ > > But Liz tried and said it doesn't. Too bad, I was counting on it. ;( > > Regards, > > Ivan > > > -------Original Message------- > > From: Ron Goldman > > Subject: [mapserver-users] Re: GDAL and SDE raster > > Sent: Nov 04 '08 14:01 > > > > I had a similar problem with NetCDF raster. It probably won't help much > for SDE > > but make sure you have absolute filepath after the "SDE:" and not before > it. > > > > > > Date: Tue, 4 Nov 2008 08:24:52 -0500 > > From: "Liz Godwin" > > Subject: Re: [mapserver-users] GDAL and SDE raster > > To: "Lucena, Ivan" > > Cc: eidsnessl at agr.gc.ca, mapserver-users at lists.osgeo.org, > > whittekerc at agr.gc.ca > > Message-ID: > > > > Content-Type: text/plain; charset="iso-8859-1" > > > > > > Thank you, but that option doesn't appear to work for Raster data types. > > > > > > Liz > > > > > > On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan >wrote: > > > > > > > > I don't have SDE to tell you the truth but I would suggest you to > create a > > > > VRT version of your dataset and use the VRT on your map file. [ > > > > gdal_translate -of vrt > > > > /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER > > > > replacement.vrt ] > > > > > > > > > >> > > -------Original Message------- > > >> > > From: Liz Godwin > > >> > > Subject: [mapserver-users] GDAL and SDE raster > > >> > > Sent: Nov 03 '08 22:19 > > >> > > > > >> > > Hey folks, > > >> > > > > >> > > We've been beating ourselves up over this problem and I'm not > sure > > >> > > what to try next. > > >> > > > > >> > > We can't seem to connect to SDE for a raster using GDAL in > mapserver. > > >> > > This is happening on Linux. > > >> > > > > >> > > snippit from mapfile: > > >> > > TYPE RASTER > > >> > > DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" > > >> > > > > >> > > when trying to draw a map, i get a seg fault. When trying a > > >> > > getFeatureinfo request, I get this error: > > >> > > > > >> > > /filepath/SDE:server,port:5151,sde,user: Image handling error. > Unable to > > >> > > open file LayerName for layer > > >> > > > `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does > > >> > > not exist in the file system, and is not recognised as a > supported > > >> > > > > dataset > > > > > >> > > name. > > >> > > ... fatal error. > > >> > > msRasterQueryByRect() > > >> > > > > >> > > Any ideas how I might start to debug this? I have DEBUG set to > 5 in > > >> > > > > both > > > > > >> > > the LAYER and MAP object in the map file. > > >> > > > > >> > > Thanks! > > >> > > > > >> > > Liz > > >> > > > > >> > > -------------------- > > >> > > _______________________________________________ > > >> > > mapserver-users mailing list > > >> > > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] > > >> > > mapserver-users at lists.osgeo.org > > >> > > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] > > >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > > > > > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html > > > > ------------------------------ > > > > _______________________________________________ > > > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > *********************************************************** > > This outgoing email was scanned for viruses and other malicious content > by the IT Department of Israel > Oceanographic & Limnological Research. > > AntiVirus system managed by Eli W. Tel. 972-4-8565267 > > IMPORTANT: Do not open attachments from unrecognized senders. > > Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe. > > > > ***********************************************************________________________________ > _______________ > > 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 godwin.liz at gmail.com Tue Nov 4 10:44:33 2008 From: godwin.liz at gmail.com (Liz Godwin) Date: Tue, 4 Nov 2008 13:44:33 -0500 Subject: [mapserver-users] Re: GDAL and SDE raster In-Reply-To: <7D10614B-8DEB-4DF9-BFBB-6D95696BB5A6@gmail.com> References: <20081104151328.19377.qmail@s466.sureserver.com> <7D10614B-8DEB-4DF9-BFBB-6D95696BB5A6@gmail.com> Message-ID: Howard, Is it possible we have a bad combination of libraries or something in our mapserv compile? it's like it doesn't understand the datastring coming out of mapserver. In the error message from gdal, it's prepending the filesystem path. So instead of it starting with SDE: it starts with /filepath/SDE: Liz On Tue, Nov 4, 2008 at 11:50 AM, Howard Butler wrote: > Liz, > > To use SDE raster data in MapServer, you must use GDAL compiled with SDE > raster support. The "native" SDE raster support that was in MapServer was > removed and no longer works. > > Ensure that your GDAL SDE raster is working with gdalinfo and then specify > your layer as follows: > > > LAYER > > TYPE RASTER > DATA "SDE:sdemachine.iastate.edu > ,5151,database,username,password,fully.specified.tablename,RASTER" > ... > > END > > > On Nov 4, 2008, at 9:41 AM, Liz Godwin wrote: > > I'll give it a try. I didn't actually try it - I read the docs and it >> didn't suggest that it would support rasters. >> >> Liz >> >> On Tue, Nov 4, 2008 at 10:13 AM, Lucena, Ivan >> wrote: >> Ron, >> >> Some raster driver in GDAL are not flie based but RDBMS based but most of >> the softwares based on GDAL did not >> noticed that change. In those case, instead of a file path what you need >> is a identification string but those software >> usually have code to grab the file path, to check if the file really >> exist, to check other files on the same folder and >> that is where it crashes. >> >> What I suggest to Liz is to use a VRT file instead of the identification >> string. As you might know, a VRT file does not >> contain the data but a path to the real data set. >> >> I use that trick to load images direct from the RDBMS server to OpenEv and >> QuantumGIS: >> >> % gdal_translate -of VRT >> >> ... check if it works: >> % gdalinfo >> ... check what is inside it: >> % more >> ... load it: >> % openev >> % qgis >> ... click on add layer >> ... select your >> >> I thought that it would work for mapserve too... >> >> /filepath/ >> >> But Liz tried and said it doesn't. Too bad, I was counting on it. ;( >> >> Regards, >> >> Ivan >> >> > -------Original Message------- >> > From: Ron Goldman >> > Subject: [mapserver-users] Re: GDAL and SDE raster >> > Sent: Nov 04 '08 14:01 >> > >> > I had a similar problem with NetCDF raster. It probably won't help much >> for SDE >> > but make sure you have absolute filepath after the "SDE:" and not >> before it. >> > >> > >> > Date: Tue, 4 Nov 2008 08:24:52 -0500 >> > From: "Liz Godwin" >> > Subject: Re: [mapserver-users] GDAL and SDE raster >> > To: "Lucena, Ivan" >> > Cc: eidsnessl at agr.gc.ca, mapserver-users at lists.osgeo.org, >> > whittekerc at agr.gc.ca >> > Message-ID: >> > >> > Content-Type: text/plain; charset="iso-8859-1" >> > >> > >> > Thank you, but that option doesn't appear to work for Raster data >> types. >> > >> > >> > Liz >> > >> > >> > On Mon, Nov 3, 2008 at 7:40 PM, Lucena, Ivan > >wrote: >> > >> > >> > > > I don't have SDE to tell you the truth but I would suggest you to >> create a >> > > > VRT version of your dataset and use the VRT on your map file. [ >> > > > gdal_translate -of vrt >> > > > /filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER >> > > > replacement.vrt ] >> > > > >> > > >> > >> > > -------Original Message------- >> > >> > > From: Liz Godwin >> > >> > > Subject: [mapserver-users] GDAL and SDE raster >> > >> > > Sent: Nov 03 '08 22:19 >> > >> > > >> > >> > > Hey folks, >> > >> > > >> > >> > > We've been beating ourselves up over this problem and I'm not >> sure >> > >> > > what to try next. >> > >> > > >> > >> > > We can't seem to connect to SDE for a raster using GDAL in >> mapserver. >> > >> > > This is happening on Linux. >> > >> > > >> > >> > > snippit from mapfile: >> > >> > > TYPE RASTER >> > >> > > DATA "SDE:server,port:5151,sde,user,pass,schema.table,RASTER" >> > >> > > >> > >> > > when trying to draw a map, i get a seg fault. When trying a >> > >> > > getFeatureinfo request, I get this error: >> > >> > > >> > >> > > /filepath/SDE:server,port:5151,sde,user: Image handling error. >> Unable to >> > >> > > open file LayerName for layer >> > >> > > >> `/filepath/SDE:server,port:5151,sde,user/pass,schema.table,RASTER' does >> > >> > > not exist in the file system, and is not recognised as a >> supported >> > >> >> > > > dataset >> > > >> > >> > > name. >> > >> > > ... fatal error. >> > >> > > msRasterQueryByRect() >> > >> > > >> > >> > > Any ideas how I might start to debug this? I have DEBUG set to >> 5 in >> > >> >> > > > both >> > > >> > >> > > the LAYER and MAP object in the map file. >> > >> > > >> > >> > > Thanks! >> > >> > > >> > >> > > Liz >> > >> > > >> > >> > > -------------------- >> > >> > > _______________________________________________ >> > >> > > mapserver-users mailing list >> > >> > > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] >> > >> > > mapserver-users at lists.osgeo.org >> > >> > > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users >> ] >> > >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> >> > > > >> > > >> > -------------- next part -------------- >> > An HTML attachment was scrubbed... >> > URL: >> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081104/fee291c7/attachment.html >> > >> > ------------------------------ >> > >> > _______________________________________________ >> > >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > >> > *********************************************************** >> > This outgoing email was scanned for viruses and other malicious content >> by the IT Department of Israel >> Oceanographic & Limnological Research. >> > AntiVirus system managed by Eli W. Tel. 972-4-8565267 >> > IMPORTANT: Do not open attachments from unrecognized senders. >> > Never open attached files with extensions: *.pif, *.scr, *.vbs, *.exe. >> > >> >> ***********************************************************________________________________ >> _______________ >> > 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 pramsey at cleverelephant.ca Tue Nov 4 12:24:10 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Tue, 4 Nov 2008 12:24:10 -0800 Subject: [mapserver-users] mapmygis.c In-Reply-To: <30fe546d0811041150w5dfb7a1bufddafc0473ee58f4@mail.gmail.com> References: <30fe546d0811041150w5dfb7a1bufddafc0473ee58f4@mail.gmail.com> Message-ID: <30fe546d0811041224j33a89ebeq3631b450a12f92d4@mail.gmail.com> Do you use the MyGIS feature of Mapserver? --with-mygis[=ARG] Include MyGIS Support (ARG=yes/path to mysql_config) If you do, please speak up, because I am making a motion to the developers list that we remove this very old, obscure feature. This is not about MySQL Spatial support, which exists, and will continue to exist, via the OGR driver. It's about the old MyGIS feature, which predates MySQL Spatial, and stores geometry in MySQL blobs. Paul ---------- Forwarded message ---------- From: Paul Ramsey Subject: mapmygis.c To: mapserver-dev I come not to praise mapmygis.c, but to bury it. - It has no maintainer. - It operates on a model of spatial in MySQL (features in blobs) that has been super-ceded by the official spatial implementation that has now been there for 5 years. - It confuses people into thinking that *it* is the real MySQL spatial support in Mapserver, when the real support is via OGR. - It is deeply ugly code, and now that the mappostgis.c code it was based on is retired, I can freely say that. The longer it is there, the more likely some unwitting soul will template something on it. (See mapmssql2008.c) I move that we re-move. +1 Paul! From jmckenna at gatewaygeomatics.com Tue Nov 4 13:55:23 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 05 Nov 2008 06:55:23 +0900 Subject: [MAPSERVER-USERS] installation error In-Reply-To: <20320172.post@talk.nabble.com> References: <20320172.post@talk.nabble.com> Message-ID: <4910C4CB.2030505@gatewaygeomatics.com> lakku wrote: > hi all > iam new to mapserver > i have downloaded ms4w_2.3.0.zip file on desktop > when i extract this file into C folder it is displaying error as "cannot > create ms4w\apache\bin\httpd.exe access is denied" plz tell me why it > happens Here are some things you can try: 1) If you are using Vista you will have to 'run as administrator' (see: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#c-special-notes-for-microsoft-vista). 2) I have seen your error occur before when Apache (httpd.exe) is already running and you try to extract it over this running file. You could execute '/ms4w/apache-uninstall.bat' first, remove the old ms4w directory, and then try extracting a fresh MS4W. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From tech_dev at wildintellect.com Tue Nov 4 14:29:42 2008 From: tech_dev at wildintellect.com (Alex Mandel) Date: Tue, 04 Nov 2008 14:29:42 -0800 Subject: [mapserver-users] Call for Papers - AAG 2009 Message-ID: <4910CCD6.9070706@wildintellect.com> --Please Pass On-- Call for Papers - "Free and Open Source Software for geographers" The deadline to submit papers for the Association of American Geographers(AAG) annual conference has been extended until Nov. 13, 2008. There will be organized sessions on "Free and Open Source Software", sponsored by the Open Source Geospatial Foundation(OSGeo) and the AAG Cyberinfrastructure Specialty Group. We have several sessions planned on a variety of topics, including non-technical lightning talks with a group discussion to in depth technical talks. For specifics of the sessions, current speaker lists and general information please visit: http://wiki.osgeo.org/wiki/AAG_2009#OSGeo_Sessions We still have some spots for speakers and will create additional session s based on demand. Please contact if you have submitted or intend to submit so I can add you to the session listing. Not interested in a paper, how about being on a Panel, we've got a couple of spots left on a FOSS discussion panel. Also, OSGeo will be running an exhibit booth and is soliciting for more volunteers and sponsorship. For more information: AAG Conference http://aag.org/annualmeetings/2009/index.htm OSGeo http://www.osgeo.org Thank you, Alex Mandel tech at wildintellect.com Geography Graduate Group http://ggg.ucdavis.edu Information Center for the Environment (ICE) http://ice.ucdavis.edu University of California, Davis From cjauvin at gmail.com Tue Nov 4 21:12:28 2008 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 5 Nov 2008 00:12:28 -0500 Subject: [mapserver-users] Problem with Python Mapscript / Projection (MS4W) Message-ID: Hi, I get a "MapServerError: msProcessProjection(): Projection library error. Permission denied" error while using Python/MapScript (MS4W 2.3, MapServer 5), after having included a PROJECTION "init=epsg:XXXX" END directive in a mapfile layer. I guess that it has something to do with an Apache permission to execute a binary somewhere.. This is I think the first time I can't find an answer to a MS problem simply by googling, so I try it here, in hope that someone will be able to help. Thank you in advance, Christian From umberto.nicoletti at gmail.com Tue Nov 4 23:31:52 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 5 Nov 2008 08:31:52 +0100 Subject: [mapserver-users] mapmygis.c In-Reply-To: <30fe546d0811041224j33a89ebeq3631b450a12f92d4@mail.gmail.com> References: <30fe546d0811041150w5dfb7a1bufddafc0473ee58f4@mail.gmail.com> <30fe546d0811041224j33a89ebeq3631b450a12f92d4@mail.gmail.com> Message-ID: <75b4b93e0811042331h70f0dc6fl78b2a41f598e2bfd@mail.gmail.com> +1 it seems that the oldest bug matching mygis is from 2005, therefore I doubt we have hardly any user for this component. On Tue, Nov 4, 2008 at 9:24 PM, Paul Ramsey wrote: > Do you use the MyGIS feature of Mapserver? > > --with-mygis[=ARG] Include MyGIS Support (ARG=yes/path to mysql_config) > > If you do, please speak up, because I am making a motion to the > developers list that we remove this very old, obscure feature. This is > not about MySQL Spatial support, which exists, and will continue to > exist, via the OGR driver. It's about the old MyGIS feature, which > predates MySQL Spatial, and stores geometry in MySQL blobs. > > Paul > > ---------- Forwarded message ---------- > From: Paul Ramsey > Subject: mapmygis.c > To: mapserver-dev > > I come not to praise mapmygis.c, but to bury it. > > - It has no maintainer. > - It operates on a model of spatial in MySQL (features in blobs) that > has been super-ceded by the official spatial implementation that has > now been there for 5 years. > - It confuses people into thinking that *it* is the real MySQL spatial > support in Mapserver, when the real support is via OGR. > - It is deeply ugly code, and now that the mappostgis.c code it was > based on is retired, I can freely say that. The longer it is there, > the more likely some unwitting soul will template something on it. > (See mapmssql2008.c) > > I move that we re-move. > > +1 Paul! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From umberto.nicoletti at gmail.com Tue Nov 4 23:33:53 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 5 Nov 2008 08:33:53 +0100 Subject: [mapserver-users] Problem with Python Mapscript / Projection (MS4W) In-Reply-To: References: Message-ID: <75b4b93e0811042333y3bbf271dn3e5ca23fdfc33d76@mail.gmail.com> make sure that the user running apache can read the /usr/share/proj/epsg file. If permissions seem ok then it could be a problem with SELinux or apparmor, depending on your platform. Umberto On Wed, Nov 5, 2008 at 6:12 AM, Christian Jauvin wrote: > Hi, > > I get a "MapServerError: msProcessProjection(): Projection library > error. Permission denied" error while using Python/MapScript (MS4W > 2.3, MapServer 5), after having included a > > PROJECTION > "init=epsg:XXXX" > END > > directive in a mapfile layer. I guess that it has something to do with > an Apache permission to execute a binary somewhere.. > > This is I think the first time I can't find an answer to a MS problem > simply by googling, so I try it here, in hope that someone will be > able to help. > > Thank you in advance, > > Christian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From csaffi at libero.it Wed Nov 5 01:00:09 2008 From: csaffi at libero.it (Carmelo Saffioti) Date: Wed, 5 Nov 2008 10:00:09 +0100 Subject: [mapserver-users] Tracking vehicles, Displaying positions Message-ID: <005c01c93f24$e7f90900$6e0000c0@carmelo> Hi everybody, I need to develop a system for tracking and displaying vehicles positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd like to display these positions on a map. How can I do? I'm new to this, can you give me any suggestion? I have to create the map too, because this zone is not mapped. Is it possible to create a map from a DWG cad file? I hope you can help me Cheers Carmelo -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Nov 5 02:19:34 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 5 Nov 2008 15:49:34 +0530 Subject: [mapserver-users] Tracking vehicles, Displaying positions In-Reply-To: <005c01c93f24$e7f90900$6e0000c0@carmelo> References: <005c01c93f24$e7f90900$6e0000c0@carmelo> Message-ID: <005501c93f30$01889c40$0499d4c0$@com> Hi, 1)There are different ways to place GPS points on map. a) You can display points using OGR direct connection, Please refer below url http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/? searchterm=ovf 2)And You can not create DWG file by using mapfile.Mapfile will give you image format. Please have a look below url. http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types I hope this helps you. Thanks, Venkat From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carmelo Saffioti Sent: Wednesday, November 05, 2008 2:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Tracking vehicles, Displaying positions Hi everybody, I need to develop a system for tracking and displaying vehicles positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd like to display these positions on a map. How can I do? I'm new to this, can you give me any suggestion? I have to create the map too, because this zone is not mapped. Is it possible to create a map from a DWG cad file? I hope you can help me Cheers Carmelo -------------- next part -------------- An HTML attachment was scrubbed... URL: From edmondo.elisei at gmail.com Wed Nov 5 02:27:01 2008 From: edmondo.elisei at gmail.com (Edmondo Elisei) Date: Wed, 5 Nov 2008 11:27:01 +0100 Subject: [mapserver-users] mapserver nabble Message-ID: <412a97fc0811050227j751238fewa4771911f6a85100@mail.gmail.com> Dear All, I've some difficult to start with mapserver; I'd like installing itasca demo but I don't know how configure index file. the instructions in readme file aren't really clear (for me of course) Thanks to all Edmondo -------------- next part -------------- An HTML attachment was scrubbed... URL: From csaffi at libero.it Wed Nov 5 02:39:58 2008 From: csaffi at libero.it (Carmelo Saffioti) Date: Wed, 5 Nov 2008 11:39:58 +0100 Subject: [mapserver-users] Tracking vehicles, Displaying positions References: <005c01c93f24$e7f90900$6e0000c0@carmelo> <005501c93f30$01889c40$0499d4c0$@com> Message-ID: <015001c93f32$d9c4fc50$6e0000c0@carmelo> Thank you Venkat for your reply, it's interesting to know that it's possible to access coordinates data directly from the MySql db... but before displaying points on the map, I need to understand how can I "create" a map from my planimetry DWG cad file... I hope you can help me Cheers Carmelo Hi, 1)There are different ways to place GPS points on map. a) You can display points using OGR direct connection, Please refer below url http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/?searchterm=ovf 2)And You can not create DWG file by using mapfile.Mapfile will give you image format. Please have a look below url. http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types I hope this helps you. Thanks, Venkat From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carmelo Saffioti Sent: Wednesday, November 05, 2008 2:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Tracking vehicles, Displaying positions Hi everybody, I need to develop a system for tracking and displaying vehicles positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd like to display these positions on a map. How can I do? I'm new to this, can you give me any suggestion? I have to create the map too, because this zone is not mapped. Is it possible to create a map from a DWG cad file? I hope you can help me Cheers Carmelo From vtammineni at roulacglobal.com Wed Nov 5 02:46:22 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 5 Nov 2008 16:16:22 +0530 Subject: [mapserver-users] Tracking vehicles, Displaying positions In-Reply-To: <015001c93f32$d9c4fc50$6e0000c0@carmelo> References: <005c01c93f24$e7f90900$6e0000c0@carmelo> <005501c93f30$01889c40$0499d4c0$@com> <015001c93f32$d9c4fc50$6e0000c0@carmelo> Message-ID: <006b01c93f33$c0178a60$40469f20$@com> Hi, What my suggestion is do not go for dwg.If you have dwg convert into Shapefile.and please refer below url.It is showing that how to create map using Shapefile. http://mapserver.gis.umn.edu/docs/reference/vector_data/shapefiles/?searchte rm=shapefile I hope it will help you. Thanks Venkat. -----Original Message----- From: Carmelo Saffioti [mailto:csaffi at libero.it] Sent: Wednesday, November 05, 2008 4:10 PM To: Venkat Rao Tammineni; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Tracking vehicles, Displaying positions Thank you Venkat for your reply, it's interesting to know that it's possible to access coordinates data directly from the MySql db... but before displaying points on the map, I need to understand how can I "create" a map from my planimetry DWG cad file... I hope you can help me Cheers Carmelo Hi, 1)There are different ways to place GPS points on map. a) You can display points using OGR direct connection, Please refer below url http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/? searchterm=ovf 2)And You can not create DWG file by using mapfile.Mapfile will give you image format. Please have a look below url. http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types I hope this helps you. Thanks, Venkat From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carmelo Saffioti Sent: Wednesday, November 05, 2008 2:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Tracking vehicles, Displaying positions Hi everybody, I need to develop a system for tracking and displaying vehicles positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd like to display these positions on a map. How can I do? I'm new to this, can you give me any suggestion? I have to create the map too, because this zone is not mapped. Is it possible to create a map from a DWG cad file? I hope you can help me Cheers Carmelo From pgiannini at bytewise.it Wed Nov 5 02:49:46 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 5 Nov 2008 11:49:46 +0100 (CET) Subject: [mapserver-users] Tracking vehicles, Displaying positions In-Reply-To: <015001c93f32$d9c4fc50$6e0000c0@carmelo> References: <005c01c93f24$e7f90900$6e0000c0@carmelo> <005501c93f30$01889c40$0499d4c0$@com> <015001c93f32$d9c4fc50$6e0000c0@carmelo> Message-ID: <45148.89.97.235.106.1225882186.squirrel@localhost.localdomain> dxf2shp (http://www.spatialorder.com/downloads.htm). You have first to convert the dwg in dxf: http://www.autodwg.com/DWG_DXF_Converter/ is a 15-days trial, http://www.a9tech.com/products/a9converter/ is free... there is also cad2shape: http://www.guthcad.com/cad2shape.htm, another trial version. there is a lot of tools: http://www.google.com/search?q=convert+dwg+to+dxf ciao .......................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Novembre 5, 2008 11:39, Carmelo Saffioti wrote: > Thank you Venkat for your reply, > it's interesting to know that it's possible to access coordinates data > directly from the MySql db... > but before displaying points on the map, I need to understand how can I > "create" a map from my planimetry DWG cad file... > > I hope you can help me > Cheers > Carmelo > > > Hi, > > 1)There are different ways to place GPS points on map. > a) You can display points using OGR direct connection, Please refer > below url > http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf > > http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf > > http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/?searchterm=ovf > > 2)And You can not create DWG file by using mapfile.Mapfile will give you > image format. > Please have a look below url. > > http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types > > I hope this helps you. > > Thanks, > Venkat > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carmelo > Saffioti > Sent: Wednesday, November 05, 2008 2:30 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Tracking vehicles, Displaying positions > > Hi everybody, > I need to develop a system for tracking and displaying vehicles > positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd > like to display these positions on a map. How can I do? I'm new to > this, can you give me any suggestion? > I have to create the map too, because this zone is not mapped. Is it > possible to create a map from a DWG cad file? > > I hope you can help me > Cheers > Carmelo > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From veeraswamyd at yahoo.co.in Wed Nov 5 03:34:18 2008 From: veeraswamyd at yahoo.co.in (lakku) Date: Wed, 5 Nov 2008 03:34:18 -0800 (PST) Subject: [MAPSERVER-USERS] installation error In-Reply-To: <4910C4CB.2030505@gatewaygeomatics.com> References: <20320172.post@talk.nabble.com> <4910C4CB.2030505@gatewaygeomatics.com> Message-ID: <20340087.post@talk.nabble.com> hi Jeff McKenna thankq for ur reply iam using "windows XP media center edition" i have executed '/ms4w/apache-uninstall.bat' in command prompt but it is displaying error as " 'httpd ' is not recognized as internal or external command,operable program or batch file" plz tell me that -- View this message in context: http://www.nabble.com/installation-error-tp20320172p20340087.html Sent from the Mapserver - User mailing list archive at Nabble.com. From veeraswamyd at yahoo.co.in Wed Nov 5 03:46:59 2008 From: veeraswamyd at yahoo.co.in (lakku) Date: Wed, 5 Nov 2008 03:46:59 -0800 (PST) Subject: [MAPSERVER-USERS] apache Message-ID: <20340273.post@talk.nabble.com> hi all i have a doubt to install mapserver,first i have to install apache2.2.10 or its not necessary? plz tell me that -- View this message in context: http://www.nabble.com/apache-tp20340273p20340273.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Wed Nov 5 04:15:11 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 5 Nov 2008 17:45:11 +0530 Subject: [MAPSERVER-USERS] apache In-Reply-To: <20340273.post@talk.nabble.com> References: <20340273.post@talk.nabble.com> Message-ID: <006f01c93f40$286208a0$792619e0$@com> Hi, You need not to install apache.Once unzip the folder in Apache folder contain C:\MS4W\apache-install.bat, apache-restart.bat. You just run the that bat files. That's it will start. Thanks Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of lakku Sent: Wednesday, November 05, 2008 5:17 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] apache hi all i have a doubt to install mapserver,first i have to install apache2.2.10 or its not necessary? plz tell me that -- View this message in context: http://www.nabble.com/apache-tp20340273p20340273.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 csaffi at libero.it Wed Nov 5 08:04:21 2008 From: csaffi at libero.it (Carmelo Saffioti) Date: Wed, 5 Nov 2008 17:04:21 +0100 Subject: [mapserver-users] Tracking vehicles, Displaying positions References: <005c01c93f24$e7f90900$6e0000c0@carmelo> <005501c93f30$01889c40$0499d4c0$@com> <015001c93f32$d9c4fc50$6e0000c0@carmelo> <45148.89.97.235.106.1225882186.squirrel@localhost.localdomain> Message-ID: <01db01c93f60$2ae68310$6e0000c0@carmelo> Thank you Pietro. Before converting from DWG to DXF, I have to say that my DWG planimetry is not georeferenced. How can I georeference it? After georeferencing it, how can I "import" the file on the map server? It will be the map, isn't it? Thank you again Cheers Carmelo > dxf2shp (http://www.spatialorder.com/downloads.htm). > You have first to convert the dwg in dxf: > http://www.autodwg.com/DWG_DXF_Converter/ is a 15-days trial, > http://www.a9tech.com/products/a9converter/ is free... > > there is also cad2shape: http://www.guthcad.com/cad2shape.htm, another > trial version. > > there is a lot of tools: http://www.google.com/search?q=convert+dwg+to+dxf > > ciao > .......................pg > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > On Mer, Novembre 5, 2008 11:39, Carmelo Saffioti wrote: > > Thank you Venkat for your reply, > > it's interesting to know that it's possible to access coordinates data > > directly from the MySql db... > > but before displaying points on the map, I need to understand how can I > > "create" a map from my planimetry DWG cad file... > > > > I hope you can help me > > Cheers > > Carmelo > > > > > > Hi, > > > > 1)There are different ways to place GPS points on map. > > a) You can display points using OGR direct connection, Please refer > > below url > > http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf > > > > http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf > > > > http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/?searchterm=ovf > > > > 2)And You can not create DWG file by using mapfile.Mapfile will give you > > image format. > > Please have a look below url. > > > > http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types > > > > I hope this helps you. > > > > Thanks, > > Venkat > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carmelo > > Saffioti > > Sent: Wednesday, November 05, 2008 2:30 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Tracking vehicles, Displaying positions > > > > Hi everybody, > > I need to develop a system for tracking and displaying vehicles > > positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd > > like to display these positions on a map. How can I do? I'm new to > > this, can you give me any suggestion? > > I have to create the map too, because this zone is not mapped. Is it > > possible to create a map from a DWG cad file? > > > > I hope you can help me > > Cheers > > Carmelo > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > From cjauvin at gmail.com Wed Nov 5 08:11:46 2008 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 5 Nov 2008 11:11:46 -0500 Subject: [mapserver-users] Problem with Python Mapscript / Projection (MS4W) In-Reply-To: <75b4b93e0811042333y3bbf271dn3e5ca23fdfc33d76@mail.gmail.com> References: <75b4b93e0811042333y3bbf271dn3e5ca23fdfc33d76@mail.gmail.com> Message-ID: Hi, In fact I'm using the MS4W distribution of MapServer, so it runs on Windows. The EPSG lookup file is there and everything seems fine, but still this nagging bug persists.. I should add that I tried loading the exact same mapfile from PHP/Mapscript, and it runs fine. The problem is specific to Python/Mapscript. Any other idea? Christian On Wed, Nov 5, 2008 at 2:33 AM, Umberto Nicoletti wrote: > make sure that the user running apache can read the /usr/share/proj/epsg file. > If permissions seem ok then it could be a problem with SELinux or > apparmor, depending on your platform. > > Umberto > > On Wed, Nov 5, 2008 at 6:12 AM, Christian Jauvin wrote: >> Hi, >> >> I get a "MapServerError: msProcessProjection(): Projection library >> error. Permission denied" error while using Python/MapScript (MS4W >> 2.3, MapServer 5), after having included a >> >> PROJECTION >> "init=epsg:XXXX" >> END >> >> directive in a mapfile layer. I guess that it has something to do with >> an Apache permission to execute a binary somewhere.. >> >> This is I think the first time I can't find an answer to a MS problem >> simply by googling, so I try it here, in hope that someone will be >> able to help. >> >> Thank you in advance, >> >> Christian >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From David.Fawcett at state.mn.us Wed Nov 5 08:16:40 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 5 Nov 2008 10:16:40 -0600 Subject: [mapserver-users] Problem with Python Mapscript / Projection(MS4W) In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056D9FD6@s-sp22.pca.state.mn.us> Have you tried to explicitly set the path to the proj library in the map file? Try adding this to the map object: CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" You can find a little more about this in the map file reference. http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christian Jauvin Sent: Wednesday, November 05, 2008 10:12 AM To: Umberto Nicoletti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Python Mapscript / Projection(MS4W) Hi, In fact I'm using the MS4W distribution of MapServer, so it runs on Windows. The EPSG lookup file is there and everything seems fine, but still this nagging bug persists.. I should add that I tried loading the exact same mapfile from PHP/Mapscript, and it runs fine. The problem is specific to Python/Mapscript. Any other idea? Christian On Wed, Nov 5, 2008 at 2:33 AM, Umberto Nicoletti wrote: > make sure that the user running apache can read the > /usr/share/proj/epsg file. If permissions seem ok then it could be a > problem with SELinux or apparmor, depending on your platform. > > Umberto > > On Wed, Nov 5, 2008 at 6:12 AM, Christian Jauvin > wrote: >> Hi, >> >> I get a "MapServerError: msProcessProjection(): Projection library >> error. Permission denied" error while using Python/MapScript (MS4W >> 2.3, MapServer 5), after having included a >> >> PROJECTION >> "init=epsg:XXXX" >> END >> >> directive in a mapfile layer. I guess that it has something to do >> with an Apache permission to execute a binary somewhere.. >> >> This is I think the first time I can't find an answer to a MS problem >> simply by googling, so I try it here, in hope that someone will be >> able to help. >> >> Thank you in advance, >> >> Christian >> _______________________________________________ >> 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 cjauvin at gmail.com Wed Nov 5 08:19:18 2008 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 5 Nov 2008 11:19:18 -0500 Subject: [mapserver-users] Cannot register on MS site Message-ID: Hi, I don't know if this is the right place to signal a problem with the MS site, but since I can't even send an email through the site.. Since yesterday, I try to register as a new user at: http://mapserver.gis.umn.edu/join_form but the system won't accept any email address I supply, even though they are valid. The answer is always: "We were unable to send your password to your email address: (146, 'Connection refused')". Christian From greenkov at gmail.com Wed Nov 5 08:46:33 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 5 Nov 2008 09:46:33 -0700 Subject: [mapserver-users] WCS time support bugs In-Reply-To: <490F84EE.1010106@gmx.net> References: <490F84EE.1010106@gmx.net> Message-ID: On Mon, Nov 3, 2008 at 4:10 PM, Armin Burger wrote: > Hi everybody > > I wanted to test the time support functionality of WCS but this seems not to > be working. There is an older bug report at > http://trac.osgeo.org/mapserver/ticket/1856 > but it seems this has not been fixed yet. > > I use a PostGIS table to store the tileindex for the time series and as > mentioned in the bug report there is still a wrong filter applied to the > tileindex. Did anybody already try if the fix suggested in the ticket will > work? > > > In addition, the time support of WCS does not have a time *range* similar to > WMS-T "ows_timeextent" like > "ows_timeextent" "2006-01-01/2006-06-01" > > WCS requires to list every single date of the available coverages under > "wcs_timeposition" which is not very feasible for longer time series. The > bug report at Ticket #2487 > http://trac.osgeo.org/mapserver/ticket/2487 > > lists this problem as fixed, but when I use > "wcs_timeposition" "2006-01-01/2006-06-01" > > and request a coverage with a parameter '&TIME=2006-05-11', with MapServer > v5.2 I still get the exception > ... > WCS server error. The coverage does not have a time position of > 2006-05-11. > ... > Any idea if the definition has to be set in another way? > > Best regards > Armin Hello Armin: I experienced the same problems some time ago. Here are the relevant posts to the ML that I wrote: http://www.nabble.com/wcs_timeposition%3A-explicit-listing-or-start-end-range--td19001008.html And the problem with using PostGIS connector: http://www.nabble.com/GetCoverage-request-and-time-idexed-coverage-using-postgis-td18743297.html I've been told to file a bug, (which I have yet to do), I hope to get some time soon to look into the code myself and see what's going on... Alex From pgiannini at bytewise.it Wed Nov 5 08:51:06 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 5 Nov 2008 17:51:06 +0100 (CET) Subject: [mapserver-users] Tracking vehicles, Displaying positions In-Reply-To: <01db01c93f60$2ae68310$6e0000c0@carmelo> References: <005c01c93f24$e7f90900$6e0000c0@carmelo> <005501c93f30$01889c40$0499d4c0$@com> <015001c93f32$d9c4fc50$6e0000c0@carmelo> <45148.89.97.235.106.1225882186.squirrel@localhost.localdomain> <01db01c93f60$2ae68310$6e0000c0@carmelo> Message-ID: <33683.89.97.235.106.1225903866.squirrel@localhost.localdomain> Hi Carmelo, it's no mode to know the projection of a dwg from itself: you have to ask those who produced. Once you have defined the projection and converted the dwg into .shp, you must to create a mapfile with a layer which data is the shapefile. Another layer will be the point layer of the vehicles. If you are newbie of mapserver, take a look to the New Users section of the site (http://mapserver.gis.umn.edu/new_users), it's very useful. ciao .................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Novembre 5, 2008 17:04, Carmelo Saffioti wrote: > Thank you Pietro. > Before converting from DWG to DXF, I have to say that my DWG planimetry is > not georeferenced. How can I georeference it? > After georeferencing it, how can I "import" the file on the map server? It > will be the map, isn't it? > > > Thank you again > Cheers > Carmelo > > > >> dxf2shp (http://www.spatialorder.com/downloads.htm). >> You have first to convert the dwg in dxf: >> http://www.autodwg.com/DWG_DXF_Converter/ is a 15-days trial, >> http://www.a9tech.com/products/a9converter/ is free... >> >> there is also cad2shape: http://www.guthcad.com/cad2shape.htm, another >> trial version. >> >> there is a lot of tools: >> http://www.google.com/search?q=convert+dwg+to+dxf >> >> ciao >> .......................pg >> >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> >> >> On Mer, Novembre 5, 2008 11:39, Carmelo Saffioti wrote: >> > Thank you Venkat for your reply, >> > it's interesting to know that it's possible to access coordinates data >> > directly from the MySql db... >> > but before displaying points on the map, I need to understand how can >> I >> > "create" a map from my planimetry DWG cad file... >> > >> > I hope you can help me >> > Cheers >> > Carmelo >> > >> > >> > Hi, >> > >> > 1)There are different ways to place GPS points on map. >> > a) You can display points using OGR direct connection, Please > refer >> > below url >> > > http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf >> > >> > > http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf >> > >> > > http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/?searchterm=ovf >> > >> > 2)And You can not create DWG file by using mapfile.Mapfile will give >> you >> > image format. >> > Please have a look below url. >> > >> > http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types >> > >> > I hope this helps you. >> > >> > Thanks, >> > Venkat >> > >> > >> > >> > From: mapserver-users-bounces at lists.osgeo.org >> > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carmelo >> > Saffioti >> > Sent: Wednesday, November 05, 2008 2:30 PM >> > To: mapserver-users at lists.osgeo.org >> > Subject: [mapserver-users] Tracking vehicles, Displaying positions >> > >> > Hi everybody, >> > I need to develop a system for tracking and displaying vehicles >> > positions. I'm storing NMEA gps sentences into a MySql DB. Now I'd >> > like to display these positions on a map. How can I do? I'm new to >> > this, can you give me any suggestion? >> > I have to create the map too, because this zone is not mapped. Is it >> > possible to create a map from a DWG cad file? >> > >> > I hope you can help me >> > Cheers >> > Carmelo >> > >> > _______________________________________________ >> > 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 cjauvin at gmail.com Wed Nov 5 08:51:04 2008 From: cjauvin at gmail.com (Christian Jauvin) Date: Wed, 5 Nov 2008 11:51:04 -0500 Subject: [mapserver-users] Problem with Python Mapscript / Projection(MS4W) + new question Message-ID: That's exactly it, it works, thank you David! I'll take the occasion to ask about something that troubles me about Python/Mapscript: what's the exact state of it, is it being actively developed and used, and what's its exact relation with the other MS components? For a long time I wrote all my MS code in PHP, and I had no problem finding reference and documentation, as it seems to be actively maintained, and people are discussing techniques and issues everywhere. But then I switched to Python/MS a couple of weeks ago, and I have a hard time just finding a basic API guide for it, and I'm always wondering if it's somewhat lagging behind its PHP brother, for some reason. Thank you for your kind help, Christian On Wed, Nov 5, 2008 at 11:16 AM, Fawcett, David wrote: > Have you tried to explicitly set the path to the proj library in the map > file? > > Try adding this to the map object: > > CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" > > You can find a little more about this in the map file reference. > http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj > > David. > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christian > Jauvin > Sent: Wednesday, November 05, 2008 10:12 AM > To: Umberto Nicoletti > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Python Mapscript / > Projection(MS4W) > > > Hi, > > In fact I'm using the MS4W distribution of MapServer, so it runs on > Windows. The EPSG lookup file is there and everything seems fine, but > still this nagging bug persists.. I should add that I tried loading the > exact same mapfile from PHP/Mapscript, and it runs fine. The problem is > specific to Python/Mapscript. Any other idea? > > Christian > > > > On Wed, Nov 5, 2008 at 2:33 AM, Umberto Nicoletti > wrote: >> make sure that the user running apache can read the >> /usr/share/proj/epsg file. If permissions seem ok then it could be a >> problem with SELinux or apparmor, depending on your platform. >> >> Umberto >> >> On Wed, Nov 5, 2008 at 6:12 AM, Christian Jauvin >> wrote: >>> Hi, >>> >>> I get a "MapServerError: msProcessProjection(): Projection library >>> error. Permission denied" error while using Python/MapScript (MS4W >>> 2.3, MapServer 5), after having included a >>> >>> PROJECTION >>> "init=epsg:XXXX" >>> END >>> >>> directive in a mapfile layer. I guess that it has something to do >>> with an Apache permission to execute a binary somewhere.. >>> >>> This is I think the first time I can't find an answer to a MS problem > >>> simply by googling, so I try it here, in hope that someone will be >>> able to help. >>> >>> Thank you in advance, >>> >>> Christian >>> _______________________________________________ >>> 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 armin.burger at gmx.net Wed Nov 5 09:13:49 2008 From: armin.burger at gmx.net (Armin Burger) Date: Wed, 05 Nov 2008 18:13:49 +0100 Subject: [mapserver-users] WCS time support bugs In-Reply-To: References: <490F84EE.1010106@gmx.net> Message-ID: <4911D44D.1050909@gmx.net> Alex I had a look at the code and tried the suggested fix. I uploaded a patch at the wiki, see this link http://trac.osgeo.org/mapserver/attachment/ticket/2487/mapwcs.c.patch With these modifications the PostGIS problem disappeared and it was also possible to specify 'wcs_timeposition' as a range of dates instead of single dates for the full timeseries. Armin On 05/11/2008 17:46, Alexander Petkov wrote: > On Mon, Nov 3, 2008 at 4:10 PM, Armin Burger wrote: >> Hi everybody >> >> I wanted to test the time support functionality of WCS but this seems not to >> be working. There is an older bug report at >> http://trac.osgeo.org/mapserver/ticket/1856 >> but it seems this has not been fixed yet. >> >> I use a PostGIS table to store the tileindex for the time series and as >> mentioned in the bug report there is still a wrong filter applied to the >> tileindex. Did anybody already try if the fix suggested in the ticket will >> work? >> >> >> In addition, the time support of WCS does not have a time *range* similar to >> WMS-T "ows_timeextent" like >> "ows_timeextent" "2006-01-01/2006-06-01" >> >> WCS requires to list every single date of the available coverages under >> "wcs_timeposition" which is not very feasible for longer time series. The >> bug report at Ticket #2487 >> http://trac.osgeo.org/mapserver/ticket/2487 >> >> lists this problem as fixed, but when I use >> "wcs_timeposition" "2006-01-01/2006-06-01" >> >> and request a coverage with a parameter '&TIME=2006-05-11', with MapServer >> v5.2 I still get the exception >> ... >> WCS server error. The coverage does not have a time position of >> 2006-05-11. >> ... >> Any idea if the definition has to be set in another way? >> >> Best regards >> Armin > > > > Hello Armin: > > I experienced the same problems some time ago. Here are the relevant > posts to the ML that I wrote: > > http://www.nabble.com/wcs_timeposition%3A-explicit-listing-or-start-end-range--td19001008.html > > And the problem with using PostGIS connector: > http://www.nabble.com/GetCoverage-request-and-time-idexed-coverage-using-postgis-td18743297.html > > I've been told to file a bug, (which I have yet to do), I hope to get > some time soon to look into the code myself and see what's going on... > > Alex > From David.Fawcett at state.mn.us Wed Nov 5 09:20:59 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 5 Nov 2008 11:20:59 -0600 Subject: [mapserver-users] Problem with Python Mapscript / Projection(MS4W) + new question In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056D9FE2@s-sp22.pca.state.mn.us> Christian, My experience is that the Python MapScript 'community' is extremely small. I really don't think that there are many people using it. If I am wrong, please speak up users. When I have posted questions to the list, if I got any response, it was from developers like Sean or Howard. My feeling is that if you want support, examples, etc. you should go with php or maybe C# .NET MapScript. I find this unfortunate because I really like Python as a language and I write a lot of GIS related Python code (ESRI and GDAL/OGR) as part of my job. David. -----Original Message----- From: Christian Jauvin [mailto:cjauvin at gmail.com] Sent: Wednesday, November 05, 2008 10:51 AM To: Fawcett, David Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Python Mapscript / Projection(MS4W) + new question That's exactly it, it works, thank you David! I'll take the occasion to ask about something that troubles me about Python/Mapscript: what's the exact state of it, is it being actively developed and used, and what's its exact relation with the other MS components? For a long time I wrote all my MS code in PHP, and I had no problem finding reference and documentation, as it seems to be actively maintained, and people are discussing techniques and issues everywhere. But then I switched to Python/MS a couple of weeks ago, and I have a hard time just finding a basic API guide for it, and I'm always wondering if it's somewhat lagging behind its PHP brother, for some reason. Thank you for your kind help, Christian On Wed, Nov 5, 2008 at 11:16 AM, Fawcett, David wrote: > Have you tried to explicitly set the path to the proj library in the > map file? > > Try adding this to the map object: > > CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" > > You can find a little more about this in the map file reference. > http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj > > David. > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Christian Jauvin > Sent: Wednesday, November 05, 2008 10:12 AM > To: Umberto Nicoletti > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Python Mapscript / > Projection(MS4W) > > > Hi, > > In fact I'm using the MS4W distribution of MapServer, so it runs on > Windows. The EPSG lookup file is there and everything seems fine, but > still this nagging bug persists.. I should add that I tried loading > the exact same mapfile from PHP/Mapscript, and it runs fine. The > problem is specific to Python/Mapscript. Any other idea? > > Christian > > > > On Wed, Nov 5, 2008 at 2:33 AM, Umberto Nicoletti > wrote: >> make sure that the user running apache can read the >> /usr/share/proj/epsg file. If permissions seem ok then it could be a >> problem with SELinux or apparmor, depending on your platform. >> >> Umberto >> >> On Wed, Nov 5, 2008 at 6:12 AM, Christian Jauvin >> wrote: >>> Hi, >>> >>> I get a "MapServerError: msProcessProjection(): Projection library >>> error. Permission denied" error while using Python/MapScript (MS4W >>> 2.3, MapServer 5), after having included a >>> >>> PROJECTION >>> "init=epsg:XXXX" >>> END >>> >>> directive in a mapfile layer. I guess that it has something to do >>> with an Apache permission to execute a binary somewhere.. >>> >>> This is I think the first time I can't find an answer to a MS >>> problem > >>> simply by googling, so I try it here, in hope that someone will be >>> able to help. >>> >>> Thank you in advance, >>> >>> Christian >>> _______________________________________________ >>> 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 bpederse at gmail.com Wed Nov 5 09:37:52 2008 From: bpederse at gmail.com (Brent Pedersen) Date: Wed, 5 Nov 2008 09:37:52 -0800 Subject: [mapserver-users] Problem with Python Mapscript / Projection(MS4W) + new question In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056D9FE2@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056D9FE2@s-sp22.pca.state.mn.us> Message-ID: i use python mapscript. there are few examples, but a php mapscript example translates pretty directly to any other. and since it's python, there's no substitute for going into ipython, import'ing mapscript and using the autocompletion to see what's available. and i know it's not exactly what you meant, but i hardly feel slighted if howard or sean answer any questions i have! On Wed, Nov 5, 2008 at 9:20 AM, Fawcett, David wrote: > Christian, > > My experience is that the Python MapScript 'community' is extremely > small. I really don't think that there are many people using it. If I > am wrong, please speak up users. When I have posted questions to the > list, if I got any response, it was from developers like Sean or Howard. > > My feeling is that if you want support, examples, etc. you should go > with php or maybe C# .NET MapScript. I find this unfortunate because I > really like Python as a language and I write a lot of GIS related Python > code (ESRI and GDAL/OGR) as part of my job. > > David. > > -----Original Message----- > From: Christian Jauvin [mailto:cjauvin at gmail.com] > Sent: Wednesday, November 05, 2008 10:51 AM > To: Fawcett, David > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problem with Python Mapscript / > Projection(MS4W) + new question > > > That's exactly it, it works, thank you David! > > I'll take the occasion to ask about something that troubles me about > Python/Mapscript: what's the exact state of it, is it being actively > developed and used, and what's its exact relation with the other MS > components? > > For a long time I wrote all my MS code in PHP, and I had no problem > finding reference and documentation, as it seems to be actively > maintained, and people are discussing techniques and issues everywhere. > But then I switched to Python/MS a couple of weeks ago, and I have a > hard time just finding a basic API guide for it, and I'm always > wondering if it's somewhat lagging behind its PHP brother, for some > reason. > > Thank you for your kind help, > > Christian > > > > On Wed, Nov 5, 2008 at 11:16 AM, Fawcett, David > wrote: >> Have you tried to explicitly set the path to the proj library in the >> map file? >> >> Try adding this to the map object: >> >> CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" >> >> You can find a little more about this in the map file reference. >> http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj >> >> David. >> >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Christian Jauvin >> Sent: Wednesday, November 05, 2008 10:12 AM >> To: Umberto Nicoletti >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Problem with Python Mapscript / >> Projection(MS4W) >> >> >> Hi, >> >> In fact I'm using the MS4W distribution of MapServer, so it runs on >> Windows. The EPSG lookup file is there and everything seems fine, but >> still this nagging bug persists.. I should add that I tried loading >> the exact same mapfile from PHP/Mapscript, and it runs fine. The >> problem is specific to Python/Mapscript. Any other idea? >> >> Christian >> >> >> >> On Wed, Nov 5, 2008 at 2:33 AM, Umberto Nicoletti >> wrote: >>> make sure that the user running apache can read the >>> /usr/share/proj/epsg file. If permissions seem ok then it could be a >>> problem with SELinux or apparmor, depending on your platform. >>> >>> Umberto >>> >>> On Wed, Nov 5, 2008 at 6:12 AM, Christian Jauvin >>> wrote: >>>> Hi, >>>> >>>> I get a "MapServerError: msProcessProjection(): Projection library >>>> error. Permission denied" error while using Python/MapScript (MS4W >>>> 2.3, MapServer 5), after having included a >>>> >>>> PROJECTION >>>> "init=epsg:XXXX" >>>> END >>>> >>>> directive in a mapfile layer. I guess that it has something to do >>>> with an Apache permission to execute a binary somewhere.. >>>> >>>> This is I think the first time I can't find an answer to a MS >>>> problem >> >>>> simply by googling, so I try it here, in hope that someone will be >>>> able to help. >>>> >>>> Thank you in advance, >>>> >>>> Christian >>>> _______________________________________________ >>>> 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 greenkov at gmail.com Wed Nov 5 10:39:18 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 5 Nov 2008 11:39:18 -0700 Subject: [mapserver-users] WCS time support bugs In-Reply-To: <4911D44D.1050909@gmx.net> References: <490F84EE.1010106@gmx.net> <4911D44D.1050909@gmx.net> Message-ID: On Wed, Nov 5, 2008 at 10:13 AM, Armin Burger wrote: > Alex > > I had a look at the code and tried the suggested fix. I uploaded a patch at > the wiki, see this link > http://trac.osgeo.org/mapserver/attachment/ticket/2487/mapwcs.c.patch > > With these modifications the PostGIS problem disappeared and it was also > possible to specify 'wcs_timeposition' as a range of dates instead of single > dates for the full timeseries. > > Armin Awesome, thanks Armin!! I will patch and use, Alex From pcreso at pcreso.com Wed Nov 5 10:48:31 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Wed, 5 Nov 2008 10:48:31 -0800 (PST) Subject: [mapserver-users] Tracking vehicles, Displaying positions In-Reply-To: <015001c93f32$d9c4fc50$6e0000c0@carmelo> Message-ID: <460149.82885.qm@web33204.mail.mud.yahoo.com> Hi Carmelo, I am doing prettyt much this for vessel positions using PostGIS databases instead of MySQL. I believe PostGIS offers more mature & substantially better support for spatial objects at present, but you can probably achieve similar results with MySQL. >From a data management and display perspective, I suggest you consider three approaches depending on your needs: 1. Just display the GPS points of the required vehicles in the map. 2. Run a query to turn the required points into a linestring on the fly & display the line. 3. Pre build vehicle tracklines according to business rules and display selected lines in the map. All are relatively simple to do with PostGIS & Mapserver, and can be managed with MySQL, although I don't think as easily. (We use mostly option 3, and also option 2, opion 1 is a bit limited & can be somewhat slower to display) You also haven't said whether you want web maps or hard copy maps. I'm assuming you are looking at web maps for now, & can print the result if required. The other issue is that the map needs some background to give your data context. If necessary you can assemble local datasets of roads, aerial/satellite imagery, etc to overlay your data on. However I suggest you consider OpenLayers to provide the maps in your web application. This gives you easy access to Google & OpenStreetMaps & a range of public WMS/WFS data as a background without having to manage these data yourself. Using Postgis to manage your spatial data, mapserver to provide it as a web service & OpenLayers as the client in your application, actually putting the various layers together to build your map is a very effective toolset for the sort of thing I think you are trying to achieve. If you do need local vector data in addition to your GPS data, then I don't think CAD is the way to go, as suggested by other respondents, extracting these into GIS formats is going to work better for you in this arena. HTH, Brent Wood --- On Wed, 11/5/08, Carmelo Saffioti wrote: > From: Carmelo Saffioti > Subject: Re: [mapserver-users] Tracking vehicles, Displaying positions > To: "Venkat Rao Tammineni" , mapserver-users at lists.osgeo.org > Date: Wednesday, November 5, 2008, 11:39 PM > Thank you Venkat for your reply, > it's interesting to know that it's possible to > access coordinates data > directly from the MySql db... > but before displaying points on the map, I need to > understand how can I > "create" a map from my planimetry DWG cad file... > > I hope you can help me > Cheers > Carmelo > > > Hi, > > 1)There are different ways to place GPS points on map. > a) You can display points using OGR direct > connection, Please refer > below url > > http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf > > http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf > > http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/?searchterm=ovf > > 2)And You can not create DWG file by using mapfile.Mapfile > will give you > image format. > Please have a look below url. > > > http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types > > I hope this helps you. > > Thanks, > Venkat > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Carmelo > Saffioti > Sent: Wednesday, November 05, 2008 2:30 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Tracking vehicles, Displaying > positions > > Hi everybody, > I need to develop a system for tracking and displaying > vehicles > positions. I'm storing NMEA gps sentences into a MySql > DB. Now I'd > like to display these positions on a map. How can I do? > I'm new to > this, can you give me any suggestion? > I have to create the map too, because this zone is not > mapped. Is it > possible to create a map from a DWG cad file? > > I hope you can help me > Cheers > Carmelo > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From randre at gmail.com Wed Nov 5 11:32:09 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 5 Nov 2008 11:32:09 -0800 Subject: [mapserver-users] Status of Postscript support in MapServer Message-ID: <9c2015090811051132g49f79f4dkd791cb14a9536de3@mail.gmail.com> Hi Everyone, I'm considering the use of MapServer in an application that generates small maps that are included in printed documents. Currently these maps are generated by GMT as .eps files, a format which makes then very easy to insert into the report. I would like to know how people feel about the current state of PDF support provided by MapServer, and whether anyone is using it in a similar fashion. I found a document on the MapServer site titled, "PDF Output", which was last updated in 2006, and which contains several caveats regarding unsupported features, ie "symbol-filled polygons, legends and scalebars". Are any of these now supported in PDF output? Thanks in advance for all comments and observations, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdowling at iupui.edu Wed Nov 5 12:55:59 2008 From: jdowling at iupui.edu (Dowling, James Parker) Date: Wed, 5 Nov 2008 15:55:59 -0500 Subject: [mapserver-users] failed expression test Message-ID: <568046DF43E0784DB9B4222C3FFCB6682545829A07@iu-mssg-mbx09.ads.iu.edu> I'm attempting to run the tutorial found at http://biometry.gis.umn.edu/tutorial/ and have received an error - msEvalRegex(): Regular Expression error. String (/home/mapdata/example01.map?layer=airports?mode=map) failed expression test. I read a previous post where it was suggested to use shp2img which comes with ms4w. Is there a comparable product for linux platforms? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Nov 5 13:42:23 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 05 Nov 2008 15:42:23 -0600 Subject: [mapserver-users] failed expression test In-Reply-To: <568046DF43E0784DB9B4222C3FFCB6682545829A07@iu-mssg-mbx09.ads.iu.edu> References: <568046DF43E0784DB9B4222C3FFCB6682545829A07@iu-mssg-mbx09.ads.iu.edu> Message-ID: <4911BEDF.5157.008F.0@dnr.state.mn.us> shp2img is available on all platforms. The problem with the URL below is that ?'s should be &'s instead. Steve >>> On 11/5/2008 at 2:55 PM, in message <568046DF43E0784DB9B4222C3FFCB6682545829A07 at iu-mssg-mbx09.ads.iu.edu>, "Dowling, James Parker" wrote: > I'm attempting to run the tutorial found at > http://biometry.gis.umn.edu/tutorial/ and have received an error - > > msEvalRegex(): Regular Expression error. String > (/home/mapdata/example01.map?layer=airports?mode=map) failed expression test. > > I read a previous post where it was suggested to use shp2img which comes > with ms4w. Is there a comparable product for linux platforms? > > Thanks, > Jim From Steve.Lime at dnr.state.mn.us Wed Nov 5 14:15:57 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 05 Nov 2008 16:15:57 -0600 Subject: [mapserver-users] mapserver nabble In-Reply-To: <412a97fc0811050227j751238fewa4771911f6a85100@mail.gmail.com> References: <412a97fc0811050227j751238fewa4771911f6a85100@mail.gmail.com> Message-ID: <4911C6BD.5157.008F.0@dnr.state.mn.us> Edmondo: We always encourage users to begin with the new users web pages: http://mapserver.gis.umn.edu/new_users If that doesn't help then by all means, bring questions to the mailing list! Please be as specific as possible though and folks will be glad to help. For instance, what platform are you on, what version, what exactly wasn't clear, and so on... Steve >>> On 11/5/2008 at 4:27 AM, in message <412a97fc0811050227j751238fewa4771911f6a85100 at mail.gmail.com>, "Edmondo Elisei" wrote: > Dear All, > I've some difficult to start with mapserver; I'd like installing itasca demo > but I don't know how configure index file. > the instructions in readme file aren't really clear (for me of course) > > Thanks to all > > Edmondo From csaffi at libero.it Wed Nov 5 15:31:22 2008 From: csaffi at libero.it (Carmelo Saffioti) Date: Thu, 6 Nov 2008 00:31:22 +0100 Subject: [mapserver-users] Tracking vehicles, Displaying positions References: <460149.82885.qm@web33204.mail.mud.yahoo.com> Message-ID: <02bd01c93f9e$9d3ad130$6e0000c0@carmelo> Hi Brent, thank you very much for your really interesting suggestions. > 1. Just display the GPS points of the required vehicles in the map. > 2. Run a query to turn the required points into a linestring on the fly & display the line. > 3. Pre build vehicle tracklines according to business rules and display selected lines in the map. - these pre-build vehicle tracklines are every possible street on which any vehicle can move on? (1) could be the solution. How come (2) and (3) are faster? > You also haven't said whether you want web maps or hard copy maps. I'm assuming you are looking at web maps for now, & can print the result if required. - I need web maps > The other issue is that the map needs some background to give your data context. If necessary you can assemble local datasets of roads, aerial/satellite imagery, etc to overlay your data on. However I suggest you consider OpenLayers to provide the maps in your web application. This gives you easy access to Google & OpenStreetMaps & a range of public WMS/WFS data as a background without having to manage these data yourself. - It could be a good idea, but I don't think that exists any map of the zone I need, because it's a private area, not a public street. So, a public map could have not every possible street in the zone. On GoogleMaps I saw that the map of this zone is about 3 years old. > Using Postgis to manage your spatial data, mapserver to provide it as a web service & OpenLayers as the client in your application, actually putting the various layers together to build your map is a very effective toolset for the sort of thing I think you are trying to achieve. > > If you do need local vector data in addition to your GPS data, then I don't think CAD is the way to go, as suggested by other respondents, extracting these into GIS formats is going to work better for you in this arena. - So, do you suggest to extract the DWG planimetry into Postgis tables? If yes, before extracting the DWG, do I need to make it georeferenced? Thank you again for your help Cheers Carmelo > Hi Carmelo, > > I am doing prettyt much this for vessel positions using PostGIS databases instead of MySQL. I believe PostGIS offers more mature & substantially better support for spatial objects at present, but you can probably achieve similar results with MySQL. > > From a data management and display perspective, I suggest you consider three approaches depending on your needs: > > 1. Just display the GPS points of the required vehicles in the map. > 2. Run a query to turn the required points into a linestring on the fly & display the line. > 3. Pre build vehicle tracklines according to business rules and display selected lines in the map. > > All are relatively simple to do with PostGIS & Mapserver, and can be managed with MySQL, although I don't think as easily. (We use mostly option 3, and also option 2, opion 1 is a bit limited & can be somewhat slower to display) > > You also haven't said whether you want web maps or hard copy maps. I'm assuming you are looking at web maps for now, & can print the result if required. > > The other issue is that the map needs some background to give your data context. If necessary you can assemble local datasets of roads, aerial/satellite imagery, etc to overlay your data on. However I suggest you consider OpenLayers to provide the maps in your web application. This gives you easy access to Google & OpenStreetMaps & a range of public WMS/WFS data as a background without having to manage these data yourself. > > Using Postgis to manage your spatial data, mapserver to provide it as a web service & OpenLayers as the client in your application, actually putting the various layers together to build your map is a very effective toolset for the sort of thing I think you are trying to achieve. > > If you do need local vector data in addition to your GPS data, then I don't think CAD is the way to go, as suggested by other respondents, extracting these into GIS formats is going to work better for you in this arena. > > HTH, > > Brent Wood > > > --- On Wed, 11/5/08, Carmelo Saffioti wrote: > > > From: Carmelo Saffioti > > Subject: Re: [mapserver-users] Tracking vehicles, Displaying positions > > To: "Venkat Rao Tammineni" , mapserver-users at lists.osgeo.org > > Date: Wednesday, November 5, 2008, 11:39 PM > > Thank you Venkat for your reply, > > it's interesting to know that it's possible to > > access coordinates data > > directly from the MySql db... > > but before displaying points on the map, I need to > > understand how can I > > "create" a map from my planimetry DWG cad file... > > > > I hope you can help me > > Cheers > > Carmelo > > > > > > Hi, > > > > 1)There are different ways to place GPS points on map. > > a) You can display points using OGR direct > > connection, Please refer > > below url > > > > http://mapserver.gis.umn.edu/docs/howto/ogrmysql/?searchterm=ovf > > > > http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql/?searchterm=ovf > > > > http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData/?searchterm=ovf > > > > 2)And You can not create DWG file by using mapfile.Mapfile > > will give you > > image format. > > Please have a look below url. > > > > > > http://mapserver.gis.umn.edu/docs/reference/vector_data/format_types > > > > I hope this helps you. > > > > Thanks, > > Venkat > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > > Of Carmelo > > Saffioti > > Sent: Wednesday, November 05, 2008 2:30 PM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Tracking vehicles, Displaying > > positions > > > > Hi everybody, > > I need to develop a system for tracking and displaying > > vehicles > > positions. I'm storing NMEA gps sentences into a MySql > > DB. Now I'd > > like to display these positions on a map. How can I do? > > I'm new to > > this, can you give me any suggestion? > > I have to create the map too, because this zone is not > > mapped. Is it > > possible to create a map from a DWG cad file? > > > > I hope you can help me > > Cheers > > Carmelo > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Nov 5 20:19:57 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 05 Nov 2008 22:19:57 -0600 Subject: [mapserver-users] Browse mode Message-ID: <49121C0D0200008F0001D42E@co5.dnr.state.mn.us> Typically this indicates a size mis-match between the browse form and the SIZE set in the mapfile. If not in sync the map click will be computed in the wrong place. Steve >>> "Denis Rykov" 11/03/08 1:02 PM >>> What I need do, that map is not recentered if I click on the map in BROWSE mode? From ab at kragten.nl Thu Nov 6 01:30:26 2008 From: ab at kragten.nl (Ad Brouwer) Date: Thu, 6 Nov 2008 10:30:26 +0100 Subject: [mapserver-users] Downloadable version of mailing-lists Message-ID: <001001c93ff2$4d5e21e0$036d10ac@kragten.nl> Hello All, I'm new to MapServer and MapScript, so I need as much info as i can get. I did not find a way to search the mailinglists. Is this because i missed is or isn't there any? As an alternative i tried the 'downloadable version" of the mailinglist, but when untarred the file, the *.txt was unreadable. What am i doing wrong? Thanks in advance. Ad Brouwer -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Thu Nov 6 02:09:55 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 6 Nov 2008 11:09:55 +0100 (CET) Subject: [mapserver-users] Downloadable version of mailing-lists In-Reply-To: <001001c93ff2$4d5e21e0$036d10ac@kragten.nl> References: <001001c93ff2$4d5e21e0$036d10ac@kragten.nl> Message-ID: <49401.145.50.39.11.1225966195.squirrel@webmail.hostingdiscounter.nl> Hi Ad, I can confirm something is wrong with the text.gz archives. I'd suggest using plain old Google with a site keyword, something like: site:lists.osgeo.org/pipermail wfs problem Hope this helps. Best regards, Bart > Hello All, > > I'm new to MapServer and MapScript, so I need as much info as i can get. > > I did not find a way to search the mailinglists. Is this because i missed > is or isn't there any? > As an alternative i tried the 'downloadable version" of the mailinglist, > but when untarred the file, the *.txt was unreadable. What am i doing > wrong? > > Thanks in advance. > > Ad Brouwer_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tech_dev at wildintellect.com Thu Nov 6 02:42:58 2008 From: tech_dev at wildintellect.com (Alex Mandel) Date: Thu, 06 Nov 2008 02:42:58 -0800 Subject: [mapserver-users] Downloadable version of mailing-lists In-Reply-To: <49401.145.50.39.11.1225966195.squirrel@webmail.hostingdiscounter.nl> References: <001001c93ff2$4d5e21e0$036d10ac@kragten.nl> <49401.145.50.39.11.1225966195.squirrel@webmail.hostingdiscounter.nl> Message-ID: <4912CA32.9020802@wildintellect.com> It's archived and searchable on nabble http://www.nabble.com/MapServer-f1214.html Alex bartvde at osgis.nl wrote: > Hi Ad, > > I can confirm something is wrong with the text.gz archives. > > I'd suggest using plain old Google with a site keyword, something like: > > site:lists.osgeo.org/pipermail wfs problem > > Hope this helps. > > Best regards, > Bart > >> Hello All, >> >> I'm new to MapServer and MapScript, so I need as much info as i can get. >> >> I did not find a way to search the mailinglists. Is this because i missed >> is or isn't there any? >> As an alternative i tried the 'downloadable version" of the mailinglist, >> but when untarred the file, the *.txt was unreadable. What am i doing >> wrong? >> >> Thanks in advance. >> >> Ad Brouwer_______________________________________________ >> 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 jochen.wagner8 at googlemail.com Thu Nov 6 03:10:38 2008 From: jochen.wagner8 at googlemail.com (Jochen Wagner) Date: Thu, 6 Nov 2008 12:10:38 +0100 Subject: [mapserver-users] getting field names using mapscript Message-ID: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> Hi list, I would like to list from any layer ($ qlayer) only the field names of the attribute tables and the number of objects in the table. With this code it works already: //loading mapfile $map= ms_newMapObj($mapfilepath.'\ demo.map'); //set layer $layer = $map->getLayerByName($qlayer); //rectquery via mapextent @$datQuery = $layer->queryByRect($map->extent); //if query is successful if ($datQuery == MS_SUCCESS) { //number of objects $resnum = $layer->getNumResults(); echo 'Anzahl: '.$resnum.'
'; $layer->open(); $result = $layer->getResult(0); $shpobj = $layer->getShape($result->tileindex,$result->shapeindex); //read attribute table $attr = $shpobj->values; foreach($attr as $name=>$wert) { echo 'Feld: '.$name.'
'; } } $shpobj->free(); $layer->close(); However, this method has the disadvantage using a layers with many records the script takes a very long time, I guess because I have a query about the whole issue run. Has someone an approach for me, getting 1. the field names of the table and 2. the number of objects in the table performantly using MapScript ? thanks Jo From umberto.nicoletti at gmail.com Thu Nov 6 03:14:06 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 6 Nov 2008 12:14:06 +0100 Subject: [mapserver-users] getting field names using mapscript In-Reply-To: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> Message-ID: <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> You can use the items array on the layer object to get the field names On Thu, Nov 6, 2008 at 12:10 PM, Jochen Wagner wrote: > Hi list, > I would like to list from any layer ($ qlayer) only the field names of > the attribute tables and the number of objects in the table. > > With this code it works already: > > //loading mapfile > $map= ms_newMapObj($mapfilepath.'\ > demo.map'); > > //set layer > $layer = $map->getLayerByName($qlayer); > > //rectquery via mapextent > @$datQuery = $layer->queryByRect($map->extent); > > //if query is successful > if ($datQuery == MS_SUCCESS) { > //number of objects > $resnum = $layer->getNumResults(); > echo 'Anzahl: '.$resnum.'
'; > > $layer->open(); > $result = $layer->getResult(0); > $shpobj = $layer->getShape($result->tileindex,$result->shapeindex); > > //read attribute table > $attr = $shpobj->values; > foreach($attr as $name=>$wert) { > echo 'Feld: '.$name.'
'; > } > } > $shpobj->free(); > $layer->close(); > > However, this method has the disadvantage using a layers with many > records the script takes a very long time, I guess because I have a > query about the whole issue run. > Has someone an approach for me, getting > 1. the field names of the table and > 2. the number of objects in the table > performantly using MapScript ? > thanks > Jo > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From reena at indiamail.com Thu Nov 6 03:45:55 2008 From: reena at indiamail.com (S.Reena) Date: Thu, 6 Nov 2008 03:45:55 -0800 (PST) Subject: [MAPSERVER-USERS] point,polygon and line layers in single map file Message-ID: <20359604.post@talk.nabble.com> Hi All, Is it possible to make a single map file having all the three types of layers ( point, polygon and line) and if yes how to store that in geometry_columns table in postgresql which gives duplication error ? -- View this message in context: http://www.nabble.com/point%2Cpolygon-and-line-layers-in-single-map-file-tp20359604p20359604.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Thu Nov 6 04:11:42 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 6 Nov 2008 17:41:42 +0530 Subject: [MAPSERVER-USERS] point, polygon and line layers in single map file In-Reply-To: <20359604.post@talk.nabble.com> References: <20359604.post@talk.nabble.com> Message-ID: <002901c94008$d66b1db0$83415910$@com> Hi, You want to store 3 type (point line polygon) in single table? if it is... It is not possible.. you can not store different data types(point line polygon). As per my knowledge. Or You want create 3 types in a single layer ? it is possible. This common approach.. Under map u can have any number of layers. I hope u r clear with your doubt. let me know. Thanks Venkat -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of S.Reena Sent: Thursday, November 06, 2008 5:16 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] point,polygon and line layers in single map file Hi All, Is it possible to make a single map file having all the three types of layers ( point, polygon and line) and if yes how to store that in geometry_columns table in postgresql which gives duplication error ? -- View this message in context: http://www.nabble.com/point%2Cpolygon-and-line-layers-in-single-map-file-tp2 0359604p20359604.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 veeraswamyd at yahoo.co.in Thu Nov 6 04:32:30 2008 From: veeraswamyd at yahoo.co.in (lakku) Date: Thu, 6 Nov 2008 04:32:30 -0800 (PST) Subject: [MAPSERVER-USERS] ms4w installation Message-ID: <20360185.post@talk.nabble.com> hi iam using "windows XP media center edition" i have executed '/ms4w/apache-uninstall.bat' in command prompt to uninstall apache but it is displaying error as " 'httpd ' is not recognized as internal or external command,operable program or batch file" plz tell me that -- View this message in context: http://www.nabble.com/ms4w-installation-tp20360185p20360185.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at gmail.com Thu Nov 6 04:38:29 2008 From: ritesh.linux at gmail.com (Ritesh Ambastha) Date: Thu, 6 Nov 2008 18:08:29 +0530 Subject: [MAPSERVER-USERS] ms4w installation In-Reply-To: <20360185.post@talk.nabble.com> References: <20360185.post@talk.nabble.com> Message-ID: Have you tried /ms4w/apache-install.bat before trying uninstallation? Ritesh Ambastha On Thu, Nov 6, 2008 at 6:02 PM, lakku wrote: > > hi > > iam using "windows XP media center edition" > i have executed '/ms4w/apache-uninstall.bat' in command prompt to uninstall > apache > but it is displaying error as " 'httpd ' is not recognized as internal or > external command,operable program or batch file" > plz tell me that > > -- > View this message in context: http://www.nabble.com/ms4w-installation-tp20360185p20360185.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Thu Nov 6 04:54:45 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 6 Nov 2008 14:54:45 +0200 Subject: [MAPSERVER-USERS] ms4w installation In-Reply-To: <20360185.post@talk.nabble.com> Message-ID: Hi, This is the apache-uninstall.bat file: @ECHO OFF REM This installs and starts the apache service cd Apache\bin httpd -k install -n "Apache MS4W Web Server" net start "Apache MS4W Web Server" cd ..\.. :ALL_DONE You can follow it manually for investigating what happens. Open the Windows command window, change directory to where the apache-uninstall.bat file is (propably c:\ms4w). Then just execute the command one by one starting from "cd Apache\bin" and see what happens. The error message you see looks like the Apache executable file "httpd.exe" does not exist in the c:\ms4w\apache\bin directory. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta lakku > L?hetetty: 6. marraskuuta 2008 14:33 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [MAPSERVER-USERS] ms4w installation > > > hi > > iam using "windows XP media center edition" > i have executed '/ms4w/apache-uninstall.bat' in command > prompt to uninstall apache but it is displaying error as " > 'httpd ' is not recognized as internal or external > command,operable program or batch file" > plz tell me that > > -- > View this message in context: > http://www.nabble.com/ms4w-installation-tp20360185p20360185.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 jochen.wagner8 at googlemail.com Thu Nov 6 05:32:53 2008 From: jochen.wagner8 at googlemail.com (Jochen Wagner) Date: Thu, 6 Nov 2008 14:32:53 +0100 Subject: [mapserver-users] getting field names using mapscript In-Reply-To: <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> Message-ID: <72c962640811060532j57234b22o4f610728b7c1d824@mail.gmail.com> thanks, works fine and fast for each layer: $layer->open(); $myitems = $layer->getItems(); foreach($myitems as $item) { echo $item."
"; } $layer->close(); but how can I get the numer of records without a query? Jo 2008/11/6 Umberto Nicoletti : > You can use the items array on the layer object to get the field names > > On Thu, Nov 6, 2008 at 12:10 PM, Jochen Wagner > wrote: >> Hi list, >> I would like to list from any layer ($ qlayer) only the field names of >> the attribute tables and the number of objects in the table. >> >> With this code it works already: >> >> //loading mapfile >> $map= ms_newMapObj($mapfilepath.'\ >> demo.map'); >> >> //set layer >> $layer = $map->getLayerByName($qlayer); >> >> //rectquery via mapextent >> @$datQuery = $layer->queryByRect($map->extent); >> >> //if query is successful >> if ($datQuery == MS_SUCCESS) { >> //number of objects >> $resnum = $layer->getNumResults(); >> echo 'Anzahl: '.$resnum.'
'; >> >> $layer->open(); >> $result = $layer->getResult(0); >> $shpobj = $layer->getShape($result->tileindex,$result->shapeindex); >> >> //read attribute table >> $attr = $shpobj->values; >> foreach($attr as $name=>$wert) { >> echo 'Feld: '.$name.'
'; >> } >> } >> $shpobj->free(); >> $layer->close(); >> >> However, this method has the disadvantage using a layers with many >> records the script takes a very long time, I guess because I have a >> query about the whole issue run. >> Has someone an approach for me, getting >> 1. the field names of the table and >> 2. the number of objects in the table >> performantly using MapScript ? >> thanks >> Jo >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From umberto.nicoletti at gmail.com Thu Nov 6 06:10:28 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 6 Nov 2008 15:10:28 +0100 Subject: [mapserver-users] getting field names using mapscript In-Reply-To: <72c962640811060532j57234b22o4f610728b7c1d824@mail.gmail.com> References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> <72c962640811060532j57234b22o4f610728b7c1d824@mail.gmail.com> Message-ID: <75b4b93e0811060610r44cba0e0x126a9279cbf108a@mail.gmail.com> Sorry don't know that :-( On Thu, Nov 6, 2008 at 2:32 PM, Jochen Wagner wrote: > thanks, works fine and fast for each layer: > > $layer->open(); > $myitems = $layer->getItems(); > > foreach($myitems as $item) { > echo $item."
"; > } > $layer->close(); > > but how can I get the numer of records without a query? > Jo > > > 2008/11/6 Umberto Nicoletti : >> You can use the items array on the layer object to get the field names >> >> On Thu, Nov 6, 2008 at 12:10 PM, Jochen Wagner >> wrote: >>> Hi list, >>> I would like to list from any layer ($ qlayer) only the field names of >>> the attribute tables and the number of objects in the table. >>> >>> With this code it works already: >>> >>> //loading mapfile >>> $map= ms_newMapObj($mapfilepath.'\ >>> demo.map'); >>> >>> //set layer >>> $layer = $map->getLayerByName($qlayer); >>> >>> //rectquery via mapextent >>> @$datQuery = $layer->queryByRect($map->extent); >>> >>> //if query is successful >>> if ($datQuery == MS_SUCCESS) { >>> //number of objects >>> $resnum = $layer->getNumResults(); >>> echo 'Anzahl: '.$resnum.'
'; >>> >>> $layer->open(); >>> $result = $layer->getResult(0); >>> $shpobj = $layer->getShape($result->tileindex,$result->shapeindex); >>> >>> //read attribute table >>> $attr = $shpobj->values; >>> foreach($attr as $name=>$wert) { >>> echo 'Feld: '.$name.'
'; >>> } >>> } >>> $shpobj->free(); >>> $layer->close(); >>> >>> However, this method has the disadvantage using a layers with many >>> records the script takes a very long time, I guess because I have a >>> query about the whole issue run. >>> Has someone an approach for me, getting >>> 1. the field names of the table and >>> 2. the number of objects in the table >>> performantly using MapScript ? >>> thanks >>> Jo >>> _______________________________________________ >>> 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 nikos at maich.gr Thu Nov 6 05:07:53 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Thu, 6 Nov 2008 15:07:53 +0200 (EET) Subject: [mapserver-users] map mode for ajax calls In-Reply-To: <75b4b93e0811060610r44cba0e0x126a9279cbf108a@mail.gmail.com> References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> <72c962640811060532j57234b22o4f610728b7c1d824@mail.gmail.com> <75b4b93e0811060610r44cba0e0x126a9279cbf108a@mail.gmail.com> Message-ID: <1081.193.218.36.79.1225976873.squirrel@193.218.36.79> Hi all, I've been playing using ajax calls to the ms executable. I'm using map mode and piping to a file, and returning this file ref to update the image div, and it works fast and fine. I would also like to update the legend, layer images, and it seems that these are only produced in browse mode. Outside of parsing the map file produced to extract the above image names when one pipes the cgi, is there another, possibly simpler way? way? regards, nicolas boretos From danlittle at yahoo.com Thu Nov 6 06:44:43 2008 From: danlittle at yahoo.com (Dan Little) Date: Thu, 6 Nov 2008 06:44:43 -0800 (PST) Subject: [mapserver-users] map mode for ajax calls References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> <72c962640811060532j57234b22o4f610728b7c1d824@mail.gmail.com> <75b4b93e0811060610r44cba0e0x126a9279cbf108a@mail.gmail.com> <1081.193.218.36.79.1225976873.squirrel@193.218.36.79> Message-ID: <933159.49582.qm@web51412.mail.re2.yahoo.com> You can actually call the legend and individual layer images. For the legends, mode=legend will help you out. For the layer images, you could iterate through the layer name list to generate each individual image. ----- Original Message ---- > From: "nikos at maich.gr" > To: mapserver-users at lists.osgeo.org > Sent: Thursday, November 6, 2008 7:07:53 AM > Subject: [mapserver-users] map mode for ajax calls > > Hi all, > > I've been playing using ajax calls to the ms executable. > I'm using map mode and piping to a file, and returning this file ref to > update the image div, and it works fast and fine. > > I would also like to update the legend, layer images, and it seems that > these are only produced in browse mode. > > Outside of parsing the map file produced to extract the above image names > when one pipes the cgi, is there another, possibly simpler way? way? > > regards, > > nicolas boretos > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From p_kruschitz at hotmail.com Thu Nov 6 07:10:01 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Thu, 6 Nov 2008 07:10:01 -0800 (PST) Subject: [MAPSERVER-USERS] Features not displayed if LABELITEM is null Message-ID: <20362894.post@talk.nabble.com> Hi list, Is it normal that Mapserver won't draw features if it can't find a string in the [labelitem] attribute? I am trying to display a road network and, logically, some of the segments in it don't have any name attached to them. In this case, there is a NULL value in the 'name' column of my PostGIS table. Using this column as the LABELITEM in my layer, Mapserver just seems to skip those records and won't display them, even if they have a valid geometry. A workaround is to update all my tables and replace this NULL with an empty string. I'll probably end up doing just that, but I ain't happy about it, as my tables contain +30 millions of entries and updating the whole dataset will take forever. I was just wondering if someone else had noticed this behaviour before and if there's another solution. Tanks, Philippe -- View this message in context: http://www.nabble.com/Features-not-displayed-if-LABELITEM-is-null-tp20362894p20362894.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Nov 6 07:21:24 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 06 Nov 2008 10:21:24 -0500 Subject: [MAPSERVER-USERS] point,polygon and line layers in single map file In-Reply-To: <20359604.post@talk.nabble.com> References: <20359604.post@talk.nabble.com> Message-ID: <49130B74.4040207@swoodbridge.com> S.Reena wrote: > Hi All, > > Is it possible to make a single map file having all the three types of > layers ( point, polygon and line) and if yes how to store that in > geometry_columns table in postgresql which gives duplication error ? Yes, all mapfiles tend to have multiple layers, I have some with 100s of layers. Think about the problem like this: mapfile == map layer == one type of data (point, line, polygon, label, etc) from one particular data source. class == one particular subset of data in a layer that you want to isolate and render in a particular manner So in you question above: You would have three or more layers. At least one for each point, line, polygon data type. In postgres these would each be a different table or tables. Even while roads and railroads are both lines, you might want them separated into two separate tables in postgres. and you would have two separate layers to render them. HTH, -Stephen Woodbridge http://imaptools.com/ From Steve.Lime at dnr.state.mn.us Thu Nov 6 08:13:30 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 06 Nov 2008 10:13:30 -0600 Subject: [MAPSERVER-USERS] Features not displayed if LABELITEM is null In-Reply-To: <20362894.post@talk.nabble.com> References: <20362894.post@talk.nabble.com> Message-ID: <4912C34A.5157.008F.0@dnr.state.mn.us> What layer type, version, etc...? >>> On 11/6/2008 at 9:10 AM, in message <20362894.post at talk.nabble.com>, Philippe Kruschitz wrote: > Hi list, > > Is it normal that Mapserver won't draw features if it can't find a string in > the [labelitem] attribute? > > I am trying to display a road network and, logically, some of the segments > in it don't have any name attached to them. In this case, there is a NULL > value in the 'name' column of my PostGIS table. Using this column as the > LABELITEM in my layer, Mapserver just seems to skip those records and won't > display them, even if they have a valid geometry. > > A workaround is to update all my tables and replace this NULL with an empty > string. I'll probably end up doing just that, but I ain't happy about it, as > my tables contain +30 millions of entries and updating the whole dataset > will take forever. > > I was just wondering if someone else had noticed this behaviour before and > if there's another solution. > > Tanks, > > Philippe From cjauvin at gmail.com Thu Nov 6 08:19:50 2008 From: cjauvin at gmail.com (Christian Jauvin) Date: Thu, 6 Nov 2008 11:19:50 -0500 Subject: [mapserver-users] Getteing the intersection of two layers Message-ID: Hi Everyone, I have two layers that I want to intersect: one with points, and one with multiple polygons representing the regions of a territory. The first approach I just tried is doing it programmatically, through Python/MS: I first union all the region polygons, and then get the convex hull of this super-shape. I then restrict the points to those inside this convex hull. The problem is that it is really too slow.. I'm aware that I could do it through PostGIS, and that performance would surely much better, but I'd rather stay with a more generic solution, that is applicable to shapefile data sources as well. Would someone be aware of a better method, maybe one involving only mapfile directives? Thank you, Christian From fsalas at geocuba.cu Thu Nov 6 02:54:05 2008 From: fsalas at geocuba.cu (fsalas) Date: Thu, 6 Nov 2008 11:54:05 +0100 Subject: [mapserver-users] about Obtaing high performance in the map server response Message-ID: <009301c93ffe$13c217a0$cd01030a@mapificacion03> I Have the following question, in this moment i have been working with three layers but when i use the zoom or other tools , this operation is very slow, my computer have a high performance What can i do for Obtaining high performance in the map server response ___________________________________ Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 1230006 Definition date: 2008/11/06 MDAV version: 2.2.8 -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Thu Nov 6 09:16:42 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 06 Nov 2008 18:16:42 +0100 Subject: [mapserver-users] about Obtaing high performance in the map server response In-Reply-To: <009301c93ffe$13c217a0$cd01030a@mapificacion03> References: <009301c93ffe$13c217a0$cd01030a@mapificacion03> Message-ID: <4913267A.8040505@neogeo-online.net> Hol?, What sort of data are you displaying ? which format are them ? regards Guillaume fsalas a ?crit : > I Have the following question, in this moment i have been working with > three layers but when i use the zoom or other tools , this operation is > very slow, my computer have a high performance > > What can i do for Obtaining high performance in the map server response > > > ___________________________________ > Dpto de Sistemas Inform?ticos > Oficina Central Grupo Empresarial GEOCUBA > Este mensaje esta libre de virus. > Revisado por Kaspersky Antivirus > ---------------------------------------------------------------------- > Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: > 1230006 Definition date: 2008/11/06 MDAV version: 2.2.8 > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- From Steve.Lime at dnr.state.mn.us Thu Nov 6 08:59:55 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 06 Nov 2008 10:59:55 -0600 Subject: [mapserver-users] getting field names using mapscript In-Reply-To: <75b4b93e0811060610r44cba0e0x126a9279cbf108a@mail.gmail.com> References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> <72c962640811060532j57234b22o4f610728b7c1d824@mail.gmail.com> <75b4b93e0811060610r44cba0e0x126a9279cbf108a@mail.gmail.com> Message-ID: <4912CE2B.5157.008F.0@dnr.state.mn.us> If you're using a shapefile however you can do something like: // in perl $shapefile = new mapscript::shapefileObj('myshapefile', -1); print $shapefile->{numshapes}; There is a getNumFeatures() method for layer objects although I don't know if it is widely implemented. Steve >>> On 11/6/2008 at 8:10 AM, in message <75b4b93e0811060610r44cba0e0x126a9279cbf108a at mail.gmail.com>, "Umberto Nicoletti" wrote: > Sorry don't know that :-( > > On Thu, Nov 6, 2008 at 2:32 PM, Jochen Wagner > wrote: >> thanks, works fine and fast for each layer: >> >> $layer->open(); >> $myitems = $layer->getItems(); >> >> foreach($myitems as $item) { >> echo $item."
"; >> } >> $layer->close(); >> >> but how can I get the numer of records without a query? >> Jo >> >> >> 2008/11/6 Umberto Nicoletti : >>> You can use the items array on the layer object to get the field names >>> >>> On Thu, Nov 6, 2008 at 12:10 PM, Jochen Wagner >>> wrote: >>>> Hi list, >>>> I would like to list from any layer ($ qlayer) only the field names of >>>> the attribute tables and the number of objects in the table. >>>> >>>> With this code it works already: >>>> >>>> //loading mapfile >>>> $map= ms_newMapObj($mapfilepath.'\ >>>> demo.map'); >>>> >>>> //set layer >>>> $layer = $map->getLayerByName($qlayer); >>>> >>>> //rectquery via mapextent >>>> @$datQuery = $layer->queryByRect($map->extent); >>>> >>>> //if query is successful >>>> if ($datQuery == MS_SUCCESS) { >>>> //number of objects >>>> $resnum = $layer->getNumResults(); >>>> echo 'Anzahl: '.$resnum.'
'; >>>> >>>> $layer->open(); >>>> $result = $layer->getResult(0); >>>> $shpobj = $layer->getShape($result->tileindex,$result->shapeindex); >>>> >>>> //read attribute table >>>> $attr = $shpobj->values; >>>> foreach($attr as $name=>$wert) { >>>> echo 'Feld: '.$name.'
'; >>>> } >>>> } >>>> $shpobj->free(); >>>> $layer->close(); >>>> >>>> However, this method has the disadvantage using a layers with many >>>> records the script takes a very long time, I guess because I have a >>>> query about the whole issue run. >>>> Has someone an approach for me, getting >>>> 1. the field names of the table and >>>> 2. the number of objects in the table >>>> performantly using MapScript ? >>>> thanks >>>> Jo >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> From p_kruschitz at hotmail.com Thu Nov 6 09:27:41 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Thu, 6 Nov 2008 09:27:41 -0800 (PST) Subject: [MAPSERVER-USERS] Features not displayed if LABELITEM is null In-Reply-To: <4912C34A.5157.008F.0@dnr.state.mn.us> References: <20362894.post@talk.nabble.com> <4912C34A.5157.008F.0@dnr.state.mn.us> Message-ID: <20365705.post@talk.nabble.com> Hi Steve, We work with a *lot* of mapfiles on this project and after going through them thoroughly, I found out that the older one still had a filter on null values set. Therefore, replacing the null values with a string seemed to do it.... I should have thought of this earlier, sorry. Thanks that you took some of your time replying, I'll try to be more careful and check every option next time before posting to the list... Have a nice day, Philippe -- View this message in context: http://www.nabble.com/Features-not-displayed-if-LABELITEM-is-null-tp20362894p20365705.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Nov 6 09:54:13 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 06 Nov 2008 12:54:13 -0500 Subject: [mapserver-users] about Obtaing high performance in the map server response In-Reply-To: <009301c93ffe$13c217a0$cd01030a@mapificacion03> References: <009301c93ffe$13c217a0$cd01030a@mapificacion03> Message-ID: <49132F45.5080807@swoodbridge.com> fsalas wrote: > > > I Have the following question, in this moment i have been working with > three layers but when i use the zoom or other tools , this operation is > very slow, my computer have a high performance > > What can i do for Obtaining high performance in the map server response There is a FAQ on performance IIRC. You need to explain more about your configuration. Show your mapfile. Are you working with shapefiles, postgres, raster, vector, etc ... How big are your files? Have you turned on DEBUG 5 CONFIG MS_ERRORFILE "stderr" and looked at your apache error_log for each request? This should tell you how much time each layer takes to draw so you can see WHAT is slow? Give us some more info and we might be able to help you. -Stephen Woodbridge http://imaptools.com/ From mapserver at geoworld.de Thu Nov 6 11:14:46 2008 From: mapserver at geoworld.de (Nicol Hermann) Date: Thu, 06 Nov 2008 20:14:46 +0100 Subject: [mapserver-users] getting field names using mapscript In-Reply-To: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> Message-ID: <1225998886.4823.2.camel@localhost> Hi Jochen, Assuming you are using Shapefiles maybe you can achieve your second goal with the base module of PHP http://de3.php.net/manual/de/function.dbase-numrecords.php HTH Nicol Am Donnerstag, den 06.11.2008, 12:10 +0100 schrieb Jochen Wagner: > Hi list, > I would like to list from any layer ($ qlayer) only the field names of > the attribute tables and the number of objects in the table. > > With this code it works already: > > //loading mapfile > $map= ms_newMapObj($mapfilepath.'\ > demo.map'); > > //set layer > $layer = $map->getLayerByName($qlayer); > > //rectquery via mapextent > @$datQuery = $layer->queryByRect($map->extent); > > //if query is successful > if ($datQuery == MS_SUCCESS) { > //number of objects > $resnum = $layer->getNumResults(); > echo 'Anzahl: '.$resnum.'
'; > > $layer->open(); > $result = $layer->getResult(0); > $shpobj = $layer->getShape($result->tileindex,$result->shapeindex); > > //read attribute table > $attr = $shpobj->values; > foreach($attr as $name=>$wert) { > echo 'Feld: '.$name.'
'; > } > } > $shpobj->free(); > $layer->close(); > > However, this method has the disadvantage using a layers with many > records the script takes a very long time, I guess because I have a > query about the whole issue run. > Has someone an approach for me, getting > 1. the field names of the table and > 2. the number of objects in the table > performantly using MapScript ? > thanks > Jo > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From fsalas at geocuba.cu Thu Nov 6 05:17:07 2008 From: fsalas at geocuba.cu (fsalas) Date: Thu, 6 Nov 2008 14:17:07 +0100 Subject: [mapserver-users] Fw: about Obtaing high performance in the map server response using Mapserver and postgis Message-ID: <005801c94012$07d924b0$cb01030a@mapificacion03> I Have the following question, in this moment i have been working with three layers but when i use the zoom or other tools , this operation is very slow, my computer have a high performance What can i do for Obtaining high performance in the map server response I have been working with mapserver and postgis ___________________________________ Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 1230006 Definition date: 2008/11/06 MDAV version: 2.2.8 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Nov 6 11:42:40 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 06 Nov 2008 13:42:40 -0600 Subject: [mapserver-users] Getteing the intersection of two layers In-Reply-To: References: Message-ID: <4912F450.5157.008F.0@dnr.state.mn.us> You could try a feature query in MapServer/MapScript. First step is to do a query that selects the polygons (probably by attribute) and then do a queryByFeatures() query on the point layer. The result would be a set of points that are contained in your polygon features. Be sure to set the TOLERANCE in the point layer to 0 if you want the points to be in the selection polygons. The advantage here is that you don't have to do any up front geometry computations on your polygons. It boils down to a bunch of point-in-polygon computations which are relatively fast. Steve >>> On 11/6/2008 at 10:19 AM, in message , "Christian Jauvin" wrote: > Hi Everyone, > > I have two layers that I want to intersect: one with points, and one > with multiple polygons representing the regions of a territory. > > The first approach I just tried is doing it programmatically, through > Python/MS: > > I first union all the region polygons, and then get the convex hull of > this super-shape. I then restrict the points to those inside this > convex hull. > > The problem is that it is really too slow.. I'm aware that I could do > it through PostGIS, and that performance would surely much better, but > I'd rather stay with a more generic solution, that is applicable to > shapefile data sources as well. > > Would someone be aware of a better method, maybe one involving only > mapfile directives? > > Thank you, > > Christian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From fsalas at geocuba.cu Thu Nov 6 06:47:37 2008 From: fsalas at geocuba.cu (fsalas) Date: Thu, 6 Nov 2008 15:47:37 +0100 Subject: [mapserver-users] about Obtaing high performance in the map server response References: <009301c93ffe$13c217a0$cd01030a@mapificacion03> <49132F45.5080807@swoodbridge.com> Message-ID: <00de01c9401e$ae5878c0$cb01030a@mapificacion03> Stephen, I Attached the map file I working with postgres/postgis with mapserver 5.2.0 best regards Francisco Salas ----- Original Message ----- From: "Stephen Woodbridge" To: "fsalas" Cc: "mapserver" Sent: Thursday, November 06, 2008 6:54 PM Subject: Re: [mapserver-users] about Obtaing high performance in the map server response > fsalas wrote: >> >> >> I Have the following question, in this moment i have been working with >> three layers but when i use the zoom or other tools , this operation is >> very slow, my computer have a high performance >> >> What can i do for Obtaining high performance in the map server response > > There is a FAQ on performance IIRC. > > You need to explain more about your configuration. > > Show your mapfile. > Are you working with shapefiles, postgres, raster, vector, etc ... > How big are your files? > Have you turned on > > DEBUG 5 > CONFIG MS_ERRORFILE "stderr" > > and looked at your apache error_log for each request? This should tell you > how much time each layer takes to draw so you can see WHAT is slow? > > Give us some more info and we might be able to help you. > > -Stephen Woodbridge > http://imaptools.com/ > ___________________________________ Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 1230006 Definition date: 2008/11/06 MDAV version: 2.2.8 -------------- next part -------------- A non-text attachment was scrubbed... Name: educacion.map Type: application/octet-stream Size: 4920 bytes Desc: not available URL: From woodbri at swoodbridge.com Thu Nov 6 13:37:47 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 06 Nov 2008 16:37:47 -0500 Subject: [mapserver-users] about Obtaing high performance in the map server response In-Reply-To: <00de01c9401e$ae5878c0$cb01030a@mapificacion03> References: <009301c93ffe$13c217a0$cd01030a@mapificacion03> <49132F45.5080807@swoodbridge.com> <00de01c9401e$ae5878c0$cb01030a@mapificacion03> Message-ID: <491363AB.4070104@swoodbridge.com> Do you have spatial index on all you geometry columns create index _gidx on
using gist(the_geom); do this for each table and replace
wit the table name. then do: vacuum analyze; If you are zoomed all the way out and displaying all the data, then this is the worse case and it may be slow. Does it speed up as you zoom in? Is the speed acceptable as you zoom in? Do not display so much data as you zoom out and it will be faster. There you can generalize the data for when you zoom out. and then use MINSCALEDENOM and MAXSCALEDENOM to turn off the detail data layer and turn on the generalized data layer. -Steve W. fsalas wrote: > Stephen, > I Attached the map file > I working with postgres/postgis with mapserver 5.2.0 > > best regards > Francisco Salas > > > ----- Original Message ----- From: "Stephen Woodbridge" > > To: "fsalas" > Cc: "mapserver" > Sent: Thursday, November 06, 2008 6:54 PM > Subject: Re: [mapserver-users] about Obtaing high performance in the map > server response > > >> fsalas wrote: >>> >>> >>> I Have the following question, in this moment i have been working >>> with three layers but when i use the zoom or other tools , this >>> operation is very slow, my computer have a high performance >>> >>> What can i do for Obtaining high performance in the map server response >> >> There is a FAQ on performance IIRC. >> >> You need to explain more about your configuration. >> >> Show your mapfile. >> Are you working with shapefiles, postgres, raster, vector, etc ... >> How big are your files? >> Have you turned on >> >> DEBUG 5 >> CONFIG MS_ERRORFILE "stderr" >> >> and looked at your apache error_log for each request? This should tell >> you how much time each layer takes to draw so you can see WHAT is slow? >> >> Give us some more info and we might be able to help you. >> >> -Stephen Woodbridge >> http://imaptools.com/ >> > > > ___________________________________ > Dpto de Sistemas Inform?ticos > Oficina Central Grupo Empresarial GEOCUBA > Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus > ---------------------------------------------------------------------- > Engine version: 4.0.1.14 > Engine date: 2002/06/25 > Definition count: 1230006 > Definition date: 2008/11/06 > MDAV version: 2.2.8 > From jmckenna at gatewaygeomatics.com Thu Nov 6 16:03:59 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 07 Nov 2008 09:03:59 +0900 Subject: [MAPSERVER-USERS] ms4w installation In-Reply-To: <20360185.post@talk.nabble.com> References: <20360185.post@talk.nabble.com> Message-ID: <491385EF.5090704@gatewaygeomatics.com> lakku wrote: > hi > > iam using "windows XP media center edition" > i have executed '/ms4w/apache-uninstall.bat' in command prompt to uninstall > apache > but it is displaying error as " 'httpd ' is not recognized as internal or > external command,operable program or batch file" > plz tell me that > You can also download the setup.exe (instead of using the .zip file) and give that a try (the exe allows you to install in any directory). -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From kusum at infobase.in Thu Nov 6 20:17:59 2008 From: kusum at infobase.in (Kusum) Date: Fri, 7 Nov 2008 09:47:59 +0530 Subject: [mapserver-users] Map Labels Problem Message-ID: Dear All I am trying to use mercator projection in my mapfile. Also I am using a raster image along with my shp data At first level it does not show the raster image But when it does it hides the labels on map. u can see this link http://mapxl.com/interactive-maps/world-map11.php I am confused my map file is MAP EXTENT -180 -90 180 90 UNITS MILES SIZE 550 450 SHAPEPATH "/home/mapxlco/public_html/World-Data" FONTSET "./etc/fonts.txt" RESOLUTION 96 IMAGETYPE png INTERLACE OFF PROJECTION "proj=merc" #'init=EPSG:3785' END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION INTERLACE=OFF TRANSPARENT OFF END WEB TEMPLATE "legend.php" HEADER "map_header.html" FOOTER "map_footer.html" #IMAGEPATH "C:/ms4w/apps/maplab-2.2/workshop/tmp/" #IMAGEURL "../tmp/" IMAGEPATH "/home/mapxlco/public_html/tmp/" IMAGEURL "/tmp/" METADATA END # Metadata END #World_Background LAYER NAME "background" STATUS DEFAULT PROJECTION #"init=epsg:3785" END TYPE POLYGON DATA "background" TOLERANCE 300 #CLASSITEM "COUNTRIES" CLASS NAME "World Background" COLOR 141 189 232 OUTLINECOLOR 111 157 253 Template void END END #World Continents LAYER NAME "continents" STATUS DEFAULT PROJECTION #"init=epsg:3785" END TYPE POLYGON DATA "World_Continents" MINSCALE 1500000 LABELMAXSCALE 2500000 LABELMINSCALE 1430359 LABELITEM "CONTINENT" TOLERANCE 300 CLASSITEM "CONTINENT" CLASS NAME "World Outline" EXPRESSION "Europe" #COLOR 241 238 232 COLOR 235 240 230 OUTLINECOLOR 111 157 253 LABEL ANGLE auto ANTIALIAS TRUE FONT arial MAXSIZE 256 MINSIZE 4 SIZE 10 TYPE TRUETYPE BUFFER 0 COLOR 0 0 0 FORCE TRUE MINDISTANCE 0 MINFEATURESIZE 0 OFFSET 0 10 OUTLINECOLOR 255 255 255 PARTIALS FALSE POSITION LL END Template void END CLASS NAME "World Outline" EXPRESSION "North America" #COLOR 241 238 232 COLOR 235 240 230 OUTLINECOLOR 111 157 253 LABEL ANGLE auto ANTIALIAS TRUE FONT arial MAXSIZE 256 MINSIZE 4 SIZE 10 TYPE TRUETYPE BUFFER 0 COLOR 0 0 0 FORCE TRUE MINDISTANCE 0 MINFEATURESIZE 0 OFFSET 20 10 OUTLINECOLOR 255 255 255 PARTIALS FALSE POSITION LR END Template void END CLASS NAME "World Outline" #COLOR 241 238 232 COLOR 235 240 230 OUTLINECOLOR 111 157 253 LABEL ANGLE auto ANTIALIAS TRUE FONT arial MAXSIZE 256 MINSIZE 4 SIZE 10 TYPE TRUETYPE BUFFER 0 COLOR 0 0 0 FORCE TRUE MINDISTANCE 0 MINFEATURESIZE 0 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE POSITION CC END Template void END END #World Countries LAYER NAME "countries" STATUS DEFAULT MAXSCALE 1530359 LABELMAXSCALE 1430359 PROJECTION #"init=epsg:3785" END TYPE POLYGON DATA "World_Countries" LABELITEM "NA2DESC" TOLERANCE 300 CLASSITEM "NA2DESC" CLASS NAME "World Countries" #COLOR 241 238 232 COLOR 235 240 230 OUTLINECOLOR 220 220 220 LABEL ANGLE auto ANTIALIAS TRUE FONT arial-bold MAXSIZE 256 MINSIZE 4 SIZE 9 TYPE TRUETYPE BUFFER 0 COLOR 90 90 90 MINDISTANCE 0 MINFEATURESIZE 30 OFFSET 0 0 OUTLINECOLOR 255 255 255 PARTIALS FALSE POSITION CC FORCE FALSE wrap ' ' END Template void END END #World_Background LAYER NAME "background1" STATUS ON PROJECTION "proj=latlong" END TYPE RASTER DATA "wsiearth.tif" TEMPLATE "ttt.html" END #Countries Boundary LAYER NAME "countries" STATUS DEFAULT MAXSCALE 1430359 PROJECTION #"init=epsg:3785" END TYPE LINE DATA "Country_Boundary" TOLERANCE 300 #CLASSITEM "CONTINENT" CLASS NAME "World Outline" #COLOR 204 225 253 OUTLINECOLOR 167 167 167 Template void END END so on.......... I am not getting the palce of error Please suggest. Regards Kusum -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Nov 6 21:30:49 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 07 Nov 2008 14:30:49 +0900 Subject: [mapserver-users] Map Labels Problem In-Reply-To: References: Message-ID: <4913D289.3030504@gatewaygeomatics.com> Kusum wrote: > Dear All > > I am trying to use mercator projection in my mapfile. > Also I am using a raster image along with my shp data > At first level it does not show the raster image > But when it does it hides the labels on map. > > > u can see this link > http://mapxl.com/interactive-maps/world-map11.php > > I am confused > my map file is > MAP > EXTENT -180 -90 180 90 > > UNITS MILES > SIZE 550 450 > SHAPEPATH "/home/mapxlco/public_html/World-Data" > FONTSET "./etc/fonts.txt" > RESOLUTION 96 > IMAGETYPE png > INTERLACE OFF > PROJECTION > "proj=merc" > #'init=EPSG:3785' > END > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > FORMATOPTION INTERLACE=OFF > TRANSPARENT OFF > END > > WEB > TEMPLATE "legend.php" > HEADER "map_header.html" > FOOTER "map_footer.html" > #IMAGEPATH "C:/ms4w/apps/maplab-2.2/workshop/tmp/" > #IMAGEURL "../tmp/" > IMAGEPATH "/home/mapxlco/public_html/tmp/" > IMAGEURL "/tmp/" > METADATA > END # Metadata > END > > > #World_Background > LAYER > NAME "background" > STATUS DEFAULT > PROJECTION > #"init=epsg:3785" > END > TYPE POLYGON > DATA "background" > TOLERANCE 300 > #CLASSITEM "COUNTRIES" > CLASS > NAME "World Background" > COLOR 141 189 232 > OUTLINECOLOR 111 157 253 > Template void > END > END > > > > #World Continents > LAYER > NAME "continents" > STATUS DEFAULT > PROJECTION > #"init=epsg:3785" > END > TYPE POLYGON > DATA "World_Continents" > MINSCALE 1500000 > LABELMAXSCALE 2500000 > LABELMINSCALE 1430359 > LABELITEM "CONTINENT" > TOLERANCE 300 > CLASSITEM "CONTINENT" > CLASS > NAME "World Outline" > EXPRESSION "Europe" > #COLOR 241 238 232 > COLOR 235 240 230 > OUTLINECOLOR 111 157 253 > LABEL > ANGLE auto > ANTIALIAS TRUE > FONT arial > MAXSIZE 256 > MINSIZE 4 > SIZE 10 > TYPE TRUETYPE > BUFFER 0 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE 0 > MINFEATURESIZE 0 > OFFSET 0 10 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > POSITION LL > END > Template void > END > CLASS > NAME "World Outline" > EXPRESSION "North America" > #COLOR 241 238 232 > COLOR 235 240 230 > OUTLINECOLOR 111 157 253 > LABEL > ANGLE auto > ANTIALIAS TRUE > FONT arial > MAXSIZE 256 > MINSIZE 4 > SIZE 10 > TYPE TRUETYPE > BUFFER 0 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE 0 > MINFEATURESIZE 0 > OFFSET 20 10 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > POSITION LR > END > Template void > END > CLASS > NAME "World Outline" > #COLOR 241 238 232 > COLOR 235 240 230 > OUTLINECOLOR 111 157 253 > LABEL > ANGLE auto > ANTIALIAS TRUE > FONT arial > MAXSIZE 256 > MINSIZE 4 > SIZE 10 > TYPE TRUETYPE > BUFFER 0 > COLOR 0 0 0 > FORCE TRUE > MINDISTANCE 0 > MINFEATURESIZE 0 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > POSITION CC > END > Template void > END > END > > #World Countries > LAYER > NAME "countries" > STATUS DEFAULT > MAXSCALE 1530359 > LABELMAXSCALE 1430359 > PROJECTION > #"init=epsg:3785" > END > TYPE POLYGON > DATA "World_Countries" > LABELITEM "NA2DESC" > TOLERANCE 300 > CLASSITEM "NA2DESC" > CLASS > NAME "World Countries" > #COLOR 241 238 232 > COLOR 235 240 230 > OUTLINECOLOR 220 220 220 > LABEL > ANGLE auto > ANTIALIAS TRUE > FONT arial-bold > MAXSIZE 256 > MINSIZE 4 > SIZE 9 > TYPE TRUETYPE > BUFFER 0 > COLOR 90 90 90 > MINDISTANCE 0 > MINFEATURESIZE 30 > OFFSET 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS FALSE > POSITION CC > FORCE FALSE > wrap ' ' > END > Template void > END > END > #World_Background > LAYER > NAME "background1" > STATUS ON > PROJECTION > "proj=latlong" > END > TYPE RASTER > DATA "wsiearth.tif" > TEMPLATE "ttt.html" > END > #Countries Boundary > LAYER > NAME "countries" > STATUS DEFAULT > MAXSCALE 1430359 > PROJECTION > #"init=epsg:3785" > END > TYPE LINE > DATA "Country_Boundary" > TOLERANCE 300 > #CLASSITEM "CONTINENT" > CLASS > NAME "World Outline" > #COLOR 204 225 253 > OUTLINECOLOR 167 167 167 > Template void > END > END > > > so on.......... > > > > I am not getting the palce of error > > Please suggest. > > > Regards > Kusum Here are my quick thoughts: - make sure your EXTENT and UNITS parameters are for the specified output MAP projection (if your output projection is in meters then your extents and units must be in meters) - you need more parameters in your projection block than what you are currently trying to use...to solve this the easiest way is to always use the corresponding EPSG lookup code (found in /ms4w/proj/nad/epsg) - the next time you attach a mapfile it is easier for the community if you create a tiny mapfile showing your problem (i.e. only 2 layers or less)...that way it is easier to comment and understand your mapfile - how about avoiding projection problems and making sure that all of your layers are in the same projection? If you can, that way is FASTEST for display and AVOIDS the projection problems you are facing. (pre-processing the data, in this case using tools to reproject the data to the same projection, is always the best option, rather than forcing MapServer to reproject on-the-fly) those are my quick thoughts on your issues. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From ruijgomes at gmail.com Thu Nov 6 21:50:37 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 7 Nov 2008 05:50:37 +0000 Subject: [mapserver-users] Get the actual mode of the map Message-ID: <31e2f7000811062150g3a5ef1cay2335de19717aef59@mail.gmail.com> Good Morning... I try to find a substitution string to get the current mode of the map and i can't find it. There is some way to know what is the mode? Thanks -- Rui Gomes From kusum at infobase.in Thu Nov 6 22:09:36 2008 From: kusum at infobase.in (Kusum) Date: Fri, 7 Nov 2008 11:39:36 +0530 Subject: [mapserver-users] Map Labels Problem References: <4913D289.3030504@gatewaygeomatics.com> Message-ID: <24B87719B7984515AB57FC7100EB6394@kusumsaini> Where exactly shoud we define the projection at the top of mapfile or with each layer I am trying to use 'init=epsg:54004' but its not changing the data projection if I use "proj=merc" only the projection of raster image changes and not the other data layers. Any suggestions please Kusum -------------------------------------------------- From: "Jeff McKenna" Sent: Friday, November 07, 2008 11:00 AM To: Subject: Re: [mapserver-users] Map Labels Problem > Kusum wrote: >> Dear All >> >> I am trying to use mercator projection in my mapfile. >> Also I am using a raster image along with my shp data >> At first level it does not show the raster image >> But when it does it hides the labels on map. >> >> >> u can see this link >> http://mapxl.com/interactive-maps/world-map11.php >> >> I am confused >> my map file is >> MAP >> EXTENT -180 -90 180 90 >> >> UNITS MILES >> SIZE 550 450 >> SHAPEPATH "/home/mapxlco/public_html/World-Data" >> FONTSET "./etc/fonts.txt" >> RESOLUTION 96 >> IMAGETYPE png >> INTERLACE OFF >> PROJECTION >> "proj=merc" >> #'init=EPSG:3785' >> END >> >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGB >> FORMATOPTION INTERLACE=OFF >> TRANSPARENT OFF >> END >> >> WEB >> TEMPLATE "legend.php" >> HEADER "map_header.html" >> FOOTER "map_footer.html" >> #IMAGEPATH "C:/ms4w/apps/maplab-2.2/workshop/tmp/" >> #IMAGEURL "../tmp/" >> IMAGEPATH "/home/mapxlco/public_html/tmp/" >> IMAGEURL "/tmp/" >> METADATA >> END # Metadata >> END >> >> >> #World_Background >> LAYER >> NAME "background" >> STATUS DEFAULT >> PROJECTION >> #"init=epsg:3785" >> END >> TYPE POLYGON >> DATA "background" >> TOLERANCE 300 >> #CLASSITEM "COUNTRIES" >> CLASS >> NAME "World Background" >> COLOR 141 189 232 >> OUTLINECOLOR 111 157 253 >> Template void >> END >> END >> >> >> >> #World Continents >> LAYER >> NAME "continents" >> STATUS DEFAULT >> PROJECTION >> #"init=epsg:3785" >> END >> TYPE POLYGON >> DATA "World_Continents" >> MINSCALE 1500000 >> LABELMAXSCALE 2500000 >> LABELMINSCALE 1430359 >> LABELITEM "CONTINENT" >> TOLERANCE 300 >> CLASSITEM "CONTINENT" >> CLASS >> NAME "World Outline" >> EXPRESSION "Europe" >> #COLOR 241 238 232 >> COLOR 235 240 230 >> OUTLINECOLOR 111 157 253 >> LABEL >> ANGLE auto >> ANTIALIAS TRUE >> FONT arial >> MAXSIZE 256 >> MINSIZE 4 >> SIZE 10 >> TYPE TRUETYPE >> BUFFER 0 >> COLOR 0 0 0 >> FORCE TRUE >> MINDISTANCE 0 >> MINFEATURESIZE 0 >> OFFSET 0 10 >> OUTLINECOLOR 255 255 255 >> PARTIALS FALSE >> POSITION LL >> END >> Template void >> END >> CLASS >> NAME "World Outline" >> EXPRESSION "North America" >> #COLOR 241 238 232 >> COLOR 235 240 230 >> OUTLINECOLOR 111 157 253 >> LABEL >> ANGLE auto >> ANTIALIAS TRUE >> FONT arial >> MAXSIZE 256 >> MINSIZE 4 >> SIZE 10 >> TYPE TRUETYPE >> BUFFER 0 >> COLOR 0 0 0 >> FORCE TRUE >> MINDISTANCE 0 >> MINFEATURESIZE 0 >> OFFSET 20 10 >> OUTLINECOLOR 255 255 255 >> PARTIALS FALSE >> POSITION LR >> END >> Template void >> END >> CLASS >> NAME "World Outline" >> #COLOR 241 238 232 >> COLOR 235 240 230 >> OUTLINECOLOR 111 157 253 >> LABEL >> ANGLE auto >> ANTIALIAS TRUE >> FONT arial >> MAXSIZE 256 >> MINSIZE 4 >> SIZE 10 >> TYPE TRUETYPE >> BUFFER 0 >> COLOR 0 0 0 >> FORCE TRUE >> MINDISTANCE 0 >> MINFEATURESIZE 0 >> OFFSET 0 0 >> OUTLINECOLOR 255 255 255 >> PARTIALS FALSE >> POSITION CC >> END >> Template void >> END >> END >> >> #World Countries >> LAYER >> NAME "countries" >> STATUS DEFAULT >> MAXSCALE 1530359 >> LABELMAXSCALE 1430359 >> PROJECTION >> #"init=epsg:3785" >> END >> TYPE POLYGON >> DATA "World_Countries" >> LABELITEM "NA2DESC" >> TOLERANCE 300 >> CLASSITEM "NA2DESC" >> CLASS >> NAME "World Countries" >> #COLOR 241 238 232 >> COLOR 235 240 230 >> OUTLINECOLOR 220 220 220 >> LABEL >> ANGLE auto >> ANTIALIAS TRUE >> FONT arial-bold >> MAXSIZE 256 >> MINSIZE 4 >> SIZE 9 >> TYPE TRUETYPE >> BUFFER 0 >> COLOR 90 90 90 >> MINDISTANCE 0 >> MINFEATURESIZE 30 >> OFFSET 0 0 >> OUTLINECOLOR 255 255 255 >> PARTIALS FALSE >> POSITION CC >> FORCE FALSE >> wrap ' ' >> END >> Template void >> END >> END >> #World_Background >> LAYER >> NAME "background1" >> STATUS ON >> PROJECTION >> "proj=latlong" >> END >> TYPE RASTER >> DATA "wsiearth.tif" >> TEMPLATE "ttt.html" >> END >> #Countries Boundary >> LAYER >> NAME "countries" >> STATUS DEFAULT >> MAXSCALE 1430359 >> PROJECTION >> #"init=epsg:3785" >> END >> TYPE LINE >> DATA "Country_Boundary" >> TOLERANCE 300 >> #CLASSITEM "CONTINENT" >> CLASS >> NAME "World Outline" >> #COLOR 204 225 253 >> OUTLINECOLOR 167 167 167 >> Template void >> END >> END >> >> >> so on.......... >> >> >> >> I am not getting the palce of error >> >> Please suggest. >> >> >> Regards >> Kusum > > Here are my quick thoughts: > > - make sure your EXTENT and UNITS parameters are for the specified > output MAP projection (if your output projection is in meters then your > extents and units must be in meters) > - you need more parameters in your projection block than what you are > currently trying to use...to solve this the easiest way is to always use > the corresponding EPSG lookup code (found in /ms4w/proj/nad/epsg) > - the next time you attach a mapfile it is easier for the community if > you create a tiny mapfile showing your problem (i.e. only 2 layers or > less)...that way it is easier to comment and understand your mapfile > - how about avoiding projection problems and making sure that all of > your layers are in the same projection? If you can, that way is FASTEST > for display and AVOIDS the projection problems you are facing. > (pre-processing the data, in this case using tools to reproject the data > to the same projection, is always the best option, rather than forcing > MapServer to reproject on-the-fly) > > those are my quick thoughts on your issues. > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Nov 6 23:13:36 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 07 Nov 2008 16:13:36 +0900 Subject: [mapserver-users] Map Labels Problem In-Reply-To: <24B87719B7984515AB57FC7100EB6394@kusumsaini> References: <4913D289.3030504@gatewaygeomatics.com> <24B87719B7984515AB57FC7100EB6394@kusumsaini> Message-ID: <4913EAA0.2000900@gatewaygeomatics.com> Kusum wrote: > Where exactly shoud we define the projection > at the top of mapfile or with each layer > > I am trying to use > 'init=epsg:54004' > > but its not changing the data projection > > if I use "proj=merc" > only the projection of raster image changes and not the other data layers. > > Any suggestions please > > Kusum > > > -------------------------------------------------- > From: "Jeff McKenna" > Sent: Friday, November 07, 2008 11:00 AM > To: > Subject: Re: [mapserver-users] Map Labels Problem > >> Kusum wrote: >>> Dear All >>> >>> I am trying to use mercator projection in my mapfile. >>> Also I am using a raster image along with my shp data >>> At first level it does not show the raster image >>> But when it does it hides the labels on map. >>> >>> >>> u can see this link >>> http://mapxl.com/interactive-maps/world-map11.php >>> >>> I am confused >>> my map file is >>> MAP >>> EXTENT -180 -90 180 90 >>> >>> UNITS MILES >>> SIZE 550 450 >>> SHAPEPATH "/home/mapxlco/public_html/World-Data" >>> FONTSET "./etc/fonts.txt" >>> RESOLUTION 96 >>> IMAGETYPE png >>> INTERLACE OFF >>> PROJECTION >>> "proj=merc" >>> #'init=EPSG:3785' >>> END >>> >>> OUTPUTFORMAT >>> NAME png >>> DRIVER "GD/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE RGB >>> FORMATOPTION INTERLACE=OFF >>> TRANSPARENT OFF >>> END >>> >>> WEB >>> TEMPLATE "legend.php" >>> HEADER "map_header.html" >>> FOOTER "map_footer.html" >>> #IMAGEPATH "C:/ms4w/apps/maplab-2.2/workshop/tmp/" >>> #IMAGEURL "../tmp/" >>> IMAGEPATH "/home/mapxlco/public_html/tmp/" >>> IMAGEURL "/tmp/" >>> METADATA >>> END # Metadata >>> END >>> >>> >>> #World_Background >>> LAYER >>> NAME "background" >>> STATUS DEFAULT >>> PROJECTION >>> #"init=epsg:3785" >>> END >>> TYPE POLYGON >>> DATA "background" >>> TOLERANCE 300 >>> #CLASSITEM "COUNTRIES" >>> CLASS >>> NAME "World Background" >>> COLOR 141 189 232 >>> OUTLINECOLOR 111 157 253 >>> Template void >>> END >>> END >>> >>> >>> >>> #World Continents >>> LAYER >>> NAME "continents" >>> STATUS DEFAULT >>> PROJECTION >>> #"init=epsg:3785" >>> END >>> TYPE POLYGON >>> DATA "World_Continents" >>> MINSCALE 1500000 >>> LABELMAXSCALE 2500000 >>> LABELMINSCALE 1430359 >>> LABELITEM "CONTINENT" >>> TOLERANCE 300 >>> CLASSITEM "CONTINENT" >>> CLASS >>> NAME "World Outline" >>> EXPRESSION "Europe" >>> #COLOR 241 238 232 >>> COLOR 235 240 230 >>> OUTLINECOLOR 111 157 253 >>> LABEL >>> ANGLE auto >>> ANTIALIAS TRUE >>> FONT arial >>> MAXSIZE 256 >>> MINSIZE 4 >>> SIZE 10 >>> TYPE TRUETYPE >>> BUFFER 0 >>> COLOR 0 0 0 >>> FORCE TRUE >>> MINDISTANCE 0 >>> MINFEATURESIZE 0 >>> OFFSET 0 10 >>> OUTLINECOLOR 255 255 255 >>> PARTIALS FALSE >>> POSITION LL >>> END >>> Template void >>> END >>> CLASS >>> NAME "World Outline" >>> EXPRESSION "North America" >>> #COLOR 241 238 232 >>> COLOR 235 240 230 >>> OUTLINECOLOR 111 157 253 >>> LABEL >>> ANGLE auto >>> ANTIALIAS TRUE >>> FONT arial >>> MAXSIZE 256 >>> MINSIZE 4 >>> SIZE 10 >>> TYPE TRUETYPE >>> BUFFER 0 >>> COLOR 0 0 0 >>> FORCE TRUE >>> MINDISTANCE 0 >>> MINFEATURESIZE 0 >>> OFFSET 20 10 >>> OUTLINECOLOR 255 255 255 >>> PARTIALS FALSE >>> POSITION LR >>> END >>> Template void >>> END >>> CLASS >>> NAME "World Outline" >>> #COLOR 241 238 232 >>> COLOR 235 240 230 >>> OUTLINECOLOR 111 157 253 >>> LABEL >>> ANGLE auto >>> ANTIALIAS TRUE >>> FONT arial >>> MAXSIZE 256 >>> MINSIZE 4 >>> SIZE 10 >>> TYPE TRUETYPE >>> BUFFER 0 >>> COLOR 0 0 0 >>> FORCE TRUE >>> MINDISTANCE 0 >>> MINFEATURESIZE 0 >>> OFFSET 0 0 >>> OUTLINECOLOR 255 255 255 >>> PARTIALS FALSE >>> POSITION CC >>> END >>> Template void >>> END >>> END >>> >>> #World Countries >>> LAYER >>> NAME "countries" >>> STATUS DEFAULT >>> MAXSCALE 1530359 >>> LABELMAXSCALE 1430359 >>> PROJECTION >>> #"init=epsg:3785" >>> END >>> TYPE POLYGON >>> DATA "World_Countries" >>> LABELITEM "NA2DESC" >>> TOLERANCE 300 >>> CLASSITEM "NA2DESC" >>> CLASS >>> NAME "World Countries" >>> #COLOR 241 238 232 >>> COLOR 235 240 230 >>> OUTLINECOLOR 220 220 220 >>> LABEL >>> ANGLE auto >>> ANTIALIAS TRUE >>> FONT arial-bold >>> MAXSIZE 256 >>> MINSIZE 4 >>> SIZE 9 >>> TYPE TRUETYPE >>> BUFFER 0 >>> COLOR 90 90 90 >>> MINDISTANCE 0 >>> MINFEATURESIZE 30 >>> OFFSET 0 0 >>> OUTLINECOLOR 255 255 255 >>> PARTIALS FALSE >>> POSITION CC >>> FORCE FALSE >>> wrap ' ' >>> END >>> Template void >>> END >>> END >>> #World_Background >>> LAYER >>> NAME "background1" >>> STATUS ON >>> PROJECTION >>> "proj=latlong" >>> END >>> TYPE RASTER >>> DATA "wsiearth.tif" >>> TEMPLATE "ttt.html" >>> END >>> #Countries Boundary >>> LAYER >>> NAME "countries" >>> STATUS DEFAULT >>> MAXSCALE 1430359 >>> PROJECTION >>> #"init=epsg:3785" >>> END >>> TYPE LINE >>> DATA "Country_Boundary" >>> TOLERANCE 300 >>> #CLASSITEM "CONTINENT" >>> CLASS >>> NAME "World Outline" >>> #COLOR 204 225 253 >>> OUTLINECOLOR 167 167 167 >>> Template void >>> END >>> END >>> >>> >>> so on.......... >>> >>> >>> >>> I am not getting the palce of error >>> >>> Please suggest. >>> >>> >>> Regards >>> Kusum >> >> Here are my quick thoughts: >> >> - make sure your EXTENT and UNITS parameters are for the specified >> output MAP projection (if your output projection is in meters then >> your extents and units must be in meters) >> - you need more parameters in your projection block than what you are >> currently trying to use...to solve this the easiest way is to always >> use the corresponding EPSG lookup code (found in /ms4w/proj/nad/epsg) >> - the next time you attach a mapfile it is easier for the community if >> you create a tiny mapfile showing your problem (i.e. only 2 layers or >> less)...that way it is easier to comment and understand your mapfile >> - how about avoiding projection problems and making sure that all of >> your layers are in the same projection? If you can, that way is >> FASTEST for display and AVOIDS the projection problems you are facing. >> (pre-processing the data, in this case using tools to reproject the >> data to the same projection, is always the best option, rather than >> forcing MapServer to reproject on-the-fly) >> >> those are my quick thoughts on your issues. >> >> >> -- >> Jeff McKenna >> FOSS4G Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> Here is a good page describing using projections with MapServer: http://mapserver.gis.umn.edu/docs/reference/mapfile/projection Please read the "Important Notes" section as well. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Gerben.Tiemens at grontmij.nl Fri Nov 7 01:13:49 2008 From: Gerben.Tiemens at grontmij.nl (Tiemens, Gerben) Date: Fri, 7 Nov 2008 10:13:49 +0100 Subject: [mapserver-users] Getteing the intersection of two layers In-Reply-To: <4912F450.5157.008F.0@dnr.state.mn.us> References: <4912F450.5157.008F.0@dnr.state.mn.us> Message-ID: <793D7DDFFDC71D4594AA53A4ADF6C15348B46D85@EVS8.grontmij.net> Another aproach is to do it by SLD. WMS and WFS supports delivering a sld to it with a intersects filter. Both work generic on whatever datasource. http://yourwmsurl/wms?yourwmsparameters&sld=http://sldurl.sld Greetings Gerben -----Oorspronkelijk bericht----- Van: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens Steve Lime Verzonden: Thursday, November 06, 2008 8:43 PM Aan: Christian Jauvin; mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] Getteing the intersection of two layers You could try a feature query in MapServer/MapScript. First step is to do a query that selects the polygons (probably by attribute) and then do a queryByFeatures() query on the point layer. The result would be a set of points that are contained in your polygon features. Be sure to set the TOLERANCE in the point layer to 0 if you want the points to be in the selection polygons. The advantage here is that you don't have to do any up front geometry computations on your polygons. It boils down to a bunch of point-in-polygon computations which are relatively fast. Steve >>> On 11/6/2008 at 10:19 AM, in message , "Christian Jauvin" wrote: > Hi Everyone, > > I have two layers that I want to intersect: one with points, and one > with multiple polygons representing the regions of a territory. > > The first approach I just tried is doing it programmatically, through > Python/MS: > > I first union all the region polygons, and then get the convex hull of > this super-shape. I then restrict the points to those inside this > convex hull. > > The problem is that it is really too slow.. I'm aware that I could do > it through PostGIS, and that performance would surely much better, but > I'd rather stay with a more generic solution, that is applicable to > shapefile data sources as well. > > Would someone be aware of a better method, maybe one involving only > mapfile directives? > > Thank you, > > Christian > _______________________________________________ > 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 << Please read our E-mail Disclaimer at the Grontmij Corporate website >> From reena at indiamail.com Fri Nov 7 02:07:42 2008 From: reena at indiamail.com (S.Reena) Date: Fri, 7 Nov 2008 02:07:42 -0800 (PST) Subject: [MAPSERVER-USERS] Pass parameters to mapfile Message-ID: <20377760.post@talk.nabble.com> I am using the following data in my mapfile DATA "the_geom from ( select * from customised_point AS f where user_id='userid' AND f.subcat_id IN (select subcat_id from subcat_info where maincat_id =0))AS foo USING UNIQUE gid" I want the userid ( used in the above query) to be passed to map file at the time of layer creation something like this.... wms[5] = new OpenLayers.Layer.WMS.Untiled( "Customization","http://gis.rtbi-iitm.in/cgi-bin/mapserv?map=/var/www/html/customisation/mapfile/customNR.map" + userid ,{'layers': "NR_point",'transparent':"true"},{'layers': "NR_polygon",'transparent':"true"},{'isBaseLayer':false} ); How to do that? Thanks in advance :) Cheers, Reena. -- View this message in context: http://www.nabble.com/Pass-parameters-to-mapfile-tp20377760p20377760.html Sent from the Mapserver - User mailing list archive at Nabble.com. From veeraswamyd at yahoo.co.in Fri Nov 7 04:31:43 2008 From: veeraswamyd at yahoo.co.in (veera_s) Date: Fri, 7 Nov 2008 04:31:43 -0800 (PST) Subject: [MAPSERVER-USERS] installation problem Message-ID: <20379739.post@talk.nabble.com> hi all first i extracted ms4w_2.3.0.zip in the C drive its installed properly but apache didnt run even i tried /ms4w/apache-install.bat so i removed the ms4w folder from c drive without trying /ms4w/apache-uninstall.bat atlast i tried and removed apache ms4w server service from the service now again iam tring to extract the ms4w_2.3.0.zip in the C drive but it is displaying error as cannot create ms4w\apache\bin\httpd.exe access is denied other than c drive it is extracting in remaining drives properly without showing error plz tell me why it happens -- View this message in context: http://www.nabble.com/installation-problem-tp20379739p20379739.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nikos at maich.gr Fri Nov 7 03:27:14 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Fri, 7 Nov 2008 13:27:14 +0200 (EET) Subject: [mapserver-users] map mode for ajax calls In-Reply-To: <933159.49582.qm@web51412.mail.re2.yahoo.com> References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> <72c962640811060532j57234b22o4f610728b7c1d824@mail.gmail.com> <75b4b93e0811060610r44cba0e0x126a9279cbf108a@mail.gmail.com> <1081.193.218.36.79.1225976873.squirrel@193.218.36.79> <933159.49582.qm@web51412.mail.re2.yahoo.com> Message-ID: <2191.193.218.36.79.1226057234.squirrel@193.218.36.79> Well that made things easier... As with legend, I see you can call scalebar and reference additionally, thanx a bunch, nikos > You can actually call the legend and individual layer images. > > For the legends, mode=legend will help you out. For the layer images, you > could iterate through the layer name list to generate each individual > image. > > > > ----- Original Message ---- >> From: "nikos at maich.gr" >> To: mapserver-users at lists.osgeo.org >> Sent: Thursday, November 6, 2008 7:07:53 AM >> Subject: [mapserver-users] map mode for ajax calls >> >> Hi all, >> >> I've been playing using ajax calls to the ms executable. >> I'm using map mode and piping to a file, and returning this file ref to >> update the image div, and it works fast and fine. >> >> I would also like to update the legend, layer images, and it seems that >> these are only produced in browse mode. >> >> Outside of parsing the map file produced to extract the above image >> names >> when one pipes the cgi, is there another, possibly simpler way? way? >> >> regards, >> >> nicolas boretos >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From nikos at maich.gr Fri Nov 7 03:34:42 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Fri, 7 Nov 2008 13:34:42 +0200 (EET) Subject: [mapserver-users] map mode for ajax calls In-Reply-To: <933159.49582.qm@web51412.mail.re2.yahoo.com> References: <72c962640811060310n4bbcadd1k5b02fac3be7b526f@mail.gmail.com> <75b4b93e0811060314t2b35cd4mc39619ffc39731ff@mail.gmail.com> <72c962640811060532j57234b22o4f610728b7c1d824@mail.gmail.com> <75b4b93e0811060610r44cba0e0x126a9279cbf108a@mail.gmail.com> <1081.193.218.36.79.1225976873.squirrel@193.218.36.79> <933159.49582.qm@web51412.mail.re2.yahoo.com> Message-ID: <2192.193.218.36.79.1226057682.squirrel@193.218.36.79> Well that made things easier... As with legend, I see you can call scalebar and reference additionally, thanx a bunch, nikos > You can actually call the legend and individual layer images. > > For the legends, mode=legend will help you out. For the layer images, you > could iterate through the layer name list to generate each individual > image. > > > > ----- Original Message ---- >> From: "nikos at maich.gr" >> To: mapserver-users at lists.osgeo.org >> Sent: Thursday, November 6, 2008 7:07:53 AM >> Subject: [mapserver-users] map mode for ajax calls >> >> Hi all, >> >> I've been playing using ajax calls to the ms executable. >> I'm using map mode and piping to a file, and returning this file ref to >> update the image div, and it works fast and fine. >> >> I would also like to update the legend, layer images, and it seems that >> these are only produced in browse mode. >> >> Outside of parsing the map file produced to extract the above image >> names >> when one pipes the cgi, is there another, possibly simpler way? way? >> >> regards, >> >> nicolas boretos >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From Steve.Lime at dnr.state.mn.us Fri Nov 7 06:29:30 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 07 Nov 2008 08:29:30 -0600 Subject: [mapserver-users] Get the actual mode of the map Message-ID: <4913FC6C0200008F0001D509@co5.dnr.state.mn.us> Assuming you set it on the call to MapServer it should be simply [mode] on the way out. The only possible values you can get at via a template are browse or one of the various query modes. Browse is the default so for those templates you know mode=browse. For queries you have to explicitly set mode so [mode] should work. Steve >>> "Rui Gomes" 11/06/08 11:51 PM >>> Good Morning... I try to find a substitution string to get the current mode of the map and i can't find it. There is some way to know what is the mode? Thanks -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ruijgomes at gmail.com Fri Nov 7 09:13:44 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 7 Nov 2008 17:13:44 +0000 Subject: [mapserver-users] Get the actual mode of the map In-Reply-To: <4913FC6C0200008F0001D509@co5.dnr.state.mn.us> References: <4913FC6C0200008F0001D509@co5.dnr.state.mn.us> Message-ID: <31e2f7000811070913u1099722qd8a390ff3dc109e3@mail.gmail.com> Thanks. It is Working. I do'n no why, but i try it [mode] before but the browser don't replace then. Thanks again. 2008/11/7 Steve Lime : > Assuming you set it on the call to MapServer it should be simply [mode] on the > way out. The only possible values you can get at via a template are browse > or one of the various query modes. Browse is the default so for those templates > you know mode=browse. For queries you have to explicitly set mode so [mode] > should work. > > Steve > >>>> "Rui Gomes" 11/06/08 11:51 PM >>> > Good Morning... > > I try to find a substitution string to get the current mode of the map > and i can't find it. > There is some way to know what is the mode? > > Thanks > > -- > Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From jmckenna at gatewaygeomatics.com Fri Nov 7 16:34:22 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 08 Nov 2008 09:34:22 +0900 Subject: [MAPSERVER-USERS] installation problem In-Reply-To: <20379739.post@talk.nabble.com> References: <20379739.post@talk.nabble.com> Message-ID: <4914DE8E.7080001@gatewaygeomatics.com> veera_s wrote: > hi all > > first i extracted ms4w_2.3.0.zip in the C drive > its installed properly > but apache didnt run even i tried /ms4w/apache-install.bat > so i removed the ms4w folder from c drive without trying > /ms4w/apache-uninstall.bat > atlast i tried and removed apache ms4w server service from the service > now again iam tring to extract the ms4w_2.3.0.zip in the C drive > but it is displaying error as cannot create ms4w\apache\bin\httpd.exe access > is denied > other than c drive it is extracting in remaining drives properly without > showing error > plz tell me why it happens > If you are getting "ms4w\apache\bin\httpd.exe access denied" errors and you have already removed the apache service, then you can now delete the entire /ms4w directory...and then extract again. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From karintuxen at gmail.com Fri Nov 7 18:25:42 2008 From: karintuxen at gmail.com (Karin Tuxen-Bettman) Date: Fri, 7 Nov 2008 18:25:42 -0800 Subject: [mapserver-users] Introducing Google.org Geo Challenge Grants Message-ID: Hello Mapserver Users, If you work at a non-profit organization, keep reading for information about Google.org's Geo Challenge Grants! You can also get more information at their blog posting . Also, if you know others that work at non-profit organizations, consider passing this along to them! Thanks so much, Karin ********************************************************* Google.org just launched an exciting new grants program. Google.org Geo Challenge Grants will award grants to NGOs around the world to create projects using online mapping tools, such as Google Maps and Google Earth. The program is an open application process that will award grants up to $100,000. Maps are a powerful way for organizations to display and share data, promote ideas and issues, and plan and organize activities. Online mapping tools can help the world visualize and understand information, problems, and solutions - whether locally or globally. We've found that well designed maps can help organizations operate more effectively. They can convey the importance of your cause in a visual, compelling way. And, they can give individuals from around the world a chance to experience the work you do. We want to help organizations use these kinds of tools to advance their work in the areas of global development, climate change and global public health. Here's an example project. The Dreaming New Mexico initiative seeks to encourage adoption of clean electricity and to move New Mexico away from dirty, polluting power plants. Using the Google Earth API (browser plugin), Dreaming New Mexico shows some of the choices available to New Mexico as it considers a move to sustainable clean energy. Click here to view the site. Applications, which are open to NGOs around the world are open now and will close on December 22. (We hope to continue with further application rounds next year.) There are 3 levels of funding. A US$5,000 grant is enough to complete a small mapping project or a prototype of a more ambitious map project. Examples include maps such as the Women for Women project locations. A US$25,000 grant is enough to complete a substantial mapping project using one or more data sources. The map will typically still use a fixed data set vs a dynamically updating data source. Examples include maps such as the Appalachian Voices Mountaintop Removal Layer with associated "Are You Connected?" interactive website noted in this case study. A US$100,000 grant is enough to complete a more dynamic mapping project, or a system that will enable the production of maps across a number of scenarios. Such a project might include tools that the grantee as well as other organizations could use to quickly create maps of a certain type. To learn more about the program, check out our website which has a description of the program, FAQs and the application. Also, for other ways that Google can help your organization, check out our Google for Non-profits site. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Fri Nov 7 18:42:43 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Sat, 8 Nov 2008 02:42:43 +0000 Subject: [mapserver-users] Changing tolerance and toleranceunits at the same time. Message-ID: <31e2f7000811071842r7aca5c29ub41af9e6fc749345@mail.gmail.com> Hi... I know how to change the tolerance of a layer using a form: but, if i do at the same time: it will not work. 2 inputs have the same name. There is some way to change both things? Thanks. -- Rui Gomes From ruijgomes at gmail.com Fri Nov 7 19:06:14 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Sat, 8 Nov 2008 03:06:14 +0000 Subject: [mapserver-users] RE: Changing tolerance and toleranceunits at the same time. In-Reply-To: <31e2f7000811071842r7aca5c29ub41af9e6fc749345@mail.gmail.com> References: <31e2f7000811071842r7aca5c29ub41af9e6fc749345@mail.gmail.com> Message-ID: <31e2f7000811071906t8ca4834u96752a348342dead@mail.gmail.com> Hi I find a soluction for may problem, because we can shearch the layer for the name or for the number of the layer in .map. So, the soluction is this: But is i need to change 3 parameters in the layer? ---------- Forwarded message ---------- From: Rui Gomes Date: 2008/11/8 Subject: Changing tolerance and toleranceunits at the same time. To: mapserver-users at lists.osgeo.org Hi... I know how to change the tolerance of a layer using a form: but, if i do at the same time: it will not work. 2 inputs have the same name. There is some way to change both things? Thanks. -- Rui Gomes -- Rui Gomes From ruijgomes at gmail.com Fri Nov 7 19:47:08 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Sat, 8 Nov 2008 03:47:08 +0000 Subject: [mapserver-users] Using pixels in TOLERANCEUNITS Message-ID: <31e2f7000811071947r52537f29ja69c388e21a4d4b7@mail.gmail.com> Hi... I have a problem: I put the tolerance units of a layer i the .map file using the layer keyword: TOLERANCEUNITS pixels and work fine. But if i try to do the same in the html i recive the following error message: getSymbol(): Symbol definition error. Parsing error near (pixels):(line 1) And this error only happen whith the tag "pixels". I use feet, meters, kilometers and dd and all of them works fine. Why pixels don work? Thanks and sorry for my English. -- Rui Gomes From Steve.Lime at dnr.state.mn.us Sat Nov 8 07:53:49 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sat, 08 Nov 2008 09:53:49 -0600 Subject: [mapserver-users] Using pixels in TOLERANCEUNITS Message-ID: <491561AD0200008F0001D567@co5.dnr.state.mn.us> What do you mean "in the html"? Do you mean your trying to set via URL? If so it's likely an oversight on my part and that keyword isn't being recognized when parsing URLs. I'll make sure that gets fixed in the source. In the meantime you can edit maplexer.l and change: pixels to pixels and then recompile... Steve >>> "Rui Gomes" 11/07/08 9:47 PM >>> Hi... I have a problem: I put the tolerance units of a layer i the .map file using the layer keyword: TOLERANCEUNITS pixels and work fine. But if i try to do the same in the html i recive the following error message: getSymbol(): Symbol definition error. Parsing error near (pixels):(line 1) And this error only happen whith the tag "pixels". I use feet, meters, kilometers and dd and all of them works fine. Why pixels don work? Thanks and sorry for my English. -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From geek at uniserve.com Sat Nov 8 13:45:33 2008 From: geek at uniserve.com (Dave Stevens) Date: Sat, 8 Nov 2008 13:45:33 -0800 Subject: [mapserver-users] mapserver on Centos? Message-ID: <200811081345.34034.geek@uniserve.com> Hi, I have a little server using a 32 bit Intel cpu configured with Centos 5.2 and Virtualmin GPL. It has been doing a good job for me as a web and mail server with a light load and I am interested in trying Mapserver on it. On my Fedora box mapserver is in the repo (F7). Does anyone have experience, references or tips about implementing mapserver on the Centos box? Thanks very much, Dave -- Canada must refuse to be entangled in any more wars fought to make the world safe for capitalism. -- The Regina Manifesto, 1933 From jmckenna at gatewaygeomatics.com Sun Nov 9 01:03:40 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 09 Nov 2008 18:03:40 +0900 Subject: [mapserver-users] mapserver on Centos? In-Reply-To: <200811081345.34034.geek@uniserve.com> References: <200811081345.34034.geek@uniserve.com> Message-ID: <4916A76C.50201@gatewaygeomatics.com> Dave Stevens wrote: > Hi, > > I have a little server using a 32 bit Intel cpu configured with Centos 5.2 and > Virtualmin GPL. It has been doing a good job for me as a web and mail server > with a light load and I am interested in trying Mapserver on it. > > On my Fedora box mapserver is in the repo (F7). Does anyone have experience, > references or tips about implementing mapserver on the Centos box? > > Thanks very much, > > Dave > > Yes, for my CentOS machine I use the FGS installer for MapServer (http://www.maptools.org/fgs/) -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From randre at gmail.com Sun Nov 9 12:41:57 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Sun, 9 Nov 2008 12:41:57 -0800 Subject: [mapserver-users] mapserver on Centos? In-Reply-To: <200811081345.34034.geek@uniserve.com> References: <200811081345.34034.geek@uniserve.com> Message-ID: <9c2015090811091241j59c0148cg34ebc63251e59187@mail.gmail.com> Hi Dave, I've had good luck using the version of Mapserver that comes with FWTools on a CentOS 5.1 machine. http://fwtools.maptools.org/ Roger -- On Sat, Nov 8, 2008 at 1:45 PM, Dave Stevens wrote: > Hi, > > I have a little server using a 32 bit Intel cpu configured with Centos 5.2 > and > Virtualmin GPL. It has been doing a good job for me as a web and mail > server > with a light load and I am interested in trying Mapserver on it. > > On my Fedora box mapserver is in the repo (F7). Does anyone have > experience, > references or tips about implementing mapserver on the Centos box? > > Thanks very much, > > Dave > > > -- > Canada must refuse to be entangled in any more wars fought to make the > world > safe for capitalism. > > -- The Regina Manifesto, 1933 > _______________________________________________ > 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 rabrant at gmail.com Sun Nov 9 16:28:10 2008 From: rabrant at gmail.com (Brant Anderson) Date: Sun, 9 Nov 2008 18:28:10 -0600 Subject: [mapserver-users] PHP/Mapscript library question Message-ID: <3d7e96b90811091628tb8f52d5j85f4fb99a74969a9@mail.gmail.com> Does anyone know what the minimal files for using mapscript is? If I compiled the PHP/Mapscript library, would I need any other mapserv files for it to work? I would like to do experiments with Ruby and mapscript. I was thinking of experimenting with the Ruby/GNOME2 libraries and Mapscript. I won't nessisarily be making anything functional in the tests. I thought it would be a good way to get involved in the mapserver scene again. I haven't toyed with Mapserver since version 4.2. My goal will be to build a stand alone Gnome mapping application that doesn't require a web-server using the U of M Mapserver as the mapping engine. Feedback welcome, ~Brant Ryan Anderson -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at dipole-consulting.com Mon Nov 10 00:08:54 2008 From: lists at dipole-consulting.com (Didrik Pinte) Date: Mon, 10 Nov 2008 09:08:54 +0100 Subject: [mapserver-users] mapserver on Centos? In-Reply-To: <200811081345.34034.geek@uniserve.com> References: <200811081345.34034.geek@uniserve.com> Message-ID: <1226304534.10190.160.camel@localhost> On Sat, 2008-11-08 at 13:45 -0800, Dave Stevens wrote: > Hi, > > I have a little server using a 32 bit Intel cpu configured with Centos 5.2 and > Virtualmin GPL. It has been doing a good job for me as a web and mail server > with a light load and I am interested in trying Mapserver on it. > > On my Fedora box mapserver is in the repo (F7). Does anyone have experience, > references or tips about implementing mapserver on the Centos box? > > Thanks very much, > > Dave Hi Dave, If you have no packages, here is a howto to compile it. It is for Centos 4.5 but should work fine with centos 5.x : http://www.dipole-consulting.com/gis/building-mapserver-with-mrsid-support-on-centos-4.5.html Regards, Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From adrian_gh.popa at romtelecom.ro Mon Nov 10 01:51:28 2008 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Mon, 10 Nov 2008 11:51:28 +0200 Subject: [mapserver-users] Adding symbols on top of polyline elements Message-ID: <49180420.5070205@romtelecom.ro> Hello everybody, I have a map that displays roads stored in a polyline format. I would like to mark one-way streets with an arrow symbol drawn on top of the road itself. The symbol can be as small as possible (for beginning I would like to be able to superimpose it anywhere between the street ends, and later on I will lock it to be next to one of the ends). I can already select the one way streets based on the following template: CLASS Name "OneWay" EXPRESSION /^FO040127$|^FO040132$|^FO040139$|^FO040120$|^FO040104$|^FO040131$|^FO040146$|^FO040129$/ STYLE COLOR 255 0 0 WIDTH 4 END LABEL COLOR 0 0 255 TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS TRUE POSITION AUTO ANGLE AUTO PARTIALS TRUE MINDISTANCE 0 BUFFER 0 END END Can you show me an example of how to draw such a symbol on top of the layer? Thank you Adrian From mmemon at sdsc.edu Mon Nov 10 01:58:51 2008 From: mmemon at sdsc.edu (Asif Memon) Date: Mon, 10 Nov 2008 01:58:51 -0800 Subject: [mapserver-users] Documentation for serving large raster images using tile cache. References: <452F37AE49199D49B1702D7D45038C4D0105D1D7@et.ad.sdsc.edu> <48FCD595.70405@hostgis.com> <9c2015090810201338n24b1e552i18261434f8d71a18@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D31F@et.ad.sdsc.edu> <9c2015090810281253l62383f1bq25c2a967c0f14baf@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D328@et.ad.sdsc.edu> <9c2015090810281321q4003413dle48de3f5c28faffc@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D32C@et.ad.sdsc.edu> <9c2015090810281517o43a1854bjde9c7f49da540c37@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D339@et.ad.sdsc.edu> <9c2015090810282011t4d6e65bdr794d71a5028bbb12@mail.gmail.com> Message-ID: <452F37AE49199D49B1702D7D45038C4D01145477@et.ad.sdsc.edu> Hi All, I have couple of question, could you please take a look at it : 1) Do you know any Map Server Client that allows viewing the image service (created on the Minnesota Map Server) if I give the URL listed below: http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" 2) I am using Windows XP on my PC. When I give the URL in this format - http://localhost:9090/cgi-bin/mapserv.exe?map=/mapdemo/itasca_demo.map&mode=map", it doesn't work. But if I give it in format - http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map, it works. The problem in giving the URL is this format is I have to put the complete path starting with "C: drive" and if I have to run it on the server, I cannot give it like that. Could you please help me with both the above issues? Thanks! Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 8:11 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, I downloaded the demo.tif file that you sent earlier, and the itasca_demo.map from you rprevious email. I changed the path in the DATA portion of the LAYER section to point to my filesystem, DATA "/var/www/mapfiles/itasca/demo.tif" and also changed the EXTENT to this: EXTENT -0.9194182 -4.2013292 -0.9002422 -4.1870152 This matches the extent of the file when you run gdalinfo against it (min_x min_y max_x Max_y). With these changes, I'm able to view the file with the following URL: http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&mode=map (Note, I'm running this in Linux, so paths and URLs are going to be slightly different than yours) Try changing your EXTENT entry to match mine, that might do the trick. -- On Tue, Oct 28, 2008 at 3:45 PM, Asif Memon wrote: Thanks Roger. I don't see any errors now, but no image appears in the browser(the browser is blank). I made minor changes to the map file that you sent me (about the paths, attached is the file). The URL that I am using in the browser is http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map Please correct me if anything is wrong in the URL or in the map file. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 3:17 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, Ok, here's a new mapfile that you can try. Change your request to point to this one, and see if you get an image back in your browser. Roger -- On Tue, Oct 28, 2008 at 2:06 PM, Asif Memon wrote: I believe one of the "END" was missing at the end of the file, I have added that. This resolves the earlier error and generated a new one - msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. mapserv(): Web application error. No way to generate map extent. Any help is much appreciated? Sincerely, Asif Memon From: Asif Memon Sent: Tuesday, October 28, 2008 1:48 PM To: 'Roger Andr?' Cc: 'mapserver-users at lists.osgeo.org' Subject: RE: [mapserver-users] RE: Documentation for serving large raster images using tile cache. No, TileCache didn't come with that. I am trying to view any image right now to see an example of serving an image into Mapserver. I changed the path of the WMS URL(http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&mode=map ) and the error I am getting now is - msLoadMap(): Premature End-of-File. I ran the GDAL tile cache command on a .tif image to create the shape files using (gdaltindex doq_index.shp doq/*.tif). Also, I made some changes in the map file. Attached is the most updated map file along with the shape files. Could you please take a look at it. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 1:22 PM To: Asif Memon Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Sorry I assumed that the index.html file was the one that came with TileCache. Is that not correct? -- On Tue, Oct 28, 2008 at 1:02 PM, Asif Memon wrote: Thanks for your reply. Attached is the map file. I do not have the any tilecache.cfg file. From the error(msLoadMap(): Unable to access file. (/path/to/demo.map)), it appears the map file is not accessible. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 12:53 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, Are you able to view a map when you go to "http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" ? Also, can you send a copy of your mapfile, and of your tilecache.cfg files? Roger -- On Tue, Oct 28, 2008 at 11:15 AM, Asif Memon wrote: Hi Roger, I followed the instructions on the documentation and setup the map server and demo, when I try to execute the index.html, I get this error - msLoadMap(): Unable to access file. (http://localhost:9090/mapdemo/itasca.map) Do you know what could be it? Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Monday, October 20, 2008 1:38 PM To: Gregor Mosheh Cc: Asif Memon; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, Best thing to do is take a look at these 2 docs first: - http://mapserver.gis.umn.edu/docs/howto/raster_data - http://tilecache.org/readme.html Once you have the ability to see your raster in MapServer via a "mode=map" request, then you will have to decide how you wish to view your data afterwards. There are different things to do in TileCache depending on whether you wish to view the data in OpenLayers, or over Google Maps/MS VE. -- On Mon, Oct 20, 2008 at 12:01 PM, Gregor Mosheh wrote: Asif Memon wrote: Could someone please point me to the documentation for serving large (2GB to 3GB) raster images using tile cache. I want to use Minnesota Map Server and GDAL to achieve this. You'll want to ask the TileCache list about that, likely. Once you have MapServer actually serving up the imagery, get your client using MapServer or WMS (I like OpenLayers, myself). Then install TileCache and change the OL app to use TC's URL instead of MapServer's. Easy. But you may want to install OpenLayers and get it working with MapServer first, then hit up the OL and TC mailing lists. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Nov 10 02:42:11 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 10 Nov 2008 11:42:11 +0100 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: <49180420.5070205@romtelecom.ro> References: <49180420.5070205@romtelecom.ro> Message-ID: Hi, for repeated arrow symbols, you can use a truetype (or image, or vector) symbol, with a negative GAP: SYMBOL NAME oneway TYPE TRUETYPE CHARACTER '>' FONT arial GAP -20 END and then in your layer: STYLE SYMBOL oneway SIZE 8 COLOR 0 0 0 END cheers, thomas On Mon, Nov 10, 2008 at 10:51, Adrian Popa wrote: > Hello everybody, > > I have a map that displays roads stored in a polyline format. I would like > to mark one-way streets with an arrow symbol drawn on top of the road > itself. The symbol can be as small as possible (for beginning I would like > to be able to superimpose it anywhere between the street ends, and later on > I will lock it to be next to one of the ends). > > I can already select the one way streets based on the following template: > > CLASS > > Name "OneWay" > > EXPRESSION > /^FO040127$|^FO040132$|^FO040139$|^FO040120$|^FO040104$|^FO040131$|^FO040146$|^FO040129$/ > STYLE > > COLOR 255 0 0 > > WIDTH 4 > > END > > LABEL > > COLOR 0 0 255 > > TYPE TRUETYPE > > FONT arial > > SIZE 8 > > ANTIALIAS TRUE > > > POSITION AUTO > > > ANGLE AUTO > PARTIALS TRUE > > > MINDISTANCE 0 > > > BUFFER 0 END > > > END > > Can you show me an example of how to draw such a symbol on top of the layer? > Thank you > > Adrian > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From adrian_gh.popa at romtelecom.ro Mon Nov 10 03:01:19 2008 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Mon, 10 Nov 2008 13:01:19 +0200 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: References: <49180420.5070205@romtelecom.ro> Message-ID: <4918147F.5040303@romtelecom.ro> Hello Thomas, Thank you very much for your tip! It's great. However, I have a question: How can I select the direction of the arrow? I mean, between A and B I have a road segment: A----------------B Right now, it renders as A---->---->----->-----B, but I want it to render as A----<------<-----<------B. My question is: how does mapserver select the order of A and B? If I understand this, I can create another symbol and use it for the reverse path. Thanks, Adrian thomas bonfort wrote: > Hi, > > for repeated arrow symbols, you can use a truetype (or image, or > vector) symbol, with a negative GAP: > > SYMBOL > NAME oneway > TYPE TRUETYPE > CHARACTER '>' > FONT arial > GAP -20 > END > > and then in your layer: > > STYLE > SYMBOL oneway > SIZE 8 > COLOR 0 0 0 > END > > cheers, > thomas > > On Mon, Nov 10, 2008 at 10:51, Adrian Popa wrote: > >> Hello everybody, >> >> I have a map that displays roads stored in a polyline format. I would like >> to mark one-way streets with an arrow symbol drawn on top of the road >> itself. The symbol can be as small as possible (for beginning I would like >> to be able to superimpose it anywhere between the street ends, and later on >> I will lock it to be next to one of the ends). >> >> I can already select the one way streets based on the following template: >> >> CLASS >> >> Name "OneWay" >> >> EXPRESSION >> /^FO040127$|^FO040132$|^FO040139$|^FO040120$|^FO040104$|^FO040131$|^FO040146$|^FO040129$/ >> STYLE >> >> COLOR 255 0 0 >> >> WIDTH 4 >> >> END >> >> LABEL >> >> COLOR 0 0 255 >> >> TYPE TRUETYPE >> >> FONT arial >> >> SIZE 8 >> >> ANTIALIAS TRUE >> >> >> POSITION AUTO >> >> >> ANGLE AUTO >> PARTIALS TRUE >> >> >> MINDISTANCE 0 >> >> >> BUFFER 0 END >> >> >> END >> >> Can you show me an example of how to draw such a symbol on top of the layer? >> Thank you >> >> Adrian >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Nov 10 03:28:28 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 10 Nov 2008 12:28:28 +0100 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: <4918147F.5040303@romtelecom.ro> References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> Message-ID: it's the direction of the underlying geometry that's used. so you either need * data that's oriented, and a single boolean filed indicating if its oneway or not, * or an unoriented geometry, and a field indicating if the oneway direction is reversed or not wrt the geometry (and two directional symbols, one with > , the other with <) cheers, thomas On Mon, Nov 10, 2008 at 12:01, Adrian Popa wrote: > Hello Thomas, > > Thank you very much for your tip! It's great. > However, I have a question: How can I select the direction of the arrow? I > mean, between A and B I have a road segment: > > A----------------B > > Right now, it renders as A---->---->----->-----B, but I want it to render as > A----<------<-----<------B. > > My question is: how does mapserver select the order of A and B? If I > understand this, I can create another symbol and use it for the reverse > path. > > Thanks, > Adrian > > thomas bonfort wrote: > > Hi, > > for repeated arrow symbols, you can use a truetype (or image, or > vector) symbol, with a negative GAP: > > SYMBOL > NAME oneway > TYPE TRUETYPE > CHARACTER '>' > FONT arial > GAP -20 > END > > and then in your layer: > > STYLE > SYMBOL oneway > SIZE 8 > COLOR 0 0 0 > END > > cheers, > thomas > > On Mon, Nov 10, 2008 at 10:51, Adrian Popa > wrote: > > > Hello everybody, > > I have a map that displays roads stored in a polyline format. I would like > to mark one-way streets with an arrow symbol drawn on top of the road > itself. The symbol can be as small as possible (for beginning I would like > to be able to superimpose it anywhere between the street ends, and later on > I will lock it to be next to one of the ends). > > I can already select the one way streets based on the following template: > > CLASS > > Name "OneWay" > > EXPRESSION > /^FO040127$|^FO040132$|^FO040139$|^FO040120$|^FO040104$|^FO040131$|^FO040146$|^FO040129$/ > STYLE > > COLOR 255 0 0 > > WIDTH 4 > > END > > LABEL > > COLOR 0 0 255 > > TYPE TRUETYPE > > FONT arial > > SIZE 8 > > ANTIALIAS TRUE > > > POSITION AUTO > > > ANGLE AUTO > PARTIALS TRUE > > > MINDISTANCE 0 > > > BUFFER 0 END > > > END > > Can you show me an example of how to draw such a symbol on top of the layer? > Thank you > > Adrian > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > Adrian Popa > > Network Engineer > Romtelecom S.A. > Divizia Centrul National de Operare Retea > Departament Transport IP & Metro > Compartiment IP Core > > From adrian_gh.popa at romtelecom.ro Mon Nov 10 03:44:02 2008 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Mon, 10 Nov 2008 13:44:02 +0200 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> Message-ID: <49181E82.9000804@romtelecom.ro> Can you please clarify to me what you mean by data that is oriented? When I built the road layer from GPS data, I added polylines starting from point A->...->B and recorded all the inflections in the road between A and B. By ordered data you mean the direction in this case is A->B? If I wanted to reverse the direction I'd have to write the data to the shapefile in the order B->A? Thanks thomas bonfort wrote: > it's the direction of the underlying geometry that's used. > so you either need > * data that's oriented, and a single boolean filed indicating if its > oneway or not, > * or an unoriented geometry, and a field indicating if the oneway > direction is reversed or not wrt the geometry (and two directional > symbols, one with > , the other with <) > > cheers, > thomas > > On Mon, Nov 10, 2008 at 12:01, Adrian Popa wrote: > >> Hello Thomas, >> >> Thank you very much for your tip! It's great. >> However, I have a question: How can I select the direction of the arrow? I >> mean, between A and B I have a road segment: >> >> A----------------B >> >> Right now, it renders as A---->---->----->-----B, but I want it to render as >> A----<------<-----<------B. >> >> My question is: how does mapserver select the order of A and B? If I >> understand this, I can create another symbol and use it for the reverse >> path. >> >> Thanks, >> Adrian >> >> thomas bonfort wrote: >> >> Hi, >> >> for repeated arrow symbols, you can use a truetype (or image, or >> vector) symbol, with a negative GAP: >> >> SYMBOL >> NAME oneway >> TYPE TRUETYPE >> CHARACTER '>' >> FONT arial >> GAP -20 >> END >> >> and then in your layer: >> >> STYLE >> SYMBOL oneway >> SIZE 8 >> COLOR 0 0 0 >> END >> >> cheers, >> thomas >> >> On Mon, Nov 10, 2008 at 10:51, Adrian Popa >> wrote: >> >> >> Hello everybody, >> >> I have a map that displays roads stored in a polyline format. I would like >> to mark one-way streets with an arrow symbol drawn on top of the road >> itself. The symbol can be as small as possible (for beginning I would like >> to be able to superimpose it anywhere between the street ends, and later on >> I will lock it to be next to one of the ends). >> >> I can already select the one way streets based on the following template: >> >> CLASS >> >> Name "OneWay" >> >> EXPRESSION >> /^FO040127$|^FO040132$|^FO040139$|^FO040120$|^FO040104$|^FO040131$|^FO040146$|^FO040129$/ >> STYLE >> >> COLOR 255 0 0 >> >> WIDTH 4 >> >> END >> >> LABEL >> >> COLOR 0 0 255 >> >> TYPE TRUETYPE >> >> FONT arial >> >> SIZE 8 >> >> ANTIALIAS TRUE >> >> >> POSITION AUTO >> >> >> ANGLE AUTO >> PARTIALS TRUE >> >> >> MINDISTANCE 0 >> >> >> BUFFER 0 END >> >> >> END >> >> Can you show me an example of how to draw such a symbol on top of the layer? >> Thank you >> >> Adrian >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> -- >> Adrian Popa >> >> Network Engineer >> Romtelecom S.A. >> Divizia Centrul National de Operare Retea >> Departament Transport IP & Metro >> Compartiment IP Core >> >> >> > > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Nov 10 05:31:33 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 10 Nov 2008 14:31:33 +0100 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: <49181E82.9000804@romtelecom.ro> References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> <49181E82.9000804@romtelecom.ro> Message-ID: > By ordered data you mean the direction in this case is A->B? yes > If I wanted to reverse the direction I'd have to write the data to the > shapefile in the order B->A? or add a field in your shapefile for that feature, eg reverse=true. you'd then have mapserver draw the < symbol for features where reverse=true. -- thomas From adrian_gh.popa at romtelecom.ro Mon Nov 10 05:48:25 2008 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Mon, 10 Nov 2008 15:48:25 +0200 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> <49181E82.9000804@romtelecom.ro> Message-ID: <49183BA9.7050402@romtelecom.ro> Thank you for your help, Thomas. Unfortunately, the data is ordered, but it wasn't input in a meaningful way for what I need, so I can't rewrite it, nor add a flag to it... I will do some comparisons at the server side, before dynamically creating the map file and I hope I can pull it off... Thanks again. thomas bonfort wrote: >> By ordered data you mean the direction in this case is A->B? >> > yes > > >> If I wanted to reverse the direction I'd have to write the data to the >> shapefile in the order B->A? >> > or add a field in your shapefile for that feature, eg reverse=true. > you'd then have mapserver draw the < symbol for features where > reverse=true. > > -- > thomas > > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Mon Nov 10 08:33:12 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 10 Nov 2008 09:33:12 -0700 Subject: [mapserver-users] WCS time support bugs In-Reply-To: References: <490F84EE.1010106@gmx.net> <4911D44D.1050909@gmx.net> Message-ID: On Wed, Nov 5, 2008 at 11:39 AM, Alexander Petkov wrote: > On Wed, Nov 5, 2008 at 10:13 AM, Armin Burger wrote: >> Alex >> >> I had a look at the code and tried the suggested fix. I uploaded a patch at >> the wiki, see this link >> http://trac.osgeo.org/mapserver/attachment/ticket/2487/mapwcs.c.patch >> >> With these modifications the PostGIS problem disappeared and it was also >> possible to specify 'wcs_timeposition' as a range of dates instead of single >> dates for the full timeseries. >> >> Armin > > Awesome, thanks Armin!! > > I will patch and use, > > Alex > The patch is very useful indeed :) GetCoverage requests now work for Postgis-backed time indexed layers with this patch. Also, now I don't need to specify explicit time positions for the wcs service--just start and end. Hopefully it'll make it into the source tree. Thanks again, Alex From greenkov at gmail.com Mon Nov 10 08:36:03 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 10 Nov 2008 09:36:03 -0700 Subject: [mapserver-users] GetCoverage and palette Geotiffs In-Reply-To: <49060BCE.4040608@pobox.com> References: <49060BCE.4040608@pobox.com> Message-ID: On Mon, Oct 27, 2008 at 11:43 AM, Frank Warmerdam wrote: > Alexander Petkov wrote: >> >> Would it be possible to preserve the original data in an image (number >> of bands, and Type, and color interp) in the result of a GetCoverage >> request? For example, I serve Paletted Geotiffs through mapserver: > > ... >> >> Any hopes of being able to preserve the orig data after a GetCoverage >> request? > > Alex, > > The original pixel values can be preserved by picking an IMAGEMODE BYTE > outputformat, but unfortunately that will currently discard the palette. > > Basically there are two major rendering paths involved here. One is a > map view oriented one (GD'ish renders - IMAGEMODE RGB, RGBA or PC256) and > the other is a raw data oriented path (GDAL'ish renders - IMAGEMODE BYTE, > INT16 and FLOAT32). > > We could look at trying to preserve palettes and possible some other stuff > in the "raw data" case but I'm not terrible keen on doing this. What are the drawbacks of preserving the original color palette in "raw data" mode? Thanks, Alex From Steve.Toutant at inspq.qc.ca Mon Nov 10 09:02:54 2008 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Mon, 10 Nov 2008 12:02:54 -0500 Subject: [mapserver-users] help with WMS_LAYER_GROUP Message-ID: Hi, I'm using WMS_LAYER_GROUP in METADATA instead of GROUP keyword I have three layers in my mapFile The first layer has "WMS_LAYER_GROUP" "/Risques/" Second has "WMS_LAYER_GROUP" "/Infrastructures/Sant?" Third has "WMS_LAYER_GROUP" "/Infrastructures/Scolaires" When I connect to my WMS with Gaia or gvSig I got the following hoerarchy Where PACC Sant? is the wms_title of the MAP. * Keyword Group is not in the layer defition Someone has more details on WMS_LAYER_GROUP? thanks, Steve Steve Toutant, M. Sc. Analyste en g?omatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de sant? publique du Qu?bec 945, avenue Wolfe Qu?bec, Qc G1V 5B3 T?l.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.toutant at inspq.qc.ca http://www.inspq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 1901 bytes Desc: not available URL: From randre at gmail.com Mon Nov 10 09:35:16 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 10 Nov 2008 09:35:16 -0800 Subject: [mapserver-users] Documentation for serving large raster images using tile cache. In-Reply-To: <452F37AE49199D49B1702D7D45038C4D01145477@et.ad.sdsc.edu> References: <452F37AE49199D49B1702D7D45038C4D0105D1D7@et.ad.sdsc.edu> <452F37AE49199D49B1702D7D45038C4D0105D31F@et.ad.sdsc.edu> <9c2015090810281253l62383f1bq25c2a967c0f14baf@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D328@et.ad.sdsc.edu> <9c2015090810281321q4003413dle48de3f5c28faffc@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D32C@et.ad.sdsc.edu> <9c2015090810281517o43a1854bjde9c7f49da540c37@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D339@et.ad.sdsc.edu> <9c2015090810282011t4d6e65bdr794d71a5028bbb12@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D01145477@et.ad.sdsc.edu> Message-ID: <9c2015090811100935g25d6b18ci9b99150323018143@mail.gmail.com> Hi Asif, My apologies. I saw your message Friday evening but forgot about it over the weekend in the course of reinstalling my Linux OS. If time is of the essence, posting your question to the entire list should ensure a speedier response. Regarding your questions: 1) I am not aware of any applications that will act as viewers for Mapserver operating in "map" mode. They may exist, but I'm not familiar with them. I tend to use Mapserver in only one of two ways at the moment; in "map" mode to generate static maps, in "wms" mode with a connection to it via OpenLayers (or TileCache). 2) Regarding the path to your mapfile, I believe there are several solutions that you can try if your goal is to shorten the URL string. They are well-explained here - http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url. As far as why the 1st URL doesn't actually work, it's because the path should be relative to the mapserv.exe location in cgi-bin, not to htdocs. So try this instead: - http://localhost:9090/cgi-bin/mapserv.exe?map=../htdocs/mapdemo/itasca_demo.map&mode=map Roger -- On Mon, Nov 10, 2008 at 1:58 AM, Asif Memon wrote: > Hi All, > > > > I have couple of question, could you please take a look at it : > > > > 1) Do you know any Map Server Client that allows viewing the image > service (created on the Minnesota Map Server) if I give the URL listed > below: > > http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map > " > > > > 2) I am using Windows XP on my PC. When I give the URL in this format > - > http://localhost:9090/cgi-bin/mapserv.exe?map=/mapdemo/itasca_demo.map&mode=map", > it doesn't work. But if I give it in format - > http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map, > it works. The problem in giving the URL is this format is I have to put the > complete path starting with "C: drive" and if I have to run it on the > server, I cannot give it like that. > > > > Could you please help me with both the above issues? Thanks! > > > > Sincerely, > > Asif Memon > > > > > > *From:* Roger Andr? [mailto:randre at gmail.com] > *Sent:* Tuesday, October 28, 2008 8:11 PM > *To:* Asif Memon > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] RE: Documentation for serving large > raster images using tile cache. > > > > Hi Asif, > > I downloaded the demo.tif file that you sent earlier, and the > itasca_demo.map from you rprevious email. I changed the path in the DATA > portion of the LAYER section to point to my filesystem, > DATA "/var/www/mapfiles/itasca/demo.tif" > > and also changed the EXTENT to this: > EXTENT -0.9194182 -4.2013292 -0.9002422 -4.1870152 > > This matches the extent of the file when you run gdalinfo against it (min_x > min_y max_x Max_y). > > With these changes, I'm able to view the file with the following URL: > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&mode=map > > (Note, I'm running this in Linux, so paths and URLs are going to be > slightly different than yours) > > Try changing your EXTENT entry to match mine, that might do the trick. > -- > > On Tue, Oct 28, 2008 at 3:45 PM, Asif Memon wrote: > > Thanks Roger. > > > > I don't see any errors now, but no image appears in the browser(the browser > is blank). I made minor changes to the map file that you sent me (about the > paths, attached is the file). > > > > The URL that I am using in the browser is > http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map > > > > Please correct me if anything is wrong in the URL or in the map file. > > > > Sincerely, > > Asif Memon > > > > > > *From:* Roger Andr? [mailto:randre at gmail.com] > *Sent:* Tuesday, October 28, 2008 3:17 PM > > > *To:* Asif Memon > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] RE: Documentation for serving large > raster images using tile cache. > > > > Hi Asif, > > Ok, here's a new mapfile that you can try. Change your request to point to > this one, and see if you get an image back in your browser. > > Roger > -- > > On Tue, Oct 28, 2008 at 2:06 PM, Asif Memon wrote: > > I believe one of the "END" was missing at the end of the file, I have added > that. This resolves the earlier error and generated a new one - msDrawMap(): > Image handling error. Unable to initialize image. msPrepareImage(): General > error message. Image dimensions not specified. msCalculateScale(): General > error message. Invalid image extent, minx=-1.000000, miny=-1.000000, > maxx=-1.000000, maxy=-1.000000. mapserv(): Web application error. No way to > generate map extent. > > > > Any help is much appreciated? > > > > Sincerely, > > Asif Memon > > > > *From:* Asif Memon > *Sent:* Tuesday, October 28, 2008 1:48 PM > *To:* 'Roger Andr?' > > > *Cc:* 'mapserver-users at lists.osgeo.org' > > *Subject:* RE: [mapserver-users] RE: Documentation for serving large > raster images using tile cache. > > > > No, TileCache didn't come with that. I am trying to view any image right > now to see an example of serving an image into Mapserver. > > > > I changed the path of the WMS URL( > http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&mode=map) > and the error I am getting now is - msLoadMap(): Premature End-of-File. > > > > I ran the GDAL tile cache command on a .tif image to create the shape files > using (gdaltindex doq_index.shp doq/*.tif). Also, I made some changes in the > map file. Attached is the most updated map file along with the shape files. > > > > Could you please take a look at it. > > > > Sincerely, > > Asif Memon > > > > *From:* Roger Andr? [mailto:randre at gmail.com] > > *Sent:* Tuesday, October 28, 2008 1:22 PM > *To:* Asif Memon > > *Subject:* Re: [mapserver-users] RE: Documentation for serving large > raster images using tile cache. > > > > Sorry I assumed that the index.html file was the one that came with > TileCache. Is that not correct? > -- > > On Tue, Oct 28, 2008 at 1:02 PM, Asif Memon wrote: > > Thanks for your reply. > > > > Attached is the map file. I do not have the any tilecache.cfg file. From > the error(msLoadMap(): Unable to access file. (/path/to/demo.map)), it > appears the map file is not accessible. > > > > Sincerely, > > Asif Memon > > > > > > *From:* Roger Andr? [mailto:randre at gmail.com] > > *Sent:* Tuesday, October 28, 2008 12:53 PM > *To:* Asif Memon > > *Cc:* mapserver-users at lists.osgeo.org > > > *Subject:* Re: [mapserver-users] RE: Documentation for serving large > raster images using tile cache. > > > > Hi Asif, > > Are you able to view a map when you go to " > http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" > ? Also, can you send a copy of your mapfile, and of your tilecache.cfg > files? > > Roger > -- > > On Tue, Oct 28, 2008 at 11:15 AM, Asif Memon wrote: > > Hi Roger, > > > > I followed the instructions on the documentation and setup the map server > and demo, when I try to execute the index.html, I get this error - msLoadMap(): > Unable to access file. (http://localhost:9090/mapdemo/itasca.map) > > > > Do you know what could be it? > > > > Sincerely, > > Asif Memon > > > > *From:* Roger Andr? [mailto:randre at gmail.com] > *Sent:* Monday, October 20, 2008 1:38 PM > *To:* Gregor Mosheh > *Cc:* Asif Memon; mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] RE: Documentation for serving large > raster images using tile cache. > > > > Hi Asif, > > Best thing to do is take a look at these 2 docs first: > - http://mapserver.gis.umn.edu/docs/howto/raster_data > - http://tilecache.org/readme.html > > Once you have the ability to see your raster in MapServer via a "mode=map" > request, then you will have to decide how you wish to view your data > afterwards. There are different things to do in TileCache depending on > whether you wish to view the data in OpenLayers, or over Google Maps/MS VE. > -- > > On Mon, Oct 20, 2008 at 12:01 PM, Gregor Mosheh > wrote: > > Asif Memon wrote: > > Could someone please point me to the documentation for serving large (2GB > to 3GB) raster images using tile cache. I want to use Minnesota Map Server > and GDAL to achieve this. > > > > You'll want to ask the TileCache list about that, likely. Once you have > MapServer actually serving up the imagery, get your client using MapServer > or WMS (I like OpenLayers, myself). Then install TileCache and change the OL > app to use TC's URL instead of MapServer's. Easy. > > But you may want to install OpenLayers and get it working with MapServer > first, then hit up the OL and TC mailing lists. > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tuckeratwork at gmail.com Mon Nov 10 09:59:32 2008 From: tuckeratwork at gmail.com (tuckeratwork) Date: Mon, 10 Nov 2008 09:59:32 -0800 (PST) Subject: [mapserver-users] Just starting out... In-Reply-To: <1226338069016-1481431.post@n2.nabble.com> References: <1226338069016-1481431.post@n2.nabble.com> Message-ID: <1226339972352-1481557.post@n2.nabble.com> I'm sorry to reply to this - my subscription hadn't been accepted and the posting was rejected. I'm hoping that a reply will get through. I'm copying the entire posting only because it was originally rejected. =================================================== tuckeratwork wrote: > > I'm just starting out on a project involving raster maps. I'm looking for > some basic guidance about things to consider - this is all pretty new to > me. > > I've read the Raster Data Access document written by Frank Warmerdam. > That was very well written and an excellent resource. > > My project involves loading a large set of overlapping nautical charts > from the UKHO with the objective of creating Google Maps/OSM-compatible > tiles. All of the charts are in GeoTiff format and are in various scales > and projections. They are non-rectangular and some have cutouts (which > were originally inset charts cut out into other GeoTiff files). Charts > with higher detail obviously overlap charts of lower detail. > > My current thought is to load everything into MapServer and then extract > the tiles needed and store them. Use of MapServer would be for internal > use only - I'm only interested in creating the tiles in png format. The > thing that I think MapServer will give me is the "quilting" together of > the different maps to create merged tiles. While most tiles are trivial, > the tiles at the borders are very complex because they need to be merged > with an underlying map possibly at a different scale (with a potential > non-square border). > > A really good example of this with US NOAA nautical charts can be seen at: > http://www.geogarage.com/main/examples.html.en#noaa > http://www.geogarage.com/main/examples.html.en#noaa > > As you zoom in there, you'll notice how the charts are all merged together > even though some tiles contain imagery from different scaled original > data. > > A few questions fall out of this: > > 1. Is this a reasonable way to accomplish this task? There are Google > tile cutters which would be great for cutting a single GeoTiff file - but > then I'd have the "quilting" issue to deal with between multiple sets of > tiles. MapServer seems like it'll do that quilting for me. > > 2. Can I define non-rectangular boundaries in the source data including > cutouts? Will MapServer quilt the other raster data to those boundaries > and inside the cutouts? > > 3. Are there any other resources that I should be reading and learning > about? > > > Thank you so much for any information you can provide. I'm sorry if some > of these questions are so very basic. I promise to try to be an active > member of the community as I learn enough to have something to contribute. > > Best regards, > > Tucker > > > > > > -- View this message in context: http://n2.nabble.com/Just-starting-out...-tp1481431p1481557.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Mon Nov 10 10:12:56 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 10 Nov 2008 13:12:56 -0500 Subject: [mapserver-users] Just starting out... In-Reply-To: <1226339972352-1481557.post@n2.nabble.com> References: <1226338069016-1481431.post@n2.nabble.com> <1226339972352-1481557.post@n2.nabble.com> Message-ID: <491879A8.2060106@pobox.com> tuckeratwork wrote: >> 2. Can I define non-rectangular boundaries in the source data including >> cutouts? Will MapServer quilt the other raster data to those boundaries >> and inside the cutouts? Tucker, What information do you have now defining the regions for the cutouts? Are you expecting to need to manually define polygons for these by digitizing? If so, I'd suggest you use the gdal_rasterize utility to mask out the area inside or outside of the polygons as appropriate to some sort of nodata value (or to explicitly set an alpha transparency band to transparent). Essentially, I'm suggesting the cutouts should be a preprocessing step before pushing the raster data into MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From armin.burger at gmx.net Mon Nov 10 10:20:57 2008 From: armin.burger at gmx.net (Armin Burger) Date: Mon, 10 Nov 2008 19:20:57 +0100 Subject: [mapserver-users] WCS time support bugs In-Reply-To: References: <490F84EE.1010106@gmx.net> <4911D44D.1050909@gmx.net> Message-ID: <49187B89.7040909@gmx.net> Alex during the tests I noticed 2 shortcomings of the patch for the 'wcs_timeposition', both are a bit correlated with each other: If a request contains a timestamp not available in the Postgis table then an empty image will be sent back to the requesting client. A better solution would be to check the available dates in the PG table and return a service exception in case the requested date is not there. Another problem is that clients will have no possibility to know which dates are really available when supplied with a range. The only WCS client I found so far that supports WCS-T is gvSIG. But this client just offers the time range definition for selection, so it will not work. A solution could be that the DescribeCoverage response reads all available timestamps from the tileindex layer and returns a single entry for all of them in the returned XML. Both modifications would require to dive somewhat deeper into the code and understand where and how the link between WCS layer and tileindex layer is made and how the info from the PG tileindex layer is retrieved from PG. I unfortunately doubt that this will be of high priority to the main developers. Greetings, Armin On 10/11/2008 17:33, Alexander Petkov wrote: > On Wed, Nov 5, 2008 at 11:39 AM, Alexander Petkov wrote: >> On Wed, Nov 5, 2008 at 10:13 AM, Armin Burger wrote: >>> Alex >>> >>> I had a look at the code and tried the suggested fix. I uploaded a patch at >>> the wiki, see this link >>> http://trac.osgeo.org/mapserver/attachment/ticket/2487/mapwcs.c.patch >>> >>> With these modifications the PostGIS problem disappeared and it was also >>> possible to specify 'wcs_timeposition' as a range of dates instead of single >>> dates for the full timeseries. >>> >>> Armin >> Awesome, thanks Armin!! >> >> I will patch and use, >> >> Alex >> > > The patch is very useful indeed :) GetCoverage requests now work for > Postgis-backed time indexed layers with this patch. Also, now I don't > need to specify explicit time positions for the wcs service--just > start and end. > > Hopefully it'll make it into the source tree. > Thanks again, > Alex > From tuckeratwork at gmail.com Mon Nov 10 10:36:51 2008 From: tuckeratwork at gmail.com (tuckeratwork) Date: Mon, 10 Nov 2008 10:36:51 -0800 (PST) Subject: [mapserver-users] Just starting out... In-Reply-To: <491879A8.2060106@pobox.com> References: <1226338069016-1481431.post@n2.nabble.com> <1226339972352-1481557.post@n2.nabble.com> <491879A8.2060106@pobox.com> Message-ID: <1226342211390-1481686.post@n2.nabble.com> > > What information do you have now defining the regions for the cutouts? Are > > you expecting to need to manually define polygons for these by digitizing? First, wow - I'm getting answers from the source! I'm sorry to bother you with such trivial questions. Yes, I expect to write a quick digitizing program to define the boundaries and cutouts. There's some other meta data I need to collect too. The borders aren't in the header like the BSB/KAP files. I'll definitely check out the gdal_rasterize utility - that's the exact kind of advice I was looking for. I'm a developer and don't mind writing custom code if needed with gdal, etc. How about the quilting aspects of it all? Will I get the type of tile results that GeoGarage got? I'm not really sure how they did what they did - perhaps they used MapServer too... -- View this message in context: http://n2.nabble.com/Just-starting-out...-tp1481431p1481686.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Nov 10 10:50:10 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 10 Nov 2008 13:50:10 -0500 Subject: [mapserver-users] Just starting out... In-Reply-To: <1226342211390-1481686.post@n2.nabble.com> References: <1226338069016-1481431.post@n2.nabble.com> <1226339972352-1481557.post@n2.nabble.com> <491879A8.2060106@pobox.com> <1226342211390-1481686.post@n2.nabble.com> Message-ID: <49188262.5060403@pobox.com> tuckeratwork wrote: > What information do you have now defining the regions for the > cutouts? Are > you expecting to need to manually define polygons for these by > digitizing? > > > First, wow - I'm getting answers from the source! I'm sorry to bother > you with such trivial questions. Tucker, The questions are not at all trivial, though possibly hard to give solid answers for. > Yes, I expect to write a quick digitizing program to define the > boundaries and cutouts. There's some other meta data I need to collect > too. The borders aren't in the header like the BSB/KAP files. > > I'll definitely check out the gdal_rasterize utility - that's the exact > kind of advice I was looking for. I'm a developer and don't mind > writing custom code if needed with gdal, etc. The utility is available as part of GDAL and is documented at: http://www.gdal.org/gdal_rasterize.html Note the -i flag to invert the sense of what is inside or outside. > How about the quilting aspects of it all? Will I get the type of tile > results that GeoGarage got? I'm not really sure how they did what they > did - perhaps they used MapServer too... MapServer should be able to quilt images fairly well if you can burn away all the stuff you don't want to show, and then order them as you want them layered. If the images are not all in the same coordinate system you may need to use multiple LAYER's for them otherwise you can just dump them into a tileindex (ie. shapefile) with some care to ordering. When burning away uninteresting parts of the images make sure you burn them out to a particular value that can be used as the OFFSITE value in your LAYER definition - assuming you don't go the alpha transparency route which is somewhat involved. What you want to do should be achievable but may be somewhat challenging. I'm not sure that it is critical to do it through mapserver. You could likely achieve something similar by creating a suitable mosaic image, and gdalwarp'ing the individual maps into that in a suitable order (after appropriate masking). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From randre at gmail.com Mon Nov 10 11:21:17 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 10 Nov 2008 11:21:17 -0800 Subject: [mapserver-users] Just starting out... In-Reply-To: <49188262.5060403@pobox.com> References: <1226338069016-1481431.post@n2.nabble.com> <1226339972352-1481557.post@n2.nabble.com> <491879A8.2060106@pobox.com> <1226342211390-1481686.post@n2.nabble.com> <49188262.5060403@pobox.com> Message-ID: <9c2015090811101121k6d5a86bco29f04e0ab75040f2@mail.gmail.com> Hi Tucker, My experience using the techniques that Frank's described below ("burn" away areas of non-interest using gdal_rasterize, then layer separate raster layers in Mapserver) has been very good. The one additional piece that I have used is TileCache, so that I can generate PNG tiles for display in Google Maps. Of especially great value to me has been Mapserver's ability to display data sets together which often differ in their projections. One thing I would advise you to do first is to display 2 different data sets that overlap, in 2 different projections, in a simple mapfile. Then check that the reprojection is working properly and that features line up. Sounds like a neat project, Roger -- On Mon, Nov 10, 2008 at 10:50 AM, Frank Warmerdam wrote: > tuckeratwork wrote: > >> What information do you have now defining the regions for the >> cutouts? Are >> you expecting to need to manually define polygons for these by >> digitizing? >> First, wow - I'm getting answers from the source! I'm sorry to bother >> you with such trivial questions. >> > > Tucker, > > The questions are not at all trivial, though possibly hard to give > solid answers for. > > Yes, I expect to write a quick digitizing program to define the boundaries >> and cutouts. There's some other meta data I need to collect too. The >> borders aren't in the header like the BSB/KAP files. >> I'll definitely check out the gdal_rasterize utility - that's the exact >> kind of advice I was looking for. I'm a developer and don't mind writing >> custom code if needed with gdal, etc. >> > > The utility is available as part of GDAL and is documented at: > > http://www.gdal.org/gdal_rasterize.html > > Note the -i flag to invert the sense of what is inside or outside. > > How about the quilting aspects of it all? Will I get the type of tile >> results that GeoGarage got? I'm not really sure how they did what they did >> - perhaps they used MapServer too... >> > > MapServer should be able to quilt images fairly well if you can burn away > all the stuff you don't want to show, and then order them as you want them > layered. If the images are not all in the same coordinate system you may > need to use multiple LAYER's for them otherwise you can just dump them into > a tileindex (ie. shapefile) with some care to ordering. > > When burning away uninteresting parts of the images make sure you burn them > out to a particular value that can be used as the OFFSITE value in your > LAYER definition - assuming you don't go the alpha transparency route which > is somewhat involved. > > What you want to do should be achievable but may be somewhat challenging. > I'm not sure that it is critical to do it through mapserver. You could > likely achieve something similar by creating a suitable mosaic image, and > gdalwarp'ing the individual maps into that in a suitable order (after > appropriate masking). > > 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 ruijgomes at gmail.com Mon Nov 10 11:29:21 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Mon, 10 Nov 2008 19:29:21 +0000 Subject: [mapserver-users] Using pixels in TOLERANCEUNITS Message-ID: <31e2f7000811101129w12a4fc9dy9d127f636b4e1de5@mail.gmail.com> Exact. By the URL. Thanks for this tip, but i have another question: How i change maplexer.l? Can you tell me where i can find some tutorial? Thanks ----------------------------------------------------------------------------------------------------------------- What do you mean "in the html"? Do you mean your trying to set via URL? If so it's likely an oversight on my part and that keyword isn't being recognized when parsing URLs. I'll make sure that gets fixed in the source. In the meantime you can edit maplexer.l and change: pixels to pixels and then recompile... Steve >>> "Rui Gomes" 11/07/08 9:47 PM >>> Hi... I have a problem: I put the tolerance units of a layer i the .map file using the layer keyword: TOLERANCEUNITS pixels and work fine. But if i try to do the same in the html i recive the following error message: getSymbol(): Symbol definition error. Parsing error near (pixels):(line 1) And this error only happen whith the tag "pixels". I use feet, meters, kilometers and dd and all of them works fine. Why pixels don work? Thanks and sorry for my English. -- Rui Gomes From mmemon at sdsc.edu Mon Nov 10 13:20:02 2008 From: mmemon at sdsc.edu (Asif Memon) Date: Mon, 10 Nov 2008 13:20:02 -0800 Subject: [mapserver-users] Documentation for serving large raster images using tile cache. In-Reply-To: <9c2015090811100935g25d6b18ci9b99150323018143@mail.gmail.com> References: <452F37AE49199D49B1702D7D45038C4D0105D1D7@et.ad.sdsc.edu> <452F37AE49199D49B1702D7D45038C4D0105D31F@et.ad.sdsc.edu> <9c2015090810281253l62383f1bq25c2a967c0f14baf@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D328@et.ad.sdsc.edu> <9c2015090810281321q4003413dle48de3f5c28faffc@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D32C@et.ad.sdsc.edu> <9c2015090810281517o43a1854bjde9c7f49da540c37@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D339@et.ad.sdsc.edu> <9c2015090810282011t4d6e65bdr794d71a5028bbb12@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D01145477@et.ad.sdsc.edu> <9c2015090811100935g25d6b18ci9b99150323018143@mail.gmail.com> Message-ID: <452F37AE49199D49B1702D7D45038C4D01145495@et.ad.sdsc.edu> Thanks Roger, I have tiled a large mosaic(2 GB) by using the GDAL utility(gdal_convert "TILED=YES"). I want to test the performance for querying the mosaic with the zoom functionality. Do I need to write a client or is there anything readily available with which I can check the performance? Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Monday, November 10, 2008 9:35 AM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Documentation for serving large raster images using tile cache. Hi Asif, My apologies. I saw your message Friday evening but forgot about it over the weekend in the course of reinstalling my Linux OS. If time is of the essence, posting your question to the entire list should ensure a speedier response. Regarding your questions: 1) I am not aware of any applications that will act as viewers for Mapserver operating in "map" mode. They may exist, but I'm not familiar with them. I tend to use Mapserver in only one of two ways at the moment; in "map" mode to generate static maps, in "wms" mode with a connection to it via OpenLayers (or TileCache). 2) Regarding the path to your mapfile, I believe there are several solutions that you can try if your goal is to shorten the URL string. They are well-explained here - http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url. As far as why the 1st URL doesn't actually work, it's because the path should be relative to the mapserv.exe location in cgi-bin, not to htdocs. So try this instead: - http://localhost:9090/cgi-bin/mapserv.exe?map=../htdocs/mapdemo/itasca_demo.map&mode=map Roger -- On Mon, Nov 10, 2008 at 1:58 AM, Asif Memon wrote: Hi All, I have couple of question, could you please take a look at it : 1) Do you know any Map Server Client that allows viewing the image service (created on the Minnesota Map Server) if I give the URL listed below: http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" 2) I am using Windows XP on my PC. When I give the URL in this format - http://localhost:9090/cgi-bin/mapserv.exe?map=/mapdemo/itasca_demo.map&mode=map", it doesn't work. But if I give it in format - http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map , it works. The problem in giving the URL is this format is I have to put the complete path starting with "C: drive" and if I have to run it on the server, I cannot give it like that. Could you please help me with both the above issues? Thanks! Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 8:11 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, I downloaded the demo.tif file that you sent earlier, and the itasca_demo.map from you rprevious email. I changed the path in the DATA portion of the LAYER section to point to my filesystem, DATA "/var/www/mapfiles/itasca/demo.tif" and also changed the EXTENT to this: EXTENT -0.9194182 -4.2013292 -0.9002422 -4.1870152 This matches the extent of the file when you run gdalinfo against it (min_x min_y max_x Max_y). With these changes, I'm able to view the file with the following URL: http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&mode=map (Note, I'm running this in Linux, so paths and URLs are going to be slightly different than yours) Try changing your EXTENT entry to match mine, that might do the trick. -- On Tue, Oct 28, 2008 at 3:45 PM, Asif Memon wrote: Thanks Roger. I don't see any errors now, but no image appears in the browser(the browser is blank). I made minor changes to the map file that you sent me (about the paths, attached is the file). The URL that I am using in the browser is http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map Please correct me if anything is wrong in the URL or in the map file. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 3:17 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, Ok, here's a new mapfile that you can try. Change your request to point to this one, and see if you get an image back in your browser. Roger -- On Tue, Oct 28, 2008 at 2:06 PM, Asif Memon wrote: I believe one of the "END" was missing at the end of the file, I have added that. This resolves the earlier error and generated a new one - msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. mapserv(): Web application error. No way to generate map extent. Any help is much appreciated? Sincerely, Asif Memon From: Asif Memon Sent: Tuesday, October 28, 2008 1:48 PM To: 'Roger Andr?' Cc: 'mapserver-users at lists.osgeo.org' Subject: RE: [mapserver-users] RE: Documentation for serving large raster images using tile cache. No, TileCache didn't come with that. I am trying to view any image right now to see an example of serving an image into Mapserver. I changed the path of the WMS URL(http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&mode=map ) and the error I am getting now is - msLoadMap(): Premature End-of-File. I ran the GDAL tile cache command on a .tif image to create the shape files using (gdaltindex doq_index.shp doq/*.tif). Also, I made some changes in the map file. Attached is the most updated map file along with the shape files. Could you please take a look at it. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 1:22 PM To: Asif Memon Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Sorry I assumed that the index.html file was the one that came with TileCache. Is that not correct? -- On Tue, Oct 28, 2008 at 1:02 PM, Asif Memon wrote: Thanks for your reply. Attached is the map file. I do not have the any tilecache.cfg file. From the error(msLoadMap(): Unable to access file. (/path/to/demo.map)), it appears the map file is not accessible. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 12:53 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, Are you able to view a map when you go to "http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" ? Also, can you send a copy of your mapfile, and of your tilecache.cfg files? Roger -- On Tue, Oct 28, 2008 at 11:15 AM, Asif Memon wrote: Hi Roger, I followed the instructions on the documentation and setup the map server and demo, when I try to execute the index.html, I get this error - msLoadMap(): Unable to access file. (http://localhost:9090/mapdemo/itasca.map) Do you know what could be it? Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Monday, October 20, 2008 1:38 PM To: Gregor Mosheh Cc: Asif Memon; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, Best thing to do is take a look at these 2 docs first: - http://mapserver.gis.umn.edu/docs/howto/raster_data - http://tilecache.org/readme.html Once you have the ability to see your raster in MapServer via a "mode=map" request, then you will have to decide how you wish to view your data afterwards. There are different things to do in TileCache depending on whether you wish to view the data in OpenLayers, or over Google Maps/MS VE. -- On Mon, Oct 20, 2008 at 12:01 PM, Gregor Mosheh wrote: Asif Memon wrote: Could someone please point me to the documentation for serving large (2GB to 3GB) raster images using tile cache. I want to use Minnesota Map Server and GDAL to achieve this. You'll want to ask the TileCache list about that, likely. Once you have MapServer actually serving up the imagery, get your client using MapServer or WMS (I like OpenLayers, myself). Then install TileCache and change the OL app to use TC's URL instead of MapServer's. Easy. But you may want to install OpenLayers and get it working with MapServer first, then hit up the OL and TC mailing lists. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Nov 10 13:21:26 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 10 Nov 2008 15:21:26 -0600 Subject: [mapserver-users] Using pixels in TOLERANCEUNITS In-Reply-To: <31e2f7000811101129w12a4fc9dy9d127f636b4e1de5@mail.gmail.com> References: <31e2f7000811101129w12a4fc9dy9d127f636b4e1de5@mail.gmail.com> Message-ID: <49185178.5157.008F.0@dnr.state.mn.us> There is no tutorial for editing the source code. It's generally not for the faint of heart. The file maplexer.l is part of the MapServer source distribution so if you build the software from source then it would be right there along with the other C/C++ sources. If you're using MS4W I'm afraid you're out of luck until a new version of that package is made available with this change. Steve >>> On 11/10/2008 at 1:29 PM, in message <31e2f7000811101129w12a4fc9dy9d127f636b4e1de5 at mail.gmail.com>, "Rui Gomes" wrote: > Exact. By the URL. > Thanks for this tip, but i have another question: > > How i change maplexer.l? Can you tell me where i can find some tutorial? > > Thanks > > ----------------------------------------------------------------------------------------------------------------- > > What do you mean "in the html"? Do you mean your trying to set via > URL? If so it's likely > an oversight on my part and that keyword isn't being recognized when > parsing URLs. I'll > make sure that gets fixed in the source. > > In the meantime you can edit maplexer.l and change: > > pixels > to > pixels > > and then recompile... > > Steve > >>>> "Rui Gomes" 11/07/08 9:47 PM >>> > Hi... > > I have a problem: > > I put the tolerance units of a layer i the .map file using the layer > keyword: > > TOLERANCEUNITS pixels > > and work fine. But if i try to do the same in the html i recive the > following error message: > > getSymbol(): Symbol definition error. Parsing error near (pixels):(line 1) > > And this error only happen whith the tag "pixels". I use feet, meters, > kilometers and dd and all of them works fine. Why pixels don work? > > > Thanks and sorry for my English. > -- > Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From SansonR at asurequality.com Mon Nov 10 13:22:31 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 11 Nov 2008 10:22:31 +1300 Subject: [mapserver-users] Location of msplugin_sde_91.dll In-Reply-To: <7D10614B-8DEB-4DF9-BFBB-6D95696BB5A6@gmail.com> References: <20081104151328.19377.qmail@s466.sureserver.com> <7D10614B-8DEB-4DF9-BFBB-6D95696BB5A6@gmail.com> Message-ID: <49195CE6.379F.0037.0@asurequality.com> We have just installed ms4w onto a D:\ drive on a new server. Trying to get SDE connectivity going. When trying to access a layer that uses SDE i get the following error: * msWFSGetFeature(): WFS server error. ms_error->code not found loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: c:/ms4w/apache/specialplugins/msplugin_sde_91.dll msGetSymbol(): General error message. Can't load requested dynamic library: c:/ms4w/apache/specialplugins/msplugin_sde_91.dll Where is this location set so I can re-point to d:/ms4w/apache/specialplugins/msplugin_sde_91.dll? Many thanks, Robert ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Mon Nov 10 13:27:07 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 10 Nov 2008 15:27:07 -0600 Subject: [mapserver-users] Documentation for serving large raster imagesusing tile cache. Message-ID: <491852CB020000A80000EA4F@jeckle> Asif, While it may be a bit of overhead to implement just for testing, the GeoMoose client would definitely help with your performance testing. If you combine it with FireBug/FireFox, you should be able to extract all the performance information you need (from the client end). >From the server side, you can run the MapServer requests on the commandline. In my experience though, the web side of the equation is usually the bottleneck for most performance issues. bobb >>> "Asif Memon" 11/10/08 3:21 PM >>> Thanks Roger, I have tiled a large mosaic(2 GB) by using the GDAL utility(gdal_convert "TILED=YES"). I want to test the performance for querying the mosaic with the zoom functionality. Do I need to write a client or is there anything readily available with which I can check the performance? Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Monday, November 10, 2008 9:35 AM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Documentation for serving large raster images using tile cache. Hi Asif, My apologies. I saw your message Friday evening but forgot about it over the weekend in the course of reinstalling my Linux OS. If time is of the essence, posting your question to the entire list should ensure a speedier response. Regarding your questions: 1) I am not aware of any applications that will act as viewers for Mapserver operating in "map" mode. They may exist, but I'm not familiar with them. I tend to use Mapserver in only one of two ways at the moment; in "map" mode to generate static maps, in "wms" mode with a connection to it via OpenLayers (or TileCache). 2) Regarding the path to your mapfile, I believe there are several solutions that you can try if your goal is to shorten the URL string. They are well-explained here - http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url. As far as why the 1st URL doesn't actually work, it's because the path should be relative to the mapserv.exe location in cgi-bin, not to htdocs. So try this instead: - http://localhost:9090/cgi-bin/mapserv.exe?map=../htdocs/mapdemo/itasca_demo.map&mode=map Roger -- On Mon, Nov 10, 2008 at 1:58 AM, Asif Memon wrote: Hi All, I have couple of question, could you please take a look at it : 1) Do you know any Map Server Client that allows viewing the image service (created on the Minnesota Map Server) if I give the URL listed below: http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" 2) I am using Windows XP on my PC. When I give the URL in this format - http://localhost:9090/cgi-bin/mapserv.exe?map=/mapdemo/itasca_demo.map&mode=map", it doesn't work. But if I give it in format - http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map , it works. The problem in giving the URL is this format is I have to put the complete path starting with "C: drive" and if I have to run it on the server, I cannot give it like that. Could you please help me with both the above issues? Thanks! Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 8:11 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, I downloaded the demo.tif file that you sent earlier, and the itasca_demo.map from you rprevious email. I changed the path in the DATA portion of the LAYER section to point to my filesystem, DATA "/var/www/mapfiles/itasca/demo.tif" and also changed the EXTThis matches the extent of the file when you run gdalinfo against it (min_x min_y max_x Max_y). With these changes, I'm able to view the file with the following URL: http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&mode=map (Note, I'm running this in Linux, so paths and URLs are going to be slightly different than yours) Try changing your EXTENT entry to match mine, that might do the trick. -- On Tue, Oct 28, 2008 at 3:45 PM, Asif Memon wrote: Thanks Roger. I don't see any errors now, but no image appears in the browser(the browser is blank). I made minor changes to the map file that you sent me (about the paths, attached is the file). The URL that I am using in the browser is http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&mode=map Please correct me if anything is wrong in the URL or in the map file. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 3:17 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, Ok, here's a new mapfile that you can try. Change your request to point to this one, and see if you get an image back in your browser. Roger -- On Tue, Oct 28, 2008 at 2:06 PM, Asif Memon wrote: I believe one of the "END" was missing at the end of the file, I have added that. This resolves the earlier error and generated a new one - msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. mapserv(): Web application error. No way to generate map extent. Any help is much appreciated? Sincerely, Asif Memon From: Asif Memon Sent: Tuesday, October 28, 2008 1:48 PM To: 'Roger Andr?' Cc: 'mapserver-users at lists.osgeo.org' Subject: RE: [mapserver-users] RE: Documentation for serving large raster images using tile cache. No, TileCache didn't come with that. I am trying to view any image right now to see an example of serving an image into Mapserver. I changed the path of the WMS URL(http://localhost:9090/cgi-bin/mapserv.exe?map=C:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&mode=map ) and the error I am getting now is - msLoadMap(): Premature End-of-File. I ran the GDAL tile cache command on a .tif image to create the shape files using (gdaltindex doq_index.shp doq/*.tif). Also, I made some changes in the map file. Attached is the most updated map file along with the shape files. Could you please take a look at it. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 1:22 PM To: Asif Memon Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Sorry I assumed that the index.html file was the one that came with TileCache. Is that not correct? -- On Tue, Oct 28, 2008 at 1:02 PM, Asif Memon wrote: Thanks for your reply. Attached is the map file. I do not have the any tilecache.cfg file. From the error(msLoadMap(): Unable to access file. (/path/to/demo.map)), it appears the map file is not accessible. Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Tuesday, October 28, 2008 12:53 PM To: Asif Memon Cc: mapserver-users at lists.osgeo.org Are you able to view a map when you go to "http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&mode=map" ? Also, can you send a copy of your mapfile, and of your tilecache.cfg files? Roger -- On Tue, Oct 28, 2008 at 11:15 AM, Asif Memon wrote: Hi Roger, I followed the instructions on the documentation and setup the map server and demo, when I try to execute the index.html, I get this error - msLoadMap(): Unable to access file. (http://localhost:9090/mapdemo/itasca.map) Do you know what could be it? Sincerely, Asif Memon From: Roger Andr? [mailto:randre at gmail.com] Sent: Monday, October 20, 2008 1:38 PM To: Gregor Mosheh Cc: Asif Memon; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Documentation for serving large raster images using tile cache. Hi Asif, Best thing to do is take a look at these 2 docs first: - http://mapserver.gis.umn.edu/docs/howto/raster_data - http://tilecache.org/readme.html Once you have the ability to see your raster in MapServer via a "mode=map" request, then you will have to decide how you wish to view your data afterwards. There are different things to do in TileCache depending on whether you wish to view the data in OpenLayers, or over Google Maps/MS VE. -- On Mon, Oct 20, 2008 at 12:01 PM, Gregor Mosheh wrote: Asif Memon wrote: Could someone please point me to the documentation for serving large (2GB to 3GB) raster images using tile cache. I want to use Minnesota Map Server and GDAL to achieve this. You'll want to ask the TileCache list about that, likely. Once you have MapServer actually serving up the imagery, get your client using MapServer or WMS (I like OpenLayers, myself). Then install TileCache and change the OL app to use TC's URL instead of MapServer's. Easy. But you may want to install OpenLayers and get it working with MapServer first, then hit up the OL and TC mailing lists. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From SansonR at asurequality.com Mon Nov 10 13:29:13 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Tue, 11 Nov 2008 10:29:13 +1300 Subject: [mapserver-users] Location of msplugin_sde_91.dll - solved Message-ID: <49195E78.379F.0037.0@asurequality.com> Hi Went through my map files and found it is in the PLUGIN section: # actual data pointer CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN CONNECTION "esri-arcsde,port:5165,sde_crs,sansonr,password" PLUGIN "d:/ms4w/apache/specialplugins/msplugin_sde_91.dll" DATA "sde_crs.SDEADMIN.VP_VW,SHAPE" >>>>>>>>>>>>> We have just installed ms4w onto a D:\ drive on a new server. Trying to get SDE connectivity going. When trying to access a layer that uses SDE i get the following error: ? msWFSGetFeature(): WFS server error. ms_error->code not found loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: c:/ms4w/apache/specialplugins/msplugin_sde_91.dll msGetSymbol(): General error message. Can't load requested dynamic library: c:/ms4w/apache/specialplugins/msplugin_sde_91.dll Where is this location set so I can re-point to d:/ms4w/apache/specialplugins/msplugin_sde_91.dll? Many thanks, Robert ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Mon Nov 10 21:07:58 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 11 Nov 2008 06:07:58 +0100 Subject: [mapserver-users] Documentation for serving large raster images using tile cache. In-Reply-To: <452F37AE49199D49B1702D7D45038C4D01145495@et.ad.sdsc.edu> References: <452F37AE49199D49B1702D7D45038C4D0105D1D7@et.ad.sdsc.edu> <452F37AE49199D49B1702D7D45038C4D0105D31F@et.ad.sdsc.edu> <9c2015090810281253l62383f1bq25c2a967c0f14baf@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D328@et.ad.sdsc.edu> <9c2015090810281321q4003413dle48de3f5c28faffc@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D32C@et.ad.sdsc.edu> <9c2015090810281517o43a1854bjde9c7f49da540c37@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D0105D339@et.ad.sdsc.edu> <9c2015090810282011t4d6e65bdr794d71a5028bbb12@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D01145477@et.ad.sdsc.edu> <9c2015090811100935g25d6b18ci9b99150323018143@mail.gmail.com> <452F37AE49199D49B1702D7D45038C4D01145495@et.ad.sdsc.edu> Message-ID: <4919132E.7050102@neogeo-online.net> Hi Asif, Why not giving a try to gdal2tiles ? it will build a whole tileset from your input raster, and will set up for you a GoogleEarth kml, a Google Maps sample app and an OpenLayers sample app as well, from which you'll be able to read your tiles. Regards, Guillaume Asif Memon a ?crit : > Thanks Roger, > > > > I have tiled a large mosaic(2 GB) by using the GDAL utility(gdal_convert > ?TILED=YES?). I want to test the performance for querying the mosaic > with the zoom functionality. Do I need to write a client or is there > anything readily available with which I can check the performance? > > > > Sincerely, > > Asif Memon > > > From jmckenna at gatewaygeomatics.com Tue Nov 11 00:42:00 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 11 Nov 2008 03:42:00 -0500 Subject: [mapserver-users] Location of msplugin_sde_91.dll - solved In-Reply-To: <49195E78.379F.0037.0@asurequality.com> References: <49195E78.379F.0037.0@asurequality.com> Message-ID: <49194558.3030804@gatewaygeomatics.com> Robert Sanson wrote: > Hi > > Went through my map files and found it is in the PLUGIN section: > > # actual data pointer > CONNECTIONTYPE SDE > CONNECTIONTYPE PLUGIN > CONNECTION "esri-arcsde,port:5165,sde_crs,sansonr,password" > PLUGIN "d:/ms4w/apache/specialplugins/msplugin_sde_91.dll" > DATA "sde_crs.SDEADMIN.VP_VW,SHAPE" > > >>>>>>>>>>>>> > We have just installed ms4w onto a D:\ drive on a new server. Trying to > get SDE connectivity going. When trying to access a layer that uses SDE > i get the following error: > > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> > ? > > > msWFSGetFeature(): WFS server error. ms_error->code not found > loadCustomLayerDLL: General error message. Failed to load dynamic Layer > LIB: c:/ms4w/apache/specialplugins/msplugin_sde_91.dll > msGetSymbol(): General error message. Can't load requested dynamic > library: c:/ms4w/apache/specialplugins/msplugin_sde_91.dll > > > > > Where is this location set so I can re-point to > d:/ms4w/apache/specialplugins/msplugin_sde_91.dll? > > Many thanks, > > Robert > You can see the documentation for SDE with MS4W in your local install at: /ms4w/README_INSTALL.txt, and also online at: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde You can also subscribe to the MS4W mailing list to ask configuration questions such as yours: subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From gabmessner at gmail.com Tue Nov 11 00:44:05 2008 From: gabmessner at gmail.com (Gabriel Messner) Date: Tue, 11 Nov 2008 09:44:05 +0100 Subject: [mapserver-users] spatial filter to WFS server Message-ID: <1708890c0811110044k69f8c25v461321d854dbda60@mail.gmail.com> I wish to limit de spatial extent when serving a layer by WFS server. For example, The original extent of the layer is 0 0 1000 1000 and I want to filter the extent to 250 250 500 500. Is this possible? Thanks in advanded. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Tue Nov 11 00:47:04 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 11 Nov 2008 09:47:04 +0100 (CET) Subject: [mapserver-users] spatial filter to WFS server In-Reply-To: <1708890c0811110044k69f8c25v461321d854dbda60@mail.gmail.com> References: <1708890c0811110044k69f8c25v461321d854dbda60@mail.gmail.com> Message-ID: <29743.145.50.39.11.1226393224.squirrel@webmail.hostingdiscounter.nl> You can set ows_extent, but there is no guarantee that a WFS client will honour this. Best regards, Bart > I wish to limit de spatial extent when serving a layer by WFS server. For > example, The original extent of the layer is 0 0 1000 1000 and I want to > filter the extent to 250 250 500 500. > Is this possible? > > Thanks in advanded. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bartvde at osgis.nl Tue Nov 11 00:57:04 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 11 Nov 2008 09:57:04 +0100 (CET) Subject: [mapserver-users] spatial filter to WFS server In-Reply-To: <1708890c0811110049s393f1e50hee4062e2cd5cc862@mail.gmail.com> References: <1708890c0811110044k69f8c25v461321d854dbda60@mail.gmail.com> <29743.145.50.39.11.1226393224.squirrel@webmail.hostingdiscounter.nl> <1708890c0811110049s393f1e50hee4062e2cd5cc862@mail.gmail.com> Message-ID: <57932.145.50.39.11.1226393824.squirrel@webmail.hostingdiscounter.nl> Then I fear it won't be possible with Mapserver, I don't even think WFS has something for this. The only way would be preprocessing your dataset before serving it out with WFS. You sometimes see this as a feature of OWS security systems, maybe Deegree OWSProxy can do it for you? Best regards, Bart > Thaks, but that solution does not fit what I need :-( > > 2008/11/11 > >> You can set ows_extent, but there is no guarantee that a WFS client will >> honour this. >> >> Best regards, >> Bart >> >> > I wish to limit de spatial extent when serving a layer by WFS server. >> For >> > example, The original extent of the layer is 0 0 1000 1000 and I want >> to >> > filter the extent to 250 250 500 500. >> > Is this possible? >> > >> > Thanks in advanded. >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> >> >> > From r.terhaar at i-real.nl Tue Nov 11 05:14:31 2008 From: r.terhaar at i-real.nl (I-Real - Rob ter Haar) Date: Tue, 11 Nov 2008 14:14:31 +0100 Subject: [mapserver-users] Is it possible to take the last 3 chars from a string as labelitem Message-ID: <49198537.7030701@i-real.nl> Hi, As in the subject. Is it possible to do a substr on a string like SQL can do. I use SDE for source and in the description there is a long string, but i only need the last 3 characters. I can't add column in the database so thats no option. I only have a sde host username and password. Can anyone help me? kind regards, Rob ter Haar -------------- next part -------------- An HTML attachment was scrubbed... URL: From tuckeratwork at gmail.com Tue Nov 11 08:35:09 2008 From: tuckeratwork at gmail.com (tuckeratwork) Date: Tue, 11 Nov 2008 08:35:09 -0800 (PST) Subject: [mapserver-users] Just starting out... In-Reply-To: <49188262.5060403@pobox.com> References: <1226338069016-1481431.post@n2.nabble.com> <1226339972352-1481557.post@n2.nabble.com> <491879A8.2060106@pobox.com> <1226342211390-1481686.post@n2.nabble.com> <49188262.5060403@pobox.com> Message-ID: <1226421309145-1485816.post@n2.nabble.com> Closer investigation of the GeoTiff files produced by UKHO shows that although the cut out areas are white, they are all drawn with a different pixel index. That makes the whole job pretty simple to pull out the chart data. Now I'm fighting to get the "MapServer Demo" from the New User's documentation to work. It isn't acting like I expect and I'll probably start another thread about it after searching for others who have had the same frustrations that I'm having... Thanks! -- View this message in context: http://n2.nabble.com/Just-starting-out...-tp1481431p1485816.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Tue Nov 11 10:58:51 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 11 Nov 2008 19:58:51 +0100 Subject: [MAPSERVER-USERS] Pass parameters to mapfile In-Reply-To: <20377760.post@talk.nabble.com> References: <20377760.post@talk.nabble.com> Message-ID: you'd use something like this: * in your mapfile: DATA "the_geom from ( select * from customised_point AS f where user_id='%userid%' AND f.subcat_id IN (select subcat_id from subcat_info where maincat_id =0))AS foo USING UNIQUE gid" you can add a regular expression for validating the %userid% string for your layer: metadata userid_validation_pattern "[a-zA-Z]*" end * the the wms url should include a userid=foo in it: wms[5] = new OpenLayers.Layer.WMS.Untiled("Customization", "http://gis.rtbi-iitm.in/cgi-bin/mapserv?map=/var/www/html/customisation/mapfile/customNR.map" {'layers': "NR_point",'transparent':"true", 'userid':'foo'}, {'isBaseLayer':false} ); note that openlayers capitalizes the url params, so you should probably use %USERID% in your mapfile cheers, thomas On Fri, Nov 7, 2008 at 11:07, S.Reena wrote: > > I am using the following data in my mapfile > > DATA "the_geom from ( select * from customised_point AS f where > user_id='userid' AND f.subcat_id IN (select subcat_id from subcat_info where > maincat_id =0))AS foo USING UNIQUE gid" > > > I want the userid ( used in the above query) to be passed to map file at the > time of layer creation something like this.... > > wms[5] = new OpenLayers.Layer.WMS.Untiled( > > "Customization","http://gis.rtbi-iitm.in/cgi-bin/mapserv?map=/var/www/html/customisation/mapfile/customNR.map" > + userid ,{'layers': "NR_point",'transparent':"true"},{'layers': > "NR_polygon",'transparent':"true"},{'isBaseLayer':false} ); > > How to do that? > > Thanks in advance :) > > Cheers, > Reena. > -- > View this message in context: http://www.nabble.com/Pass-parameters-to-mapfile-tp20377760p20377760.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 tuckeratwork at gmail.com Tue Nov 11 14:41:02 2008 From: tuckeratwork at gmail.com (tuckeratwork) Date: Tue, 11 Nov 2008 14:41:02 -0800 (PST) Subject: [mapserver-users] ms4w with MapServer Demo... Message-ID: <1226443262232-1487301.post@n2.nabble.com> I've really tried to figure it out. I've searched the forum and I've only found one other person who had the exact same problem that I'm having - and no one ever responded to his posting. I've installed ms4w. It worked fine. As background, I'm barely familiar with Apache. I then downloaded the "MapServer Demo" which looks like a set of tutorial datasets based around something called "MapServer Itasca Application" - this is all from the MapServer New Users document. I'm now directed to place the "workshop" folder "someplace in your web tree." Then you're supposed to edit index.html and view it in a local browser window. I put the workshop folder into the Apache/htdocs directory because I believe that puts it at the root of my localhost server. And in fact, when I load http://localhost/workshop/index.html, the html file gets loaded. The problem is that I can't seem to figure out how to edit the html file to have it point to the proper directories for the rest of the MapServer configuration. The things that need to be edited in the index.html file are: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP var snippet = "IMAGEPATH '/usr/local/www/docs_maps/tmp/'"; snippet += " IMAGEURL '/tmp/'"; and
and I've made scores of edits to those three sections. This is how I think they really should be: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP var snippet = "IMAGEPATH '/workshop/tmp/'"; snippet += " IMAGEURL '/tmp/'"; and and Launching the index.html file produces: mLoadMap(): Unable to access file. (/workshop/itasca.map) The file "htdocs/workshop/itasca.map" does exist but it obviously isn't going through the Apache path to get there. What am I doing wrong? This is terribly embarrassing... -- View this message in context: http://n2.nabble.com/ms4w-with-MapServer-Demo...-tp1487301p1487301.html Sent from the Mapserver - User mailing list archive at Nabble.com. From maurerj at nsidc.org Tue Nov 11 16:20:08 2008 From: maurerj at nsidc.org (John Maurer) Date: Wed, 12 Nov 2008 00:20:08 +0000 Subject: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? Message-ID: <491A2138.8090609@nsidc.org> Dear MapServer Users, Prior to MapServer 5.0, I could set the map scalebar size and intervals using CGI variables named "map_scalebar_size" and "map_scalebar_intervals". After upgrading to 5.2.0, however, these variables are no longer recognized; I get an error saying "loadScalebar(): Unknown identifier". Is it true that we can no longer reference map settings in this fashion? When I change these variables to "map_scalebar=size+value+intervals+value" it works, but this no longer fills in my template variables [map_scalebar_size] and [map_scalebar_intervals]. If I try using a template variable with [map_scalebar] instead, the value (e.g. "size+width+height+intervals+value") doesn't seem to be interpreted by MapServer since the scalebar settings never get subsequently modified. What am I doing wrong? Thanks for any insights! Cheers, -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From vtammineni at roulacglobal.com Tue Nov 11 19:40:54 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 12 Nov 2008 09:10:54 +0530 Subject: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? In-Reply-To: <491A2138.8090609@nsidc.org> References: <491A2138.8090609@nsidc.org> Message-ID: <000601c94478$78cb3f40$6a61bdc0$@com> HI, http://mapserver.gis.umn.edu/docs/reference/mapfile/scalebar/?searchterm=sca lebar check above url. Thanks, Venkat -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of John Maurer Sent: Wednesday, November 12, 2008 5:50 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? Dear MapServer Users, Prior to MapServer 5.0, I could set the map scalebar size and intervals using CGI variables named "map_scalebar_size" and "map_scalebar_intervals". After upgrading to 5.2.0, however, these variables are no longer recognized; I get an error saying "loadScalebar(): Unknown identifier". Is it true that we can no longer reference map settings in this fashion? When I change these variables to "map_scalebar=size+value+intervals+value" it works, but this no longer fills in my template variables [map_scalebar_size] and [map_scalebar_intervals]. If I try using a template variable with [map_scalebar] instead, the value (e.g. "size+width+height+intervals+value") doesn't seem to be interpreted by MapServer since the scalebar settings never get subsequently modified. What am I doing wrong? Thanks for any insights! Cheers, -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From adrian_gh.popa at romtelecom.ro Wed Nov 12 00:29:10 2008 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed, 12 Nov 2008 10:29:10 +0200 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: <49181E82.9000804@romtelecom.ro> References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> <49181E82.9000804@romtelecom.ro> Message-ID: <491A93D6.3040801@romtelecom.ro> Hello everybody, I managed to draw the arrows for the polyline layer, and they look ok, but (for a strange reason) I am required to draw these arrows both ways sometimes for the same element. I would like for the arrows to overlap, but instead only one of them is displayed. I attached 3 small pictures (sorry for the spam, but I hope it's not against the mailing list policy) with the displayed outcome in these three cases: Case 1: displaying arrows with the 'right' symbol CLASS NAME "Right" EXPRESSION /^FO040314$/ STYLE SYMBOL right SIZE 24 COLOR 51 102 0 END END CLASS NAME "Left" EXPRESSION /SUPERCALIFRAGILISTICEXPIALIDOCIOUS/ STYLE SYMBOL left SIZE 24 COLOR 102 51 0 END END Case 2: displaying arrows with the 'left' symbol CLASS NAME "Right" EXPRESSION /SUPERCALIFRAGILISTICEXPIALIDOCIOUS/ STYLE SYMBOL right SIZE 24 COLOR 51 102 0 END END CLASS NAME "Left" EXPRESSION /^FO040314$/ STYLE SYMBOL left SIZE 24 COLOR 102 51 0 END END Case 3: displaying both arrows on the same element: CLASS NAME "Right" EXPRESSION /^FO040314$/ STYLE SYMBOL right SIZE 24 COLOR 51 102 0 END END CLASS NAME "Left" EXPRESSION /^FO040314$/ STYLE SYMBOL left SIZE 24 COLOR 102 51 0 END END How can I display both arrows on the same object (or do they display, but they overlap completely?) Thanks for your help, Adrian Adrian Popa wrote: > Can you please clarify to me what you mean by data that is oriented? > When I built the road layer from GPS data, I added polylines starting > from point A->...->B and recorded all the inflections in the road > between A and B. > By ordered data you mean the direction in this case is A->B? > If I wanted to reverse the direction I'd have to write the data to the > shapefile in the order B->A? > > Thanks > > thomas bonfort wrote: >> it's the direction of the underlying geometry that's used. >> so you either need >> * data that's oriented, and a single boolean filed indicating if its >> oneway or not, >> * or an unoriented geometry, and a field indicating if the oneway >> direction is reversed or not wrt the geometry (and two directional >> symbols, one with > , the other with <) >> >> cheers, >> thomas >> >> On Mon, Nov 10, 2008 at 12:01, Adrian Popa wrote: >> >>> Hello Thomas, >>> >>> Thank you very much for your tip! It's great. >>> However, I have a question: How can I select the direction of the arrow? I >>> mean, between A and B I have a road segment: >>> >>> A----------------B >>> >>> Right now, it renders as A---->---->----->-----B, but I want it to render as >>> A----<------<-----<------B. >>> >>> My question is: how does mapserver select the order of A and B? If I >>> understand this, I can create another symbol and use it for the reverse >>> path. >>> >>> Thanks, >>> Adrian >>> >>> thomas bonfort wrote: >>> >>> Hi, >>> >>> for repeated arrow symbols, you can use a truetype (or image, or >>> vector) symbol, with a negative GAP: >>> >>> SYMBOL >>> NAME oneway >>> TYPE TRUETYPE >>> CHARACTER '>' >>> FONT arial >>> GAP -20 >>> END >>> >>> and then in your layer: >>> >>> STYLE >>> SYMBOL oneway >>> SIZE 8 >>> COLOR 0 0 0 >>> END >>> >>> cheers, >>> thomas >>> >>> On Mon, Nov 10, 2008 at 10:51, Adrian Popa >>> wrote: >>> >>> >>> Hello everybody, >>> >>> I have a map that displays roads stored in a polyline format. I would like >>> to mark one-way streets with an arrow symbol drawn on top of the road >>> itself. The symbol can be as small as possible (for beginning I would like >>> to be able to superimpose it anywhere between the street ends, and later on >>> I will lock it to be next to one of the ends). >>> >>> I can already select the one way streets based on the following template: >>> >>> CLASS >>> >>> Name "OneWay" >>> >>> EXPRESSION >>> /^FO040127$|^FO040132$|^FO040139$|^FO040120$|^FO040104$|^FO040131$|^FO040146$|^FO040129$/ >>> STYLE >>> >>> COLOR 255 0 0 >>> >>> WIDTH 4 >>> >>> END >>> >>> LABEL >>> >>> COLOR 0 0 255 >>> >>> TYPE TRUETYPE >>> >>> FONT arial >>> >>> SIZE 8 >>> >>> ANTIALIAS TRUE >>> >>> >>> POSITION AUTO >>> >>> >>> ANGLE AUTO >>> PARTIALS TRUE >>> >>> >>> MINDISTANCE 0 >>> >>> >>> BUFFER 0 END >>> >>> >>> END >>> >>> Can you show me an example of how to draw such a symbol on top of the layer? >>> Thank you >>> >>> Adrian >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> >>> >>> -- >>> Adrian Popa >>> >>> Network Engineer >>> Romtelecom S.A. >>> Divizia Centrul National de Operare Retea >>> Departament Transport IP & Metro >>> Compartiment IP Core >>> >>> >>> >> >> > > > -- > Adrian Popa > > Network Engineer > Romtelecom S.A. > Divizia Centrul National de Operare Retea > Departament Transport IP & Metro > Compartiment IP Core > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: case1-right.png Type: image/png Size: 5476 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: case2-left.png Type: image/png Size: 4954 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: case3-right-left.png Type: image/png Size: 5606 bytes Desc: not available URL: From lenholuu at yahoo.com Wed Nov 12 02:09:53 2008 From: lenholuu at yahoo.com (le nho luu) Date: Wed, 12 Nov 2008 02:09:53 -0800 (PST) Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1) Message-ID: <453056.21371.qm@web57108.mail.re3.yahoo.com> Hello everyone, I'm new, and am currently having trouble figuring out what's wrong with my .map files. I've checked all the lines in my .map files for missing parenthesees. I'm getting this error when I try to click the button to load both test map files: loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1) Is there something wrong with my environment? Are there differences in reading code in version 5.0.0. I am using Windows XP, Mapserver 5.0.0, Apache, and PHP 5.2.4. Any help is appreciated! Here is my sample hello.map file: # This is our "Hello World" mapfile NAME "Hello_World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "/ms4w/apps/vidu/htdocs/hello.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.0 0.0 END TEXT "Hello World" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END Here is my sample hello.html file: MapServer Hello World -------------- next part -------------- An HTML attachment was scrubbed... URL: From vikki.km at gmail.com Wed Nov 12 04:25:07 2008 From: vikki.km at gmail.com (Vikas KM) Date: Wed, 12 Nov 2008 17:55:07 +0530 Subject: [mapserver-users] If any one has PDF of mapser book... plll send Message-ID: <5cf1344b0811120425r34890b2dx7b9dd9da4d199104@mail.gmail.com> Hi all... Those who have EBOOK of "" Beginning MapServer: Open Source GIS Development "" plzzz mail..... pdf chm any format k... -------------- Regards Vikas KM -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Nov 12 04:31:46 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 12 Nov 2008 18:01:46 +0530 Subject: [mapserver-users] If any one has PDF of mapser book... plll send In-Reply-To: <5cf1344b0811120425r34890b2dx7b9dd9da4d199104@mail.gmail.com> References: <5cf1344b0811120425r34890b2dx7b9dd9da4d199104@mail.gmail.com> Message-ID: <001801c944c2$a2a29d00$e7e7d700$@com> Hi, I have hard copy with me .if you are interested ,you can get printout of it. Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vikas KM Sent: Wednesday, November 12, 2008 5:55 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] If any one has PDF of mapser book... plll send Hi all... Those who have EBOOK of "" Beginning MapServer: Open Source GIS Development "" plzzz mail..... pdf chm any format k... -------------- Regards Vikas KM -------------- next part -------------- An HTML attachment was scrubbed... URL: From maurerj at nsidc.org Wed Nov 12 04:30:45 2008 From: maurerj at nsidc.org (John Maurer) Date: Wed, 12 Nov 2008 12:30:45 +0000 Subject: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? In-Reply-To: <000601c94478$78cb3f40$6a61bdc0$@com> References: <491A2138.8090609@nsidc.org> <000601c94478$78cb3f40$6a61bdc0$@com> Message-ID: <491ACC75.8060707@nsidc.org> Thanks, but I know all of that already and am already aware of MapServer's online references and am an experienced user. I also know about the CGI reference that describes how to change map file parameters via a URL in >5.0 versus <5.0: http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages On further investigation, I've discovered that I must specify a map file parameter as so in an HTTP GET request: map_scalebar=size+width+height+intervals+value But alternatively, I must use a different method for specifying these map file parameters in an HTTP POST request: map_scalebar_size=width+height map_scalebar_intervals=value This requires me to code for two different scenarios. Is MapServer's intended behavior or is this an oversight/bug?? Thanks! Cheers, John Maurer Venkat Rao Tammineni wrote: > HI, > > > http://mapserver.gis.umn.edu/docs/reference/mapfile/scalebar/?searchterm=sca > lebar > > check above url. > Thanks, > Venkat > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of John Maurer > Sent: Wednesday, November 12, 2008 5:50 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] How to set SCALEBAR size and intervals in > MapServer CGI >5.0? > > Dear MapServer Users, > Prior to MapServer 5.0, I could set the map scalebar size and intervals > using CGI variables named "map_scalebar_size" and > "map_scalebar_intervals". After upgrading to 5.2.0, however, these > variables are no longer recognized; I get an error saying > "loadScalebar(): Unknown identifier". Is it true that we can no longer > reference map settings in this fashion? When I change these variables to > "map_scalebar=size+value+intervals+value" it works, but this no longer > fills in my template variables [map_scalebar_size] and > [map_scalebar_intervals]. If I try using a template variable with > [map_scalebar] instead, the value (e.g. > "size+width+height+intervals+value") doesn't seem to be interpreted by > MapServer since the scalebar settings never get subsequently modified. > What am I doing wrong? Thanks for any insights! > Cheers, > > -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From vtammineni at roulacglobal.com Wed Nov 12 04:37:38 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 12 Nov 2008 18:07:38 +0530 Subject: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? In-Reply-To: <491ACC75.8060707@nsidc.org> References: <491A2138.8090609@nsidc.org> <000601c94478$78cb3f40$6a61bdc0$@com> <491ACC75.8060707@nsidc.org> Message-ID: <002301c944c3$7412f240$5c38d6c0$@com> Hi, Here two ways where you can show scalebar. One is through mapfile and another through Coding(C#, what I am using). Thanks Venkat. -----Original Message----- From: John Maurer [mailto:maurerj at nsidc.org] Sent: Wednesday, November 12, 2008 6:01 PM To: Venkat Rao Tammineni; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? Thanks, but I know all of that already and am already aware of MapServer's online references and am an experienced user. I also know about the CGI reference that describes how to change map file parameters via a URL in >5.0 versus <5.0: http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages On further investigation, I've discovered that I must specify a map file parameter as so in an HTTP GET request: map_scalebar=size+width+height+intervals+value But alternatively, I must use a different method for specifying these map file parameters in an HTTP POST request: map_scalebar_size=width+height map_scalebar_intervals=value This requires me to code for two different scenarios. Is MapServer's intended behavior or is this an oversight/bug?? Thanks! Cheers, John Maurer Venkat Rao Tammineni wrote: > HI, > > > http://mapserver.gis.umn.edu/docs/reference/mapfile/scalebar/?searchterm=sca > lebar > > check above url. > Thanks, > Venkat > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of John Maurer > Sent: Wednesday, November 12, 2008 5:50 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] How to set SCALEBAR size and intervals in > MapServer CGI >5.0? > > Dear MapServer Users, > Prior to MapServer 5.0, I could set the map scalebar size and intervals > using CGI variables named "map_scalebar_size" and > "map_scalebar_intervals". After upgrading to 5.2.0, however, these > variables are no longer recognized; I get an error saying > "loadScalebar(): Unknown identifier". Is it true that we can no longer > reference map settings in this fashion? When I change these variables to > "map_scalebar=size+value+intervals+value" it works, but this no longer > fills in my template variables [map_scalebar_size] and > [map_scalebar_intervals]. If I try using a template variable with > [map_scalebar] instead, the value (e.g. > "size+width+height+intervals+value") doesn't seem to be interpreted by > MapServer since the scalebar settings never get subsequently modified. > What am I doing wrong? Thanks for any insights! > Cheers, > > -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From bartvde at osgis.nl Wed Nov 12 04:36:12 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 12 Nov 2008 13:36:12 +0100 (CET) Subject: [mapserver-users] If any one has PDF of mapser book... plll send In-Reply-To: <5cf1344b0811120425r34890b2dx7b9dd9da4d199104@mail.gmail.com> References: <5cf1344b0811120425r34890b2dx7b9dd9da4d199104@mail.gmail.com> Message-ID: <46485.145.50.39.11.1226493372.squirrel@webmail.hostingdiscounter.nl> I am sure you realize this violates the copyright of the book, so I find this request very inappropriate to be honest. Just buy it, it's less than 32 USD. Best regards, Bart > Hi all... > Those who have EBOOK of "" Beginning MapServer: > Open Source GIS Development "" plzzz mail..... pdf chm any format > k... > > > -------------- > Regards > > Vikas KM > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From kobben at itc.nl Wed Nov 12 04:31:57 2008 From: kobben at itc.nl (Barend =?ISO-8859-1?B?S/ZiYmVu?=) Date: Wed, 12 Nov 2008 13:31:57 +0100 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1) In-Reply-To: <453056.21371.qm@web57108.mail.re3.yahoo.com> Message-ID: map files should contain a MAP object, ie. It should start with MAP and have a corresponding END (at the end ;-) -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 12-11-08 11:09, "le nho luu" wrote: > Hello everyone, > > I'm new, and am currently having trouble figuring out what's wrong with my > .map files. I've checked all the lines in my .map files for missing > parenthesees. I'm getting this error when I try to click the button to load > both test map files: > > loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1) > > Is there something wrong with my environment? Are there differences in > reading code in version 5.0.0. I am using Windows XP, Mapserver 5.0.0, > Apache, and PHP 5.2.4. > Any help is appreciated! > Here is my sample hello.map file: > # This is our "Hello World" mapfile > NAME "Hello_World" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > WEB > TEMPLATE "/ms4w/apps/vidu/htdocs/hello.html" > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "Hello World" > END # end feature > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > Here is my sample hello.html file: > > MapServer Hello World > >
> > > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 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 dmorissette at mapgears.com Wed Nov 12 05:19:50 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 12 Nov 2008 08:19:50 -0500 Subject: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? In-Reply-To: <491ACC75.8060707@nsidc.org> References: <491A2138.8090609@nsidc.org> <000601c94478$78cb3f40$6a61bdc0$@com> <491ACC75.8060707@nsidc.org> Message-ID: <491AD7F6.6010404@mapgears.com> John Maurer wrote: > > On further investigation, I've discovered that I must specify a map file > parameter as so in an HTTP GET request: > > map_scalebar=size+width+height+intervals+value > > But alternatively, I must use a different method for specifying these > map file parameters in an HTTP POST request: > > map_scalebar_size=width+height > map_scalebar_intervals=value > Are you sure that map.scalebar=size+width+height+intervals+value doesn't work for both GET and POST? Are you really pointing to the same copy of mapserver in both cases? What errors do you get when you use that? That's really what you should be using for 5.0, if that doesn't work then there is a bug and we'd need a ticket with a reproduceable test case to look into it. More examples are available in the 5.0 migration guide at http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT Daniel -- Daniel Morissette http://www.mapgears.com/ From daniel.degasperi at r3-gis.com Wed Nov 12 07:25:00 2008 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Wed, 12 Nov 2008 16:25:00 +0100 Subject: [mapserver-users] PHP/MapScript - Export SLD Message-ID: <491AF54C.4010803@r3-gis.com> Hello, I would like to export a mapfile to sld using the following PHP/MapScript. function ms_create_sld($map) { for($i=0;$i<$map->numlayers;$i++) { // - get Layer $layer = $map->getLayer($i); // generate the sld for that layer $SLD = $layer->generateSLD(); // save sld to a file $fp = fopen("sld/merano/".$layer->name."-sld.xml", "w+"); fputs($fp, $SLD); fclose($fp); } } Unfortunately it seems that OUTLINECOLOR is not exported, see following mapfile-fragment. It seems that this happens only with POINT Layers. I'm using MapServer 5.0.3 on Centos5. Is there something I am doing wrong? Regards Daniel LAYER NAME "tree" GROUP "basic_map" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=foo password=foo dbname=foo host=foo" DATA "the_geom FROM tree.tree_view USING UNIQUE tr_id USING SRID 32632" TYPE POINT DUMP TRUE ## REQUIRED for WFS MINSCALE 0 ## MAXSCALE 50000 FILTER "tr_date_end >= now() or tr_date_end is null" PROJECTION "init=epsg:32632" ##required per WFS END HEADER "/data/sites/wms/templates/header.html" TEMPLATE "/data/sites/wms/templates/test.html" FOOTER "/data/sites/wms/templates/footer.html" CLASS NAME "IT:Pianta|DE:Pflanze" SYMBOL 'circle' COLOR 0 200 0 * OUTLINECOLOR 0 100 0 # THIS IS NOT EXPORTED TO SLD* SIZE 5 END METADATA "DESCRIPTION" "IT:Pianta|DE:Baum" "WMS_SRS" "EPSG:32632" "WMS_TITLE" "tree_pg" "wms_feature_info_mime_type" "text/html" "wfs_title" "tree" ## REQUIRED "gml_featureid" "ID" ## REQUIRED "gml_include_items" "tr_id,,tr_code,,tr_date_start,tr_diameter_trunk" ## Optional (serves all attributes for layer) "wms_sld_url" "http://192.168.0.18/wms/sld/merano/tree.sld" END #METADATA END #LAYER -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tree-sld.xml Type: text/xml Size: 867 bytes Desc: not available URL: From jmckenna at gatewaygeomatics.com Wed Nov 12 07:29:28 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 12 Nov 2008 10:29:28 -0500 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1) In-Reply-To: <453056.21371.qm@web57108.mail.re3.yahoo.com> References: <453056.21371.qm@web57108.mail.re3.yahoo.com> Message-ID: <491AF658.1000603@gatewaygeomatics.com> le nho luu wrote: > Hello everyone, > > I'm new, and am currently having trouble figuring out what's wrong with my .map files. I've checked all the lines in my .map files for missing parenthesees. I'm getting this error when I try to click the button to load both test map files: > > loadWeb(): Unknown identifier. Parsing error near (/ms4w/tmp/ms_tmp):(line 1) > > Is there something wrong with my environment? Are there differences in reading code in version 5.0.0. I am using Windows XP, Mapserver 5.0.0, Apache, and PHP 5.2.4. > Any help is appreciated! > Here is my sample hello.map file: > # This is our "Hello World" mapfile > NAME "Hello_World" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > WEB > TEMPLATE "/ms4w/apps/vidu/htdocs/hello.html" > IMAGEPATH > "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.0 0.0 END > TEXT "Hello World" > END # end feature > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > Here is my sample hello.html file: > > MapServer Hello World > >
> > > > > > > > > Yes there are difference with 5.0. In fact I recommend that you always search the archives of this list before posting, as this is a common problem: http://www.nabble.com/msLoadMap()-Unable-to-access-file-td17262195.html#a17286109 (see my response in that thread). thank you. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Wed Nov 12 07:34:42 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 12 Nov 2008 10:34:42 -0500 Subject: [mapserver-users] ms4w with MapServer Demo... In-Reply-To: <1226443262232-1487301.post@n2.nabble.com> References: <1226443262232-1487301.post@n2.nabble.com> Message-ID: <491AF792.4010906@gatewaygeomatics.com> tuckeratwork wrote: > I've really tried to figure it out. I've searched the forum and I've only > found one other person who had the exact same problem that I'm having - and > no one ever responded to his posting. > > I've installed ms4w. It worked fine. As background, I'm barely familiar > with Apache. I then downloaded the "MapServer Demo" which looks like a set > of tutorial datasets based around something called "MapServer Itasca > Application" - this is all from the MapServer New Users document. I'm now > directed to place the "workshop" folder "someplace in your web tree." Then > you're supposed to edit index.html and view it in a local browser window. > > I put the workshop folder into the Apache/htdocs directory because I believe > that puts it at the root of my localhost server. And in fact, when I load > http://localhost/workshop/index.html, the html file gets loaded. The > problem is that I can't seem to figure out how to edit the html file to have > it point to the proper directories for the rest of the MapServer > configuration. > > The things that need to be edited in the index.html file are: > > > // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP > var snippet = "IMAGEPATH '/usr/local/www/docs_maps/tmp/'"; > snippet += " IMAGEURL '/tmp/'"; > > and > > >
onSubmit="configure()"> > > and > > > value="/usr/local/www/docs_maps/mapserver_demos/workshop-5.0/itasca.map"> > > value="/mapserver_demos/workshop-5.0"> > > > I've made scores of edits to those three sections. This is how I think they > really should be: > > // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP > var snippet = "IMAGEPATH '/workshop/tmp/'"; > snippet += " IMAGEURL '/tmp/'"; > > and > > > onSubmit="configure()"> > > and > > > > > > > > Launching the index.html file produces: > > mLoadMap(): Unable to access file. (/workshop/itasca.map) > > The file "htdocs/workshop/itasca.map" does exist but it obviously isn't > going through the Apache path to get there. > > What am I doing wrong? This is terribly embarrassing... > > The MapServer Itasca demo application is available as an add-on package for MS4W and can be downloaded at the same location: http://www.maptools.org/ms4w/index.phtml?page=downloads.html (no configuration needed) Also, be aware that the MS4W mailing list exists for configuration questions like yours (subscribe at: http://www.maptools.org/ms4w/index.phtml?page=mailinglist.html) -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From daniel.degasperi at r3-gis.com Wed Nov 12 07:35:59 2008 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Wed, 12 Nov 2008 16:35:59 +0100 Subject: [mapserver-users] SLD not rendered correctly Message-ID: <491AF7DF.2030905@r3-gis.com> Hello, the attached SLD should render a point layer with an outlinecolor (see stroke), unfortunately the stroke-color seems to overwrite the fill color. Images are attached. withoutsld.png would be the expected result, withsld.png is the actual result. Can anybody help me? I'm using MapServer 5.0.3 on Centos5 and the render client is OpenLayers. These tickets could be related: * http://trac.osgeo.org/mapserver/ticket/1887 * http://trac.osgeo.org/mapserver/ticket/2548 Regards, Daniel -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tree-sld.xml Type: text/xml Size: 867 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: withoutsld.png Type: image/png Size: 1665 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: withsld.png Type: image/png Size: 1474 bytes Desc: not available URL: From bfraser at geoanalytic.com Wed Nov 12 07:44:46 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 12 Nov 2008 08:44:46 -0700 Subject: [mapserver-users] ms4w with MapServer Demo... In-Reply-To: <1226443262232-1487301.post@n2.nabble.com> References: <1226443262232-1487301.post@n2.nabble.com> Message-ID: <491AF9EE.8020201@geoanalytic.com> tuckeratwork wrote: > I've made scores of edits to those three sections. This is how I think they > really should be: > > // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP > var snippet = "IMAGEPATH '/workshop/tmp/'"; > snippet += " IMAGEURL '/tmp/'"; > > and > > > onSubmit="configure()"> > > and > > > > > > > > Launching the index.html file produces: > > mLoadMap(): Unable to access file. (/workshop/itasca.map) > > The file "htdocs/workshop/itasca.map" does exist but it obviously isn't > going through the Apache path to get there. > > What am I doing wrong? This is terribly embarrassing... No need to be embarassed; this is one of the most difficult things to do with Mapserver (the other is coordinate systems and EXTENT). The Itasca Workshop demo is set up for Linux, so the paths are not very typical for a Windows installation. And some of the variables are relative to the Web Server's Document Root and others are relative to the Windows file system Root. And for MS4W, some paths are "aliased" in Apache's hppd.conf file! Here are some Windows-style values (I'm doing this from memory, so some tweaking may be required) appropriate for an MS4W install: IMAGEPATH 'C:\ms4w\tmp\ms_tmp\' - relative to file system root - forward or back slashes ok; drive letters ok (but not "mapped" shared drives) IMAGEURL '/ms_tmp/' - relative to Apache document root (C:\ms4w\Apache\htdocs) - for MS4W, this is aliased in Apache's hppd.conf file map "C:\ms4w\Apache\htdocs\workshop\itasca.map" - relative to file system root program "/cgi-bin/mapserv.exe" - relative to Apache document root - for MS4W, this is aliased in Apache's hppd.conf file root "/workshop" - I'm not sure about this one, my guess is it is relative to Apache document root And as Jeff M. points out, there are demos available on the MS4W site that are pre-configured to work painlessly with MS4W. Good luck! Brent Fraser From thomas.bonfort at gmail.com Wed Nov 12 07:46:15 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 12 Nov 2008 16:46:15 +0100 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: <491A93D6.3040801@romtelecom.ro> References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> <49181E82.9000804@romtelecom.ro> <491A93D6.3040801@romtelecom.ro> Message-ID: Hi, > Case 3: displaying both arrows on the same element: > CLASS > NAME "Right" > EXPRESSION /^FO040314$/ > STYLE > SYMBOL right > SIZE 24 > COLOR 51 102 0 > END > END > CLASS > NAME "Left" > EXPRESSION /^FO040314$/ > STYLE > SYMBOL left > SIZE 24 > COLOR 102 51 0 > END > END > > How can I display both arrows on the same object (or do they display, but > they overlap completely?) only ONE class is drawn for each feature, the first one in the rder of the mapfile to meet the expression and scale tests. so your second class is never rendered in this case. CLASS NAME "Rightand left" EXPRESSION /^FO040314$/ STYLE SYMBOL right SIZE 24 COLOR 51 102 0 END STYLE SYMBOL left SIZE 24 COLOR 102 51 0 END END cheers, thomas From maurerj at nsidc.org Wed Nov 12 07:46:50 2008 From: maurerj at nsidc.org (John Maurer) Date: Wed, 12 Nov 2008 15:46:50 +0000 Subject: [mapserver-users] Re: How to set SCALEBAR size and intervals in MapServer CGI >5.0? In-Reply-To: <491A2138.8090609@nsidc.org> References: <491A2138.8090609@nsidc.org> Message-ID: <491AFA6A.7040100@nsidc.org> Dear MapServer Users, Please disregard this inquiry. I since found the problem in my CGI file. I was using MapServer 5.2.0 in one place but accidentally still calling MapServer 4.99 in another, thus causing the discrepancy in how I needed to reference parameters in my map file. Still, though, I wonder why MapServer >5.0 didn't retain the ability to reference parameters in a hierarchy like "map_scalebar_size" since now I have to go back and change all of these references in my code to "map_scalebar=size+value"?? Unfortunately, this change makes things so they are not backwards compatible. Cheers, John John Maurer wrote: > Dear MapServer Users, > Prior to MapServer 5.0, I could set the map scalebar size and > intervals using CGI variables named "map_scalebar_size" and > "map_scalebar_intervals". After upgrading to 5.2.0, however, these > variables are no longer recognized; I get an error saying > "loadScalebar(): Unknown identifier". Is it true that we can no longer > reference map settings in this fashion? When I change these variables > to "map_scalebar=size+value+intervals+value" it works, but this no > longer fills in my template variables [map_scalebar_size] and > [map_scalebar_intervals]. If I try using a template variable with > [map_scalebar] instead, the value (e.g. > "size+width+height+intervals+value") doesn't seem to be interpreted by > MapServer since the scalebar settings never get subsequently modified. > What am I doing wrong? Thanks for any insights! > Cheers, > -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From James.Leveille at mtq.gouv.qc.ca Wed Nov 12 07:53:26 2008 From: James.Leveille at mtq.gouv.qc.ca (=?ISO-8859-15?Q?L=E9veill=E9=2C_James?=) Date: Wed, 12 Nov 2008 10:53:26 -0500 Subject: [mapserver-users] SLD not rendered correctly In-Reply-To: <491AF7DF.2030905@r3-gis.com> Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E063A32AD@SINFRA0-EXC003.MTQ.MIN.INTRA> Hi Daniel, I'm no expert in SLD, but have you tried using 2 PointSymbolizer ? That's what I'm doing (with lines) and it works great ... center-line #000000 7.0 center-line #009432 5.0 ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Daniel Degasperi Envoy? : 12 novembre 2008 10:36 ? : mapserver-users at lists.osgeo.org Objet : [mapserver-users] SLD not rendered correctly Hello, the attached SLD should render a point layer with an outlinecolor (see stroke), unfortunately the stroke-color seems to overwrite the fill color. Images are attached. withoutsld.png would be the expected result, withsld.png is the actual result. Can anybody help me? I'm using MapServer 5.0.3 on Centos5 and the render client is OpenLayers. These tickets could be related: * http://trac.osgeo.org/mapserver/ticket/1887 * http://trac.osgeo.org/mapserver/ticket/2548 Regards, Daniel -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.degasperi at r3-gis.com Wed Nov 12 09:08:11 2008 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Wed, 12 Nov 2008 18:08:11 +0100 Subject: [mapserver-users] SLD not rendered correctly In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E063A32AD@SINFRA0-EXC003.MTQ.MIN.INTRA> References: <2F86ED212F3E164EB9FBB2E68C67858E063A32AD@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: <491B0D7B.1050403@r3-gis.com> Hi James, thx for your fast answer. I tried following piece of SLD, unfortunately the second PointSymbolizer overwrite the first one. tree IT:Pianta|DE:Pflanze circle #00c800 5 circle #006400 2 L?veill? schrieb: > Hi Daniel, > > I'm no expert in SLD, but have you tried using 2 PointSymbolizer ? > > That's what I'm doing (with lines) and it works great ... > > > > > > center-line > > > name="stroke">#000000 > name="stroke-width">7.0 > > > > > center-line > > > name="stroke">#009432 > name="stroke-width">5.0 > > > > > > > > > ______________________________________________________ > > *JAMES L?VEILL? > *Service des syst?mes de Mission > Direction des technologies de l'information > Minist?re des Transports du Qu?bec > > 5833, boul. Pierre-Bertrand, 2i?me ?tage > Qu?bec (Qu?bec) G2K 1K7 > T?l?phone: (418) 380-2005 poste 227 > T?l?copieur: (418) 644-6653 > james.leveille at mtq.gouv.qc.ca > > > > -----Message d'origine----- > *De :* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *De la part de* > Daniel Degasperi > *Envoy? :* 12 novembre 2008 10:36 > *? :* mapserver-users at lists.osgeo.org > *Objet :* [mapserver-users] SLD not rendered correctly > > Hello, > > the attached SLD should render a point layer with an outlinecolor > (see stroke), unfortunately the stroke-color seems to overwrite > the fill color. > Images are attached. withoutsld.png would be the expected result, > withsld.png is the actual result. > Can anybody help me? > > I'm using MapServer 5.0.3 on Centos5 and the render client is > OpenLayers. > > These tickets could be related: > > * http://trac.osgeo.org/mapserver/ticket/1887 > * http://trac.osgeo.org/mapserver/ticket/2548 > > > Regards, Daniel > > -- > Daniel Degasperi > Software Developer > daniel.degasperi at r3-gis.com > > --------------------------- > R3 GIS Srl > Via Johann Kravogl 2 > I-39010 Merano - Sinigo (BZ) > Tel. +39 0473 494949 > Fax. +39 0473 069902 > Web http://www.r3-gis.com > ----------------------------- > > -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From silandre at gmail.com Wed Nov 12 09:19:16 2008 From: silandre at gmail.com (Andre Silva) Date: Wed, 12 Nov 2008 17:19:16 +0000 Subject: [mapserver-users] RESOLUTION problem Message-ID: Hello all, I'm developing an aplicattion based on mapserver in which I have a text box to set a numerical scale. This numerical scale ($_scale = 20000) is used to render the image via the following mapscript: $_scale = 20000; $center_point=ms_newPointObj(); $center_point->setXY($map->width/2, $map->height/2); $map->zoomscale($_scale,$center_point, $map->width, $map->height, $map->extent); However the image retrieved doesn't have the correct dimensions. The graphical scale is correct, but 1 cm on the image doesn't corresponde to 20000 (in this case) on the ground. I know that the RESOLUTION parameter is used to perform scale computations, so what RESOLUTION should I use on the mapfile? RESOLUTION depends on monitor size and monitor resolution, right? How can the server/browser know the monitor size/resolution? Best regards, Andr? Silva -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Wed Nov 12 10:14:08 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 12 Nov 2008 13:14:08 -0500 Subject: [mapserver-users] SLD not rendered correctly In-Reply-To: <491AF7DF.2030905@r3-gis.com> References: <491AF7DF.2030905@r3-gis.com> Message-ID: <491B1CF0.4010804@dmsolutions.ca> Daniel, I could confirm that http://trac.osgeo.org/mapserver/ticket/2548 was still an issue in the current mapserver code. I have committed the fix in the trunk and updated the bug. Please give it a try and let me know. I will also possibility fix it in the 5.2.x branch so it will be available for the upcoming release. With this fix, I was able to use your example SLD and have the expected result. Note that I did not so any testing with the 5.0.x release Best Regards, Daniel Degasperi wrote: > Hello, > > the attached SLD should render a point layer with an outlinecolor (see > stroke), unfortunately the stroke-color seems to overwrite the fill color. > Images are attached. withoutsld.png would be the expected result, > withsld.png is the actual result. > Can anybody help me? > > I'm using MapServer 5.0.3 on Centos5 and the render client is OpenLayers. > > These tickets could be related: > > * http://trac.osgeo.org/mapserver/ticket/1887 > * http://trac.osgeo.org/mapserver/ticket/2548 > > > Regards, Daniel > > -- > Daniel Degasperi > Software Developer > daniel.degasperi at r3-gis.com > > --------------------------- > R3 GIS Srl > Via Johann Kravogl 2 > I-39010 Merano - Sinigo (BZ) > Tel. +39 0473 494949 > Fax. +39 0473 069902 > Web http://www.r3-gis.com > ----------------------------- > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From cemre.yilmaz at gmail.com Wed Nov 12 11:09:31 2008 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Wed, 12 Nov 2008 21:09:31 +0200 Subject: [mapserver-users] ms4w with MapServer Demo... In-Reply-To: <491AF9EE.8020201@geoanalytic.com> References: <1226443262232-1487301.post@n2.nabble.com> <491AF9EE.8020201@geoanalytic.com> Message-ID: <28babe2b0811121109u65c9708v2f34903ce723d551@mail.gmail.com> Hello all; I have the same problem with MS4W. I have set up the MS4W succesfully. But I can't set up the demo file. I can't understand which files should be edited and where to store these files on apache server and also map server. I am looking forward to solve this problem. Unfortunately I can't find the sections needed to be edited in the demo folder in index.html file. I am also very upset about this problem. My aim is to understand how to use map server and develop my own applications. Kind regards. Cemre Y. On Wed, Nov 12, 2008 at 5:44 PM, Brent Fraser wrote: > > > tuckeratwork wrote: > > I've made scores of edits to those three sections. This is how I think >> they >> really should be: >> >> // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP >> var snippet = "IMAGEPATH '/workshop/tmp/'"; >> snippet += " IMAGEURL '/tmp/'"; >> >> and >> >> >> > onSubmit="configure()"> >> >> and >> >> >> >> >> >> >> >> Launching the index.html file produces: >> >> mLoadMap(): Unable to access file. (/workshop/itasca.map) >> >> The file "htdocs/workshop/itasca.map" does exist but it obviously isn't >> going through the Apache path to get there. >> >> What am I doing wrong? This is terribly embarrassing... >> > > > No need to be embarassed; this is one of the most difficult things to do > with Mapserver (the other is coordinate systems and EXTENT). The Itasca > Workshop demo is set up for Linux, so the paths are not very typical for a > Windows installation. And some of the variables are relative to the Web > Server's Document Root and others are relative to the Windows file system > Root. And for MS4W, some paths are "aliased" in Apache's hppd.conf file! > > Here are some Windows-style values (I'm doing this from memory, so some > tweaking may be required) appropriate for an MS4W install: > > IMAGEPATH 'C:\ms4w\tmp\ms_tmp\' > - relative to file system root > - forward or back slashes ok; drive letters ok (but not "mapped" > shared drives) > > IMAGEURL '/ms_tmp/' > - relative to Apache document root (C:\ms4w\Apache\htdocs) > - for MS4W, this is aliased in Apache's hppd.conf file > > map "C:\ms4w\Apache\htdocs\workshop\itasca.map" > - relative to file system root > > program "/cgi-bin/mapserv.exe" > - relative to Apache document root - for MS4W, this is > aliased in Apache's hppd.conf file > > root "/workshop" > - I'm not sure about this one, my guess is it is relative to Apache > document root > > And as Jeff M. points out, there are demos available on the MS4W site that > are pre-configured to work painlessly with MS4W. > Good luck! > > 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 Bob.Basques at ci.stpaul.mn.us Wed Nov 12 11:54:41 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 12 Nov 2008 13:54:41 -0600 Subject: [mapserver-users] GeoMoose 1.6.1 Released Message-ID: <491AE021020000A80000EB21@jeckle> The Moose herd is pleased to announce that GeoMoose 1.6.1 has been officially released. * Release History * Documentation * Download (GeoMoose 1.6.1 with MS4W) * Download (GeoMoose 1.6.1 [SourceForge]) The GeoMOOSE project is client-side code that uses a variety of JavaScript, XML, and DHTML technologies to interface with other web-clients. The primary target of GeoMoose is for integration with the UofM MapServer, but it is not dependent upon it for operation. Design objectives include: * Code must be developed in an Services Oriented Architecture. * Configureability for users. * Easy maintenance for data owners. * A client interface for MapServer, but designed to be open to other server engines. * Targeted use cases for local governments. For more information about GeoMoose, go to: * http://www.geomoose.org/moose/ ---------------------------------------------------------- Release Notes: 2008-11-02 - GeoMOOSE 1.6.1 MS4W Package Created Bug Fixes Fixed IE toolbar bug Fixed bug with popup code Fixed demos so identify tool works Fixed county demo so popups work on fire stations layer New Features: Added an option to display a point marker on the map. JavaScript function is map.addMarker Added graphics contributed from Adam T. at Benton County, MN. They can be found in the art folder. 2008-09-01 - GeoMOOSE 1.6 MS4W Package Created Bug Fixes Hide/show reference map bug fixed Identify service honors layers visibility status Print service honors selected feature when using the zoomto script Print service bug (ok button was not displayed) Fixed line drawing bugs with buffer tool Fixed bug with the menu in FF3 New Features: Option to display only the map mouseover x,y coordinates in footer Option to hide legends by default and toggle them on/off (performance enhancement) Treeview reformatting (removed icon in front of layer name and decrease indentation Ability to put multiple text search boxes in div (TOC tab) Beta version of graphical markup tools(point, line, polygon) (known bug: polygon shifts when rendered as an image while zooming in/out) Added a enhanced length and area measure tool funded by Rock County, MN Added a feature report PHP service. Script is located in php/printreport.php From naci0002 at umn.edu Wed Nov 12 12:10:42 2008 From: naci0002 at umn.edu (Perry Nacionales) Date: Wed, 12 Nov 2008 14:10:42 -0600 Subject: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? In-Reply-To: <491A2138.8090609@nsidc.org> References: <491A2138.8090609@nsidc.org> Message-ID: <491B3842.3030701@umn.edu> John, This is what you're looking for... http://mapserver.gis.umn.edu/development/rfc/ms-rfc-31/ Good luck! -Perry John Maurer wrote: > Dear MapServer Users, > Prior to MapServer 5.0, I could set the map scalebar size and > intervals using CGI variables named "map_scalebar_size" and > "map_scalebar_intervals". After upgrading to 5.2.0, however, these > variables are no longer recognized; I get an error saying > "loadScalebar(): Unknown identifier". Is it true that we can no longer > reference map settings in this fashion? When I change these variables > to "map_scalebar=size+value+intervals+value" it works, but this no > longer fills in my template variables [map_scalebar_size] and > [map_scalebar_intervals]. If I try using a template variable with > [map_scalebar] instead, the value (e.g. > "size+width+height+intervals+value") doesn't seem to be interpreted by > MapServer since the scalebar settings never get subsequently modified. > What am I doing wrong? Thanks for any insights! > Cheers, > From Richard.Polk at state.tn.us Wed Nov 12 14:35:39 2008 From: Richard.Polk at state.tn.us (Richard Polk) Date: Wed, 12 Nov 2008 16:35:39 -0600 Subject: [mapserver-users] dBox - Hide mapfile source Message-ID: <491B05DB.819C.00CA.0@state.tn.us> I am looking for some help in how to hide the map file source in a dBox application. My environment is IIS 6 on Win Server 2003 with Python mapscript using Mapserver 5.0.2. I am accessing my dBox source files from a network file server. In my application html, my config.mapfile variable is set something like this: config.mapfile = '//someserver/somehiddenshare$/webapps/RockMS.map'; When a user views the web page source code in the browser, the file server name and path are exposed which I do not want. I have seen references to CGI wrappers but can't see how they apply to dBox applications. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulp575 at dog-walker.us Wed Nov 12 17:05:14 2008 From: paulp575 at dog-walker.us (Paul Yelk) Date: Wed, 12 Nov 2008 17:05:14 -0800 Subject: [mapserver-users] ms4w with MapServer Demo... In-Reply-To: <28babe2b0811121109u65c9708v2f34903ce723d551@mail.gmail.com> References: <1226443262232-1487301.post@n2.nabble.com> <491AF9EE.8020201@geoanalytic.com> <28babe2b0811121109u65c9708v2f34903ce723d551@mail.gmail.com> Message-ID: <491B7D4A.6050600@dog-walker.us> An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Nov 12 19:17:43 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 12 Nov 2008 21:17:43 -0600 Subject: [mapserver-users] dBox - Hide mapfile source Message-ID: <491B47F70200008F0001D743@co5.dnr.state.mn.us> Easiest way is to use an environment variable in your web server. In Apache you just do: SetEnv RockMSMap //someserver/somehiddenshare$/webapps/RockMS.map and then in javascript: config.mapfile = 'RockMSMap' Not sure how you'd do that with IIS but I imagine it's possible. Steve >>> "Richard Polk" 11/12/08 4:52 PM >>> I am looking for some help in how to hide the map file source in a dBox application. My environment is IIS 6 on Win Server 2003 with Python mapscript using Mapserver 5.0.2. I am accessing my dBox source files from a network file server. In my application html, my config.mapfile variable is set something like this: config.mapfile = '//someserver/somehiddenshare$/webapps/RockMS.map'; When a user views the web page source code in the browser, the file server name and path are exposed which I do not want. I have seen references to CGI wrappers but can't see how they apply to dBox applications. Thanks From c.pelliconi at sis-ter.it Wed Nov 5 02:54:33 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Wed, 05 Nov 2008 11:54:33 +0100 Subject: [mapserver-users] mapserver nabble In-Reply-To: <412a97fc0811050227j751238fewa4771911f6a85100@mail.gmail.com> References: <412a97fc0811050227j751238fewa4771911f6a85100@mail.gmail.com> Message-ID: <49117B69.2030008@sis-ter.it> An HTML attachment was scrubbed... URL: From adrian_gh.popa at romtelecom.ro Thu Nov 13 00:40:32 2008 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Thu, 13 Nov 2008 10:40:32 +0200 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> <49181E82.9000804@romtelecom.ro> <491A93D6.3040801@romtelecom.ro> Message-ID: <491BE800.8090002@romtelecom.ro> Thanks for the reply Thomas, I will try a workaround by creating a third symbol with both arrows on top of it >< Thanks, thomas bonfort wrote: > Hi, > > >> Case 3: displaying both arrows on the same element: >> CLASS >> NAME "Right" >> EXPRESSION /^FO040314$/ >> STYLE >> SYMBOL right >> SIZE 24 >> COLOR 51 102 0 >> END >> END >> CLASS >> NAME "Left" >> EXPRESSION /^FO040314$/ >> STYLE >> SYMBOL left >> SIZE 24 >> COLOR 102 51 0 >> END >> END >> >> How can I display both arrows on the same object (or do they display, but >> they overlap completely?) >> > > only ONE class is drawn for each feature, the first one in the rder of > the mapfile to meet the expression and scale tests. so your second > class is never rendered in this case. > > CLASS > NAME "Rightand left" > EXPRESSION /^FO040314$/ > STYLE > SYMBOL right > SIZE 24 > COLOR 51 102 0 > END > STYLE > SYMBOL left > SIZE 24 > COLOR 102 51 0 > END > END > > > cheers, > thomas > > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Nov 13 00:44:59 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 13 Nov 2008 09:44:59 +0100 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: <491BE800.8090002@romtelecom.ro> References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> <49181E82.9000804@romtelecom.ro> <491A93D6.3040801@romtelecom.ro> <491BE800.8090002@romtelecom.ro> Message-ID: you don't have to... you can use the multiple style blocks as I showed in my last email.... althoug you will have to play with offsets to avoid the symbols overlapping thomas On Thu, Nov 13, 2008 at 09:40, Adrian Popa wrote: > Thanks for the reply Thomas, > > I will try a workaround by creating a third symbol with both arrows on top > of it >< > > Thanks, > > thomas bonfort wrote: > > Hi, > > > > Case 3: displaying both arrows on the same element: > CLASS > NAME "Right" > EXPRESSION /^FO040314$/ > STYLE > SYMBOL right > SIZE 24 > COLOR 51 102 0 > END > END > CLASS > NAME "Left" > EXPRESSION /^FO040314$/ > STYLE > SYMBOL left > SIZE 24 > COLOR 102 51 0 > END > END > > How can I display both arrows on the same object (or do they display, but > they overlap completely?) > > > only ONE class is drawn for each feature, the first one in the rder of > the mapfile to meet the expression and scale tests. so your second > class is never rendered in this case. > > CLASS > NAME "Rightand left" > EXPRESSION /^FO040314$/ > STYLE > SYMBOL right > SIZE 24 > COLOR 51 102 0 > END > STYLE > SYMBOL left > SIZE 24 > COLOR 102 51 0 > END > END > > > cheers, > thomas > > > > -- > Adrian Popa > > Network Engineer > Romtelecom S.A. > Divizia Centrul National de Operare Retea > Departament Transport IP & Metro > Compartiment IP Core > > From p_kruschitz at hotmail.com Thu Nov 13 01:06:36 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Thu, 13 Nov 2008 01:06:36 -0800 (PST) Subject: [MAPSERVER-USERS] Setting offset on a symbol within STYLE Message-ID: <20477081.post@talk.nabble.com> Hi, I'm trying to move my icon, which is a small flag, to fit correctly on my map. I'm reading the geometry from a PostGIS table. Displaying the icon works, except for the offset, which doesn't work at all. MS sytematically puts the icon on the point (i.e. the point is in the "middle" of my icon). I tried all possible values for OFFSET, negative/positive, but it just won't move. I'm working on Mapserver 5.0.0. Did anyone know why this happens? Maybe I'm doing something wrong? I read the documentation and found a thread in the forum dealing with a similar problem, but it didn't help me much. http://www.nabble.com/Symbol-Origin-to18715006.html#a18734570 Here's an example taken from my mapfile (the icon is 22*31px): CLASS EXPRESSION ([idstatus] eq 2) SIZE 24 STYLE SYMBOL 'etc/icons/pos/ti_icon_tourende_pos.gif' OFFSET 11 15 END # style END #class Thanks, Philippe -- View this message in context: http://www.nabble.com/Setting-offset-on-a-symbol-within-STYLE-tp20477081p20477081.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adrian_gh.popa at romtelecom.ro Thu Nov 13 02:12:03 2008 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Thu, 13 Nov 2008 12:12:03 +0200 Subject: [mapserver-users] Adding symbols on top of polyline elements In-Reply-To: References: <49180420.5070205@romtelecom.ro> <4918147F.5040303@romtelecom.ro> <49181E82.9000804@romtelecom.ro> <491A93D6.3040801@romtelecom.ro> <491BE800.8090002@romtelecom.ro> Message-ID: <491BFD73.6060101@romtelecom.ro> I looked again over your example, and now I understand the difference from what I tried. Thanks! thomas bonfort wrote: > you don't have to... you can use the multiple style blocks as I showed > in my last email.... > althoug you will have to play with offsets to avoid the symbols overlapping > > thomas > > On Thu, Nov 13, 2008 at 09:40, Adrian Popa wrote: > >> Thanks for the reply Thomas, >> >> I will try a workaround by creating a third symbol with both arrows on top >> of it >< >> >> Thanks, >> >> thomas bonfort wrote: >> >> Hi, >> >> >> >> Case 3: displaying both arrows on the same element: >> CLASS >> NAME "Right" >> EXPRESSION /^FO040314$/ >> STYLE >> SYMBOL right >> SIZE 24 >> COLOR 51 102 0 >> END >> END >> CLASS >> NAME "Left" >> EXPRESSION /^FO040314$/ >> STYLE >> SYMBOL left >> SIZE 24 >> COLOR 102 51 0 >> END >> END >> >> How can I display both arrows on the same object (or do they display, but >> they overlap completely?) >> >> >> only ONE class is drawn for each feature, the first one in the rder of >> the mapfile to meet the expression and scale tests. so your second >> class is never rendered in this case. >> >> CLASS >> NAME "Rightand left" >> EXPRESSION /^FO040314$/ >> STYLE >> SYMBOL right >> SIZE 24 >> COLOR 51 102 0 >> END >> STYLE >> SYMBOL left >> SIZE 24 >> COLOR 102 51 0 >> END >> END >> >> >> cheers, >> thomas >> >> >> >> -- >> Adrian Popa >> >> Network Engineer >> Romtelecom S.A. >> Divizia Centrul National de Operare Retea >> Departament Transport IP & Metro >> Compartiment IP Core >> >> >> > > -- Adrian Popa Network Engineer Romtelecom S.A. Divizia Centrul National de Operare Retea Departament Transport IP & Metro Compartiment IP Core -------------- next part -------------- An HTML attachment was scrubbed... URL: From cbluebaum at gmx.de Thu Nov 13 05:56:46 2008 From: cbluebaum at gmx.de (=?iso-8859-1?Q?=22Constanze_Bl=FCbaum=22?=) Date: Thu, 13 Nov 2008 14:56:46 +0100 Subject: [mapserver-users] White screen after editing mapfile Message-ID: <20081113135646.53490@gmx.net> Hello list, I?m very new to mapserver and all his tricks. I run a mapserver together with the pmapper software on a virtual server (1&1 in Germany) in Linux. For testing I load one shapefile into the map and everything runs fine. But when I try to edit the mapfile to show a second shapefile my screen is white and nothing happens. I copied the running file to the server and everything runs fine. To test, if my edits caused the crash, I deleted to mapfile from server and copied it to the server again. Even the file is the same as before (same contents, same savingdate, ...) the screen remains white and the mapserver does nothing. It?s a mystery. Has anyone the experience? Or can point me a way to solve this problem? Any suggestions are helpful. Thanks in advance Constanze -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a From rwburgholzer at deq.virginia.gov Thu Nov 13 06:22:37 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Thu, 13 Nov 2008 09:22:37 -0500 Subject: [mapserver-users] White screen after editing mapfile Message-ID: <6C097DA58429B743A67070F98BE73A3703A8F1A3@deqex01.deq.local> Gonna have to post the mapfile I think, otherwise it is hard to see what you are doing wrong. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of "Constanze Bl?baum" Sent: Thursday, November 13, 2008 8:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] White screen after editing mapfile Hello list, I?m very new to mapserver and all his tricks. I run a mapserver together with the pmapper software on a virtual server (1&1 in Germany) in Linux. For testing I load one shapefile into the map and everything runs fine. But when I try to edit the mapfile to show a second shapefile my screen is white and nothing happens. I copied the running file to the server and everything runs fine. To test, if my edits caused the crash, I deleted to mapfile from server and copied it to the server again. Even the file is the same as before (same contents, same savingdate, ...) the screen remains white and the mapserver does nothing. It?s a mystery. Has anyone the experience? Or can point me a way to solve this problem? Any suggestions are helpful. Thanks in advance Constanze -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Nov 13 06:45:42 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 13 Nov 2008 09:45:42 -0500 Subject: [mapserver-users] White screen after editing mapfile In-Reply-To: <20081113135646.53490@gmx.net> References: <20081113135646.53490@gmx.net> Message-ID: <491C3D96.9080509@gatewaygeomatics.com> Constanze Bl?baum wrote: > Hello list, > > I?m very new to mapserver and all his tricks. > I run a mapserver together with the pmapper software on a virtual server (1&1 in Germany) in Linux. For testing I load one shapefile into the map and everything runs fine. But when I try to edit the mapfile to show a second shapefile my screen is white and nothing happens. > I copied the running file to the server and everything runs fine. > To test, if my edits caused the crash, I deleted to mapfile from server and copied it to the server again. Even the file is the same as before (same contents, same savingdate, ...) the screen remains white and the mapserver does nothing. > It?s a mystery. > > Has anyone the experience? Or can point me a way to solve this problem? > > Any suggestions are helpful. > Thanks in advance > Constanze My thoughts: - use the MapServer commandline utility 'shp2img' to debug your mapfile (see http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) - try removing all layers but the one problem layer and then try shp2img with that tiny mapfile - make sure the EXTENT parameter matches that extents of that one layer - do some reading on the PROJECTION object, as you could be using 2 data layers in difference projections: http://mapserver.gis.umn.edu/docs/reference/mapfile/projection -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From cbluebaum at gmx.de Thu Nov 13 07:01:33 2008 From: cbluebaum at gmx.de (=?iso-8859-1?Q?=22Constanze_Bl=FCbaum=22?=) Date: Thu, 13 Nov 2008 16:01:33 +0100 Subject: [mapserver-users] White screen after editing mapfile In-Reply-To: <6C097DA58429B743A67070F98BE73A3703A8F1A3@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A3703A8F1A3@deqex01.deq.local> Message-ID: <20081113150133.270180@gmx.net> Hello, thanks for your response. I attatched the mapfile. But I don?t think somethings wrong with the mapfile. Everything runs fine, then I delete the mapfile from the server and copy the same mapfile to the server again. Everything is identical, but the mapserver crashes. Constanze -------- Original-Nachricht -------- > Datum: Thu, 13 Nov 2008 09:22:37 -0500 > Von: "Burgholzer,Robert" > An: "Constanze Bl?baum" , mapserver-users at lists.osgeo.org > Betreff: RE: [mapserver-users] White screen after editing mapfile > Gonna have to post the mapfile I think, otherwise it is hard to see what > you are doing wrong. > > Robert W. Burgholzer > Surface Water Modeler > Office of Water Supply and Planning > Virginia Department of Environmental Quality > rwburgholzer at deq.virginia.gov > 804-698-4405 > Open Source Modeling Tools: > http://sourceforge.net/projects/npsource/ > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of "Constanze Bl?baum" > Sent: Thursday, November 13, 2008 8:57 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] White screen after editing mapfile > > Hello list, > > I?m very new to mapserver and all his tricks. > I run a mapserver together with the pmapper software on a virtual server > (1&1 in Germany) in Linux. For testing I load one shapefile into the map and > everything runs fine. But when I try to edit the mapfile to show a second > shapefile my screen is white and nothing happens. > I copied the running file to the server and everything runs fine. > To test, if my edits caused the crash, I deleted to mapfile from server > and copied it to the server again. Even the file is the same as before (same > contents, same savingdate, ...) the screen remains white and the mapserver > does nothing. > It?s a mystery. > > Has anyone the experience? Or can point me a way to solve this problem? > > Any suggestions are helpful. > Thanks in advance > Constanze > -- > Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL > f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a -------------- next part -------------- A non-text attachment was scrubbed... Name: stade_boden.map Type: application/octet-stream Size: 3540 bytes Desc: not available URL: From Richard.Polk at state.tn.us Thu Nov 13 07:08:51 2008 From: Richard.Polk at state.tn.us (Richard Polk) Date: Thu, 13 Nov 2008 09:08:51 -0600 Subject: [mapserver-users] dBox - Hide mapfile source In-Reply-To: <491B47F70200008F0001D743@co5.dnr.state.mn.us> References: <491B47F70200008F0001D743@co5.dnr.state.mn.us> Message-ID: <491BEEA3.819C.00CA.0@state.tn.us> Steve, It seems to me that once Javascript interprets the variable, a user will see the value of the env variable if they view the source code in a browser. I am not sure of this though. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at deq.virginia.gov Thu Nov 13 07:18:22 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Thu, 13 Nov 2008 10:18:22 -0500 Subject: [mapserver-users] White screen after editing mapfile Message-ID: <6C097DA58429B743A67070F98BE73A370379B70B@deqex01.deq.local> I'm sorry, I got the impression from your original posting that you were having trouble when adding a second shapefile to your map, thus I assumed your problem was with adding a second LAYER, or with the second shapefile. Now, it seems as if you are suggesting that simply editing the file, and making NO changes will cause a crash? Perhaps you are running into a problem with Unix and Windows file types? Please, more info, What system did you create your "original" file on? What system are you performing your edits on? r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: "Constanze Bl?baum" [mailto:cbluebaum at gmx.de] Sent: Thursday, November 13, 2008 10:02 AM To: Burgholzer,Robert; mapserver-users at lists.osgeo.org Subject: Re: RE: [mapserver-users] White screen after editing mapfile Hello, thanks for your response. I attatched the mapfile. But I don?t think somethings wrong with the mapfile. Everything runs fine, then I delete the mapfile from the server and copy the same mapfile to the server again. Everything is identical, but the mapserver crashes. Constanze -------- Original-Nachricht -------- > Datum: Thu, 13 Nov 2008 09:22:37 -0500 > Von: "Burgholzer,Robert" > An: "Constanze Bl?baum" , mapserver-users at lists.osgeo.org > Betreff: RE: [mapserver-users] White screen after editing mapfile > Gonna have to post the mapfile I think, otherwise it is hard to see what > you are doing wrong. > > Robert W. Burgholzer > Surface Water Modeler > Office of Water Supply and Planning > Virginia Department of Environmental Quality > rwburgholzer at deq.virginia.gov > 804-698-4405 > Open Source Modeling Tools: > http://sourceforge.net/projects/npsource/ > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of "Constanze Bl?baum" > Sent: Thursday, November 13, 2008 8:57 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] White screen after editing mapfile > > Hello list, > > I?m very new to mapserver and all his tricks. > I run a mapserver together with the pmapper software on a virtual server > (1&1 in Germany) in Linux. For testing I load one shapefile into the map and > everything runs fine. But when I try to edit the mapfile to show a second > shapefile my screen is white and nothing happens. > I copied the running file to the server and everything runs fine. > To test, if my edits caused the crash, I deleted to mapfile from server > and copied it to the server again. Even the file is the same as before (same > contents, same savingdate, ...) the screen remains white and the mapserver > does nothing. > It?s a mystery. > > Has anyone the experience? Or can point me a way to solve this problem? > > Any suggestions are helpful. > Thanks in advance > Constanze > -- > Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL > f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a From cbluebaum at gmx.de Thu Nov 13 07:33:32 2008 From: cbluebaum at gmx.de (=?iso-8859-1?Q?=22Constanze_Bl=FCbaum=22?=) Date: Thu, 13 Nov 2008 16:33:32 +0100 Subject: [mapserver-users] White screen after editing mapfile In-Reply-To: <6C097DA58429B743A67070F98BE73A370379B70B@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A370379B70B@deqex01.deq.local> Message-ID: <20081113153332.270140@gmx.net> Robert, I make the hole mapserver on my local machine under windows. I tested it with a local apache server. Then I make some edits to the mapfile (e.g. imagepath) and put it on the internet server (virtual server under linux). It runs fine. I want to do my changes on the local machine and put the updates via ftp to the internet server. The mystery is, that that mapserver works fine at one moment, but without doing edits on the mapfile, just deleting and copiing again to internet server, it crashes. Could there be a link between the mapserver (or some other process or file) and the mapfile, which is cut when deleting the mapfile. I thought that, the mapfile is read new by the mapserver everytime a new map is build. Constanze -------- Original-Nachricht -------- > Datum: Thu, 13 Nov 2008 10:18:22 -0500 > Von: "Burgholzer,Robert" > An: "Constanze Bl?baum" , mapserver-users at lists.osgeo.org > Betreff: RE: RE: [mapserver-users] White screen after editing mapfile > I'm sorry, I got the impression from your original posting that you were > having trouble when adding a second shapefile to your map, thus I assumed > your problem was with adding a second LAYER, or with the second shapefile. > Now, it seems as if you are suggesting that simply editing the file, and > making NO changes will cause a crash? > > Perhaps you are running into a problem with Unix and Windows file types? > > Please, more info, > > What system did you create your "original" file on? > What system are you performing your edits on? > > r.b. > > Robert W. Burgholzer > Surface Water Modeler > Office of Water Supply and Planning > Virginia Department of Environmental Quality > rwburgholzer at deq.virginia.gov > 804-698-4405 > Open Source Modeling Tools: > http://sourceforge.net/projects/npsource/ > > -----Original Message----- > From: "Constanze Bl?baum" [mailto:cbluebaum at gmx.de] > Sent: Thursday, November 13, 2008 10:02 AM > To: Burgholzer,Robert; mapserver-users at lists.osgeo.org > Subject: Re: RE: [mapserver-users] White screen after editing mapfile > > Hello, > > thanks for your response. I attatched the mapfile. > > But I don?t think somethings wrong with the mapfile. Everything runs > fine, then I delete the mapfile from the server and copy the same mapfile to > the server again. Everything is identical, but the mapserver crashes. > > Constanze > > -------- Original-Nachricht -------- > > Datum: Thu, 13 Nov 2008 09:22:37 -0500 > > Von: "Burgholzer,Robert" > > An: "Constanze Bl?baum" , > mapserver-users at lists.osgeo.org > > Betreff: RE: [mapserver-users] White screen after editing mapfile > > > Gonna have to post the mapfile I think, otherwise it is hard to see what > > you are doing wrong. > > > > Robert W. Burgholzer > > Surface Water Modeler > > Office of Water Supply and Planning > > Virginia Department of Environmental Quality > > rwburgholzer at deq.virginia.gov > > 804-698-4405 > > Open Source Modeling Tools: > > http://sourceforge.net/projects/npsource/ > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of "Constanze > Bl?baum" > > Sent: Thursday, November 13, 2008 8:57 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] White screen after editing mapfile > > > > Hello list, > > > > I?m very new to mapserver and all his tricks. > > I run a mapserver together with the pmapper software on a virtual server > > (1&1 in Germany) in Linux. For testing I load one shapefile into the map > and > > everything runs fine. But when I try to edit the mapfile to show a > second > > shapefile my screen is white and nothing happens. > > I copied the running file to the server and everything runs fine. > > To test, if my edits caused the crash, I deleted to mapfile from server > > and copied it to the server again. Even the file is the same as before > (same > > contents, same savingdate, ...) the screen remains white and the > mapserver > > does nothing. > > It?s a mystery. > > > > Has anyone the experience? Or can point me a way to solve this problem? > > > > Any suggestions are helpful. > > Thanks in advance > > Constanze > > -- > > Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL > > f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL > f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a From boolean10001 at yahoo.com Thu Nov 13 10:20:37 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 13 Nov 2008 10:20:37 -0800 (PST) Subject: [mapserver-users] Mapserver doesn't compile for WMS/WFS client support In-Reply-To: <48D25DA7.5157.008F.0@dnr.state.mn.us> Message-ID: <715384.90036.qm@web38201.mail.mud.yahoo.com> Hi list, I'm configuring Mapserver to support WMS/WFS Server and client features, but it doesn't works. I execute the ./configure script and this is what i get : MapServer is now configured for ?-------------- Compiler Info ------------- ? C compiler:??????????????? gcc -O2 -fPIC -Wall ? C++ compiler:????????????? g++ -O2 -fPIC -Wall ? Debug:????????????????????? -DNEED_NONBLOCKING_STDERR ? Generic NINT: ? Threading support: ?-------------- Renderer Settings --------- ? zlib support:????????????? -DUSE_ZLIB ? png support: ? jpeg support: ? iconv support:???????????? -DUSE_ICONV ? AGG support: ? AGG Freetype support: ? Ming(flash) support: ? PDFLib support: ?-------------- Data Format Drivers ------- ? native tiff support: ? PostGIS support:?????????? -DUSE_POSTGIS ? Proj.4 support:??????????? -DUSE_PROJ ? EPPL7 support:???????????? -DUSE_EPPL ? ArcSDE support: ? OGR support:?????????????? -DUSE_OGR ? GDAL support:????????????? -DUSE_GDAL ? GEOS support:????????????? -DUSE_GEOS ? Oracle Spatial support: ? FastCGI support: ?-------------- OGC Services -------------- ? WMS Server:??????????????? -DUSE_WMS_SVR ? WMS Client:??????????????? -DUSE_WMS_LYR ? WFS Server:??????????????? -DUSE_WFS_SVR ? WFS Client:??????????????? -DUSE_WMS_LYR ? WCS Server: ? SOS Server: ?-------------- MapScript ----------------- ? PHP MapScript:???????????? yes Once I execute the make script and then check with ./mapserver -v, this is what i get : MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE But it doesn't shows SUPPORTS=WMS_CLIENT nor SUPPORTS=WFS_SERVER nor SUPPORT=WFS_CLIENT Does anyone knows how to solve this ? Thanks in advance IC Carlos Ruiz? --- On Thu, 9/18/08, Steve Lime wrote: From: Steve Lime Subject: Re: [mapserver-users] Mapserver (CGI/FastCGI) crashes when querying amap To: mapserver-users at lists.osgeo.org, boolean10001 at yahoo.com Date: Thursday, September 18, 2008, 1:54 PM You're going to have to be more specific what the hell you're trying to do. ;-) >>> On 9/18/2008 at 1:43 PM, in message <173639.27195.qm at web38206.mail.mud.yahoo.com>, Carlos Ruiz wrote: > Hi list, > > I have Mapserver 5.0.2 installed on Win32, when I do some queries to my map, > the response > takes so long and then a window appears saying that CGI/FastCGI crashes. Can > someone > have some idea why the hell is crashing ? > > Thanks in advance > > IC Carlos Ruiz > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Nov 13 10:15:30 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 13 Nov 2008 12:15:30 -0600 Subject: [mapserver-users] dBox - Hide mapfile source In-Reply-To: <491BEEA3.819C.00CA.0@state.tn.us> References: <491B47F70200008F0001D743@co5.dnr.state.mn.us> <491BEEA3.819C.00CA.0@state.tn.us> Message-ID: <491C19E7.5157.008F.0@dnr.state.mn.us> The web server interprets the variable, not the browser. The browser never sees the expanded value unless you want it to. Steve >>> On 11/13/2008 at 9:08 AM, in message <491BEEA3.819C.00CA.0 at state.tn.us>, "Richard Polk" wrote: > Steve, > It seems to me that once Javascript interprets the variable, a user will see > the value of the env variable if they view the source code in a browser. I > am not sure of this though. > > From Tom.Kralidis at ec.gc.ca Thu Nov 13 11:10:44 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Thu, 13 Nov 2008 14:10:44 -0500 Subject: [mapserver-users] Mapserver doesn't compile for WMS/WFS clientsupport In-Reply-To: <715384.90036.qm@web38201.mail.mud.yahoo.com> References: <48D25DA7.5157.008F.0@dnr.state.mn.us> <715384.90036.qm@web38201.mail.mud.yahoo.com> Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Carlos Ruiz > Sent: Thursday, November 13, 2008 1:21 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapserver doesn't compile for > WMS/WFS clientsupport > > Hi list, > > I'm configuring Mapserver to support WMS/WFS Server and > client features, but it doesn't works. > > I execute the ./configure script and this is what i get : > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: -DNEED_NONBLOCKING_STDERR > Generic NINT: > Threading support: > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: > AGG Freetype support: > Ming(flash) support: > PDFLib support: > > -------------- Data Format Drivers ------- > native tiff support: > PostGIS support: -DUSE_POSTGIS > Proj.4 support: -DUSE_PROJ > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > GEOS support: -DUSE_GEOS > Oracle Spatial support: > FastCGI support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: yes > > > Once I execute the make script and then check with > ./mapserver -v, this is what i get : > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > But it doesn't shows SUPPORTS=WMS_CLIENT nor > SUPPORTS=WFS_SERVER nor SUPPORT=WFS_CLIENT > > Does anyone knows how to solve this ? > > Thanks in advance > > IC Carlos Ruiz > What does your ./configure look like? Did you specify --with-curl-config=PATH ? ..Tom From boolean10001 at yahoo.com Thu Nov 13 11:15:35 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 13 Nov 2008 11:15:35 -0800 (PST) Subject: [mapserver-users] Mapserver doesn't compile for WMS/WFS clientsupport In-Reply-To: Message-ID: <917139.85671.qm@web38202.mail.mud.yahoo.com> Hi Tom, Yes, i specify --the with-curl-config parameter. This is my configure string : ./configure --with-proj=/usr/lib --with-geos=/usr/bin/geos-config --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-wms-server --with-wmsclient --with-wfs --with-wfsclient --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/local/apache2/bin/httpd --with-php=/usr/local/php-5.2.6 IC Carlos Ruiz? --- On Thu, 11/13/08, Kralidis,Tom [Ontario] wrote: From: Kralidis,Tom [Ontario] Subject: RE: [mapserver-users] Mapserver doesn't compile for WMS/WFS clientsupport To: boolean10001 at yahoo.com, mapserver-users at lists.osgeo.org Date: Thursday, November 13, 2008, 1:10 PM > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Carlos Ruiz > Sent: Thursday, November 13, 2008 1:21 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapserver doesn't compile for > WMS/WFS clientsupport > > Hi list, > > I'm configuring Mapserver to support WMS/WFS Server and > client features, but it doesn't works. > > I execute the ./configure script and this is what i get : > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: -DNEED_NONBLOCKING_STDERR > Generic NINT: > Threading support: > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: > AGG Freetype support: > Ming(flash) support: > PDFLib support: > > -------------- Data Format Drivers ------- > native tiff support: > PostGIS support: -DUSE_POSTGIS > Proj.4 support: -DUSE_PROJ > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > GEOS support: -DUSE_GEOS > Oracle Spatial support: > FastCGI support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: yes > > > Once I execute the make script and then check with > ./mapserver -v, this is what i get : > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > But it doesn't shows SUPPORTS=WMS_CLIENT nor > SUPPORTS=WFS_SERVER nor SUPPORT=WFS_CLIENT > > Does anyone knows how to solve this ? > > Thanks in advance > > IC Carlos Ruiz > What does your ./configure look like? Did you specify --with-curl-config=PATH ? ..Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Thu Nov 13 13:00:55 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 13 Nov 2008 13:00:55 -0800 Subject: [mapserver-users] Would like to flesh out Python mapscript page Message-ID: <9c2015090811131300n14623913nd0528875dd3a76d3@mail.gmail.com> Hi, I'd like to add some examples to the http://mapserver.gis.umn.edu/docs/howto/mapscript_python page. Unfortunately, when I try to register for an account at mapserver.gis.umn.edu, I get an error saying "No space left on device". Could someone let me know if there is another way that I can register? Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu.inc at gmail.com Thu Nov 13 13:44:51 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Thu, 13 Nov 2008 15:44:51 -0600 Subject: [mapserver-users] Would like to flesh out Python mapscript page In-Reply-To: <9c2015090811131300n14623913nd0528875dd3a76d3@mail.gmail.com> References: <9c2015090811131300n14623913nd0528875dd3a76d3@mail.gmail.com> Message-ID: On Nov 13, 2008, at 3:00 PM, Roger Andr? wrote: > Hi, > > I'd like to add some examples to the http://mapserver.gis.umn.edu/docs/howto/mapscript_python > page. Unfortunately, when I try to register for an account at > mapserver.gis.umn.edu, I get an error saying "No space left on > device". > > Could someone let me know if there is another way that I can register? > Log overflow. Fixed. Thanks for the report. Howard From randre at gmail.com Thu Nov 13 13:57:14 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 13 Nov 2008 13:57:14 -0800 Subject: [mapserver-users] Would like to flesh out Python mapscript page In-Reply-To: References: <9c2015090811131300n14623913nd0528875dd3a76d3@mail.gmail.com> Message-ID: <9c2015090811131357t483e58besef2ca5eca08e8f69@mail.gmail.com> Thanks, but it now the registration service appears unable to contact either my company's mail server, or GMail's. Is it possible something is still rotten in Denmark? -- On Thu, Nov 13, 2008 at 1:44 PM, Howard Butler wrote: > > On Nov 13, 2008, at 3:00 PM, Roger Andr? wrote: > > Hi, >> >> I'd like to add some examples to the >> http://mapserver.gis.umn.edu/docs/howto/mapscript_python page. >> Unfortunately, when I try to register for an account at >> mapserver.gis.umn.edu, I get an error saying "No space left on device". >> >> Could someone let me know if there is another way that I can register? >> >> > Log overflow. Fixed. Thanks for the report. > > Howard -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Nov 13 14:56:04 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 13 Nov 2008 16:56:04 -0600 Subject: [mapserver-users] Is it possible to take the last 3 chars from astring as labelitem In-Reply-To: <49198537.7030701@i-real.nl> References: <49198537.7030701@i-real.nl> Message-ID: <491C5BAA.5157.008F.0@dnr.state.mn.us> It's not possible within mapserver itself. With PostGIS or Oracle Spatial you can specify functions in your data statements essentially creating a column on-the-fly. Perhaps that's possible with SDE as well? Steve >>> On 11/11/2008 at 7:14 AM, in message <49198537.7030701 at i-real.nl>, I-Real - Rob ter Haar wrote: > Hi, > > As in the subject. Is it possible to do a substr on a string like SQL > can do. > > I use SDE for source and in the description there is a long string, but > i only need the last 3 characters. > > I can't add column in the database so thats no option. I only have a sde > host username and password. > > Can anyone help me? > > kind regards, > > Rob ter Haar From Michelle.Douville at gov.bc.ca Thu Nov 13 15:07:21 2008 From: Michelle.Douville at gov.bc.ca (Douville, Michelle R ILMB:EX) Date: Thu, 13 Nov 2008 15:07:21 -0800 Subject: [mapserver-users] FW: Mapserver 5.2 build for ArcSDE 9.1 Message-ID: <0FB1F527BFBF944991C0DBF8910F5B0A47398D@candle.idir.bcgov> Mapserver 5.2 build for ArcSDE 9.1 point layers I am having an issue with ArcSDE 9.1 SP3 point layers and Mapserver 5.2. I took a .map file that works in mapserver 4.10 and since it didn't work with point data, I have gone ahead and tried to tweak a simple point layer to try and figure out what it doesn't like.. I have tried most of the things listed here http://mapserver.gis.umn.edu/docs/reference/vector_data/arcsde - Adding the sde.default didn't seem to make a difference. - using or not using attribute data to label seems to not affect the outcome. I have tried with and without a template reference. - I have tried CONNECTION slkux1.env.gov.bc.ca,port:5153,sde,proxy_mapserver_dev,password" (which works with lines and polygons) CONNECTION "slkux1.env.gov.bc.ca,5153,sde,proxy_mapserver_dev, password" CONNECTION "slkux1.env.gov.bc.ca,port,5153,sde,proxy_mapserver_dev,password" CONNECTION "slkux1.env.gov.bc.ca,port:5153,idwprod1,proxy_mapserver_dev,password" CONNECTION "slkux1.env.gov.bc.ca,port:5153,,proxy_mapserver_dev,password" CONNECTION "slkux1.env.gov.bc.ca,port:5153,sde,PROXY_MAPSERVER_DEV,password" - I have tested with and without labelitem to no affect. - invalid or null geometries in the layer: I could check that there are no invalid or null geometries for one point layer. But I find it odd that all point layers failed, while all line/polygon layers passed. And no other applications that use these layers complain (ie. ArcIMS, Geoserver) Attached is the latest debug 5 result as well. ArcSDE INFO - idwprod1 Solaris 64bit RDBMS Version - 10.2.0.2 RDBMS Edition EE ArcSDE Version 9.1 ArcSDE patch level SP3 E:\sw_nt\mapserver520>mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORT S=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=T HREADS INPUT=JPEG INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPE FILE Many thanks for all your help, Michelle -------------- next part -------------- A non-text attachment was scrubbed... Name: testclean.map Type: application/octet-stream Size: 1860 bytes Desc: testclean.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testclean.log Type: application/octet-stream Size: 3142 bytes Desc: testclean.log URL: From blake at hailmail.net Thu Nov 13 15:29:07 2008 From: blake at hailmail.net (Dane Springmeyer) Date: Thu, 13 Nov 2008 15:29:07 -0800 Subject: [mapserver-users] Would like to flesh out Python mapscript page In-Reply-To: <9c2015090811131357t483e58besef2ca5eca08e8f69@mail.gmail.com> References: <9c2015090811131300n14623913nd0528875dd3a76d3@mail.gmail.com> <9c2015090811131357t483e58besef2ca5eca08e8f69@mail.gmail.com> Message-ID: Just tried from here and I get a 'We were unable to send your password to your email address: (146, 'Connection refused')' error Dane On Nov 13, 2008, at 1:57 PM, Roger Andr? wrote: > Thanks, but it now the registration service appears unable to > contact either my company's mail server, or GMail's. Is it possible > something is still rotten in Denmark? > -- > > On Thu, Nov 13, 2008 at 1:44 PM, Howard Butler > wrote: > > On Nov 13, 2008, at 3:00 PM, Roger Andr? wrote: > > Hi, > > I'd like to add some examples to the http://mapserver.gis.umn.edu/docs/howto/mapscript_python > page. Unfortunately, when I try to register for an account at > mapserver.gis.umn.edu, I get an error saying "No space left on > device". > > Could someone let me know if there is another way that I can register? > > > Log overflow. Fixed. Thanks for the report. > > Howard > > _______________________________________________ > 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 subha at gslab.com Thu Nov 13 21:31:11 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Fri, 14 Nov 2008 11:01:11 +0530 Subject: [mapserver-users] Legend for a layer with filter In-Reply-To: References: <9c2015090811131300n14623913nd0528875dd3a76d3@mail.gmail.com> <9c2015090811131357t483e58besef2ca5eca08e8f69@mail.gmail.com> Message-ID: <491D0D1F.2070800@gslab.com> Hi, I want to know if it is possible to generate a legend for a layer with a filter. I am getting a blank response with a mode=legend for this layer. I tried passing the parameter that i am using in the filter, in the request but didn't work either. This is the layer in the mapfile: layer name filterlayer connectiontype postgis connection "user= username dbname=db password=passwd host=localhost" group world type polygon status on class style width 3 color 170 153 175 outlinecolor 000 000 000 end end filter 'id IN (%pid%)' data "topology from dbtable" transparency 65 end Thank you. Regards, Subha From pgiannini at bytewise.it Fri Nov 14 02:58:12 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 14 Nov 2008 11:58:12 +0100 (CET) Subject: [mapserver-users] float raster Message-ID: <60887.89.97.235.106.1226660292.squirrel@localhost.localdomain> Hi list, anyone is experienced about creating raster on-the-fly in a mapscript application? I generate a regular grid of georeferenced values (floats) and I want to display this values as raster, classifying the values using a colorrange. Can mapserver read an ascii grid as datasource? if not, in your experience which format is the best? thanks for any hint. ciao ..................................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From voas_acc at hotmail.com Fri Nov 14 04:51:34 2008 From: voas_acc at hotmail.com (asd asd) Date: Fri, 14 Nov 2008 12:51:34 +0000 Subject: [mapserver-users] Mapscript QueryByAttributes & Rendering problem. Message-ID: I came across a problem while using python mapscript's queryByAttribute function. I have a layer containing the fieldname "STATE" amongst others. Issuing: try: layer.queryByAttribute(map,"STA","AZ",MS_MULTIPLE) except: print "attribute error" pass By now the mapserver exception is caught for the faulty attribute. If a draw function is now issued: map.draw() The following error occurs: : msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msDBFGetItemIndex(): DBASE file error. Item 'STA' not found. I reproduced it many times and in many occasions. I tried to clear any result cache but in vain. Shouldn;t mapserver handle the situation more logically? _________________________________________________________________ Windows Live Hotmail now works up to 70% faster. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at deq.virginia.gov Fri Nov 14 06:05:31 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Fri, 14 Nov 2008 09:05:31 -0500 Subject: [mapserver-users] float raster Message-ID: <6C097DA58429B743A67070F98BE73A370379B70C@deqex01.deq.local> Pietro, Mapserver uses gdal to read grids, and thus, the type of grid is controlled by your gdal configuration options. The following command line will tell you the formats your install supports: gdalinfo --formats More info on the mapserver docs: http://ms.gis.umn.edu/docs/howto/raster_data I have successfully loaded a raster grid in the past, and your proposed approach seems fairly straightforward. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pietro Giannini Sent: Friday, November 14, 2008 5:58 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] float raster Hi list, anyone is experienced about creating raster on-the-fly in a mapscript application? I generate a regular grid of georeferenced values (floats) and I want to display this values as raster, classifying the values using a colorrange. Can mapserver read an ascii grid as datasource? if not, in your experience which format is the best? thanks for any hint. ciao ..................................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jacobrodel at hotmail.com Fri Nov 14 12:33:46 2008 From: jacobrodel at hotmail.com (jacob rodel) Date: Fri, 14 Nov 2008 14:33:46 -0600 Subject: [mapserver-users] setting variables in cgi-bin callout Message-ID: I am trying to duplicate a web application using mapserver. The old application uses this cgi-bin call to pull data when you click on the map. http://hdsc.nws.noaa.gov/cgi-bin/hdsc/buildout.perl?type=pf&units=us&series=pd&statename=UTAH&stateabv=ut&study=sa&season=All&intype=5&plat=40.754&plon=-110.596&liststation=0&slat=lat&slon=lon&mlat=40.754&mlon=-110.596&elev=11682 Is there some way to use this same callout but set the state name and x,y coordinates to variables tied to the map in mapserver? Please help! _________________________________________________________________ Windows Live Hotmail now works up to 70% faster. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Fri Nov 14 12:41:03 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 14 Nov 2008 14:41:03 -0600 Subject: [mapserver-users] setting variables in cgi-bin callout In-Reply-To: References: Message-ID: <491D8D84.5157.008F.0@dnr.state.mn.us> Two ideas: - write a simple wrapper script around MapServer to translate variables between the old and new - use Apache mod_rewrite to do that translation Steve >>> On 11/14/2008 at 2:33 PM, in message , jacob rodel wrote: > I am trying to duplicate a web application using mapserver. The old > application uses this cgi-bin call to pull data when you click on the map. > http://hdsc.nws.noaa.gov/cgi-bin/hdsc/buildout.perl?type=pf&units=us&series=pd&st > atename=UTAH&stateabv=ut&study=sa&season=All&intype=5&plat=40.754&plon=-110.596&lists > tation=0&slat=lat&slon=lon&mlat=40.754&mlon=-110.596&elev=11682 > > Is there some way to use this same callout but set the state name and x,y > coordinates to variables tied to the map in mapserver? Please help! > _________________________________________________________________ > Windows Live Hotmail now works up to 70% faster. > http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_ > 112008 From zachc1980 at gmail.com Fri Nov 14 14:14:38 2008 From: zachc1980 at gmail.com (zach cruise) Date: Fri, 14 Nov 2008 17:14:38 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? Message-ID: does current ms4w with fastcgi work with oracle 10? here're warnings http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to18394152.html in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get overlap result error") if not, any workarounds? From jmckenna at gatewaygeomatics.com Fri Nov 14 15:22:23 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 14 Nov 2008 18:22:23 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: References: Message-ID: <491E082F.9090601@gatewaygeomatics.com> zach cruise wrote: > does current ms4w with fastcgi work with oracle 10? > > here're warnings > http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi > http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to18394152.html > in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, > but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get > overlap result error") > > if not, any workarounds? I tested and wrote that note...and am not aware of a workaround yet. You should also send this question to the MS4W mailing list (subscribe at: http://lists.maptools.org/mailman/listinfo/ms4w-users) -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From cheung.jackey at gmail.com Fri Nov 14 21:02:47 2008 From: cheung.jackey at gmail.com (GMail) Date: Sat, 15 Nov 2008 13:02:47 +0800 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 Message-ID: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> Hi, We've build the MapServer 5.2 on a Linux server, with fribidi2 0.19.1, to try show Arabic labels. But the words has been broken down to characters in the generated images (line.png). Then we've tried on a MS4W 2.3.0 server, but the images (ms4w.png) are even worse. We are using PostGIS, and the database is using UTF8 (pgpr.png), while all Arabic data can be shown correctly (pg.png) on my English Windows XP, and we've tried some more machines, or on IE, to make sure that Arabic text in database are really UTF8. Here's the images: http://www3.mapasia.com/jackout/ara.png The part of the map file is as follow, where the "arbic-trans" is a Arabic TrueType font named "Arabic Transparent": LABEL ANGLE FOLLOW PRIORITY [priority] ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arbic-trans" SIZE 7 POSITION AUTO PARTIALS FALSE MINDISTANCE 500 BUFFER 1 MINFEATURESIZE 50 END Could anyone please help. From randre at gmail.com Sat Nov 15 17:23:10 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Sat, 15 Nov 2008 17:23:10 -0800 Subject: [mapserver-users] Ubuntu libpdf support for Mapserver Message-ID: <9c2015090811151723w5f7bf677v5861bf5fd5cb3438@mail.gmail.com> Hi everyone, I'm just about done building a fresh copy of Mapserver 5.2 on my Ubuntu 8.04 machine and have one final snag to overcome - PDF support. I've specified "--with-pdf" in my compile options, but when I look carefully, I see "libpdf not found or too old", and my resulting mapserv executable lacks PDF support. Problem is that there doesn't seem to be a "libpdf", or "pdflib" package for Ubuntu, so I'm not really sure what to do. There are a couple other *pdf*.so files in /usr: /usr/lib/tracker/extract-modules/libextract-pdf.so /usr/lib/openoffice/program/libpdffilter680li.so /usr/lib/ImageMagick-6.3.7/modules-Q16/coders/pdf.so /usr/lib/evince/backends/libpdfdocument.so Could I use one of those instead? Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From boache578 at yahoo.com Sat Nov 15 18:06:39 2008 From: boache578 at yahoo.com (John Kummun) Date: Sat, 15 Nov 2008 18:06:39 -0800 (PST) Subject: [mapserver-users] TRANSPARENCY AND WFS PROBLEMS Message-ID: <830447.52861.qm@web62007.mail.re1.yahoo.com> Hi guys, I need suggestions for the following problems: ? 1. I want to put transparency on polygon layer so that aerial photo could be seen below it. I have tried TRANSPARECY and OPACITY but i only get faded not transparent layer. My imagetype is PNG ? 2. The explanation notes of wfs on mapserver web page is very confusing. Can someone walk me through on how to set up wfs server and client maps? ? Thanks a lot ? Kofi Indiana -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Sun Nov 16 08:21:50 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Sun, 16 Nov 2008 11:21:50 -0500 Subject: [mapserver-users] TRANSPARENCY AND WFS PROBLEMS References: <830447.52861.qm@web62007.mail.re1.yahoo.com> Message-ID: What is unclear about the docs? In addition to http://mapserver.gis.umn.edu/docs/howto/wfs_server and http://mapserver.gis.umn.edu/docs/howto/wfs_client, check out the MapServer OGC Web Services Workshop (http://ms-ogc-workshop.maptools.org/) which has examples of how to setup both. ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of John Kummun Sent: Sat 15-Nov-08 21:06 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] TRANSPARENCY AND WFS PROBLEMS Hi guys, I need suggestions for the following problems: 1. I want to put transparency on polygon layer so that aerial photo could be seen below it. I have tried TRANSPARECY and OPACITY but i only get faded not transparent layer. My imagetype is PNG 2. The explanation notes of wfs on mapserver web page is very confusing. Can someone walk me through on how to set up wfs server and client maps? Thanks a lot Kofi Indiana From ekanegae at gmail.com Sun Nov 16 10:16:58 2008 From: ekanegae at gmail.com (Eduardo Kanegae) Date: Sun, 16 Nov 2008 15:16:58 -0300 Subject: [mapserver-users] MS 5.2 make error: " yes: invalid option -- f " Message-ID: Hi all, I?m trying to build MapServer 5.2.0 under CentOS 5 using the following config: ./configure --disable-ignore-missing-data --enable-point-z-m --disable-gcov --with-freetype=/usr/local/bin/freetype-config -with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-xpm=/usr --with-libiconv=/usr/local --with-gd=/usr/local --with-pdf=/usr/local --with-agg=/usr/local/src/agg --with-eppl --with-proj --with-threads --with-geos --with-ogr --with-gdal --without-tiff --with-postgis=/usr/bin/pg_config --with-ming=/usr/local --with-wms --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos --with-curl-config=/usr/bin/curl-config --with-xml2-config=/usr/bin/xml2-config --with-fastcgi=/usr/local --with-httpd=/usr/sbin/httpd --with-php=/usr --with-ld-shared 2>&1 | tee configure.log But, after some time running make I got: *** yes: invalid option -- f *** This message appears just after the line: *** yes -fprofile-arcs -ftest-coverage -o php_mapscript.so php_mapscript_util.o php_mapscript.o mapscript_i.o php_regex.o -L/usr/src/webmapit/mapserver-5.2.0 -lmapserver -L/usr/local/lib -lfcgi -L/usr/lib -lxml2 -lz -lm -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -L/usr/local/lib -lming -L/usr/lib -lpq -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/lib -lXpm -lX11 -L/usr/local/lib -liconv -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr -L/usr/lib -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/local/lib -lxerces-c -lpthread -L/usr/local/GeoExpressSDK6/lib/Release -L/usr/local/GeoExpressSDK6/3rd-party/lib/Release -lltidsdk -lpthread -lltikdu -L/usr/local/lib -lNCSEcw -lNCSCnet -lNCSUtil -L/usr -L/usr/lib -ljasper -L/usr/lib -lhdf5 -L/usr -L/usr/lib -logdi31 -L/usr -L/usr/lib -lnetcdf -lpq -L/usr/lib -lpq -lpthread -lm -lrt -ldl -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -L/usr/local/lib -lgeos_c -lpthread -lproj -L/usr/local/src/agg/src -lagg -L/usr/local/lib -lpdf -L/usr/local/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/lib -lXpm -lX11 -L/usr/local/lib -liconv -L/usr/local/lib -liconv -L/usr/lib -lz -lm -lstdc++ *** and then "make[1]: *** [php_mapscript.so] Error 1" is shown. I already tried to setup CCFLAGS and CXXFLAGS to gcc34/g++34 or mpicc/mpicxx compilers but the same error happens. Does anybody has any tip? best regards, -- Eduardo Kanegae http://anthologis.com From rpinho_eng at yahoo.com.br Sun Nov 16 14:59:30 2008 From: rpinho_eng at yahoo.com.br (Ricardo Pinho) Date: Sun, 16 Nov 2008 14:59:30 -0800 (PST) Subject: [mapserver-users] GISVM - New version release Message-ID: <65949.84828.qm@web65713.mail.ac4.yahoo.com> Hello, I would like to announce a new version of "GIS Virtual Machine", available NOW and for FREE at: http://www.gisvm.com GISVM is a Virtual Machine built exclusively with Free Open Source Software for GIS (FOSS4G), and this release (01.Nov.2008) includes 3 versions: - International (English) - Portuguese (PT_BR) - Geostatistic (Rspatial_English) More details at: http://tinyurl.com/gisvm20081101 Please register on the project Mailling list to receive News and announces! http://tinyurl.com/gisvm-register After registering you can post via the nabble website, or you can also post by sending emails to the following email address: mailto: ml-node+741465-66470100 at n2.nabble.com I also appreciate if you SPREAD THE WORD. Put it on your blog, forum ,etc,,, Please feel free to download it and enjoy!!! http://www.gisvm.com/download.html Regards, Ricardo Pinho Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From boache578 at yahoo.com Sun Nov 16 21:03:49 2008 From: boache578 at yahoo.com (John Kummun) Date: Sun, 16 Nov 2008 21:03:49 -0800 (PST) Subject: [mapserver-users] WFS server testing Message-ID: <539824.46004.qm@web62007.mail.re1.yahoo.com> I have been able to set up wfs server on the localhost?and tested in the browser it seems to be working right. Is there other ways that i can test it to make sure everything is working right? I used uDig but it didn't work because of some coordinate issue. Is it really possible to display it like ordinary mapfile using some application? i need help guys This is the mapfile: ? NAME WFS_server STATUS ON SIZE 800 650 EXTENT 347683.125124 1652890.274125 458837.845673 1759026.124282 UNITS Feet SHAPEPATH "/ms4w/apps/GeoMOOSE/maps_countydemo/emegency" IMAGETYPE PNG FONTSET '../fonts/fonts.list' SYMBOLSET '../symbols/symbol.sym' WEB ? IMAGEPATH "/ms4w/tmp/ms_tmp/" ? IMAGEURL "/ms_tmp/" ? METADATA ??? "wfs_title"??????????? "Demo server"? ## REQUIRED ??? "wfs_onlineresource"?? "http://localhost/cgi-bin/mapserv.exe?" ## Recommended ??? "wfs_srs"?????????????? "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"? ## Recommended ??? "ows_schemas_location" "http://schemas.opengeospatial.net#http://ogc.dmsolutions.ca"? ## Optional ? END END PROJECTION ? "init=epsg:4269" END LAYER ? NAME police ? METADATA ??? "wfs_title"??? "police" ## REQUIRED ??? "gml_featureid" "ID" ## REQUIRED ??? "gml_include_items" "all"? ## Optional (serves all attributes for layer) ? END ? TYPE POINT ? STATUS ON ? DATA Police07 ? DUMP TRUE?????????? ## REQUIRED ? CLASS ??? NAME "police" ??? STYLE ????? SYMBOL 0 ????? COLOR 200 255 0 ????? OUTLINECOLOR 120 120 120 ??? END ?? END END # Layer END # Map File ? Thanks guys John Indiana ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at gmail.com Mon Nov 17 02:09:58 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Mon, 17 Nov 2008 18:09:58 +0800 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> Message-ID: Greetings! We've build the MapServer 5.2 on a Linux server, with fribidi2 0.19.1, to try show Arabic labels. But the words has been broken down to characters in the generated images (line.png). Then we've tried on a MS4W 2.3.0 server, but the images (ms4w.png) are even worse. We are using PostGIS, and the database is using UTF8 (pgpr.png), while all Arabic data can be shown correctly (pg.png) on my English Windows XP, and we've tried some more machines, or on IE, to make sure that Arabic text in database are really UTF8. Here's the images: http://www3.mapasia.com/jackout/ara.png The part of the map file is as follow, where the "arbic-trans" is a Arabic TrueType font named "Arabic Transparent": LABEL ANGLE FOLLOW PRIORITY [priority] ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arbic-trans" SIZE 7 POSITION AUTO PARTIALS FALSE MINDISTANCE 500 BUFFER 1 MINFEATURESIZE 50 END Could anyone please help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at deq.virginia.gov Mon Nov 17 05:59:13 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Mon, 17 Nov 2008 08:59:13 -0500 Subject: [mapserver-users] WFS server testing Message-ID: <6C097DA58429B743A67070F98BE73A3703A8F1BC@deqex01.deq.local> Not really sure what you are asking here. Some other client application? OpenLayers would be one that I would use to see if I could connect to WFS. There are some examples in the OpenLayers code base for connecting to WFS servers, so you should b able to test that by simply changing the info to reflect your server specs. HTH, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of John Kummun Sent: Monday, November 17, 2008 12:04 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WFS server testing I have been able to set up wfs server on the localhost and tested in the browser it seems to be working right. Is there other ways that i can test it to make sure everything is working right? I used uDig but it didn't work because of some coordinate issue. Is it really possible to display it like ordinary mapfile using some application? i need help guys This is the mapfile: NAME WFS_server STATUS ON SIZE 800 650 EXTENT 347683.125124 1652890.274125 458837.845673 1759026.124282 UNITS Feet SHAPEPATH "/ms4w/apps/GeoMOOSE/maps_countydemo/emegency" IMAGETYPE PNG FONTSET '../fonts/fonts.list' SYMBOLSET '../symbols/symbol.sym' WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wfs_title" "Demo server" ## REQUIRED "wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" ## Recommended "wfs_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ## Recommended "ows_schemas_location" "http://schemas.opengeospatial.net#http://ogc.dmsolutions.ca" ## Optional END END PROJECTION "init=epsg:4269" END LAYER NAME police METADATA "wfs_title" "police" ## REQUIRED "gml_featureid" "ID" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) END TYPE POINT STATUS ON DATA Police07 DUMP TRUE ## REQUIRED CLASS NAME "police" STYLE SYMBOL 0 COLOR 200 255 0 OUTLINECOLOR 120 120 120 END END END # Layer END # Map File Thanks guys John Indiana -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Mon Nov 17 06:06:56 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 17 Nov 2008 09:06:56 -0500 Subject: [mapserver-users] Ubuntu libpdf support for Mapserver In-Reply-To: <9c2015090811151723w5f7bf677v5861bf5fd5cb3438@mail.gmail.com> References: <9c2015090811151723w5f7bf677v5861bf5fd5cb3438@mail.gmail.com> Message-ID: <49217A80.8020005@mapgears.com> Roger Andr? wrote: > Hi everyone, > > I'm just about done building a fresh copy of Mapserver 5.2 on my Ubuntu > 8.04 machine and have one final snag to overcome - PDF support. I've > specified "--with-pdf" in my compile options, but when I look carefully, > I see "libpdf not found or too old", and my resulting mapserv executable > lacks PDF support. Problem is that there doesn't seem to be a "libpdf", > or "pdflib" package for Ubuntu, so I'm not really sure what to do. > You could get the PDFLib lite source from http://www.pdflib.com/download/pdflib-family/pdflib-lite/ and compile it locally on your system. The usual 'configure; make; make install' recipe should install it to /usr/local/bin by default, and then using --with-pdf=/usr/local on your Mapserver configure line should do the trick. Please see also the README.CONFIGURE file in the MapServer source package which has some notes about building PDFLib vs libpng and zlib that you may need to take into account... i.e. you may have to configure your pdflib '--with-pnglib --with-zlib' as it is suggested there. Daniel -- Daniel Morissette http://www.mapgears.com/ From rafael at opengeo.com.br Mon Nov 17 06:07:44 2008 From: rafael at opengeo.com.br (Rafael Almeida Fernandez Soto) Date: Mon, 17 Nov 2008 12:07:44 -0200 Subject: [mapserver-users] WFS server testing In-Reply-To: <6C097DA58429B743A67070F98BE73A3703A8F1BC@deqex01.deq.local> References: <6C097DA58429B743A67070F98BE73A3703A8F1BC@deqex01.deq.local> Message-ID: <90a5e5b30811170607x13cd0f6eo39ffa25e9fd277fa@mail.gmail.com> Try QGIS or GVSIG WFS client module! Best Regards, Rafael Soto 2008/11/17 Burgholzer,Robert > Not really sure what you are asking here. Some other client > application? OpenLayers would be one that I would use to see if I could > connect to WFS. There are some examples in the OpenLayers code base for > connecting to WFS servers, so you should b able to test that by simply > changing the info to reflect your server specs. > > > > HTH, > > r.b. > > > > Robert W. Burgholzer > > Surface Water Modeler > > Office of Water Supply and Planning > > Virginia Department of Environmental Quality > > rwburgholzer at deq.virginia.gov > > 804-698-4405 > > Open Source Modeling Tools: > > http://sourceforge.net/projects/npsource/ > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *John Kummun > *Sent:* Monday, November 17, 2008 12:04 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] WFS server testing > > > > I have been able to set up wfs server on the localhost and tested in the > browser it seems to be working right. Is there other ways that i can test it > to make sure everything is working right? I used uDig but it didn't work > because of some coordinate issue. Is it really possible to display it like > ordinary mapfile using some application? i need help guys > > This is the mapfile: > > > > NAME WFS_server > STATUS ON > SIZE 800 650 > EXTENT 347683.125124 1652890.274125 458837.845673 1759026.124282 > UNITS Feet > SHAPEPATH "/ms4w/apps/GeoMOOSE/maps_countydemo/emegency" > IMAGETYPE PNG > FONTSET '../fonts/fonts.list' > SYMBOLSET '../symbols/symbol.sym' > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_title" "Demo server" ## REQUIRED > "wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" ## > Recommended > "wfs_srs" "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ## > Recommended > "ows_schemas_location" " > http://schemas.opengeospatial.net#http://ogc.dmsolutions.ca" ## Optional > END > END > > PROJECTION > "init=epsg:4269" > END > > LAYER > NAME police > METADATA > "wfs_title" "police" ## REQUIRED > "gml_featureid" "ID" ## REQUIRED > "gml_include_items" "all" ## Optional (serves all attributes for > layer) > END > TYPE POINT > STATUS ON > DATA Police07 > > DUMP TRUE ## REQUIRED > CLASS > NAME "police" > STYLE > SYMBOL 0 > COLOR 200 255 0 > OUTLINECOLOR 120 120 120 > END > END > END # Layer > > END # Map File > > > > Thanks guys > > John > > Indiana > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- RAFAEL Almeida Fernandez Soto :: rafael at opengeo.com.br Consultant in FOSS GIS :: 55 21 2518-6233 :: 55 71 8802-0600 OpenGEO :: On-demand training and solutions :: www.opengeo.com.br GEO Livre community:: Because Geoinformation should be free :: www.geolivre.org.br Be free by using Free Software, such as MapServer, PostgreSQL/PostGIS, gvSIG... -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Nov 17 07:15:49 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 17 Nov 2008 10:15:49 -0500 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> Message-ID: <49218AA5.9050706@swoodbridge.com> Jackey, Try locating a different font. if the text is being rendered as glyphs and they look correct, but is missing the joining information, it is likely that the font you are using does not include the joining glyphs. If you are using a windows machine, try getting mapserver via the fonts.txt file to point to the arial.ttf in the fonts folder. And change you FONT "..." to select the windows arial font. This assumes that you can display arabic text correctly using the arial font from a windows application like excel. -Steve W. Jackey Cheung wrote: > Greetings! > > > We've build the MapServer 5.2 on a Linux server, with fribidi2 0.19.1, to > try show Arabic labels. But the words has been broken down to characters in > the generated images (line.png). Then we've tried on a MS4W 2.3.0 server, > but the images (ms4w.png) are even worse. > > We are using PostGIS, and the database is using UTF8 (pgpr.png), while all > Arabic data can be shown correctly (pg.png) on my English Windows XP, and > > we've tried some more machines, or on IE, to make sure that Arabic text in > database are really UTF8. > > Here's the images: http://www3.mapasia.com/jackout/ara.png > > > The part of the map file is as follow, where the "arbic-trans" is a Arabic > TrueType font named "Arabic Transparent": > LABEL > ANGLE FOLLOW > PRIORITY [priority] > ENCODING "UTF-8" > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT "arbic-trans" > SIZE 7 > POSITION AUTO > PARTIALS FALSE > MINDISTANCE 500 > BUFFER 1 > MINFEATURESIZE 50 > END > > Could anyone please help. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From NSoto at plotplans.com Mon Nov 17 07:31:45 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Mon, 17 Nov 2008 10:31:45 -0500 Subject: [mapserver-users] Mapscript C# threadsafety issue? Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B1789@geoexchange.DesLauriers.local> Is this still an existing issue with Mapscript C#? Are there any other limitations to this version of the Mapscript that I should be aware of? Thank you, Nelson -------------- next part -------------- An HTML attachment was scrubbed... URL: From ntiamoah578 at yahoo.com Mon Nov 17 08:00:43 2008 From: ntiamoah578 at yahoo.com (ntiamoah bernard) Date: Mon, 17 Nov 2008 08:00:43 -0800 (PST) Subject: [mapserver-users] TRANSPARENCY PROBLEM Message-ID: <510910.70517.qm@web32501.mail.mud.yahoo.com> Hi guys, I need suggestions for the following problem: ? ?I want to put transparency on polygon layer so that aerial photo could be seen below it. I have tried TRANSPARECY and OPACITY but i only get faded not transparent layer. My imagetype is PNG. Here is the mapfile ? MAP ?NAME 'School_boundary' ?SIZE 800 650 ?STATUS ON ?EXTENT? 347683.125124 1652890.274125 458837.845673 1759026.124282 ?UNITS feet ?FONTSET '../fonts/fonts.list' ?SYMBOLSET '../symbols/symbol.sym' ??? OUTPUTFORMAT ??? NAME 'png' ??? DRIVER GD/PNG ??? IMAGEMODE RGBA ??? EXTENSION "png" ??? FORMATOPTION "FULL_RESOLUTION=TRUE" ??? FORMATOPTION "INTERLACE=OFF" ??? TRANSPARENT ON ??? END #end outputformat ?#IMAGETYPE PNG ?QUERYMAP ??STATUS ON ??STYLE SELECTED ?END ?WEB ?????? IMAGEURL "/ms4w/tmp/ms_tmp/" ?????? IMAGEPATH "/ms4w/tmp/ms_tmp/" ?END ?LEGEND ??STATUS ON ?END ? LAYER ??? NAME 'School_district' ??? TYPE POLYGON ??? DATA '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp' ??? METADATA ????? 'wms_title' 'school_boundary' ??? END ??? STATUS DEFAULT ??? TRANSPARENCY 20 ??? #MAXSCALE 2000000 ??? LABELITEM 'NAME' ??? CLASS ?????? NAME 'esn_boundary' ?????? STYLE ???????? SYMBOL 0 ???????? SIZE 2 ???????? OUTLINECOLOR 0 255 170 ???????? COLOR 224 255 255 ?????? END ???? LABEL ????? TYPE TRUETYPE ????? FONT arial ????? SIZE 8 ????? COLOR 233 122 100 ????? ANGLE 0 ????? POSITION CC ????? MINDISTANCE 250 ????? BUFFER 1 ????? WRAP " " ???? END ??? END ? END END ? Thanks John Indiana -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Mon Nov 17 08:57:20 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Mon, 17 Nov 2008 17:57:20 +0100 (CET) Subject: [mapserver-users] TRANSPARENCY PROBLEM In-Reply-To: <510910.70517.qm@web32501.mail.mud.yahoo.com> References: <510910.70517.qm@web32501.mail.mud.yahoo.com> Message-ID: <36519.89.97.235.106.1226941040.squirrel@localhost.localdomain> Hi john, simply omit the whole STYLE in the class, this make the layer transparent. Or, if this seems dirty, set COLOR -1 -1 -1 and OUTLINECOLOR -1 -1 -1. In fact the TRANSPARENCY 1 render a very faded layer, while TRANSPARENCY 0 is like TRANSPARENCY 100... (TRANSPARENCY is deprecated in ms5, use OPACITY) let me know, ciao .....................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Lun, Novembre 17, 2008 17:00, ntiamoah bernard wrote: > Hi guys, > I need suggestions for the following problem: > ? > ?I want to put transparency on polygon layer so that aerial photo could be > seen below it. I have tried TRANSPARECY and OPACITY but i only get faded > not transparent layer. My imagetype is PNG. Here is the mapfile > ? > MAP > ?NAME 'School_boundary' > ?SIZE 800 650 > ?STATUS ON > ?EXTENT? 347683.125124 1652890.274125 458837.845673 1759026.124282 > ?UNITS feet > ?FONTSET '../fonts/fonts.list' > ?SYMBOLSET '../symbols/symbol.sym' > ??? OUTPUTFORMAT > ??? NAME 'png' > ??? DRIVER GD/PNG > ??? IMAGEMODE RGBA > ??? EXTENSION "png" > ??? FORMATOPTION "FULL_RESOLUTION=TRUE" > ??? FORMATOPTION "INTERLACE=OFF" > ??? TRANSPARENT ON > ??? END #end outputformat > ?#IMAGETYPE PNG > ?QUERYMAP > ??STATUS ON > ??STYLE SELECTED > ?END > ?WEB > ?????? IMAGEURL "/ms4w/tmp/ms_tmp/" > ?????? IMAGEPATH "/ms4w/tmp/ms_tmp/" > ?END > ?LEGEND > ??STATUS ON > ?END > > ? LAYER > ??? NAME 'School_district' > ??? TYPE POLYGON > ??? DATA > '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp' > ??? METADATA > ????? 'wms_title' 'school_boundary' > ??? END > ??? STATUS DEFAULT > ??? TRANSPARENCY 20 > ??? #MAXSCALE 2000000 > ??? LABELITEM 'NAME' > ??? CLASS > ?????? NAME 'esn_boundary' > ?????? STYLE > ???????? SYMBOL 0 > ???????? SIZE 2 > ???????? OUTLINECOLOR 0 255 170 > ???????? COLOR 224 255 255 > ?????? END > ???? LABEL > ????? TYPE TRUETYPE > ????? FONT arial > ????? SIZE 8 > ????? COLOR 233 122 100 > ????? ANGLE 0 > ????? POSITION CC > ????? MINDISTANCE 250 > ????? BUFFER 1 > ????? WRAP " " > ???? END > ??? END > ? END > END > ? > Thanks > John > Indiana > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From richard.lehaut at crpf.fr Mon Nov 17 09:12:54 2008 From: richard.lehaut at crpf.fr (Richard Lehaut) Date: Mon, 17 Nov 2008 18:12:54 +0100 Subject: [Mapserver-Users] Problem TEMPLATE to use getfeatureinfo.html Message-ID: <20081117181254.91857cba@kmail.crpf.fr> Hello I try to use the example provided by getfeatureinfo.html Mapfish.org I joined the mail 3 files: map.js configuration layers with getfeaturesinfo http://www.nomorepasting.com/getpaste.php?pasteid=21979 websig_norm.map: server configuration wms I have an error in execution: Content-type: application / vnd.ogc.se_xml msReturnPage (): Unable to access file. ttt.html The application n'acc?s not file ttt.html. I do not know how to configure this file? Is it necessary for getfeatureinfo? What should be the URL? Thank you for your help Tio -------------- next part -------------- A non-text attachment was scrubbed... Name: WEBSIG_NORM.map Type: application/octet-stream Size: 2191 bytes Desc: not available URL: From jacobrodel at hotmail.com Mon Nov 17 11:20:28 2008 From: jacobrodel at hotmail.com (jacob rodel) Date: Mon, 17 Nov 2008 13:20:28 -0600 Subject: [mapserver-users] I am trying to return Lat, longs. The x, y coords r... Message-ID: I am trying to return Lat,longs. The x,y coords return a value but the lat,longs return nothing. Detailed information for the area you clicked on the map... UTM Zone 15 Coordinates X: [mapx] Y: [mapy] Lat: [maplat] Lon: [maplon] My .map file MAP NAME 'states' SIZE 800 650 STATUS ON # EXTENT 189783.560000 4816309.330000 761653.524114 5472346.500000 UNITS METERS FONTSET '../fonts/fontset.list' SYMBOLSET '../symbols/symbol.sym' TRANSPARENT TRUE PROJECTION "init=epsg:26915" END QUERYMAP STATUS ON STYLE SELECTED END WEB QUERYFORMAT "text/xml" INCLUDE "../temp_directory.map" END LEGEND STATUS ON END LAYER NAME 'States' DATA './state.shp' STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:26915" END CLASS NAME 'states' STYLE COLOR 255 255 255 OUTLINECOLOR 0 0 0 WIDTH 1 END END HEADER 'imagemap_header.xml' TEMPLATE 'imagemap_record.xml' FOOTER 'imagemap_footer.xml' END END ## end Map Can ayone tell what I am doing wrong? _________________________________________________________________ Stay up to date on your PC, the Web, and your mobile phone with Windows Live http://clk.atdmt.com/MRT/go/119462413/direct/01/ From HWIRTH at co.benton.mn.us Fri Nov 14 09:34:40 2008 From: HWIRTH at co.benton.mn.us (Heather Wirth) Date: Fri, 14 Nov 2008 11:34:40 -0600 Subject: [mapserver-users] Join shapefile to csv Message-ID: I am trying to join my parcel shapefile to tax information stored as a .csv file. I have follwed the instructions at http://mapserver.gis.umn.edu/docs/reference/mapfile/join with no success. Here is the Layer object from the mapfile: LAYER NAME 'Parcels' DATA './Parcels.shp' STATUS DEFAULT TYPE LINE JOIN NAME "TaxInfo" TABLE "./20081008.csv" FROM "TaxPIN" TO "PIN" TYPE ONE-TO-ONE END CLASS NAME 'Parcel Boundary' TYPE LINE STYLE COLOR 3 3 3 OUTLINECOLOR 0 0 0 WIDTH 1 END END END Here is the html identify template:
Here is what is an example of what is returned when I identify the parcels: Parcel Information Parcel ID: 040023800 Owner Name: [TaxInfo_PRIM TAXP NAME]", "[TaxInfo_PRIM TAXP NAME 2] Using the tool does not cause any sort of an error. I'm hoping that there is something simple I am missing. Any help would be much appreciated. Heather Wirth Benton County, MN From ruijgomes at gmail.com Mon Nov 17 11:45:33 2008 From: ruijgomes at gmail.com (Rui Gomes) Date: Mon, 17 Nov 2008 19:45:33 +0000 Subject: [mapserver-users] Using pixels in TOLERANCEUNITS In-Reply-To: <49185178.5157.008F.0@dnr.state.mn.us> References: <31e2f7000811101129w12a4fc9dy9d127f636b4e1de5@mail.gmail.com> <49185178.5157.008F.0@dnr.state.mn.us> Message-ID: <31e2f7000811171145i27a82aa9if5ae67d10d4fbe40@mail.gmail.com> Thanks for all. Recompile is far way for my skills (by now). I will try to get help for do that. Thanks again. 2008/11/10 Steve Lime : > There is no tutorial for editing the source code. It's generally not for the faint of heart. The file > maplexer.l is part of the MapServer source distribution so if you build the software from source > then it would be right there along with the other C/C++ sources. If you're using MS4W I'm > afraid you're out of luck until a new version of that package is made available with this change. > > Steve > >>>> On 11/10/2008 at 1:29 PM, in message > <31e2f7000811101129w12a4fc9dy9d127f636b4e1de5 at mail.gmail.com>, "Rui Gomes" > wrote: >> Exact. By the URL. >> Thanks for this tip, but i have another question: >> >> How i change maplexer.l? Can you tell me where i can find some tutorial? >> >> Thanks >> >> ----------------------------------------------------------------------------------------------------------------- >> >> What do you mean "in the html"? Do you mean your trying to set via >> URL? If so it's likely >> an oversight on my part and that keyword isn't being recognized when >> parsing URLs. I'll >> make sure that gets fixed in the source. >> >> In the meantime you can edit maplexer.l and change: >> >> pixels >> to >> pixels >> >> and then recompile... >> >> Steve >> >>>>> "Rui Gomes" 11/07/08 9:47 PM >>> >> Hi... >> >> I have a problem: >> >> I put the tolerance units of a layer i the .map file using the layer >> keyword: >> >> TOLERANCEUNITS pixels >> >> and work fine. But if i try to do the same in the html i recive the >> following error message: >> >> getSymbol(): Symbol definition error. Parsing error near (pixels):(line 1) >> >> And this error only happen whith the tag "pixels". I use feet, meters, >> kilometers and dd and all of them works fine. Why pixels don work? >> >> >> Thanks and sorry for my English. >> -- >> Rui Gomes >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From szekerest at gmail.com Mon Nov 17 12:40:57 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 17 Nov 2008 21:40:57 +0100 Subject: [mapserver-users] Mapscript C# threadsafety issue? In-Reply-To: <7BA6F57E003ADF4EA12DAA3043BB13D43B1789@geoexchange.DesLauriers.local> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B1789@geoexchange.DesLauriers.local> Message-ID: Hi, I don't think if there were any significant change in the codebase in this regard. However many of the issues are handled by locks according to http://mapserver.gis.umn.edu/docs/faq/thread_safety . However I consider we could possibly improve the code further by avoiding the need of the global resources/locks to improve the performance, but many of these are dedicated to the dependent libraries which cannot be easily controlled by the mapserver project itself. Best regards, Tamas 2008/11/17 Nelson Soto : > Is this still an existing issue with Mapscript C#? Are there any other > limitations to this version of the Mapscript that I should be aware of? > > > > Thank you, > > Nelson > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pgiannini at bytewise.it Mon Nov 17 13:34:53 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Mon, 17 Nov 2008 22:34:53 +0100 (CET) Subject: [mapserver-users] TRANSPARENCY PROBLEM In-Reply-To: <342498.6174.qm@web62005.mail.re1.yahoo.com> References: <36519.89.97.235.106.1226941040.squirrel@localhost.localdomain> <342498.6174.qm@web62005.mail.re1.yahoo.com> Message-ID: <50145.82.53.168.106.1226957693.squirrel@localhost.localdomain> John, what do you mean when you say "transparent colored polygon"? ........... pg On Lun, Novembre 17, 2008 18:16, John Kummun wrote: > hi Pietro, > I made some changes you suggested but i only get faded layer. I want to be > able to see through it to see the aerial photo. I tried COLOR -1 -1 -1 but > it makes the polygon hollow...my doesn't like that. He wants transparent > colored polygon. I hope you understand what i am trying say. Here is the > mapfile again. Please copy and make changes you feel is the best for me: > MAP > ?NAME 'School_boundary' > ?SIZE 800 650 > ?STATUS ON > ?EXTENT? 347683.125124 1652890.274125 458837.845673 1759026.124282 > ?UNITS feet > ?FONTSET '../fonts/fonts.list' > ?SYMBOLSET '../symbols/symbol.sym' > ???? TRANSPARENT ON > ?IMAGETYPE PNG > ?QUERYMAP > ??STATUS ON > ??STYLE SELECTED > ?END > ?WEB > ?????? IMAGEURL "/ms4w/tmp/ms_tmp/" > ?????? IMAGEPATH "/ms4w/tmp/ms_tmp/" > ?END > ?LEGEND > ??STATUS ON > ?END > > ? LAYER > ??? NAME 'School_district' > ??? TYPE POLYGON > ??? DATA > '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp' > ??? METADATA > ????? 'wms_title' 'school_boundary' > ??? END > ??? STATUS DEFAULT > ??? TRANSPARENCY 25 > ??? #MAXSCALE 2000000 > ??? LABELITEM 'NAME' > ??? CLASS > ?????? NAME 'school_district' > ?????? SYMBOL 0 > ?????? SIZE 2 > ?????? OUTLINECOLOR 0 255 170 > ?????? COLOR 224 255 255 > ??? LABEL > ????? TYPE TRUETYPE > ????? FONT arial > ????? SIZE 8 > ????? COLOR 233 122 100 > ????? ANGLE 0 > ????? POSITION CC > ????? MINDISTANCE 250 > ????? BUFFER 1 > ????? WRAP " " > ???? END > ??? END > ? END > END > ? > thanks > John > > --- On Mon, 11/17/08, Pietro Giannini wrote: > > From: Pietro Giannini > Subject: Re: [mapserver-users] TRANSPARENCY PROBLEM > To: mapserver-users at lists.osgeo.org > Date: Monday, November 17, 2008, 8:57 AM > > Hi john, > simply omit the whole STYLE in the class, this make the layer transparent. > Or, if this seems dirty, set COLOR -1 -1 -1 and OUTLINECOLOR -1 -1 -1. > In fact the TRANSPARENCY 1 render a very faded layer, while TRANSPARENCY 0 > is like TRANSPARENCY 100... > > (TRANSPARENCY is deprecated in ms5, use OPACITY) > > let me know, ciao > .....................................pg > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > On Lun, Novembre 17, 2008 17:00, ntiamoah bernard wrote: >> Hi guys, >> I need suggestions for the following problem: >> ? >> ?I want to put transparency on polygon layer so that aerial photo could > be >> seen below it. I have tried TRANSPARECY and OPACITY but i only get faded >> not transparent layer. My imagetype is PNG. Here is the mapfile >> ? >> MAP >> ?NAME 'School_boundary' >> ?SIZE 800 650 >> ?STATUS ON >> ?EXTENT? 347683.125124 1652890.274125 458837.845673 1759026.124282 >> ?UNITS feet >> ?FONTSET '../fonts/fonts.list' >> ?SYMBOLSET '../symbols/symbol.sym' >> ??? OUTPUTFORMAT >> ??? NAME 'png' >> ??? DRIVER GD/PNG >> ??? IMAGEMODE RGBA >> ??? EXTENSION "png" >> ??? FORMATOPTION "FULL_RESOLUTION=TRUE" >> ??? FORMATOPTION "INTERLACE=OFF" >> ??? TRANSPARENT ON >> ??? END #end outputformat >> ?#IMAGETYPE PNG >> ?QUERYMAP >> ??STATUS ON >> ??STYLE SELECTED >> ?END >> ?WEB >> ?????? IMAGEURL "/ms4w/tmp/ms_tmp/" >> ?????? IMAGEPATH "/ms4w/tmp/ms_tmp/" >> ?END >> ?LEGEND >> ??STATUS ON >> ?END >> >> ? LAYER >> ??? NAME 'School_district' >> ??? TYPE POLYGON >> ??? DATA >> > '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp' >> ??? METADATA >> ????? 'wms_title' 'school_boundary' >> ??? END >> ??? STATUS DEFAULT >> ??? TRANSPARENCY 20 >> ??? #MAXSCALE 2000000 >> ??? LABELITEM 'NAME' >> ??? CLASS >> ?????? NAME 'esn_boundary' >> ?????? STYLE >> ???????? SYMBOL 0 >> ???????? SIZE 2 >> ???????? OUTLINECOLOR 0 255 170 >> ???????? COLOR 224 255 255 >> ?????? END >> ???? LABEL >> ????? TYPE TRUETYPE >> ????? FONT arial >> ????? SIZE 8 >> ????? COLOR 233 122 100 >> ????? ANGLE 0 >> ????? POSITION CC >> ????? MINDISTANCE 250 >> ????? BUFFER 1 >> ????? WRAP " " >> ???? END >> ??? END >> ? END >> END >> ? >> Thanks >> John >> Indiana >> >> >> _______________________________________________ >> 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 zachc1980 at gmail.com Mon Nov 17 14:56:03 2008 From: zachc1980 at gmail.com (zach cruise) Date: Mon, 17 Nov 2008 17:56:03 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: <491E082F.9090601@gatewaygeomatics.com> References: <491E082F.9090601@gatewaygeomatics.com> Message-ID: looks like mod_fastcgi is not an option with ms4w and oracle 10. anyway it had little benefits. i now got mapserver 5.2 and 4.8: i thought 5.2 had native built-in support for oracle 10, but it is giving me "OracleSpatial is not supported" error. i also thought 4.8 could get ogr support for oracle 10 by following the steps on http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g. 4.8 connects, but returns multiple ORA-xxxx errors. so: do i have to install oracle 10 client locally and make changes to httpd.conf for 5.2 to work? how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from (select GEOMETRY from STATES where NAME = 'New York')") any performance difference between native built-in and ogr supports? On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna wrote: > zach cruise wrote: >> >> does current ms4w with fastcgi work with oracle 10? >> >> here're warnings >> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi >> >> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to18394152.html >> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, >> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get >> overlap result error") >> >> if not, any workarounds? > > I tested and wrote that note...and am not aware of a workaround yet. You > should also send this question to the MS4W mailing list (subscribe at: > http://lists.maptools.org/mailman/listinfo/ms4w-users) > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From zachc1980 at gmail.com Mon Nov 17 16:34:26 2008 From: zachc1980 at gmail.com (zach cruise) Date: Mon, 17 Nov 2008 19:34:26 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: References: <491E082F.9090601@gatewaygeomatics.com> Message-ID: btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than returning multiple ora-xxxx errors, 4.8 also returns "web template error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is even for only shapefile maps. error goes away when i switch back to normal libmap.dll. On Mon, Nov 17, 2008 at 5:56 PM, zach cruise wrote: > looks like mod_fastcgi is not an option with ms4w and oracle 10. > anyway it had little benefits. > > i now got mapserver 5.2 and 4.8: > i thought 5.2 had native built-in support for oracle 10, but it is > giving me "OracleSpatial is not supported" error. i also thought 4.8 > could get ogr support for oracle 10 by following the steps on > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g. > 4.8 connects, but returns multiple ORA-xxxx errors. > > so: > do i have to install oracle 10 client locally and make changes to > httpd.conf for 5.2 to work? > how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from > (select GEOMETRY from STATES where NAME = 'New York')") > any performance difference between native built-in and ogr supports? > > On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna > wrote: >> zach cruise wrote: >>> >>> does current ms4w with fastcgi work with oracle 10? >>> >>> here're warnings >>> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi >>> >>> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to18394152.html >>> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, >>> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get >>> overlap result error") >>> >>> if not, any workarounds? >> >> I tested and wrote that note...and am not aware of a workaround yet. You >> should also send this question to the MS4W mailing list (subscribe at: >> http://lists.maptools.org/mailman/listinfo/ms4w-users) >> >> >> -- >> Jeff McKenna >> FOSS4G Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From cheung.jackey at gmail.com Mon Nov 17 16:55:04 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Tue, 18 Nov 2008 08:55:04 +0800 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: <49218AA5.9050706@swoodbridge.com> References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> Message-ID: Steve, Thanks for the advise, but we've tried the Arial font already in the first test, it's just the same. We thought it was the fribidi2's problem since 0.19.1 doesn't have their configure script changed, and tried the 0.10.9, but it's all the same, every word is broken. On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge < woodbri at swoodbridge.com> wrote: > Jackey, > > Try locating a different font. if the text is being rendered as glyphs and > they look correct, but is missing the joining information, it is likely that > the font you are using does not include the joining glyphs. > > If you are using a windows machine, try getting mapserver via the fonts.txt > file to point to the arial.ttf in the fonts folder. And change you FONT > "..." to select the windows arial font. This assumes that you can display > arabic text correctly using the arial font from a windows application like > excel. > > -Steve W. > > Jackey Cheung wrote: > >> Greetings! >> >> >> We've build the MapServer 5.2 on a Linux server, with fribidi2 0.19.1, to >> try show Arabic labels. But the words has been broken down to characters >> in >> the generated images (line.png). Then we've tried on a MS4W 2.3.0 server, >> but the images (ms4w.png) are even worse. >> >> We are using PostGIS, and the database is using UTF8 (pgpr.png), while all >> Arabic data can be shown correctly (pg.png) on my English Windows XP, and >> >> we've tried some more machines, or on IE, to make sure that Arabic text in >> database are really UTF8. >> >> Here's the images: http://www3.mapasia.com/jackout/ara.png >> >> >> The part of the map file is as follow, where the "arbic-trans" is a Arabic >> TrueType font named "Arabic Transparent": >> LABEL >> ANGLE FOLLOW >> PRIORITY [priority] >> ENCODING "UTF-8" >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> TYPE TRUETYPE >> FONT "arbic-trans" >> SIZE 7 >> POSITION AUTO >> PARTIALS FALSE >> MINDISTANCE 500 >> BUFFER 1 >> MINFEATURESIZE 50 >> END >> >> Could anyone please help. >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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 blake at hailmail.net Mon Nov 17 17:07:44 2008 From: blake at hailmail.net (Dane Springmeyer) Date: Mon, 17 Nov 2008 17:07:44 -0800 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> Message-ID: Jackey, I don't have experience rendering arabic fonts, but I wonder if the ticket for supporting Indic Fonts might provide some clues for your further testing: http://trac.osgeo.org/mapserver/ticket/2591 Dane On Nov 17, 2008, at 4:55 PM, Jackey Cheung wrote: > Steve, > > Thanks for the advise, but we've tried the Arial font already in the > first test, it's just the same. We thought it was the fribidi2's > problem since 0.19.1 doesn't have their configure script changed, > and tried the 0.10.9, but it's all the same, every word is broken. > > > On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge > wrote: > Jackey, > > Try locating a different font. if the text is being rendered as > glyphs and they look correct, but is missing the joining > information, it is likely that the font you are using does not > include the joining glyphs. > > If you are using a windows machine, try getting mapserver via the > fonts.txt file to point to the arial.ttf in the fonts folder. And > change you FONT "..." to select the windows arial font. This assumes > that you can display arabic text correctly using the arial font from > a windows application like excel. > > -Steve W. > > Jackey Cheung wrote: > Greetings! > > > We've build the MapServer 5.2 on a Linux server, with fribidi2 > 0.19.1, to > try show Arabic labels. But the words has been broken down to > characters in > the generated images (line.png). Then we've tried on a MS4W 2.3.0 > server, > but the images (ms4w.png) are even worse. > > We are using PostGIS, and the database is using UTF8 (pgpr.png), > while all > Arabic data can be shown correctly (pg.png) on my English Windows > XP, and > > we've tried some more machines, or on IE, to make sure that Arabic > text in > database are really UTF8. > > Here's the images: http://www3.mapasia.com/jackout/ara.png > > > The part of the map file is as follow, where the "arbic-trans" is a > Arabic > TrueType font named "Arabic Transparent": > LABEL > ANGLE FOLLOW > PRIORITY [priority] > ENCODING "UTF-8" > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT "arbic-trans" > SIZE 7 > POSITION AUTO > PARTIALS FALSE > MINDISTANCE 500 > BUFFER 1 > MINFEATURESIZE 50 > END > > Could anyone please help. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 zachc1980 at gmail.com Mon Nov 17 17:21:29 2008 From: zachc1980 at gmail.com (zach cruise) Date: Mon, 17 Nov 2008 20:21:29 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: References: <491E082F.9090601@gatewaygeomatics.com> Message-ID: troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll: shp2img -m oracle.map -o oracle.png -all_debug 10 msOracleSpatialLayerOpen called with: GEOMETRY from STATES using unique srid 90112 msOracleSpatialLayerOpen. Shared connection not available. Creating one. msConnPoolRegister(layername,username/password at databasename,019A68E8) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing OracleSpatial DATA variable. Must be:'geometry_column FROM table_name [USING UNIQUE SRID srid# FUNCTION]' or 'geometry_column FROM (SELECT stmt) [USING UNIQUE SRID srid# FUNCTION]'. If want to set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or NONE. Your data statement: GEOM from STATES using unique srid 90112 On Mon, Nov 17, 2008 at 7:34 PM, zach cruise wrote: > btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than > returning multiple ora-xxxx errors, 4.8 also returns "web template > error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is > even for only shapefile maps. error goes away when i switch back to > normal libmap.dll. > > On Mon, Nov 17, 2008 at 5:56 PM, zach cruise wrote: >> looks like mod_fastcgi is not an option with ms4w and oracle 10. >> anyway it had little benefits. >> >> i now got mapserver 5.2 and 4.8: >> i thought 5.2 had native built-in support for oracle 10, but it is >> giving me "OracleSpatial is not supported" error. i also thought 4.8 >> could get ogr support for oracle 10 by following the steps on >> http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g. >> 4.8 connects, but returns multiple ORA-xxxx errors. >> >> so: >> do i have to install oracle 10 client locally and make changes to >> httpd.conf for 5.2 to work? >> how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from >> (select GEOMETRY from STATES where NAME = 'New York')") >> any performance difference between native built-in and ogr supports? >> >> On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna >> wrote: >>> zach cruise wrote: >>>> >>>> does current ms4w with fastcgi work with oracle 10? >>>> >>>> here're warnings >>>> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi >>>> >>>> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to18394152.html >>>> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, >>>> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get >>>> overlap result error") >>>> >>>> if not, any workarounds? >>> >>> I tested and wrote that note...and am not aware of a workaround yet. You >>> should also send this question to the MS4W mailing list (subscribe at: >>> http://lists.maptools.org/mailman/listinfo/ms4w-users) >>> >>> >>> -- >>> Jeff McKenna >>> FOSS4G Consulting and Training Services >>> http://www.gatewaygeomatics.com/ >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > From cheung.jackey at gmail.com Mon Nov 17 21:17:28 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Tue, 18 Nov 2008 13:17:28 +0800 Subject: [mapserver-users] Arabic labeling problem again?!!! In-Reply-To: <48C68E80.9020106@swoodbridge.com> References: <334070.67813.qm@web58212.mail.re3.yahoo.com> <48C68E80.9020106@swoodbridge.com> Message-ID: We've build the MapServer 5.2 on a Linux server, with fribidi2 0.19.1, to try show Arabic labels. But the words are not joined. Then we've tried on an MS4W 2.3.0 server, it's worse. We are using PostGIS, and the database is using UTF8 (pgpr.png), while all Arabic data can be shown correctly on my English Windows XP, and we've tried some more machines, or on IE, to make sure that Arabic text in database are really UTF8. Here's the images: http://www3.mapasia.com/jackout/ara.png The part of the map file is as follow, where the "arbic-trans" is a Arabic TrueType font named "Arabic Transparent": LABEL ANGLE FOLLOW PRIORITY [priority] ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arbic-trans" SIZE 7 POSITION AUTO PARTIALS FALSE MINDISTANCE 500 BUFFER 1 MINFEATURESIZE 50 END Any clue? On Tue, Sep 9, 2008 at 10:56 PM, Stephen Woodbridge wrote: > Hello Saka, > > There are a lot of pieces that you have to get working together to get this > to work: > > 1) mapserver 5.2 MUST be built with fribidi2 support. I beleieve this is > also designated as version fribidi-0.19.1 > > 2) A typetype font file that contains the shape gliphs that you might need > along with the characters that you need to display. > > 3) And I'm sure this works with UTF-8, but unsure about other encodings. > > 4) your data converted to UTF-8 if it is in some other encoding > > 5) and finally you mapfile label definition which specifies an encoding of > utf-8. > > You might get other variations of this to work, I would be interested in > hearing your reports of you can get others to work. I have sucessfully > gotten the above to work. > > Best regards, > -Stephen Woodbridge > > Saka Royban wrote: > >> >> Hi all. >> I've asked this problem in MS4W mailing list but no success. it sounds it >> originally relates to mapserver >> According to what History.txt for MS4W2.2.8 says, problem for arabic and >> hebrew languages has been solved by using UTF8. But i couldn't get a good >> result. >> In fact, UTF8 doesn't show letters correctly (just some symbols). i have >> tried lots of fonts but the same result. >> in current version, the problem of joining letters have been solved >> because i can get result using 'ISO8859-6' encoding which is for arabic but >> now this encoding changes some of letters with each other. >> In last version, 'Windows-1256' encoding (for arabic) worked well for >> showing letters just they were separate not joint. but in cuurent versions >> this encoding just shows some symbols. >> I'm confused. maybe i should setup sth which i don't do or i don't know >> sth else. >> that would be my appreciate to help me because it is really a need. Maps >> without labels have less usage. >> Thanks in advance >> (See attachments) >> My Mapfile: LABEL >> TYPE TrueType >> FONT timesnewromans >> ENCODING 'windows-1256' >> SIZE 12 >> END >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at gmail.com Mon Nov 17 23:01:27 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Tue, 18 Nov 2008 15:01:27 +0800 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: <49218AA5.9050706@swoodbridge.com> References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> Message-ID: I've located the problem, it seems that the TTF font (Arabic Transparent) is not 100% unicode safe. And maybe I've messed something up, so that the font Arial didn't produce the correct result. But now I can use Arial to produce image. However, there still seems to be a slight problem (well, I'm not sure whether it is a proble, since I can't read Arabic). When the label has an angle, the words are broken a bit. Although they are using the joined character but there are tiny gaps between them. On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge < woodbri at swoodbridge.com> wrote: > Jackey, > > Try locating a different font. if the text is being rendered as glyphs and > they look correct, but is missing the joining information, it is likely that > the font you are using does not include the joining glyphs. > > If you are using a windows machine, try getting mapserver via the fonts.txt > file to point to the arial.ttf in the fonts folder. And change you FONT > "..." to select the windows arial font. This assumes that you can display > arabic text correctly using the arial font from a windows application like > excel. > > -Steve W. > > Jackey Cheung wrote: > >> Greetings! >> >> >> We've build the MapServer 5.2 on a Linux server, with fribidi2 0.19.1, to >> try show Arabic labels. But the words has been broken down to characters >> in >> the generated images (line.png). Then we've tried on a MS4W 2.3.0 server, >> but the images (ms4w.png) are even worse. >> >> We are using PostGIS, and the database is using UTF8 (pgpr.png), while all >> Arabic data can be shown correctly (pg.png) on my English Windows XP, and >> >> we've tried some more machines, or on IE, to make sure that Arabic text in >> database are really UTF8. >> >> Here's the images: http://www3.mapasia.com/jackout/ara.png >> >> >> The part of the map file is as follow, where the "arbic-trans" is a Arabic >> TrueType font named "Arabic Transparent": >> LABEL >> ANGLE FOLLOW >> PRIORITY [priority] >> ENCODING "UTF-8" >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> TYPE TRUETYPE >> FONT "arbic-trans" >> SIZE 7 >> POSITION AUTO >> PARTIALS FALSE >> MINDISTANCE 500 >> BUFFER 1 >> MINFEATURESIZE 50 >> END >> >> Could anyone please help. >> >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: line.jpg Type: image/jpeg Size: 5171 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: angle.jpg Type: image/jpeg Size: 7199 bytes Desc: not available URL: From cheung.jackey at gmail.com Mon Nov 17 23:57:36 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Tue, 18 Nov 2008 15:57:36 +0800 Subject: [mapserver-users] Problem making mapserv on Linux with fribidi Message-ID: Greetings! We've tried to build MapServer on our Linux test server, and it goes fine with no error reported. However, when we put it to test, all Arabic words are broken but the character sequence is correctly ordered from right to left (attached jpg). We've tried to download the latest version from MapServer's and FriBidi's official site and done it again, still no success. The box is a CentOS 5.1, and here's the command line we've used: ./configure \ --with-jpeg \ --with-png \ --with-freetype \ --with-proj \ --with-geos \ --with-ogr \ --with-gdal \ --with-curl \ --with-tiff \ --with-gd \ --with-libiconv \ --with-zlib \ --with-xpm \ --with-agg=/usr/local/agg \ --with-grass \ --with-httpd=/usr/local/apache/bin/httpd \ --with-php=/usr/local/php \ --with-postgis=/usr/local/pgsql/bin/pg_config \ --with-fribidi-config=/usr/local/lib/pk and here's the mapfile: MAP SHAPEPATH "/map/map" FONTSET "/map/fonts.list" SYMBOLSET "/map/symbols.list" UNITS DD EXTENT -180 -90 180 90 OUTPUTFORMAT NAME "AGGA" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA TRANSPARENT ON EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END IMAGETYPE AGGA IMAGECOLOR 255 255 255 PROJECTION "init=epsg:4326" END WEB IMAGEPATH "/map/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "12" STATUS DEFAULT TYPE POLYGON TRANSFORM FALSE FEATURE POINTS 0 0 0 400 400 400 400 0 0 0 END END CLASS STYLE COLOR 220 220 220 END END END LAYER NAME "12" STATUS DEFAULT TYPE ANNOTATION TRANSFORM FALSE FEATURE POINTS 350 350 END TEXT "12 ???? ??? ??? ?????" END CLASS LABEL ANGLE AUTO ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arabic-trad" SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE END END END LAYER NAME "16" STATUS DEFAULT TYPE ANNOTATION TRANSFORM FALSE FEATURE POINTS 250 250 END TEXT "16 ???? ??? ??? ?????" END CLASS LABEL ANGLE AUTO ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arabic-trad" SIZE 16 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE END END END LAYER NAME "20" STATUS DEFAULT TYPE ANNOTATION TRANSFORM FALSE FEATURE POINTS 150 150 END TEXT "20 ???? ??? ??? ?????" END CLASS LABEL ANGLE AUTO ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arabic-trad" SIZE 20 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE END END END LAYER NAME "24" STATUS DEFAULT TYPE ANNOTATION TRANSFORM FALSE FEATURE POINTS 50 50 END TEXT "24 ???? ??? ??? ?????" END CLASS LABEL ANGLE AUTO ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arabic-trad" SIZE 24 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE END END END END Someone please shed me so light. Many thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: text.jpg Type: image/jpeg Size: 5359 bytes Desc: not available URL: From pgiannini at bytewise.it Tue Nov 18 01:36:00 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 18 Nov 2008 10:36:00 +0100 (CET) Subject: [mapserver-users] TRANSPARENCY PROBLEM In-Reply-To: <322942.55624.qm@web32504.mail.mud.yahoo.com> References: <50145.82.53.168.106.1226957693.squirrel@localhost.localdomain> <322942.55624.qm@web32504.mail.mud.yahoo.com> Message-ID: <49244.192.168.1.60.1227000960.squirrel@localhost.localdomain> Also you must set the transparency (opacity in ms5) at LAYER level. The scale is from 1 - very transparent, almost invisible - to 100 - full color. I use this as mapfile: _______________________ map ... imagetype png ... outputformat name png driver "gd/png" mimetype "image/png" imagemode rgb extension "png" end ... layer ... transparency 20 # from 1 to 100 ... end ... end ____________________________ No matter set the TRANSPARENT ON at map level let me know ciao .................................... pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mar, Novembre 18, 2008 01:16, ntiamoah bernard wrote: > I mean transparent but not completely transparent > > --- On Mon, 11/17/08, Pietro Giannini wrote: > > From: Pietro Giannini > Subject: Re: [mapserver-users] TRANSPARENCY PROBLEM > To: mapserver-users at lists.osgeo.org > Date: Monday, November 17, 2008, 1:34 PM > > John, > what do you mean when you say "transparent colored polygon"? > ........... pg > > > On Lun, Novembre 17, 2008 18:16, John Kummun wrote: >> hi Pietro, >> I made some changes you suggested but i only get faded layer. I want to >> be >> able to see through it to see the aerial photo. I tried COLOR -1 -1 -1 >> but >> it makes the polygon hollow...my doesn't like that. He wants > transparent >> colored polygon. I hope you understand what i am trying say. Here is the >> mapfile again. Please copy and make changes you feel is the best for me: >> MAP >> ?NAME 'School_boundary' >> ?SIZE 800 650 >> ?STATUS ON >> ?EXTENT? 347683.125124 1652890.274125 458837.845673 1759026.124282 >> ?UNITS feet >> ?FONTSET '../fonts/fonts.list' >> ?SYMBOLSET '../symbols/symbol.sym' >> ???? TRANSPARENT ON >> ?IMAGETYPE PNG >> ?QUERYMAP >> ??STATUS ON >> ??STYLE SELECTED >> ?END >> ?WEB >> ?????? IMAGEURL "/ms4w/tmp/ms_tmp/" >> ?????? IMAGEPATH "/ms4w/tmp/ms_tmp/" >> ?END >> ?LEGEND >> ??STATUS ON >> ?END >> >> ? LAYER >> ??? NAME 'School_district' >> ??? TYPE POLYGON >> ??? DATA >> > '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp' >> ??? METADATA >> ????? 'wms_title' 'school_boundary' >> ??? END >> ??? STATUS DEFAULT >> ??? TRANSPARENCY 25 >> ??? #MAXSCALE 2000000 >> ??? LABELITEM 'NAME' >> ??? CLASS >> ?????? NAME 'school_district' >> ?????? SYMBOL 0 >> ?????? SIZE 2 >> ?????? OUTLINECOLOR 0 255 170 >> ?????? COLOR 224 255 255 >> ??? LABEL >> ????? TYPE TRUETYPE >> ????? FONT arial >> ????? SIZE 8 >> ????? COLOR 233 122 100 >> ????? ANGLE 0 >> ????? POSITION CC >> ????? MINDISTANCE 250 >> ????? BUFFER 1 >> ????? WRAP " " >> ???? END >> ??? END >> ? END >> END >> ? >> thanks >> John >> >> --- On Mon, 11/17/08, Pietro Giannini wrote: >> >> From: Pietro Giannini >> Subject: Re: [mapserver-users] TRANSPARENCY PROBLEM >> To: mapserver-users at lists.osgeo.org >> Date: Monday, November 17, 2008, 8:57 AM >> >> Hi john, >> simply omit the whole STYLE in the class, this make the layer >> transparent. >> Or, if this seems dirty, set COLOR -1 -1 -1 and OUTLINECOLOR -1 -1 -1. >> In fact the TRANSPARENCY 1 render a very faded layer, while TRANSPARENCY >> 0 >> is like TRANSPARENCY 100... >> >> (TRANSPARENCY is deprecated in ms5, use OPACITY) >> >> let me know, ciao >> .....................................pg >> >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> >> >> On Lun, Novembre 17, 2008 17:00, ntiamoah bernard wrote: >>> Hi guys, >>> I need suggestions for the following problem: >>> ? >>> ?I want to put transparency on polygon layer so that aerial photo > could >> be >>> seen below it. I have tried TRANSPARECY and OPACITY but i only get > faded >>> not transparent layer. My imagetype is PNG. Here is the mapfile >>> ? >>> MAP >>> ?NAME 'School_boundary' >>> ?SIZE 800 650 >>> ?STATUS ON >>> ?EXTENT? 347683.125124 1652890.274125 458837.845673 1759026.124282 >>> ?UNITS feet >>> ?FONTSET '../fonts/fonts.list' >>> ?SYMBOLSET '../symbols/symbol.sym' >>> ??? OUTPUTFORMAT >>> ??? NAME 'png' >>> ??? DRIVER GD/PNG >>> ??? IMAGEMODE RGBA >>> ??? EXTENSION "png" >>> ??? FORMATOPTION "FULL_RESOLUTION=TRUE" >>> ??? FORMATOPTION "INTERLACE=OFF" >>> ??? TRANSPARENT ON >>> ??? END #end outputformat >>> ?#IMAGETYPE PNG >>> ?QUERYMAP >>> ??STATUS ON >>> ??STYLE SELECTED >>> ?END >>> ?WEB >>> ?????? IMAGEURL "/ms4w/tmp/ms_tmp/" >>> ?????? IMAGEPATH "/ms4w/tmp/ms_tmp/" >>> ?END >>> ?LEGEND >>> ??STATUS ON >>> ?END >>> >>> ? LAYER >>> ??? NAME 'School_district' >>> ??? TYPE POLYGON >>> ??? DATA >>> >> > '/ms4w/apps/GeoMOOSE/maps_countydemo/social_service/school_boundaries.shp' >>> ??? METADATA >>> ????? 'wms_title' 'school_boundary' >>> ??? END >>> ??? STATUS DEFAULT >>> ??? TRANSPARENCY 20 >>> ??? #MAXSCALE 2000000 >>> ??? LABELITEM 'NAME' >>> ??? CLASS >>> ?????? NAME 'esn_boundary' >>> ?????? STYLE >>> ???????? SYMBOL 0 >>> ???????? SIZE 2 >>> ???????? OUTLINECOLOR 0 255 170 >>> ???????? COLOR 224 255 255 >>> ?????? END >>> ???? LABEL >>> ????? TYPE TRUETYPE >>> ????? FONT arial >>> ????? SIZE 8 >>> ????? COLOR 233 122 100 >>> ????? ANGLE 0 >>> ????? POSITION CC >>> ????? MINDISTANCE 250 >>> ????? BUFFER 1 >>> ????? WRAP " " >>> ???? END >>> ??? END >>> ? END >>> END >>> ? >>> Thanks >>> John >>> Indiana >>> >>> >>> _______________________________________________ >>> 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 Michael.Smith at usace.army.mil Tue Nov 18 03:42:49 2008 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Tue, 18 Nov 2008 06:42:49 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: Message-ID: Zach, Your DATA statement is almost correct. If you are going to use the UNIQUE keyword (for supporting queries), you must put a column name after UNIQUE and before the SRID. Either of these would work: DATA ' GEOM from STATES using UNIQUE ID srid 90112' or DATA ' GEOM from STATES using srid 90112' Assuming you have a column named ID, of course. Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 11/17/08 8:21 PM, "zach cruise" wrote: > troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll: > shp2img -m oracle.map -o oracle.png -all_debug 10 > msOracleSpatialLayerOpen called with: GEOMETRY from STATES using > unique srid 90112 > msOracleSpatialLayerOpen. Shared connection not available. Creating one. > msConnPoolRegister(layername,username/password at databasename,019A68E8) > msOracleSpatialLayerFreeItemInfo was called. > msOracleSpatialLayerWhichShapes was called. > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing > OracleSpatial DATA variable. Must be:'geometry_column FROM table_name > [USING UNIQUE SRID srid# FUNCTION]' or 'geometry_column FROM > (SELECT stmt) [USING UNIQUE SRID srid# FUNCTION]'. If want to > set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or > NONE. Your data statement: GEOM from STATES using unique srid 90112 > > On Mon, Nov 17, 2008 at 7:34 PM, zach cruise wrote: >> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than >> returning multiple ora-xxxx errors, 4.8 also returns "web template >> error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is >> even for only shapefile maps. error goes away when i switch back to >> normal libmap.dll. >> >> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise wrote: >>> looks like mod_fastcgi is not an option with ms4w and oracle 10. >>> anyway it had little benefits. >>> >>> i now got mapserver 5.2 and 4.8: >>> i thought 5.2 had native built-in support for oracle 10, but it is >>> giving me "OracleSpatial is not supported" error. i also thought 4.8 >>> could get ogr support for oracle 10 by following the steps on >>> http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g>>> . >>> 4.8 connects, but returns multiple ORA-xxxx errors. >>> >>> so: >>> do i have to install oracle 10 client locally and make changes to >>> httpd.conf for 5.2 to work? >>> how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from >>> (select GEOMETRY from STATES where NAME = 'New York')") >>> any performance difference between native built-in and ogr supports? >>> >>> On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna >>> wrote: >>>> zach cruise wrote: >>>>> >>>>> does current ms4w with fastcgi work with oracle 10? >>>>> >>>>> here're warnings >>>>> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi >>>>> >>>>> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to1 >>>>> 8394152.html >>>>> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, >>>>> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get >>>>> overlap result error") >>>>> >>>>> if not, any workarounds? >>>> >>>> I tested and wrote that note...and am not aware of a workaround yet. You >>>> should also send this question to the MS4W mailing list (subscribe at: >>>> http://lists.maptools.org/mailman/listinfo/ms4w-users) >>>> >>>> >>>> -- >>>> Jeff McKenna >>>> FOSS4G Consulting and Training Services >>>> http://www.gatewaygeomatics.com/ >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.ellett at statkart.no Tue Nov 18 04:05:46 2008 From: thomas.ellett at statkart.no (Tellett) Date: Tue, 18 Nov 2008 04:05:46 -0800 (PST) Subject: [MAPSERVER-USERS] Problem TEMPLATE to use getfeatureinfo.html In-Reply-To: <20081117181254.91857cba@kmail.crpf.fr> References: <20081117181254.91857cba@kmail.crpf.fr> Message-ID: <20558306.post@talk.nabble.com> Hi Tio, The 'ttt' template should exist but it should be blank. Open an empty document in notepad or textpad etc and save that empty document as 'ttt.html'. Each layer in the mapfile has to reference a template in order for that layer to be considered queryable by mapserver. If you want your getfeatureinfo results to be presented in html format however, you will have to write an html template that fits your data (with header and footer if you want multiple results returned). If all your layers reference the 'ttt' template, the only output formats for getfeatureinfo results you can use are text/plain and text/gml. hope that helps a little, Tom Hello I try to use the example provided by getfeatureinfo.html Mapfish.org I joined the mail 3 files: map.js configuration layers with getfeaturesinfo http://www.nomorepasting.com/getpaste.php?pasteid=21979 websig_norm.map: server configuration wms I have an error in execution: Content-type: application / vnd.ogc.se_xml msReturnPage (): Unable to access file. ttt.html -- View this message in context: http://www.nabble.com/Problem-TEMPLATE-to-use-getfeatureinfo.html-tp20543794p20558306.html Sent from the Mapserver - User mailing list archive at Nabble.com. From zachc1980 at gmail.com Tue Nov 18 09:44:22 2008 From: zachc1980 at gmail.com (zach cruise) Date: Tue, 18 Nov 2008 12:44:22 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: References: Message-ID: thanks mike, but i get the same ora-xxxxx errors when using either: shp2img -m oracle.map -o oracle.png -all_debug 10 msOracleSpatialLayerOpen called with: GEOM from STATES using unique ID srid 90112 msOracleSpatialLayerOpen. Shared connection not available. Creating one. msConnPoolRegister(layername,username/password at databasename,019A68E8) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-29900: operator binding does not exist ORA-06540: PL/SQL: compilation error ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL (referenced by MDSYS.SDO_FILTER) . Query statement: SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) ),'querytype=window') = 'TRUE' . Check your data statement. using 4.8 with /ignored-libmap/oracle10g/libmap.dll. how do i tell if i have native or ogr support for oracle 10g? i also edited httpd.conf (did i need to?) from http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto, but still no luck. On Tue, Nov 18, 2008 at 6:42 AM, Smith, Michael ERDC-CRREL-NH wrote: > Zach, > > Your DATA statement is almost correct. If you are going to use the UNIQUE > keyword (for supporting queries), you must put a column name after UNIQUE > and before the SRID. > > Either of these would work: > > DATA ' GEOM from STATES using UNIQUE ID srid 90112' > > or > > DATA ' GEOM from STATES using srid 90112' > > Assuming you have a column named ID, of course. > > Mike > > > -- > Michael Smith > RSGIS Center > ERDC - CRREL > US Army Corps of Engineers > > > > > On 11/17/08 8:21 PM, "zach cruise" wrote: > >> troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll: >> shp2img -m oracle.map -o oracle.png -all_debug 10 >> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using >> unique srid 90112 >> msOracleSpatialLayerOpen. Shared connection not available. Creating one. >> msConnPoolRegister(layername,username/password at databasename,019A68E8) >> msOracleSpatialLayerFreeItemInfo was called. >> msOracleSpatialLayerWhichShapes was called. >> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing >> OracleSpatial DATA variable. Must be:'geometry_column FROM table_name >> [USING UNIQUE SRID srid# FUNCTION]' or 'geometry_column FROM >> (SELECT stmt) [USING UNIQUE SRID srid# FUNCTION]'. If want to >> set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or >> NONE. Your data statement: GEOM from STATES using unique srid 90112 >> >> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise wrote: >>> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than >>> returning multiple ora-xxxx errors, 4.8 also returns "web template >>> error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is >>> even for only shapefile maps. error goes away when i switch back to >>> normal libmap.dll. >>> >>> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise wrote: >>>> looks like mod_fastcgi is not an option with ms4w and oracle 10. >>>> anyway it had little benefits. >>>> >>>> i now got mapserver 5.2 and 4.8: >>>> i thought 5.2 had native built-in support for oracle 10, but it is >>>> giving me "OracleSpatial is not supported" error. i also thought 4.8 >>>> could get ogr support for oracle 10 by following the steps on >>>> > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g>>> > . >>>> 4.8 connects, but returns multiple ORA-xxxx errors. >>>> >>>> so: >>>> do i have to install oracle 10 client locally and make changes to >>>> httpd.conf for 5.2 to work? >>>> how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from >>>> (select GEOMETRY from STATES where NAME = 'New York')") >>>> any performance difference between native built-in and ogr supports? >>>> >>>> On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna >>>> wrote: >>>>> zach cruise wrote: >>>>>> >>>>>> does current ms4w with fastcgi work with oracle 10? >>>>>> >>>>>> here're warnings >>>>>> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi >>>>>> >>>>>> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to1 >>>>>> 8394152.html >>>>>> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, >>>>>> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get >>>>>> overlap result error") >>>>>> >>>>>> if not, any workarounds? >>>>> >>>>> I tested and wrote that note...and am not aware of a workaround yet. You >>>>> should also send this question to the MS4W mailing list (subscribe at: >>>>> http://lists.maptools.org/mailman/listinfo/ms4w-users) >>>>> >>>>> >>>>> -- >>>>> Jeff McKenna >>>>> FOSS4G Consulting and Training Services >>>>> http://www.gatewaygeomatics.com/ >>>>> >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Jukka.Rahkonen at mmmtike.fi Tue Nov 18 09:49:04 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 18 Nov 2008 19:49:04 +0200 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? References: Message-ID: Hi, Have you checked that the SQL statement SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) ),'querytype=window') = 'TRUE' works from SQL*Plus or something else that you are using with your Oracle? If not, then investigate and adjust the DATA string accordingly. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: zach cruise L?hetetty: ti 18.11.2008 19:44 Vastaanottaja: mapserver-users at lists.osgeo.org Kopio: Richard Polk; Smith,Michael ERDC-CRREL-NH Aihe: Re: [mapserver-users] ms4w (fastcgi) and oracle 10? thanks mike, but i get the same ora-xxxxx errors when using either: shp2img -m oracle.map -o oracle.png -all_debug 10 msOracleSpatialLayerOpen called with: GEOM from STATES using unique ID srid 90112 msOracleSpatialLayerOpen. Shared connection not available. Creating one. msConnPoolRegister(layername,username/password at databasename,019A68E8) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-29900: operator binding does not exist ORA-06540: PL/SQL: compilation error ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL (referenced by MDSYS.SDO_FILTER) . Query statement: SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) ),'querytype=window') = 'TRUE' . Check your data statement. using 4.8 with /ignored-libmap/oracle10g/libmap.dll. how do i tell if i have native or ogr support for oracle 10g? i also edited httpd.conf (did i need to?) from http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto, but still no luck. On Tue, Nov 18, 2008 at 6:42 AM, Smith, Michael ERDC-CRREL-NH wrote: > Zach, > > Your DATA statement is almost correct. If you are going to use the UNIQUE > keyword (for supporting queries), you must put a column name after UNIQUE > and before the SRID. > > Either of these would work: > > DATA ' GEOM from STATES using UNIQUE ID srid 90112' > > or > > DATA ' GEOM from STATES using srid 90112' > > Assuming you have a column named ID, of course. > > Mike > > > -- > Michael Smith > RSGIS Center > ERDC - CRREL > US Army Corps of Engineers > > > > > On 11/17/08 8:21 PM, "zach cruise" wrote: > >> troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll: >> shp2img -m oracle.map -o oracle.png -all_debug 10 >> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using >> unique srid 90112 >> msOracleSpatialLayerOpen. Shared connection not available. Creating one. >> msConnPoolRegister(layername,username/password at databasename,019A68E8) >> msOracleSpatialLayerFreeItemInfo was called. >> msOracleSpatialLayerWhichShapes was called. >> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing >> OracleSpatial DATA variable. Must be:'geometry_column FROM table_name >> [USING UNIQUE SRID srid# FUNCTION]' or 'geometry_column FROM >> (SELECT stmt) [USING UNIQUE SRID srid# FUNCTION]'. If want to >> set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or >> NONE. Your data statement: GEOM from STATES using unique srid 90112 >> >> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise wrote: >>> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than >>> returning multiple ora-xxxx errors, 4.8 also returns "web template >>> error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is >>> even for only shapefile maps. error goes away when i switch back to >>> normal libmap.dll. >>> >>> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise wrote: >>>> looks like mod_fastcgi is not an option with ms4w and oracle 10. >>>> anyway it had little benefits. >>>> >>>> i now got mapserver 5.2 and 4.8: >>>> i thought 5.2 had native built-in support for oracle 10, but it is >>>> giving me "OracleSpatial is not supported" error. i also thought 4.8 >>>> could get ogr support for oracle 10 by following the steps on >>>> > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g>>> > . >>>> 4.8 connects, but returns multiple ORA-xxxx errors. >>>> >>>> so: >>>> do i have to install oracle 10 client locally and make changes to >>>> httpd.conf for 5.2 to work? >>>> how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from >>>> (select GEOMETRY from STATES where NAME = 'New York')") >>>> any performance difference between native built-in and ogr supports? >>>> >>>> On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna >>>> wrote: >>>>> zach cruise wrote: >>>>>> >>>>>> does current ms4w with fastcgi work with oracle 10? >>>>>> >>>>>> here're warnings >>>>>> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi >>>>>> >>>>>> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to1 >>>>>> 8394152.html >>>>>> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, >>>>>> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get >>>>>> overlap result error") >>>>>> >>>>>> if not, any workarounds? >>>>> >>>>> I tested and wrote that note...and am not aware of a workaround yet. You >>>>> should also send this question to the MS4W mailing list (subscribe at: >>>>> http://lists.maptools.org/mailman/listinfo/ms4w-users) >>>>> >>>>> >>>>> -- >>>>> Jeff McKenna >>>>> FOSS4G Consulting and Training Services >>>>> http://www.gatewaygeomatics.com/ >>>>> >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From zachc1980 at gmail.com Tue Nov 18 11:20:56 2008 From: zachc1980 at gmail.com (zach cruise) Date: Tue, 18 Nov 2008 14:20:56 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: References: Message-ID: sql*plus returns this error: ORA-06553: PLS-221: 'SDO_GEOM' is not a procedure or is undefined 06553. 00000 - "PLS-%s: %s" *Cause: *Action: Error at Line:x Column:x "select ID, GEOM from STATES" works though. i have oracle locator not spatial, if that matters. also column GEOM is type SDO_GEOMETRY with MDSYS.SPATIAL_INDEX. On Tue, Nov 18, 2008 at 12:49 PM, Rahkonen Jukka wrote: > Hi, > > Have you checked that the SQL statement > SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( > GEOM, MDSYS.SDO_GEOM(2003, 90112, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO > _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) ),'querytype=window') > = 'TRUE' > > works from SQL*Plus or something else that you are using with your Oracle? If not, then investigate and adjust the DATA string accordingly. > > -Jukka Rahkonen- > > > > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: zach cruise > L?hetetty: ti 18.11.2008 19:44 > Vastaanottaja: mapserver-users at lists.osgeo.org > Kopio: Richard Polk; Smith,Michael ERDC-CRREL-NH > Aihe: Re: [mapserver-users] ms4w (fastcgi) and oracle 10? > > thanks mike, but i get the same ora-xxxxx errors when using either: > > shp2img -m oracle.map -o oracle.png -all_debug 10 > msOracleSpatialLayerOpen called with: GEOM from STATES using unique ID > srid 90112 > msOracleSpatialLayerOpen. Shared connection not available. Creating one. > msConnPoolRegister(layername,username/password at databasename,019A68E8) > msOracleSpatialLayerFreeItemInfo was called. > msOracleSpatialLayerWhichShapes was called. > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: > SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM, > MDSYS.SDO_GEOM(2003, 90112, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) > ),'querytype=window') = 'TRUE' > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > ORA-29900: operator binding does not exist > ORA-06540: PL/SQL: compilation error > ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL (referenced > by MDSYS.SDO_FILTER) > . Query statement: SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( > GEOM, MDSYS.SDO_GEOM(2003, 90112, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO > _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) ),'querytype=window') > = 'TRUE' . Check your data statement. > > using 4.8 with /ignored-libmap/oracle10g/libmap.dll. how do i tell if > i have native or ogr support for oracle 10g? i also edited httpd.conf > (did i need to?) from > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto, but > still no luck. > > On Tue, Nov 18, 2008 at 6:42 AM, Smith, Michael ERDC-CRREL-NH > wrote: >> Zach, >> >> Your DATA statement is almost correct. If you are going to use the UNIQUE >> keyword (for supporting queries), you must put a column name after UNIQUE >> and before the SRID. >> >> Either of these would work: >> >> DATA ' GEOM from STATES using UNIQUE ID srid 90112' >> >> or >> >> DATA ' GEOM from STATES using srid 90112' >> >> Assuming you have a column named ID, of course. >> >> Mike >> >> >> -- >> Michael Smith >> RSGIS Center >> ERDC - CRREL >> US Army Corps of Engineers >> >> >> >> >> On 11/17/08 8:21 PM, "zach cruise" wrote: >> >>> troubleshooting info on 4.8 box with /ignored-libmap/oracle10g/libmap.dll: >>> shp2img -m oracle.map -o oracle.png -all_debug 10 >>> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using >>> unique srid 90112 >>> msOracleSpatialLayerOpen. Shared connection not available. Creating one. >>> msConnPoolRegister(layername,username/password at databasename,019A68E8) >>> msOracleSpatialLayerFreeItemInfo was called. >>> msOracleSpatialLayerWhichShapes was called. >>> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing >>> OracleSpatial DATA variable. Must be:'geometry_column FROM table_name >>> [USING UNIQUE SRID srid# FUNCTION]' or 'geometry_column FROM >>> (SELECT stmt) [USING UNIQUE SRID srid# FUNCTION]'. If want to >>> set the FUNCTION statement you can use: FILTER, RELATE, GEOMRELATE or >>> NONE. Your data statement: GEOM from STATES using unique srid 90112 >>> >>> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise wrote: >>>> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other than >>>> returning multiple ora-xxxx errors, 4.8 also returns "web template >>>> error" if i use /ignored-libmap/oracle10g/libmap.dll. this error is >>>> even for only shapefile maps. error goes away when i switch back to >>>> normal libmap.dll. >>>> >>>> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise wrote: >>>>> looks like mod_fastcgi is not an option with ms4w and oracle 10. >>>>> anyway it had little benefits. >>>>> >>>>> i now got mapserver 5.2 and 4.8: >>>>> i thought 5.2 had native built-in support for oracle 10, but it is >>>>> giving me "OracleSpatial is not supported" error. i also thought 4.8 >>>>> could get ogr support for oracle 10 by following the steps on >>>>> >> http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g>>> >> . >>>>> 4.8 connects, but returns multiple ORA-xxxx errors. >>>>> >>>>> so: >>>>> do i have to install oracle 10 client locally and make changes to >>>>> httpd.conf for 5.2 to work? >>>>> how do i find correct srid for 4.8 to work? (DATA "GEOMETRY from >>>>> (select GEOMETRY from STATES where NAME = 'New York')") >>>>> any performance difference between native built-in and ogr supports? >>>>> >>>>> On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna >>>>> wrote: >>>>>> zach cruise wrote: >>>>>>> >>>>>>> does current ms4w with fastcgi work with oracle 10? >>>>>>> >>>>>>> here're warnings >>>>>>> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi >>>>>>> >>>>>>> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-Windows-to1 >>>>>>> 8394152.html >>>>>>> in testing this was successful with PostgreSQL 8.3.1 / PostGIS 1.3.3, >>>>>>> but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: "mod_fcgid: get >>>>>>> overlap result error") >>>>>>> >>>>>>> if not, any workarounds? >>>>>> >>>>>> I tested and wrote that note...and am not aware of a workaround yet. You >>>>>> should also send this question to the MS4W mailing list (subscribe at: >>>>>> http://lists.maptools.org/mailman/listinfo/ms4w-users) >>>>>> >>>>>> >>>>>> -- >>>>>> Jeff McKenna >>>>>> FOSS4G Consulting and Training Services >>>>>> http://www.gatewaygeomatics.com/ >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From dmorissette at mapgears.com Tue Nov 18 11:38:38 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 18 Nov 2008 14:38:38 -0500 Subject: [mapserver-users] help with WMS_LAYER_GROUP In-Reply-To: References: Message-ID: <492319BE.1010501@mapgears.com> Hi Steve, Which version of MapServer do you use? There was an issue in V5.0.0 and older that was fixed only in 5.0.1. I wonder if that's what you're running into: http://trac.osgeo.org/mapserver/ticket/2312 If you are using 5.0.1 or a more recent release then perhaps you could file a ticket with a short mapfile to reproduce and we'll have a look. Daniel Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I'm using WMS_LAYER_GROUP in METADATA instead of GROUP keyword > I have three layers in my mapFile > > The first layer has > "WMS_LAYER_GROUP" "/Risques/" > > Second has > "WMS_LAYER_GROUP" "/Infrastructures/Sant?" > > Third has > "WMS_LAYER_GROUP" "/Infrastructures/Scolaires" > > When I connect to my WMS with Gaia or gvSig I got the following hoerarchy > > > Where PACC Sant? is the wms_title of the MAP. > * Keyword Group is not in the layer defition > > Someone has more details on WMS_LAYER_GROUP? > thanks, > Steve > > > > > /Steve Toutant, M. Sc./ > Analyste en g?omatique > Secteur environnement > Direction des risques biologiques, environnementaux et occupationnels > Institut national de sant? publique du Qu?bec > 945, avenue Wolfe > Qu?bec, Qc G1V 5B3 > > T?l.: (418) 650-5115 #5281 > Fax.: (418) 654-3144_ > __steve.toutant at inspq.qc.ca_ _ > __http://www.inspq.qc.ca_ > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Tue Nov 18 12:03:46 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 18 Nov 2008 15:03:46 -0500 Subject: [mapserver-users] Mapscript QueryByAttributes & Rendering problem. In-Reply-To: References: Message-ID: <49231FA2.4040802@mapgears.com> I'm not setup to test this, but it seems to me that calling msResetErrorList() in the exception handling block might do the trick. Daniel asd asd wrote: > I came across a problem while using python mapscript's queryByAttribute > function. I have a layer containing the fieldname "STATE" amongst > others. Issuing: > > try: > layer.queryByAttribute(map,"STA","AZ",MS_MULTIPLE) > except: > print "attribute error" > pass > > By now the mapserver exception is caught for the faulty attribute. If a > draw function is now issued: > > map.draw() > > The following error occurs: > > : msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msDBFGetItemIndex(): DBASE file error. Item 'STA' not found. > > I reproduced it many times and in many occasions. I tried to clear any > result cache but in vain. Shouldn;t mapserver handle the situation more > logically? > -- Daniel Morissette http://www.mapgears.com/ From woodbri at swoodbridge.com Tue Nov 18 12:14:23 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 18 Nov 2008 15:14:23 -0500 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> Message-ID: <4923221F.9060504@swoodbridge.com> Jackey, I'm not sure how much more I can help other than to say: 1) make sure you are building with fribidi2 version 0.19.1+ 2) Since character are generated individually on rotated labels, there may be an issue. Thomas Bonfort would be the person that implemented the AGG. You should probably try doing this with the AGG driver if you have not tried that yet. That is what I'm using. 3) try to locate a better/different font that supports Arabic -Steve Jackey Cheung wrote: > Steve, > > Thanks for the advise, but we've tried the Arial font already in the > first test, it's just the same. We thought it was the fribidi2's problem > since 0.19.1 doesn't have their configure script changed, and tried the > 0.10.9, but it's all the same, every word is broken. > > > On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge > > wrote: > > Jackey, > > Try locating a different font. if the text is being rendered as > glyphs and they look correct, but is missing the joining > information, it is likely that the font you are using does not > include the joining glyphs. > > If you are using a windows machine, try getting mapserver via the > fonts.txt file to point to the arial.ttf in the fonts folder. And > change you FONT "..." to select the windows arial font. This assumes > that you can display arabic text correctly using the arial font from > a windows application like excel. > > -Steve W. > > Jackey Cheung wrote: > > Greetings! > > > We've build the MapServer 5.2 on a Linux server, with fribidi2 > 0.19.1, to > try show Arabic labels. But the words has been broken down to > characters in > the generated images (line.png). Then we've tried on a MS4W > 2.3.0 server, > but the images (ms4w.png) are even worse. > > We are using PostGIS, and the database is using UTF8 (pgpr.png), > while all > Arabic data can be shown correctly (pg.png) on my English > Windows XP, and > > we've tried some more machines, or on IE, to make sure that > Arabic text in > database are really UTF8. > > Here's the images: http://www3.mapasia.com/jackout/ara.png > > > The part of the map file is as follow, where the "arbic-trans" > is a Arabic > TrueType font named "Arabic Transparent": > LABEL > ANGLE FOLLOW > PRIORITY [priority] > ENCODING "UTF-8" > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT "arbic-trans" > SIZE 7 > POSITION AUTO > PARTIALS FALSE > MINDISTANCE 500 > BUFFER 1 > MINFEATURESIZE 50 > END > > Could anyone please help. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From dmorissette at mapgears.com Tue Nov 18 12:28:43 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 18 Nov 2008 15:28:43 -0500 Subject: [mapserver-users] MS 5.2 make error: " yes: invalid option -- f " In-Reply-To: References: Message-ID: <4923257B.3000809@mapgears.com> It seems that the --with-ld-shared config option is not bullet-proof... it is intended to be used to specify the link command to use to build shared libs, and calling it with no argument results in the link command being set to "yes"... and then you get the error that you got. If you don't need it (and I don't think you do) then take it out. I have also modified the configure script in trunk (future 5.4) to ignore --with-ld-shared if it is passed with no argument to avoid this error. Daniel Eduardo Kanegae wrote: > Hi all, > > I?m trying to build MapServer 5.2.0 under CentOS 5 using the following config: > > ./configure --disable-ignore-missing-data --enable-point-z-m > --disable-gcov --with-freetype=/usr/local/bin/freetype-config > -with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-xpm=/usr > --with-libiconv=/usr/local --with-gd=/usr/local --with-pdf=/usr/local > --with-agg=/usr/local/src/agg --with-eppl --with-proj --with-threads > --with-geos --with-ogr --with-gdal --without-tiff > --with-postgis=/usr/bin/pg_config --with-ming=/usr/local --with-wms > --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos > --with-curl-config=/usr/bin/curl-config > --with-xml2-config=/usr/bin/xml2-config --with-fastcgi=/usr/local > --with-httpd=/usr/sbin/httpd --with-php=/usr --with-ld-shared 2>&1 | > tee configure.log > > But, after some time running make I got: > > *** > yes: invalid option -- f > *** > This message appears just after the line: > *** > yes -fprofile-arcs -ftest-coverage -o php_mapscript.so > php_mapscript_util.o php_mapscript.o mapscript_i.o php_regex.o > -L/usr/src/webmapit/mapserver-5.2.0 -lmapserver -L/usr/local/lib > -lfcgi -L/usr/lib -lxml2 -lz -lm -L/usr/kerberos/lib -lcurl > -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl > -lcrypto -lz -L/usr/local/lib -lming -L/usr/lib -lpq -L/usr/lib > -ljpeg -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/lib -lXpm > -lX11 -L/usr/local/lib -liconv -L/usr/local/lib -lgdal > -L/usr/local/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr -L/usr/lib > -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/local/lib -lxerces-c > -lpthread -L/usr/local/GeoExpressSDK6/lib/Release > -L/usr/local/GeoExpressSDK6/3rd-party/lib/Release -lltidsdk -lpthread > -lltikdu -L/usr/local/lib -lNCSEcw -lNCSCnet -lNCSUtil -L/usr > -L/usr/lib -ljasper -L/usr/lib -lhdf5 -L/usr -L/usr/lib -logdi31 > -L/usr -L/usr/lib -lnetcdf -lpq -L/usr/lib -lpq -lpthread -lm -lrt > -ldl -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto > -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -L/usr/lib/mysql > -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto > -L/usr/local/lib -lgeos_c -lpthread -lproj -L/usr/local/src/agg/src > -lagg -L/usr/local/lib -lpdf -L/usr/local/lib -lgd -L/usr/lib -ljpeg > -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/lib -lXpm -lX11 > -L/usr/local/lib -liconv -L/usr/local/lib -liconv -L/usr/lib -lz -lm > -lstdc++ > *** > and then "make[1]: *** [php_mapscript.so] Error 1" is shown. > > I already tried to setup CCFLAGS and CXXFLAGS to gcc34/g++34 or > mpicc/mpicxx compilers but the same error happens. > > Does anybody has any tip? > > best regards, > -- Daniel Morissette http://www.mapgears.com/ From tchaddad at gmail.com Tue Nov 18 12:50:47 2008 From: tchaddad at gmail.com (TC Haddad) Date: Tue, 18 Nov 2008 12:50:47 -0800 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: <25de2c7c0811181232k65b886d0iadda6331dcc8dc2c@mail.gmail.com> References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> <4923221F.9060504@swoodbridge.com> <25de2c7c0811181232k65b886d0iadda6331dcc8dc2c@mail.gmail.com> Message-ID: <25de2c7c0811181250t19c12d45w16bef048c68436e4@mail.gmail.com> on re-reading Steve W's point #2 - perhaps the specific bug is that there is a difference with when in the sequence of drawing, OUTLINECOLOR is applied i) when ANGLE is AUTO, OUTLINECOLOR is applied after the whole label is drawn ii) when ANGLE is FOLLOW, OUTLINECOLOR is applied after each letter is drawn so this ends up making a joined Arabic label look "fractured" if both OUTLINECOLOR and ANGLE FOLLOW are used at the same time. TH On Tue, Nov 18, 2008 at 12:32 PM, TC Haddad wrote: > Jackey, > > I can read Arabic, and from the most recent attachments you sent I > think the labels are printing fine. That is, I do see the problem you > are referring to, but the cause is not the font (the joined letters > are as they should be). > > The real problem that I see is the fact that you are using > OUTLINECOLOR. This is putting a 1 pixel white outline on *each* > letter. > > This approach works in English and languages where the letters don't > attach in printed form. But in Arabic, where whole worlds are joined, > the outline should be applied at the level of the word, not at the > level of the letter. > > As far as I know this feature does not exist in Mapserver at the > moment, so it would have to be requested. > > Tanya > > > > On Tue, Nov 18, 2008 at 12:14 PM, Stephen Woodbridge > wrote: >> Jackey, >> >> I'm not sure how much more I can help other than to say: >> >> 1) make sure you are building with fribidi2 version 0.19.1+ >> 2) Since character are generated individually on rotated labels, there may >> be an issue. Thomas Bonfort would be the person that implemented the AGG. >> You should probably try doing this with the AGG driver if you have not tried >> that yet. That is what I'm using. >> 3) try to locate a better/different font that supports Arabic >> >> -Steve >> >> Jackey Cheung wrote: >>> >>> Steve, >>> >>> Thanks for the advise, but we've tried the Arial font already in the first >>> test, it's just the same. We thought it was the fribidi2's problem since >>> 0.19.1 doesn't have their configure script changed, and tried the 0.10.9, >>> but it's all the same, every word is broken. >>> >>> >>> On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge >>> > wrote: >>> >>> Jackey, >>> >>> Try locating a different font. if the text is being rendered as >>> glyphs and they look correct, but is missing the joining >>> information, it is likely that the font you are using does not >>> include the joining glyphs. >>> >>> If you are using a windows machine, try getting mapserver via the >>> fonts.txt file to point to the arial.ttf in the fonts folder. And >>> change you FONT "..." to select the windows arial font. This assumes >>> that you can display arabic text correctly using the arial font from >>> a windows application like excel. >>> >>> -Steve W. >>> >>> Jackey Cheung wrote: >>> >>> Greetings! >>> >>> >>> We've build the MapServer 5.2 on a Linux server, with fribidi2 >>> 0.19.1, to >>> try show Arabic labels. But the words has been broken down to >>> characters in >>> the generated images (line.png). Then we've tried on a MS4W >>> 2.3.0 server, >>> but the images (ms4w.png) are even worse. >>> >>> We are using PostGIS, and the database is using UTF8 (pgpr.png), >>> while all >>> Arabic data can be shown correctly (pg.png) on my English >>> Windows XP, and >>> >>> we've tried some more machines, or on IE, to make sure that >>> Arabic text in >>> database are really UTF8. >>> >>> Here's the images: http://www3.mapasia.com/jackout/ara.png >>> >>> >>> The part of the map file is as follow, where the "arbic-trans" >>> is a Arabic >>> TrueType font named "Arabic Transparent": >>> LABEL >>> ANGLE FOLLOW >>> PRIORITY [priority] >>> ENCODING "UTF-8" >>> COLOR 0 0 0 >>> OUTLINECOLOR 255 255 255 >>> TYPE TRUETYPE >>> FONT "arbic-trans" >>> SIZE 7 >>> POSITION AUTO >>> PARTIALS FALSE >>> MINDISTANCE 500 >>> BUFFER 1 >>> MINFEATURESIZE 50 >>> END >>> >>> Could anyone please help. >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> 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 attila.borbas at gmail.com Tue Nov 18 13:52:39 2008 From: attila.borbas at gmail.com (=?ISO-8859-1?Q?Attila_Borb=E1s?=) Date: Tue, 18 Nov 2008 22:52:39 +0100 Subject: [mapserver-users] help Message-ID: <3eea87d10811181352j79002c2du793ae8127d07de30@mail.gmail.com> Hello, I ve got a big problem with php/mapscript.I ve tried a simple "hello world" example (from Beginning MapServer Open Source GIS Development) and I didn't get any error message, but the browser couldn't generate the rendered pic. I don't know what the problem could be, but all codes what I ve made had the same problem. I attached the bad codes. Thx for ur help and I'm looking forward to your answer. *The php/mapscript file:* draw(); $image->saveImage("c:/ms4w/tmp/ms_tmp/".$image_name); ?> PHP MapScript Hello World *The map file:* # "Hello World" mapfile NAME "Hello World" SIZE 400 300 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.0 -1.0 1.0 1.0 WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp/tmp/" IMAGEURL "/tmp/" END LAYER STATUS default TYPE point FEATURE POINTS 0.00 0.00 END TEXT "Hello World" END # end feature CLASS STYLE COLOR 255 0 0 END LABEL TYPE bitmap END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Nov 18 15:28:40 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 18 Nov 2008 18:28:40 -0500 Subject: [mapserver-users] help In-Reply-To: <3eea87d10811181352j79002c2du793ae8127d07de30@mail.gmail.com> References: <3eea87d10811181352j79002c2du793ae8127d07de30@mail.gmail.com> Message-ID: <49234FA8.80004@gatewaygeomatics.com> Attila Borb?s wrote: > Hello, > > I ve got a big problem with php/mapscript.I ve tried a simple "hello > world" example (from Beginning MapServer Open Source GIS Development) > and I didn't get any error message, but the browser couldn't generate > the rendered pic. I don't know what the problem could be, but all codes > what I ve made had the same problem. I attached the bad codes. Thx for > ur help and I'm looking forward to your answer. > > _The php/mapscript file:_ > > dl('php_mapscript.dll'); > > $image_name = sprintf("phpms-hello%0.6d",rand(0,999999)).".png"; > > $map = ms_newMapObj("c:/ms4w/Apache/htdocs/hello_world/hello.map"); > > $image=$map->draw(); > > $image->saveImage("c:/ms4w/tmp/ms_tmp/".$image_name); > > ?> > > > PHP MapScript Hello World > >
> src="c:/ms4w/tmp/ms_tmp/"> > > > > > _The map file:_ > > # "Hello World" mapfile > NAME "Hello World" > SIZE 400 300 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.0 -1.0 1.0 1.0 > WEB > IMAGEPATH "c:/ms4w/tmp/ms_tmp/tmp/" > IMAGEURL "/tmp/" > END > LAYER > STATUS default > TYPE point > FEATURE > POINTS 0.00 0.00 END > TEXT "Hello World" > END # end feature > CLASS > STYLE > COLOR 255 0 0 > END > LABEL > TYPE bitmap > END > END > END > END > > here are some comments: - MS4W is pre-configured for the following settings: IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" Make sure to use those settings in all of your MS4W mapfiles. - you can test that your mapfile generates a map image properly by using the shp2img commandline utility, that is included in MS4W (http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) - MS4W also comes with a small PHP file that can generate a map image (see /ms4w/Apache/htdocs/quickmap.php) -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From sjfingarfield at gmail.com Tue Nov 18 17:14:07 2008 From: sjfingarfield at gmail.com (Sam Ingarfield) Date: Wed, 19 Nov 2008 10:14:07 +0900 Subject: [mapserver-users] Mapserver segfaulting Message-ID: <33c7a1e70811181714p1a523238w399a1b05eb4502a0@mail.gmail.com> G'day; I am having a few problems with mapserver segfaulting when it tries to draw a map. Am a little stumped as to why... Am on Ubuntu 8.10, x64. Started with the packaged mapserver that came with it (5.0.x) but have moved up in the world firstly to 5.2.0 and am now using 5.3-dev from the nightly builds (this one was the 17th I think). All versions have produced the same segfault. The call the browser makes is as follows: http://192.168.0.35/cgi-bin/mapserv?map=/var/www/wa_coast.map&LAYERS=possie&FORMAT=image%2Fpng&ISBASELAYER=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=115.9375,-32.1875,117.25,-30.875&WIDTH=256&HEIGHT=256 Which returns a 500 error. Examination of the syslog produces: Nov 19 10:13:06 spoor kernel: [130315.478944] mapserv[4986]: segfault at 7fff04e39ff8 ip 00007f0efbb2ae6e sp 00007fff04e3a000 error 6 in libgdal1.5.0.so.1.12.2[7f0efb9f2000+4f4000] Any help would be appreciated. Cheers; Sam Ingarfield -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Nov 18 17:17:53 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 18 Nov 2008 20:17:53 -0500 Subject: [mapserver-users] Mapserver segfaulting In-Reply-To: <33c7a1e70811181714p1a523238w399a1b05eb4502a0@mail.gmail.com> References: <33c7a1e70811181714p1a523238w399a1b05eb4502a0@mail.gmail.com> Message-ID: <49236941.6070706@pobox.com> Sam Ingarfield wrote: > G'day; > > I am having a few problems with mapserver segfaulting when it tries to > draw a map. Am a little stumped as to why... > > Am on Ubuntu 8.10, x64. Started with the packaged mapserver that came > with it (5.0.x) but have moved up in the world firstly to 5.2.0 and am > now using 5.3-dev from the nightly builds (this one was the 17th I > think). All versions have produced the same segfault. > > The call the browser makes is as follows: > http://192.168.0.35/cgi-bin/mapserv?map=/var/www/wa_coast.map&LAYERS=possie&FORMAT=image%2Fpng&ISBASELAYER=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=115.9375,-32.1875,117.25,-30.875&WIDTH=256&HEIGHT=256 > > > Which returns a 500 error. > > Examination of the syslog produces: > Nov 19 10:13:06 spoor kernel: [130315.478944] mapserv[4986]: segfault at > 7fff04e39ff8 ip 00007f0efbb2ae6e sp 00007fff04e3a000 error 6 in > libgdal1.5.0.so.1.12.2[7f0efb9f2000+4f4000] Sam, Is the crash consistent with this request? Do other requests succeed? It looks like it is crashing in GDAL. I would suggest that you run and run mapserv at the commandline with the same request. If you can reproduce the crash that way, then try running it in gdb and getting a traceback. You may want to rebuild GDAL with debug info though that may be a hassle if you are using a pre-packaged GDAL. What input raster formats are you using? 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 cheung.jackey at gmail.com Tue Nov 18 17:27:28 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed, 19 Nov 2008 09:27:28 +0800 Subject: Fwd: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> <4923221F.9060504@swoodbridge.com> <25de2c7c0811181232k65b886d0iadda6331dcc8dc2c@mail.gmail.com> <25de2c7c0811181250t19c12d45w16bef048c68436e4@mail.gmail.com> Message-ID: Following TC's suggestion, I've done a test. With this map file layer: LAYER NAME "road" STATUS DEFAULT TYPE LINE UNITS METERS CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=ttt user=uuu password=xxx" DATA "geom FROM view_road_ar USING UNIQUE oid USING SRID=4326" LABELITEM "name" CLASS STYLE WIDTH 16 COLOR 0 0 0 ANTIALIAS TRUE END STYLE WIDTH 15.8 COLOR 255 200 64 ANTIALIAS TRUE END LABEL ANGLE FOLLOW ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 24 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE BUFFER 50 END END END With nothing changed, only change the ANGLE to AUTO and FOLLOW, the generated images confirms the different processs of ANGLE AUTO & FOLLOW. Then I've done one more test which uses ANGLE FOLLOW, but with OUTLINECOLOR removed, then generated image shows "fractured" words. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: angle_auto.jpg Type: image/jpeg Size: 11763 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: angle_follow.jpg Type: image/jpeg Size: 4527 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: no_outline.jpg Type: image/jpeg Size: 2887 bytes Desc: not available URL: From greenkov at gmail.com Tue Nov 18 17:50:29 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Tue, 18 Nov 2008 18:50:29 -0700 Subject: [mapserver-users] help In-Reply-To: <49234FA8.80004@gatewaygeomatics.com> References: <3eea87d10811181352j79002c2du793ae8127d07de30@mail.gmail.com> <49234FA8.80004@gatewaygeomatics.com> Message-ID: On 11/18/08, Jeff McKenna wrote: > Attila Borb?s wrote: > > > Hello, > > > > I ve got a big problem with php/mapscript.I ve tried a simple "hello > world" example (from Beginning MapServer Open Source GIS Development) and I > didn't get any error message, but the browser couldn't generate the rendered > pic. I don't know what the problem could be, but all codes what I ve made > had the same problem. I attached the bad codes. Thx for ur help and I'm > looking forward to your answer. > > > > _The php/mapscript file:_ > > > > > dl('php_mapscript.dll'); > > > > $image_name = > sprintf("phpms-hello%0.6d",rand(0,999999)).".png"; > > > > $map = > ms_newMapObj("c:/ms4w/Apache/htdocs/hello_world/hello.map"); > > > > $image=$map->draw(); > > > > $image->saveImage("c:/ms4w/tmp/ms_tmp/".$image_name); > > > > ?> > > > > > > PHP MapScript Hello World > > > >
> > > src="c:/ms4w/tmp/ms_tmp/"> > > > > > > > > > > _The map file:_ > > > > # "Hello World" mapfile > > NAME "Hello World" > > SIZE 400 300 > > IMAGECOLOR 249 245 186 > > IMAGETYPE png > > EXTENT -1.0 -1.0 1.0 1.0 > > WEB > > IMAGEPATH "c:/ms4w/tmp/ms_tmp/tmp/" > > IMAGEURL "/tmp/" > > END > > LAYER STATUS default > > TYPE point > > FEATURE > > POINTS 0.00 0.00 END > > TEXT "Hello World" > > END # end feature > > CLASS > > STYLE > > COLOR 255 0 0 > > END > > LABEL > > TYPE bitmap > > END > > END > > END > > END > > > > > > > > here are some comments: > > > - MS4W is pre-configured for the following settings: > > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > > Make sure to use those settings in all of your MS4W mapfiles. > > - you can test that your mapfile generates a map image properly by using > the shp2img commandline utility, that is included in MS4W > (http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img) > > - MS4W also comes with a small PHP file that can generate a map image (see > /ms4w/Apache/htdocs/quickmap.php) > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ On a related note--I wasted about 2hrs last night scratching my head as to why php/mapscript wasn't working... It turned out the php_mapscript library was from the 5.0.2 mapserver release, while the mapserver executable was 5.2.0. Alex From woodbri at swoodbridge.com Tue Nov 18 18:08:53 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 18 Nov 2008 21:08:53 -0500 Subject: Fwd: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> <4923221F.9060504@swoodbridge.com> <25de2c7c0811181232k65b886d0iadda6331dcc8dc2c@mail.gmail.com> <25de2c7c0811181250t19c12d45w16bef048c68436e4@mail.gmail.com> Message-ID: <49237535.2060303@swoodbridge.com> OK, this is great. I think I learned something new then. With ANGLE AUTO you can ask GD to draw the whole string at the specified angle. But there is not equivalent function in GD for ANGLE FOLLOW. The only way we can do that is one character at a time, changing the insertion point and angle of each character. I know Thomas has put a lot of effort into make the AGG render well integrated with mapserver. It would probably be a good idea to document this issue and the fact that the outlinecolor is what is causing in a bug. http://trac.osgeo.org/mapserver/ If you do not have an OSGeo userid, follow the link to get one first. Thank you for your patience and Thank you, Tanya, for your excellent observations on this issue. -Steve W Jackey Cheung wrote: > Following TC's suggestion, I've done a test. > > With this map file layer: > > LAYER > NAME "road" > STATUS DEFAULT > TYPE LINE > UNITS METERS > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=ttt user=uuu > password=xxx" > DATA "geom FROM view_road_ar USING > UNIQUE oid USING SRID=4326" > > LABELITEM "name" > > CLASS > STYLE > WIDTH 16 > COLOR 0 0 0 > ANTIALIAS TRUE > END > STYLE > WIDTH 15.8 > COLOR 255 200 64 > ANTIALIAS TRUE > END > LABEL > ANGLE FOLLOW > > ENCODING "UTF-8" > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT arial > SIZE 24 > ANTIALIAS TRUE > POSITION AUTO > PARTIALS FALSE > BUFFER 50 > END > END > END > > With nothing changed, only change the ANGLE to AUTO and FOLLOW, the > generated images confirms the different processs of ANGLE AUTO & FOLLOW. > Then I've done one more test which uses ANGLE FOLLOW, but with > OUTLINECOLOR removed, then generated image shows "fractured" words. > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From cheung.jackey at gmail.com Tue Nov 18 18:37:21 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed, 19 Nov 2008 10:37:21 +0800 Subject: Fwd: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: <49237535.2060303@swoodbridge.com> References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> <4923221F.9060504@swoodbridge.com> <25de2c7c0811181232k65b886d0iadda6331dcc8dc2c@mail.gmail.com> <25de2c7c0811181250t19c12d45w16bef048c68436e4@mail.gmail.com> <49237535.2060303@swoodbridge.com> Message-ID: Dear Stephen, I've filed a ticket http://trac.osgeo.org/mapserver/ticket/2812. Thank you very much for the help! Thank you TC, Stephen, and Dane. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tchaddad at gmail.com Tue Nov 18 19:21:30 2008 From: tchaddad at gmail.com (TC Haddad) Date: Tue, 18 Nov 2008 19:21:30 -0800 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> <4923221F.9060504@swoodbridge.com> <25de2c7c0811181232k65b886d0iadda6331dcc8dc2c@mail.gmail.com> <25de2c7c0811181250t19c12d45w16bef048c68436e4@mail.gmail.com> Message-ID: <25de2c7c0811181921h2b0c03del1ad4d8176689660@mail.gmail.com> Jackey I've subscribed to your ticket in case I can be of further help down the road. In the meantime, based on looking at your last example, the labels without OUTLINECOLOR are pretty good, the one thing I would recommend further is decreasing your font size by a point or two. This will minimize the occurence of small fractures that happen when the label bends around a tight curve (something almost inevitable). On Tue, Nov 18, 2008 at 5:27 PM, Jackey Cheung wrote: > Following TC's suggestion, I've done a test. > > With this map file layer: > > LAYER > NAME "road" > STATUS DEFAULT > TYPE LINE > UNITS METERS > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=ttt user=uuu > password=xxx" > DATA "geom FROM view_road_ar USING UNIQUE > oid USING SRID=4326" > > LABELITEM "name" > > CLASS > STYLE > WIDTH 16 > COLOR 0 0 0 > ANTIALIAS TRUE > END > STYLE > WIDTH 15.8 > COLOR 255 200 64 > ANTIALIAS TRUE > END > LABEL > ANGLE FOLLOW > ENCODING "UTF-8" > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT arial > SIZE 24 > ANTIALIAS TRUE > POSITION AUTO > PARTIALS FALSE > BUFFER 50 > END > END > END > > With nothing changed, only change the ANGLE to AUTO and FOLLOW, the > generated images confirms the different processs of ANGLE AUTO & FOLLOW. > Then I've done one more test which uses ANGLE FOLLOW, but with OUTLINECOLOR > removed, then generated image shows "fractured" words. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From randre at gmail.com Tue Nov 18 19:30:05 2008 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 18 Nov 2008 19:30:05 -0800 Subject: [mapserver-users] Re: [gdal-dev] Can I change SOURCE_EXTRA setting at compile time? In-Reply-To: <492372BD.20504@pobox.com> References: <9c2015090811181648ia45a6fcjec01fcee17025848@mail.gmail.com> <492366D7.4020505@pobox.com> <9c2015090811181752y3e79ec53p11c22d62c1856289@mail.gmail.com> <492372BD.20504@pobox.com> Message-ID: <9c2015090811181930n742b368doba85e6606ec1080c@mail.gmail.com> Hi Frank, You're absolutely right. Changing those values in mapresample.c to 10 removed the artifacts when using a WMS request. They're still present when the request is made via mapscript though. I need to manually code a mapscript example though, because right now I'm testing that via TileCache, and I'm not 100% certain how the image is being requested. Can you think of a reason why WMS would be different from a straight read and reproject through mapscript? cc'ing TileCache list and mapserver lists as well -- On Tue, Nov 18, 2008 at 5:58 PM, Frank Warmerdam wrote: > Roger Andr? wrote: > >> Hi Frank, >> >> I've theorized all sorts of reasons for what I'm seeing. So far none of >> them are right. Basically, if I take a really high-res epsg:4326 image, and >> serve it up through Mapserver in epsg:900913, there are instances where I >> get images back which are missing rows of pixels at the bottom of the image. >> If I reduce the resolution of the image the lines go away. I haven't yet >> figured out at what resolution the problem starts to appear. >> >> I just tested the idea of changing the values in the warper code: >> First: >> nResWinSize += 100; >> Then: >> nResWinSize += 500; >> >> Then rebuilt gdal. Didn't seem to make a difference. >> > > Roger, > > Are you sure the GDAL warper is being used? If the reprojection is being > done by MapServer it will be using the MapServer warper. > > Try changing the +- 1.0 values to larger values in the following code in > mapserver's mapresample.c: > > /* -------------------------------------------------------------------- */ > /* Project desired extents out by 2 pixels, and then strip to */ > /* available data. */ > /* -------------------------------------------------------------------- */ > memcpy( &sOrigSrcExtent, &sSrcExtent, sizeof(sSrcExtent) ); > > sSrcExtent.minx = floor(sSrcExtent.minx-1.0); > sSrcExtent.maxx = ceil (sSrcExtent.maxx+1.0); > sSrcExtent.miny = floor(sSrcExtent.miny-1.0); > sSrcExtent.maxy = ceil (sSrcExtent.maxy+1.0); > > > See if that helps. Currently there is no processing option that does > what SOURCE_EXTRA does, though it might be worth adding one. > > > 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 thomas.bonfort at gmail.com Tue Nov 18 23:29:52 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 19 Nov 2008 08:29:52 +0100 Subject: [mapserver-users] Mapserver segfaulting In-Reply-To: <49236941.6070706@pobox.com> References: <33c7a1e70811181714p1a523238w399a1b05eb4502a0@mail.gmail.com> <49236941.6070706@pobox.com> Message-ID: the shipped gcc with 8.10 does not play nice with mapserver and gdal. Try setting your compile optimisation flag to -O0 and -O2 to see if this fixes the segfault. -- thomas On Wed, Nov 19, 2008 at 02:17, Frank Warmerdam wrote: > Sam Ingarfield wrote: >> >> G'day; >> >> I am having a few problems with mapserver segfaulting when it tries to >> draw a map. Am a little stumped as to why... >> >> Am on Ubuntu 8.10, x64. Started with the packaged mapserver that came with >> it (5.0.x) but have moved up in the world firstly to 5.2.0 and am now using >> 5.3-dev from the nightly builds (this one was the 17th I think). All >> versions have produced the same segfault. >> >> The call the browser makes is as follows: >> >> http://192.168.0.35/cgi-bin/mapserv?map=/var/www/wa_coast.map&LAYERS=possie&FORMAT=image%2Fpng&ISBASELAYER=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=115.9375,-32.1875,117.25,-30.875&WIDTH=256&HEIGHT=256 >> >> >> Which returns a 500 error. >> >> Examination of the syslog produces: >> Nov 19 10:13:06 spoor kernel: [130315.478944] mapserv[4986]: segfault at >> 7fff04e39ff8 ip 00007f0efbb2ae6e sp 00007fff04e3a000 error 6 in >> libgdal1.5.0.so.1.12.2[7f0efb9f2000+4f4000] > > Sam, > > Is the crash consistent with this request? Do other requests succeed? > > It looks like it is crashing in GDAL. > > I would suggest that you run and run mapserv at the commandline with the > same request. If you can reproduce the crash that way, then try running > it in gdb and getting a traceback. You may want to rebuild GDAL with > debug info though that may be a hassle if you are using a pre-packaged GDAL. > > What input raster formats are you using? > > 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 Jukka.Rahkonen at mmmtike.fi Wed Nov 19 00:03:35 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 19 Nov 2008 10:03:35 +0200 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: Message-ID: Hi, Sorry, I cannot help you much further. I checked, however, the SQL against our Oracle 10g Spatial, and I got the same error 'SDO_GEOM' is not a procedure or is undefined. Reason is a typo in SDO_FILTER parameters. Now it reads WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003 It should read WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003 If it is not just copy and paste error then it looks like MapServer is generating bad SQL -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: zach cruise [mailto:zachc1980 at gmail.com] > L?hetetty: 18. marraskuuta 2008 21:21 > Vastaanottaja: mapserver-users at lists.osgeo.org > Kopio: Rahkonen Jukka; Richard Polk; Smith,Michael > ERDC-CRREL-NH; Jeff McKenna > Aihe: Re: [mapserver-users] ms4w (fastcgi) and oracle 10? > > sql*plus returns this error: > ORA-06553: PLS-221: 'SDO_GEOM' is not a procedure or is > undefined 06553. 00000 - "PLS-%s: %s" > *Cause: > *Action: > Error at Line:x Column:x > > "select ID, GEOM from STATES" works though. i have oracle > locator not spatial, if that matters. also column GEOM is > type SDO_GEOMETRY with MDSYS.SPATIAL_INDEX. > > On Tue, Nov 18, 2008 at 12:49 PM, Rahkonen Jukka > wrote: > > Hi, > > > > Have you checked that the SQL statement SELECT ID, GEOM FROM STATES > > WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, > > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO > > _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) > ),'querytype=window') > > = 'TRUE' > > > > works from SQL*Plus or something else that you are using > with your Oracle? If not, then investigate and adjust the > DATA string accordingly. > > > > -Jukka Rahkonen- > > > > > > > > > > > > -----Alkuper?inen viesti----- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: zach > > cruise > > L?hetetty: ti 18.11.2008 19:44 > > Vastaanottaja: mapserver-users at lists.osgeo.org > > Kopio: Richard Polk; Smith,Michael ERDC-CRREL-NH > > Aihe: Re: [mapserver-users] ms4w (fastcgi) and oracle 10? > > > > thanks mike, but i get the same ora-xxxxx errors when using either: > > > > shp2img -m oracle.map -o oracle.png -all_debug 10 > > msOracleSpatialLayerOpen called with: GEOM from STATES > using unique ID > > srid 90112 msOracleSpatialLayerOpen. Shared connection not > available. > > Creating one. > > > msConnPoolRegister(layername,username/password at databasename,019A68E8) > > msOracleSpatialLayerFreeItemInfo was called. > > msOracleSpatialLayerWhichShapes was called. > > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve > the data: > > SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM, > > MDSYS.SDO_GEOM(2003, 90112, > > > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179 > > ,-89.5166667,179,83.5166667) > > ),'querytype=window') = 'TRUE' > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > > ORA-29900: operator binding does not exist > > ORA-06540: PL/SQL: compilation error > > ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL > (referenced > > by MDSYS.SDO_FILTER) . Query statement: SELECT ID, GEOM > FROM STATES > > WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, > > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO > > _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) > ),'querytype=window') > > = 'TRUE' . Check your data statement. > > > > using 4.8 with /ignored-libmap/oracle10g/libmap.dll. how do > i tell if > > i have native or ogr support for oracle 10g? i also edited > httpd.conf > > (did i need to?) from > > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto, but > > still no luck. > > > > On Tue, Nov 18, 2008 at 6:42 AM, Smith, Michael ERDC-CRREL-NH > > wrote: > >> Zach, > >> > >> Your DATA statement is almost correct. If you are going to use the > >> UNIQUE keyword (for supporting queries), you must put a > column name > >> after UNIQUE and before the SRID. > >> > >> Either of these would work: > >> > >> DATA ' GEOM from STATES using UNIQUE ID srid 90112' > >> > >> or > >> > >> DATA ' GEOM from STATES using srid 90112' > >> > >> Assuming you have a column named ID, of course. > >> > >> Mike > >> > >> > >> -- > >> Michael Smith > >> RSGIS Center > >> ERDC - CRREL > >> US Army Corps of Engineers > >> > >> > >> > >> > >> On 11/17/08 8:21 PM, "zach cruise" wrote: > >> > >>> troubleshooting info on 4.8 box with > /ignored-libmap/oracle10g/libmap.dll: > >>> shp2img -m oracle.map -o oracle.png -all_debug 10 > >>> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using > >>> unique srid 90112 msOracleSpatialLayerOpen. Shared connection not > >>> available. Creating one. > >>> > msConnPoolRegister(layername,username/password at databasename,019A68E8 > >>> ) msOracleSpatialLayerFreeItemInfo was called. > >>> msOracleSpatialLayerWhichShapes was called. > >>> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error > >>> parsing OracleSpatial DATA variable. Must > be:'geometry_column FROM > >>> table_name [USING UNIQUE SRID srid# FUNCTION]' or > >>> 'geometry_column FROM (SELECT stmt) [USING UNIQUE SRID > >>> srid# FUNCTION]'. If want to set the FUNCTION statement > you can use: > >>> FILTER, RELATE, GEOMRELATE or NONE. Your data statement: > GEOM from > >>> STATES using unique srid 90112 > >>> > >>> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise > wrote: > >>>> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other > >>>> than returning multiple ora-xxxx errors, 4.8 also returns "web > >>>> template error" if i use > /ignored-libmap/oracle10g/libmap.dll. this > >>>> error is even for only shapefile maps. error goes away when i > >>>> switch back to normal libmap.dll. > >>>> > >>>> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise > wrote: > >>>>> looks like mod_fastcgi is not an option with ms4w and oracle 10. > >>>>> anyway it had little benefits. > >>>>> > >>>>> i now got mapserver 5.2 and 4.8: > >>>>> i thought 5.2 had native built-in support for oracle > 10, but it is > >>>>> giving me "OracleSpatial is not supported" error. i > also thought > >>>>> 4.8 could get ogr support for oracle 10 by following > the steps on > >>>>> > >> > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#ora > >> cle-10g>>> > >> . > >>>>> 4.8 connects, but returns multiple ORA-xxxx errors. > >>>>> > >>>>> so: > >>>>> do i have to install oracle 10 client locally and make > changes to > >>>>> httpd.conf for 5.2 to work? > >>>>> how do i find correct srid for 4.8 to work? (DATA > "GEOMETRY from > >>>>> (select GEOMETRY from STATES where NAME = 'New York')") any > >>>>> performance difference between native built-in and ogr supports? > >>>>> > >>>>> On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna > >>>>> wrote: > >>>>>> zach cruise wrote: > >>>>>>> > >>>>>>> does current ms4w with fastcgi work with oracle 10? > >>>>>>> > >>>>>>> here're warnings > >>>>>>> > http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi > >>>>>>> > >>>>>>> > http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-W > >>>>>>> indows-to1 > >>>>>>> 8394152.html > >>>>>>> in testing this was successful with PostgreSQL 8.3.1 > / PostGIS > >>>>>>> 1.3.3, but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: > >>>>>>> "mod_fcgid: get overlap result error") > >>>>>>> > >>>>>>> if not, any workarounds? > >>>>>> > >>>>>> I tested and wrote that note...and am not aware of a > workaround > >>>>>> yet. You should also send this question to the MS4W > mailing list (subscribe at: > >>>>>> http://lists.maptools.org/mailman/listinfo/ms4w-users) > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> Jeff McKenna > >>>>>> FOSS4G Consulting and Training Services > >>>>>> http://www.gatewaygeomatics.com/ > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> mapserver-users mailing list > >>>>>> mapserver-users at lists.osgeo.org > >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>>>>> > >>>>> > >>>> > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From richard.lehaut at crpf.fr Wed Nov 19 01:42:54 2008 From: richard.lehaut at crpf.fr (Richard LEHAUT) Date: Wed, 19 Nov 2008 10:42:54 +0100 Subject: [MAPSERVER-USERS] Problem TEMPLATE to use getfeatureinfo.html In-Reply-To: <20558306.post@talk.nabble.com> References: <20081117181254.91857cba@kmail.crpf.fr> <20558306.post@talk.nabble.com> Message-ID: Thank you. Yes I have a little advanced. I found the location where the file must be ttt.html record. As against, the answer is empty and the message server is "X-FirePHP-Data" response header not found in request response. " I stayed in format text / html. I tried to put a format model, but I have trouble positioning. How to use the default format? Thank you for assistance tio ----- Original Message ----- From: "Tellett" To: Sent: Tuesday, November 18, 2008 1:05 PM Subject: Re: [MAPSERVER-USERS] Problem TEMPLATE to use getfeatureinfo.html > > Hi Tio, > > The 'ttt' template should exist but it should be blank. Open an empty > document > in notepad or textpad etc and save that empty document as 'ttt.html'. Each > layer > in the mapfile has to reference a template in order for that layer to be > considered > queryable by mapserver. If you want your getfeatureinfo results to be > presented in > html format however, you will have to write an html template that fits > your > data > (with header and footer if you want multiple results returned). If all > your > layers > reference the 'ttt' template, the only output formats for getfeatureinfo > results you > can use are text/plain and text/gml. hope that helps a little, > > Tom > > > > From attila.borbas at gmail.com Wed Nov 19 03:05:08 2008 From: attila.borbas at gmail.com (=?ISO-8859-1?Q?Attila_Borb=E1s?=) Date: Wed, 19 Nov 2008 12:05:08 +0100 Subject: [mapserver-users] The browser can't display the rendered image Message-ID: <3eea87d10811190305m4be620bei9a77e47a5d7a867c@mail.gmail.com> Hello, Thanx for the previous answer. I ve tested my mapfiles (with quickmap.php) and they work fine, but the problem is the same. My php/mapscript code created the map image and saved it to "/ms_tmp/" but the browser couldn't display it (I got a broken img). I enclose the php/mapscript file, the mapfile and the page source.Thx for ur help. *mapfile (I created it with qgis):* MAP NAME world_raster SIZE 600 600 UNITS dd EXTENT -188.678212 -114.270312 189.321981 107.893344 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' #IMAGEMODE PC256 EXTENSION 'jpeg' END LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END WEB IMAGEPATH 'c:/ms4w/tmp/ms_tmp/' IMAGEURL 'c:/ms4w/tmp/ms_tmp/' METADATA 'wms_title' 'world_raster' 'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map& ' 'wms_srs' 'EPSG:4326' END END LAYER NAME 'world_raster' TYPE RASTER DATA 'c:/ms4w/Apache/htdocs/world_raster.tif' METADATA 'wms_title' 'world_raster' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END END END *php/mapscript code:* draw(); //output map $url = $oImage->saveWebImage(); ?> Example 1: Displaying a map *Page source (after I ran the code the html part saw the link to the image but didn't display it.):* Example 1: Displaying a map -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Wed Nov 19 03:13:31 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 19 Nov 2008 12:13:31 +0100 (CET) Subject: [mapserver-users] C# mapscript: create features programmatically Message-ID: <52587.192.168.1.60.1227093211.squirrel@localhost.localdomain> Ciao list. Anyone knows how to add dynamically a feature in a layer, working in cshap_mapscript? I must to add programmatically this features, without adding them to the layer source. Following code don't works... i.e. the new feature is not showing (map is a valid MapObject, shp a valid ShapeObject, "kriging" is a valid layer name, type of layer and kind of shape is line) layerObj kl = map.getLayerByName("kriging"); kl.addFeature(shp); imageObj imgMap = map.draw(); string fname = Guid.NewGuid().ToString(); string imgpath = map.web.imagepath + @"\" + fname + ".jpg"; if (File.Exists(imgpath)) File.Delete(imgpath); imgMap.save(imgpath, map); many thanks for your help. ciao ..............................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From pgiannini at bytewise.it Wed Nov 19 03:18:00 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 19 Nov 2008 12:18:00 +0100 (CET) Subject: [mapserver-users] The browser can't display the rendered image In-Reply-To: <3eea87d10811190305m4be620bei9a77e47a5d7a867c@mail.gmail.com> References: <3eea87d10811190305m4be620bei9a77e47a5d7a867c@mail.gmail.com> Message-ID: <52591.192.168.1.60.1227093480.squirrel@localhost.localdomain> Ciao Attila, the IMAGEURL cannot be 'c:/ms4w/tmp/ms_tmp/', it would be something like '/tmp/ms_tmp/', a URL not a local path. ciao..................... pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Novembre 19, 2008 12:05, Attila Borb?s wrote: > Hello, > > Thanx for the previous answer. I ve tested my mapfiles (with quickmap.php) > and they work fine, but the problem is the same. My php/mapscript code > created the map image and saved it to "/ms_tmp/" but the browser couldn't > display it (I got a broken img). I enclose the php/mapscript file, the > mapfile and the page source.Thx for ur help. > > *mapfile (I created it with qgis):* > MAP > NAME world_raster > SIZE 600 600 > UNITS dd > > EXTENT -188.678212 -114.270312 189.321981 107.893344 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > > IMAGECOLOR 192 192 192 > IMAGEQUALITY 95 > IMAGETYPE jpeg > OUTPUTFORMAT > NAME jpeg > DRIVER 'GD/JPEG' > MIMETYPE 'image/jpeg' > #IMAGEMODE PC256 > EXTENSION 'jpeg' > END > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > > WEB > > IMAGEPATH 'c:/ms4w/tmp/ms_tmp/' > IMAGEURL 'c:/ms4w/tmp/ms_tmp/' > > METADATA > 'wms_title' 'world_raster' > 'wms_onlineresource' > 'http://my.host.com/cgi-bin/mapserv?map=wms.map& > ' > 'wms_srs' 'EPSG:4326' > END > > END > > LAYER > NAME 'world_raster' > TYPE RASTER > DATA 'c:/ms4w/Apache/htdocs/world_raster.tif' > METADATA > 'wms_title' 'world_raster' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > END > > END > *php/mapscript code:* > define( "MAPFILE", "C:/ms4w/apps/raster/raster.map" ); > define( "MODULE", "php_mapscript.dll" ); > if(!extension_loaded("mapscript")) dl(MODULE); > $oMap = ms_newMapObj( MAPFILE ); > //draw > $oImage = $oMap->draw(); > //output map > $url = $oImage->saveWebImage(); > ?> > > > Example 1: Displaying a map > > > > > > > *Page source (after I ran the code the html part saw the link to the image > but didn't display it.):* > > > Example 1: Displaying a map > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From richard.lehaut at crpf.fr Wed Nov 19 04:29:14 2008 From: richard.lehaut at crpf.fr (Richard LEHAUT) Date: Wed, 19 Nov 2008 13:29:14 +0100 Subject: [mapserver-users] RE: Problem TEMPLATE to use getfeatureinfo.html Message-ID: <5AD3826EF8B84339B917848DB82771A5@NORM52> It thank you I see the following result. GetFeatureInfo results: Layer 'dgd' Feature 1244: gid = '1244' dgd_proid = '5403' dgd_forid = '927' dgd_prox = '517709.862932534771971' dgd_proy = '2461383.926690207794309' dgd_prosur = '168.065898751962663' ... I joined the Mapfile amended to conclude the matter. The side that gives this openlayers map.events.register('click', map, function (e) { OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait..."; var url = ccDGD.getFullRequestString({ REQUEST: "GetFeatureInfo", EXCEPTIONS: "application/vnd.ogc.se_xml", BBOX: ccDGD.map.getExtent().toBBOX(), X: e.xy.x, Y: e.xy.y, INFO_FORMAT: 'text/plain', QUERY_LAYERS: ccDGD.params.LAYERS, WIDTH: ccDGD.map.size.w, HEIGHT: ccDGD.map.size.h}); OpenLayers.loadURL(url, '', this, setHTML); OpenLayers.Event.stop(e); }); Thomas thank you for help ----- Original Message ----- From: "Thomas Ellett" To: "Richard LEHAUT" Sent: Wednesday, November 19, 2008 11:40 AM Subject: RE: Problem TEMPLATE to use getfeatureinfo.html Ok, I've changed a couple of things in the mapfile and you need to add a Couple of variables as well. I've added the code on lines 34 and 35, you can Just leave that. On line 58 you need to add a port (you can find this by clicking on the properties of the db in postgis). On line 59, you just need to add the name of the unique identifier column from your table, possibly ogc_fid? I've also commented out the bottom 2 layers, its probably easier to concentrate on 1 layer at a time. Because you have referenced a blank html (ttt.html) you need to set the info_format in the getfeatureinfo url to text/plain or text/gml. This mapfile should be correct, but you can make sure I haven't made a typo by looking at the capabilities document. Let me know how it goes, Cheers Tom -----Original Message----- From: Richard LEHAUT [mailto:richard.lehaut at crpf.fr] Sent: Wednesday, November 19, 2008 11:16 AM To: Thomas Ellett Subject: Re: Problem TEMPLATE to use getfeatureinfo.html Thank's Tio ----- Original Message ----- From: To: Sent: Wednesday, November 19, 2008 11:00 AM Subject: Problem TEMPLATE to use getfeatureinfo.html > > Hey Tio, not sure what you mean by 'tried to put a format model'? > If you want to send me a copy of your mapfile I can take a look at > that to see if theres anything wrong there, I can't really help with > openlayers client side script though as I'm not much of a programmer > I'm afraid. > > Cheers > > Tom > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: WEBSIG_NORM.map Type: application/octet-stream Size: 2328 bytes Desc: not available URL: From richard.lehaut at crpf.fr Wed Nov 19 04:35:23 2008 From: richard.lehaut at crpf.fr (Richard LEHAUT) Date: Wed, 19 Nov 2008 13:35:23 +0100 Subject: [mapserver-users] Problem TRANSPARENT LAYER OPTION Message-ID: <65F770A8AAA0428F81287BA7763A3BD0@NORM52> Hello I am trying to configure a server WMS / WFS That configuration tiolebucheron at debianvirtual:~$ /usr/lib/cgi-bin/mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG tiolebucheron at debianvirtual:~$ /usr/lib/cgi-bin/mapserv5 -v MapServer version 5.2.0 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=WCS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE tiolebucheron at debianvirtual:~$ I'm having problems that my vector layers are transparent I joined the Mapfile of layer MH Thank you for your help Tiolebucheron -------------- next part -------------- A non-text attachment was scrubbed... Name: WEBSIG_NORM.map Type: application/octet-stream Size: 2310 bytes Desc: not available URL: From HWIRTH at co.benton.mn.us Wed Nov 19 05:03:50 2008 From: HWIRTH at co.benton.mn.us (Heather Wirth) Date: Wed, 19 Nov 2008 07:03:50 -0600 Subject: [mapserver-users] Join to CSV Message-ID: I am trying to join my parcel shapefile to tax information stored as a .csv file. I have follwed the instructions at http://mapserver.gis.umn.edu/docs/reference/mapfile/join with no success. Here is the Layer object from the mapfile: LAYER NAME 'Parcels' DATA './Parcels.shp' STATUS DEFAULT TYPE LINE JOIN NAME "TaxInfo" TABLE "./20081008.csv" FROM "TaxPIN" TO "PIN" TYPE ONE-TO-ONE END CLASS NAME 'Parcel Boundary' TYPE LINE STYLE COLOR 3 3 3 OUTLINECOLOR 0 0 0 WIDTH 1 END END END Here is the html identify template:
Here is what is an example of what is returned when I identify the parcels: Parcel Information Parcel ID: 040023800 Owner Name: [TaxInfo_PRIM TAXP NAME]", "[TaxInfo_PRIM TAXP NAME 2] Using the tool does not cause any sort of an error. I'm hoping that there is something simple I am missing. Any help would be much appreciated. Benton County, MN From NSoto at plotplans.com Wed Nov 19 06:10:56 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Wed, 19 Nov 2008 09:10:56 -0500 Subject: [mapserver-users] Mapserver Thread Safety Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B184A@geoexchange.DesLauriers.local> So I kind of feel stupid at the moment... I had one understanding of thread safety and now I think I have another My first understanding was that if multiple users were accessing a site programmed very basically (not with any type of "multi-threading" code) but simply the fact that multiple users were making requests that they could potentially bump into requests and not return the same result if only one user were making requests. Now, I think it means specifically programming for a "multi-threaded" application so that you are using multiple code paths asynchronously in a given request would not be recommended without placing code-locks for various features. Can someone please clarify for me what the thread-safety is in regards to Mapserver and Mapscript C#, PHP and Java and perhaps clarify one thing; If I am programming without implementing multiple threads in code but plan to have multiple users accessing the site, will they bump into any requests? Sorry for the ignorance, and thank you.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Nov 19 06:11:37 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 19 Nov 2008 09:11:37 -0500 Subject: [mapserver-users] Join to CSV In-Reply-To: References: Message-ID: <49241E99.2050909@gatewaygeomatics.com> Heather Wirth wrote: > I am trying to join my parcel shapefile to tax information stored as a > .csv file. I have follwed the instructions at > http://mapserver.gis.umn.edu/docs/reference/mapfile/join with no > success. > > Here is the Layer object from the mapfile: > > LAYER > NAME 'Parcels' > DATA './Parcels.shp' > STATUS DEFAULT > TYPE LINE > JOIN > NAME "TaxInfo" > TABLE "./20081008.csv" > FROM "TaxPIN" > TO "PIN" > TYPE ONE-TO-ONE > END > CLASS > NAME 'Parcel Boundary' > TYPE LINE > STYLE > COLOR 3 3 3 > OUTLINECOLOR 0 0 0 > WIDTH 1 > END > END > END > > Here is the html identify template: > > > > > > > > > > > > Here is what is an example of what is returned when I identify the > parcels: > > Parcel Information > Parcel ID: 040023800 > Owner Name: [TaxInfo_PRIM TAXP NAME]", "[TaxInfo_PRIM TAXP NAME 2] > > Using the tool does not cause any sort of an error. I'm hoping that > there is something simple I am missing. Any help would be much > appreciated. > > Benton County, MN I think you should also include the ogrinfo '-summary' output for both your shp and your csv (as shown on the web page you referred to), so people on this list can see all field names. I'm guessing that your csv contains a "PRIM TAXP NAME 2" field right? Maybe those spaces in the column-name are causing trouble...I might try to see what happens if you rename the column with a simpler name without spaces. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From umberto.nicoletti at gmail.com Wed Nov 19 06:35:47 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 19 Nov 2008 15:35:47 +0100 Subject: [mapserver-users] Mapserver Thread Safety In-Reply-To: <7BA6F57E003ADF4EA12DAA3043BB13D43B184A@geoexchange.DesLauriers.local> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B184A@geoexchange.DesLauriers.local> Message-ID: <75b4b93e0811190635o1a4fb14ax712612c14c5cd364@mail.gmail.com> On Wed, Nov 19, 2008 at 3:10 PM, Nelson Soto wrote: > So I kind of feel stupid at the moment? > > I had one understanding of thread safety and now I think I have another that is the effect of learning, congrats! > > My first understanding was that if multiple users were accessing a site > programmed very basically (not with any type of "multi-threading" code) but > simply the fact that multiple users were making requests that they could > potentially bump into requests and not return the same result if only one > user were making requests. > > Now, I think it means specifically programming for a "multi-threaded" > application so that you are using multiple code paths asynchronously in a > given request would not be recommended without placing code-locks for > various features. Depending on the platform you are using both statements can be true as they are different cases of multi-threading. In the case of mapserver the checklist is as follows: If you are using mapserver as a CGI then thread safety is not an issue for you because each request will be handled by a new process that will die immedately after so basically there is no chance of 'bumping into others' requests' as you call it. Same if you're using python, because of a quirk in the python interpreter called GIL (Global Interpreter Lock) which stops the whole python interpreter when entering external code such as the C shared library of mapcript. If you are using fastcgi AND have compiled mapserver with thread support also no need to worry, unless you use one of the unsafe components listed in the thread safety FAQ on the mapserver web site. If you are using Java/C#/PHP/Ruby AND have compiled mapserver with thread support you don't have to worry that much actually because mapserver will lock properly when entering the same thread-unsafe code paths listed in the FAQ cited above. So your question eventually boils down to: should I also place locks in my C#/Java code? In general I would say it is not (I don't in my java app) provided that you don't share mapscript objects between requests: don't create a mapObj at the beginning of the session and reuse it for all the session. Create a new mapObj with every request instead. HTH, Umberto > > Can someone please clarify for me what the thread-safety is in regards to > Mapserver and Mapscript C#, PHP and Java and perhaps clarify one thing; If I > am programming without implementing multiple threads in code but plan to > have multiple users accessing the site, will they bump into any requests? > > > > Sorry for the ignorance, and thank you.. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From NSoto at plotplans.com Wed Nov 19 06:43:51 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Wed, 19 Nov 2008 09:43:51 -0500 Subject: [mapserver-users] Mapserver Thread Safety In-Reply-To: <75b4b93e0811190635o1a4fb14ax712612c14c5cd364@mail.gmail.com> References: <7BA6F57E003ADF4EA12DAA3043BB13D43B184A@geoexchange.DesLauriers.local> <75b4b93e0811190635o1a4fb14ax712612c14c5cd364@mail.gmail.com> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B1853@geoexchange.DesLauriers.local> Sounds good. Thanks, Umberto! -----Original Message----- From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] Sent: Wednesday, November 19, 2008 9:36 AM To: Nelson Soto Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver Thread Safety On Wed, Nov 19, 2008 at 3:10 PM, Nelson Soto wrote: > So I kind of feel stupid at the moment... > > I had one understanding of thread safety and now I think I have another that is the effect of learning, congrats! > > My first understanding was that if multiple users were accessing a site > programmed very basically (not with any type of "multi-threading" code) but > simply the fact that multiple users were making requests that they could > potentially bump into requests and not return the same result if only one > user were making requests. > > Now, I think it means specifically programming for a "multi-threaded" > application so that you are using multiple code paths asynchronously in a > given request would not be recommended without placing code-locks for > various features. Depending on the platform you are using both statements can be true as they are different cases of multi-threading. In the case of mapserver the checklist is as follows: If you are using mapserver as a CGI then thread safety is not an issue for you because each request will be handled by a new process that will die immedately after so basically there is no chance of 'bumping into others' requests' as you call it. Same if you're using python, because of a quirk in the python interpreter called GIL (Global Interpreter Lock) which stops the whole python interpreter when entering external code such as the C shared library of mapcript. If you are using fastcgi AND have compiled mapserver with thread support also no need to worry, unless you use one of the unsafe components listed in the thread safety FAQ on the mapserver web site. If you are using Java/C#/PHP/Ruby AND have compiled mapserver with thread support you don't have to worry that much actually because mapserver will lock properly when entering the same thread-unsafe code paths listed in the FAQ cited above. So your question eventually boils down to: should I also place locks in my C#/Java code? In general I would say it is not (I don't in my java app) provided that you don't share mapscript objects between requests: don't create a mapObj at the beginning of the session and reuse it for all the session. Create a new mapObj with every request instead. HTH, Umberto > > Can someone please clarify for me what the thread-safety is in regards to > Mapserver and Mapscript C#, PHP and Java and perhaps clarify one thing; If I > am programming without implementing multiple threads in code but plan to > have multiple users accessing the site, will they bump into any requests? > > > > Sorry for the ignorance, and thank you.. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ramses2k at gmx.de Wed Nov 19 07:06:43 2008 From: ramses2k at gmx.de (ramses2k) Date: Wed, 19 Nov 2008 16:06:43 +0100 Subject: [mapserver-users] draw dynamic symbols on one layer References: <3eea87d10811181352j79002c2du793ae8127d07de30@mail.gmail.com><49234FA8.80004@gatewaygeomatics.com> Message-ID: <04e801c94a58$6ef57f90$0902a8c0@diebels> Dear List, I'm trying to change a symbol for ONE point layer called 'poi' dynamically within PHP/Mapscript. After searching the mail archive and trying a few variations of what seemed correct, I'm not succedding. The map only shows one type of symbol.LAYER NAME "poi" STATUS on TYPE point LABELCACHE on TOLERANCEUNITS METERSEND php script: public static function AddPoints ( $map, $qresult ) { $this_layer = $map->getLayerByName('poi'); //QueryLayer $i = 0; foreach($qresult as $row) { $poi[$i] = ms_newPointObj(); $ln[$i] = ms_newLineObj(); $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT); $poi[$i]->setXY($row[1],$row[2]); $ln[$i]->add($poi[$i]); $shp[$i]->add($ln[$i]); $shp[$i]->set(index, $row[0]); if ($row[7] == 1) // show red symbol { $class = ms_newClassObj($this_layer); $class->set("name",depot_red); $class->setExpression("rot"); $class->set("template",dummy.html); $style=ms_newStyleObj($class); $style->set("symbolname",depot_red); //the gif } else // show green symbol { $class = ms_newClassObj($this_layer); $class->set("name",depot_green); $class->setExpression("green"); $class->set("template",dummy.html); $style=ms_newStyleObj($class); $style->set("symbolname",depot_green); //the gif } $this_layer->addFeature( $shp[$i] ); $i++; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From zachc1980 at gmail.com Wed Nov 19 11:11:02 2008 From: zachc1980 at gmail.com (zach cruise) Date: Wed, 19 Nov 2008 14:11:02 -0500 Subject: [mapserver-users] ms4w (fastcgi) and oracle 10? In-Reply-To: References: Message-ID: thanks. if i use (DATA "GEOM from STATES using none") from http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto ("Using this keyword triggers Mapserver to don't use any geometry function or spatial operator"), i get white image and changing map extent doesn't help. if i call it via cgi/webserver, i get http 500 internal server error. shp2img -m oracle.map -o oracle.png -e -170 80 -30 -10 -all_debug 10 msOracleSpatialLayerOpen called with: GEOM from STATES using none msOracleSpatialLayerOpen. Shared connection not available. Creating one. msConnPoolRegister(layername,username/password at databasename,019A68E8) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, GEOM FROM STATES msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerClose was called. Layer connection: username/password at databasename msOracleSpatialLayerClose. Cleaning layername handlers. msOracleSpatialLayerClose. Cleaning Oracle handlers. msConnPoolRelease(layername,username/password at databasename,019A68E8) msOracleSpatialLayerClose was called. Layer connection: username/password at databasname msConnPoolClose(username/password at databasename,019A68E8) On Wed, Nov 19, 2008 at 3:03 AM, Rahkonen Jukka wrote: > Hi, > > Sorry, I cannot help you much further. I checked, however, the SQL against our Oracle 10g Spatial, and I got the same error 'SDO_GEOM' is not a procedure or is undefined. Reason is a typo in SDO_FILTER parameters. Now it reads > WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003 > It should read > WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003 > > If it is not just copy and paste error then it looks like MapServer is generating bad SQL > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j?: zach cruise [mailto:zachc1980 at gmail.com] >> L?hetetty: 18. marraskuuta 2008 21:21 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Kopio: Rahkonen Jukka; Richard Polk; Smith,Michael >> ERDC-CRREL-NH; Jeff McKenna >> Aihe: Re: [mapserver-users] ms4w (fastcgi) and oracle 10? >> >> sql*plus returns this error: >> ORA-06553: PLS-221: 'SDO_GEOM' is not a procedure or is >> undefined 06553. 00000 - "PLS-%s: %s" >> *Cause: >> *Action: >> Error at Line:x Column:x >> >> "select ID, GEOM from STATES" works though. i have oracle >> locator not spatial, if that matters. also column GEOM is >> type SDO_GEOMETRY with MDSYS.SPATIAL_INDEX. >> >> On Tue, Nov 18, 2008 at 12:49 PM, Rahkonen Jukka >> wrote: >> > Hi, >> > >> > Have you checked that the SQL statement SELECT ID, GEOM FROM STATES >> > WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, >> > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO >> > _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) >> ),'querytype=window') >> > = 'TRUE' >> > >> > works from SQL*Plus or something else that you are using >> with your Oracle? If not, then investigate and adjust the >> DATA string accordingly. >> > >> > -Jukka Rahkonen- >> > >> > >> > >> > >> > >> > -----Alkuper?inen viesti----- >> > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: zach >> > cruise >> > L?hetetty: ti 18.11.2008 19:44 >> > Vastaanottaja: mapserver-users at lists.osgeo.org >> > Kopio: Richard Polk; Smith,Michael ERDC-CRREL-NH >> > Aihe: Re: [mapserver-users] ms4w (fastcgi) and oracle 10? >> > >> > thanks mike, but i get the same ora-xxxxx errors when using either: >> > >> > shp2img -m oracle.map -o oracle.png -all_debug 10 >> > msOracleSpatialLayerOpen called with: GEOM from STATES >> using unique ID >> > srid 90112 msOracleSpatialLayerOpen. Shared connection not >> available. >> > Creating one. >> > >> msConnPoolRegister(layername,username/password at databasename,019A68E8) >> > msOracleSpatialLayerFreeItemInfo was called. >> > msOracleSpatialLayerWhichShapes was called. >> > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve >> the data: >> > SELECT ID, GEOM FROM STATES WHERE SDO_FILTER( GEOM, >> > MDSYS.SDO_GEOM(2003, 90112, >> > >> NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-179 >> > ,-89.5166667,179,83.5166667) >> > ),'querytype=window') = 'TRUE' >> > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: >> > ORA-29900: operator binding does not exist >> > ORA-06540: PL/SQL: compilation error >> > ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL >> (referenced >> > by MDSYS.SDO_FILTER) . Query statement: SELECT ID, GEOM >> FROM STATES >> > WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOM(2003, 90112, >> > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO >> > _ORDINATE_ARRAY(-179,-89.5166667,179,83.5166667) >> ),'querytype=window') >> > = 'TRUE' . Check your data statement. >> > >> > using 4.8 with /ignored-libmap/oracle10g/libmap.dll. how do >> i tell if >> > i have native or ogr support for oracle 10g? i also edited >> httpd.conf >> > (did i need to?) from >> > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto, but >> > still no luck. >> > >> > On Tue, Nov 18, 2008 at 6:42 AM, Smith, Michael ERDC-CRREL-NH >> > wrote: >> >> Zach, >> >> >> >> Your DATA statement is almost correct. If you are going to use the >> >> UNIQUE keyword (for supporting queries), you must put a >> column name >> >> after UNIQUE and before the SRID. >> >> >> >> Either of these would work: >> >> >> >> DATA ' GEOM from STATES using UNIQUE ID srid 90112' >> >> >> >> or >> >> >> >> DATA ' GEOM from STATES using srid 90112' >> >> >> >> Assuming you have a column named ID, of course. >> >> >> >> Mike >> >> >> >> >> >> -- >> >> Michael Smith >> >> RSGIS Center >> >> ERDC - CRREL >> >> US Army Corps of Engineers >> >> >> >> >> >> >> >> >> >> On 11/17/08 8:21 PM, "zach cruise" wrote: >> >> >> >>> troubleshooting info on 4.8 box with >> /ignored-libmap/oracle10g/libmap.dll: >> >>> shp2img -m oracle.map -o oracle.png -all_debug 10 >> >>> msOracleSpatialLayerOpen called with: GEOMETRY from STATES using >> >>> unique srid 90112 msOracleSpatialLayerOpen. Shared connection not >> >>> available. Creating one. >> >>> >> msConnPoolRegister(layername,username/password at databasename,019A68E8 >> >>> ) msOracleSpatialLayerFreeItemInfo was called. >> >>> msOracleSpatialLayerWhichShapes was called. >> >>> msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error >> >>> parsing OracleSpatial DATA variable. Must >> be:'geometry_column FROM >> >>> table_name [USING UNIQUE SRID srid# FUNCTION]' or >> >>> 'geometry_column FROM (SELECT stmt) [USING UNIQUE SRID >> >>> srid# FUNCTION]'. If want to set the FUNCTION statement >> you can use: >> >>> FILTER, RELATE, GEOMRELATE or NONE. Your data statement: >> GEOM from >> >>> STATES using unique srid 90112 >> >>> >> >>> On Mon, Nov 17, 2008 at 7:34 PM, zach cruise >> wrote: >> >>>> btw i got oracle 10 client (with tnsnames.ora) on 4.8 box. other >> >>>> than returning multiple ora-xxxx errors, 4.8 also returns "web >> >>>> template error" if i use >> /ignored-libmap/oracle10g/libmap.dll. this >> >>>> error is even for only shapefile maps. error goes away when i >> >>>> switch back to normal libmap.dll. >> >>>> >> >>>> On Mon, Nov 17, 2008 at 5:56 PM, zach cruise >> wrote: >> >>>>> looks like mod_fastcgi is not an option with ms4w and oracle 10. >> >>>>> anyway it had little benefits. >> >>>>> >> >>>>> i now got mapserver 5.2 and 4.8: >> >>>>> i thought 5.2 had native built-in support for oracle >> 10, but it is >> >>>>> giving me "OracleSpatial is not supported" error. i >> also thought >> >>>>> 4.8 could get ogr support for oracle 10 by following >> the steps on >> >>>>> >> >> >> http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#ora >> >> cle-10g>>> >> >> . >> >>>>> 4.8 connects, but returns multiple ORA-xxxx errors. >> >>>>> >> >>>>> so: >> >>>>> do i have to install oracle 10 client locally and make >> changes to >> >>>>> httpd.conf for 5.2 to work? >> >>>>> how do i find correct srid for 4.8 to work? (DATA >> "GEOMETRY from >> >>>>> (select GEOMETRY from STATES where NAME = 'New York')") any >> >>>>> performance difference between native built-in and ogr supports? >> >>>>> >> >>>>> On Fri, Nov 14, 2008 at 6:22 PM, Jeff McKenna >> >>>>> wrote: >> >>>>>> zach cruise wrote: >> >>>>>>> >> >>>>>>> does current ms4w with fastcgi work with oracle 10? >> >>>>>>> >> >>>>>>> here're warnings >> >>>>>>> >> http://www.maptools.org/ms4w/?page=README_INSTALL.html#f-fastcgi >> >>>>>>> >> >>>>>>> >> http://www.nabble.com/fastcgi-connections-to-Oracle-and-SDE-on-W >> >>>>>>> indows-to1 >> >>>>>>> 8394152.html >> >>>>>>> in testing this was successful with PostgreSQL 8.3.1 >> / PostGIS >> >>>>>>> 1.3.3, but unsuccessful with Oracle 10.2.0.1.0 (Apache logs: >> >>>>>>> "mod_fcgid: get overlap result error") >> >>>>>>> >> >>>>>>> if not, any workarounds? >> >>>>>> >> >>>>>> I tested and wrote that note...and am not aware of a >> workaround >> >>>>>> yet. You should also send this question to the MS4W >> mailing list (subscribe at: >> >>>>>> http://lists.maptools.org/mailman/listinfo/ms4w-users) >> >>>>>> >> >>>>>> >> >>>>>> -- >> >>>>>> Jeff McKenna >> >>>>>> FOSS4G Consulting and Training Services >> >>>>>> http://www.gatewaygeomatics.com/ >> >>>>>> >> >>>>>> >> >>>>>> _______________________________________________ >> >>>>>> mapserver-users mailing list >> >>>>>> mapserver-users at lists.osgeo.org >> >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >>>>>> >> >>>>> >> >>>> >> >>> _______________________________________________ >> >>> mapserver-users mailing list >> >>> mapserver-users at lists.osgeo.org >> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> > From attila.borbas at gmail.com Wed Nov 19 12:22:51 2008 From: attila.borbas at gmail.com (=?ISO-8859-1?Q?Attila_Borb=E1s?=) Date: Wed, 19 Nov 2008 21:22:51 +0100 Subject: [mapserver-users] The browser can't display the rendered image Message-ID: <3eea87d10811191222pf9c14a0hda8b36c65887e86f@mail.gmail.com> Hello, I still have got a problem. I ve tested my mapfiles (with quickmap.php) and they work fine, but the problem is the same. My php/mapscript code created the map image and saved it to "/ms_tmp/" but the browser couldn't display it (I got a broken img). I enclose the php/mapscript file, the mapfile and the page source.Thx for ur help and patience. PHP/MAPSCRIPT FILE: draw(); //output map $url = $oImage->saveWebImage(); ?> Example 1: Displaying a map MAPFILE (I created it with qgis): MAP NAME world_raster SIZE 600 600 UNITS dd EXTENT -188.678212 -114.270312 189.321981 107.893344 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' #IMAGEMODE PC256 EXTENSION 'jpeg' END LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END WEB IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/tmp/ms_tmp/' METADATA 'wms_title' 'world_raster' 'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map& ' 'wms_srs' 'EPSG:4326' END END LAYER NAME 'world_raster' TYPE RASTER DATA '/ms4w/Apache/htdocs/world_raster.tif' METADATA 'wms_title' 'world_raster' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END END END Page source (after I ran the code the html part saw the link to the image but didn't display it.): Example 1: Displaying a map -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwburgholzer at deq.virginia.gov Wed Nov 19 12:26:02 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed, 19 Nov 2008 15:26:02 -0500 Subject: [mapserver-users] The browser can't display the rendered image Message-ID: <6C097DA58429B743A67070F98BE73A3703A8F1CB@deqex01.deq.local> Your image link in http is a direct link to your hard drive. I do not think your web server likes this. The ms_tmp directory has to be readable by apache, and therefore, it must be in the apache htdocs path, or specified in the httpd.conf file to be readable. HTH, r.b. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Attila Borb?s Sent: Wednesday, November 19, 2008 3:23 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] The browser can't display the rendered image Hello, I still have got a problem. I ve tested my mapfiles (with quickmap.php) and they work fine, but the problem is the same. My php/mapscript code created the map image and saved it to "/ms_tmp/" but the browser couldn't display it (I got a broken img). I enclose the php/mapscript file, the mapfile and the page source.Thx for ur help and patience. PHP/MAPSCRIPT FILE: draw(); //output map $url = $oImage->saveWebImage(); ?> Example 1: Displaying a map MAPFILE (I created it with qgis): MAP NAME world_raster SIZE 600 600 UNITS dd EXTENT -188.678212 -114.270312 189.321981 107.893344 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' #IMAGEMODE PC256 EXTENSION 'jpeg' END LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END WEB IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/tmp/ms_tmp/' METADATA 'wms_title' 'world_raster' 'wms_onlineresource' 'http://my.host.com/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:4326' END END LAYER NAME 'world_raster' TYPE RASTER DATA '/ms4w/Apache/htdocs/world_raster.tif' METADATA 'wms_title' 'world_raster' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END END END Page source (after I ran the code the html part saw the link to the image but didn't display it.): Example 1: Displaying a map -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Wed Nov 19 12:37:12 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 19 Nov 2008 21:37:12 +0100 (CET) Subject: [mapserver-users] The browser can't display the rendered image In-Reply-To: <3eea87d10811191222pf9c14a0hda8b36c65887e86f@mail.gmail.com> References: <3eea87d10811191222pf9c14a0hda8b36c65887e86f@mail.gmail.com> Message-ID: <49301.82.57.176.105.1227127032.squirrel@localhost.localdomain> Attila, It is strange, because the IMAGEURL in mapfile is correct, but the html generated from the script report , i.e. a local path and not a url. The correct tag should be something like Are you sure the mapfile of the script is the same you are editing? ciao .................pg On Mer, Novembre 19, 2008 21:22, Attila Borb?s wrote: > Hello, > > I still have got a problem. I ve tested my mapfiles (with quickmap.php) > and > they work fine, but the problem is the same. My php/mapscript code created > the map image and saved it to "/ms_tmp/" but the browser couldn't display > it > (I got a broken img). I enclose the php/mapscript file, the mapfile and > the > page source.Thx for ur help and patience. > > PHP/MAPSCRIPT FILE: > > define( "MAPFILE", "/ms4w/apps/raster/raster.map" ); > define( "MODULE", "php_mapscript.dll" ); > if(!extension_loaded("mapscript")) dl(MODULE); > $oMap = ms_newMapObj( MAPFILE ); > //draw > $oImage = $oMap->draw(); > //output map > $url = $oImage->saveWebImage(); > ?> > > > Example 1: Displaying a map > > > > > > > MAPFILE (I created it with qgis): > > MAP > NAME world_raster > SIZE 600 600 > UNITS dd > > EXTENT -188.678212 -114.270312 189.321981 107.893344 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > > IMAGECOLOR 192 192 192 > IMAGEQUALITY 95 > IMAGETYPE jpeg > OUTPUTFORMAT > NAME jpeg > DRIVER 'GD/JPEG' > MIMETYPE 'image/jpeg' > #IMAGEMODE PC256 > EXTENSION 'jpeg' > END > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > > WEB > > IMAGEPATH '/ms4w/tmp/ms_tmp/' > IMAGEURL '/tmp/ms_tmp/' > > METADATA > 'wms_title' 'world_raster' > 'wms_onlineresource' > 'http://my.host.com/cgi-bin/mapserv?map=wms.map& > ' > 'wms_srs' 'EPSG:4326' > END > > END > > LAYER > NAME 'world_raster' > TYPE RASTER > DATA '/ms4w/Apache/htdocs/world_raster.tif' > METADATA > 'wms_title' 'world_raster' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > END > > END > > Page source (after I ran the code the html part saw the link to the image > but didn't display it.): > > > > Example 1: Displaying a map > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From zhaops at hotmail.com Wed Nov 19 12:39:03 2008 From: zhaops at hotmail.com (zhao peisheng) Date: Wed, 19 Nov 2008 20:39:03 +0000 Subject: [mapserver-users] png files with bbox Message-ID: Hi all, I have some PNG files with bounding box. I am willing to publish them using MapServer WMS. I use the vrt file to specify geolocation like this: WGS84 -180, 0.5, 0.0, -37.0, 0.0, 0.5 surfRainMean2.png But the MapServer outputs a total black image if output format is png, and outputs a black-white image if output format is gif. What should I do? Thanks. Peisheng _________________________________________________________________ Access your email online and on the go with Windows Live Hotmail. http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From zachc1980 at gmail.com Wed Nov 19 13:26:48 2008 From: zachc1980 at gmail.com (zach cruise) Date: Wed, 19 Nov 2008 16:26:48 -0500 Subject: [mapserver-users] /ignored-libmap/oracle10g/libmap.dll? Message-ID: why does 4.8 return "mapserv(): Web application error. No template provided" when using /ignored-libmap/oracle10g/libmap.dll for shapefile maps like on http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto? From megandibiase46 at gmail.com Wed Nov 19 13:54:16 2008 From: megandibiase46 at gmail.com (Megan DiBiase) Date: Wed, 19 Nov 2008 13:54:16 -0800 Subject: [mapserver-users] LABELREQUIRES Recursion Errors Message-ID: Dear Folks, I am continually having issues with the LABELREQUIRES item in my MAP file. I have tried to write several expressions and continue to get recursion errors, even after following specific instruction: http://ms.gis.umn.edu/docs/reference/mapfile/layer LABELREQUIRES "![sampling1]" Any thoughts? Cheers, Megan DiBiase -------------- next part -------------- An HTML attachment was scrubbed... URL: From megandibiase46 at gmail.com Wed Nov 19 14:35:16 2008 From: megandibiase46 at gmail.com (Megan DiBiase) Date: Wed, 19 Nov 2008 14:35:16 -0800 Subject: [mapserver-users] Re: LABELREQUIRES Recursion Errors In-Reply-To: References: Message-ID: Hi Again, The MAP File is here. See line 94 which causes the recursion error and let me know if you have a tip: http://codepad.org/gcRibLjg Thanks! Best Regards, Megan On Wed, Nov 19, 2008 at 1:54 PM, Megan DiBiase wrote: > Dear Folks, > I am continually having issues with the LABELREQUIRES item in my MAP file. > I have tried to write several expressions and continue to get recursion > errors, even after following specific instruction: > http://ms.gis.umn.edu/docs/reference/mapfile/layer > > LABELREQUIRES "![sampling1]" > > Any thoughts? > Cheers, Megan DiBiase > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Nov 19 22:08:24 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 20 Nov 2008 00:08:24 -0600 Subject: [mapserver-users] LABELREQUIRES Recursion Errors Message-ID: <4924AA780200008F0001DA6F@co5.dnr.state.mn.us> What version? Recursion errors will occur if two layers reference each other or if a layer references itself. From your mapfile snippet that doesn't seem to be the case. It's a pretty lightly used feature so it's possible there is a flaw in the code. If you use just REQUIRES (so the whole layer would be off unless it passes the test) do you get the same error? Steve >>> "Megan DiBiase" 11/19/08 4:02 PM >>> Dear Folks, I am continually having issues with the LABELREQUIRES item in my MAP file. I have tried to write several expressions and continue to get recursion errors, even after following specific instruction: http://ms.gis.umn.edu/docs/reference/mapfile/layer LABELREQUIRES "![sampling1]" Any thoughts? Cheers, Megan DiBiase From gcampagna83 at gmail.com Thu Nov 20 02:09:35 2008 From: gcampagna83 at gmail.com (Giuseppe Campagna) Date: Thu, 20 Nov 2008 11:09:35 +0100 Subject: [mapserver-users] theme on the fly with mapserver Message-ID: <4925375F.8040601@gmail.com> Hi, i'm new in the list and i'm starting to use MapServer I created a web-client to see wms services, query and legend, using geotools. I would now like to create "dynamic" themes (theme on the fly). It's possible? how can you do with geotools? peppe From bartvde at osgis.nl Thu Nov 20 02:16:40 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 20 Nov 2008 11:16:40 +0100 (CET) Subject: [mapserver-users] theme on the fly with mapserver In-Reply-To: <4925375F.8040601@gmail.com> References: <4925375F.8040601@gmail.com> Message-ID: <1677.145.50.39.11.1227176200.squirrel@webmail.hostingdiscounter.nl> Hi, have a look at Styled Layer Descriptor (SLD). http://mapserver.gis.umn.edu/docs/howto/sldhowto and on the Geotools side: http://docs.codehaus.org/display/GEOTDOC/06+Style+Layer+Descriptor+Document Best regards, Bart > Hi, > i'm new in the list and i'm starting to use MapServer > I created a web-client to see wms services, query and legend, using > geotools. > I would now like to create "dynamic" themes (theme on the fly). > It's possible? how can you do with geotools? > > peppe > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jose.maria.michia at gmail.com Thu Nov 20 05:30:04 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Thu, 20 Nov 2008 10:30:04 -0300 Subject: [mapserver-users] Create a file "GML" from a layer of type "annotation". Message-ID: Hi, I want to create a data file, in "GML", starting with a layer of type "annotation" generated by "MapServer" as "WFS". I've only been able to create the file "GML" using LAYER-> TYPE = POLYGON. This does not serve me, because it includes all the elements of the layer. I want a layer that contains only the items that "MapServer" decided that should be labeled. The goal is to use data from the labels in other programs. So, other GIS formats can be fine. Thanks for any advice. Jos? Mar?a -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Thu Nov 20 05:50:17 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 20 Nov 2008 14:50:17 +0100 (CET) Subject: [mapserver-users] Create a file "GML" from a layer of type "annotation". In-Reply-To: References: Message-ID: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> Ciao Jos?. You can get the WFS layer in a free desktop GIS, like QGis (qgis.org) via a default plugin which must be activated, and then export in shapefile. If you need GML use ogr2ogr; qgis also has a converter plugin, but I never used - be careful to GML version... Hope this help ciao ........................ pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, Novembre 20, 2008 14:30, Jos? Mar?a Michia wrote: > Hi, > > I want to create a data file, in "GML", starting with a layer of type > "annotation" generated by "MapServer" as "WFS". > > I've only been able to create the file "GML" using LAYER-> TYPE = POLYGON. > This does not serve me, because it includes all the elements of the layer. > I > want a layer that contains only the items that "MapServer" decided that > should be labeled. > > The goal is to use data from the labels in other programs. So, other GIS > formats can be fine. > > Thanks for any advice. > Jos? Mar?a > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Thu Nov 20 10:55:36 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 20 Nov 2008 19:55:36 +0100 Subject: [mapserver-users] Failed to show Arabic labels with MapServer 5.2 In-Reply-To: <25de2c7c0811181250t19c12d45w16bef048c68436e4@mail.gmail.com> References: <5BE670BDF87643C092DFDBB4E729213F@jcdesktop> <49218AA5.9050706@swoodbridge.com> <4923221F.9060504@swoodbridge.com> <25de2c7c0811181232k65b886d0iadda6331dcc8dc2c@mail.gmail.com> <25de2c7c0811181250t19c12d45w16bef048c68436e4@mail.gmail.com> Message-ID: hi, yes this is the behavior that's used (with agg, but gd also): the label text is split in individual characters, and each one is rendered individually with a specific position and angle, and therefore the joining between characters is lost (this isn't specific to the outlining case, as can be seen on jackey's "no_outline" example). Unfortunately, there's no simple fix, and even if so this would require rewriting the entire angle follow code. This would require that the text be rendered in one pass, following a smoothed curve that fits the line geometry. AGG can sort of do this (see the trans_curve examples in your agg source dir or on the website http://antigrain.com/demo/index.html), but the characters are deformed. It's an option that I have tested locally but gave up with seeing the quality of the results. does anyone have experience with pango and know if it could solve this problem ? cheers, thomas On Tue, Nov 18, 2008 at 21:50, TC Haddad wrote: > on re-reading Steve W's point #2 - perhaps the specific bug is that > there is a difference with when in the sequence of drawing, > OUTLINECOLOR is applied > > i) when ANGLE is AUTO, OUTLINECOLOR is applied after the whole label is drawn > > ii) when ANGLE is FOLLOW, OUTLINECOLOR is applied after each letter is drawn > > so this ends up making a joined Arabic label look "fractured" if both > OUTLINECOLOR and ANGLE FOLLOW are used at the same time. > > TH > > On Tue, Nov 18, 2008 at 12:32 PM, TC Haddad wrote: >> Jackey, >> >> I can read Arabic, and from the most recent attachments you sent I >> think the labels are printing fine. That is, I do see the problem you >> are referring to, but the cause is not the font (the joined letters >> are as they should be). >> >> The real problem that I see is the fact that you are using >> OUTLINECOLOR. This is putting a 1 pixel white outline on *each* >> letter. >> >> This approach works in English and languages where the letters don't >> attach in printed form. But in Arabic, where whole worlds are joined, >> the outline should be applied at the level of the word, not at the >> level of the letter. >> >> As far as I know this feature does not exist in Mapserver at the >> moment, so it would have to be requested. >> >> Tanya >> >> >> >> On Tue, Nov 18, 2008 at 12:14 PM, Stephen Woodbridge >> wrote: >>> Jackey, >>> >>> I'm not sure how much more I can help other than to say: >>> >>> 1) make sure you are building with fribidi2 version 0.19.1+ >>> 2) Since character are generated individually on rotated labels, there may >>> be an issue. Thomas Bonfort would be the person that implemented the AGG. >>> You should probably try doing this with the AGG driver if you have not tried >>> that yet. That is what I'm using. >>> 3) try to locate a better/different font that supports Arabic >>> >>> -Steve >>> >>> Jackey Cheung wrote: >>>> >>>> Steve, >>>> >>>> Thanks for the advise, but we've tried the Arial font already in the first >>>> test, it's just the same. We thought it was the fribidi2's problem since >>>> 0.19.1 doesn't have their configure script changed, and tried the 0.10.9, >>>> but it's all the same, every word is broken. >>>> >>>> >>>> On Mon, Nov 17, 2008 at 11:15 PM, Stephen Woodbridge >>>> > wrote: >>>> >>>> Jackey, >>>> >>>> Try locating a different font. if the text is being rendered as >>>> glyphs and they look correct, but is missing the joining >>>> information, it is likely that the font you are using does not >>>> include the joining glyphs. >>>> >>>> If you are using a windows machine, try getting mapserver via the >>>> fonts.txt file to point to the arial.ttf in the fonts folder. And >>>> change you FONT "..." to select the windows arial font. This assumes >>>> that you can display arabic text correctly using the arial font from >>>> a windows application like excel. >>>> >>>> -Steve W. >>>> >>>> Jackey Cheung wrote: >>>> >>>> Greetings! >>>> >>>> >>>> We've build the MapServer 5.2 on a Linux server, with fribidi2 >>>> 0.19.1, to >>>> try show Arabic labels. But the words has been broken down to >>>> characters in >>>> the generated images (line.png). Then we've tried on a MS4W >>>> 2.3.0 server, >>>> but the images (ms4w.png) are even worse. >>>> >>>> We are using PostGIS, and the database is using UTF8 (pgpr.png), >>>> while all >>>> Arabic data can be shown correctly (pg.png) on my English >>>> Windows XP, and >>>> >>>> we've tried some more machines, or on IE, to make sure that >>>> Arabic text in >>>> database are really UTF8. >>>> >>>> Here's the images: http://www3.mapasia.com/jackout/ara.png >>>> >>>> >>>> The part of the map file is as follow, where the "arbic-trans" >>>> is a Arabic >>>> TrueType font named "Arabic Transparent": >>>> LABEL >>>> ANGLE FOLLOW >>>> PRIORITY [priority] >>>> ENCODING "UTF-8" >>>> COLOR 0 0 0 >>>> OUTLINECOLOR 255 255 255 >>>> TYPE TRUETYPE >>>> FONT "arbic-trans" >>>> SIZE 7 >>>> POSITION AUTO >>>> PARTIALS FALSE >>>> MINDISTANCE 500 >>>> BUFFER 1 >>>> MINFEATURESIZE 50 >>>> END >>>> >>>> Could anyone please help. >>>> >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From chris.whitteker at hotmail.com Thu Nov 20 12:46:23 2008 From: chris.whitteker at hotmail.com (Chris Whitteker) Date: Thu, 20 Nov 2008 20:46:23 +0000 Subject: [mapserver-users] UTF-8 + SDE + GetfeatureInfo Message-ID: Hey everyone, We're having a bit of a problem performing getfeatureinfo queries with mapserver. The french characters are coming out of the database as ISO-8859-1 instead of UTF-8. The database and servers are configured as UTF 8, the map files and the query templates too. Actually text/plain also has problems so it's not the templates. We're trying to encode everything as UTF 8 so me specificying ISO-8859-1 in the meta tag of the html query template doesn't work. GetFeatureInfo results: Layer 'SoilOrder' Feature 10894: OBJECTID = '10894' SLC_SOIL_ORDER_V31_22_ID = '81600931' SOIL_ORDER_NAME_EN = 'Chernozemic' SOIL_ORDER_NAME_FR = 'Chernoz?mique' <- error is here in my browser. SOIL_ORDER_PCNT = '84' SHAPE = '' Any idea if there are outstanding problems here with SDE and mapserver not playing nice with this? We're beating our heads against the wall thinking about what config we could have missed. Oh - labels with french are fine, and so are legends; it's only the getfeatureinfo queries that have troubles. Cheers, Chris Whitteker _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From condit at sdsc.edu Thu Nov 20 15:33:50 2008 From: condit at sdsc.edu (Christopher Condit) Date: Thu, 20 Nov 2008 15:33:50 -0800 Subject: [mapserver-users] php mapscript objects in session? Message-ID: <845AADAC1106E44996327D62097E4C6B011F0B6F@et.ad.sdsc.edu> Hi- I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like to create the MapScript map object and store it in the session: $_SESSION['map'] = ms_newMapObj($getMapPath); This works fine for the that page, for the first call, but when I attempt to reference it later I get a PHP error: Fatal error: Object has an invalid _handle_ property Am I missing something here? Thanks, -Chris From jose.maria.michia at gmail.com Thu Nov 20 19:33:01 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 21 Nov 2008 00:33:01 -0300 Subject: [mapserver-users] Create a file "GML" from a layer of type "annotation". In-Reply-To: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> References: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> Message-ID: 2008/11/20 Pietro Giannini > > Ciao Jos?. > > You can get the WFS layer in a free desktop GIS, like QGis (qgis.org) via > a default plugin which must be activated, and then export in shapefile. The problem is that "WFS" works only for layer of type polygon, and not for layer of type annotation. The need to use an annotation layer, is because i wish to get labels generalized. Through the use of "WMS" I've been able in QGIS to show the annotation layer. But QGIS not allow me to select elements, so that I can not export them. > If you need GML use ogr2ogr; qgis also has a converter plugin, but I never > used - be careful to GML version... Yes, I use ogr2ogr to convert the GML files to GMT format. But, until now, i can not obtain the GML that i hope. > Hope this help > > ciao > ........................ pg > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E Thanks for your help Pietro Jos? Mar?a > On Gio, Novembre 20, 2008 14:30, Jos? Mar?a Michia wrote: > > Hi, > > > > I want to create a data file, in "GML", starting with a layer of type > > "annotation" generated by "MapServer" as "WFS". > > > > I've only been able to create the file "GML" using LAYER-> TYPE = POLYGON. > > This does not serve me, because it includes all the elements of the layer. > > I > > want a layer that contains only the items that "MapServer" decided that > > should be labeled. > > > > The goal is to use data from the labels in other programs. So, other GIS > > formats can be fine. > > > > Thanks for any advice. > > Jos? Mar?a > > _______________________________________________ > > 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 jose.maria.michia at gmail.com Thu Nov 20 19:51:32 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 21 Nov 2008 00:51:32 -0300 Subject: [mapserver-users] Create a file "GML" from a layer of type "annotation". In-Reply-To: References: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> Message-ID: Hi, Maybe is useful explain more precisely my goal. The attached image is a PNG obtained by using shp2img. The layer displayed is an ANNOTATION LAYER. The labels are generalized by MapServer. I wish to get the labels displayed in this extent, in this scale, with this degree of generalization, in a GIS format, like GML, or ShapeFile. I wish to use these file in GMT, that no have implemented labeling algorithm. My attempts: 1. shp2img: i obtained PDF files, which can be integrated in the final map using something like Inkscape. 2. WMS: only can obtain a raster image. 3. WFS: I have been able to generate GML files using an WFS request,of type GetFeature. However, GetFeature work on all elements, without caring for the widespread labeling. I do not want all the labels, only those that have been generalized to a certain scale. In the past, I used MapScript. If I remember correctly, I could do this by using a script in PHP or Python. Correct? Thanks for any advice. Jos? Mar?a -------------- next part -------------- A non-text attachment was scrubbed... Name: labels.png Type: image/png Size: 7311 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Thu Nov 20 21:27:46 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 21 Nov 2008 07:27:46 +0200 Subject: [mapserver-users] Create a file "GML" from a layer of type"annotation". References: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> Message-ID: Hi, I guess that annotation layers are not supported for this use and you should somehow create a point type layer that acts like the annotation layer. There needs only be two colums in the schema, geometry and name. I don't know it could be done, but have you tried just to change the layer type to point? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jos? Mar?a Michia L?hetetty: pe 21.11.2008 5:51 Vastaanottaja: Pietro Giannini Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Create a file "GML" from a layer of type"annotation". Hi, Maybe is useful explain more precisely my goal. The attached image is a PNG obtained by using shp2img. The layer displayed is an ANNOTATION LAYER. The labels are generalized by MapServer. I wish to get the labels displayed in this extent, in this scale, with this degree of generalization, in a GIS format, like GML, or ShapeFile. I wish to use these file in GMT, that no have implemented labeling algorithm. My attempts: 1. shp2img: i obtained PDF files, which can be integrated in the final map using something like Inkscape. 2. WMS: only can obtain a raster image. 3. WFS: I have been able to generate GML files using an WFS request,of type GetFeature. However, GetFeature work on all elements, without caring for the widespread labeling. I do not want all the labels, only those that have been generalized to a certain scale. In the past, I used MapScript. If I remember correctly, I could do this by using a script in PHP or Python. Correct? Thanks for any advice. Jos? Mar?a From jose.maria.michia at gmail.com Thu Nov 20 22:27:06 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Fri, 21 Nov 2008 03:27:06 -0300 Subject: [mapserver-users] Create a file "GML" from a layer of type"annotation". In-Reply-To: References: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> Message-ID: 2008/11/21 Rahkonen Jukka : > Hi, > > I guess that annotation layers are not supported for this use and you should somehow create a point type layer that acts like the annotation layer. There needs only be two colums in the schema, geometry and name. I don't know it could be done, but have you tried just to change the layer type to point? You are right. The server "WFS" does not support ANNOTATION layers. I have not tried to change the type of geometry of the layer to point. However, the geometry type of data is polygon, so I can easily convert to centroids. The test that I've done it, is to change the type of geometry of the layer to the type polygon, instead of annotation. In this way, I've moved closer to the goal. But the GML file that I have been able to obtain, is the product of a "REQUEST = GetFeature". Because of this, the result contains all elements, not only those items with generalized labels by MapServer. I think that some scripting can be used to read de labels cache, and write the data in a convenient way. I still have not been able to explore this alternative. > -Jukka Rahkonen- Thanks Jukka! > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jos? Mar?a Michia > L?hetetty: pe 21.11.2008 5:51 > Vastaanottaja: Pietro Giannini > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Create a file "GML" from a layer of type"annotation". > > Hi, > > Maybe is useful explain more precisely my goal. > > The attached image is a PNG obtained by using shp2img. The layer > displayed is an ANNOTATION LAYER. The labels are generalized by > MapServer. I wish to get the labels displayed in this extent, in this > scale, with this degree of generalization, in a GIS format, like GML, > or ShapeFile. I wish to use these file in GMT, that no have > implemented labeling algorithm. > > My attempts: > > 1. shp2img: i obtained PDF files, which can be integrated in the final > map using something like Inkscape. > 2. WMS: only can obtain a raster image. > 3. WFS: I have been able to generate GML files using an WFS request,of > type GetFeature. However, GetFeature work on all elements, without > caring for the widespread labeling. I do not want all the labels, only > those that have been generalized to a certain scale. > > In the past, I used MapScript. If I remember correctly, I could do > this by using a script in PHP or Python. Correct? > > Thanks for any advice. > Jos? Mar?a > > From pgiannini at bytewise.it Fri Nov 21 01:13:42 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 21 Nov 2008 10:13:42 +0100 (CET) Subject: [mapserver-users] php mapscript objects in session? In-Reply-To: <845AADAC1106E44996327D62097E4C6B011F0B6F@et.ad.sdsc.edu> References: <845AADAC1106E44996327D62097E4C6B011F0B6F@et.ad.sdsc.edu> Message-ID: <47977.89.97.235.106.1227258822.squirrel@localhost.localdomain> according to my little knowledge, php cannot store an instance of an object in a session, only primitives variables like strings, integers, floats and arrays (asp.net instead can). for your app you must save the context (mapfile path, the extent, the layers status etc.), and re-instance the map object at each postback. hth ........................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Ven, Novembre 21, 2008 00:33, Christopher Condit wrote: > Hi- > I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like to > create the MapScript map object and store it in the session: > > $_SESSION['map'] = ms_newMapObj($getMapPath); > > This works fine for the that page, for the first call, but when I > attempt to reference it later I get a PHP error: > Fatal error: Object has an invalid _handle_ property > > Am I missing something here? > > Thanks, > -Chris > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From umberto.nicoletti at gmail.com Fri Nov 21 01:20:35 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 21 Nov 2008 10:20:35 +0100 Subject: [mapserver-users] php mapscript objects in session? In-Reply-To: <47977.89.97.235.106.1227258822.squirrel@localhost.localdomain> References: <845AADAC1106E44996327D62097E4C6B011F0B6F@et.ad.sdsc.edu> <47977.89.97.235.106.1227258822.squirrel@localhost.localdomain> Message-ID: <75b4b93e0811210120ueac7bffi17c199ccf401845f@mail.gmail.com> And even if it was possible it is NOT recommended to reuse mapscript objects across requests, see my previous post on the "Mapserver Thread Safety" thread earlier this week. Umberto On Fri, Nov 21, 2008 at 10:13 AM, Pietro Giannini wrote: > according to my little knowledge, php cannot store an instance of an > object in a session, only primitives variables like strings, integers, > floats and arrays (asp.net instead can). > > for your app you must save the context (mapfile path, the extent, the > layers status etc.), and re-instance the map object at each postback. > > hth > > ........................pg > > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > > On Ven, Novembre 21, 2008 00:33, Christopher Condit wrote: >> Hi- >> I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like to >> create the MapScript map object and store it in the session: >> >> $_SESSION['map'] = ms_newMapObj($getMapPath); >> >> This works fine for the that page, for the first call, but when I >> attempt to reference it later I get a PHP error: >> Fatal error: Object has an invalid _handle_ property >> >> Am I missing something here? >> >> Thanks, >> -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 pgiannini at bytewise.it Fri Nov 21 01:43:09 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 21 Nov 2008 10:43:09 +0100 (CET) Subject: [mapserver-users] Create a file "GML" from a layer of type"annotation". In-Reply-To: References: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> Message-ID: <60131.89.97.235.106.1227260589.squirrel@localhost.localdomain> If I understood, you want to use mapserver as a label-generator, because the algorithm used satisfy you, but IMHO there is no method to extract the labels generated from mapserver, also using mapscript. In your place, I would use directly a desktop GIS, whatever you want, to generate labels directly from layer source. Try UDig (udig.refractions.net) as free GIS, it has a non-collision algorithm for objects labels. ciao .............................. pg On Ven, Novembre 21, 2008 07:27, Jos? Mar?a Michia wrote: > 2008/11/21 Rahkonen Jukka : >> Hi, >> >> I guess that annotation layers are not supported for this use and you >> should somehow create a point type layer that acts like the annotation >> layer. There needs only be two colums in the schema, geometry and name. >> I don't know it could be done, but have you tried just to change the >> layer type to point? > > You are right. The server "WFS" does not support ANNOTATION layers. > > I have not tried to change the type of geometry of the layer to point. > > However, the geometry type of data is polygon, so I can easily convert > to centroids. > > The test that I've done it, is to change the type of geometry of the > layer to the type polygon, instead of annotation. In this way, I've > moved closer to the goal. But the GML file that I have been able to > obtain, is the product of a "REQUEST = GetFeature". Because of this, > the result contains all elements, not only those items with > generalized labels by MapServer. > > I think that some scripting can be used to read de labels cache, and > write the data in a convenient way. I still have not been able to > explore this alternative. > >> -Jukka Rahkonen- > > Thanks Jukka! > >> >> >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jos? Mar?a >> Michia >> L?hetetty: pe 21.11.2008 5:51 >> Vastaanottaja: Pietro Giannini >> Kopio: mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] Create a file "GML" from a layer of >> type"annotation". >> >> Hi, >> >> Maybe is useful explain more precisely my goal. >> >> The attached image is a PNG obtained by using shp2img. The layer >> displayed is an ANNOTATION LAYER. The labels are generalized by >> MapServer. I wish to get the labels displayed in this extent, in this >> scale, with this degree of generalization, in a GIS format, like GML, >> or ShapeFile. I wish to use these file in GMT, that no have >> implemented labeling algorithm. >> >> My attempts: >> >> 1. shp2img: i obtained PDF files, which can be integrated in the final >> map using something like Inkscape. >> 2. WMS: only can obtain a raster image. >> 3. WFS: I have been able to generate GML files using an WFS request,of >> type GetFeature. However, GetFeature work on all elements, without >> caring for the widespread labeling. I do not want all the labels, only >> those that have been generalized to a certain scale. >> >> In the past, I used MapScript. If I remember correctly, I could do >> this by using a script in PHP or Python. Correct? >> >> Thanks for any advice. >> Jos? Mar?a >> >> > From pgiannini at bytewise.it Fri Nov 21 02:06:40 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 21 Nov 2008 11:06:40 +0100 (CET) Subject: [mapserver-users] Create a file "GML" from a layer of type"annotation". In-Reply-To: <60131.89.97.235.106.1227260589.squirrel@localhost.localdomain> References: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> <60131.89.97.235.106.1227260589.squirrel@localhost.localdomain> Message-ID: <56887.89.97.235.106.1227262000.squirrel@localhost.localdomain> another way? a ready-to-use library for cartographic label placement under free software license -> http://geosysin.iict.ch/trac/wiki/Index4extJPAL ciao .............................. pg On Ven, Novembre 21, 2008 10:43, Pietro Giannini wrote: > If I understood, you want to use mapserver as a label-generator, because > the algorithm used satisfy you, but IMHO there is no method to extract the > labels generated from mapserver, also using mapscript. > > In your place, I would use directly a desktop GIS, whatever you want, to > generate labels directly from layer source. > Try UDig (udig.refractions.net) as free GIS, it has a non-collision > algorithm for objects labels. > > ciao > .............................. pg > > > On Ven, Novembre 21, 2008 07:27, Jos? Mar?a Michia wrote: >> 2008/11/21 Rahkonen Jukka : >>> Hi, >>> >>> I guess that annotation layers are not supported for this use and you >>> should somehow create a point type layer that acts like the annotation >>> layer. There needs only be two colums in the schema, geometry and name. >>> I don't know it could be done, but have you tried just to change the >>> layer type to point? >> >> You are right. The server "WFS" does not support ANNOTATION layers. >> >> I have not tried to change the type of geometry of the layer to point. >> >> However, the geometry type of data is polygon, so I can easily convert >> to centroids. >> >> The test that I've done it, is to change the type of geometry of the >> layer to the type polygon, instead of annotation. In this way, I've >> moved closer to the goal. But the GML file that I have been able to >> obtain, is the product of a "REQUEST = GetFeature". Because of this, >> the result contains all elements, not only those items with >> generalized labels by MapServer. >> >> I think that some scripting can be used to read de labels cache, and >> write the data in a convenient way. I still have not been able to >> explore this alternative. >> >>> -Jukka Rahkonen- >> >> Thanks Jukka! >> >>> >>> >>> -----Alkuper?inen viesti----- >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jos? Mar?a >>> Michia >>> L?hetetty: pe 21.11.2008 5:51 >>> Vastaanottaja: Pietro Giannini >>> Kopio: mapserver-users at lists.osgeo.org >>> Aihe: Re: [mapserver-users] Create a file "GML" from a layer of >>> type"annotation". >>> >>> Hi, >>> >>> Maybe is useful explain more precisely my goal. >>> >>> The attached image is a PNG obtained by using shp2img. The layer >>> displayed is an ANNOTATION LAYER. The labels are generalized by >>> MapServer. I wish to get the labels displayed in this extent, in this >>> scale, with this degree of generalization, in a GIS format, like GML, >>> or ShapeFile. I wish to use these file in GMT, that no have >>> implemented labeling algorithm. >>> >>> My attempts: >>> >>> 1. shp2img: i obtained PDF files, which can be integrated in the final >>> map using something like Inkscape. >>> 2. WMS: only can obtain a raster image. >>> 3. WFS: I have been able to generate GML files using an WFS request,of >>> type GetFeature. However, GetFeature work on all elements, without >>> caring for the widespread labeling. I do not want all the labels, only >>> those that have been generalized to a certain scale. >>> >>> In the past, I used MapScript. If I remember correctly, I could do >>> this by using a script in PHP or Python. Correct? >>> >>> Thanks for any advice. >>> Jos? Mar?a >>> >>> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pgiannini at bytewise.it Fri Nov 21 02:55:10 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 21 Nov 2008 11:55:10 +0100 (CET) Subject: [mapserver-users] php mapscript objects in session? In-Reply-To: <75b4b93e0811210120ueac7bffi17c199ccf401845f@mail.gmail.com> References: <845AADAC1106E44996327D62097E4C6B011F0B6F@et.ad.sdsc.edu> <47977.89.97.235.106.1227258822.squirrel@localhost.localdomain> <75b4b93e0811210120ueac7bffi17c199ccf401845f@mail.gmail.com> Message-ID: <58426.89.97.235.106.1227264910.squirrel@localhost.localdomain> Ciao Umberto, excuse me, but your statement has put me in a state of anxiety :) Currently I'm involved in an ASP.NET C# mapscript developement, and I use extensively the method of saving mapscript object in session. Naturally I tested the envirenmnet with a certain number of concurrent users, and I don't get any strange issue, like accessing to an object of another session. Why do you say this is NOT recommended? ciao .......................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Ven, Novembre 21, 2008 10:20, Umberto Nicoletti wrote: > And even if it was possible it is NOT recommended to reuse mapscript > objects across requests, see my previous post on the "Mapserver Thread > Safety" thread earlier this week. > > Umberto > > On Fri, Nov 21, 2008 at 10:13 AM, Pietro Giannini > wrote: >> according to my little knowledge, php cannot store an instance of an >> object in a session, only primitives variables like strings, integers, >> floats and arrays (asp.net instead can). >> >> for your app you must save the context (mapfile path, the extent, the >> layers status etc.), and re-instance the map object at each postback. >> >> hth >> >> ........................pg >> >> >> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> >> >> On Ven, Novembre 21, 2008 00:33, Christopher Condit wrote: >>> Hi- >>> I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like to >>> create the MapScript map object and store it in the session: >>> >>> $_SESSION['map'] = ms_newMapObj($getMapPath); >>> >>> This works fine for the that page, for the first call, but when I >>> attempt to reference it later I get a PHP error: >>> Fatal error: Object has an invalid _handle_ property >>> >>> Am I missing something here? >>> >>> Thanks, >>> -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 umberto.nicoletti at gmail.com Fri Nov 21 05:08:10 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Fri, 21 Nov 2008 14:08:10 +0100 Subject: [mapserver-users] php mapscript objects in session? In-Reply-To: <58426.89.97.235.106.1227264910.squirrel@localhost.localdomain> References: <845AADAC1106E44996327D62097E4C6B011F0B6F@et.ad.sdsc.edu> <47977.89.97.235.106.1227258822.squirrel@localhost.localdomain> <75b4b93e0811210120ueac7bffi17c199ccf401845f@mail.gmail.com> <58426.89.97.235.106.1227264910.squirrel@localhost.localdomain> Message-ID: <75b4b93e0811210508o1a13c7achb825a970045a6ea9@mail.gmail.com> On Fri, Nov 21, 2008 at 11:55 AM, Pietro Giannini wrote: > Ciao Umberto, > > excuse me, but your statement has put me in a state of anxiety :) > > Currently I'm involved in an ASP.NET C# mapscript developement, and I use > extensively the method of saving mapscript object in session. > Naturally I tested the envirenmnet with a certain number of concurrent > users, and I don't get any strange issue, like accessing to an object of > another session. so, do you share objects (like a mapobj) between sessions (ie: different requests use the same mapObj instance to perform map drawing) without locking at application (c# in your case) level? If the answer is yes you've just been lucky so far as this approach will surely lead to errors. > > Why do you say this is NOT recommended? > I'm sorry, I can't provide technical arguments right now, but in my experience (+3years with Java mapscript) this solution proved to be the most stable. YMMV. Ciao, Umberto > ciao .......................pg > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > On Ven, Novembre 21, 2008 10:20, Umberto Nicoletti wrote: >> And even if it was possible it is NOT recommended to reuse mapscript >> objects across requests, see my previous post on the "Mapserver Thread >> Safety" thread earlier this week. >> >> Umberto >> >> On Fri, Nov 21, 2008 at 10:13 AM, Pietro Giannini >> wrote: >>> according to my little knowledge, php cannot store an instance of an >>> object in a session, only primitives variables like strings, integers, >>> floats and arrays (asp.net instead can). >>> >>> for your app you must save the context (mapfile path, the extent, the >>> layers status etc.), and re-instance the map object at each postback. >>> >>> hth >>> >>> ........................pg >>> >>> >>> >>> -- >>> Pietro Giannini >>> Bytewise srl - Area GIS >>> 41?50'38.58"N 12?29'13.39"E >>> >>> >>> >>> On Ven, Novembre 21, 2008 00:33, Christopher Condit wrote: >>>> Hi- >>>> I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like to >>>> create the MapScript map object and store it in the session: >>>> >>>> $_SESSION['map'] = ms_newMapObj($getMapPath); >>>> >>>> This works fine for the that page, for the first call, but when I >>>> attempt to reference it later I get a PHP error: >>>> Fatal error: Object has an invalid _handle_ property >>>> >>>> Am I missing something here? >>>> >>>> Thanks, >>>> -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 >>> >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pal.kristensen at statkart.no Fri Nov 21 06:35:29 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Fri, 21 Nov 2008 06:35:29 -0800 (PST) Subject: [MAPSERVER-USERS] CLASSITEM and EXPRESSION issue in trunk? Message-ID: <20622309.post@talk.nabble.com> Hi! I've compiled 5.3-dev from trunk yesterday and got some trouble with some mapfiles that works well on 5.2. The problem is that the EXPRESSION parameter in the CALSS object does not work with direct string comparison. Her are some examples: Does NOT work: (This is the original layer definition from the 5.2 mapfile) LAYER ... CLASSITEM "maxhoyde" ... CLASS NAME "test" EXPRESSION "600" ... END END Using RegEx instead WORKS: LAYER ... CLASSITEM "maxhoyde" ... CLASS NAME "test" EXPRESSION /600/ ... END END Using logical expression WORKS: LAYER ... #CLASSITEM "maxhoyde" ... CLASS NAME "test" EXPRESSION ([makshoyde] == 600) ... END END The data is stored in PostgreSQL (PostGIS), and the actual field type is character(5). Anyone have a clue about what is causing this strange behavior. Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/CLASSITEM-and-EXPRESSION-issue-in-trunk--tp20622309p20622309.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Fri Nov 21 06:38:55 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 21 Nov 2008 08:38:55 -0600 Subject: [MAPSERVER-USERS] CLASSITEM and EXPRESSION issue in trunk? Message-ID: <492673A00200008F0001DAD3@co5.dnr.state.mn.us> The PostGIS support underwent major changes recently so I'd suspect this is specific to that work. Perhaps there are character padding affecting things? Steve >>> P?l Kristensen 11/21/08 8:36 AM >>> Hi! I've compiled 5.3-dev from trunk yesterday and got some trouble with some mapfiles that works well on 5.2. The problem is that the EXPRESSION parameter in the CALSS object does not work with direct string comparison. Her are some examples: Does NOT work: (This is the original layer definition from the 5.2 mapfile) LAYER ... CLASSITEM "maxhoyde" ... CLASS NAME "test" EXPRESSION "600" ... END END Using RegEx instead WORKS: LAYER ... CLASSITEM "maxhoyde" ... CLASS NAME "test" EXPRESSION /600/ ... END END Using logical expression WORKS: LAYER ... #CLASSITEM "maxhoyde" ... CLASS NAME "test" EXPRESSION ([makshoyde] == 600) ... END END The data is stored in PostgreSQL (PostGIS), and the actual field type is character(5). Anyone have a clue about what is causing this strange behavior. Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/CLASSITEM-and-EXPRESSION-issue-in-trunk--tp20622309p20622309.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 pal.kristensen at statkart.no Fri Nov 21 06:52:51 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Fri, 21 Nov 2008 06:52:51 -0800 (PST) Subject: [MAPSERVER-USERS] CLASSITEM and EXPRESSION issue in trunk? In-Reply-To: <492673A00200008F0001DAD3@co5.dnr.state.mn.us> References: <492673A00200008F0001DAD3@co5.dnr.state.mn.us> Message-ID: <20622659.post@talk.nabble.com> Hi Steve, thanks for the quick response! I know about the PostGIS refactoring activity, and that is one of the things that we wanted to test. For the overall speed it looks great, but it can be some troublesome if old expressions don't work. One of our mapfiles is almost 12000 lines (with quite complex expressions), and I do not intend to change all the expressions :-). Do you know if anyone has the opportunity to look at this issue? Regards, P?l Kristensen Steve Lime wrote: > > The PostGIS support underwent major changes recently so I'd suspect this > is specific > to that work. Perhaps there are character padding affecting things? > > Steve > >>>> P?l Kristensen 11/21/08 8:36 AM >>> > > Hi! > > I've compiled 5.3-dev from trunk yesterday and got some trouble with > some > mapfiles that works well on 5.2. The problem is that the EXPRESSION > parameter in the CALSS object does not work with direct string > comparison. > Her are some examples: > > Does NOT work: (This is the original layer definition from the 5.2 > mapfile) > > LAYER > ... > CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION "600" > ... > END > END > > > Using RegEx instead WORKS: > > LAYER > ... > CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION /600/ > ... > END > END > > > Using logical expression WORKS: > > LAYER > ... > #CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION ([makshoyde] == 600) > ... > END > END > > The data is stored in PostgreSQL (PostGIS), and the actual field type is > character(5). Anyone have a clue about what is causing this strange > behavior. > > Regards, > P?l Kristensen > -- > View this message in context: > http://www.nabble.com/CLASSITEM-and-EXPRESSION-issue-in-trunk--tp20622309p20622309.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Re%3A-CLASSITEM-and-EXPRESSION-issue-in-trunk--tp20622400p20622659.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hobu.inc at gmail.com Fri Nov 21 07:01:24 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Fri, 21 Nov 2008 09:01:24 -0600 Subject: [mapserver-users] UTF-8 + SDE + GetfeatureInfo In-Reply-To: References: Message-ID: <5FF5ECF3-BAC9-474C-ABE5-7A37875C0552@gmail.com> On Nov 20, 2008, at 2:46 PM, Chris Whitteker wrote: > Hey everyone, > > We're having a bit of a problem performing getfeatureinfo queries > with mapserver. The french characters are coming out of the > database as ISO-8859-1 instead of UTF-8. The database and servers > are configured as UTF 8, the map files and the query templates too. > Actually text/plain also has problems so it's not the templates. > We're trying to encode everything as UTF 8 so me specificying > ISO-8859-1 in the meta tag of the html query template doesn't work. > GetFeatureInfo results: > > Layer 'SoilOrder' > Feature 10894: > OBJECTID = '10894' > SLC_SOIL_ORDER_V31_22_ID = '81600931' > SOIL_ORDER_NAME_EN = 'Chernozemic' > SOIL_ORDER_NAME_FR = 'Chernoz?mique' <- error is here in my > browser. > SOIL_ORDER_PCNT = '84' > SHAPE = '' > Any idea if there are outstanding problems here with SDE and > mapserver not playing nice with this? We're beating our heads > against the wall thinking about what config we could have missed. > > Oh - labels with french are fine, and so are legends; it's only the > getfeatureinfo queries that have troubles. > The problem is very likely SDE. Can you get things to work with a simple shapefile? Do you know what the SOIL_ORDER_NAME_FR column type is defined as? From jbw2003 at earthlink.net Fri Nov 21 09:19:10 2008 From: jbw2003 at earthlink.net (jim white) Date: Fri, 21 Nov 2008 12:19:10 -0500 Subject: [mapserver-users] Re: php mapscript objects in session? Message-ID: <4926ED8E.9020902@earthlink.net> Hi- > I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like to > create the MapScript map object and store it in the session: > > $_SESSION['map'] = ms_newMapObj($getMapPath); > > This works fine for the that page, for the first call, but when I > attempt to reference it later I get a PHP error: > Fatal error: Object has an invalid _handle_ property > > Am I missing something here? > > Thanks, > -Chris Chris, When you attempt to start a session, you need to load the class definition first. For example Jim -- James (Jim) B. White tel: (919)-380-9615 homepage: http://jimserver.net/ From nahumoz at gmail.com Fri Nov 21 11:04:19 2008 From: nahumoz at gmail.com (Oz Nahum) Date: Fri, 21 Nov 2008 20:04:19 +0100 Subject: [mapserver-users] filtering features of layer by quarries in attribute table Message-ID: <6ec71d090811211104ncece42fxcf6d8c8f8a842e3a@mail.gmail.com> Hi, I would like to have attributed of a layer, displayed according their area. For example, I want to display a simple polygon layer, which have in the attribute table the field "AREA" which is the field in meter sq. I would like to display the layer in 3 different color schemes, like - color a for AREA < 1000, color b for AREA > 1000 && AREA < 5000, and color c for AREA > 5000 . >From map server tutorial I saw I can refer to string attribute, for example: I used the files from: http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-4.html Here is what I am talking about... CLASSITEM 'FEATURE' CLASS NAME 'Lakes' EXPRESSION /(^B|^C|^L|^R)./ STYLE COLOR 72 64 254 END END # CLASS CLASS NAME 'Rivers' EXPRESSION 'Stream' STYLE COLOR 136 128 255 END END # CLASS CLASS NAME 'Wetlands' EXPRESSION 'Swamp or Marsh' STYLE COLOR 195 252 255 OUTLINECOLOR 195 252 255 SYMBOL 'circle' SIZE 0 END END # CLASS END # LAYER But all my attempts to classify water bodies according to their area did not succeed. Can anyone help me? Thanks, Oz --- when one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." Robert Pirsig, Zen and the Art of Motorcycle Maintenance From condit at sdsc.edu Fri Nov 21 15:24:13 2008 From: condit at sdsc.edu (Christopher Condit) Date: Fri, 21 Nov 2008 15:24:13 -0800 Subject: [mapserver-users] Re: php mapscript objects in session? In-Reply-To: <4926ED8E.9020902@earthlink.net> References: <4926ED8E.9020902@earthlink.net> Message-ID: <845AADAC1106E44996327D62097E4C6B011F0BDD@et.ad.sdsc.edu> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of jim white > Sent: Friday, November 21, 2008 9:19 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Re: php mapscript objects in session? > > Hi- > > I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like to > > create the MapScript map object and store it in the session: > > > > $_SESSION['map'] = ms_newMapObj($getMapPath); > > > > This works fine for the that page, for the first call, but when I > > attempt to reference it later I get a PHP error: > > Fatal error: Object has an invalid _handle_ property > > > > Am I missing something here? > > > > Thanks, > > -Chris > > Chris, > > > When you attempt to start a session, you need to load the class > definition first. For example > > require('myclass.php'); > session_start(); > ?> > Hi Jim- Thanks for responding... Actually, I can store non MapScript objects in the $_SESSION just fine, but when I attempt to either: 1) add the MapScript object as a private member of my class 2) simply save the MapScript object to the $_SESSION and then reuse, I get the error. Have you managed to store MapScript objects in sessions? -Chris From jbw2003 at earthlink.net Fri Nov 21 15:35:46 2008 From: jbw2003 at earthlink.net (jim white) Date: Fri, 21 Nov 2008 18:35:46 -0500 Subject: [mapserver-users] Re: php mapscript objects in session? In-Reply-To: <845AADAC1106E44996327D62097E4C6B011F0BDD@et.ad.sdsc.edu> References: <4926ED8E.9020902@earthlink.net> <845AADAC1106E44996327D62097E4C6B011F0BDD@et.ad.sdsc.edu> Message-ID: <492745D2.2080506@earthlink.net> Christopher Condit wrote: >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] On Behalf Of jim white >> Sent: Friday, November 21, 2008 9:19 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Re: php mapscript objects in session? >> >> Hi- >> >>> I'm using ms4w 2.2.7 and I've run into a problem. Ideally I'd like >>> > to > >>> create the MapScript map object and store it in the session: >>> >>> $_SESSION['map'] = ms_newMapObj($getMapPath); >>> >>> This works fine for the that page, for the first call, but when I >>> attempt to reference it later I get a PHP error: >>> Fatal error: Object has an invalid _handle_ property >>> >>> Am I missing something here? >>> >>> Thanks, >>> -Chris >>> >> Chris, >> >> >> When you attempt to start a session, you need to load the class >> definition first. For example >> >> > require('myclass.php'); >> session_start(); >> ?> >> >> > Hi Jim- > Thanks for responding... > > Actually, I can store non MapScript objects in the $_SESSION just fine, > but when I attempt to either: > 1) add the MapScript object as a private member of my class > 2) simply save the MapScript object to the $_SESSION and then reuse, I > get the error. > > Have you managed to store MapScript objects in sessions? > -Chris > > > Chris, No I haven't saved a Mapscript object. Perhaps this is more a response to another post that said you could only access session variables, and not classes, from another page. However, you might try replacing require('myclass.php'); with if(!extension_loaded('MapScript')){ dl("php_mapscript.so"); } There must be a way to persist a mapscript object, but I don't know enough of OO design to tell you the answer. Jim -- James (Jim) B. White tel: (919)-380-9615 homepage: http://jimserver.net/ From hobu.inc at gmail.com Fri Nov 21 20:00:51 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Fri, 21 Nov 2008 22:00:51 -0600 Subject: [mapserver-users] Re: php mapscript objects in session? In-Reply-To: <492745D2.2080506@earthlink.net> References: <4926ED8E.9020902@earthlink.net> <845AADAC1106E44996327D62097E4C6B011F0BDD@et.ad.sdsc.edu> <492745D2.2080506@earthlink.net> Message-ID: <54B9593F-2592-447C-A875-C474D5F2634A@gmail.com> On Nov 21, 2008, at 5:35 PM, jim white wrote: > There must be a way to persist a mapscript object, but I don't know > enough of OO design to tell you the answer. Ah, MapScript object persistence... the restless leg syndrome of MapServer. Though neither convenient nor pretty, the One True Way (TM) to persist MapScript objects is the mapfile format. Every other approach will just cause hair loss, unexplained rashes, nausea, and memory leakage. The UpdateFromString and save methods are the way to go. Your target MapScript language has no problem persisting strings, and you don't have to worry about the mess of object lifetimes that might result from trying to light up a once dead mapObj. Howard From jose.maria.michia at gmail.com Fri Nov 21 20:38:15 2008 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Sat, 22 Nov 2008 01:38:15 -0300 Subject: [mapserver-users] Create a file "GML" from a layer of type"annotation". In-Reply-To: <60131.89.97.235.106.1227260589.squirrel@localhost.localdomain> References: <53460.192.168.1.60.1227189017.squirrel@localhost.localdomain> <60131.89.97.235.106.1227260589.squirrel@localhost.localdomain> Message-ID: 2008/11/21 Pietro Giannini : > If I understood, you want to use mapserver as a label-generator, because > the algorithm used satisfy you, but IMHO there is no method to extract the > labels generated from mapserver, also using mapscript. Yes Pietro, exactly. > In your place, I would use directly a desktop GIS, whatever you want, to > generate labels directly from layer source. > Try UDig (udig.refractions.net) as free GIS, it has a non-collision > algorithm for objects labels. I tried UDig. I like the labels. However, I have not found a way to export the labels out of uDig (generalized to a certain scale). And what I wish, finally, is to use the results of labeling in GMT. > another way? > a ready-to-use library for cartographic label placement under free > software license -> http://geosysin.iict.ch/trac/wiki/Index4extJPAL interesting. I'm going to try this. I knew it existed, but I did not know that PAL was ready to use. I hope to be ready to use me too. I downloaded libpal, and the file "COPYING" said it was "GPL". If I can use PAL, I think that is a very good alternative. Thanks Pietro Jos? Mar?a > ciao > .............................. pg > > > On Ven, Novembre 21, 2008 07:27, Jos? Mar?a Michia wrote: >> 2008/11/21 Rahkonen Jukka : >>> Hi, >>> >>> I guess that annotation layers are not supported for this use and you >>> should somehow create a point type layer that acts like the annotation >>> layer. There needs only be two colums in the schema, geometry and name. >>> I don't know it could be done, but have you tried just to change the >>> layer type to point? >> >> You are right. The server "WFS" does not support ANNOTATION layers. >> >> I have not tried to change the type of geometry of the layer to point. >> >> However, the geometry type of data is polygon, so I can easily convert >> to centroids. >> >> The test that I've done it, is to change the type of geometry of the >> layer to the type polygon, instead of annotation. In this way, I've >> moved closer to the goal. But the GML file that I have been able to >> obtain, is the product of a "REQUEST = GetFeature". Because of this, >> the result contains all elements, not only those items with >> generalized labels by MapServer. >> >> I think that some scripting can be used to read de labels cache, and >> write the data in a convenient way. I still have not been able to >> explore this alternative. >> >>> -Jukka Rahkonen- >> >> Thanks Jukka! >> >>> >>> >>> -----Alkuper?inen viesti----- >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jos? Mar?a >>> Michia >>> L?hetetty: pe 21.11.2008 5:51 >>> Vastaanottaja: Pietro Giannini >>> Kopio: mapserver-users at lists.osgeo.org >>> Aihe: Re: [mapserver-users] Create a file "GML" from a layer of >>> type"annotation". >>> >>> Hi, >>> >>> Maybe is useful explain more precisely my goal. >>> >>> The attached image is a PNG obtained by using shp2img. The layer >>> displayed is an ANNOTATION LAYER. The labels are generalized by >>> MapServer. I wish to get the labels displayed in this extent, in this >>> scale, with this degree of generalization, in a GIS format, like GML, >>> or ShapeFile. I wish to use these file in GMT, that no have >>> implemented labeling algorithm. >>> >>> My attempts: >>> >>> 1. shp2img: i obtained PDF files, which can be integrated in the final >>> map using something like Inkscape. >>> 2. WMS: only can obtain a raster image. >>> 3. WFS: I have been able to generate GML files using an WFS request,of >>> type GetFeature. However, GetFeature work on all elements, without >>> caring for the widespread labeling. I do not want all the labels, only >>> those that have been generalized to a certain scale. >>> >>> In the past, I used MapScript. If I remember correctly, I could do >>> this by using a script in PHP or Python. Correct? >>> >>> Thanks for any advice. >>> Jos? Mar?a >>> >>> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From russell at flora.ca Sat Nov 22 10:08:57 2008 From: russell at flora.ca (Russell McOrmond) Date: Sat, 22 Nov 2008 13:08:57 -0500 Subject: [mapserver-users] Confirmation of status of UTF8 support, and where transcoding to Latin-1 may be happening. Message-ID: <49284AB9.9010407@flora.ca> I have a customer that is using MapServer, talking through ArcSDE to an Oracle database. When we do a GetFeatureInfo we notice that substitutions from the database have been transcoded from UTF8 (how the data is stored in the Oracle Database) to Latin-1 being output from MapServer (as viewed by the browser). Other aspects of the page are UTF8 encoded, and the server is otherwise configured to set character encoding to UTF8. The intention is to have everything be UTF8 from end-to-end (It is departmental standard). Legends and other such things are coming out correctly. When we connect directly to the ArcSDE server via the ArcGIS Desktop products the characters are displayed 'correctly', but not knowing these tools well I don't know if that means they are recognizing the Latin-1 character set correctly and displaying that or recognizing the UTF8 characters and displaying that. We aren't using any characters that couldn't be correctly transcoded from UTF8 to Latin-1. Either way, these tools are being told the correct character encoding and displaying correctly. We are looking for options of where to look next. I'm not the person who compiled MapServer with the ArcSDE 9.2 SDK, but can easily confirm things with them if I knew what questions I should be asking. Is there a quick way to confirm what character encoding is being output from ArcSDE so that we will know we need to be looking at settings there (IE: the NLS_LANG settings for SDE connecting to Oracle), or looking for something on the machine running Mapserver that is doing the transcoding. Thank you for any help! -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://www.digital-copyright.ca/petition/ict/ "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From jbw2003 at earthlink.net Sat Nov 22 11:32:21 2008 From: jbw2003 at earthlink.net (jim white) Date: Sat, 22 Nov 2008 14:32:21 -0500 Subject: [mapserver-users] Re: php mapscript objects in session? In-Reply-To: <54B9593F-2592-447C-A875-C474D5F2634A@gmail.com> References: <4926ED8E.9020902@earthlink.net> <845AADAC1106E44996327D62097E4C6B011F0BDD@et.ad.sdsc.edu> <492745D2.2080506@earthlink.net> <54B9593F-2592-447C-A875-C474D5F2634A@gmail.com> Message-ID: <49285E45.2090202@earthlink.net> Howard Butler wrote: > > On Nov 21, 2008, at 5:35 PM, jim white wrote: >> There must be a way to persist a mapscript object, but I don't know >> enough of OO design to tell you the answer. > > Ah, MapScript object persistence... the restless leg syndrome of > MapServer. Though neither convenient nor pretty, the One True Way (TM) > to persist MapScript objects is the mapfile format. Every other > approach will just cause hair loss, unexplained rashes, nausea, and > memory leakage. > > The UpdateFromString and save methods are the way to go. Your target > MapScript language has no problem persisting strings, and you don't > have to worry about the mess of object lifetimes that might result > from trying to light up a once dead mapObj. > > Howard > I searched Mapserver site for UpdateFromString and found only MS RFC 31: Loading MapServer Objects from Strings. I was able to use the save function and print out the file which did work. However, my 2 attempts failed. $map->UpdateFromString('saved_map.txt'); got Call to undefined method ms_map_obj::UpdateFromString() and $map2 = msLoadMapFromString('saved_map.txt'); got Call to undefined function msLoadMapFromString() I am using mapserver 5.0.0 Jim -- James (Jim) B. White tel: (919)-380-9615 homepage: http://jimserver.net/ From chris123 at magma.ca Sat Nov 22 13:17:50 2008 From: chris123 at magma.ca (Chris h) Date: Sat, 22 Nov 2008 16:17:50 -0500 Subject: [mapserver-users] install issues Message-ID: <200811221617.50529.chris123@magma.ca> Greets: Installing and testing mapserver with postgres intregration and I get the following errors when accessing the system with either one of the following two urls: http://localhost/cgi-bin/mapserv?map=world.map&request=getcapabilities&service=wms or http://localhost/cgi-bin/mapserv?map=world.map&mode=browse&layers=all&mode=map error# msLoadMap(): Unable to access file. (world.map) The particulars are as follows: ================================= following these instructions from http://quovadis.dk/index.cgi/i_can_has_gis:2007-10-20:geo,linux,server,ubuntu mapserver was build with the following variables: #MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -DUSE_THREAD -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG AGG Freetype support: -laggfontfreetype Ming(flash) support: PDFLib support: -------------- Data Format Drivers ------- native tiff support: -DUSE_TIFF PostGIS support: -DUSE_POSTGIS Proj.4 support: -DUSE_PROJ EPPL7 support: ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL GEOS support: -DUSE_GEOS Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -------------- MapScript ----------------- PHP MapScript: no Tested on localhost and it responds fine http://localhost/cgi-bin/mapserv output: No query information to decode. QUERY_STRING is set, but empty. Intgrating postgres/post-gis support I followed these instructions http://www.duif.net/postgis/ and installed the world.shp file. Tested it with qgis and it works fine given the necessary credentials: dbase name, user, password Using postgres 8.2 and postgresql.conf connection string set to listen_address = "*" pg_hba.conf is -------------------------------- # Database administrative login by UNIX sockets local all postgres ident sameuser # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all ident sameuser ------------------------------- The sample mapfile reads ------------------------------- map size 500 250 imagetype png imagecolor 0 0 255 extent -180 -90 180 90 projection "init=epsg:4326" end debug on web imagepath "/tmp/" imageurl "/tmp/" TEMPLATE "empty.html" metadata wms_title "WORLD" wms_srs "EPSG:4326" end end outputformat name "png256" driver "GD/PNG" imagemode "pc256" extension "png" end outputformat name "png" driver "GD/PNG" imagemode "rgba" extension "png" mimetype "image/png" imagemode RGBA end outputformat name "jpg" driver "GD/JPEG" extension "jpg" formatoption "QUALITY=85" end layer name 'world' metadata "wms_title" "postgis world" "wms_srs" "epsg:4326" end status default template "dummy" connectiontype postgis connection "host=localhost dbname=**** password=**** user=****" data 'the_geom from mygisdb using unique gid using srid=4326' type polygon class color 255 0 0 outlinecolor 192 192 192 end end end ------------------------eof---------------- Now when I access the system by means of the following URL's I get the respective errors: http://localhost/cgi-bin/mapserv?map=world.map&request=getcapabilities&service=wms or http://localhost/cgi-bin/mapserv?map=world.map&mode=browse&layers=all&mode=map msLoadMap(): Unable to access file. (world.map) Im not sure but I think this is a postgres permission issue or something along those line. Any ideas? Best regards and thanks for any insights. -- /ch From warmerdam at pobox.com Sat Nov 22 13:58:32 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sat, 22 Nov 2008 16:58:32 -0500 Subject: [mapserver-users] install issues In-Reply-To: <200811221617.50529.chris123@magma.ca> References: <200811221617.50529.chris123@magma.ca> Message-ID: <49288088.4030204@pobox.com> Chris h wrote: > Now when I access the system by means of the following URL's I get the > respective errors: > http://localhost/cgi-bin/mapserv?map=world.map&request=getcapabilities&service=wms > or > http://localhost/cgi-bin/mapserv?map=world.map&mode=browse&layers=all&mode=map > > msLoadMap(): Unable to access file. (world.map) > > Im not sure but I think this is a postgres permission issue or something along > those line. > > Any ideas? > > Best regards and thanks for any insights. Chris, Try providing the full path to the map file. Something like http://localhost/cgi-bin/mapserv?map=/opt/maps/world.map&mode=browse&layers=all&mode=map Otherwise it will only work if your world.map happens to be in the currently working directory of the mapserv process (I have no idea where that would normally be). 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 rafael at opengeo.com.br Sat Nov 22 14:03:17 2008 From: rafael at opengeo.com.br (Rafael Almeida Fernandez Soto) Date: Sat, 22 Nov 2008 20:03:17 -0200 Subject: [mapserver-users] install issues In-Reply-To: <49288088.4030204@pobox.com> References: <200811221617.50529.chris123@magma.ca> <49288088.4030204@pobox.com> Message-ID: <90a5e5b30811221403w5e298b5fk655cfe54f16eb662@mail.gmail.com> Chris, Put your world.map in cgi-bin apache directory. 2008/11/22 Frank Warmerdam > Chris h wrote: > >> Now when I access the system by means of the following URL's I get the >> respective errors: >> >> http://localhost/cgi-bin/mapserv?map=world.map&request=getcapabilities&service=wms >> or >> >> http://localhost/cgi-bin/mapserv?map=world.map&mode=browse&layers=all&mode=map >> msLoadMap(): Unable to access file. (world.map) >> >> Im not sure but I think this is a postgres permission issue or something >> along those line. >> Any ideas? >> Best regards and thanks for any insights. >> > > Chris, > > Try providing the full path to the map file. Something like > > > http://localhost/cgi-bin/mapserv?map=/opt/maps/world.map&mode=browse&layers=all&mode=map > > Otherwise it will only work if your world.map happens to be in the > currently > working directory of the mapserv process (I have no idea where that would > normally be). > > 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 > -- RAFAEL Almeida Fernandez Soto :: rafael at opengeo.com.br Consultant in FOSS GIS :: 55 21 2518-6233 :: 55 71 8802-0600 OpenGEO :: On-demand training and solutions :: www.opengeo.com.br GEO Livre community:: Because Geoinformation should be free :: www.geolivre.org.br Be free by using Free Software, such as MapServer, PostgreSQL/PostGIS, gvSIG... -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris123 at magma.ca Sat Nov 22 14:58:19 2008 From: chris123 at magma.ca (Chris h) Date: Sat, 22 Nov 2008 17:58:19 -0500 Subject: [mapserver-users] install issues In-Reply-To: <49288088.4030204@pobox.com> References: <200811221617.50529.chris123@magma.ca> <49288088.4030204@pobox.com> Message-ID: <200811221758.19334.chris123@magma.ca> On Saturday 22 November 2008 16:58:32 you wrote: > Try providing the full path to the map file. Something like > > http://localhost/cgi-bin/mapserv?map=/opt/maps/world.map&mode=browse&layers >=all&mode=map Apologies in advance as total nube at this. The map exists in the postgesql db and the mapfile makes a call to that db to render it via mapserver processes. At least that's how I understand the references sited and followed. ???? The shapefile download was processed into a .sgl file and loaded into the spatially enabled db. The mapfile presented is supposed to make a call to that db. Perhaps Im missing something as I see no significant errors in the postgresql logs. The processes dont seem to be talking to each other. Many thanks for your comments however. -- /ch From nguyenquangvinh20052005 at yahoo.com Sat Nov 22 19:57:15 2008 From: nguyenquangvinh20052005 at yahoo.com (vinh nguyenquang) Date: Sun, 23 Nov 2008 11:57:15 +0800 (SGT) Subject: [mapserver-users] Ask about point in mapserver Message-ID: <919422.82096.qm@web76212.mail.sg1.yahoo.com> Hi, every one ??? How can i customize point in mapserver? I want to change? size and shape of the point. For example i want to render point as a rectangle or triangle in mapserver. Can you help me how to do it in map file (.map). Thanks and regard! ??a ch? email m?i d?nh cho b?n! Ch?n ngay m?t t?n truy nh?p b?n t?ng mu?n l?p v?i t?n mi?n m?i ymail v? rocketmail. Nhanh nhanh tr??c khi c? ng??i x? m?t! http://mail.promotions.yahoo.com/newdomains/vn/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat Nov 22 22:45:13 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 23 Nov 2008 08:45:13 +0200 Subject: [mapserver-users] install issues References: <200811221617.50529.chris123@magma.ca> <49288088.4030204@pobox.com> <200811221758.19334.chris123@magma.ca> Message-ID: Hi, First thing to do is to call "mapserv" cgi-bin program. Then the program is searching for a "mapfile" that is given by "map" parameter in the request. And finalle the mapfile is interpreted for making the final map image. Mapfile has all the instruction about where to find the data and what to do with it. In your case mapserv program is found, but the error message tells that the second step fails and the mapfile "world.map" is not found. Either the request must be edited so that Apache finds it or the mapfile must be moved to the directory where Apache now tries to find it with the current request. I suggest the first solution. As did Frank, even his example request may be nonsense with two different "mode" options. > http://localhost/cgi-bin/mapserv?map=/opt/maps/world.map&mode=browse&layers=all&mode=map Most secure way is to give to full absolute path in the file system. In Windows it is something like map=c:\ms4w\apps\map\world.map, but I don't know about Linux. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Chris h L?hetetty: su 23.11.2008 0:58 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] install issues On Saturday 22 November 2008 16:58:32 you wrote: > Try providing the full path to the map file. Something like > > http://localhost/cgi-bin/mapserv?map=/opt/maps/world.map&mode=browse&layers >=all&mode=map Apologies in advance as total nube at this. The map exists in the postgesql db and the mapfile makes a call to that db to render it via mapserver processes. At least that's how I understand the references sited and followed. ???? The shapefile download was processed into a .sgl file and loaded into the spatially enabled db. The mapfile presented is supposed to make a call to that db. Perhaps Im missing something as I see no significant errors in the postgresql logs. The processes dont seem to be talking to each other. Many thanks for your comments however. -- /ch _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From rdmailings at duif.net Sun Nov 23 00:11:19 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Sun, 23 Nov 2008 09:11:19 +0100 Subject: [mapserver-users] install issues In-Reply-To: <200811221617.50529.chris123@magma.ca> References: <200811221617.50529.chris123@magma.ca> Message-ID: <49291027.5010803@duif.net> Hi Chris, what you see is a typical mapserver error. The cgi is not able to load it's mapdefinitions from the (map)file 'world.map' (it's doesn't even know yet that it has to load something from postgis :-) ). Either the user that is running your apache/cgi's is not able to read tha world.map which as you do should sit next to the cgi: existence? permissions? Another option is to give the full path to mapserver: http://localhost/cgi-bin/mapserv?map=/usr/lib/cgi-bin/world.map&request=getcapabilities&service=wms http://localhost/cgi-bin/mapserv?map=/usr/lib/cgi-bin/world.map&mode=browse&layers=all&mode=map But it sounds that the map-file is just not there/readable for mapserv? You can also check your mapfile (so also your postgresgl connection) using the shp2img command line utility: shp2img -m world.map -o /home/yourname/world.png (given your layer has 'status default') this should give you a map also. Regards, Richard Duivenvoorde Chris h wrote: > Greets: > > Installing and testing mapserver with postgres intregration and I get the > following errors when accessing the system with either one of the following > two urls: > http://localhost/cgi-bin/mapserv?map=world.map&request=getcapabilities&service=wms > or > http://localhost/cgi-bin/mapserv?map=world.map&mode=browse&layers=all&mode=map > > error# msLoadMap(): Unable to access file. (world.map) > > The particulars are as follows: > > ================================= > following these instructions from > > http://quovadis.dk/index.cgi/i_can_has_gis:2007-10-20:geo,linux,server,ubuntu > > mapserver was build with the following variables: > > #MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: -DNEED_NONBLOCKING_STDERR > Generic NINT: > Threading support: -DUSE_THREAD > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: -DUSE_AGG > AGG Freetype support: -laggfontfreetype > Ming(flash) support: > PDFLib support: > > -------------- Data Format Drivers ------- > native tiff support: -DUSE_TIFF > PostGIS support: -DUSE_POSTGIS > Proj.4 support: -DUSE_PROJ > EPPL7 support: > ArcSDE support: > OGR support: -DUSE_OGR > GDAL support: -DUSE_GDAL > GEOS support: -DUSE_GEOS > Oracle Spatial support: > FastCGI support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: -DUSE_WFS_SVR > WFS Client: -DUSE_WMS_LYR > WCS Server: -DUSE_WCS_SVR > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: no > > Tested on localhost and it responds fine > > http://localhost/cgi-bin/mapserv > > output: No query information to decode. QUERY_STRING is set, but empty. > > Intgrating postgres/post-gis support I followed these instructions > > http://www.duif.net/postgis/ > > and installed the world.shp file. Tested it with qgis and it works fine > given the necessary credentials: dbase name, user, password > > Using postgres 8.2 and postgresql.conf connection string set to > > listen_address = "*" > > pg_hba.conf is > -------------------------------- > # Database administrative login by UNIX sockets > local all postgres ident sameuser > > # TYPE DATABASE USER CIDR-ADDRESS METHOD > > # "local" is for Unix domain socket connections only > local all all ident sameuser > ------------------------------- > > The sample mapfile reads > > ------------------------------- > map > size 500 250 > imagetype png > imagecolor 0 0 255 > extent -180 -90 180 90 > > projection > "init=epsg:4326" > end > > debug on > > web > imagepath "/tmp/" > imageurl "/tmp/" > TEMPLATE "empty.html" > metadata > wms_title "WORLD" > wms_srs "EPSG:4326" > end > end > > outputformat > name "png256" > driver "GD/PNG" > imagemode "pc256" > extension "png" > end > outputformat > name "png" > driver "GD/PNG" > imagemode "rgba" > extension "png" > mimetype "image/png" > imagemode RGBA > end > outputformat > name "jpg" > driver "GD/JPEG" > extension "jpg" > formatoption "QUALITY=85" > end > > layer > name 'world' > metadata > "wms_title" "postgis world" > "wms_srs" "epsg:4326" > end > status default > template "dummy" > connectiontype postgis > connection "host=localhost dbname=**** password=**** user=****" > data 'the_geom from mygisdb using unique gid using srid=4326' > type polygon > class > color 255 0 0 > outlinecolor 192 192 192 > end > end > > end > ------------------------eof---------------- > > > Now when I access the system by means of the following URL's I get the > respective errors: > http://localhost/cgi-bin/mapserv?map=world.map&request=getcapabilities&service=wms > or > http://localhost/cgi-bin/mapserv?map=world.map&mode=browse&layers=all&mode=map > > msLoadMap(): Unable to access file. (world.map) > > Im not sure but I think this is a postgres permission issue or something along > those line. > > Any ideas? > > Best regards and thanks for any insights. > > From nguyenquangvinh20052005 at yahoo.com Sun Nov 23 03:12:14 2008 From: nguyenquangvinh20052005 at yahoo.com (vinh nguyenquang) Date: Sun, 23 Nov 2008 19:12:14 +0800 (SGT) Subject: [mapserver-users] (no subject) Message-ID: <942322.77385.qm@web76206.mail.sg1.yahoo.com> Hi, everyone I am using ogr2ogr -where "TENHUYEN='CUM'GAR'? " CUMGAR.shp LopHanhChinh.shp . I have a problem that is CUM'GAR have a symbol ( ' ),? so i can not use the above command. Can you help me? solve this problem. Thank you very much! Regard T?o phong c?ch ri?ng v?i nhi?u m?u n?n m?i. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rdmailings at duif.net Sun Nov 23 05:19:38 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Sun, 23 Nov 2008 14:19:38 +0100 Subject: [mapserver-users] install issues In-Reply-To: <49291027.5010803@duif.net> References: <200811221617.50529.chris123@magma.ca> <49291027.5010803@duif.net> Message-ID: <4929586A.6060209@duif.net> Chris h wrote: > This is where it gets confusing to me. The instruction state that the > world.zip is to be extracted and converted to an .sql and loaded into > postgres. There is no reference to a world.map file on the file system nor is > a world.map file available from the zip package. So Im kinda lost on where > this world.map if from and where it is to be placed. From the sounds of it it > needs to be created from the data.zip package via shp2img command? > >> http://localhost/cgi-bin/mapserv?map=/usr/lib/cgi-bin/world.map&request=get >> capabilities&service=wms >> http://localhost/cgi-bin/mapserv?map=/usr/lib/cgi-bin/world.map&mode=browse >> &layers=all&mode=map >> >> But it sounds that the map-file is just not there? Hi Chris, in mapserv-lingua a 'map-file' is a init-file for the mapserv-executable that is running as a cgi in you webserver (apache). in the instructions there is a link to a mapfile stub: http://www.duif.net/postgis/world.map (please change username/password in it for the postgresql connection) It's this mapfile that should sit next to the cgi and from which the cgi gets the information where to find data to paint your map-image. And it's that mapfile that is not next to your cgi apparently. shp2img is just a shortcut/another way to instruct mapserv to generate an image based on a map(definition)file. be sure that you mapfile is readable for the user that is running your webserver (which by the way should not be root). The user is probably www-data or somethink like that. Use ps -ef for example to find out WHO is running /usr/bin/apache have a dive into this one: http://ms.gis.umn.edu/docs/reference/cgi and http://www.zzee.com/solutions/linux-permissions.shtml hope this helps. Regards, Richard Duivenvoorde ps sending this to the list also so other newbies benefit from your questions also. From ivan.mincik at gmail.com Sun Nov 23 12:07:04 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Sun, 23 Nov 2008 21:07:04 +0100 Subject: [mapserver-users] Mapserver legend is never transparent Message-ID: <200811232107.04573.ivan.mincik@gmail.com> I have a problem that mapserver legend is never transparent even when using php-mapscript or querying WMS layer. Tested at few of mapserver 5.x.x versions. I have TRANSPARENT ON set in OUTPUTFORMAT. OS: Debian Etch Is this only my case ? Thanks. Ivan From chris123 at magma.ca Sun Nov 23 12:14:46 2008 From: chris123 at magma.ca (Chris h) Date: Sun, 23 Nov 2008 15:14:46 -0500 Subject: [mapserver-users] install issues In-Reply-To: <4929586A.6060209@duif.net> References: <200811221617.50529.chris123@magma.ca> <49291027.5010803@duif.net> <4929586A.6060209@duif.net> Message-ID: <200811231514.46784.chris123@magma.ca> On Sunday 23 November 2008 08:19:38 you wrote: Thanks for all the help everyone. I finally got it up and running. The problems were as follows: 1. incorrect permission sets on mapserv and mapfile binaries 2. Typical nubie error in that I did not rename the mapfile to world.map 3. The data set used generates the database and table in postgress were mixed up. The mapfile did not point to the correct table Once that got sorted, she works fine. Thanks for everyones help its appreciated. Not that I have a basic system up I can start reading the tutorials and dive into this subject. Regards and thanks again. -- /ch From gregor at hostgis.com Sun Nov 23 18:57:58 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Sun, 23 Nov 2008 18:57:58 -0800 Subject: [mapserver-users] Symbology Exchange Message-ID: <492A1836.4050409@hostgis.com> Hey folks. A FYI: Due to hobu's request, I have moved the Symbology Exchange into the Trac Wiki and updated the old pages on the MapServer Plone site. This means that we can post symbols and still have the code look good, which is nice. http://mapserver.gis.umn.edu/docs/howto/symbologyexchange is now http://trac.osgeo.org/mapserver/wiki/SymbologyExchange -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From vtammineni at roulacglobal.com Sun Nov 23 19:36:47 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 24 Nov 2008 09:06:47 +0530 Subject: [mapserver-users] Ask about point in mapserver In-Reply-To: <919422.82096.qm@web76212.mail.sg1.yahoo.com> References: <919422.82096.qm@web76212.mail.sg1.yahoo.com> Message-ID: <001b01c94de5$e2da80f0$a88f82d0$@com> Hi, Yes, You can .For that you have to write code symbols.. See below url. http://mapserver.gis.umn.edu/docs/howto/cartosymbols/?searchterm=symbols I hope this helps you. Thanks, Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of vinh nguyenquang Sent: Sunday, November 23, 2008 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Ask about point in mapserver Hi, every one How can i customize point in mapserver? I want to change size and shape of the point. For example i want to render point as a rectangle or triangle in mapserver. Can you help me how to do it in map file (.map). Thanks and regard! _____ B?n c? ? ki?n v? M? T?m? H?y c?ng chia s? v?i m?i ng??i t?i Yahoo! Vi?t Nam Music -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten at terragis.net Mon Nov 24 01:35:59 2008 From: karsten at terragis.net (karsten vennemann) Date: Mon, 24 Nov 2008 01:35:59 -0800 Subject: [mapserver-users] Obama Campaign - Mapping voters with Mapserver, PostGIS and Openlayers Message-ID: <003901c94e18$0fb71c50$6801a8c0@snuggie> I wanted to share this with you all. http://www.terragis.net/2008/11/24/obama-campaign-mapping-voters-with-mapserver-postgis-and-openlayers/ Karsten -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Mon Nov 24 01:47:57 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 24 Nov 2008 15:17:57 +0530 Subject: [mapserver-users] Obama Campaign - Mapping voters with Mapserver, PostGIS and Openlayers In-Reply-To: <003901c94e18$0fb71c50$6801a8c0@snuggie> References: <003901c94e18$0fb71c50$6801a8c0@snuggie> Message-ID: <003801c94e19$bcb1d610$36158230$@com> Hi Karsten, It looks great. Thanks, Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of karsten vennemann Sent: Monday, November 24, 2008 3:06 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Obama Campaign - Mapping voters with Mapserver, PostGIS and Openlayers I wanted to share this with you all. http://www.terragis.net/2008/11/24/obama-campaign-mapping-voters-with-mapserver-postgis-and-openlayers/ Karsten -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Mon Nov 24 02:25:01 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Mon, 24 Nov 2008 11:25:01 +0100 (CET) Subject: [mapserver-users] Re: php mapscript objects in session? In-Reply-To: <49285E45.2090202@earthlink.net> References: <4926ED8E.9020902@earthlink.net> <845AADAC1106E44996327D62097E4C6B011F0BDD@et.ad.sdsc.edu> <492745D2.2080506@earthlink.net> <54B9593F-2592-447C-A875-C474D5F2634A@gmail.com> <49285E45.2090202@earthlink.net> Message-ID: <58629.89.97.235.106.1227522301.squirrel@localhost.localdomain> Dear List, I would like to open a little debate about the objects persistence in a session. I found objects persistence very useful and, in my little experience, I get no problems like sharing objects across different sessions or data loss. In fact I entrust the thread safety systems of the environment, and I don't lock threads at application level. Methods to make persistent mapscripts objects in sessions vary according to the web engine used. I know only php and ASP.NET environments: php can only store primitives as strings, floats, integers; ASP.NET can instead store instanciated objects, like mapscript objects. In fact, php don't store the variables in memory but write a session file to re-read on the next postback, so the app must to re-istanciate the object according to a saved set of parameters, like extent-coordinates, layers status ... So I'm a bit amazed (read: worried) reading recent posts like: > And even if it was possible it is NOT recommended to reuse mapscript > objects across requests... > Ah, MapScript object persistence... the restless leg syndrome of > MapServer. Though neither convenient nor pretty, the One True Way > (TM) to persist MapScript objects is the mapfile format. Every other > approach will just cause hair loss, unexplained rashes, nausea, and > memory leakage. Why you don't recommend this methods? can you pls share your experience, before my hairs fall :) ? regards ...................... pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From candalt at online.no Mon Nov 24 02:06:39 2008 From: candalt at online.no (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Mon, 24 Nov 2008 11:06:39 +0100 (MET) Subject: [mapserver-users] Mapserver WFS, Intersect and projection Message-ID: <10920474.2899.1227521199557.JavaMail.adm-moff@moffice5.nsc.no> Hi Have a PostGIS dataset where the data is defined as LAT/LON (EPSG:4326). We have made a mapserver WFS layer based on this dataset, and populated it in EPSG:32633. We are able to do regular BBOX Filter on this theme, but when we try to do an Intersect filter, Mapserver only returns WFS null. If we make a view on the dataset, transforming the data to EPSG:32633 everything works fine. Is there a problem using WFS Filter (e.g. Intersect) in Mapserver when the source data is in one projection, and the mapfile another? E.g. in our case where the source data is in EPSG:4326, and the mapfile is in EPSG:32633? Regular GetFeature returns null http://myserver/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&MAXFEATURES=100&TYPENAME=layer_1 Regular BBOX works fine http://myserver/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&MAXFEATURES=100&TYPENAME=layer_1&FILTER=Geometry19547,6834875%2019806,6835088 Regular Intersect returns null http://myserver/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&MAXFEATURES=100&TYPENAME=layer_1&FILTER=Geometry19555,6835218%2019470,6834837%2019478,6834837%2019944,6834794%2019957,6835187%2019555,6835218 This mapfile definition fails (data is in EPSG:4326 and we make mapserver do transformation): LAYER PROJECTION "init=epsg:4326" END METADATA "wfs_title" "Test" "wfs_srs" "EPSG:32633" "wfs_abstract" "For ? hente dette tema via WFS m? ein nytte layer_1 som verdi i TYPENAME parameter" "gml_include_items" "all" END CONNECTION "user=xxxxxx password=xxxxxx dbname=test host=localhost" CONNECTIONTYPE postgis DATA "geom FROM (SELECT id,name,geom FROM test) AS test USING UNIQUE id USING SRID=4326" STATUS off TYPE point DUMP TRUE TEMPLATE "TRUE" NAME "layer_1" CLASS COLOR 255 0 0 MINSCALE 2000001 NAME "Test" OUTLINECOLOR 0 0 0 SIZE 8 SYMBOL "circle" END END This mafile definition works (data is in EPSG:4326, but we do transformation in POstGIS via the SQL to EPSG:32633): LAYER PROJECTION "init=epsg:32633" END METADATA "wfs_title" "Test" "wfs_srs" "EPSG:32633" "wfs_abstract" "For ? hente dette tema via WFS m? ein nytte layer_1 som verdi i TYPENAME parameter" "gml_include_items" "all" END CONNECTION "user=xxxxxx password=xxxxxx dbname=test host=localhost" CONNECTIONTYPE postgis DATA "geom FROM (SELECT id,name,transform(geom, 32633) AS geom FROM test) AS test USING UNIQUE id USING SRID=32633" STATUS off TYPE point DUMP TRUE TEMPLATE "TRUE" NAME "layer_1" CLASS COLOR 255 0 0 MINSCALE 2000001 NAME "Test" OUTLINECOLOR 0 0 0 SIZE 8 SYMBOL "circle" END END Am using Mapserver 5.2.0 Cheers Sture From NSoto at plotplans.com Mon Nov 24 04:24:17 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Mon, 24 Nov 2008 07:24:17 -0500 Subject: [mapserver-users] Obama Campaign - Mapping voters with Mapserver, PostGIS and Openlayers In-Reply-To: <003901c94e18$0fb71c50$6801a8c0@snuggie> References: <003901c94e18$0fb71c50$6801a8c0@snuggie> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B194D@geoexchange.DesLauriers.local> Makes me sick. Thanks. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of karsten vennemann Sent: Monday, November 24, 2008 4:36 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Obama Campaign - Mapping voters with Mapserver,PostGIS and Openlayers I wanted to share this with you all. http://www.terragis.net/2008/11/24/obama-campaign-mapping-voters-with-ma pserver-postgis-and-openlayers/ Karsten From florian.thuerkow at ufz.de Mon Nov 24 03:51:44 2008 From: florian.thuerkow at ufz.de (Florian Thuerkow) Date: Mon, 24 Nov 2008 12:51:44 +0100 Subject: [mapserver-users] boundingboxes Message-ID: <492A9550.9000503@ufz.de> Hi folks, I display several boundingboxes on a map from a PostgreSQL database. There is a big boundingbox which contains several smaller boundingboxes. The User can click on each boundingbox to retrieve further information of the boundingbox. The Problem now is that the user also retrieve the information of the big boundingbox and not only this of the small ones. Maybe someone can help me solving this problem? Thanks a lot, Florian Thuerkow -- Florian Thuerkow, Abt. WKDV Helmholtz-Zentrum f?r Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig http://www.ufz.de - eMail: florian.thuerkow at ufz.de Information nach ?? 37a HGB, 35a GmbHG: Sitz der Gesellschaft: Leipzig Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703 Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Gr?bel Wissenschaftlicher Gesch?ftsf?hrer: Prof. Dr. Georg Teutsch Administrativer Gesch?ftsf?hrer: Dr. Andreas Schmidt From florian.thuerkow at ufz.de Mon Nov 24 03:51:44 2008 From: florian.thuerkow at ufz.de (Florian Thuerkow) Date: Mon, 24 Nov 2008 12:51:44 +0100 Subject: [mapserver-users] boundingboxes Message-ID: <492A9550.9000503@ufz.de> Hi folks, I display several boundingboxes on a map from a PostgreSQL database. There is a big boundingbox which contains several smaller boundingboxes. The User can click on each boundingbox to retrieve further information of the boundingbox. The Problem now is that the user also retrieve the information of the big boundingbox and not only this of the small ones. Maybe someone can help me solving this problem? Thanks a lot, Florian Thuerkow -- Florian Thuerkow, Abt. WKDV Helmholtz-Zentrum f?r Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig http://www.ufz.de - eMail: florian.thuerkow at ufz.de Information nach ?? 37a HGB, 35a GmbHG: Sitz der Gesellschaft: Leipzig Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703 Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Gr?bel Wissenschaftlicher Gesch?ftsf?hrer: Prof. Dr. Georg Teutsch Administrativer Gesch?ftsf?hrer: Dr. Andreas Schmidt From Mike.Elstermann at itc-halle.de Mon Nov 24 05:16:59 2008 From: Mike.Elstermann at itc-halle.de (Elstermann, Mike) Date: Mon, 24 Nov 2008 14:16:59 +0100 Subject: AW: [mapserver-users] boundingboxes In-Reply-To: <492A9550.9000503@ufz.de> References: <492A9550.9000503@ufz.de> Message-ID: Hi Florian, My idea: use the boxes as lines and use the query-Mode NOT nquery. OK? mikeE. -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Florian Thuerkow Gesendet: Montag, 24. November 2008 12:52 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] boundingboxes Hi folks, I display several boundingboxes on a map from a PostgreSQL database. There is a big boundingbox which contains several smaller boundingboxes. The User can click on each boundingbox to retrieve further information of the boundingbox. The Problem now is that the user also retrieve the information of the big boundingbox and not only this of the small ones. Maybe someone can help me solving this problem? Thanks a lot, Florian Thuerkow -- Florian Thuerkow, Abt. WKDV Helmholtz-Zentrum f?r Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig http://www.ufz.de - eMail: florian.thuerkow at ufz.de Information nach ?? 37a HGB, 35a GmbHG: Sitz der Gesellschaft: Leipzig Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703 Vorsitzender des Aufsichtsrats: MinDirig Hartmut F. Gr?bel Wissenschaftlicher Gesch?ftsf?hrer: Prof. Dr. Georg Teutsch Administrativer Gesch?ftsf?hrer: Dr. Andreas Schmidt _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From russell at flora.ca Mon Nov 24 05:40:13 2008 From: russell at flora.ca (Russell McOrmond) Date: Mon, 24 Nov 2008 08:40:13 -0500 (EST) Subject: [mapserver-users] Confirmation of status of UTF8 support, and where transcoding to Latin-1 may be happening. In-Reply-To: <49284AB9.9010407@flora.ca> References: <49284AB9.9010407@flora.ca> Message-ID: On Sat, 22 Nov 2008, Russell McOrmond wrote: > I have a customer that is using MapServer, talking through ArcSDE to an > Oracle database. Chris Whitteker is working on the same project, and I would like to apologize for duplicating the question. Howard Butler replied to Chris and suggested that the transcoding from UTF-8 to Latin-1 is most likely happening within ArcSDE. We have some peole here that are experts on SDE, but want to avoid the finger-pointing (IE: They say the problem is in mapserver, and this list suggests the problem is in SDE). Can I get a quick confirmation that Mapserver supports UTF8 encoding, and doesn't internally transcode to Latin-1? Does it have the option to transcode that we might have inadvertantly enabled? This would help us know that we should focus our investigation on the settings of SDE and not settings within mapserver. Howard Butler then asked "Do you know what the SOIL_ORDER_NAME_FR column type is defined as?" Are you asking how the table is defined in the Oracle Database (Answer: UTF8, confirmed by our database folks), or how it is defined elsewhere in configuration for SDE or mapserver? -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From dmorissette at mapgears.com Mon Nov 24 06:14:52 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 24 Nov 2008 09:14:52 -0500 Subject: [mapserver-users] Re: php mapscript objects in session? In-Reply-To: <49285E45.2090202@earthlink.net> References: <4926ED8E.9020902@earthlink.net> <845AADAC1106E44996327D62097E4C6B011F0BDD@et.ad.sdsc.edu> <492745D2.2080506@earthlink.net> <54B9593F-2592-447C-A875-C474D5F2634A@gmail.com> <49285E45.2090202@earthlink.net> Message-ID: <492AB6DC.7070408@mapgears.com> jim white wrote: > I searched Mapserver site for UpdateFromString and found only MS RFC 31: > Loading MapServer Objects from Strings. I was able to use the save > function and print out the file which did work. However, my 2 attempts > failed. > > $map->UpdateFromString('saved_map.txt'); got Call to undefined method > ms_map_obj::UpdateFromString() > > and > > $map2 = msLoadMapFromString('saved_map.txt'); got Call to undefined > function msLoadMapFromString() > > I am using mapserver 5.0.0 > It seems that the updateFromString() methods were never implemented in PHP MapScript. We'll try to work on that soon and get them in 5.4. Here is the related ticket: http://trac.osgeo.org/mapserver/ticket/2298 Note that there is no updateFromString() on the mapObj, only on the individual object classes that compose a map (layerObj, classObj, etc.). To instantiate a map from a saved file, you can pass the path to the saved mapfile the mapObj constructor itself. Actually, here is a list of the classes that implement updateFromString(), from a quick grep of the SWIG MapScript code: class.i: int updateFromString(char *snippet) label.i: int updateFromString(char *snippet) layer.i: int updateFromString(char *snippet) legend.i: int updateFromString(char *snippet) querymap.i: int updateFromString(char *snippet) referencemap.i: int updateFromString(char *snippet) scalebar.i: int updateFromString(char *snippet) style.i: int updateFromString(char *snippet) web.i: int updateFromString(char *snippet) Daniel -- Daniel Morissette http://www.mapgears.com/ From NSoto at plotplans.com Mon Nov 24 06:42:01 2008 From: NSoto at plotplans.com (Nelson Soto) Date: Mon, 24 Nov 2008 09:42:01 -0500 Subject: [mapserver-users] Confirmation of status of UTF8 support, andwhere transcoding to Latin-1 may be happening. In-Reply-To: References: <49284AB9.9010407@flora.ca> Message-ID: <7BA6F57E003ADF4EA12DAA3043BB13D43B1958@geoexchange.DesLauriers.local> The problem, it seems, is with Mapserver's UTF-8-type of support. To clarify, UTF-8 is supported just fine in Mapserver, but if it is a UTF-typeof encoding, then it tried to convert to UTF-8 which doesn't seem to work well. The data is in latin1 but is Unicode encoded, so that you achieve the same thing in most environments and just about every program can interpret this. Mapserver does have a little trouble with this. The thing is, though, that it isn't so much ArcSDE as it is MSSQL, I think. Could be wrong on that part but to make a long story short, I think Mapserver is the component that converts the unicoded encoded latin1 into something that doesn't work. It's a standard-based process, I think, so I doubt anything will change on the SDE half of it for the seeming future. Not finger-pointing, I'm just expressing my interpretation of the situation. You can dump your ArcSDE config to a file and disable UNICODE_ENCODING (I think that's the name of the field) and then reimport the file into SDE and this will mean the collation and encoding will remain latin1 in your case, but you will need to re-import all of your SDE data for the change to take affect. This proved to be unsatisfactory for us and we decided to take a 'wait-and-see' approach. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Russell McOrmond Sent: Monday, November 24, 2008 8:40 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Confirmation of status of UTF8 support, andwhere transcoding to Latin-1 may be happening. On Sat, 22 Nov 2008, Russell McOrmond wrote: > I have a customer that is using MapServer, talking through ArcSDE to an > Oracle database. Chris Whitteker is working on the same project, and I would like to apologize for duplicating the question. Howard Butler replied to Chris and suggested that the transcoding from UTF-8 to Latin-1 is most likely happening within ArcSDE. We have some peole here that are experts on SDE, but want to avoid the finger-pointing (IE: They say the problem is in mapserver, and this list suggests the problem is in SDE). Can I get a quick confirmation that Mapserver supports UTF8 encoding, and doesn't internally transcode to Latin-1? Does it have the option to transcode that we might have inadvertantly enabled? This would help us know that we should focus our investigation on the settings of SDE and not settings within mapserver. Howard Butler then asked "Do you know what the SOIL_ORDER_NAME_FR column type is defined as?" Are you asking how the table is defined in the Oracle Database (Answer: UTF8, confirmed by our database folks), or how it is defined elsewhere in configuration for SDE or mapserver? -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bob.b at gritechnologies.com Mon Nov 24 06:33:57 2008 From: bob.b at gritechnologies.com (Bob Basques) Date: Mon, 24 Nov 2008 08:33:57 -0600 Subject: [mapserver-users] boundingboxes In-Reply-To: <492A9550.9000503@ufz.de> References: <492A9550.9000503@ufz.de> Message-ID: <492ABB55.5060805@gritechnologies.com> An idea . . . Sort the database return by the area of the BBOX, with smallest area first, the first row returned with be the smallest, reverse the sort for the largest BBOX. If you are using a Imagemap in the client, the sorting still matter, since you can effectively stack the output of the imagemap in the same way. The first item in the imagemap stacking that satisfies the browser will be read and displayed. bobb Florian Thuerkow wrote: > Hi folks, > > I display several boundingboxes on a map from a PostgreSQL database. > There is a big boundingbox which contains several > smaller boundingboxes. > > The User can click on each boundingbox to retrieve further information > of the boundingbox. > > The Problem now is that the user also retrieve the information > of the big boundingbox and not only this of the small ones. > > Maybe someone can help me solving this problem? > > Thanks a lot, > Florian Thuerkow > From hobu.inc at gmail.com Mon Nov 24 14:17:20 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Mon, 24 Nov 2008 16:17:20 -0600 Subject: [mapserver-users] Confirmation of status of UTF8 support, and where transcoding to Latin-1 may be happening. In-Reply-To: References: <49284AB9.9010407@flora.ca> Message-ID: On Nov 24, 2008, at 7:40 AM, Russell McOrmond wrote: > > On Sat, 22 Nov 2008, Russell McOrmond wrote: > >> I have a customer that is using MapServer, talking through ArcSDE >> to an Oracle database. > > Chris Whitteker is working on the same project, and I would like to > apologize for duplicating the question. > > Howard Butler replied to Chris and suggested that the transcoding > from UTF-8 to Latin-1 is most likely happening within ArcSDE. We > have some peole here that are experts on SDE, but want to avoid the > finger-pointing (IE: They say the problem is in mapserver, and this > list suggests the problem is in SDE). The problem is most definitely MapServer's, not ArcSDE's. If I suggested otherwise, I was wrong. > > > Can I get a quick confirmation that Mapserver supports UTF8 > encoding, and doesn't internally transcode to Latin-1? It supports UTF8 for *rendering* with GD and iconv. I don't think MapServer internally supports UTF8 for string comparisons (ie, FILTERs, queries, etc), which is why you're seeing problems doing a GetFeatureInfo. > Does it have the option to transcode that we might have > inadvertantly enabled? This would help us know that we should focus > our investigation on the settings of SDE and not settings within > mapserver. > > Howard Butler then asked "Do you know what the SOIL_ORDER_NAME_FR > column type is defined as?" Yes, I was asking if this was an NSTRING column or a STRING column. The MapServer ArcSDE code makes an attempt to transcode the data if it is an nstring column, but it is highly likely this is broken. I didn't have very extensive data to test this with, and all I looked to ensure was that a few pictures looked right. The problem might be as simple as the function msConvertWideStringToUTF8 being broken. Here's where MapServer tries to convert it: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapsde.c#L750 The reason that this is such a problem is that MapServer doesn't really have its unicode/wide character strategy well defined. ArcSDE forces the issue on us now because by default they're using nstring columns for loading data by default, so the ArcSDE users are on the front lines of this, but I think it will be more of a problem as time marches on. Questions the MapServer devs need to answer are: - how are strings to be internally represented in MapServer (lots of things to balance by answering this question)? - who is responsible for transforming the data? The driver for both the in and out? Have a smarter string object that carries its own encoding around? - Unicode is a conspiracy :) Sorry I'm not much help, Howard From jochen.wagner8 at googlemail.com Tue Nov 25 02:55:22 2008 From: jochen.wagner8 at googlemail.com (Jochen Wagner) Date: Tue, 25 Nov 2008 11:55:22 +0100 Subject: [mapserver-users] SQL for Point-Centroid Message-ID: <72c962640811250255l43ced911n836681121fbefd2e@mail.gmail.com> Hi, I have a polygon-layer from a postgis-table: LAYER NAME "polylayer" TYPE polygon STATUS on CONNECTIONTYPE postgis CONNECTION "user=postgres password=mypass dbname=mydb host=localhost port=5432" DATA "the_geom from mytable using unique gid" TEMPLATE "template/query.html" CLASS NAME "Polylayer" STYLE COLOR 0 100 100 OUTLINECOLOR 0 50 50 WIDTH 2 END END # CLASS END I want to add a point-layer in my mapfile with the centroid of the polygonlayer, this SQL works: SELECT x(ST_Centroid(the_geom)) AS xvar, y(ST_Centroid(the_geom)) AS yvar FROM mytable My Point-Layer: LAYER NAME "pointlayer" TYPE point STATUS on CONNECTIONTYPE postgis CONNECTION "user=postgres password=mypass dbname=mydb host=localhost port=5432" DATA "?????????????????????????????????????????????" TEMPLATE "template/query.html" CLASS NAME "Pointlayer" COLOR 255 0 0 SYMBOL 'circle' SIZE 10 END # CLASS END My Question: How can I use my SQL in Mapserver? Thanks Jochen From daniel.degasperi at r3-gis.com Tue Nov 25 03:15:37 2008 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Tue, 25 Nov 2008 12:15:37 +0100 Subject: [mapserver-users] SLD not rendered correctly In-Reply-To: <491B1CF0.4010804@dmsolutions.ca> References: <491AF7DF.2030905@r3-gis.com> <491B1CF0.4010804@dmsolutions.ca> Message-ID: <492BDE59.3000806@r3-gis.com> Dear Assefa, sorry for the delay. We tried the SVN-Version (Date 13/11/08) and the issue seems to be solved. Thank you very much for your quick reaction. Regards, Daniel Yewondwossen Assefa schrieb: > Daniel, > > I could confirm that http://trac.osgeo.org/mapserver/ticket/2548 was > still an issue in the current mapserver code. I have committed the fix > in the trunk and updated the bug. Please give it a try and let me > know. I will also possibility fix it in the 5.2.x branch so it will be > available for the upcoming release. > With this fix, I was able to use your example SLD and have the > expected result. Note that I did not so any testing with the 5.0.x > release > > Best Regards, > > Daniel Degasperi wrote: >> Hello, >> >> the attached SLD should render a point layer with an outlinecolor >> (see stroke), unfortunately the stroke-color seems to overwrite the >> fill color. >> Images are attached. withoutsld.png would be the expected result, >> withsld.png is the actual result. >> Can anybody help me? >> >> I'm using MapServer 5.0.3 on Centos5 and the render client is >> OpenLayers. >> >> These tickets could be related: >> >> * http://trac.osgeo.org/mapserver/ticket/1887 >> * http://trac.osgeo.org/mapserver/ticket/2548 >> >> >> Regards, Daniel >> >> -- >> Daniel Degasperi >> Software Developer >> daniel.degasperi at r3-gis.com >> --------------------------- >> R3 GIS Srl >> Via Johann Kravogl 2 >> I-39010 Merano - Sinigo (BZ) >> Tel. +39 0473 494949 >> Fax. +39 0473 069902 >> Web http://www.r3-gis.com >> ----------------------------- >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Daniel Degasperi Software Developer daniel.degasperi at r3-gis.com --------------------------- R3 GIS Srl Via Johann Kravogl 2 I-39010 Merano - Sinigo (BZ) Tel. +39 0473 494949 Fax. +39 0473 069902 Web http://www.r3-gis.com ----------------------------- From candalt at online.no Tue Nov 25 03:20:48 2008 From: candalt at online.no (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Tue, 25 Nov 2008 12:20:48 +0100 (MET) Subject: [mapserver-users] SQL for Point-Centroid Message-ID: <28756058.17906.1227612048360.JavaMail.adm-moff@moffice9.nsc.no> Hi... What you have to do is make shure that your SQL returns a valid geometry.. Your SQL returns 2 colummns containing x and y coordinate... Try something like this: the_geom FROM (SELECT gid, GeometryFromText('POINT(' || x(Centroid(the_geom)) || ' ' || y(Centroid(the_geom)) || ')', 32633) AS the_geom FROM mytable) AS mytable USING UNIQUE GID Where , 32633 = the EPSG code (coordinate system) Sture Hi, I have a polygon-layer from a postgis-table: LAYER NAME "polylayer" TYPE polygon STATUS on CONNECTIONTYPE postgis CONNECTION "user=postgres password=mypass dbname=mydb host=localhost port=5432" DATA "the_geom from mytable using unique gid" TEMPLATE "template/query.html" CLASS NAME "Polylayer" STYLE COLOR 0 100 100 OUTLINECOLOR 0 50 50 WIDTH 2 END END # CLASS END I want to add a point-layer in my mapfile with the centroid of the polygonlayer, this SQL works: SELECT x(ST_Centroid(the_geom)) AS xvar, y(ST_Centroid(the_geom)) AS yvar FROM mytable My Point-Layer: LAYER NAME "pointlayer" TYPE point STATUS on CONNECTIONTYPE postgis CONNECTION "user=postgres password=mypass dbname=mydb host=localhost port=5432" DATA "?????????????????????????????????????????????" TEMPLATE "template/query.html" CLASS NAME "Pointlayer" COLOR 255 0 0 SYMBOL 'circle' SIZE 10 END # CLASS END My Question: How can I use my SQL in Mapserver? Thanks Jochen _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From yassefa at dmsolutions.ca Tue Nov 25 05:39:40 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 25 Nov 2008 08:39:40 -0500 Subject: [mapserver-users] SLD not rendered correctly In-Reply-To: <492BDE59.3000806@r3-gis.com> References: <491AF7DF.2030905@r3-gis.com> <491B1CF0.4010804@dmsolutions.ca> <492BDE59.3000806@r3-gis.com> Message-ID: <492C001C.70205@dmsolutions.ca> Thanks for testing. I closed the bug. Assefa Daniel Degasperi wrote: > Dear Assefa, > > sorry for the delay. We tried the SVN-Version (Date 13/11/08) and the > issue seems to be solved. Thank you very much for your quick reaction. > > Regards, > Daniel > > Yewondwossen Assefa schrieb: >> Daniel, >> >> I could confirm that http://trac.osgeo.org/mapserver/ticket/2548 was >> still an issue in the current mapserver code. I have committed the fix >> in the trunk and updated the bug. Please give it a try and let me >> know. I will also possibility fix it in the 5.2.x branch so it will be >> available for the upcoming release. >> With this fix, I was able to use your example SLD and have the >> expected result. Note that I did not so any testing with the 5.0.x >> release >> >> Best Regards, >> >> Daniel Degasperi wrote: >>> Hello, >>> >>> the attached SLD should render a point layer with an outlinecolor >>> (see stroke), unfortunately the stroke-color seems to overwrite the >>> fill color. >>> Images are attached. withoutsld.png would be the expected result, >>> withsld.png is the actual result. >>> Can anybody help me? >>> >>> I'm using MapServer 5.0.3 on Centos5 and the render client is >>> OpenLayers. >>> >>> These tickets could be related: >>> >>> * http://trac.osgeo.org/mapserver/ticket/1887 >>> * http://trac.osgeo.org/mapserver/ticket/2548 >>> >>> >>> Regards, Daniel >>> >>> -- >>> Daniel Degasperi >>> Software Developer >>> daniel.degasperi at r3-gis.com >>> --------------------------- >>> R3 GIS Srl >>> Via Johann Kravogl 2 >>> I-39010 Merano - Sinigo (BZ) >>> Tel. +39 0473 494949 >>> Fax. +39 0473 069902 >>> Web http://www.r3-gis.com >>> ----------------------------- >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From M.Kofahl at gmx.net Tue Nov 25 07:22:25 2008 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Tue, 25 Nov 2008 16:22:25 +0100 Subject: [mapserver-users] grayscale images using classgroups Message-ID: <20081125152225.70360@gmx.net> Hi, is there an option in the class section of the map file (so it can use the style parameter) making the output grayscaled? Martin From pal.kristensen at statkart.no Tue Nov 25 13:26:09 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 25 Nov 2008 13:26:09 -0800 (PST) Subject: [MAPSERVER-USERS] CLASSITEM and EXPRESSION issue in trunk? In-Reply-To: <492673A00200008F0001DAD3@co5.dnr.state.mn.us> References: <492673A00200008F0001DAD3@co5.dnr.state.mn.us> Message-ID: <20689924.post@talk.nabble.com> Hi Steve! We did an interesting discovery yesterday when we compiled the 8002 revision of the MapServer code. The Expression error were still present, but revision 8002 was the last one before the rewritten PostGIS code was submitted. When we then tried to compile the 5.2 stable, everything worked as expected. The error can't then be linked to the new PostGIS support, but must be caused by some other enhancements posted after 5.2. Regards, P?l Kristensen Steve Lime wrote: > > The PostGIS support underwent major changes recently so I'd suspect this > is specific > to that work. Perhaps there are character padding affecting things? > > Steve > >>>> P?l Kristensen 11/21/08 8:36 AM >>> > > Hi! > > I've compiled 5.3-dev from trunk yesterday and got some trouble with > some > mapfiles that works well on 5.2. The problem is that the EXPRESSION > parameter in the CALSS object does not work with direct string > comparison. > Her are some examples: > > Does NOT work: (This is the original layer definition from the 5.2 > mapfile) > > LAYER > ... > CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION "600" > ... > END > END > > > Using RegEx instead WORKS: > > LAYER > ... > CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION /600/ > ... > END > END > > > Using logical expression WORKS: > > LAYER > ... > #CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION ([makshoyde] == 600) > ... > END > END > > The data is stored in PostgreSQL (PostGIS), and the actual field type is > character(5). Anyone have a clue about what is causing this strange > behavior. > > Regards, > P?l Kristensen > -- > View this message in context: > http://www.nabble.com/CLASSITEM-and-EXPRESSION-issue-in-trunk--tp20622309p20622309.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Re%3A-CLASSITEM-and-EXPRESSION-issue-in-trunk--tp20622400p20689924.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Tue Nov 25 20:50:04 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 25 Nov 2008 22:50:04 -0600 Subject: [mapserver-users] Mapserver legend is never transparent Message-ID: <492C811C0200008F0001DD1E@co5.dnr.state.mn.us> Have you tried mode=legend calls? How about setting "TRANSPARENT TRUE" in the LEGEND object? Steve >>> Ivan Mincik 11/23/08 2:08 PM >>> I have a problem that mapserver legend is never transparent even when using php-mapscript or querying WMS layer. Tested at few of mapserver 5.x.x versions. I have TRANSPARENT ON set in OUTPUTFORMAT. OS: Debian Etch Is this only my case ? Thanks. Ivan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Nov 25 20:59:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 25 Nov 2008 22:59:02 -0600 Subject: [mapserver-users] filtering features of layer by quarries inattribute table Message-ID: <492C83360200008F0001DD27@co5.dnr.state.mn.us> Something like this should work: CLASS NAME 'Small' EXPRESSION ([AREA] < 1000) ... END CLASS NAME 'Medium' EXPRESSION ([AREA] >= 1000 AND [AREA] < 5000) ... END CLASS NAME 'Large' # no expression necessary since this class will catch everything >= 5000 ... END Steve >>> "Oz Nahum" 11/21/08 1:05 PM >>> Hi, I would like to have attributed of a layer, displayed according their area. For example, I want to display a simple polygon layer, which have in the attribute table the field "AREA" which is the field in meter sq. I would like to display the layer in 3 different color schemes, like - color a for AREA < 1000, color b for AREA > 1000 && AREA < 5000, and color c for AREA > 5000 . >From map server tutorial I saw I can refer to string attribute, for example: I used the files from: http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi-bin/mapserv.exe&map_web=template+example2-4.html Here is what I am talking about... CLASSITEM 'FEATURE' CLASS NAME 'Lakes' EXPRESSION /(^B|^C|^L|^R)./ STYLE COLOR 72 64 254 END END # CLASS CLASS NAME 'Rivers' EXPRESSION 'Stream' STYLE COLOR 136 128 255 END END # CLASS CLASS NAME 'Wetlands' EXPRESSION 'Swamp or Marsh' STYLE COLOR 195 252 255 OUTLINECOLOR 195 252 255 SYMBOL 'circle' SIZE 0 END END # CLASS END # LAYER But all my attempts to classify water bodies according to their area did not succeed. Can anyone help me? Thanks, Oz --- when one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." Robert Pirsig, Zen and the Art of Motorcycle Maintenance _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From rwburgholzer at deq.virginia.gov Wed Nov 26 06:34:40 2008 From: rwburgholzer at deq.virginia.gov (Burgholzer,Robert) Date: Wed, 26 Nov 2008 09:34:40 -0500 Subject: [mapserver-users] SQL for Point-Centroid Message-ID: <6C097DA58429B743A67070F98BE73A3703A8F1D6@deqex01.deq.local> Try the following: DATA "centroid(the_geom) as the_geom from mytable" It seems to work fine for me. Robert W. Burgholzer Surface Water Modeler Office of Water Supply and Planning Virginia Department of Environmental Quality rwburgholzer at deq.virginia.gov 804-698-4405 Open Source Modeling Tools: http://sourceforge.net/projects/npsource/ -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jochen Wagner Sent: Tuesday, November 25, 2008 5:55 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] SQL for Point-Centroid Hi, I have a polygon-layer from a postgis-table: LAYER NAME "polylayer" TYPE polygon STATUS on CONNECTIONTYPE postgis CONNECTION "user=postgres password=mypass dbname=mydb host=localhost port=5432" DATA "the_geom from mytable using unique gid" TEMPLATE "template/query.html" CLASS NAME "Polylayer" STYLE COLOR 0 100 100 OUTLINECOLOR 0 50 50 WIDTH 2 END END # CLASS END I want to add a point-layer in my mapfile with the centroid of the polygonlayer, this SQL works: SELECT x(ST_Centroid(the_geom)) AS xvar, y(ST_Centroid(the_geom)) AS yvar FROM mytable My Point-Layer: LAYER NAME "pointlayer" TYPE point STATUS on CONNECTIONTYPE postgis CONNECTION "user=postgres password=mypass dbname=mydb host=localhost port=5432" DATA "?????????????????????????????????????????????" TEMPLATE "template/query.html" CLASS NAME "Pointlayer" COLOR 255 0 0 SYMBOL 'circle' SIZE 10 END # CLASS END My Question: How can I use my SQL in Mapserver? Thanks Jochen _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jim.Haug at state.sd.us Wed Nov 26 08:16:08 2008 From: Jim.Haug at state.sd.us (Jim.Haug at state.sd.us) Date: Wed, 26 Nov 2008 10:16:08 -0600 Subject: [mapserver-users] query template won't execute php Message-ID: <584F73DD6F7B084B9432599D1CE43555054C8D80@ESPR1EXC02.state.sd.local> I haven't been able to find anything on this, so I'm hoping someone will have a suggestion or more information. I'd hoped to have a template call a php file rather than an html file on a query. It does bring up the file. Any regular html in the file loads okay, and javascript will run all right, but php code in the file doesn't do anything; even trivial php such as 'echo "Hi";'. The same php runs fine under other circumstances. Does it have anything to do with the way mapserve's query handles loading the html? -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at yahoo.com Wed Nov 26 13:29:12 2008 From: williampaul28 at yahoo.com (william paul) Date: Wed, 26 Nov 2008 13:29:12 -0800 (PST) Subject: [mapserver-users] buffer a point and select by buffer Message-ID: <35129.76338.qm@web38402.mail.mud.yahoo.com> Hello: I have created a simple mapserver using mapscript C#. I want to be able to select a point feature from a point layer, buffer that point feature and use the buffer for a spatial query for features from other layer Does someone have an example or had similar projects? Thank you in advance, William -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Nov 26 14:20:21 2008 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 26 Nov 2008 17:20:21 -0500 Subject: [mapserver-users] Using Google's Directions from MapServer Message-ID: <4EFF8BB964547748A07CA32961810C0412C48061@SOM-TEAQASMAIL1.som.w2k.state.me.us> We are trying to work with routing in MapServer. We don't have PostGIS/PostGre, so that is not an option for us. It was suggested that we could send a request to Google Earth's Directions service. Has anyone ever tried this, and do you have any tips on getting it to work? -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Nov 26 15:01:29 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 27 Nov 2008 00:01:29 +0100 Subject: [mapserver-users] buffer a point and select by buffer In-Reply-To: <35129.76338.qm@web38402.mail.mud.yahoo.com> References: <35129.76338.qm@web38402.mail.mud.yahoo.com> Message-ID: William, You could probably do something like: layerObj layer = map.getLayerByName("POINTLAYER"); layerObj layer2 = map.getLayerByName("OTHERLAYER"); layer.queryByPoint(map, point, mapscript.MS_SINGLE, 0); resultCacheObj results = layer.getResults() if (results != null && results.numresults > 0) { layer.open(); resultCacheMemberObj res = results.getResult(0); shapeObj shape = layer.getFeature(res.shapeindex, res.tileindex); if (shape!= null) { layer2.queryByShape(shape.buffer(width)); resultCacheObj results2 = layer2.getResults() if (results2 != null && results2.numresults > 0) { layer2.open(); for (int i=0; i < results2.numresults; i++) { resultCacheMemberObj res2 = results2.getResult(j); shapeObj shape2 = layer2.getFeature(res2.shapeindex, res2.tileindex); // do something with shape2 } layer2.close(); } } layer.close(); } Best regards, Tamas 2008/11/26 william paul > Hello: > > I have created a simple mapserver using mapscript C#. I want to be able to > select a point feature from a point layer, buffer that point feature and use > the buffer for a spatial query for features from other layer > > Does someone have an example or had similar projects? > > Thank you in advance, > > William > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From J.Lubkowski at bom.gov.au Wed Nov 26 16:49:33 2008 From: J.Lubkowski at bom.gov.au (Justyna Lubkowski) Date: Thu, 27 Nov 2008 11:49:33 +1100 Subject: [mapserver-users] perl mapscript [SEC=UNCLASSIFIED] Message-ID: <29237876E2F56546975A098DC25F3D4A030AA211@officeho2.bom.gov.au> Hi, I'm hoping someone can help, I've been trying to get Perl mapscript to work using a couple of examples from the "MapScript wrappers for WxS Services" page http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript Using python mapscript it works, when I run it on the command line I get xml output, however if I try doing the same using perl mapscript I get no xml output on the command line, I get errors telling me that I cannot set the SERVICE, VERSION or REQUEST parameters. I've included the python and perl scripts and their respective map files below. If I try using $req->loadParams() in the script, and pass the same parameters as part of the query string, then do a wget I get a zero length file. Am I doing something wrong? Or is there a bug in perl mapscript? Cheers - Justyna. =========================================== #!/usr/bin/python import mapscript req = mapscript.OWSRequest() req.setParameter( 'SERVICE', 'WMS' ) req.setParameter( 'VERSION', '1.1.0' ) req.setParameter( 'REQUEST', 'GetCapabilities' ) map = mapscript.mapObj( 'test.map' ) map.OWSDispatch( req ) =========================================== with the following map file =========================================== MAP SIZE 600 300 EXTENT -180 -90 180 90 IMAGECOLOR 180 180 250 IMAGETYPE PNG UNITS DD WEB IMAGEPATH "/html/tmp/wms" IMAGEURL "/tmp/" METADATA OWS_ONLINERESOURCE "http://servername/test.py" END END LAYER NAME "coast_polygon" TYPE POLYGON STATUS DEFAULT DATA coast CLASS COLOR 231 220 189 OUTLINECOLOR 198 134 0 NAME "Coast " END END END =========================================== I get the following errors using perl mapscript: cannot set wms parameter at ./test3.pl line 6. cannot set version parameter at ./test3.pl line 7. cannot set request parameter at ./test3.pl line 8. =========================================== #!/usr/bin/perl -w use mapscript; $req = new mapscript::OWSRequest() or die "no request"; $req->setParameter('SERVICE','WMS') or warn "cannot set wms parameter $!"; $req->setParameter('VERSION','1.1.1') or warn "cannot set version parameter $!"; $req->setParameter('REQUEST','GetCapabilities') or warn "cannot set request parameter $!"; $map = new mapscript::mapObj("test3.map") or die "no object"; $map->OWSDispatch( $req ) or die "cannot dispatch"; =========================================== and its mapfile is =========================================== MAP SIZE 600 300 EXTENT -180 -90 180 90 IMAGECOLOR 180 180 250 IMAGETYPE PNG UNITS DD WEB IMAGEPATH "/html/tmp/wms" IMAGEURL "/tmp/" METADATA OWS_ONLINERESOURCE http://servername/test3.pl END END LAYER NAME "coast_polygon" TYPE POLYGON STATUS DEFAULT DATA coast CLASS COLOR 231 220 189 OUTLINECOLOR 198 134 0 NAME "Coast " END END END =========================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Thu Nov 27 13:22:59 2008 From: nikos at maich.gr (nikos at maich.gr) Date: Thu, 27 Nov 2008 23:22:59 +0200 (EET) Subject: [mapserver-users] Preparing/modifying a querymap for further zoom/pan operations... In-Reply-To: <20081127005945.A5A6BE0110E@lists.osgeo.org> References: <20081127005945.A5A6BE0110E@lists.osgeo.org> Message-ID: <1080.213.16.184.48.1227820979.squirrel@213.16.184.48> Hello all, I'm trying to use a generated query map (itemnquery) and insert it back into my main MS interface foe further processing, e.g zoom/pan/query... My map is generated with &mapext=shapes I'm making an Ajax call to MS, and returning a pointer to the generated querymap, and updating my map. This part works... Problem is that when I then go to zom/pan/query, the results are not what are expected, e.g my form still has the "before query" instance/variables and takes off from there, meaning it does not for instance zoom to the iamge displayed would appreciate some help, tia, nick boretos From Jim.Haug at state.sd.us Thu Nov 27 20:20:45 2008 From: Jim.Haug at state.sd.us (Jim.Haug at state.sd.us) Date: Thu, 27 Nov 2008 22:20:45 -0600 Subject: [mapserver-users] Preparing/modifying a querymap for furtherzoom/pan operations... References: <20081127005945.A5A6BE0110E@lists.osgeo.org> <1080.213.16.184.48.1227820979.squirrel@213.16.184.48> Message-ID: <584F73DD6F7B084B9432599D1CE435550355030D@ESPR1EXC02.state.sd.local> Hello Nick. I was stumped by the same thing for a time. I solved it by running the query twice. It feels kludgy, but it works--I'll clean it up later. The first time through is an itemnquery, which does an AJAX call to a template. That returns a set of JSON variables from the template (all I need are the new map extents). These are then stored in the mapserve object extents, following which I rebuild the query as an itemnquerymap. This produces the map of the same query with the qstring items highlighted. I can then pan, zoom, etc. from there. Here's the code I used in the main file. Much of it is shamelessly stolen from better coders than I. The JSON setup in the template is pretty straightforward. I've put it below the javascript. Note that the routines that build the URLs use different mapfiles. One is tailored just for JSON, while the other handles regular queries. --Jim Haug // javascript code to do itemnsearch and itemnsearchmap. // we will be doing searches using ajax/json to provide data. function item_search(), // which is called from form 'searchform' in the document, // will set up an itemquery url to send to the server. It will then call // function getData(url), which will make an ajax call using the itemquery url. // Data will be returned from the template in json format, which will allow // function onResponse() to parse it to variables. function item_search() { var query_url = ""; var layerlist = ms.getLayers('+'); if (document.searchform.qitem.value == "site_no") { qitem = "site_no"; qlayer = "sites"; } else if (document.searchform.qitem.value == "archive") { qitem = "archive"; qlayer = "surveys"; } else if (document.searchform.qitem.value == "histdist") { qitem = "reg"; qlayer = "hist-dist"; } else if (document.searchform.qitem.value == "histdistr") { qitem = "reg"; qlayer = "hist-dist-restrict"; } else if (document.searchform.qitem.value == "bridges") { qitem = "propertyna"; qlayer = "bridges"; } else if (document.searchform.qitem.value == "cemeteries") { qitem = "propertyna"; qlayer = "cemeteries"; } else if (document.searchform.qitem.value == "structures") { qitem = "propertyna"; qlayer = "structures"; } else { // must be trs, since it's the last choice in the form qitem = "arms_plss"; qlayer = "sd_plss"; } qstring = "/" + document.searchform.qstring.value + "/i"; query_url = ms.mapserver + '?mode=itemnquery' + '&map=' + query_mapfile + '&qlayer=' + qlayer + '&qitem=' + qitem + '&qstring=' + qstring + '&mapext=shapes' + '&mapsize=' + ms.width + '+' + ms.height + '&layers=' + layerlist + ms.options; getData(query_url); } // this.setLayer = function(name, status) { // self.layers[name] = status; // } //--------------> start of itemquery search functions using ajax/json var myrequest; function getData(url) { myrequest=null; if (window.XMLHttpRequest) { // code for IE7, Firefox, Mozilla, etc. myrequest=new XMLHttpRequest(); } else if (window.ActiveXObject) { // code for IE5, IE6 myrequest=new ActiveXObject("Microsoft.XMLHTTP"); } if (myrequest!=null) { myrequest.onreadystatechange=onResponse; myrequest.open("GET",url,true); myrequest.send(null); } else { alert("Your browser does not support XMLHTTP.\nYou need to upgrade"); } } function onResponse() { if(myrequest.readyState!=4) return; if(myrequest.status!=200) { alert("Problem retrieving data"); return; } if (myrequest.responseText.indexOf("msQuery") != -1) { alert("No item found in search"); } else { // parse the returned query data var my_ms = eval('(' + myrequest.responseText + ')'); // all we really need are the extents (minx and y, max x and y) in order // to set up a new map to be drawn // make sure the page is ready to display a map ms.mode = "map"; // buffer the coordinates by 1000 map units (set to meters in map file) minx = parseFloat(my_ms.minx) - 1000; miny = parseFloat(my_ms.miny) - 1000; maxx = parseFloat(my_ms.maxx) + 1000; maxy = parseFloat(my_ms.maxy) + 1000; ms.setExtent(minx, miny, maxx, maxy); var layerlist = ms.getLayers('+'); if (document.searchform.qitem.value == "site_no") { qitem = "site_no"; qlayer = "sites"; } else if (document.searchform.qitem.value == "archive") { qitem = "archive"; qlayer = "surveys"; } else if (document.searchform.qitem.value == "histdist") { qitem = "reg"; qlayer = "hist-dist"; } else if (document.searchform.qitem.value == "histdistr") { qitem = "reg"; qlayer = "hist-dist-restrict"; } else if (document.searchform.qitem.value == "bridges") { qitem = "propertyna"; qlayer = "bridges"; } else if (document.searchform.qitem.value == "cemeteries") { qitem = "propertyna"; qlayer = "cemeteries"; } else if (document.searchform.qitem.value == "structures") { qitem = "propertyna"; qlayer = "structures"; } else { // must be trs, since it's the last choice in the form qitem = "arms_plss"; qlayer = "sd_plss"; } qstring = "/" + document.searchform.qstring.value + "/i"; if(ms.referencemap) { ms.referencemap.url = ms.mapserver + '?mode=reference' + '&map=' + ms.referencemap.mapfile + '&mapext=' + ms.extent.join('+') + '&mapsize=' + ms.width + '+' + ms.height; } ms.url = ms.mapserver + '?mode=itemnquerymap' + '&map=' + query_mapfile + '&qlayer=' + qlayer + '&qitem=' + qitem + '&qstring=' + qstring + '&mapext=' + ms.extent.join('+') + '&mapsize=' + ms.width + '+' + ms.height + '&layers=' + layerlist + ms.options; ms_draw(); } } //--------> end of itemquery search functions ========================================= JSON code from queryfooter.html { "minx": "[minx]", "miny": "[miny]", "maxx": "[maxx]", "maxy": "[maxy]", } -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of nikos at maich.gr Sent: Thu 11/27/2008 3:22 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Preparing/modifying a querymap for furtherzoom/pan operations... Hello all, I'm trying to use a generated query map (itemnquery) and insert it back into my main MS interface foe further processing, e.g zoom/pan/query... My map is generated with &mapext=shapes I'm making an Ajax call to MS, and returning a pointer to the generated querymap, and updating my map. This part works... Problem is that when I then go to zom/pan/query, the results are not what are expected, e.g my form still has the "before query" instance/variables and takes off from there, meaning it does not for instance zoom to the iamge displayed would appreciate some help, tia, nick boretos _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From vtammineni at roulacglobal.com Thu Nov 27 22:14:30 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 28 Nov 2008 11:44:30 +0530 Subject: [mapserver-users] How to add point based on User interaction using C# Message-ID: <000a01c95120$9cb6aa70$d623ff50$@com> Dear All, I want to add point based on user click on the map.That point has to store in Postgresql/PostGIS.Is there anyone has done the same task.Please help me. It is urgent for me .please any can help me.or please guide me . I am waiting for your great response. Advanced Thanks Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Thu Nov 27 23:36:16 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Fri, 28 Nov 2008 08:36:16 +0100 (CET) Subject: [mapserver-users] How to add point based on User interaction using C# In-Reply-To: <000a01c95120$9cb6aa70$d623ff50$@com> References: <000a01c95120$9cb6aa70$d623ff50$@com> Message-ID: <11192.145.50.39.11.1227857776.squirrel@webmail.hostingdiscounter.nl> Hi, can you please stop cross-posting e-mails, when this is one is clearly intended for the users list. Your chance of getting an answer is actually getting less by cross-posting! Especially do not use: mapserver-commits at lists.osgeo.org mapserver-users-owner at lists.osgeo.org Thanks. Best regards, Bart > Dear All, > > > > I want to add point based on user click on the map.That point has to > store in Postgresql/PostGIS.Is there anyone has done the same task.Please > help me. > > > > It is urgent for me .please any can help me.or please guide me . > > > > I am waiting for your great response. > > > > > > Advanced Thanks > > Venkat. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Dejan.Gambin at pula.hr Thu Nov 27 23:31:52 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Fri, 28 Nov 2008 08:31:52 +0100 Subject: [mapserver-users] Geometry scaling question Message-ID: Hi, I suppose that could maybe be a stupid question, but: is there any function in PHP/Mapscript for geometry resizing/scaling? Let's say I would like to implement a functionality that could resize a polygon shape after user inputs some parametar that somehow defines this scaling (by formula) If I can see, there is ST_Scale function in PostGIS but nothing possible with Mapscript? regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Fri Nov 28 00:09:13 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 28 Nov 2008 13:39:13 +0530 Subject: [mapserver-users] How to add point based on User interaction using C# Message-ID: <002601c95130$a2cbe000$e863a000$@com> Dear All, I want to add point based on user click on the map.That point has to store in Postgresql/PostGIS.Is there anyone has done the same task.Please help me. It is urgent for me .please any can help me.or please guide me . I am waiting for your great response. Advanced Thanks Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Fri Nov 28 07:35:14 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 28 Nov 2008 16:35:14 +0100 (CET) Subject: [mapserver-users] How to add point based on User interaction using C# In-Reply-To: <002601c95130$a2cbe000$e863a000$@com> References: <002601c95130$a2cbe000$e863a000$@com> Message-ID: <49376.192.168.1.60.1227886514.squirrel@localhost.localdomain> Hi Venkat. I found this tutorial very useful: http://www.paolocorti.net/public/wordpress/index.php/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/ It is exactly what you want, unfortunately it is not reachable now, maybe a temporary server failure... I made the same in php_mapscript, db was mysql. You have to do the porting: ___________________________________________________ // get the click point in pixel coordinates // the imagebutton of the map is named "mapimg" $clickX = $_REQUEST["mapimg_x"]; $clickY = $_REQUEST["mapimg_y"]; // create a pointobject and store coordinates in projected units $ppPoint = ms_newpointobj(); $ppPoint->setXY(($oMap->extent->minx + ($oMap->cellsize * $clickX)), ($oMap->extent->maxy - ($oMap->cellsize * $clickY))); // create a lat lon projection $olatlonProj = ms_newprojectionobj("proj=latlong,ellps=WGS84"); // get the map projection $osProj = $oMap->getProjection(); $omapProj = ms_newprojectionobj($osProj); // project the point in EPSG 4326, latlon wgs84 $ppPoint->project($omapProj,$olatlonProj); // insert $sql = "INSERT INTO pushpins (lon,lat) VALUES "; $sql .= "(".$ppPoint->x.",".$ppPoint->y.")"; $myconn = mysql_connect(mysql_host,mysql_user,mysql_pw); mysql_select_db(mysql_db); $res = mysql_query($sql); // all done. // only now redraw the map $oImage = $oMap->draw(); $sImageUrl = $oImage->saveWebImage(); ___________________________________________________ I hope this is useful ciao ....................................... pg On Ven, Novembre 28, 2008 09:09, Venkat Rao Tammineni wrote: > Dear All, > > > > I want to add point based on user click on the map.That point has to > store in Postgresql/PostGIS.Is there anyone has done the same task.Please > help me. > > > > It is urgent for me .please any can help me.or please guide me . > > > > I am waiting for your great response. > > > > > > Advanced Thanks > > Venkat. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From M.Kofahl at gmx.net Sun Nov 30 21:26:32 2008 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Mon, 01 Dec 2008 06:26:32 +0100 Subject: [mapserver-users] grayscale images using classgroups In-Reply-To: <492D5C7C.8040606@dmsolutions.ca> References: <20081125152225.70360@gmx.net> <492D5C7C.8040606@dmsolutions.ca> Message-ID: <20081201052632.229360@gmx.net> I found a formula RGB2grayscale = 0.299R + 0.587G + 0.114B and would like to apply this on a class section in order to use the STYLE-parameter for serving a raster layer colored or generic grayscaled. Due to processing instructions work on layer level only, they do not help in this case. I'm looking for a solution like this: CLASS CLASSGROUP 'grayscale' STYLE COLOR [grayscale] [grayscale] [grayscale] END END CLASS CLASSGROUP 'color' STYLE COLOR [red] [green] [blue] END END -------- Original-Nachricht -------- > Datum: Wed, 26 Nov 2008 09:26:04 -0500 > Von: Yewondwossen Assefa > An: Martin Kofahl > Betreff: Re: [mapserver-users] grayscale images using classgroups > Martin, > > Are you talking of non-8 bits rasters? Looking into the doc I think > all the processing directives described there that allows > classifications on a non 8bit rasters apply at the layer level. > (http://mapserver.gis.umn.edu/docs/howto/raster_data/#special-processing-directives) > > > Best Regards > > Martin Kofahl wrote: > > Hi, > > is there an option in the class section of the map file (so it can use > the style parameter) making the output grayscaled? > > > > Martin > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ----------------------------------------------------------------
Parcel Information
Parcel ID:[TaxPIN]
Owner Name:[TaxInfo_PRIM TAXP NAME]", "[TaxInfo_PRIM TAXP NAME 2]
Parcel Information
Parcel ID:[TaxPIN]
Owner Name:[TaxInfo_PRIM TAXP NAME]", "[TaxInfo_PRIM TAXP NAME 2]
Parcel Information
Parcel ID:[TaxPIN]
Owner Name:[TaxInfo_PRIM TAXP NAME]", > "[TaxInfo_PRIM TAXP NAME 2]