From brfr at metrico.lu Thu Dec 1 02:29:19 2011 From: brfr at metrico.lu (Frank Broniewski) Date: Thu, 01 Dec 2011 11:29:19 +0100 Subject: [mapserver-users] MapServer Apache httpd.conf In-Reply-To: References: <4ED64B00020000DF000872A2@a-gwiadomvs-n.hq.wapa.gov> Message-ID: <4ED756FF.8070708@metrico.lu> Am 30.11.2011 23:38, schrieb Puneet Kishor: > > On Nov 30, 2011, at 4:25 PM, Eric Weisbender wrote: > >> Hello, >> >> Does anyone have a good example of an Apache httpd.conf file working well with MapServer on a unix system that they would be willing to share. >> > > > assuming you are using MapServer as a cgi program, you need nothing more than > > ScriptAlias /cgi-bin/ "/path/to/cgi-bin/" > > AllowOverride None > Options None > Order allow,deny > Allow from all > > > adjust the `AllowOverride` directive as required. > > -- > Puneet Kishor_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > Hi Eric, mine's ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ Allow from all Options +ExecCGI for Ubuntu (8.04) HTH Frank -- Frank BRONIEWSKI METRICO s.? r.l. g?om?tres technologies d'information g?ographique rue des Romains 36 L-5433 NIEDERDONVEN t?l.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu From to.tonton at gmail.com Thu Dec 1 04:43:30 2011 From: to.tonton at gmail.com (Tonton) Date: Thu, 1 Dec 2011 13:43:30 +0100 Subject: [mapserver-users] how generate web part of mapfile with python mapscript Message-ID: hello i try this awebdef = mapscript.webObj() awebdef.maxscaledenom = 1550000 awebdef.minscaledenom = 1000 awebdef.imagepath="/var/www/path/" awebdef.imageurl="../tmp/" awebdef.metadata = mapscript.hashTableObj() awebdef.metadata.set("ows_TITLE", atitle) mapServerUrl = u.sitepath_prm mapfilepath = u.mapfilepath_prm awebdef.metadata.set("ows_ONLINERESOURCE", mapServerUrl+"map="+mapfilepath+layer.name_lyr+".map") awebdef.metadata.set("owsAbstract" , layer.libel_lyr) awebdef.metadata.set("owsSrs", "EPSG:"+str(projection)) awebdef.log = "../tmp/web.log" amapfile.web = awebdef but the result still this in my mapfile WEB END # WEB someone knows why may be T. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brfr at metrico.lu Thu Dec 1 05:51:07 2011 From: brfr at metrico.lu (Frank Broniewski) Date: Thu, 01 Dec 2011 14:51:07 +0100 Subject: [mapserver-users] how generate web part of mapfile with python mapscript In-Reply-To: References: Message-ID: <4ED7864B.3090607@metrico.lu> Am 01.12.2011 13:43, schrieb Tonton: > hello > i try this > > awebdef = mapscript.webObj() > awebdef.maxscaledenom = 1550000 > awebdef.minscaledenom = 1000 > awebdef.imagepath="/var/www/path/" > awebdef.imageurl="../tmp/" > awebdef.metadata = mapscript.hashTableObj() > awebdef.metadata.set("ows_TITLE", atitle) > > mapServerUrl = u.sitepath_prm > mapfilepath = u.mapfilepath_prm > > awebdef.metadata.set("ows_ONLINERESOURCE", > mapServerUrl+"map="+mapfilepath+layer.name_lyr+".map") > > awebdef.metadata.set("owsAbstract" , layer.libel_lyr) > awebdef.metadata.set("owsSrs", "EPSG:"+str(projection)) > awebdef.log = "../tmp/web.log" > amapfile.web = awebdef > > but the result still this in my mapfile > > WEB > END # WEB > > someone knows why may be > > T. > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Hi a new web object has already a metadata attribute "prebuild", so you don't need to create a new one. Just set the properties on the metadata: web.metadata.set('foo', 'bar'), or even shorter: map_obj.web.metadata.set('foo', 'bar') hth Frank -- Frank BRONIEWSKI METRICO s.? r.l. g?om?tres technologies d'information g?ographique rue des Romains 36 L-5433 NIEDERDONVEN t?l.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu From havard.tveite at umb.no Thu Dec 1 06:24:24 2011 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 1 Dec 2011 15:24:24 +0100 Subject: [mapserver-users] Re: Mapserver 6.0.1 -- Label Class not recognizing token BACKGROUNDCOLOR In-Reply-To: References: <1322623178806-7045514.post@n2.nabble.com> <4ED5AC96.4070103@swoodbridge.com> <4ED73114.6030409@umb.no> Message-ID: <4ED78E18.2070200@umb.no> Thanks, Thomas. I changed it to: "labelpnt generates the point relative to which the label will be placed." Better? H?vard On 12/1/2011 8:58 AM, thomas bonfort wrote: > Havard, > > "labelpnt generates a point with its center at the middle of the > bounding rectangle of the text." > > Unless there's a problem with the code, this is not the behavior of > the labelpnt geomtransform. The point created by labelpnt is dependant > on the label's POSITION, i.e. it is the center of the text's bounding > rectangle only if the label is in position CC. > > regards, > thomas > > On Thu, Dec 1, 2011 at 08:47, Havard Tveite wrote: >> The documentation has been updated. An example of GEOMTRANSFORM >> usage has been added in the label document under STYLE. >> >> http://gis.umb.no/~havatv/mapserver/docs/mapfile/label.html#label-style >> >> H?vard >> >> On 11/30/2011 5:09 AM, Stephen Woodbridge wrote: >>> >>> On 11/29/2011 10:19 PM, Matt Pettis wrote: >>>> >>>> I see upon reading closer that it is deprecated... but I thought that >>>> meant >>>> it was discouraged, but not yet removed. That must not be true... I am >>>> now >>>> working to find a GEOMTRANSFORM example to help me do the equivalent. >>> >>> Hi Matt, >>> >>> These should help you: >>> >>> http://mapserver.org/mapfile/style.html >>> http://mapserver.org/development/rfc/ms-rfc-72.html >>> http://mapserver.org/trunk/MIGRATION_GUIDE.html >>> >>> Also please write a Bug and assign it to the Documentation and the fact >>> that it has been removed. It might be nice to add a comment in the docs >>> that points to the MIGRATION_GUIDE. >>> >>> Thanks, >>> -Steve W >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> -- >> H?vard Tveite >> Department of Mathematical Sciences and Technology, UMB >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From Bob.Bistrais at maine.gov Thu Dec 1 06:31:41 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 1 Dec 2011 09:31:41 -0500 Subject: [mapserver-users] Prnting WMS layers In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041C893448@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041C8935B2@SOM-TEAQASMAIL1.som.w2k.state.me.us> Hi Adam, I doubt it, but I won't rule out anything. But the MapServer (non-WMS) layers display fine, so that's one thing that doesn't make sense. ________________________________ From: Adam Eskreis [mailto:aeskreis at gmail.com] Sent: Wednesday, November 30, 2011 5:23 PM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Prnting WMS layers Is it possible the issue is with the CSS of your print stylesheet? On Wed, Nov 30, 2011 at 3:30 PM, Bistrais, Bob wrote: Hi all, I've posted this to the GeoMoose list since the problem was occurring in a GeoMoose application, but also would like to see what insights there may be here on the MapServer list. Sorry for any duplication. I have a few WMS layers that I consume in GeoMoose. Some of these are vector line layers such as roads. They look correct in the application's map view. But when I compose a printable map, these layers have a black background which obscures other layers. If I set the "transparent" property to false, the black background goes away, but then I can't see any underlying data. By the way, I do have control over the WMS services in this case. I tried to set Offsite to 0 0 0, but that didn't seem to help either. The image format should be png, and as best as I can tell, this is what it's producing. The WMS is at MapServer 6.0.1, while the application is at MS 5.6. It appears to be some problem with the alpha channels. Any suggestions? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Dec 1 07:09:34 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 1 Dec 2011 15:09:34 +0000 Subject: [mapserver-users] Re: Mapserver 6.0.1 -- Label Class not recognizing token BACKGROUNDCOLOR In-Reply-To: <4ED78E18.2070200@umb.no> References: <1322623178806-7045514.post@n2.nabble.com> <4ED5AC96.4070103@swoodbridge.com> <4ED73114.6030409@umb.no> <4ED78E18.2070200@umb.no> Message-ID: That's correct. The labelpnt is really the computed point based on the type of a geometry we're processing. For a point it's, well, just the point. For a polygon it's based on a number of successively complex computations to make sure the point is in the polygon- starting with the center of the features bbox and ending with a center of gravity computation. Lines use the middle of the longest segment. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Havard Tveite Sent: Thursday, December 01, 2011 8:24 AM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Mapserver 6.0.1 -- Label Class not recognizing token BACKGROUNDCOLOR Thanks, Thomas. I changed it to: "labelpnt generates the point relative to which the label will be placed." Better? H?vard On 12/1/2011 8:58 AM, thomas bonfort wrote: > Havard, > > "labelpnt generates a point with its center at the middle of the > bounding rectangle of the text." > > Unless there's a problem with the code, this is not the behavior of > the labelpnt geomtransform. The point created by labelpnt is dependant > on the label's POSITION, i.e. it is the center of the text's bounding > rectangle only if the label is in position CC. > > regards, > thomas > > On Thu, Dec 1, 2011 at 08:47, Havard Tveite wrote: >> The documentation has been updated. An example of GEOMTRANSFORM >> usage has been added in the label document under STYLE. >> >> http://gis.umb.no/~havatv/mapserver/docs/mapfile/label.html#label-style >> >> H?vard >> >> On 11/30/2011 5:09 AM, Stephen Woodbridge wrote: >>> >>> On 11/29/2011 10:19 PM, Matt Pettis wrote: >>>> >>>> I see upon reading closer that it is deprecated... but I thought that >>>> meant >>>> it was discouraged, but not yet removed. That must not be true... I am >>>> now >>>> working to find a GEOMTRANSFORM example to help me do the equivalent. >>> >>> Hi Matt, >>> >>> These should help you: >>> >>> http://mapserver.org/mapfile/style.html >>> http://mapserver.org/development/rfc/ms-rfc-72.html >>> http://mapserver.org/trunk/MIGRATION_GUIDE.html >>> >>> Also please write a Bug and assign it to the Documentation and the fact >>> that it has been removed. It might be nice to add a comment in the docs >>> that points to the MIGRATION_GUIDE. >>> >>> Thanks, >>> -Steve W >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> -- >> H?vard Tveite >> Department of Mathematical Sciences and Technology, UMB >> Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY >> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Thu Dec 1 07:13:31 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 01 Dec 2011 08:13:31 -0700 Subject: [mapserver-users] Prnting WMS layers In-Reply-To: <4EFF8BB964547748A07CA32961810C041C8935B2@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041C893448@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041C8935B2@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4ED7999B.7010703@geoanalytic.com> Bob, Sounds like the "type" of PNG is causing the problem. Have a look at the properties (using gdalinfo) of the PNG image the wms produces (use "curl" to get and save the image. Is it RGB? RGBA? Best Regards, Brent Fraser On 12/1/2011 7:31 AM, Bistrais, Bob wrote: > > Hi Adam, > > I doubt it, but I won't rule out anything. But the MapServer > (non-WMS) layers display fine, so that's one thing that doesn't make > sense. > > ------------------------------------------------------------------------ > > *From:*Adam Eskreis [mailto:aeskreis at gmail.com] > *Sent:* Wednesday, November 30, 2011 5:23 PM > *To:* Bistrais, Bob > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Prnting WMS layers > > Is it possible the issue is with the CSS of your print stylesheet? > > On Wed, Nov 30, 2011 at 3:30 PM, Bistrais, Bob > wrote: > > Hi all, > > I've posted this to the GeoMoose list since the problem was occurring > in a GeoMoose application, but also would like to see what insights > there may be here on the MapServer list. Sorry for any duplication. > > I have a few WMS layers that I consume in GeoMoose. Some of these are > vector line layers such as roads. They look correct in the > application's map view. But when I compose a printable map, these > layers have a black background which obscures other layers. If I set > the "transparent" property to false, the black background goes away, > but then I can't see any underlying data. > > By the way, I do have control over the WMS services in this case. I > tried to set Offsite to 0 0 0, but that didn't seem to help either. > The image format should be png, and as best as I can tell, this is > what it's producing. The WMS is at MapServer 6.0.1, while the > application is at MS 5.6. It appears to be some problem with the > alpha channels. Any suggestions? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Thu Dec 1 07:25:56 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 1 Dec 2011 10:25:56 -0500 Subject: [mapserver-users] Prnting WMS layers In-Reply-To: <4ED7999B.7010703@geoanalytic.com> References: <4EFF8BB964547748A07CA32961810C041C893448@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041C8935B2@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4ED7999B.7010703@geoanalytic.com> Message-ID: <4EFF8BB964547748A07CA32961810C041C89361C@SOM-TEAQASMAIL1.som.w2k.state.me.us> Hi Brent, I'll admit to some ignorance here, not sure how to use the curl command in that capacity- do you have an example? Regarding the output format, here is what I have on the WMS server side: OUTPUTFORMAT NAME "agg" DRIVER "AGG/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END -But I'm still looking for something on the client side (GeoMoose side) which might be manipulating that image, since this problem is only happening with the printed map images. ________________________________ From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Thursday, December 01, 2011 10:14 AM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Prnting WMS layers Bob, Sounds like the "type" of PNG is causing the problem. Have a look at the properties (using gdalinfo) of the PNG image the wms produces (use "curl" to get and save the image. Is it RGB? RGBA? Best Regards, Brent Fraser On 12/1/2011 7:31 AM, Bistrais, Bob wrote: Hi Adam, I doubt it, but I won't rule out anything. But the MapServer (non-WMS) layers display fine, so that's one thing that doesn't make sense. ________________________________ From: Adam Eskreis [mailto:aeskreis at gmail.com] Sent: Wednesday, November 30, 2011 5:23 PM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Prnting WMS layers Is it possible the issue is with the CSS of your print stylesheet? On Wed, Nov 30, 2011 at 3:30 PM, Bistrais, Bob wrote: Hi all, I've posted this to the GeoMoose list since the problem was occurring in a GeoMoose application, but also would like to see what insights there may be here on the MapServer list. Sorry for any duplication. I have a few WMS layers that I consume in GeoMoose. Some of these are vector line layers such as roads. They look correct in the application's map view. But when I compose a printable map, these layers have a black background which obscures other layers. If I set the "transparent" property to false, the black background goes away, but then I can't see any underlying data. By the way, I do have control over the WMS services in this case. I tried to set Offsite to 0 0 0, but that didn't seem to help either. The image format should be png, and as best as I can tell, this is what it's producing. The WMS is at MapServer 6.0.1, while the application is at MS 5.6. It appears to be some problem with the alpha channels. Any suggestions? _______________________________________________ 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 to.tonton at gmail.com Thu Dec 1 07:34:39 2011 From: to.tonton at gmail.com (Tonton) Date: Thu, 1 Dec 2011 16:34:39 +0100 Subject: [mapserver-users] how generate web part of mapfile with python mapscript In-Reply-To: <4ED7864B.3090607@metrico.lu> References: <4ED7864B.3090607@metrico.lu> Message-ID: On Thu, Dec 1, 2011 at 2:51 PM, Frank Broniewski wrote: > Am 01.12.2011 13:43, schrieb Tonton: > >> hello >> i try this >> >> map_obj.web.metadata.set('foo'**, 'bar') > > hth > > Frank > Thanks it's a good way so it's work with no creation of webObj and there metadata amapfile.web.maxscaledenom = 1550000 amapfile.web.minscaledenom = 1000 amapfile.web.imagepath="/var/www/tmp/" amapfile.web.imageurl="../tmp/" #aamapfile.webdef.metadata = mapscript.hashTableObj() amapfile.web.metadata.set("ows_TITLE", title) u = get_object_or_404(Param, libel_prm=settings.LIBELEDESPARAM) mapServerUrl = u.sitepath_prm #http://site/mapserv? mapfilepath = u.mapfilepath_prm #/media/mapfile/ mapPathToWrite ="mapfile/" amapfile.web.metadata.set("ows_ONLINERESOURCE", mapServerUrl+"map="+mapfilepath+layer.name_lyr+".map") amapfile.web.metadata.set("owsAbstract" , layer.libel_lyr) amapfile.web.metadata.set("owsSrs", "EPSG:"+str(projection)) amapfile.web.metadata.set("ows_enable_request" , "*") amapfile.web.log = "../tmp/web.log" regards T. -------------- next part -------------- An HTML attachment was scrubbed... URL: From n8 at langhirano.it Thu Dec 1 08:36:00 2011 From: n8 at langhirano.it (Nico Alberti) Date: Thu, 01 Dec 2011 17:36:00 +0100 Subject: [mapserver-users] Using OSM with our own data Message-ID: <4ED7ACF0.6040105@langhirano.it> Hi everybody. After quite a long time I am back using mapserver. Seeing how well it is cabable of rendering OSM data I would like to use it as a background for the geographical information I would like to display. I followed the nice howto and now my new Mapserver setup is ready to display a local stored portion of Openstreetmap OR my own data, not both :-) The problem, as far as I know, is that I cannot successfully merge the mapfile I created for my data and the one automatically generated by the mapserver-utils mapfile generator; if I try to paste the LAYER part containing my data, it is apparently ignored (and not even wrongly projected, as far as I can see). Is there any caveat I can be aware of or, better, is there some other doc explaining the use of OSM data with other layers? Thank you in advance and sorry for my poor English -- Ciao Nico From amrzakaria73 at hotmail.com Thu Dec 1 15:02:55 2011 From: amrzakaria73 at hotmail.com (Amr Zakaria) Date: Thu, 1 Dec 2011 23:02:55 +0000 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 47, Issue 3 In-Reply-To: <20111201170021.5B20FE00E1D@lists.osgeo.org> References: <20111201170021.5B20FE00E1D@lists.osgeo.org> Message-ID: hi: How to show label with Arabic in point layer? Best VB programmer , Azz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From amrzakaria73 at hotmail.com Thu Dec 1 15:40:04 2011 From: amrzakaria73 at hotmail.com (Amr Zakaria) Date: Thu, 1 Dec 2011 23:40:04 +0000 Subject: [mapserver-users] problem with arabic font In-Reply-To: <20111202010941.1BA96E00D6F@lists.osgeo.org> References: <20111202010941.1BA96E00D6F@lists.osgeo.org> Message-ID: i have street name with Arabic i wont to display it How i fix arabic font? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Dec 1 17:06:33 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 01 Dec 2011 20:06:33 -0500 Subject: [mapserver-users] problem with arabic font In-Reply-To: References: <20111202010941.1BA96E00D6F@lists.osgeo.org> Message-ID: <4ED82499.5090000@swoodbridge.com> On 12/1/2011 6:40 PM, Amr Zakaria wrote: > i have street name with Arabic i wont to display it > How i fix arabic font? You need to know what character encoding the data is in, UTF8 or WINDOWS-1256 or ISO8859-6, etc Then in: LABEL ... FONT "myArabicFont" ENCODING "....." # put the correct encoding in place of ..... ... END You also need to have a truetype font file that supports your encoding. And Mapserver needs to be built with fribidi-0.19.2 -Steve W From Jukka.Rahkonen at mmmtike.fi Thu Dec 1 22:05:49 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 2 Dec 2011 06:05:49 +0000 Subject: [mapserver-users] Georeferenced PDF output Message-ID: <84446DEF76453C439E9E97E438E13A6305D0FA@suutari.haapa.mmm.fi> Hi, Mapserver can output PDF but can it produce also georeferenced PDF files? -Jukka Rahkonen- From Jukka.Rahkonen at mmmtike.fi Thu Dec 1 23:26:47 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 2 Dec 2011 07:26:47 +0000 Subject: [mapserver-users] Re: Mapserver /tmp files appearing all of a sudden w/CONTEXT parameter used In-Reply-To: <1322159146498-7029107.post@n2.nabble.com> References: <1321646200504-7009495.post@n2.nabble.com> <1322086574366-7026365.post@n2.nabble.com> <4ECD8FF6.2080700@swoodbridge.com> <1322151942622-7028718.post@n2.nabble.com> <4ECE7443.6060900@mapgears.com> <1322159146498-7029107.post@n2.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A6305D10D@suutari.haapa.mmm.fi> Hi, Thanks for this. Now I finally understood why I could not make OGR output to work on a Ubuntu server by following faithfully the corresponding document http://mapserver.org/output/ogr_output.html It was because the /tmp/ directory was not writeable for Mapserver. I will make a documentation ticket. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > myOpenLayersUName > L?hetetty: 24. marraskuuta 2011 20:26 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Re: Mapserver /tmp files appearing > all of a sudden w/CONTEXT parameter used > > Yes indeed, Daniel!! This is exactly what is going on. I introduced a > definition for TEMPPATH in that imagepath.inc.map file (so it will get > applied to all map files) and voila! The context.xml files > were placed in > the appointed location. > > Thank you very much!!! > > Cheers, > jtm > > FYI, I had the impression from the ticket > (http://trac.osgeo.org/mapserver/ticket/3354#comment:6) that > the parameter > should be "TMPATH". Mapserver didn't recognize that one, but > was happy with > "TEMPPATH". Perhaps I just don't know how to interpret the > comment properly. > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Mapserver-tmp-files-app earing-all-of-a-sudden-w-CONTEXT-parameter-used-> tp7009495p7029107.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 jmckenna at gatewaygeomatics.com Fri Dec 2 05:40:03 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 02 Dec 2011 09:40:03 -0400 Subject: [mapserver-users] problem with arabic font In-Reply-To: References: <20111202010941.1BA96E00D6F@lists.osgeo.org> Message-ID: <4ED8D533.5070601@gatewaygeomatics.com> On 11-12-01 7:40 PM, Amr Zakaria wrote: > i have street name with Arabic i wont to display it > How i fix arabic font? You can also follow the examples in the documentation: http://www.mapserver.org/mapfile/labelencoding.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Fri Dec 2 07:58:39 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 02 Dec 2011 11:58:39 -0400 Subject: [mapserver-users] Using OSM with our own data In-Reply-To: <4ED7ACF0.6040105@langhirano.it> References: <4ED7ACF0.6040105@langhirano.it> Message-ID: <4ED8F5AF.6020100@gatewaygeomatics.com> On 11-12-01 12:36 PM, Nico Alberti wrote: > Hi everybody. > > After quite a long time I am back using mapserver. Seeing how well it is > cabable of rendering OSM data I would like to use it as a background for > the geographical information I would like to display. I followed the > nice howto and now my new Mapserver setup is ready to display a local > stored portion of Openstreetmap OR my own data, not both :-) > > The problem, as far as I know, is that I cannot successfully merge the > mapfile I created for my data and the one automatically generated by the > mapserver-utils mapfile generator; if I try to paste the LAYER part > containing my data, it is apparently ignored (and not even wrongly > projected, as far as I can see). Is there any caveat I can be aware of > or, better, is there some other doc explaining the use of OSM data with > other layers? Hello, There shouldn't be an issue with using OSM data (or OSM data/mapfile created through the mapserver-utils http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu) with your own data. I know for the FOSS4G Benchmarking exercise we did have to make some changes to the mapfile, such as making sure each layer has a proper PROJECTION object, which you should keep in mind as well as you are mixing data from several data sources. If it is helpful, the mapfile used in that exercise is available at http://svn.osgeo.org/osgeo/foss4g/benchmarking/wms/2011/mapserver/osm-google.map -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bfraser at geoanalytic.com Fri Dec 2 08:41:04 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 02 Dec 2011 09:41:04 -0700 Subject: [mapserver-users] Georeferenced PDF output In-Reply-To: <84446DEF76453C439E9E97E438E13A6305D0FA@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6305D0FA@suutari.haapa.mmm.fi> Message-ID: <4ED8FFA0.9050700@geoanalytic.com> No. GDAL can read a Geospatial PDF (and rasterize for output), but as far as I know none of Mapserver's output drivers produce georeferenced PDFs. Best Regards, Brent Fraser On 12/1/2011 11:05 PM, Rahkonen Jukka wrote: > Hi, > > Mapserver can output PDF but can it produce also georeferenced PDF files? > > -Jukka Rahkonen-_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From matt at wildwalks.com Sat Dec 3 00:30:59 2011 From: matt at wildwalks.com (Matt McClelland) Date: Sat, 3 Dec 2011 19:30:59 +1100 Subject: [mapserver-users] Using OSM with our own data In-Reply-To: <4ED7ACF0.6040105@langhirano.it> References: <4ED7ACF0.6040105@langhirano.it> Message-ID: Hi Nico I have done the same thing. Using OSM data as a base layer (in a DB) and then have added extra layers to the mapserver-utils mapfile. It worked fine for me. I got had trouble at one point as I was not using the PROJECTION tag in the layer. This fixed the issue for me. Can I suggest you start with a very simple layer to just get it started, then build it up from there. If you copy and paste a large lot in I have found it easy to get lost and hard to find/fix any issues. You can refer to many different map data sources as you need. Matt :) On Fri, Dec 2, 2011 at 3:36 AM, Nico Alberti wrote: > Hi everybody. > > After quite a long time I am back using mapserver. Seeing how well it is > cabable of rendering OSM data I would like to use it as a background for > the geographical information I would like to display. I followed the nice > howto and now my new Mapserver setup is ready to display a local stored > portion of Openstreetmap OR my own data, not both :-) > > The problem, as far as I know, is that I cannot successfully merge the > mapfile I created for my data and the one automatically generated by the > mapserver-utils mapfile generator; if I try to paste the LAYER part > containing my data, it is apparently ignored (and not even wrongly > projected, as far as I can see). Is there any caveat I can be aware of or, > better, is there some other doc explaining the use of OSM data with other > layers? > > Thank you in advance and sorry for my poor English > > -- > Ciao > Nico > ______________________________**_________________ > 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 Sun Dec 4 02:29:19 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 4 Dec 2011 10:29:19 +0000 Subject: [mapserver-users] Trouble with OGR output and writing to temppath Message-ID: <84446DEF76453C439E9E97E438E13A6305D44C@suutari.haapa.mmm.fi> Hi, I have troubles with getting the ORG output to work. I have configured CVS ouput like this OUTPUTFORMAT NAME "CSV" DRIVER "OGR/CSV" MIMETYPE "text/csv" FORMATOPTION "LCO:GEOMETRY=AS_WKT" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=simple" FORMATOPTION "FILENAME=result.csv" END I have set TEMPPATH in the MAP/WEB WEB TEMPPATH "/usr/temp/" /usr/temp directory has 0777 permissions. Mapserver can write error.log file into that directory without troubles. WFS works normally with outputformats GML2 and GML3. However, WFS requests with CSV outputformat fails and I am getting error messages like this: msOGRWriteFromQuery(): General error message. Failed to open result file '/usr/temp/4edb45fd_707c_0/result.csv'. Error.log file is also listing all the features and all the attributes so the query itself is successful. I am trying this with Ubuntu server and Mapserver version is 6.0.1. It is also odd that I am sure that I did manage to get valid zipped shapefiles out from this same server a couple of days ago but now all that I am getting back is empty zipfile. Error.log does not report about any error in this case. Any suggestions what to try next or what to do for finding the ultimate reason for the error? -Jukka Rahkonen- From matt at wildwalks.com Sun Dec 4 03:02:01 2011 From: matt at wildwalks.com (Matt McClelland) Date: Sun, 4 Dec 2011 22:02:01 +1100 Subject: [mapserver-users] Trouble with OGR output and writing to temppath In-Reply-To: <84446DEF76453C439E9E97E438E13A6305D44C@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6305D44C@suutari.haapa.mmm.fi> Message-ID: Check if you have enough disk space left df -alh Matt :) Sent from my iPhone On 04/12/2011, at 9:29 PM, Rahkonen Jukka wrote: > Hi, > > I have troubles with getting the ORG output to work. > > I have configured CVS ouput like this > OUTPUTFORMAT > NAME "CSV" > DRIVER "OGR/CSV" > MIMETYPE "text/csv" > FORMATOPTION "LCO:GEOMETRY=AS_WKT" > FORMATOPTION "STORAGE=filesystem" > FORMATOPTION "FORM=simple" > FORMATOPTION "FILENAME=result.csv" > END > > I have set TEMPPATH in the MAP/WEB > WEB > TEMPPATH "/usr/temp/" > > /usr/temp directory has 0777 permissions. Mapserver can write error.log file into that directory without troubles. > WFS works normally with outputformats GML2 and GML3. However, WFS requests with CSV outputformat fails and I am getting error messages like this: > > msOGRWriteFromQuery(): General error message. Failed to open result file '/usr/temp/4edb45fd_707c_0/result.csv'. > > Error.log file is also listing all the features and all the attributes so the query itself is successful. > I am trying this with Ubuntu server and Mapserver version is 6.0.1. It is also odd that I am sure that I did manage to get valid zipped shapefiles out from this same server a couple of days ago but now all that I am getting back is empty zipfile. Error.log does not report about any error in this case. > > Any suggestions what to try next or what to do for finding the ultimate reason for the error? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Sun Dec 4 03:22:18 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 4 Dec 2011 11:22:18 +0000 Subject: [mapserver-users] Trouble with OGR output and writing to temppath In-Reply-To: References: <84446DEF76453C439E9E97E438E13A6305D44C@suutari.haapa.mmm.fi>, Message-ID: <84446DEF76453C439E9E97E438E13A6305D465@suutari.haapa.mmm.fi> Hi, Thanks, natural thing that I had not checked. Fortunately or unfortunately, none of the mounts seem to have more than 2% used. I guess that writing the request output to error.log located in the same mount would also fail in that case. -Jukka- Matt McClelland wrote: > Check if you have enough disk space left > df -alh > Matt :) > Sent from my iPhone On 04/12/2011, at 9:29 PM, Rahkonen Jukka wrote: > Hi, > > I have troubles with getting the ORG output to work. > > I have configured CVS ouput like this > OUTPUTFORMAT > NAME "CSV" > DRIVER "OGR/CSV" > MIMETYPE "text/csv" > FORMATOPTION "LCO:GEOMETRY=AS_WKT" > FORMATOPTION "STORAGE=filesystem" > FORMATOPTION "FORM=simple" > FORMATOPTION "FILENAME=result.csv" > END > > I have set TEMPPATH in the MAP/WEB > WEB > TEMPPATH "/usr/temp/" > > /usr/temp directory has 0777 permissions. Mapserver can write error.log file into that directory without troubles. > WFS works normally with outputformats GML2 and GML3. However, WFS requests with CSV outputformat fails and I am getting error messages like this: > > msOGRWriteFromQuery(): General error message. Failed to open result file '/usr/temp/4edb45fd_707c_0/result.csv'. > > Error.log file is also listing all the features and all the attributes so the query itself is successful. > I am trying this with Ubuntu server and Mapserver version is 6.0.1. It is also odd that I am sure that I did manage to get valid zipped shapefiles out from this same server a couple of days ago but now all that I am getting back is empty zipfile. Error.log does not report about any error in this case. > > Any suggestions what to try next or what to do for finding the ultimate reason for the error? > > -Jukka Rahkonen- > _______________________________________________ > 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 Sun Dec 4 06:32:25 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Sun, 4 Dec 2011 14:32:25 +0000 Subject: [mapserver-users] Trouble with OGR output and writing to temppath In-Reply-To: <84446DEF76453C439E9E97E438E13A6305D465@suutari.haapa.mmm.fi> Message-ID: Jukka, I've started having this issue on Windows mapserver just recently. I have not had this problem on unix. Not sure if this is a mapserver issue or a gdal one. I get similar errors to yours: msOGRWriteFromQuery(): General error message. OGR CreateDataSource failed for 'C:/cm2_files/tmp/4edb808b_178_0/ship_locations.gdb.zip' with driver 'FileGDB'. It appears to only happen with FORMATOPTION "STORAGE=filesystem". Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/4/11 6:22 AM, "Rahkonen Jukka" wrote: >Hi, > >Thanks, natural thing that I had not checked. Fortunately or >unfortunately, none of the mounts seem to have more than 2% used. I >guess that writing the request output to error.log located in the same >mount would also fail in that case. > >-Jukka- > Matt McClelland wrote: > > >> Check if you have enough disk space left > >> df -alh > >> Matt :) > >> Sent from my iPhone > >On 04/12/2011, at 9:29 PM, Rahkonen Jukka >wrote: > >> Hi, >> >> I have troubles with getting the ORG output to work. >> >> I have configured CVS ouput like this >> OUTPUTFORMAT >> NAME "CSV" >> DRIVER "OGR/CSV" >> MIMETYPE "text/csv" >> FORMATOPTION "LCO:GEOMETRY=AS_WKT" >> FORMATOPTION "STORAGE=filesystem" >> FORMATOPTION "FORM=simple" >> FORMATOPTION "FILENAME=result.csv" >> END >> >> I have set TEMPPATH in the MAP/WEB >> WEB >> TEMPPATH "/usr/temp/" >> >> /usr/temp directory has 0777 permissions. Mapserver can write >>error.log file into that directory without troubles. >> WFS works normally with outputformats GML2 and GML3. However, WFS >>requests with CSV outputformat fails and I am getting error messages >>like this: >> >> msOGRWriteFromQuery(): General error message. Failed to open result >>file '/usr/temp/4edb45fd_707c_0/result.csv'. >> >> Error.log file is also listing all the features and all the attributes >>so the query itself is successful. >> I am trying this with Ubuntu server and Mapserver version is 6.0.1. It >>is also odd that I am sure that I did manage to get valid zipped >>shapefiles out from this same server a couple of days ago but now all >>that I am getting back is empty zipfile. Error.log does not report about >>any error in this case. >> >> Any suggestions what to try next or what to do for finding the ultimate >>reason for the error? >> >> -Jukka Rahkonen- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Sun Dec 4 09:06:21 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 4 Dec 2011 17:06:21 +0000 Subject: [mapserver-users] Trouble with OGR output and writing to temppath In-Reply-To: <3F5ABAFE-E8F8-4AF2-A0AA-295DD7C7C3CB@comcast.net> References: <84446DEF76453C439E9E97E438E13A6305D44C@suutari.haapa.mmm.fi>, <3F5ABAFE-E8F8-4AF2-A0AA-295DD7C7C3CB@comcast.net> Message-ID: <84446DEF76453C439E9E97E438E13A6305D49A@suutari.haapa.mmm.fi> Hi, Part of the problem can be solved by setting TEMPPATH at MAP - WEB level. See http://trac.osgeo.org/mapserver/ticket/3354 and recent http://trac.osgeo.org/mapserver/ticket/4103. That makes Mapserver to use the desired directory as a target for the temporary stuff. However, there seems still be something that fails at least for me. Could you try to add TEMPPATH to your mapfile and see if you still get the same error? -Jukka- ________________________________________ John Cartwright wrote: > This sounds like the same trouble I had and filed a ticket (http://trac.osgeo.org/mapserver/ticket/4085). I haven't yet found a workaround. --john On Dec 4, 2011, at 3:29 AM, Rahkonen Jukka wrote: > Hi, > > I have troubles with getting the ORG output to work. > > I have configured CVS ouput like this > OUTPUTFORMAT > NAME "CSV" > DRIVER "OGR/CSV" > MIMETYPE "text/csv" > FORMATOPTION "LCO:GEOMETRY=AS_WKT" > FORMATOPTION "STORAGE=filesystem" > FORMATOPTION "FORM=simple" > FORMATOPTION "FILENAME=result.csv" > END > > I have set TEMPPATH in the MAP/WEB > WEB > TEMPPATH "/usr/temp/" > > /usr/temp directory has 0777 permissions. Mapserver can write error.log file into that directory without troubles. > WFS works normally with outputformats GML2 and GML3. However, WFS requests with CSV outputformat fails and I am getting error messages like this: > > msOGRWriteFromQuery(): General error message. Failed to open result file '/usr/temp/4edb45fd_707c_0/result.csv'. > > Error.log file is also listing all the features and all the attributes so the query itself is successful. > I am trying this with Ubuntu server and Mapserver version is 6.0.1. It is also odd that I am sure that I did manage to get valid zipped shapefiles out from this same server a couple of days ago but now all that I am getting back is empty zipfile. Error.log does not report about any error in this case. > > Any suggestions what to try next or what to do for finding the ultimate reason for the error? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Sun Dec 4 09:41:09 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 4 Dec 2011 17:41:09 +0000 Subject: [mapserver-users] Trouble with OGR output and writing to temppath In-Reply-To: References: <84446DEF76453C439E9E97E438E13A6305D465@suutari.haapa.mmm.fi>, Message-ID: <84446DEF76453C439E9E97E438E13A6305D4A8@suutari.haapa.mmm.fi> Hi, I could repeat the error on Windows (MS4W and Mapserver 6.0.0). This time data come from shapefile while previously they came from PostGIS. However, your error is not exactly the same than mine. You have "OGR CreateDataSource failed" while I am getting "Failed to open result file". msOGRWriteFromQuery(): General error message. Failed to open result file '/ms4w/wfstemp/4edbae34_126c_0/result.csv'. -Jukka Rahkonen- Smith, Michael wrote: > Jukka, > I've started having this issue on Windows mapserver just recently. I have > not had this problem on unix. Not sure if this is a mapserver issue or a > gdal one. > I get similar errors to yours: > msOGRWriteFromQuery(): General error message. OGR CreateDataSource failed for 'C:/cm2_files/tmp/4edb808b_178_0/ship_locations.gdb.zip' with driver 'FileGDB'. It appears to only happen with FORMATOPTION "STORAGE=filesystem". Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/4/11 6:22 AM, "Rahkonen Jukka" wrote: >Hi, > >Thanks, natural thing that I had not checked. Fortunately or >unfortunately, none of the mounts seem to have more than 2% used. I >guess that writing the request output to error.log located in the same >mount would also fail in that case. > >-Jukka- > Matt McClelland wrote: > > >> Check if you have enough disk space left > >> df -alh > >> Matt :) > >> Sent from my iPhone > >On 04/12/2011, at 9:29 PM, Rahkonen Jukka >wrote: > >> Hi, >> >> I have troubles with getting the ORG output to work. >> >> I have configured CVS ouput like this >> OUTPUTFORMAT >> NAME "CSV" >> DRIVER "OGR/CSV" >> MIMETYPE "text/csv" >> FORMATOPTION "LCO:GEOMETRY=AS_WKT" >> FORMATOPTION "STORAGE=filesystem" >> FORMATOPTION "FORM=simple" >> FORMATOPTION "FILENAME=result.csv" >> END >> >> I have set TEMPPATH in the MAP/WEB >> WEB >> TEMPPATH "/usr/temp/" >> >> /usr/temp directory has 0777 permissions. Mapserver can write >>error.log file into that directory without troubles. >> WFS works normally with outputformats GML2 and GML3. However, WFS >>requests with CSV outputformat fails and I am getting error messages >>like this: >> >> msOGRWriteFromQuery(): General error message. Failed to open result >>file '/usr/temp/4edb45fd_707c_0/result.csv'. >> >> Error.log file is also listing all the features and all the attributes >>so the query itself is successful. >> I am trying this with Ubuntu server and Mapserver version is 6.0.1. It >>is also odd that I am sure that I did manage to get valid zipped >>shapefiles out from this same server a couple of days ago but now all >>that I am getting back is empty zipfile. Error.log does not report about >>any error in this case. >> >> Any suggestions what to try next or what to do for finding the ultimate >>reason for the error? >> >> -Jukka Rahkonen- >> _______________________________________________ >> 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 forums at craniumjuice.com Sun Dec 4 11:13:26 2011 From: forums at craniumjuice.com (forums) Date: Sun, 4 Dec 2011 13:13:26 -0600 Subject: [mapserver-users] Mapcache question. Message-ID: Hi: I hope this is the proper place to ask questions about Mapcache since it's been moved into the trunk of Mapserver. I'm wondering if Mapcache can help with a particular setup, and if so maybe some advice or direction on where to start? Here's the setup. Every 5 minutes a new set of GeoTiffs are created in a new directory. I create a tileindex for the GeoTiffs and use those in the map layer. Every hour, anything more than 5hours old gets deleted. I have a single mapfile setup. The general layer is setup like: LAYER NAME 'IMG1' METADATA 'wms_title' 'IMG 1' 'wms_srs' 'EPSG:4326' 'wms_extent' 'MINX MINY MAXX MAXY' 'default_targetdate' '' 'targetdate_validation_pattern' '^[0-9]{12}$' END STATUS ON TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp' TILEITEM 'Location' TYPE RASTER END I'm currently loading these images as overlays for Googlemaps. using the mode=tile&tilemode=gmaps...&targetdate=2011...etc. Problem is it's too slow. I end up loading hundreds of images, as I basically create an animation using sequential times. I'd like to be able to have a single mapcache config file, that will pass the date through to pull the proper shapefile, and have the result cached so next time it's loading off the disk. MOST of the images end up being blank/transparent tiles. Is Mapcache a good choice for this? The front end for this is just a simple GoogleMaps viewport, but ends up loading multiple timeslots for display. It generates the request URL (not currently in WMS fashion but could be). Thanks for any help I can get. Jerl -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Dec 4 11:37:47 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 04 Dec 2011 14:37:47 -0500 Subject: [mapserver-users] Mapcache question. In-Reply-To: References: Message-ID: <4EDBCC0B.1080602@swoodbridge.com> Hi Jerl, Maybe! is the short answer. The analysis of the problem is: 1. What is the primary purpose of mapcache? Will it is a flexible tools that can do a lot of things, like on-the-fly cache building, compositing images from tiles in the cache, etc. It's primary purpose is to provide tile generation and tile serving for environments that need tiles instead of draw on demand images. 2. So to some extent this depends on your usage model, ie: tile requests per unit time. 3. it sounds like from your description below, that you are serving draw on demand images and not using a tile cache at the moment. To use a tile cache given your current scenario, you would still have to do everything the same as before, but you would also have to figure out what tiles at the various zoom levels needed to be removed when any of the GeoTiffs changed, either replace some existing GeoTiff or got removed because of age. I'm not sure I see anyway that it will magically simplify your process. And on the contrary, it will add some complexity to the whole process. That said, if your demand is increasing and your server(s) are having trouble keeping up with the image demand, then adding mapcache could be a solution. -Steve W On 12/4/2011 2:13 PM, forums wrote: > Hi: > > I hope this is the proper place to ask questions about Mapcache since > it's been moved into the trunk of Mapserver. > > I'm wondering if Mapcache can help with a particular setup, and if so > maybe some advice or direction on where to start? > > Here's the setup. Every 5 minutes a new set of GeoTiffs are created in > a new directory. I create a tileindex for the GeoTiffs and use those in > the map layer. Every hour, anything more than 5hours old gets deleted. > I have a single mapfile setup. > > The general layer is setup like: > > LAYER > NAME 'IMG1' > METADATA > 'wms_title' 'IMG 1' > 'wms_srs' 'EPSG:4326' > 'wms_extent' 'MINX MINY MAXX MAXY' > 'default_targetdate' '' > 'targetdate_validation_pattern' '^[0-9]{12}$' > END > STATUS ON > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp' > TILEITEM 'Location' > TYPE RASTER > END > > > I'm currently loading these images as overlays for Googlemaps. using the > mode=tile&tilemode=gmaps...&targetdate=2011...etc. > Problem is it's too slow. I end up loading hundreds of images, as I > basically create an animation using sequential times. > > I'd like to be able to have a single mapcache config file, that will > pass the date through to pull the proper shapefile, and have the result > cached so next time it's loading off the disk. MOST of the images end > up being blank/transparent tiles. > > Is Mapcache a good choice for this? > The front end for this is just a simple GoogleMaps viewport, but ends up > loading multiple timeslots for display. It generates the request URL > (not currently in WMS fashion but could be). > > Thanks for any help I can get. > > Jerl > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Sun Dec 4 12:00:31 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 4 Dec 2011 21:00:31 +0100 Subject: [mapserver-users] Mapcache question. In-Reply-To: References: Message-ID: Jerl, mapcache itself does not do any pruning of the caches it has created, but you can get the same effect by using a cache backend that supports expiration (i.e. memcache). Mapcache can fit your need, provided: - you configure your tileset with a "targetdate" - you use a memcache backend to store the created tiles, and set an value in mapcache to 5 hours If the memory requirement for storing 5 hours worth of tiles is too important for a memcache server instance, you can have a look at membase which will also store less frequently used data to disk. The membase protocol is compatible with memcache, so you can use either memcache or membase with the same mapcache configuration. Of course, by running a script every hour to delete expired tiles as you are doing now, you can then use the classic disk based cache backend. regards, thomas On Sun, Dec 4, 2011 at 20:13, forums wrote: > Hi: > > I hope this is the proper place to ask questions about Mapcache since it's > been moved into the trunk of Mapserver. > > I'm wondering if Mapcache can help with a particular setup, and if so maybe > some advice or direction on where to start? > > Here's the setup. ?Every 5 minutes a new set of GeoTiffs are created in a > new directory. ?I create a tileindex for the GeoTiffs and use those in the > map layer. ?Every hour, anything more than 5hours old gets deleted. > I have a single mapfile setup. > > The general layer is setup like: > > ? ? LAYER > ? ? ? ? NAME 'IMG1' > ? ? ? ? METADATA > ? ? ? ? ? ? 'wms_title' ? ? ? ? ? 'IMG 1' > ? ? ? ? ? ? 'wms_srs' ? ? ? ? ? ? 'EPSG:4326' > ? ? ? ? ? ? 'wms_extent' ? ? ? ? ?'MINX MINY MAXX MAXY' > ? ? ? ? ? ? 'default_targetdate' '' > ? ? ? ? ? ? 'targetdate_validation_pattern' '^[0-9]{12}$' > ? ? ? ? END > ? ? ? ? STATUS ON > ? ? ? ? TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp' > ? ? ? ? TILEITEM 'Location' > ? ? ? ? TYPE RASTER > ? ? END > > > I'm currently loading these images as overlays for Googlemaps. using the > mode=tile&tilemode=gmaps...&targetdate=2011...etc. > Problem is it's too slow. I end up loading hundreds of images, as I > basically create an animation using sequential times. > > I'd like to be able to have a single mapcache config file, that will pass > the date through to pull the proper shapefile, and have the result cached so > next time it's loading off the disk. ?MOST of the images end up being > blank/transparent tiles. > > Is Mapcache a good choice for this? > The front end for this is just a simple GoogleMaps viewport, but ends up > loading multiple timeslots for display. ?It generates the request URL (not > currently in WMS fashion but could be). > > Thanks for any help I can get. > > Jerl > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From john.c.cartwright at comcast.net Sun Dec 4 12:34:16 2011 From: john.c.cartwright at comcast.net (John Cartwright) Date: Sun, 4 Dec 2011 13:34:16 -0700 Subject: [mapserver-users] Trouble with OGR output and writing to temppath In-Reply-To: <84446DEF76453C439E9E97E438E13A6305D49A@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6305D44C@suutari.haapa.mmm.fi>, <3F5ABAFE-E8F8-4AF2-A0AA-295DD7C7C3CB@comcast.net> <84446DEF76453C439E9E97E438E13A6305D49A@suutari.haapa.mmm.fi> Message-ID: <5BA1055A-51E5-48E1-A70A-D98D11A708B9@comcast.net> Thanks for the suggestion, but I ran across that ticket earlier and setting TEMPPATH didn't address my problem. It does direct the temporary files to the desired location I still see: msOGRWriteFromQuery(): General error message. Failed to open result file '/Library/WebServer/Documents/output/4edbd893_e3b_0/result.csv'. in my output file. --john On Dec 4, 2011, at 10:06 AM, Rahkonen Jukka wrote: > Hi, > > Part of the problem can be solved by setting TEMPPATH at MAP - WEB level. See http://trac.osgeo.org/mapserver/ticket/3354 and recent http://trac.osgeo.org/mapserver/ticket/4103. That makes Mapserver to use the desired directory as a target for the temporary stuff. However, there seems still be something that fails at least for me. > > Could you try to add TEMPPATH to your mapfile and see if you still get the same error? > > -Jukka- > ________________________________________ > John Cartwright wrote: > >> This sounds like the same trouble I had and filed a ticket (http://trac.osgeo.org/mapserver/ticket/4085). I haven't yet found a workaround. > > --john > > On Dec 4, 2011, at 3:29 AM, Rahkonen Jukka wrote: > >> Hi, >> >> I have troubles with getting the ORG output to work. >> >> I have configured CVS ouput like this >> OUTPUTFORMAT >> NAME "CSV" >> DRIVER "OGR/CSV" >> MIMETYPE "text/csv" >> FORMATOPTION "LCO:GEOMETRY=AS_WKT" >> FORMATOPTION "STORAGE=filesystem" >> FORMATOPTION "FORM=simple" >> FORMATOPTION "FILENAME=result.csv" >> END >> >> I have set TEMPPATH in the MAP/WEB >> WEB >> TEMPPATH "/usr/temp/" >> >> /usr/temp directory has 0777 permissions. Mapserver can write error.log file into that directory without troubles. >> WFS works normally with outputformats GML2 and GML3. However, WFS requests with CSV outputformat fails and I am getting error messages like this: >> >> msOGRWriteFromQuery(): General error message. Failed to open result file '/usr/temp/4edb45fd_707c_0/result.csv'. >> >> Error.log file is also listing all the features and all the attributes so the query itself is successful. >> I am trying this with Ubuntu server and Mapserver version is 6.0.1. It is also odd that I am sure that I did manage to get valid zipped shapefiles out from this same server a couple of days ago but now all that I am getting back is empty zipfile. Error.log does not report about any error in this case. >> >> Any suggestions what to try next or what to do for finding the ultimate reason for the error? >> >> -Jukka Rahkonen- >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From forums at craniumjuice.com Sun Dec 4 12:59:09 2011 From: forums at craniumjuice.com (forums) Date: Sun, 4 Dec 2011 14:59:09 -0600 Subject: [mapserver-users] Mapcache question. In-Reply-To: References: Message-ID: Thanks Stephen and Thomas. I think I'll be good with the dimension and the disk cache. Unfortunately, the apache we have doesn't have memcache built into it (too much hassle to upgrade it right now) and the version of SQLite is too old...also a hassle to upgrade. I was able to get it to load the proper map when just using the entire bounding box, the whole world. Now to make it work with the the tilemode for google...which looks like that should be straight forward?? Thanks guys!! Jerl On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort wrote: > Jerl, > mapcache itself does not do any pruning of the caches it has created, > but you can get the same effect by using a cache backend that supports > expiration (i.e. memcache). > Mapcache can fit your need, provided: > - you configure your tileset with a "targetdate" - you use > a memcache backend to store the created tiles, and set an > value in mapcache to 5 hours > If the memory requirement for storing 5 hours worth of tiles is too > important for a memcache server instance, you can have a look at > membase which will also store less frequently used data to disk. The > membase protocol is compatible with memcache, so you can use either > memcache or membase with the same mapcache configuration. > > Of course, by running a script every hour to delete expired tiles as > you are doing now, you can then use the classic disk based cache > backend. > regards, > thomas > On Sun, Dec 4, 2011 at 20:13, forums wrote: > > Hi: > > > > I hope this is the proper place to ask questions about Mapcache since > it's > > been moved into the trunk of Mapserver. > > > > I'm wondering if Mapcache can help with a particular setup, and if so > maybe > > some advice or direction on where to start? > > > > Here's the setup. Every 5 minutes a new set of GeoTiffs are created in a > > new directory. I create a tileindex for the GeoTiffs and use those in > the > > map layer. Every hour, anything more than 5hours old gets deleted. > > I have a single mapfile setup. > > > > The general layer is setup like: > > > > LAYER > > NAME 'IMG1' > > METADATA > > 'wms_title' 'IMG 1' > > 'wms_srs' 'EPSG:4326' > > 'wms_extent' 'MINX MINY MAXX MAXY' > > 'default_targetdate' '' > > 'targetdate_validation_pattern' '^[0-9]{12}$' > > END > > STATUS ON > > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp' > > TILEITEM 'Location' > > TYPE RASTER > > END > > > > > > I'm currently loading these images as overlays for Googlemaps. using the > > mode=tile&tilemode=gmaps...&targetdate=2011...etc. > > Problem is it's too slow. I end up loading hundreds of images, as I > > basically create an animation using sequential times. > > > > I'd like to be able to have a single mapcache config file, that will pass > > the date through to pull the proper shapefile, and have the result > cached so > > next time it's loading off the disk. MOST of the images end up being > > blank/transparent tiles. > > > > Is Mapcache a good choice for this? > > The front end for this is just a simple GoogleMaps viewport, but ends up > > loading multiple timeslots for display. It generates the request URL > (not > > currently in WMS fashion but could be). > > > > Thanks for any help I can get. > > > > Jerl > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From forums at craniumjuice.com Sun Dec 4 13:23:40 2011 From: forums at craniumjuice.com (forums) Date: Sun, 4 Dec 2011 15:23:40 -0600 Subject: [mapserver-users] Mapcache question. In-Reply-To: References: Message-ID: I almost have it, I just can't seem to get the targetdate dimension to populate. /mapcache/gmaps/country at WGS84/1/1/0.png works fine if I don't have the layers that require the targetdate parameter. I get a "parameter pattern failed validation" error returned from Mapserver when I have the necessary layers defined in the mapcache config file. The obvious thing for me to try was: /mapcache/gmaps/country at WGS84/1/1/0.png?targetdate=201112042105 But that failed. Is there a way to get the targetdate to fill in? I've moved it around a bit, but still can't get it to fill in. Thanks again!! Jerl On Sun, Dec 4, 2011 at 2:59 PM, forums wrote: > Thanks Stephen and Thomas. > > I think I'll be good with the dimension and the disk cache. > Unfortunately, the apache we have doesn't have memcache built into it (too > much hassle to upgrade it right now) and the version of SQLite is too > old...also a hassle to upgrade. > > I was able to get it to load the proper map when just using the entire > bounding box, the whole world. Now to make it work with the the tilemode > for google...which looks like that should be straight forward?? > > > Thanks guys!! > > Jerl > > > On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort wrote: > >> Jerl, >> mapcache itself does not do any pruning of the caches it has created, >> but you can get the same effect by using a cache backend that supports >> expiration (i.e. memcache). >> Mapcache can fit your need, provided: >> - you configure your tileset with a "targetdate" - you use >> a memcache backend to store the created tiles, and set an >> value in mapcache to 5 hours >> If the memory requirement for storing 5 hours worth of tiles is too >> important for a memcache server instance, you can have a look at >> membase which will also store less frequently used data to disk. The >> membase protocol is compatible with memcache, so you can use either >> memcache or membase with the same mapcache configuration. >> >> Of course, by running a script every hour to delete expired tiles as >> you are doing now, you can then use the classic disk based cache >> backend. >> regards, >> thomas >> On Sun, Dec 4, 2011 at 20:13, forums wrote: >> > Hi: >> > >> > I hope this is the proper place to ask questions about Mapcache since >> it's >> > been moved into the trunk of Mapserver. >> > >> > I'm wondering if Mapcache can help with a particular setup, and if so >> maybe >> > some advice or direction on where to start? >> > >> > Here's the setup. Every 5 minutes a new set of GeoTiffs are created in >> a >> > new directory. I create a tileindex for the GeoTiffs and use those in >> the >> > map layer. Every hour, anything more than 5hours old gets deleted. >> > I have a single mapfile setup. >> > >> > The general layer is setup like: >> > >> > LAYER >> > NAME 'IMG1' >> > METADATA >> > 'wms_title' 'IMG 1' >> > 'wms_srs' 'EPSG:4326' >> > 'wms_extent' 'MINX MINY MAXX MAXY' >> > 'default_targetdate' '' >> > 'targetdate_validation_pattern' '^[0-9]{12}$' >> > END >> > STATUS ON >> > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp' >> > TILEITEM 'Location' >> > TYPE RASTER >> > END >> > >> > >> > I'm currently loading these images as overlays for Googlemaps. using the >> > mode=tile&tilemode=gmaps...&targetdate=2011...etc. >> > Problem is it's too slow. I end up loading hundreds of images, as I >> > basically create an animation using sequential times. >> > >> > I'd like to be able to have a single mapcache config file, that will >> pass >> > the date through to pull the proper shapefile, and have the result >> cached so >> > next time it's loading off the disk. MOST of the images end up being >> > blank/transparent tiles. >> > >> > Is Mapcache a good choice for this? >> > The front end for this is just a simple GoogleMaps viewport, but ends up >> > loading multiple timeslots for display. It generates the request URL >> (not >> > currently in WMS fashion but could be). >> > >> > Thanks for any help I can get. >> > >> > Jerl >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > > -- > A computer without Windows is like chocolate cake without mustard. > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hawk at aamdal.com Sun Dec 4 13:36:04 2011 From: hawk at aamdal.com (Hawk AA) Date: Sun, 4 Dec 2011 22:36:04 +0100 Subject: [mapserver-users] Post body is short Message-ID: <003701ccb2cc$ba120f40$2e362dc0$@aamdal.com> Hi there, We are running a service where the access to mapfiles needs to be password protected. I?m using PHP Session for that, and until recently I?ve used a wrapper which looked like this: session_start(); $oParams = new HawkSoftware\URL\REQUESTParameters(); try { $oParams->RemoveKey("MAP", false); } catch (Exception $e) { } $oParams->Items['map'] = $_SESSION['MAPFILE']; $strURL = "C:/ms4w/Apache/cgi-bin-hidden/mapserv.exe QUERY_STRING=\"" . $oParams->GetUTF8DecodedString() . "\""; if ($oParams->Items['encode'] == 'true') { echo utf8_encode(HawkSoftware\Execution\Util::GetOutput($strURL)); } else { echo HawkSoftware\Execution\Util::GetOutput($strURL); } The GetOutput-function uses passthru(). The only problem with that one is the command line restriction (of somewhat 8k characters) in windows, which sometimes becomes a limitation for requesting over 70 ID?s on a WFS request (those Filter strings become very long!!). Also, I don?t think it?s the most efficient way to fetch data from mapserv.exe . So I saw the http://mapserver.org/ogc/mapscript.html and made a script like this: $oMap = new \mapObj($_SESSION['MAPFILE']); $oRequest = new OWSRequestObj(); $oRequest->loadparams(); ms_ioinstallstdouttobuffer(); $oMap->owsdispatch($oRequest); $strContType = ms_iostripstdoutbuffercontenttype(); if ($strContType == 'image/png') { header('Content-type: image/png'); } if($_REQUEST['encode']) { echo utf8_encode(ms_iogetstdoutbufferstring()); } else { ms_iogetStdoutBufferBytes(); } ms_ioresethandlers(); This one works great on GET requests. However, it does not work on POST requests, it will print ?Post body is short? (I really need the post requests, as GET does not carry enough data). This is a known issue, but I can?t say I know what to do about it. Some say it?s problem with the fastcgi module, and it will run fine on cgi. But how do I get mapscript to run on CGI? Or is this the wrong approach? I am running ms4w on Windows Server 2008 . Best regards, H?kon -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Dec 4 14:08:14 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 04 Dec 2011 17:08:14 -0500 Subject: [mapserver-users] Mapcache question. In-Reply-To: References: Message-ID: <4EDBEF4E.1080502@swoodbridge.com> Jerl, http://mapserver.org/cgi/runsub.html Sounds like you do not have a validation_pattern for the data parameter. -Steve W On 12/4/2011 4:23 PM, forums wrote: > I almost have it, I just can't seem to get the targetdate dimension to > populate. > > /mapcache/gmaps/country at WGS84/1/1/0.png works fine if I don't have the > layers that require the targetdate parameter. I get a "parameter > pattern failed validation" error returned from Mapserver when I have the > necessary layers defined in the mapcache config file. > > The obvious thing for me to try was: > /mapcache/gmaps/country at WGS84/1/1/0.png?targetdate=201112042105 > > But that failed. Is there a way to get the targetdate to fill in? I've > moved it around a bit, but still can't get it to fill in. > > Thanks again!! > > Jerl > > > On Sun, Dec 4, 2011 at 2:59 PM, forums > wrote: > > Thanks Stephen and Thomas. > > I think I'll be good with the dimension and the disk cache. > Unfortunately, the apache we have doesn't have memcache built into > it (too much hassle to upgrade it right now) and the version of > SQLite is too old...also a hassle to upgrade. > > I was able to get it to load the proper map when just using the > entire bounding box, the whole world. Now to make it work with the > the tilemode for google...which looks like that should be straight > forward?? > > > Thanks guys!! > > Jerl > > > On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort > > wrote: > > Jerl, > mapcache itself does not do any pruning of the caches it has > created, > but you can get the same effect by using a cache backend that > supports > expiration (i.e. memcache). > Mapcache can fit your need, provided: > - you configure your tileset with a "targetdate" - > you use > a memcache backend to store the created tiles, and set an > value in mapcache to 5 hours > If the memory requirement for storing 5 hours worth of tiles is too > important for a memcache server instance, you can have a look at > membase which will also store less frequently used data to disk. The > membase protocol is compatible with memcache, so you can use either > memcache or membase with the same mapcache configuration. > > Of course, by running a script every hour to delete expired tiles as > you are doing now, you can then use the classic disk based cache > backend. > regards, > thomas > On Sun, Dec 4, 2011 at 20:13, forums > wrote: > > Hi: > > > > I hope this is the proper place to ask questions about > Mapcache since it's > > been moved into the trunk of Mapserver. > > > > I'm wondering if Mapcache can help with a particular setup, > and if so maybe > > some advice or direction on where to start? > > > > Here's the setup. Every 5 minutes a new set of GeoTiffs are > created in a > > new directory. I create a tileindex for the GeoTiffs and use > those in the > > map layer. Every hour, anything more than 5hours old gets > deleted. > > I have a single mapfile setup. > > > > The general layer is setup like: > > > > LAYER > > NAME 'IMG1' > > METADATA > > 'wms_title' 'IMG 1' > > 'wms_srs' 'EPSG:4326' > > 'wms_extent' 'MINX MINY MAXX MAXY' > > 'default_targetdate' '' > > 'targetdate_validation_pattern' '^[0-9]{12}$' > > END > > STATUS ON > > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp' > > TILEITEM 'Location' > > TYPE RASTER > > END > > > > > > I'm currently loading these images as overlays for > Googlemaps. using the > > mode=tile&tilemode=gmaps...&targetdate=2011...etc. > > Problem is it's too slow. I end up loading hundreds of > images, as I > > basically create an animation using sequential times. > > > > I'd like to be able to have a single mapcache config file, > that will pass > > the date through to pull the proper shapefile, and have the > result cached so > > next time it's loading off the disk. MOST of the images end > up being > > blank/transparent tiles. > > > > Is Mapcache a good choice for this? > > The front end for this is just a simple GoogleMaps viewport, > but ends up > > loading multiple timeslots for display. It generates the > request URL (not > > currently in WMS fashion but could be). > > > > Thanks for any help I can get. > > > > Jerl > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > -- > A computer without Windows is like chocolate cake without mustard. > > > > > -- > A computer without Windows is like chocolate cake without mustard. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Sun Dec 4 23:05:01 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 5 Dec 2011 08:05:01 +0100 Subject: [mapserver-users] Mapcache question. In-Reply-To: References: Message-ID: only the wms and wmts services support dimensions (there is no spec defining this support for the others). you can either adapt your gmaps/js code to build a wmts url, or hack into the mapcache code to add dimension support to the tms / gmaps service. -- thomas On Sun, Dec 4, 2011 at 22:23, forums wrote: > I almost have it, I just can't seem to get the targetdate dimension to > populate. > > /mapcache/gmaps/country at WGS84/1/1/0.png works fine if I don't have the > layers that require the targetdate parameter. ?I get a "parameter pattern > failed validation" error returned from Mapserver when I have the necessary > layers defined in the mapcache config file. > > The obvious thing for me to try was: > /mapcache/gmaps/country at WGS84/1/1/0.png?targetdate=201112042105 > > But that failed. ?Is there a way to get the targetdate to fill in? I've > moved it around a bit, but still can't get it to fill in. > > Thanks again!! > > Jerl > > > On Sun, Dec 4, 2011 at 2:59 PM, forums wrote: >> >> Thanks Stephen and Thomas. >> >> I think I'll be good with the dimension and the disk cache. >> ?Unfortunately, the apache we have doesn't have memcache built into it (too >> much hassle to upgrade it right now) and the version of SQLite is too >> old...also a hassle to upgrade. >> >> I was able to get it to load the proper map when just using the entire >> bounding box, the whole world. ?Now to make it work with the the tilemode >> for google...which looks like that should be straight forward?? >> >> >> Thanks guys!! >> >> Jerl >> >> >> On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort >> wrote: >>> >>> Jerl, >>> mapcache itself does not do any pruning of the caches it has created, >>> but you can get the same effect by using a cache backend that supports >>> expiration (i.e. memcache). >>> Mapcache can fit your need, provided: >>> - you configure your tileset with a "targetdate" - you use >>> a memcache backend to store the created tiles, and set an >>> value in mapcache to 5 hours >>> If the memory requirement for storing 5 hours worth of tiles is too >>> important for a memcache server instance, you can have a look at >>> membase which will also store less frequently used data to disk. The >>> membase protocol is compatible with memcache, so you can use either >>> memcache or membase with the same mapcache configuration. >>> >>> Of course, by running a script every hour to delete expired tiles as >>> you are doing now, you can then use the classic disk based cache >>> backend. >>> regards, >>> thomas >>> On Sun, Dec 4, 2011 at 20:13, forums wrote: >>> > Hi: >>> > >>> > I hope this is the proper place to ask questions about Mapcache since >>> > it's >>> > been moved into the trunk of Mapserver. >>> > >>> > I'm wondering if Mapcache can help with a particular setup, and if so >>> > maybe >>> > some advice or direction on where to start? >>> > >>> > Here's the setup. ?Every 5 minutes a new set of GeoTiffs are created in >>> > a >>> > new directory. ?I create a tileindex for the GeoTiffs and use those in >>> > the >>> > map layer. ?Every hour, anything more than 5hours old gets deleted. >>> > I have a single mapfile setup. >>> > >>> > The general layer is setup like: >>> > >>> > ? ? LAYER >>> > ? ? ? ? NAME 'IMG1' >>> > ? ? ? ? METADATA >>> > ? ? ? ? ? ? 'wms_title' ? ? ? ? ? 'IMG 1' >>> > ? ? ? ? ? ? 'wms_srs' ? ? ? ? ? ? 'EPSG:4326' >>> > ? ? ? ? ? ? 'wms_extent' ? ? ? ? ?'MINX MINY MAXX MAXY' >>> > ? ? ? ? ? ? 'default_targetdate' '' >>> > ? ? ? ? ? ? 'targetdate_validation_pattern' '^[0-9]{12}$' >>> > ? ? ? ? END >>> > ? ? ? ? STATUS ON >>> > ? ? ? ? TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp' >>> > ? ? ? ? TILEITEM 'Location' >>> > ? ? ? ? TYPE RASTER >>> > ? ? END >>> > >>> > >>> > I'm currently loading these images as overlays for Googlemaps. using >>> > the >>> > mode=tile&tilemode=gmaps...&targetdate=2011...etc. >>> > Problem is it's too slow. I end up loading hundreds of images, as I >>> > basically create an animation using sequential times. >>> > >>> > I'd like to be able to have a single mapcache config file, that will >>> > pass >>> > the date through to pull the proper shapefile, and have the result >>> > cached so >>> > next time it's loading off the disk. ?MOST of the images end up being >>> > blank/transparent tiles. >>> > >>> > Is Mapcache a good choice for this? >>> > The front end for this is just a simple GoogleMaps viewport, but ends >>> > up >>> > loading multiple timeslots for display. ?It generates the request URL >>> > (not >>> > currently in WMS fashion but could be). >>> > >>> > Thanks for any help I can get. >>> > >>> > Jerl >>> > >>> > >>> > >>> > _______________________________________________ >>> > mapserver-users mailing list >>> > mapserver-users at lists.osgeo.org >>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > >> >> >> >> >> -- >> A computer without Windows is like chocolate cake without mustard. > > > > > -- > A computer without Windows is like chocolate cake without mustard. From dejan.gambin at coin.hr Mon Dec 5 01:26:19 2011 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Mon, 5 Dec 2011 10:26:19 +0100 Subject: [mapserver-users] MapServer crash with WFS GetFeature request using multiple typenames In-Reply-To: <84446DEF76453C439E9E97E438E13A6303C4D1@suutari.haapa.mmm.fi> References: <91D18E62-1AF7-4E1E-A6F5-85988DB834BE@coin.hr> <84446DEF76453C439E9E97E438E13A6303C431@suutari.haapa.mmm.fi> <44959F0E-CEC7-43D4-A1CC-EBC863FB0D7D@coin.hr> <84446DEF76453C439E9E97E438E13A6303C4D1@suutari.haapa.mmm.fi> Message-ID: Hi Jukka Accroding to your suggestions, I am trying to use ogc:Contains instead of ogc:BBOX in my OL request, but it fails with "Invalid or Unsupported FILTER in GetFeature" error. So, using something like this: protocol: OpenLayers.Protocol.WFS({ version: "1.1.0", url: "http://www.coin.hr/cgi-bin/mywfs6?SERVICE=WFS", srsName:"EPSG:900913", //featureNS: "http://www.openplans.org/topp", featureNS: "http://www.coin.hr", geometryName: "msGeometry", featurePrefix: "ms" }), box: false, hover: false, //multipleKey: "shiftKey", toggleKey: "ctrlKey", single: false, generates the following mapserver SUCCESSFUL request: msGeometry1534339.5955039 5613892.04442081534345.5671467 5613898.0160636 Using the same OL request but with "filterType: OpenLayers.Filter.Spatial.CONTAINS,", I get the following: msGeometry1534345.2685645 5613850.2429211534348.254386 5613853.2287424 and this is giving me the above error Obviously I am doing something wrong :-) Any help? I have MapServer 6.0.1, built from source dejan On 14. stu. 2011., at 14:51, Rahkonen Jukka wrote: > Hi, > > Feel free to test with my TinyOWS server at http://188.64.1.61/cgi-bin/tinyows. I would not encourage you to use BBOX filter for finding features. According to the standard BBOX is a synonyme for Intersects but for example Geoserver is using it in a bit different way. It is comparing if feature bounding boxes are intersecting with reference bounding box if BBOX is used. This suits perfectly for filling a screen with features because feature bounding boxes can be found fast from the spatial index of a database. However, with lines and polygons this search is sometimes finding extra features. Intersects is doing a real comparison of geometries which is accurate but slower. If you click on a map why don't you use ogc:Contains for finding polygons or ogc;DWithin filter for finding all kind of features with a buffer? > > My TinyOWS has a bug with ogc:BBOX so if you test it, use Intersects, Contains, or DWithin instead. > > Naturally WFS should behave in a similar way independently of the data source behind the server. > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j?: Dejan Gambin [mailto:dejan.gambin at coin.hr] >> L?hetetty: 14. marraskuuta 2011 15:33 >> Vastaanottaja: Rahkonen Jukka >> Kopio: 'mapserver-users at lists.osgeo.org' >> Aihe: Re: [mapserver-users] MapServer crash with WFS >> GetFeature request using multiple typenames >> >> Hello Jukka >> >> Thanks for the information. I am trying to make a spatial >> search by clicking on the point on the map. This search >> should send the requests for every active layer and return >> the results for some bbox around this point. I have first >> tried with WMS GetFeatureInfo but also stucked with gml not >> being recognized by OpenLayers. So I decided to try with WFS. >> It works OK when data is in PostGIS and also works for one >> shape file but not for all I need. >> >> Of course, it can be done by sending multiple requests, one >> for each active layer, but I thought this should work for >> several layers too. >> >> >> On 14. stu. 2011., at 14:20, Rahkonen Jukka wrote: >> >>> Hi, >>> >>> It is not so very common to make GetFeature requests for a >> list of FeatureTypes, especially with filters. Therefore >> servers are for sure not well tested with such requests. Do >> you have some special need for getting just one GML package >> out or WFS or can you imagine to do one request per feature type? >>> >>> By the way, are you aware of that if you query typeNames >> "A" and "B" with maxfeatures=10, the resultset will be cut at >> the 10th feature. If the server finds 10 or more candidates >> from typeName "A" you will not get any features at all from >> typeName "B". >>> >>> -Jukka Rahkonen- >>> >>> Dejan Gambin wrote: >>> >>> >>>> >>>> Anyway, seems like this ogrinfo error has nothing to do with >>>> mapserver crash. So the problem persists :-( >>>> >>>> dejan >>>> On 14. stu. 2011., at 11:49, Dejan Gambin wrote: >>>> >>>>> Additional info: >>>>> >>>>> Everything works OK when data is in postgis. The problem is >>>> with data coming from shape file on which ogrinfo reports the >>>> following: >>>>> >>>>> dgambin at coin:/$ ogrinfo -so >>>> sportsko_rekreacijska_namjena.shp sportsko_rekreacijska_namjena >>>>> ERROR 4: Unable to open sportsko_rekreacijska_namjena.shp >>>> or sportsko_rekreacijska_namjena.SHP. >>>>> Had to open data source read-only. >>>>> INFO: Open of `sportsko_rekreacijska_namjena.shp' >>>>> using driver `ESRI Shapefile' successful. >>>>> >>>>> Layer name: sportsko_rekreacijska_namjena >>>>> Geometry: Polygon >>>>> Feature Count: 12 >>>>> Extent: (5401303.525844, 4978030.196207) - (5407353.143421, >>>> 4986100.367492) >>>>> Layer SRS WKT: >>>>> (unknown) >>>>> ID: Integer (8.0) >>>>> NAMJENA: String (30.0) >>>>> POVRSINA: Real (16.2) >>>>> OZNAKA: String (100.0) >>>>> >>>>> >>>>> >>>>> On 14. stu. 2011., at 10:35, Dejan Gambin wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I have a serious issue usng MapServer WFS in making >>>> GetFeature request using multiple typenames. Here is the >>>> example post request: >>>>>> >>>>>> [Mon Nov 14 09:16:06 2011].666863 msWFSParseRequest(): WFS >>>> post request: >>> xmlns:wfs="http://www.opengis.net/wfs" service="WFS" >>>> version="1.1.0" maxFeatures="10" >>>> xsi:schemaLocation="http://www.opengis.net/wfs >>>> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">>>> ry typeName="ms:ppu_sportska" srsName="EPSG:900913" >>>> xmlns:ms="http://www.openplans.org/topp">>>> xmlns:ogc="http://www.opengis.net/ogc">>>> Name>msGeometry>>> xmlns:gml="http://www.opengis.net/gml" >>>> srsName="EPSG:900913">1533843.3519844 >>>> 5619282.04924261533938.8982 >>>> 697 >>>> 5619377.595528>>> c:Filter>>>> srsName="EPSG:900913" >>>> xmlns:ms="http://www.openplans.org/topp">>>> xmlns:ogc="http://www.opengis.net/ogc">>>> Name>msGeometry>>> xmlns:gml="http://www.opengis.net/gml" >>>> srsName="EPSG:900913">1533843.3519844 >>>> 5619282.04924261533938.8982 >>>> 697 >>>> 5619377.595528>>> c:Filter> >>>>>> [Mon Nov 14 09:16:06 2011].683317 msQueryByFilter(): >>>> Search returned no results. No matching record(s) found. >>>>>> >>>>>> It is using 2 typenames: "ms:ppu_sportska" and >>>> "ms:ppu_turisticka". Seems like no results were found but >>>> there are bunch of errors in apache log file, like: >>>>>> >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> *** glibc detected *** /usr/lib/cgi-bin/mapserv61: double >>>> free or corruption (out): 0x0000000001a83d60 ***, referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> ======= Backtrace: =========, referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /lib/libc.so.6(+0x71ad6)[0x7f58d7c43ad6], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /lib/libc.so.6(cfree+0x6c)[0x7f58d7c4884c], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x4328c6], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x438719], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x455d2d], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x455b8c], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x4df5c4], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x4bf415], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61(msLayerApplyPlainFilterToLayer+0x23 >>> )[0x47a99c], referer: http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x4bf362], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x49ffe0], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x4a1c8e], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x495f17], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x4182b7], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /lib/libc.so.6(__libc_start_main+0xfd)[0x7f58d7bf0c4d], >>>> referer: http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mapserv61[0x413609], referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> ======= Memory map: ========, referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> ...bunch of library references >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> 7f58db7ca000-7f58db7cb000 r--p 0001d000 ca:01 1855039 >>>> /lib/ld-2.11.2.so, referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> 7f58db7cb000-7f58db7cc000 rw-p 0001e000 ca:01 1855039 >>>> /lib/ld-2.11.2.so, referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> 7f58db7cc000-7f58db7cd000 rw-p 00000000 00:00 0 , referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> 7fff70721000-7fff70736000 rw-p 00000000 00:00 0 >>>> [stack], referer: http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> 7fff70777000-7fff70778000 r-xp 00000000 00:00 0 >>>> [vdso], referer: http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 >>>> [vsyscall], referer: http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> /usr/lib/cgi-bin/mywfs6: line 4: 3294 Aborted >>>> /usr/lib/cgi-bin/mapserv61, referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] >>>> Premature end of script headers: mywfs6, referer: >>>> http://www.coin.hr/coingis/demo.html >>>>>> >>>>>> Sometimes the error was starting with: >>>>>> >>>>>> [Mon Nov 14 08:25:06 2011] [error] [client 83.131.213.54] >>>> *** glibc detected *** /usr/lib/cgi-bin/mapserv61: >>>> munmap_chunk(): invalid pointer: 0x000000000273ca80 ***, >>>> referer: http://www.coin.hr/coingis/demo.html >>>>>> >>>>>> NOTE: Making individual requests to those typenames works OK >>>>>> >>>>>> I would appreciate any help since I am pretty stucked with >>>> this. Should I report it as a bug? >>>>>> >>>>>> Thanks very much >>>>>> >>>>>> regards, dejan >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 Mon Dec 5 02:16:01 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 5 Dec 2011 10:16:01 +0000 Subject: [mapserver-users] MapServer crash with WFS GetFeature request using multiple typenames In-Reply-To: References: <91D18E62-1AF7-4E1E-A6F5-85988DB834BE@coin.hr> <84446DEF76453C439E9E97E438E13A6303C431@suutari.haapa.mmm.fi> <44959F0E-CEC7-43D4-A1CC-EBC863FB0D7D@coin.hr> <84446DEF76453C439E9E97E438E13A6303C4D1@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A6305D6E1@suutari.haapa.mmm.fi> Hi, First, I have been thinking that there is perhaps not so often special advantage in using Contains. It will find features which are containing the whole reference geometry and that makes sense if point is used as the reference and features to find are polygons. With lines and polygons as reference the result is perhaps not the desired one, because intersecting features are not selected. It depends on the use case. I believe the next Contains example is valid. You can test it yourself by doing copy-paste and sending it with Poster towards http://188.64.1.61/cgi-bin/tinyows lv:namelv:ogc_fidlv:the_geomlv:the_geom 385338.63323124044 6680121.5237366 Changing Contains to Intersects gives the same result. I do not have Mapserver WFS at the moment to test with. -Jukka Rahkonen- Dejan Gambin wrote: > Hi Jukka > > Accroding to your suggestions, I am trying to use > ogc:Contains instead of ogc:BBOX in my OL request, but it > fails with "Invalid or Unsupported FILTER in GetFeature" > error. So, using something like this: > > protocol: OpenLayers.Protocol.WFS({ > version: "1.1.0", > url: "http://www.coin.hr/cgi-bin/mywfs6?SERVICE=WFS", > srsName:"EPSG:900913", > //featureNS: "http://www.openplans.org/topp", > featureNS: "http://www.coin.hr", > geometryName: "msGeometry", > featurePrefix: "ms" > }), > box: false, > hover: false, > //multipleKey: "shiftKey", > toggleKey: "ctrlKey", > single: false, > > generates the following mapserver SUCCESSFUL request: > > service="WFS" version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> ry typeName="ms:katastar_vodnjan_poligon" > srsName="EPSG:900913" > xmlns:ms="http://www.coin.hr"> xmlns:ogc="http://www.opengis.net/ogc"> Name>msGeometry xmlns:gml="http://www.opengis.net/gml" > srsName="EPSG:900913">1534339.5955039 > 5613892.04442081534345.5671 > 467 > 5613898.0160636 gc:Filter> > > Using the same OL request but with "filterType: > OpenLayers.Filter.Spatial.CONTAINS,", I get the following: > > service="WFS" version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> ry typeName="ms:katastar_vodnjan_poligon" > srsName="EPSG:900913" > xmlns:ms="http://www.coin.hr"> xmlns:ogc="http://www.opengis.net/ogc"> ertyName>msGeometry xmlns:gml="http://www.opengis.net/gml" > srsName="EPSG:900913">1534345.2685645 > 5613850.2429211534348.25438 > 6 > 5613853.2287424 > > > and this is giving me the above error > > Obviously I am doing something wrong :-) > > Any help? I have MapServer 6.0.1, built from source > > dejan > > On 14. stu. 2011., at 14:51, Rahkonen Jukka wrote: > > > Hi, > > > > Feel free to test with my TinyOWS server at > http://188.64.1.61/cgi-bin/tinyows. I would not encourage you > to use BBOX filter for finding features. According to the > standard BBOX is a synonyme for Intersects but for example > Geoserver is using it in a bit different way. It is comparing > if feature bounding boxes are intersecting with reference > bounding box if BBOX is used. This suits perfectly for > filling a screen with features because feature bounding boxes > can be found fast from the spatial index of a database. > However, with lines and polygons this search is sometimes > finding extra features. Intersects is doing a real comparison > of geometries which is accurate but slower. If you click on > a map why don't you use ogc:Contains for finding polygons or > ogc;DWithin filter for finding all kind of features with a buffer? > > > > My TinyOWS has a bug with ogc:BBOX so if you test it, use > Intersects, Contains, or DWithin instead. > > > > Naturally WFS should behave in a similar way independently > of the data source behind the server. > > > > -Jukka Rahkonen- > > > >> -----Alkuper?inen viesti----- > >> L?hett?j?: Dejan Gambin [mailto:dejan.gambin at coin.hr] > >> L?hetetty: 14. marraskuuta 2011 15:33 > >> Vastaanottaja: Rahkonen Jukka > >> Kopio: 'mapserver-users at lists.osgeo.org' > >> Aihe: Re: [mapserver-users] MapServer crash with WFS > >> GetFeature request using multiple typenames > >> > >> Hello Jukka > >> > >> Thanks for the information. I am trying to make a spatial > >> search by clicking on the point on the map. This search > >> should send the requests for every active layer and return > >> the results for some bbox around this point. I have first > >> tried with WMS GetFeatureInfo but also stucked with gml not > >> being recognized by OpenLayers. So I decided to try with WFS. > >> It works OK when data is in PostGIS and also works for one > >> shape file but not for all I need. > >> > >> Of course, it can be done by sending multiple requests, one > >> for each active layer, but I thought this should work for > >> several layers too. > >> > >> > >> On 14. stu. 2011., at 14:20, Rahkonen Jukka wrote: > >> > >>> Hi, > >>> > >>> It is not so very common to make GetFeature requests for a > >> list of FeatureTypes, especially with filters. Therefore > >> servers are for sure not well tested with such requests. Do > >> you have some special need for getting just one GML package > >> out or WFS or can you imagine to do one request per feature type? > >>> > >>> By the way, are you aware of that if you query typeNames > >> "A" and "B" with maxfeatures=10, the resultset will be cut at > >> the 10th feature. If the server finds 10 or more candidates > >> from typeName "A" you will not get any features at all from > >> typeName "B". > >>> > >>> -Jukka Rahkonen- > >>> > >>> Dejan Gambin wrote: > >>> > >>> > >>>> > >>>> Anyway, seems like this ogrinfo error has nothing to do with > >>>> mapserver crash. So the problem persists :-( > >>>> > >>>> dejan > >>>> On 14. stu. 2011., at 11:49, Dejan Gambin wrote: > >>>> > >>>>> Additional info: > >>>>> > >>>>> Everything works OK when data is in postgis. The problem is > >>>> with data coming from shape file on which ogrinfo reports the > >>>> following: > >>>>> > >>>>> dgambin at coin:/$ ogrinfo -so > >>>> sportsko_rekreacijska_namjena.shp sportsko_rekreacijska_namjena > >>>>> ERROR 4: Unable to open sportsko_rekreacijska_namjena.shp > >>>> or sportsko_rekreacijska_namjena.SHP. > >>>>> Had to open data source read-only. > >>>>> INFO: Open of `sportsko_rekreacijska_namjena.shp' > >>>>> using driver `ESRI Shapefile' successful. > >>>>> > >>>>> Layer name: sportsko_rekreacijska_namjena > >>>>> Geometry: Polygon > >>>>> Feature Count: 12 > >>>>> Extent: (5401303.525844, 4978030.196207) - (5407353.143421, > >>>> 4986100.367492) > >>>>> Layer SRS WKT: > >>>>> (unknown) > >>>>> ID: Integer (8.0) > >>>>> NAMJENA: String (30.0) > >>>>> POVRSINA: Real (16.2) > >>>>> OZNAKA: String (100.0) > >>>>> > >>>>> > >>>>> > >>>>> On 14. stu. 2011., at 10:35, Dejan Gambin wrote: > >>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I have a serious issue usng MapServer WFS in making > >>>> GetFeature request using multiple typenames. Here is the > >>>> example post request: > >>>>>> > >>>>>> [Mon Nov 14 09:16:06 2011].666863 msWFSParseRequest(): WFS > >>>> post request: >>>> xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > >>>> version="1.1.0" maxFeatures="10" > >>>> xsi:schemaLocation="http://www.opengis.net/wfs > >>>> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>>> ry typeName="ms:ppu_sportska" srsName="EPSG:900913" > >>>> xmlns:ms="http://www.openplans.org/topp"> >>>> xmlns:ogc="http://www.opengis.net/ogc"> >>>> Name>msGeometry >>>> xmlns:gml="http://www.opengis.net/gml" > >>>> srsName="EPSG:900913">1533843.3519844 > >>>> 5619282.04924261533938.8982 > >>>> 697 > >>>> 5619377.595528 >>>> c:Filter> >>>> srsName="EPSG:900913" > >>>> xmlns:ms="http://www.openplans.org/topp"> >>>> xmlns:ogc="http://www.opengis.net/ogc"> >>>> Name>msGeometry >>>> xmlns:gml="http://www.opengis.net/gml" > >>>> srsName="EPSG:900913">1533843.3519844 > >>>> 5619282.04924261533938.8982 > >>>> 697 > >>>> 5619377.595528 >>>> c:Filter> > >>>>>> [Mon Nov 14 09:16:06 2011].683317 msQueryByFilter(): > >>>> Search returned no results. No matching record(s) found. > >>>>>> > >>>>>> It is using 2 typenames: "ms:ppu_sportska" and > >>>> "ms:ppu_turisticka". Seems like no results were found but > >>>> there are bunch of errors in apache log file, like: > >>>>>> > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> *** glibc detected *** /usr/lib/cgi-bin/mapserv61: double > >>>> free or corruption (out): 0x0000000001a83d60 ***, referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> ======= Backtrace: =========, referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /lib/libc.so.6(+0x71ad6)[0x7f58d7c43ad6], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /lib/libc.so.6(cfree+0x6c)[0x7f58d7c4884c], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x4328c6], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x438719], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x455d2d], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x455b8c], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x4df5c4], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x4bf415], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61(msLayerApplyPlainFilterToLayer+0x23 > >>> )[0x47a99c], referer: http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x4bf362], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x49ffe0], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x4a1c8e], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x495f17], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x4182b7], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /lib/libc.so.6(__libc_start_main+0xfd)[0x7f58d7bf0c4d], > >>>> referer: http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mapserv61[0x413609], referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> ======= Memory map: ========, referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> ...bunch of library references > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> 7f58db7ca000-7f58db7cb000 r--p 0001d000 ca:01 1855039 > >>>> /lib/ld-2.11.2.so, referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> 7f58db7cb000-7f58db7cc000 rw-p 0001e000 ca:01 1855039 > >>>> /lib/ld-2.11.2.so, referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> 7f58db7cc000-7f58db7cd000 rw-p 00000000 00:00 0 , referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> 7fff70721000-7fff70736000 rw-p 00000000 00:00 0 > >>>> [stack], referer: http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> 7fff70777000-7fff70778000 r-xp 00000000 00:00 0 > >>>> [vdso], referer: http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 > >>>> [vsyscall], referer: > http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> /usr/lib/cgi-bin/mywfs6: line 4: 3294 Aborted > >>>> /usr/lib/cgi-bin/mapserv61, referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> [Mon Nov 14 09:16:06 2011] [error] [client 83.131.213.54] > >>>> Premature end of script headers: mywfs6, referer: > >>>> http://www.coin.hr/coingis/demo.html > >>>>>> > >>>>>> Sometimes the error was starting with: > >>>>>> > >>>>>> [Mon Nov 14 08:25:06 2011] [error] [client 83.131.213.54] > >>>> *** glibc detected *** /usr/lib/cgi-bin/mapserv61: > >>>> munmap_chunk(): invalid pointer: 0x000000000273ca80 ***, > >>>> referer: http://www.coin.hr/coingis/demo.html > >>>>>> > >>>>>> NOTE: Making individual requests to those typenames works OK > >>>>>> > >>>>>> I would appreciate any help since I am pretty stucked with > >>>> this. Should I report it as a bug? > >>>>>> > >>>>>> Thanks very much > >>>>>> > >>>>>> regards, dejan > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> 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 forums at craniumjuice.com Mon Dec 5 05:25:06 2011 From: forums at craniumjuice.com (forums) Date: Mon, 5 Dec 2011 07:25:06 -0600 Subject: [mapserver-users] Mapcache question. In-Reply-To: References: Message-ID: Ahh, ok that explains it. Thanks for the information. Jerl On Mon, Dec 5, 2011 at 1:05 AM, thomas bonfort wrote: > only the wms and wmts services support dimensions (there is no spec > defining this support for the others). > > you can either adapt your gmaps/js code to build a wmts url, or hack > into the mapcache code to add dimension support to the tms / gmaps > service. > > -- > thomas > > On Sun, Dec 4, 2011 at 22:23, forums wrote: > > I almost have it, I just can't seem to get the targetdate dimension to > > populate. > > > > /mapcache/gmaps/country at WGS84/1/1/0.png works fine if I don't have the > > layers that require the targetdate parameter. I get a "parameter pattern > > failed validation" error returned from Mapserver when I have the > necessary > > layers defined in the mapcache config file. > > > > The obvious thing for me to try was: > > /mapcache/gmaps/country at WGS84/1/1/0.png?targetdate=201112042105 > > > > But that failed. Is there a way to get the targetdate to fill in? I've > > moved it around a bit, but still can't get it to fill in. > > > > Thanks again!! > > > > Jerl > > > > > > On Sun, Dec 4, 2011 at 2:59 PM, forums wrote: > >> > >> Thanks Stephen and Thomas. > >> > >> I think I'll be good with the dimension and the disk cache. > >> Unfortunately, the apache we have doesn't have memcache built into it > (too > >> much hassle to upgrade it right now) and the version of SQLite is too > >> old...also a hassle to upgrade. > >> > >> I was able to get it to load the proper map when just using the entire > >> bounding box, the whole world. Now to make it work with the the > tilemode > >> for google...which looks like that should be straight forward?? > >> > >> > >> Thanks guys!! > >> > >> Jerl > >> > >> > >> On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort < > thomas.bonfort at gmail.com> > >> wrote: > >>> > >>> Jerl, > >>> mapcache itself does not do any pruning of the caches it has created, > >>> but you can get the same effect by using a cache backend that supports > >>> expiration (i.e. memcache). > >>> Mapcache can fit your need, provided: > >>> - you configure your tileset with a "targetdate" - you use > >>> a memcache backend to store the created tiles, and set an > >>> value in mapcache to 5 hours > >>> If the memory requirement for storing 5 hours worth of tiles is too > >>> important for a memcache server instance, you can have a look at > >>> membase which will also store less frequently used data to disk. The > >>> membase protocol is compatible with memcache, so you can use either > >>> memcache or membase with the same mapcache configuration. > >>> > >>> Of course, by running a script every hour to delete expired tiles as > >>> you are doing now, you can then use the classic disk based cache > >>> backend. > >>> regards, > >>> thomas > >>> On Sun, Dec 4, 2011 at 20:13, forums wrote: > >>> > Hi: > >>> > > >>> > I hope this is the proper place to ask questions about Mapcache since > >>> > it's > >>> > been moved into the trunk of Mapserver. > >>> > > >>> > I'm wondering if Mapcache can help with a particular setup, and if so > >>> > maybe > >>> > some advice or direction on where to start? > >>> > > >>> > Here's the setup. Every 5 minutes a new set of GeoTiffs are created > in > >>> > a > >>> > new directory. I create a tileindex for the GeoTiffs and use those > in > >>> > the > >>> > map layer. Every hour, anything more than 5hours old gets deleted. > >>> > I have a single mapfile setup. > >>> > > >>> > The general layer is setup like: > >>> > > >>> > LAYER > >>> > NAME 'IMG1' > >>> > METADATA > >>> > 'wms_title' 'IMG 1' > >>> > 'wms_srs' 'EPSG:4326' > >>> > 'wms_extent' 'MINX MINY MAXX MAXY' > >>> > 'default_targetdate' '' > >>> > 'targetdate_validation_pattern' '^[0-9]{12}$' > >>> > END > >>> > STATUS ON > >>> > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp' > >>> > TILEITEM 'Location' > >>> > TYPE RASTER > >>> > END > >>> > > >>> > > >>> > I'm currently loading these images as overlays for Googlemaps. using > >>> > the > >>> > mode=tile&tilemode=gmaps...&targetdate=2011...etc. > >>> > Problem is it's too slow. I end up loading hundreds of images, as I > >>> > basically create an animation using sequential times. > >>> > > >>> > I'd like to be able to have a single mapcache config file, that will > >>> > pass > >>> > the date through to pull the proper shapefile, and have the result > >>> > cached so > >>> > next time it's loading off the disk. MOST of the images end up being > >>> > blank/transparent tiles. > >>> > > >>> > Is Mapcache a good choice for this? > >>> > The front end for this is just a simple GoogleMaps viewport, but ends > >>> > up > >>> > loading multiple timeslots for display. It generates the request URL > >>> > (not > >>> > currently in WMS fashion but could be). > >>> > > >>> > Thanks for any help I can get. > >>> > > >>> > Jerl > >>> > > >>> > > >>> > > >>> > _______________________________________________ > >>> > mapserver-users mailing list > >>> > mapserver-users at lists.osgeo.org > >>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > > >> > >> > >> > >> > >> -- > >> A computer without Windows is like chocolate cake without mustard. > > > > > > > > > > -- > > A computer without Windows is like chocolate cake without mustard. > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Mon Dec 5 08:43:37 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Mon, 05 Dec 2011 17:43:37 +0100 Subject: [mapserver-users] Specify resolution (or pixel size) in WMS requests Message-ID: <4EDCF4B9.7050000@r3-gis.com> Basically, I am looking for a way to something analogous to DEFRESOLUTION in a WMS request. The standard says, that a pixel is 0.28 mm x 0.28 mm (25.4/0.28 ~= 90.71 DPI). I could not found a way to change this in the WMS 1.3.0 standard. Is there a MapServer vendor parameter, similar to the one in GeoServer, http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options ? Peter -- Peter Hopfgartner R3 GIS http://www.r3-gis.com From thomas.bonfort at gmail.com Mon Dec 5 08:57:34 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 5 Dec 2011 17:57:34 +0100 Subject: [mapserver-users] Specify resolution (or pixel size) in WMS requests In-Reply-To: <4EDCF4B9.7050000@r3-gis.com> References: <4EDCF4B9.7050000@r3-gis.com> Message-ID: cgi controls should do the trick? http://....../?SERVICE=WMS&....&MAP.RESOLUTION=144&MAP.DEFRESOLUTION=96 -- thomas On Mon, Dec 5, 2011 at 17:43, Peter Hopfgartner wrote: > Basically, I am looking for a way to something analogous to DEFRESOLUTION in > a WMS request. The standard says, that a pixel is 0.28 mm x 0.28 mm > (25.4/0.28 ~= 90.71 DPI). I could not found a way to change this in the WMS > 1.3.0 standard. > Is there a MapServer vendor parameter, similar to the one in GeoServer, > http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options > ? > > Peter > > -- > Peter Hopfgartner R3 GIS http://www.r3-gis.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jtaranu at firstbasesolutions.com Mon Dec 5 14:37:02 2011 From: jtaranu at firstbasesolutions.com (John Taranu) Date: Mon, 5 Dec 2011 17:37:02 -0500 Subject: [mapserver-users] Reloading MapCache configuration file on changes? Message-ID: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> Thomas, Is there a better way force MapCache to reload its configuration script than restarting apache? I'm working on an application that will use two load-balanced web servers running MapCache, all pointing to a single central tile repository and a single central .xml configuration file. The configuration file will occasionally be edited, either with deletions or additional tilesets. Both web servers need to reload the updated configuration .xml. Is it possible to set up MapCache to check if the config file was recently updated and, if so, reload the config .xml? It looks like this is currently enabled under FastCGI, but not under Apache. John -------------- next part -------------- An HTML attachment was scrubbed... URL: From no-reply at neogeo-online.net Tue Dec 6 01:54:38 2011 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Tue, 06 Dec 2011 10:54:38 +0100 Subject: [mapserver-users] Using applySLD and generateSLD with Mapscript Python In-Reply-To: <4EDCF4B9.7050000@r3-gis.com> References: <4EDCF4B9.7050000@r3-gis.com> Message-ID: <4EDDE65E.4020901@neogeo-online.net> Hi list, I'm playing with mapscript python and SLD files, and having some kinds of troubles. It seems that applySLD doesn't build an EXPRESSION tag for the CLASS it refers too. Starting from a mapfile with CLASS and EXPRESSION set, the SLD body generated is correct : VELOV nbbornettes20 square #993300 8 but applying this same SLD file to the mapfile via mapscript gives only a FILTER set: FILTER ("nbbornettes">= 20) ... CLASS NAME "VELOV" STYLE ANGLE 0 COLOR 153 51 0 OFFSET 0 0 SIZE 8 SYMBOL "sld_mark_symbol_square_filled" END # STYLE END # CLASS The matching between SLd Filters and Classes has been lost. It means that you can't build any SLD file with more than one class/filter and see them drawn on the map. I 'm using mapscript 6.0.1 Thanks for any clue Best regards Guillaume From tbonfort at terriscope.fr Tue Dec 6 03:00:59 2011 From: tbonfort at terriscope.fr (thomas bonfort) Date: Tue, 6 Dec 2011 12:00:59 +0100 Subject: [mapserver-users] Re: Reloading MapCache configuration file on changes? In-Reply-To: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> References: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> Message-ID: AFAIK, this isn't possible. Inside an apache module, the configuration is considered read-only as it is shared between multiple worker threads/processed spawned by httpd. apachectl configtest && apachectl graceful will restart the server gracefully, i.e. without aborting ongoing requests, and will load the new configuration for subsequent requests. -- thomas On Mon, Dec 5, 2011 at 23:37, John Taranu wrote: > Thomas, > > > > Is there a better way force MapCache to reload its configuration script than > restarting apache?? I?m working on an application that will use two > load-balanced web servers running MapCache, all pointing to a single central > tile repository and a single central .xml configuration file.? The > configuration file will occasionally be edited, either with deletions or > additional tilesets.? Both web servers need to reload the updated > configuration .xml. > > > > Is it possible to set up MapCache to check if the config file was recently > updated and, if so, reload the config .xml?? It looks like this is currently > enabled under FastCGI, but not under Apache. > > > > John From powerslave.ua at gmail.com Tue Dec 6 06:02:30 2011 From: powerslave.ua at gmail.com (Koba) Date: Tue, 6 Dec 2011 06:02:30 -0800 (PST) Subject: [mapserver-users] PostGIS+Mapserver: i can't string points ST_MakeLine Message-ID: <1323180150378-7066874.post@n2.nabble.com> Hi I have a problem: *Given:* A table in PostgreSQL, it fields gid, id, the_geom (point) ... records in a table about 200 000 *Objective:* to bring the two layers, one simply points in the second to connect the dots in a line The first layer to the output points works well here it is: But the second layer in which I try to connect the dots in a line, persistently displays the error in the query: error: Please help edit the query -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/PostGIS-Mapserver-i-can-t-string-points-ST-MakeLine-tp7066874p7066874.html Sent from the Mapserver - User mailing list archive at Nabble.com. From forums at craniumjuice.com Tue Dec 6 06:41:26 2011 From: forums at craniumjuice.com (forums) Date: Tue, 6 Dec 2011 08:41:26 -0600 Subject: [mapserver-users] mapcache_seed segmentation fault. Message-ID: Hi guys: I'm having trouble with mapcache_seed I get a segmentation fault, it appears to happen at line 626 http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/src/mapcache_seed.c#L626 Warning messages from the compile process: mapcache_seed.c: In function 'cmd_recurse': mapcache_seed.c:337: warning: unused variable 'j' mapcache_seed.c:337: warning: unused variable 'i' mapcache_seed.c: In function 'seed_thread': mapcache_seed.c:511: warning: dereferencing type-punned pointer will break strict-aliasing rules mapcache_seed.c: In function 'main': mapcache_seed.c:626: warning: assignment makes integer from pointer without a cast mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: assignment makes integer from pointer without a cast mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: value computed is not used mapcache_seed.c:626: warning: 'dimvalue' is used uninitialized in this function mapcache_seed.c:626: warning: 'optargcpy' is used uninitialized in this function If I put some fprintf statements around line 626, I only get the first one: fprintf(stderr,"FOO\n"); dimkey = NULL,*dimvalue = NULL,*key,*last,*optargcpy = NULL; fprintf(stderr,"BAR\n"); prints out: $ ./src/mapcache_seed FOO Segmentation fault Am I missing something? Thanks, Jerl -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Dec 6 06:45:58 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 6 Dec 2011 15:45:58 +0100 Subject: [mapserver-users] mapcache_seed segmentation fault. In-Reply-To: References: Message-ID: fixed. On Tue, Dec 6, 2011 at 15:41, forums wrote: > Hi guys: > > I'm having trouble with mapcache_seed > > I get a segmentation fault, it appears to happen at line 626 > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/src/mapcache_seed.c#L626 > > Warning messages from the compile process: > > mapcache_seed.c: In function 'cmd_recurse': > mapcache_seed.c:337: warning: unused variable 'j' > mapcache_seed.c:337: warning: unused variable 'i' > mapcache_seed.c: In function 'seed_thread': > mapcache_seed.c:511: warning: dereferencing type-punned pointer will break > strict-aliasing rules > mapcache_seed.c: In function 'main': > mapcache_seed.c:626: warning: assignment makes integer from pointer without > a cast > mapcache_seed.c:626: warning: value computed is not used > mapcache_seed.c:626: warning: assignment makes integer from pointer without > a cast > mapcache_seed.c:626: warning: value computed is not used > mapcache_seed.c:626: warning: value computed is not used > mapcache_seed.c:626: warning: 'dimvalue' is used uninitialized in this > function > mapcache_seed.c:626: warning: 'optargcpy' is used uninitialized in this > function > > > If I put some fprintf statements around line 626, I only get the first one: > ? ? fprintf(stderr,"FOO\n"); > ? ? dimkey = NULL,*dimvalue = NULL,*key,*last,*optargcpy = NULL; > ? ? fprintf(stderr,"BAR\n"); > > prints out: > $ ./src/mapcache_seed > FOO > Segmentation fault > > Am I missing something? > > Thanks, > > Jerl > > -- > A computer without Windows is like chocolate cake without mustard. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From forums at craniumjuice.com Tue Dec 6 06:58:50 2011 From: forums at craniumjuice.com (forums) Date: Tue, 6 Dec 2011 08:58:50 -0600 Subject: [mapserver-users] mapcache_seed segmentation fault. In-Reply-To: References: Message-ID: Thank you!! On Tue, Dec 6, 2011 at 8:45 AM, thomas bonfort wrote: > fixed. > > On Tue, Dec 6, 2011 at 15:41, forums wrote: > > Hi guys: > > > > I'm having trouble with mapcache_seed > > > > I get a segmentation fault, it appears to happen at line 626 > > > http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/src/mapcache_seed.c#L626 > > > > Warning messages from the compile process: > > > > mapcache_seed.c: In function 'cmd_recurse': > > mapcache_seed.c:337: warning: unused variable 'j' > > mapcache_seed.c:337: warning: unused variable 'i' > > mapcache_seed.c: In function 'seed_thread': > > mapcache_seed.c:511: warning: dereferencing type-punned pointer will > break > > strict-aliasing rules > > mapcache_seed.c: In function 'main': > > mapcache_seed.c:626: warning: assignment makes integer from pointer > without > > a cast > > mapcache_seed.c:626: warning: value computed is not used > > mapcache_seed.c:626: warning: assignment makes integer from pointer > without > > a cast > > mapcache_seed.c:626: warning: value computed is not used > > mapcache_seed.c:626: warning: value computed is not used > > mapcache_seed.c:626: warning: 'dimvalue' is used uninitialized in this > > function > > mapcache_seed.c:626: warning: 'optargcpy' is used uninitialized in this > > function > > > > > > If I put some fprintf statements around line 626, I only get the first > one: > > fprintf(stderr,"FOO\n"); > > dimkey = NULL,*dimvalue = NULL,*key,*last,*optargcpy = NULL; > > fprintf(stderr,"BAR\n"); > > > > prints out: > > $ ./src/mapcache_seed > > FOO > > Segmentation fault > > > > Am I missing something? > > > > Thanks, > > > > Jerl > > > > -- > > A computer without Windows is like chocolate cake without mustard. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From powerslave.ua at gmail.com Tue Dec 6 07:49:59 2011 From: powerslave.ua at gmail.com (Koba) Date: Tue, 6 Dec 2011 07:49:59 -0800 (PST) Subject: [mapserver-users] Re: PostGIS+Mapserver: i can't string points ST_MakeLine In-Reply-To: <1323180150378-7066874.post@n2.nabble.com> References: <1323180150378-7066874.post@n2.nabble.com> Message-ID: <1323186599170-7067254.post@n2.nabble.com> Tried advanced query is returned in the error and run it in the database manager, received the same storage error .... why he does not like the code in this place http://osgeo-org.1803224.n2.nabble.com/file/n7067254/ZqLNQfjV00GcMnzFoL58A.jpg -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/PostGIS-Mapserver-i-can-t-string-points-ST-MakeLine-tp7066874p7067254.html Sent from the Mapserver - User mailing list archive at Nabble.com. From no-reply at neogeo-online.net Tue Dec 6 08:57:33 2011 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Tue, 06 Dec 2011 17:57:33 +0100 Subject: [mapserver-users] Using applySLD and generateSLD with Mapscript Python In-Reply-To: <4EDDE65E.4020901@neogeo-online.net> References: <4EDCF4B9.7050000@r3-gis.com> <4EDDE65E.4020901@neogeo-online.net> Message-ID: <4EDE497D.1010908@neogeo-online.net> Actually, this only happens for POSTGIS layers and not for SHAPEFILE layers, and only with MapServer 6. I have filled a ticket. Best Guillaume Le 06/12/11 10:54, Guillaume Sueur a ?crit : > Hi list, > > I'm playing with mapscript python and SLD files, and having some kinds > of troubles. > It seems that applySLD doesn't build an EXPRESSION tag for the CLASS it > refers too. > Starting from a mapfile with CLASS and EXPRESSION set, the SLD body > generated is correct : > > VELOV > nbbornettes20 > > > > > square > > #993300 > > > 8 > > > > > but applying this same SLD file to the mapfile via mapscript gives only > a FILTER set: > FILTER ("nbbornettes">= 20) > ... > CLASS > NAME "VELOV" > STYLE > ANGLE 0 > COLOR 153 51 0 > OFFSET 0 0 > SIZE 8 > SYMBOL "sld_mark_symbol_square_filled" > END # STYLE > END # CLASS > > The matching between SLd Filters and Classes has been lost. It means > that you can't build any SLD file with more than one class/filter and > see them drawn on the map. > I 'm using mapscript 6.0.1 > > Thanks for any clue > > Best regards > > Guillaume > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lists at remoteinformation.com.au Tue Dec 6 17:10:59 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Wed, 7 Dec 2011 09:10:59 +0800 Subject: [mapserver-users] Re: PostGIS+Mapserver: i can't string points ST_MakeLine In-Reply-To: <20111206170014.0C23CE00A84@lists.osgeo.org> References: <20111206170014.0C23CE00A84@lists.osgeo.org> Message-ID: <02AD5B84-0B38-4AFA-B3F2-74EFAB20FFE9@remoteinformation.com.au> From your online picture I can't see any instructions on how to manage the points etc: have you seen this post - it works for me every time! http://www.bostongis.com/postgis_makeline.snippet cheers Ben On 07/12/2011, at 1:00 AM, mapserver-users-request at lists.osgeo.org wrote: > From: Koba > Date: 6 December 2011 11:49:59 PM AWST > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Re: PostGIS+Mapserver: i can't string points ST_MakeLine > > > Tried advanced query is returned in the error and run it in the database > manager, received the same storage error .... > > > > why he does not like the code in this place > > > > http://osgeo-org.1803224.n2.nabble.com/file/n7067254/ZqLNQfjV00GcMnzFoL58A.jpg > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/PostGIS-Mapserver-i-can-t-string-points-ST-MakeLine-tp7066874p7067254.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From powerslave.ua at gmail.com Wed Dec 7 01:14:47 2011 From: powerslave.ua at gmail.com (Koba) Date: Wed, 7 Dec 2011 01:14:47 -0800 (PST) Subject: [mapserver-users] Re: PostGIS+Mapserver: i can't string points ST_MakeLine In-Reply-To: <02AD5B84-0B38-4AFA-B3F2-74EFAB20FFE9@remoteinformation.com.au> References: <1323180150378-7066874.post@n2.nabble.com> <02AD5B84-0B38-4AFA-B3F2-74EFAB20FFE9@remoteinformation.com.au> Message-ID: <1323249287680-7069853.post@n2.nabble.com> This query work fine in DB manager but if i try set DATA query in my Mapserver, i get same error query: error: -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/PostGIS-Mapserver-i-can-t-string-points-ST-MakeLine-tp7066874p7069853.html Sent from the Mapserver - User mailing list archive at Nabble.com. From volzmark at yahoo.com Wed Dec 7 20:06:04 2011 From: volzmark at yahoo.com (Mark Volz) Date: Wed, 7 Dec 2011 20:06:04 -0800 (PST) Subject: [mapserver-users] mimic geonames.org JSON server Message-ID: <1323317164.28992.YahooMailNeo@web121314.mail.ne1.yahoo.com> Hello, I recently came across an interesting openlayers application that uses geonames.org for a search functionality.? I would like to be able to use my own gis data on the searches.?? I came across http://mapserver.org/trunk/output/template_output.html, which starts to describe how to make a template.? I just have a couple questions. 1)? My understanding is I can use any .map files that have a layer with appropriate fields.? I just need to add another output format so that my .map file references a JSON template, and I can keep the standard image output formats.? Is this correct? 2) How would the html request need to be formatted to search a specific value in a specific layer and return JSON? Any help and / or examples would be greatly appreciated. Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommasodb at googlemail.com Thu Dec 8 05:58:17 2011 From: tommasodb at googlemail.com (tommaso) Date: Thu, 08 Dec 2011 14:58:17 +0100 Subject: [mapserver-users] Maperver upgrade 5.6 - 6.0 - OUTPUTFORMAT ? Message-ID: <1323352697.23707.10.camel@tommaso-laptop> Hallo List, I'm trying to upgrade my app from Mapserver 5.6 to Mapserver 6.0. The Problem is, that the same Mapfile produces two different maps with the to Mapserver version. The map by mapserver 6.0 appears like "out of focus". See the attachments for a example. I'm missing something regarding OUTPUTFORMAT? In the WMS Request I'm using " format=png " or " format=png24 ", with the same result. The mapfile is below. Greetings Tommaso MAP NAME test-map STATUS ON UNITS meters IMAGETYPE AGG OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END PROJECTION "proj=utm" "zone=32" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" "towgs84=0,0,0" END WEB IMAGEPATH "/tmp/mapserver" IMAGEURL "/tmp/mapserver" METADATA WMS_SRS "epgs:32632" ows_enable_request "*" END END LAYER NAME "stand_test" STATUS ON TYPE POLYGON INCLUDE "connection" DATA "geom from geo.stand_test using UNIQUE id USING srid=32632" LABELITEM "name" CLASS STYLE #COLOR '#ffffff' OUTLINECOLOR '#000000' END END END END ### END MAP ##### -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-5.6.png Type: image/png Size: 3098 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-6.0.png Type: image/png Size: 4283 bytes Desc: not available URL: From thomas.bonfort at gmail.com Thu Dec 8 06:13:00 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 8 Dec 2011 15:13:00 +0100 Subject: [mapserver-users] Maperver upgrade 5.6 - 6.0 - OUTPUTFORMAT ? In-Reply-To: <1323352697.23707.10.camel@tommaso-laptop> References: <1323352697.23707.10.camel@tommaso-laptop> Message-ID: antialiasing causes vertical and horizontal lines to appear blurred. switch to gif if you need aliased results. -- thomas On Thu, Dec 8, 2011 at 14:58, tommaso wrote: > Hallo List, > > I'm trying to upgrade my app from Mapserver 5.6 to Mapserver 6.0. > The Problem is, that the same Mapfile produces two different maps with the > to Mapserver version. The map by mapserver 6.0 appears like "out of focus". > See the attachments for a example. I'm missing something regarding > OUTPUTFORMAT? > In the WMS Request I'm using? " format=png " or? " format=png24 ", with the > same result. > The mapfile is below. > > Greetings Tommaso > > MAP > ??? NAME test-map > ??? STATUS ON > ??? UNITS meters > ??? IMAGETYPE AGG > > ??? OUTPUTFORMAT > ?????? NAME 'AGG' > ?????? DRIVER AGG/PNG > ?????? IMAGEMODE RGB > ??? END > > ??? PROJECTION > ??????? "proj=utm" > ??????? "zone=32" > ??????? "ellps=WGS84" > ??????? "datum=WGS84" > ??????? "units=m" > ??????? "no_defs" > ??????? "towgs84=0,0,0" > ??? END > > ??? WEB > ??????? IMAGEPATH "/tmp/mapserver" > ??????? IMAGEURL "/tmp/mapserver" > ??????? METADATA > ??????????? WMS_SRS "epgs:32632" > ??????????? ows_enable_request?? "*" > ??????? END > ??? END > > ??? LAYER > ??????? NAME "stand_test" > ??????? STATUS ON > ??????? TYPE POLYGON > ??????? INCLUDE "connection" > ??????? DATA "geom from geo.stand_test? using UNIQUE id USING srid=32632" > ??????? LABELITEM? "name" > ??????? CLASS > ??????????? STYLE > ??????????????? #COLOR '#ffffff' > ??????????????? OUTLINECOLOR? '#000000' > ??????????? END > ??????? END > ??? END > > END?????? ### END MAP ##### > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Thu Dec 8 08:26:59 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 8 Dec 2011 16:26:59 +0000 Subject: [mapserver-users] mimic geonames.org JSON server In-Reply-To: <1323317164.28992.YahooMailNeo@web121314.mail.ne1.yahoo.com> References: <1323317164.28992.YahooMailNeo@web121314.mail.ne1.yahoo.com> Message-ID: 1) Correct. Templates are just a means of presenting the results of a query operation. I've used templates to return json successfully. 2) Again, you need to issue a query. So to find a record in a layer you might do something like: http://localhost/cgi-bin/mapserv?map=mapfile&mode=itemquery&qlayer=layer&qitem=item&qstring=value&qformat=jsonformat This assumes that: for the layer in question you've setup a validation pattern for qstring and you've defined a output format called 'jsonformat'. The one limitation I've found (and would like to fix) is that there's no easy way to handle exceptions relative to the output format. For example, if you're outputting json it would be nice to return errors (if possible, certain ones like mapfile not found can't be dealt with other than in the default way) as json too. Let me know if you have questions. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, December 07, 2011 10:06 PM To: mapserver-users at lists.osgeo.org; volzmark at yahoo.com Subject: [mapserver-users] mimic geonames.org JSON server Hello, I recently came across an interesting openlayers application that uses geonames.org for a search functionality. I would like to be able to use my own gis data on the searches. I came across http://mapserver.org/trunk/output/template_output.html, which starts to describe how to make a template. I just have a couple questions. 1) My understanding is I can use any .map files that have a layer with appropriate fields. I just need to add another output format so that my .map file references a JSON template, and I can keep the standard image output formats. Is this correct? 2) How would the html request need to be formatted to search a specific value in a specific layer and return JSON? Any help and / or examples would be greatly appreciated. Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at f5data.com Thu Dec 8 12:26:19 2011 From: andy at f5data.com (Andrew Revering) Date: Thu, 8 Dec 2011 14:26:19 -0600 Subject: [mapserver-users] Hiring MapServer Installer Message-ID: I'm a linux novice and need immediate help properly installing & configuring MapServer on my dedicated server. I could also use some help properly setting up PHP on my server. I'm unable to do some basic tasks like downloading via file_get_contents() and ftp_get(). No errors are thrown either, which I think should be happening. Email me privately if you have solid experience building MapServer, the amount of time it would take to install, and your fee. info at f5data.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at wildwalks.com Thu Dec 8 13:10:16 2011 From: matt at wildwalks.com (Matt McClelland) Date: Fri, 9 Dec 2011 08:10:16 +1100 Subject: [mapserver-users] Hiring MapServer Installer In-Reply-To: References: Message-ID: Hi Andrew I have had a few servers built by people I hired through vworker.com I can't remember exactly (I can look it up if you want) but it cost less than $50 each time. Just to get the server running with some test data. I have been very happy with the results. Just know what you want before hand, and make sure you are clear in the bid exactly what you want set up, and how you want it configured. Be clear as to how you want mapserver configured. I have given test data and asked them to show me an example rendering a map in WMS and through php using mapscript. That way you are confident things are working. You should have it done in a day or two if you go down this route. Hope you find a good solution. Matt :) On Fri, Dec 9, 2011 at 7:26 AM, Andrew Revering wrote: > I'm a linux novice and need immediate help properly installing & > configuring MapServer on my dedicated server. > > I could also use some help properly setting up PHP on my server. I'm > unable to do some basic tasks like downloading via file_get_contents() and > ftp_get(). No errors are thrown either, which I think should be happening. > > Email me privately if you have solid experience building MapServer, the > amount of time it would take to install, and your fee. > > info at f5data.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From volzmark at yahoo.com Thu Dec 8 20:11:28 2011 From: volzmark at yahoo.com (Mark Volz) Date: Thu, 8 Dec 2011 20:11:28 -0800 (PST) Subject: [mapserver-users] mimic geonames.org JSON server In-Reply-To: References: <1323317164.28992.YahooMailNeo@web121314.mail.ne1.yahoo.com> Message-ID: <1323403888.84252.YahooMailNeo@web121310.mail.ne1.yahoo.com> Steve, Thank you for your assistance.? The code is starting to work.? I just have a couple more questions. 1)? How can I change the query on the html call to use regular expressions, or more particularly make the search a "begins with" search. Using qlayer=myLayer&qitem=MyField&qstring='myValue' obliviously returns only one result, however I would like to search for n items 2) In the JSON template, I have a comma separating each result.? I thought that I could remove the final comma by adding [feature trimlast=','].? The final comment was not removed.? how do I correctly use [feature trimlast=','] 3)? for JSON templates is a variable for "total results"?? If not is there another way to get a record count? Thanks ________________________________ From: "Lime, Steve D (DNR)" To: Mark Volz ; "mapserver-users at lists.osgeo.org" Sent: Thursday, December 8, 2011 10:26 AM Subject: RE: [mapserver-users] mimic geonames.org JSON server 1)????? Correct. Templates are just a means of presenting the results of a query operation. I?ve used templates to return json successfully. 2)????? Again, you need to issue a query. So to find a record in a layer you might do something like: ? http://localhost/cgi-bin/mapserv?map=mapfile&mode=itemquery&qlayer=layer&qitem=item&qstring=value&qformat=jsonformat ? This assumes that: for the layer in question you?ve setup a validation pattern for qstring and you?ve defined a output format called ?jsonformat?. ? The one limitation I?ve found (and would like to fix) is that there?s no easy way to handle exceptions relative to the output format. For example, if you?re outputting json it would be nice to return errors (if possible, certain ones like mapfile not found can?t be dealt with other than in the default way) as json too. ? Let me know if you have questions. ? Steve ? From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, December 07, 2011 10:06 PM To: mapserver-users at lists.osgeo.org; volzmark at yahoo.com Subject: [mapserver-users] mimic geonames.org JSON server ? Hello, ? I recently came across an interesting openlayers application that uses geonames.org for a search functionality.? I would like to be able to use my own gis data on the searches.?? I came across http://mapserver.org/trunk/output/template_output.html, which starts to describe how to make a template.? I just have a couple questions. ? 1)? My understanding is I can use any .map files that have a layer with appropriate fields.? I just need to add another output format so that my .map file references a JSON template, and I can keep the standard image output formats.? Is this correct? ? 2) How would the html request need to be formatted to search a specific value in a specific layer and return JSON? ? ? Any help and / or examples would be greatly appreciated. ? Thanks ? Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommasodb at googlemail.com Thu Dec 8 23:18:16 2011 From: tommasodb at googlemail.com (tommaso) Date: Fri, 09 Dec 2011 08:18:16 +0100 Subject: [mapserver-users] Maperver upgrade 5.6 - 6.0 - OUTPUTFORMAT ? In-Reply-To: References: <1323352697.23707.10.camel@tommaso-laptop> Message-ID: <1323415096.2093.7.camel@tommaso-laptop> Well, but I need antialiasing...With gif the lines are correctly rendered, but not the icons. With Mapserver 5.6, format=png24, lines and icons are both rendered as expected (see attachments). My gif definition in mapfile: OUTPUTFORMAT NAME "gif" DRIVER GD/GIF MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END Greetings Tommaso On Thu, 2011-12-08 at 15:13 +0100, thomas bonfort wrote: > antialiasing causes vertical and horizontal lines to appear blurred. > switch to gif if you need aliased results. > > -- > thomas > > On Thu, Dec 8, 2011 at 14:58, tommaso wrote: > > Hallo List, > > > > I'm trying to upgrade my app from Mapserver 5.6 to Mapserver 6.0. > > The Problem is, that the same Mapfile produces two different maps with the > > to Mapserver version. The map by mapserver 6.0 appears like "out of focus". > > See the attachments for a example. I'm missing something regarding > > OUTPUTFORMAT? > > In the WMS Request I'm using " format=png " or " format=png24 ", with the > > same result. > > The mapfile is below. > > > > Greetings Tommaso > > > > MAP > > NAME test-map > > STATUS ON > > UNITS meters > > IMAGETYPE AGG > > > > OUTPUTFORMAT > > NAME 'AGG' > > DRIVER AGG/PNG > > IMAGEMODE RGB > > END > > > > PROJECTION > > "proj=utm" > > "zone=32" > > "ellps=WGS84" > > "datum=WGS84" > > "units=m" > > "no_defs" > > "towgs84=0,0,0" > > END > > > > WEB > > IMAGEPATH "/tmp/mapserver" > > IMAGEURL "/tmp/mapserver" > > METADATA > > WMS_SRS "epgs:32632" > > ows_enable_request "*" > > END > > END > > > > LAYER > > NAME "stand_test" > > STATUS ON > > TYPE POLYGON > > INCLUDE "connection" > > DATA "geom from geo.stand_test using UNIQUE id USING srid=32632" > > LABELITEM "name" > > CLASS > > STYLE > > #COLOR '#ffffff' > > OUTLINECOLOR '#000000' > > END > > END > > END > > > > END ### END MAP ##### > > > > _______________________________________________ > > 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: mapserv-5.6-icons.png Type: image/png Size: 3528 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-6.0-icons.gif Type: image/gif Size: 2378 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-6.0-icons.png Type: image/png Size: 4393 bytes Desc: not available URL: From sumit321 at hotmail.com Fri Dec 9 04:29:00 2011 From: sumit321 at hotmail.com (Sumit Sharma) Date: Fri, 9 Dec 2011 04:29:00 -0800 (PST) Subject: [mapserver-users] Re: Georeferenced PDF output In-Reply-To: <84446DEF76453C439E9E97E438E13A6305D0FA@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6305D0FA@suutari.haapa.mmm.fi> Message-ID: <1323433740740-7078019.post@n2.nabble.com> Hi Jukka, though there is no direct way of producing GeoPDF in MapServer, however you can write small code using iText and mapscript that can consume output of Mapserver and convert it into GeoPDF. I have done same thing using 5.2 version of mapserver to create layered GeoPDF. Thanks, Sumit. Hi, Mapserver can output PDF but can it produce also georeferenced PDF files? -Jukka Rahkonen-_______________________________________________ mapserver-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Georeferenced-PDF-output-tp7053683p7078019.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thxftw at gmail.com Fri Dec 9 04:31:04 2011 From: thxftw at gmail.com (Peter Maes) Date: Fri, 9 Dec 2011 13:31:04 +0100 Subject: [mapserver-users] Mapserver performance on apache - heavy load systems Message-ID: Hi all, We are planning to launch a major mapserver production site where i'm required to launch many mapserver instances in some form of cluster. So I basically have some questions related to this: - Does anyone have good tips on performance for running mapserver on apache? - Any specific build parameters I should pay attention to? - Does it run as a native apache module, or is it required to work through cgi? In which case: will i get better performance by using fastcgi? (we are not using databases but shapefiles). - Should I consider lighttpd or nginx instead? - Any other tips related to clustering mapserver instances? :). Note that we are using live data, so we cannot cache them, except for a minute or so. Thanks for your time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Dec 9 05:22:31 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 9 Dec 2011 13:22:31 +0000 Subject: [mapserver-users] Re: Georeferenced PDF output In-Reply-To: <1323433740740-7078019.post@n2.nabble.com> References: <84446DEF76453C439E9E97E438E13A6305D0FA@suutari.haapa.mmm.fi> <1323433740740-7078019.post@n2.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A6305E0A8@suutari.haapa.mmm.fi> Hi, If it needs coding then it is not for me but I do not have any immediate need either. I was just thinking that if the georeferencing method is published and open and if it mainly means, as I suppose, embedding some code box in the pdf file then perhaps Mapserver could be made to do it while generating the pdf output. But maybe it is not so easy. Wikipedia does not know any open source software writing out geospatial PDF http://en.wikipedia.org/wiki/Geospatial_PDF -Jukka Rahkonen- Sumit Sharma wrote: > Hi Jukka, > though there is no direct way of producing GeoPDF in > MapServer, however you > can write small code using iText and mapscript that can > consume output of > Mapserver and convert it into GeoPDF. I have done same thing using 5.2 > version of mapserver to create layered GeoPDF. > Thanks, > Sumit. > > > > Hi, > > Mapserver can output PDF but can it produce also > georeferenced PDF files? > > -Jukka Rahkonen-_______________________________________________ > mapserver-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Georeferenced-PDF-outpu > t-tp7053683p7078019.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 jacksonje at gmail.com Fri Dec 9 06:49:19 2011 From: jacksonje at gmail.com (Jason Jackson) Date: Fri, 9 Dec 2011 08:49:19 -0600 Subject: [mapserver-users] Constrain mapserver navigation to within the maps extents Message-ID: I am using Mapserver 5.6 and php Mapscript to render maps for my web application. Currently it is possible to use the navigation controls to navigate beyond the extents of the map, into empty space. Is there a way to configure mapserver to constrain navigation to within the extents of the map? Thank you, Jason From Steve.Lime at state.mn.us Fri Dec 9 07:16:34 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 9 Dec 2011 15:16:34 +0000 Subject: [mapserver-users] Mapserver performance on apache - heavy load systems In-Reply-To: References: Message-ID: Apache should be plenty quick. Start with using fastcgi and optimizing your data: e.g. create spatial indexes, use optimized raster formats and then optimizing your configuration (scale dependent layers w/things like reduced resolution layers where possible). -Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Maes Sent: Friday, December 09, 2011 6:31 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver performance on apache - heavy load systems Hi all, We are planning to launch a major mapserver production site where i'm required to launch many mapserver instances in some form of cluster. So I basically have some questions related to this: - Does anyone have good tips on performance for running mapserver on apache? - Any specific build parameters I should pay attention to? - Does it run as a native apache module, or is it required to work through cgi? In which case: will i get better performance by using fastcgi? (we are not using databases but shapefiles). - Should I consider lighttpd or nginx instead? - Any other tips related to clustering mapserver instances? :). Note that we are using live data, so we cannot cache them, except for a minute or so. Thanks for your time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at gmx.net Fri Dec 9 15:17:11 2011 From: armin.burger at gmx.net (Armin Burger) Date: Sat, 10 Dec 2011 00:17:11 +0100 Subject: [mapserver-users] Problem with PHP MapScript $layer->nextShape() Message-ID: <4EE296F7.10509@gmx.net> Hi all I tried to use with PHP MapScript the function for the LAYER class "nextShape()" as described in the documentation with a small script example. The short version is $extentMap = $map->extent; $status = $layer->whichShapes($extentMap); $shape = $layer->nextShape(); This works fine when layer and map are in the same projection. If the projections of layer and map differ (e.g. EPSG 4326 for map and 3035 for layer) then I get a segmentation fault. This happens for both MapServer 6.0.1 and 5.6.6, PHP version is 5.3, OS is Linux. If before the call of whichShapes() I re-project the extent object "$extentMap" to the projection of the layer then everything works fine. So the following workaround seems to work: $extentMap = $map->extent; $mapProjObj = ms_newProjectionObj($map->getProjection()); $layerProjObj = ms_newProjectionObj($layer->getProjection()); $extentMap->project($mapProjObj, $layerProjObj); $status = $layer->whichShapes($extentMap); $shape = $layer->nextShape(); Best regards Armin From ian.walberg at airborne.aero Sat Dec 10 07:36:57 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 10 Dec 2011 10:36:57 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example Message-ID: Does anyone have an example of the GEOMTRANSFORM LABELPNT? We have been trying this I were expecting the center to be located on the center of the label test border rectangle but we seem to be getting the center as the point location. Any ideas? Thanks From woodbri at swoodbridge.com Sat Dec 10 07:47:48 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 10 Dec 2011 10:47:48 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: Message-ID: <4EE37F24.7000902@swoodbridge.com> On 12/10/2011 10:36 AM, Ian Walberg wrote: > Does anyone have an example of the GEOMTRANSFORM LABELPNT? > > We have been trying this I were expecting the center to be located on > the center of the label test border rectangle but we seem to be getting > the center as the point location. > > Any ideas? Hi Ian, The label point is the that the label is placed about. The actual label position can change relative to the label point based on POSITION and other attributes of the label. I don't have the RFC in front of me but here is a good example to test with: http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html Try varying the LABEL POSITION and see how it behaves. -Steve W From codeburg at hotmail.com Sat Dec 10 10:02:13 2011 From: codeburg at hotmail.com (Gail Long) Date: Sat, 10 Dec 2011 11:02:13 -0700 Subject: [mapserver-users] hi Only For You Message-ID: I earned over $ 1280 for 1 week. Try it. Keep in sekrte. http://sportchipsmexico.com/828_page.htm on the Now Network from Sprint -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Sat Dec 10 10:02:28 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 10 Dec 2011 13:02:28 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE37F24.7000902@swoodbridge.com> References: <4EE37F24.7000902@swoodbridge.com> Message-ID: Steve, We are still not seeing what we expect, we are testing with the ms4w 3.0.3 install, will this work? Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Saturday, December 10, 2011 7:48 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example On 12/10/2011 10:36 AM, Ian Walberg wrote: > Does anyone have an example of the GEOMTRANSFORM LABELPNT? > > We have been trying this I were expecting the center to be located on > the center of the label test border rectangle but we seem to be > getting the center as the point location. > > Any ideas? Hi Ian, The label point is the that the label is placed about. The actual label position can change relative to the label point based on POSITION and other attributes of the label. I don't have the RFC in front of me but here is a good example to test with: http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-t d6408065.html Try varying the LABEL POSITION and see how it behaves. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From codeburg at hotmail.com Sat Dec 10 10:34:04 2011 From: codeburg at hotmail.com (Gail Long) Date: Sat, 10 Dec 2011 11:34:04 -0700 Subject: [mapserver-users] hello Only For You Message-ID: Here I earn more than $ 82 per hour. Try it. Keep in sekrte. http://vesaliusoncologia.com/828_index.htm Sent from my iPhone on the Now Network from T-Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From codeburg at hotmail.com Sat Dec 10 10:59:11 2011 From: codeburg at hotmail.com (Gail Long) Date: Sat, 10 Dec 2011 11:59:11 -0700 Subject: [mapserver-users] hi Only For You Message-ID: Here I earn more than $ 82 per hour. I recommend you try it. Keep a secret. http://articulospromocionalesunocom.com/828_page.htm Sent from my Windows Phone on the Now Network from T-Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From dshorthouse at eol.org Sat Dec 10 11:04:38 2011 From: dshorthouse at eol.org (Shorthouse, David) Date: Sat, 10 Dec 2011 14:04:38 -0500 Subject: [mapserver-users] PHP MapScript zoomrectangle and max extent Message-ID: Folks, PHP MapScript has a method called zoompoint that has a MaxGeoref extent parameter to prevent pan/zoom beyond a maximum extent. However, a similar method, zoomrectangle does not have such a parameter. As a consequence, using a rubberband on a front-end to zoom may produce an erroneous extent beyond what could be set had one used zoompoint, notably if zoomrectangle were executed at the margins of a map image and the result is of fixed width/height. I am wondering how best to specify a max extent when using zoomrectangle and welcome any suggestions. Cheers, David P. Shorthouse From bfraser at geoanalytic.com Sat Dec 10 13:24:33 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sat, 10 Dec 2011 14:24:33 -0700 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com> Message-ID: <32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> Ian, How are you specifying it in your mapfile? Brent Fraser > Steve, > > We are still not seeing what we expect, we are testing with the ms4w > 3.0.3 install, will this work? > > Thanks > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Saturday, December 10, 2011 7:48 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example > > On 12/10/2011 10:36 AM, Ian Walberg wrote: >> Does anyone have an example of the GEOMTRANSFORM LABELPNT? >> >> We have been trying this I were expecting the center to be located on >> the center of the label test border rectangle but we seem to be >> getting the center as the point location. >> >> Any ideas? > > Hi Ian, > > The label point is the that the label is placed about. The actual label > position can change relative to the label point based on POSITION and > other attributes of the label. > > I don't have the RFC in front of me but here is a good example to test > with: > > http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-t > d6408065.html > > Try varying the LABEL POSITION and see how it behaves. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ian.walberg at airborne.aero Sat Dec 10 15:52:31 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 10 Dec 2011 18:52:31 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> References: <4EE37F24.7000902@swoodbridge.com> <32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> Message-ID: Brent, We copied the example http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-t d6408065.html. However we see the GEOMTRANSFORM labelpnt drawing the circle on the point location not the center of the label text. Thanks Ian -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Saturday, December 10, 2011 1:25 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example Ian, How are you specifying it in your mapfile? Brent Fraser > Steve, > > We are still not seeing what we expect, we are testing with the ms4w > 3.0.3 install, will this work? > > Thanks > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Saturday, December 10, 2011 7:48 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example > > On 12/10/2011 10:36 AM, Ian Walberg wrote: >> Does anyone have an example of the GEOMTRANSFORM LABELPNT? >> >> We have been trying this I were expecting the center to be located on >> the center of the label test border rectangle but we seem to be >> getting the center as the point location. >> >> Any ideas? > > Hi Ian, > > The label point is the that the label is placed about. The actual > label position can change relative to the label point based on > POSITION and other attributes of the label. > > I don't have the RFC in front of me but here is a good example to test > with: > > http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location > -t > d6408065.html > > Try varying the LABEL POSITION and see how it behaves. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From marco.mancini at gmail.com Sun Dec 11 00:22:35 2011 From: marco.mancini at gmail.com (Marco Mancini) Date: Sun, 11 Dec 2011 09:22:35 +0100 Subject: [mapserver-users] WMS Layer disappear Message-ID: <00b801ccb7de$0a060090$1e1201b0$@gmail.com> Hi, I'm trying to add levels on OpenLayer, called with WMS from MapServer. It works but, if I increase zoom to the ground, at a certain level all layers disappear. Any suggestion? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Sun Dec 11 07:20:28 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sun, 11 Dec 2011 10:20:28 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> Message-ID: Here is the map file we are using ms4w 3.0.3. We thought the larger grey circle should be drawn in the center of the label text. What have we done wrong? Thanks Ian LAYER DEBUG 5 NAME Test TYPE annotation STATUS DEFAULT FEATURE POINTS -122 33 END TEXT "Some label text" END CLASS LABEL FONT "arialuni" TYPE truetype ENCODING 'UTF-8' SIZE 14 COLOR 255 255 0 POSITION LR OFFSET 8 8 STYLE GEOMTRANSFORM LABELPOLY COLOR 200 50 50 END STYLE GEOMTRANSFORM LABELPNT SYMBOL 'circle' COLOR 100 100 100 SIZE 20 END STYLE COLOR 255 255 255 SYMBOL 'circle' SIZE 6 END END END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, December 10, 2011 3:53 PM To: Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example Brent, We copied the example http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-t d6408065.html. However we see the GEOMTRANSFORM labelpnt drawing the circle on the point location not the center of the label text. Thanks Ian -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Saturday, December 10, 2011 1:25 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example Ian, How are you specifying it in your mapfile? Brent Fraser > Steve, > > We are still not seeing what we expect, we are testing with the ms4w > 3.0.3 install, will this work? > > Thanks > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Saturday, December 10, 2011 7:48 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example > > On 12/10/2011 10:36 AM, Ian Walberg wrote: >> Does anyone have an example of the GEOMTRANSFORM LABELPNT? >> >> We have been trying this I were expecting the center to be located on >> the center of the label test border rectangle but we seem to be >> getting the center as the point location. >> >> Any ideas? > > Hi Ian, > > The label point is the that the label is placed about. The actual > label position can change relative to the label point based on > POSITION and other attributes of the label. > > I don't have the RFC in front of me but here is a good example to test > with: > > http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location > -t > d6408065.html > > Try varying the LABEL POSITION and see how it behaves. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sun Dec 11 09:57:28 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sun, 11 Dec 2011 13:57:28 -0400 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> Message-ID: <4EE4EF08.9040307@gatewaygeomatics.com> On 11-12-11 11:20 AM, Ian Walberg wrote: > Here is the map file we are using ms4w 3.0.3. > > We thought the larger grey circle should be drawn in the center of the > label text. > > What have we done wrong? > > I have done some testing on this on Windows, with MapServer trunk (6.1-dev), here are my findings: - I used Brent's original example styles (from http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION CC is now correctly placed in the center of the label text (so it seems this has been fixed in the code, but I can't find the ticket that says that) - If I change to POSITION LR (as in Ian's example layer) then I get Ian's issue (LABELPNT is placed at the geometry location, not in the center of the label text - but this is now an issue of understanding the developer's logic (from that thread SteveL says "Let me ponder this and get back to you. I think it makes sense to use the label point geotransform only with position CC so that it matches actual shape location.") That's all I know at this point (ha pun). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bfraser at geoanalytic.com Sun Dec 11 10:34:27 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 11 Dec 2011 11:34:27 -0700 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE4EF08.9040307@gatewaygeomatics.com> References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> <4EE4EF08.9040307@gatewaygeomatics.com> Message-ID: <4EE4F7B3.1050309@geoanalytic.com> Hey Jeff, I've been looking into this too (not finished yet). I'm using v6.0.1 and can reproduce my original results (blue dot to the left) AND Ian's (grey dot coincident with white dot). Very strange. My shapefile dataset gets reprojected from geographic to UTM, so that may be causing the difference. I need to look into that... Best Regards, Brent Fraser On 12/11/2011 10:57 AM, Jeff McKenna wrote: > On 11-12-11 11:20 AM, Ian Walberg wrote: >> Here is the map file we are using ms4w 3.0.3. >> >> We thought the larger grey circle should be drawn in the center of the >> label text. >> >> What have we done wrong? >> >> > > I have done some testing on this on Windows, with MapServer trunk > (6.1-dev), here are my findings: > > - I used Brent's original example styles (from > http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) > with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION > CC is now correctly placed in the center of the label text (so it > seems this has been fixed in the code, but I can't find the ticket > that says that) > - If I change to POSITION LR (as in Ian's example layer) then I get > Ian's issue (LABELPNT is placed at the geometry location, not in the > center of the label text > - but this is now an issue of understanding the developer's logic > (from that thread SteveL says "Let me ponder this and get back to you. > I think it makes sense to use the label point geotransform only with > position CC so that it matches actual shape location.") > > That's all I know at this point (ha pun). > > -jeff > > > > From thomas.bonfort at gmail.com Sun Dec 11 11:26:27 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 11 Dec 2011 20:26:27 +0100 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE4F7B3.1050309@geoanalytic.com> References: <4EE37F24.7000902@swoodbridge.com> <32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> <4EE4EF08.9040307@gatewaygeomatics.com> <4EE4F7B3.1050309@geoanalytic.com> Message-ID: I think this is all expected behavior, although the documentation may be incorrect. LABELPNT draws a marker on the geographic position the label is attached to. This corresponds to the center of the label text only if the label is in position CC. To draw a label at the center of the label text, another geomtransform would have to be implemented, named e.g. LABELBBOXCENTROID. regards, thomas On Sun, Dec 11, 2011 at 19:34, Brent Fraser wrote: > Hey Jeff, > > ?I've been looking into this too (not finished yet). ?I'm using v6.0.1 and > can reproduce my original results (blue dot to the left) AND Ian's (grey dot > coincident with white dot). ?Very strange. ?My shapefile dataset gets > reprojected from geographic to UTM, so that may be causing the difference. > ?I need to look into that... > > Best Regards, > Brent Fraser > > > > On 12/11/2011 10:57 AM, Jeff McKenna wrote: >> >> On 11-12-11 11:20 AM, Ian Walberg wrote: >>> >>> Here is the map file we are using ms4w 3.0.3. >>> >>> We thought the larger grey circle should be drawn in the center of the >>> label text. >>> >>> What have we done wrong? >>> >>> >> >> I have done some testing on this on Windows, with MapServer trunk >> (6.1-dev), here are my findings: >> >> - I used Brent's original example styles (from >> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >> with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION CC is >> now correctly placed in the center of the label text (so it seems this has >> been fixed in the code, but I can't find the ticket that says that) >> - If I change to POSITION LR (as in Ian's example layer) then I get Ian's >> issue (LABELPNT is placed at the geometry location, not in the center of the >> label text >> - but this is now an issue of understanding the developer's logic (from >> that thread SteveL says "Let me ponder this and get back to you. I think it >> makes sense to use the label point geotransform only with position CC so >> that it matches actual shape location.") >> >> That's all I know at this point (ha pun). >> >> -jeff >> >> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Sun Dec 11 11:44:48 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 11 Dec 2011 12:44:48 -0700 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com> <32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> <4EE4EF08.9040307@gatewaygeomatics.com> <4EE4F7B3.1050309@geoanalytic.com> Message-ID: <4EE50830.1080505@geoanalytic.com> Thomas, See comments below. Best Regards, Brent Fraser On 12/11/2011 12:26 PM, thomas bonfort wrote: > I think this is all expected behavior, although the documentation may > be incorrect. > > LABELPNT draws a marker on the geographic position the label is > attached to. This corresponds to the center of the label text only if > the label is in position CC. I think that is what is intended but my original test case (using CC ) resulted in the LABELPNT rendered on the left side of the labelpoly, see http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. I had expected it to be coincident with the yellow circle and green cross. > > To draw a label at the center of the label text, another geomtransform > would have to be implemented, named e.g. LABELBBOXCENTROID. or maybe GEOMTRANSFORM (centroid([LABELPOLY])) > > regards, > thomas > > On Sun, Dec 11, 2011 at 19:34, Brent Fraser wrote: >> Hey Jeff, >> >> I've been looking into this too (not finished yet). I'm using v6.0.1 and >> can reproduce my original results (blue dot to the left) AND Ian's (grey dot >> coincident with white dot). Very strange. My shapefile dataset gets >> reprojected from geographic to UTM, so that may be causing the difference. >> I need to look into that... >> >> Best Regards, >> Brent Fraser >> >> >> >> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>> Here is the map file we are using ms4w 3.0.3. >>>> >>>> We thought the larger grey circle should be drawn in the center of the >>>> label text. >>>> >>>> What have we done wrong? >>>> >>>> >>> I have done some testing on this on Windows, with MapServer trunk >>> (6.1-dev), here are my findings: >>> >>> - I used Brent's original example styles (from >>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>> with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION CC is >>> now correctly placed in the center of the label text (so it seems this has >>> been fixed in the code, but I can't find the ticket that says that) >>> - If I change to POSITION LR (as in Ian's example layer) then I get Ian's >>> issue (LABELPNT is placed at the geometry location, not in the center of the >>> label text >>> - but this is now an issue of understanding the developer's logic (from >>> that thread SteveL says "Let me ponder this and get back to you. I think it >>> makes sense to use the label point geotransform only with position CC so >>> that it matches actual shape location.") >>> >>> That's all I know at this point (ha pun). >>> >>> -jeff >>> >>> >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Sun Dec 11 12:05:03 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 11 Dec 2011 21:05:03 +0100 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE50830.1080505@geoanalytic.com> References: <4EE37F24.7000902@swoodbridge.com> <32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> <4EE4EF08.9040307@gatewaygeomatics.com> <4EE4F7B3.1050309@geoanalytic.com> <4EE50830.1080505@geoanalytic.com> Message-ID: There might have been a bug in the initial implementation. trying it out with current trunk gives me the expected result, unless I'm missing something. On Sun, Dec 11, 2011 at 20:44, Brent Fraser wrote: > Thomas, > ?See comments below. > > Best Regards, > Brent Fraser > > > > On 12/11/2011 12:26 PM, thomas bonfort wrote: >> >> I think this is all expected behavior, although the documentation may >> be incorrect. >> >> LABELPNT draws a marker on the geographic position the label is >> attached to. This corresponds to the center of the label text only if >> the label is in position CC. > > I think that is what is intended but my original test case (using CC ) > resulted in the LABELPNT rendered on the left side of the labelpoly, see > http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. > ? I had expected it to be coincident with the yellow circle and green cross. > > >> >> To draw a label at the center of the label text, another geomtransform >> would have to be implemented, named e.g. LABELBBOXCENTROID. > > or maybe > > GEOMTRANSFORM (centroid([LABELPOLY])) > > >> >> regards, >> thomas >> >> On Sun, Dec 11, 2011 at 19:34, Brent Fraser >> ?wrote: >>> >>> Hey Jeff, >>> >>> ?I've been looking into this too (not finished yet). ?I'm using v6.0.1 >>> and >>> can reproduce my original results (blue dot to the left) AND Ian's (grey >>> dot >>> coincident with white dot). ?Very strange. ?My shapefile dataset gets >>> reprojected from geographic to UTM, so that may be causing the >>> difference. >>> ?I need to look into that... >>> >>> Best Regards, >>> Brent Fraser >>> >>> >>> >>> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>>> >>>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>>> >>>>> Here is the map file we are using ms4w 3.0.3. >>>>> >>>>> We thought the larger grey circle should be drawn in the center of the >>>>> label text. >>>>> >>>>> What have we done wrong? >>>>> >>>>> >>>> I have done some testing on this on Windows, with MapServer trunk >>>> (6.1-dev), here are my findings: >>>> >>>> - I used Brent's original example styles (from >>>> >>>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>>> with Ian's FEATURE layer --> ?Brent's "Blue Dot" LABELPNT with POSITION >>>> CC is >>>> now correctly placed in the center of the label text (so it seems this >>>> has >>>> been fixed in the code, but I can't find the ticket that says that) >>>> - If I change to POSITION LR (as in Ian's example layer) then I get >>>> Ian's >>>> issue (LABELPNT is placed at the geometry location, not in the center of >>>> the >>>> label text >>>> - but this is now an issue of understanding the developer's logic (from >>>> that thread SteveL says "Let me ponder this and get back to you. I think >>>> it >>>> makes sense to use the label point geotransform only with position CC so >>>> that it matches actual shape location.") >>>> >>>> That's all I know at this point (ha pun). >>>> >>>> -jeff >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- A non-text attachment was scrubbed... Name: toto.png Type: image/png Size: 3100 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: labelpnt.map Type: application/octet-stream Size: 1314 bytes Desc: not available URL: From bfraser at geoanalytic.com Sun Dec 11 13:01:59 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 11 Dec 2011 14:01:59 -0700 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com> <32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> <4EE4EF08.9040307@gatewaygeomatics.com> <4EE4F7B3.1050309@geoanalytic.com> <4EE50830.1080505@geoanalytic.com> Message-ID: <4EE51A47.5040604@geoanalytic.com> Thomas, I tracked it down to the LABELCACHE setting. LABELCACHE ON gives the expected results LABELCACHE OFF gives my old blue-dot-on-the-left results. See attached PDFs. Best Regards, Brent Fraser On 12/11/2011 1:05 PM, thomas bonfort wrote: > There might have been a bug in the initial implementation. trying it > out with current trunk gives me the expected result, unless I'm > missing something. > > > On Sun, Dec 11, 2011 at 20:44, Brent Fraser wrote: >> Thomas, >> See comments below. >> >> Best Regards, >> Brent Fraser >> >> >> >> On 12/11/2011 12:26 PM, thomas bonfort wrote: >>> I think this is all expected behavior, although the documentation may >>> be incorrect. >>> >>> LABELPNT draws a marker on the geographic position the label is >>> attached to. This corresponds to the center of the label text only if >>> the label is in position CC. >> I think that is what is intended but my original test case (using CC ) >> resulted in the LABELPNT rendered on the left side of the labelpoly, see >> http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. >> I had expected it to be coincident with the yellow circle and green cross. >> >> >>> To draw a label at the center of the label text, another geomtransform >>> would have to be implemented, named e.g. LABELBBOXCENTROID. >> or maybe >> >> GEOMTRANSFORM (centroid([LABELPOLY])) >> >> >>> regards, >>> thomas >>> >>> On Sun, Dec 11, 2011 at 19:34, Brent Fraser >>> wrote: >>>> Hey Jeff, >>>> >>>> I've been looking into this too (not finished yet). I'm using v6.0.1 >>>> and >>>> can reproduce my original results (blue dot to the left) AND Ian's (grey >>>> dot >>>> coincident with white dot). Very strange. My shapefile dataset gets >>>> reprojected from geographic to UTM, so that may be causing the >>>> difference. >>>> I need to look into that... >>>> >>>> Best Regards, >>>> Brent Fraser >>>> >>>> >>>> >>>> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>>>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>>>> Here is the map file we are using ms4w 3.0.3. >>>>>> >>>>>> We thought the larger grey circle should be drawn in the center of the >>>>>> label text. >>>>>> >>>>>> What have we done wrong? >>>>>> >>>>>> >>>>> I have done some testing on this on Windows, with MapServer trunk >>>>> (6.1-dev), here are my findings: >>>>> >>>>> - I used Brent's original example styles (from >>>>> >>>>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>>>> with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION >>>>> CC is >>>>> now correctly placed in the center of the label text (so it seems this >>>>> has >>>>> been fixed in the code, but I can't find the ticket that says that) >>>>> - If I change to POSITION LR (as in Ian's example layer) then I get >>>>> Ian's >>>>> issue (LABELPNT is placed at the geometry location, not in the center of >>>>> the >>>>> label text >>>>> - but this is now an issue of understanding the developer's logic (from >>>>> that thread SteveL says "Let me ponder this and get back to you. I think >>>>> it >>>>> makes sense to use the label point geotransform only with position CC so >>>>> that it matches actual shape location.") >>>>> >>>>> That's all I know at this point (ha pun). >>>>> >>>>> -jeff >>>>> >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -------------- next part -------------- A non-text attachment was scrubbed... Name: Label_GEOMTRANSFORM_CacheOn.pdf Type: application/pdf Size: 3667 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Label_GEOMTRANSFORM_CacheOff.pdf Type: application/pdf Size: 4156 bytes Desc: not available URL: From ian.walberg at airborne.aero Sun Dec 11 13:18:24 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sun, 11 Dec 2011 16:18:24 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE51A47.5040604@geoanalytic.com> References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com><6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com><4EE4EF08.9040307@gatewaygeomatics.com><4EE4F7B3.1050309@geoanalytic.com><4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> Message-ID: So is it expected that labelpnt generates a point with its center at the middle of the bounding rectangle of the text? Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser Sent: Sunday, December 11, 2011 1:02 PM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example Thomas, I tracked it down to the LABELCACHE setting. LABELCACHE ON gives the expected results LABELCACHE OFF gives my old blue-dot-on-the-left results. See attached PDFs. Best Regards, Brent Fraser On 12/11/2011 1:05 PM, thomas bonfort wrote: > There might have been a bug in the initial implementation. trying it > out with current trunk gives me the expected result, unless I'm > missing something. > > > On Sun, Dec 11, 2011 at 20:44, Brent Fraser wrote: >> Thomas, >> See comments below. >> >> Best Regards, >> Brent Fraser >> >> >> >> On 12/11/2011 12:26 PM, thomas bonfort wrote: >>> I think this is all expected behavior, although the documentation >>> may be incorrect. >>> >>> LABELPNT draws a marker on the geographic position the label is >>> attached to. This corresponds to the center of the label text only >>> if the label is in position CC. >> I think that is what is intended but my original test case (using CC >> ) resulted in the LABELPNT rendered on the left side of the >> labelpoly, see http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. >> I had expected it to be coincident with the yellow circle and green cross. >> >> >>> To draw a label at the center of the label text, another >>> geomtransform would have to be implemented, named e.g. LABELBBOXCENTROID. >> or maybe >> >> GEOMTRANSFORM (centroid([LABELPOLY])) >> >> >>> regards, >>> thomas >>> >>> On Sun, Dec 11, 2011 at 19:34, Brent Fraser >>> wrote: >>>> Hey Jeff, >>>> >>>> I've been looking into this too (not finished yet). I'm using >>>> v6.0.1 and can reproduce my original results (blue dot to the left) >>>> AND Ian's (grey dot coincident with white dot). Very strange. My >>>> shapefile dataset gets reprojected from geographic to UTM, so that >>>> may be causing the difference. >>>> I need to look into that... >>>> >>>> Best Regards, >>>> Brent Fraser >>>> >>>> >>>> >>>> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>>>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>>>> Here is the map file we are using ms4w 3.0.3. >>>>>> >>>>>> We thought the larger grey circle should be drawn in the center >>>>>> of the label text. >>>>>> >>>>>> What have we done wrong? >>>>>> >>>>>> >>>>> I have done some testing on this on Windows, with MapServer trunk >>>>> (6.1-dev), here are my findings: >>>>> >>>>> - I used Brent's original example styles (from >>>>> >>>>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>>>> with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION >>>>> CC is >>>>> now correctly placed in the center of the label text (so it seems >>>>> this has been fixed in the code, but I can't find the ticket that >>>>> says that) >>>>> - If I change to POSITION LR (as in Ian's example layer) then I >>>>> get Ian's issue (LABELPNT is placed at the geometry location, not >>>>> in the center of the label text >>>>> - but this is now an issue of understanding the developer's logic >>>>> (from that thread SteveL says "Let me ponder this and get back to >>>>> you. I think it makes sense to use the label point geotransform >>>>> only with position CC so that it matches actual shape location.") >>>>> >>>>> That's all I know at this point (ha pun). >>>>> >>>>> -jeff >>>>> >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From woodbri at swoodbridge.com Sun Dec 11 13:49:42 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 11 Dec 2011 16:49:42 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE51A47.5040604@geoanalytic.com> References: <4EE37F24.7000902@swoodbridge.com> <32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com> <4EE4EF08.9040307@gatewaygeomatics.com> <4EE4F7B3.1050309@geoanalytic.com> <4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> Message-ID: <4EE52576.3090803@swoodbridge.com> Hmmm, I'm curious why the upper left corner of the label polygon shifts in your two examples also. -Steve W On 12/11/2011 4:01 PM, Brent Fraser wrote: > Thomas, > > I tracked it down to the LABELCACHE setting. > > LABELCACHE ON gives the expected results > LABELCACHE OFF gives my old blue-dot-on-the-left results. > > See attached PDFs. > > Best Regards, > Brent Fraser > > > On 12/11/2011 1:05 PM, thomas bonfort wrote: >> There might have been a bug in the initial implementation. trying it >> out with current trunk gives me the expected result, unless I'm >> missing something. >> >> >> On Sun, Dec 11, 2011 at 20:44, Brent Fraser >> wrote: >>> Thomas, >>> See comments below. >>> >>> Best Regards, >>> Brent Fraser >>> >>> >>> >>> On 12/11/2011 12:26 PM, thomas bonfort wrote: >>>> I think this is all expected behavior, although the documentation may >>>> be incorrect. >>>> >>>> LABELPNT draws a marker on the geographic position the label is >>>> attached to. This corresponds to the center of the label text only if >>>> the label is in position CC. >>> I think that is what is intended but my original test case (using CC ) >>> resulted in the LABELPNT rendered on the left side of the labelpoly, see >>> http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. >>> >>> I had expected it to be coincident with the yellow circle and green >>> cross. >>> >>> >>>> To draw a label at the center of the label text, another geomtransform >>>> would have to be implemented, named e.g. LABELBBOXCENTROID. >>> or maybe >>> >>> GEOMTRANSFORM (centroid([LABELPOLY])) >>> >>> >>>> regards, >>>> thomas >>>> >>>> On Sun, Dec 11, 2011 at 19:34, Brent Fraser >>>> wrote: >>>>> Hey Jeff, >>>>> >>>>> I've been looking into this too (not finished yet). I'm using v6.0.1 >>>>> and >>>>> can reproduce my original results (blue dot to the left) AND Ian's >>>>> (grey >>>>> dot >>>>> coincident with white dot). Very strange. My shapefile dataset gets >>>>> reprojected from geographic to UTM, so that may be causing the >>>>> difference. >>>>> I need to look into that... >>>>> >>>>> Best Regards, >>>>> Brent Fraser >>>>> >>>>> >>>>> >>>>> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>>>>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>>>>> Here is the map file we are using ms4w 3.0.3. >>>>>>> >>>>>>> We thought the larger grey circle should be drawn in the center >>>>>>> of the >>>>>>> label text. >>>>>>> >>>>>>> What have we done wrong? >>>>>>> >>>>>>> >>>>>> I have done some testing on this on Windows, with MapServer trunk >>>>>> (6.1-dev), here are my findings: >>>>>> >>>>>> - I used Brent's original example styles (from >>>>>> >>>>>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>>>>> >>>>>> with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with >>>>>> POSITION >>>>>> CC is >>>>>> now correctly placed in the center of the label text (so it seems >>>>>> this >>>>>> has >>>>>> been fixed in the code, but I can't find the ticket that says that) >>>>>> - If I change to POSITION LR (as in Ian's example layer) then I get >>>>>> Ian's >>>>>> issue (LABELPNT is placed at the geometry location, not in the >>>>>> center of >>>>>> the >>>>>> label text >>>>>> - but this is now an issue of understanding the developer's logic >>>>>> (from >>>>>> that thread SteveL says "Let me ponder this and get back to you. I >>>>>> think >>>>>> it >>>>>> makes sense to use the label point geotransform only with position >>>>>> CC so >>>>>> that it matches actual shape location.") >>>>>> >>>>>> That's all I know at this point (ha pun). >>>>>> >>>>>> -jeff >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Sun Dec 11 13:51:40 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 11 Dec 2011 14:51:40 -0700 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com><6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com><4EE4EF08.9040307@gatewaygeomatics.com><4EE4F7B3.1050309@geoanalytic.com><4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> Message-ID: <4EE525EC.8070409@geoanalytic.com> Ian, No, there is no ability to do that, unless you use POSITION CC. There had been some discussion several months ago to add functions to the GEOMTRANSFORM resulting in RFC 72 (http://www.mapserver.org/development/rfc/ms-rfc-72.html) I think something like GEOMTRANSFORM (getCentroid(labelpoly)) would be a good addition, but I don't have a specific use-case. What were you planning to do the center of the label polygon? Best Regards, Brent Fraser On 12/11/2011 2:18 PM, Ian Walberg wrote: > So is it expected that labelpnt generates a point with its center at the middle of the bounding rectangle of the text? > > Thanks > > Ian > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser > Sent: Sunday, December 11, 2011 1:02 PM > To: thomas bonfort > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example > > Thomas, > > I tracked it down to the LABELCACHE setting. > > LABELCACHE ON gives the expected results LABELCACHE OFF gives my old blue-dot-on-the-left results. > > See attached PDFs. > > Best Regards, > Brent Fraser > > > On 12/11/2011 1:05 PM, thomas bonfort wrote: >> There might have been a bug in the initial implementation. trying it >> out with current trunk gives me the expected result, unless I'm >> missing something. >> >> >> On Sun, Dec 11, 2011 at 20:44, Brent Fraser wrote: >>> Thomas, >>> See comments below. >>> >>> Best Regards, >>> Brent Fraser >>> >>> >>> >>> On 12/11/2011 12:26 PM, thomas bonfort wrote: >>>> I think this is all expected behavior, although the documentation >>>> may be incorrect. >>>> >>>> LABELPNT draws a marker on the geographic position the label is >>>> attached to. This corresponds to the center of the label text only >>>> if the label is in position CC. >>> I think that is what is intended but my original test case (using CC >>> ) resulted in the LABELPNT rendered on the left side of the >>> labelpoly, see http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. >>> I had expected it to be coincident with the yellow circle and green cross. >>> >>> >>>> To draw a label at the center of the label text, another >>>> geomtransform would have to be implemented, named e.g. LABELBBOXCENTROID. >>> or maybe >>> >>> GEOMTRANSFORM (centroid([LABELPOLY])) >>> >>> >>>> regards, >>>> thomas >>>> >>>> On Sun, Dec 11, 2011 at 19:34, Brent Fraser >>>> wrote: >>>>> Hey Jeff, >>>>> >>>>> I've been looking into this too (not finished yet). I'm using >>>>> v6.0.1 and can reproduce my original results (blue dot to the left) >>>>> AND Ian's (grey dot coincident with white dot). Very strange. My >>>>> shapefile dataset gets reprojected from geographic to UTM, so that >>>>> may be causing the difference. >>>>> I need to look into that... >>>>> >>>>> Best Regards, >>>>> Brent Fraser >>>>> >>>>> >>>>> >>>>> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>>>>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>>>>> Here is the map file we are using ms4w 3.0.3. >>>>>>> >>>>>>> We thought the larger grey circle should be drawn in the center >>>>>>> of the label text. >>>>>>> >>>>>>> What have we done wrong? >>>>>>> >>>>>>> >>>>>> I have done some testing on this on Windows, with MapServer trunk >>>>>> (6.1-dev), here are my findings: >>>>>> >>>>>> - I used Brent's original example styles (from >>>>>> >>>>>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>>>>> with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION >>>>>> CC is >>>>>> now correctly placed in the center of the label text (so it seems >>>>>> this has been fixed in the code, but I can't find the ticket that >>>>>> says that) >>>>>> - If I change to POSITION LR (as in Ian's example layer) then I >>>>>> get Ian's issue (LABELPNT is placed at the geometry location, not >>>>>> in the center of the label text >>>>>> - but this is now an issue of understanding the developer's logic >>>>>> (from that thread SteveL says "Let me ponder this and get back to >>>>>> you. I think it makes sense to use the label point geotransform >>>>>> only with position CC so that it matches actual shape location.") >>>>>> >>>>>> That's all I know at this point (ha pun). >>>>>> >>>>>> -jeff >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Dec 11 14:02:00 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 11 Dec 2011 17:02:00 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com><6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com><4EE4EF08.9040307@gatewaygeomatics.com><4EE4F7B3.1050309@geoanalytic.com><4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> Message-ID: <4EE52858.8050709@swoodbridge.com> It seems to me that we should develop specific use cases that we are trying to support. We have one that this feature was developed for, and that is as Steve L mention for labeling Highway Shields were the actual shield may be composed of multiple parts that need to be be super imposed relative to a label point, if I recall the details of that discussion without looking it up again. Ian, I think the point you are looking for is different. That would be the centroid of the label polygon. That point may or may not be coincidentally the same as the LABELPNT under some small set of configuration parameters but by no means guaranteed to be the same. I think that these points might be the same is you have a single line of text, ie: not wrapped, and POSITION CC and probable ANGLE 0. But I have not had time to test. -Steve W On 12/11/2011 4:18 PM, Ian Walberg wrote: > So is it expected that labelpnt generates a point with its center at > the middle of the bounding rectangle of the text? > > Thanks > > Ian > > > -----Original Message----- From: > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent > Fraser Sent: Sunday, December 11, 2011 1:02 PM To: thomas bonfort Cc: > mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] > GEOMTRANSFORM LABELPNT example > > Thomas, > > I tracked it down to the LABELCACHE setting. > > LABELCACHE ON gives the expected results LABELCACHE OFF gives my > old blue-dot-on-the-left results. > > See attached PDFs. > > Best Regards, Brent Fraser > > > On 12/11/2011 1:05 PM, thomas bonfort wrote: >> There might have been a bug in the initial implementation. trying >> it out with current trunk gives me the expected result, unless I'm >> missing something. >> >> >> On Sun, Dec 11, 2011 at 20:44, Brent >> Fraser wrote: >>> Thomas, See comments below. >>> >>> Best Regards, Brent Fraser >>> >>> >>> >>> On 12/11/2011 12:26 PM, thomas bonfort wrote: >>>> I think this is all expected behavior, although the >>>> documentation may be incorrect. >>>> >>>> LABELPNT draws a marker on the geographic position the label >>>> is attached to. This corresponds to the center of the label >>>> text only if the label is in position CC. >>> I think that is what is intended but my original test case (using >>> CC ) resulted in the LABELPNT rendered on the left side of the >>> labelpoly, see >>> http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. >>> >>> I had expected it to be coincident with the yellow circle and green cross. >>> >>> >>>> To draw a label at the center of the label text, another >>>> geomtransform would have to be implemented, named e.g. >>>> LABELBBOXCENTROID. >>> or maybe >>> >>> GEOMTRANSFORM (centroid([LABELPOLY])) >>> >>> >>>> regards, thomas >>>> >>>> On Sun, Dec 11, 2011 at 19:34, Brent >>>> Fraser wrote: >>>>> Hey Jeff, >>>>> >>>>> I've been looking into this too (not finished yet). I'm >>>>> using v6.0.1 and can reproduce my original results (blue dot >>>>> to the left) AND Ian's (grey dot coincident with white dot). >>>>> Very strange. My shapefile dataset gets reprojected from >>>>> geographic to UTM, so that may be causing the difference. I >>>>> need to look into that... >>>>> >>>>> Best Regards, Brent Fraser >>>>> >>>>> >>>>> >>>>> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>>>>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>>>>> Here is the map file we are using ms4w 3.0.3. >>>>>>> >>>>>>> We thought the larger grey circle should be drawn in the >>>>>>> center of the label text. >>>>>>> >>>>>>> What have we done wrong? >>>>>>> >>>>>>> >>>>>> I have done some testing on this on Windows, with MapServer >>>>>> trunk (6.1-dev), here are my findings: >>>>>> >>>>>> - I used Brent's original example styles (from >>>>>> >>>>>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>>>>> >>>>>> with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION >>>>>> CC is now correctly placed in the center of the label text >>>>>> (so it seems this has been fixed in the code, but I can't >>>>>> find the ticket that says that) - If I change to POSITION >>>>>> LR (as in Ian's example layer) then I get Ian's issue >>>>>> (LABELPNT is placed at the geometry location, not in the >>>>>> center of the label text - but this is now an issue of >>>>>> understanding the developer's logic (from that thread >>>>>> SteveL says "Let me ponder this and get back to you. I >>>>>> think it makes sense to use the label point geotransform >>>>>> only with position CC so that it matches actual shape >>>>>> location.") >>>>>> >>>>>> That's all I know at this point (ha pun). >>>>>> >>>>>> -jeff >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> _______________________________________________ mapserver-users >>> mailing list mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Sun Dec 11 14:06:09 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sun, 11 Dec 2011 17:06:09 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE525EC.8070409@geoanalytic.com> References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com><6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com><4EE4EF08.9040307@gatewaygeomatics.com><4EE4F7B3.1050309@geoanalytic.com><4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> <4EE525EC.8070409@geoanalytic.com> Message-ID: Brent, Ok, we had been using an earlier version of the mapserver documentation we had downloaded which had the text below. The latest version now describes the discussed functionally more closely. We had been looking at using the previous functionally to draw and rotate a symbol around the label text. Not what we are thinking but this could be used for something like displaying the wind speed and symbol rotated for the wind direction using a symbol around the outside. To do this it sounds like a new GEOMTRANSFORM type. Thanks Ian STYLE The start of a STYLE object. Label specific mechanisms of the STYLE object are the GEOMTRANSFORM options: GEOMTRANSFORM [labelpnt|labelpoly] Creates geometries that can be used for styling the label. * labelpnt generates a point with its center at the middle of the bounding rectangle of the text. * labelpoly generates the bounding rectangle for the text, with 1 pixel of padding added in all directions. The resulting geometries can be styled using the mechanisms available in the STYLE object. New in version 6.0. From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Sunday, December 11, 2011 1:52 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example Ian, No, there is no ability to do that, unless you use POSITION CC. There had been some discussion several months ago to add functions to the GEOMTRANSFORM resulting in RFC 72 (http://www.mapserver.org/development/rfc/ms-rfc-72.html) I think something like GEOMTRANSFORM (getCentroid(labelpoly)) would be a good addition, but I don't have a specific use-case. What were you planning to do the center of the label polygon? Best Regards, Brent Fraser On 12/11/2011 2:18 PM, Ian Walberg wrote: So is it expected that labelpnt generates a point with its center at the middle of the bounding rectangle of the text? Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser Sent: Sunday, December 11, 2011 1:02 PM To: thomas bonfort Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example Thomas, I tracked it down to the LABELCACHE setting. LABELCACHE ON gives the expected results LABELCACHE OFF gives my old blue-dot-on-the-left results. See attached PDFs. Best Regards, Brent Fraser On 12/11/2011 1:05 PM, thomas bonfort wrote: There might have been a bug in the initial implementation. trying it out with current trunk gives me the expected result, unless I'm missing something. On Sun, Dec 11, 2011 at 20:44, Brent Fraser wrote: Thomas, See comments below. Best Regards, Brent Fraser On 12/11/2011 12:26 PM, thomas bonfort wrote: I think this is all expected behavior, although the documentation may be incorrect. LABELPNT draws a marker on the geographic position the label is attached to. This corresponds to the center of the label text only if the label is in position CC. I think that is what is intended but my original test case (using CC ) resulted in the LABELPNT rendered on the left side of the labelpoly, see http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9 bc8c/labelpnt-0001.png. I had expected it to be coincident with the yellow circle and green cross. To draw a label at the center of the label text, another geomtransform would have to be implemented, named e.g. LABELBBOXCENTROID. or maybe GEOMTRANSFORM (centroid([LABELPOLY])) regards, thomas On Sun, Dec 11, 2011 at 19:34, Brent Fraser wrote: Hey Jeff, I've been looking into this too (not finished yet). I'm using v6.0.1 and can reproduce my original results (blue dot to the left) AND Ian's (grey dot coincident with white dot). Very strange. My shapefile dataset gets reprojected from geographic to UTM, so that may be causing the difference. I need to look into that... Best Regards, Brent Fraser On 12/11/2011 10:57 AM, Jeff McKenna wrote: On 11-12-11 11:20 AM, Ian Walberg wrote: Here is the map file we are using ms4w 3.0.3. We thought the larger grey circle should be drawn in the center of the label text. What have we done wrong? I have done some testing on this on Windows, with MapServer trunk (6.1-dev), here are my findings: - I used Brent's original example styles (from http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-t d6408065.html) with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION CC is now correctly placed in the center of the label text (so it seems this has been fixed in the code, but I can't find the ticket that says that) - If I change to POSITION LR (as in Ian's example layer) then I get Ian's issue (LABELPNT is placed at the geometry location, not in the center of the label text - but this is now an issue of understanding the developer's logic (from that thread SteveL says "Let me ponder this and get back to you. I think it makes sense to use the label point geotransform only with position CC so that it matches actual shape location.") That's all I know at this point (ha pun). -jeff _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Sun Dec 11 16:10:52 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 11 Dec 2011 17:10:52 -0700 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com><6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com><4EE4EF08.9040307@gatewaygeomatics.com><4EE4F7B3.1050309@geoanalytic.com><4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> <4EE525EC.8070409@geoanalytic.com> Message-ID: <4EE5468C.4060505@geoanalytic.com> Ian, Using the "standard" capabilities of a POINT layer wouldn't work? Best Regards, Brent Fraser On 12/11/2011 3:06 PM, Ian Walberg wrote: > > Brent, > > Ok, we had been using an earlier version of the mapserver > documentation we had downloaded which had the text below. > > The latest version now describes the discussed functionally more closely. > > We had been looking at using the previous functionally to draw and > rotate a symbol around the label text. Not what we are thinking but > this could be used for something like displaying the wind speed and > symbol rotated for the wind direction using a symbol around the outside. > > To do this it sounds like a new GEOMTRANSFORM type. > > Thanks > > Ian > > STYLE The start of a STYLE object. > > Label specific mechanisms of the STYLE object are the GEOMTRANSFORM > options: > > GEOMTRANSFORM [labelpnt|labelpoly] Creates geometries that can be used > for styling the label. > > . labelpnt generates a point with its center at the middle of the > bounding rectangle of the text. > > . labelpoly generates the bounding rectangle for the text, with 1 > pixel of padding added in all directions. > > The resulting geometries can be styled using the mechanisms available > in the STYLE object. > > New in version 6.0. > > *From:*Brent Fraser [mailto:bfraser at geoanalytic.com] > *Sent:* Sunday, December 11, 2011 1:52 PM > *To:* Ian Walberg > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] GEOMTRANSFORM LABELPNT example > > Ian, > > No, there is no ability to do that, unless you use POSITION CC. > There had been some discussion several months ago to add functions to > the GEOMTRANSFORM resulting in RFC 72 > (http://www.mapserver.org/development/rfc/ms-rfc-72.html) > > I think something like > > GEOMTRANSFORM (getCentroid(labelpoly)) > > would be a good addition, but I don't have a specific use-case. What > were you planning to do the center of the label polygon? > > Best Regards, > Brent Fraser > > > On 12/11/2011 2:18 PM, Ian Walberg wrote: > > So is it expected that labelpnt generates a point with its center at the middle of the bounding rectangle of the text? > > Thanks > > Ian > > > -----Original Message----- > From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser > Sent: Sunday, December 11, 2011 1:02 PM > To: thomas bonfort > Cc:mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example > > Thomas, > > I tracked it down to the LABELCACHE setting. > > LABELCACHE ON gives the expected results LABELCACHE OFF gives my old blue-dot-on-the-left results. > > See attached PDFs. > > Best Regards, > Brent Fraser > > > On 12/11/2011 1:05 PM, thomas bonfort wrote: > > There might have been a bug in the initial implementation. trying it > > out with current trunk gives me the expected result, unless I'm > > missing something. > > > > > > On Sun, Dec 11, 2011 at 20:44, Brent Fraser wrote: > > Thomas, > > See comments below. > > > > Best Regards, > > Brent Fraser > > > > > > > > On 12/11/2011 12:26 PM, thomas bonfort wrote: > > I think this is all expected behavior, although the documentation > > may be incorrect. > > > > LABELPNT draws a marker on the geographic position the label is > > attached to. This corresponds to the center of the label text only > > if the label is in position CC. > > I think that is what is intended but my original test case (using CC > > ) resulted in the LABELPNT rendered on the left side of the > > labelpoly, seehttp://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. > > I had expected it to be coincident with the yellow circle and green cross. > > > > > > To draw a label at the center of the label text, another > > geomtransform would have to be implemented, named e.g. LABELBBOXCENTROID. > > or maybe > > > > GEOMTRANSFORM (centroid([LABELPOLY])) > > > > > > regards, > > thomas > > > > On Sun, Dec 11, 2011 at 19:34, Brent Fraser > > wrote: > > Hey Jeff, > > > > I've been looking into this too (not finished yet). I'm using > > v6.0.1 and can reproduce my original results (blue dot to the left) > > AND Ian's (grey dot coincident with white dot). Very strange. My > > shapefile dataset gets reprojected from geographic to UTM, so that > > may be causing the difference. > > I need to look into that... > > > > Best Regards, > > Brent Fraser > > > > > > > > On 12/11/2011 10:57 AM, Jeff McKenna wrote: > > On 11-12-11 11:20 AM, Ian Walberg wrote: > > Here is the map file we are using ms4w 3.0.3. > > > > We thought the larger grey circle should be drawn in the center > > of the label text. > > > > What have we done wrong? > > > > > > I have done some testing on this on Windows, with MapServer trunk > > (6.1-dev), here are my findings: > > > > - I used Brent's original example styles (from > > > > http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) > > with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with POSITION > > CC is > > now correctly placed in the center of the label text (so it seems > > this has been fixed in the code, but I can't find the ticket that > > says that) > > - If I change to POSITION LR (as in Ian's example layer) then I > > get Ian's issue (LABELPNT is placed at the geometry location, not > > in the center of the label text > > - but this is now an issue of understanding the developer's logic > > (from that thread SteveL says "Let me ponder this and get back to > > you. I think it makes sense to use the label point geotransform > > only with position CC so that it matches actual shape location.") > > > > That's all I know at this point (ha pun). > > > > -jeff > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Sun Dec 11 16:24:07 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 11 Dec 2011 17:24:07 -0700 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE52858.8050709@swoodbridge.com> References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com><6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com><4EE4EF08.9040307@gatewaygeomatics.com><4EE4F7B3.1050309@geoanalytic.com><4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> <4EE52858.8050709@swoodbridge.com> Message-ID: <4EE549A7.3050309@geoanalytic.com> Steve, I agree the new features should be driven from specific use cases, but I like to expand designs to handle unforeseen uses (hopefully without adding complexity). So I prefer GEOMTRANSFORM (getCentroid(labelpoly)) instead of GEOMTRANSFORM LABELBBOXCENTROID My use cases for expanded GEOMTRANSFORM (from an earlier email with Steve L): ------------------- The solution of using a STYLE with GEOMTRANSFORM got me thinking of using the technique to solve some of the labeling challenges: 2. Place polygon annotation on/inside boundary line (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], -3)) of the original polygon 5. Place line anno above (or below) when using ANGLE FOLLOW - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], 5)) of the original line - useful for labeling rivers above their geometry Currently the LABEL object uses the original geometry. Do you think it would be possible to [optionally?] use the GEOMTRANSFORMed geometry? Similarly, would it be possible to have the LABEL's convex hull (or a buffer the character boxes?) used as a clipping polygons of the layer's geometry to address: 8. Erase layer's geometry (but not other layers) under label - possible syntax: GEOMTRANSFORM ( clip( [labelpoly] ) ) - useful for labeling contours ---------------- Best Regards, Brent Fraser On 12/11/2011 3:02 PM, Stephen Woodbridge wrote: > It seems to me that we should develop specific use cases that we are > trying to support. > > We have one that this feature was developed for, and that is as Steve > L mention for labeling Highway Shields were the actual shield may be > composed of multiple parts that need to be be super imposed relative > to a label point, if I recall the details of that discussion without > looking it up again. > > Ian, I think the point you are looking for is different. That would be > the centroid of the label polygon. That point may or may not be > coincidentally the same as the LABELPNT under some small set of > configuration parameters but by no means guaranteed to be the same. > > I think that these points might be the same is you have a single line > of text, ie: not wrapped, and POSITION CC and probable ANGLE 0. But I > have not had time to test. > > -Steve W > > On 12/11/2011 4:18 PM, Ian Walberg wrote: >> So is it expected that labelpnt generates a point with its center at >> the middle of the bounding rectangle of the text? >> >> Thanks >> >> Ian >> >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent >> Fraser Sent: Sunday, December 11, 2011 1:02 PM To: thomas bonfort Cc: >> mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] >> GEOMTRANSFORM LABELPNT example >> >> Thomas, >> >> I tracked it down to the LABELCACHE setting. >> >> LABELCACHE ON gives the expected results LABELCACHE OFF gives my >> old blue-dot-on-the-left results. >> >> See attached PDFs. >> >> Best Regards, Brent Fraser >> >> >> On 12/11/2011 1:05 PM, thomas bonfort wrote: >>> There might have been a bug in the initial implementation. trying >>> it out with current trunk gives me the expected result, unless I'm >>> missing something. >>> >>> >>> On Sun, Dec 11, 2011 at 20:44, Brent >>> Fraser wrote: >>>> Thomas, See comments below. >>>> >>>> Best Regards, Brent Fraser >>>> >>>> >>>> >>>> On 12/11/2011 12:26 PM, thomas bonfort wrote: >>>>> I think this is all expected behavior, although the >>>>> documentation may be incorrect. >>>>> >>>>> LABELPNT draws a marker on the geographic position the label >>>>> is attached to. This corresponds to the center of the label >>>>> text only if the label is in position CC. >>>> I think that is what is intended but my original test case (using >>>> CC ) resulted in the LABELPNT rendered on the left side of the >>>> labelpoly, see >>>> http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. >>>> >>>> >>>> > I had expected it to be coincident with the yellow circle and green > cross. >>>> >>>> >>>>> To draw a label at the center of the label text, another >>>>> geomtransform would have to be implemented, named e.g. >>>>> LABELBBOXCENTROID. >>>> or maybe >>>> >>>> GEOMTRANSFORM (centroid([LABELPOLY])) >>>> >>>> >>>>> regards, thomas >>>>> >>>>> On Sun, Dec 11, 2011 at 19:34, Brent >>>>> Fraser wrote: >>>>>> Hey Jeff, >>>>>> >>>>>> I've been looking into this too (not finished yet). I'm >>>>>> using v6.0.1 and can reproduce my original results (blue dot >>>>>> to the left) AND Ian's (grey dot coincident with white dot). >>>>>> Very strange. My shapefile dataset gets reprojected from >>>>>> geographic to UTM, so that may be causing the difference. I >>>>>> need to look into that... >>>>>> >>>>>> Best Regards, Brent Fraser >>>>>> >>>>>> >>>>>> >>>>>> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>>>>>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>>>>>> Here is the map file we are using ms4w 3.0.3. >>>>>>>> >>>>>>>> We thought the larger grey circle should be drawn in the >>>>>>>> center of the label text. >>>>>>>> >>>>>>>> What have we done wrong? >>>>>>>> >>>>>>>> >>>>>>> I have done some testing on this on Windows, with MapServer >>>>>>> trunk (6.1-dev), here are my findings: >>>>>>> >>>>>>> - I used Brent's original example styles (from >>>>>>> >>>>>>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>>>>>> >>>>>>> >>>>>>> > with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with > POSITION >>>>>>> CC is now correctly placed in the center of the label text >>>>>>> (so it seems this has been fixed in the code, but I can't >>>>>>> find the ticket that says that) - If I change to POSITION >>>>>>> LR (as in Ian's example layer) then I get Ian's issue >>>>>>> (LABELPNT is placed at the geometry location, not in the >>>>>>> center of the label text - but this is now an issue of >>>>>>> understanding the developer's logic (from that thread >>>>>>> SteveL says "Let me ponder this and get back to you. I >>>>>>> think it makes sense to use the label point geotransform >>>>>>> only with position CC so that it matches actual shape >>>>>>> location.") >>>>>>> >>>>>>> That's all I know at this point (ha pun). >>>>>>> >>>>>>> -jeff >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> _______________________________________________ mapserver-users >>>> mailing list mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thxftw at gmail.com Mon Dec 12 00:38:23 2011 From: thxftw at gmail.com (Peter Maes) Date: Mon, 12 Dec 2011 09:38:23 +0100 Subject: [mapserver-users] Mapserver performance on apache - heavy load systems In-Reply-To: References: Message-ID: Hi Steve, Thanks for your reply. However, most of my datasources are vector data. I've created a spatial index on the shapefiles, but with 4 000 000 features it still takes a long time to load everything. Should I increase ram, or cpu? or Both? the machines have 8 GB ram atm. I'm not sure what mapserver needs in heavy configurations. Besides the page on mapserver.org i dont find much on improving performance for load intensive systems. 2011/12/9 Lime, Steve D (DNR) > Apache should be plenty quick. Start with using fastcgi and optimizing > your data: e.g. create spatial indexes, use optimized raster formats and > then optimizing your configuration (scale dependent layers w/things like > reduced resolution layers where possible). -Steve**** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Peter Maes > *Sent:* Friday, December 09, 2011 6:31 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Mapserver performance on apache - heavy load > systems**** > > ** ** > > Hi all,**** > > ** ** > > We are planning to launch a major mapserver production site where i'm > required to launch many mapserver instances in some form of cluster.**** > > ** ** > > So I basically have some questions related to this:**** > > ** ** > > - Does anyone have good tips on performance for running mapserver on > apache? **** > > - Any specific build parameters I should pay attention to? **** > > - Does it run as a native apache module, or is it required to work through > cgi? In which case: will i get better performance by using fastcgi? (we > are not using databases but shapefiles). **** > > - Should I consider lighttpd or nginx instead?**** > > ** ** > > - Any other tips related to clustering mapserver instances? :).**** > > ** ** > > Note that we are using live data, so we cannot cache them, except for a > minute or so.**** > > ** ** > > Thanks for your time.**** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at umb.no Mon Dec 12 01:44:15 2011 From: havard.tveite at umb.no (Havard Tveite) Date: Mon, 12 Dec 2011 10:44:15 +0100 Subject: [mapserver-users] GAP problem on MapServer 6.0.1 In-Reply-To: <4EBB9020.7020605@umb.no> References: <4EBB9020.7020605@umb.no> Message-ID: <4EE5CCEF.6040905@umb.no> I have been able to reproduce this problem with trunk. It seems to occur for gap lengths that are longer than the length of the line. In that case, the arrows are rendered for each line segment from the middle of the line to the end of the line. Slightly different behaviour for 6.0 and trunk. I have filed a ticket (http://trac.osgeo.org/mapserver/ticket/4120). H?vard On 11/10/2011 9:49 AM, H?vard Tveite wrote: > Dear Jackey Cheung, > > I am not sure what exactly you are trying to achieve. > Your arrows seem to point in the direction of the lines. > The topmost arrow in figure 1 is placed at a strange > position - is that the problem? > > Some comments: > > The result shown in image 2 is expected. The arrow > symbols are in this case placed at the start points of > the lines according to the centre point of the symbol's > bounding rectangle (except 0,0 is always taken as the > upper left corner of the bounding rectangle). > When using a negative GAP, the direction of the symbol > is the direction of the line at the (end)point. > In version 6.2, ANCHORPOINT is introduced to make it > possible to specify a different anchor point for the > symbol (http://mapserver.org/trunk/mapfile/symbol.html). > > The centre point of the bounding box of your arrow_right > symbol will be at (17.5,7) in the symbol's coordinate > system, so the arrows will be placed somewhat shifted to > the right (in the direction of the arrow). > In 6.0, if you want the ends of the arrows to be aligned > with the start of the lines (when using geomtransform > start), you could use the following symbol: > > SYMBOL > NAME "arrow_right_shift" > TYPE VECTOR > POINTS > 30 6 > 52 6 > 50 0 > 60 7 # why 7.5? > 50 14 > 52 8 > 30 8 > 30 6 > END > FILLED TRUE > END > > In 6.2, you will be able to specify this using > ANCHORPOINT 1 0.5 > > > H?vard > > On 11/10/2011 06:35 AM, Jackey Cheung wrote: >> Hi all, >> >> We are trying to render line direction on 6.0.1. However, there are >> something weird with it. >> >> >> SYMBOL >> NAME "arrow_right" >> TYPE VECTOR >> POINTS >> 5 6 >> 27 6 >> 25 0 >> 35 7.5 >> 25 14 >> 27 8 >> 5 8 >> 5 6 >> END >> FILLED TRUE >> END >> >> >> LAYER >> NAME "traffic_direction" >> STATUS DEFAULT >> TYPE LINE >> MAXSCALEDENOM 5000 >> >> CONNECTIONTYPE POSTGIS >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CONNECTION "host=xxxxxxx dbname=******* user=xxxxxxxxxx >> password=************" >> DATA "geom FROM view_render_traffic_direction USING >> UNIQUE oid USING SRID=4326" >> >> CLASS >> NAME "Traffic Direction" >> STYLE >> ANGLE AUTO >> SYMBOL "arrow_right" >> SIZE 6 >> COLOR 0 0 250 >> GAP -200 >> #GEOMTRANSFORM "start" >> END >> END >> END >> >> >> The layer above is rendered as 1.PNG. We've checked that there are >> only one line (ring) there, but arrows are rendered problematic. >> Then we've tried to change GEOMTRANSFORM to "start" or "end", then >> rings seem OK, but all arrows at intersections got crossed, as 2.PNG. >> We've also tried to use OFFSET and GAP with positive and negative >> combinations, but none can solve the problem. >> >> Can anyone shed some light for us? Thanks in advance. > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From Jukka.Rahkonen at mmmtike.fi Mon Dec 12 02:16:03 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 12 Dec 2011 10:16:03 +0000 Subject: [mapserver-users] Mapserver performance on apache - heavy load systems In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A6305E50D@suutari.haapa.mmm.fi> Hi, Absolutely do not increase RAM, CPU or anything on that line. Instead, install all your data on a small slow laptop and make the system fast on that. - Analyze your situaltion and think what you want to give for your customers - Optimise the data for that purpose - Final step is to acquire as much computing power as needed Let's assume that you are going to publish your data through WMS. You said you have 4 000 000 features and it takes a long time to load them. I believe it is slow but fortunately you do not need to do it. The computer screen with 1152x864 resolution has only 955 328 pixels so your full screen view is trying to illustrate on average four features per pixel. If someone orders you to draw a map by hand with a pen and paper in that way you would say it is lunatic and that's correct. The key to draw faster is to draw less. This link shows a course example of speeding vector renderign by making Mapserver to draw less. http://www.paikkatietoikkuna.fi/web/en/map-window?zoomLevel=6&coord=291620_6798042&mapLayers=base_35+100+!default!,34+100+&showMarker=false&forceCache=true There is a scale dependent group layer "Lan Parcel Register 2010". The group consists or the original data layer and two reduced sets. Original data is shown at scale 1:100000 or bigger (big scale - small number in scale denominator) and it comes from a shapefile with 1.2 million polygons. In the application the switch to original data happens between named zoom levels "Town" and "Part of town". When zoomed out the data comes from teh first reduced data set (10% sample) and finally from the second reduced data set (1% sample). In this case I made the ten percent sample and one percent sample by selecting parcel IDs ending to one zero or two zeros, respectively. This way I can broadcast the selected parcels uniformly on the whole map area for giving a hint about the places having parcels. There is also a maximum limit for the number of parcels which are rendered (MAXFEATURES 10000). I considered that ten thousand parcels per screen is always enough. For other data some other basis could be better for reducing the number of features to render. For example it is usually enough to render at maximum a few hundred biggest lakes an a map and that can be done by sorting data to descending order according to area and then applying MAXFEATURES. Another good way for making Mapserver to draw less and thus draw faster is to generalize the geometries to have less vertises. If you have a hundred pixels on a screen for showing a polygon then it will look just the same for the user with 20 or 20 000 vertises. The mapfile used in the linked example is attached. It is a little bit modified and does not necesarily work straight ahead but it should show the idea. Here is my ordered list about making vector rendering fast. Other people can suggest re-ordering or adding new items. I suppose there is something to think about when using classified layers and selecting classes with classitems and expressions. 1. Check the spatial indexes for shapefiles and in the database 2. Check other database indexes. In 98 percent of cases when user says that database is slow it just does not have a proper index for the query. 3. Draw less - less features, less vertices ============================== 4. Draw simple - multiple styles and advanced labels have some cost 5. Re-project data beforehand instead of on-the-fly -Jukka Rahkonen- ________________________________ Peter Maes wrote: Hi Steve, Thanks for your reply. However, most of my datasources are vector data. I've created a spatial index on the shapefiles, but with 4 000 000 features it still takes a long time to load everything. Should I increase ram, or cpu? or Both? the machines have 8 GB ram atm. I'm not sure what mapserver needs in heavy configurations. Besides the page on mapserver.org i dont find much on improving performance for load intensive systems. 2011/12/9 Lime, Steve D (DNR) > Apache should be plenty quick. Start with using fastcgi and optimizing your data: e.g. create spatial indexes, use optimized raster formats and then optimizing your configuration (scale dependent layers w/things like reduced resolution layers where possible). -Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Maes Sent: Friday, December 09, 2011 6:31 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver performance on apache - heavy load systems Hi all, We are planning to launch a major mapserver production site where i'm required to launch many mapserver instances in some form of cluster. So I basically have some questions related to this: - Does anyone have good tips on performance for running mapserver on apache? - Any specific build parameters I should pay attention to? - Does it run as a native apache module, or is it required to work through cgi? In which case: will i get better performance by using fastcgi? (we are not using databases but shapefiles). - Should I consider lighttpd or nginx instead? - Any other tips related to clustering mapserver instances? :). Note that we are using live data, so we cannot cache them, except for a minute or so. Thanks for your time. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Group_with_reduced_layers.txt URL: From Steve.Lime at state.mn.us Mon Dec 12 07:55:29 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 12 Dec 2011 15:55:29 +0000 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: <4EE549A7.3050309@geoanalytic.com> References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com><6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com><4EE4EF08.9040307@gatewaygeomatics.com><4EE4F7B3.1050309@geoanalytic.com><4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> <4EE52858.8050709@swoodbridge.com> <4EE549A7.3050309@geoanalytic.com> Message-ID: Could someone post a summary of where this discussion is at? It's hard to tell given the length of the thread... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent Fraser Sent: Sunday, December 11, 2011 6:24 PM To: Stephen Woodbridge Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example Steve, I agree the new features should be driven from specific use cases, but I like to expand designs to handle unforeseen uses (hopefully without adding complexity). So I prefer GEOMTRANSFORM (getCentroid(labelpoly)) instead of GEOMTRANSFORM LABELBBOXCENTROID My use cases for expanded GEOMTRANSFORM (from an earlier email with Steve L): ------------------- The solution of using a STYLE with GEOMTRANSFORM got me thinking of using the technique to solve some of the labeling challenges: 2. Place polygon annotation on/inside boundary line (http://trac.osgeo.org/mapserver/ticket/1592 point 8.) - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], -3)) of the original polygon 5. Place line anno above (or below) when using ANGLE FOLLOW - label the line geometry resulting from GEOMTRANSFORM (buffer([shape], 5)) of the original line - useful for labeling rivers above their geometry Currently the LABEL object uses the original geometry. Do you think it would be possible to [optionally?] use the GEOMTRANSFORMed geometry? Similarly, would it be possible to have the LABEL's convex hull (or a buffer the character boxes?) used as a clipping polygons of the layer's geometry to address: 8. Erase layer's geometry (but not other layers) under label - possible syntax: GEOMTRANSFORM ( clip( [labelpoly] ) ) - useful for labeling contours ---------------- Best Regards, Brent Fraser On 12/11/2011 3:02 PM, Stephen Woodbridge wrote: > It seems to me that we should develop specific use cases that we are > trying to support. > > We have one that this feature was developed for, and that is as Steve > L mention for labeling Highway Shields were the actual shield may be > composed of multiple parts that need to be be super imposed relative > to a label point, if I recall the details of that discussion without > looking it up again. > > Ian, I think the point you are looking for is different. That would be > the centroid of the label polygon. That point may or may not be > coincidentally the same as the LABELPNT under some small set of > configuration parameters but by no means guaranteed to be the same. > > I think that these points might be the same is you have a single line > of text, ie: not wrapped, and POSITION CC and probable ANGLE 0. But I > have not had time to test. > > -Steve W > > On 12/11/2011 4:18 PM, Ian Walberg wrote: >> So is it expected that labelpnt generates a point with its center at >> the middle of the bounding rectangle of the text? >> >> Thanks >> >> Ian >> >> >> -----Original Message----- From: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brent >> Fraser Sent: Sunday, December 11, 2011 1:02 PM To: thomas bonfort Cc: >> mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] >> GEOMTRANSFORM LABELPNT example >> >> Thomas, >> >> I tracked it down to the LABELCACHE setting. >> >> LABELCACHE ON gives the expected results LABELCACHE OFF gives my >> old blue-dot-on-the-left results. >> >> See attached PDFs. >> >> Best Regards, Brent Fraser >> >> >> On 12/11/2011 1:05 PM, thomas bonfort wrote: >>> There might have been a bug in the initial implementation. trying >>> it out with current trunk gives me the expected result, unless I'm >>> missing something. >>> >>> >>> On Sun, Dec 11, 2011 at 20:44, Brent >>> Fraser wrote: >>>> Thomas, See comments below. >>>> >>>> Best Regards, Brent Fraser >>>> >>>> >>>> >>>> On 12/11/2011 12:26 PM, thomas bonfort wrote: >>>>> I think this is all expected behavior, although the >>>>> documentation may be incorrect. >>>>> >>>>> LABELPNT draws a marker on the geographic position the label >>>>> is attached to. This corresponds to the center of the label >>>>> text only if the label is in position CC. >>>> I think that is what is intended but my original test case (using >>>> CC ) resulted in the LABELPNT rendered on the left side of the >>>> labelpoly, see >>>> http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110526/47c9bc8c/labelpnt-0001.png. >>>> >>>> >>>> > I had expected it to be coincident with the yellow circle and green > cross. >>>> >>>> >>>>> To draw a label at the center of the label text, another >>>>> geomtransform would have to be implemented, named e.g. >>>>> LABELBBOXCENTROID. >>>> or maybe >>>> >>>> GEOMTRANSFORM (centroid([LABELPOLY])) >>>> >>>> >>>>> regards, thomas >>>>> >>>>> On Sun, Dec 11, 2011 at 19:34, Brent >>>>> Fraser wrote: >>>>>> Hey Jeff, >>>>>> >>>>>> I've been looking into this too (not finished yet). I'm >>>>>> using v6.0.1 and can reproduce my original results (blue dot >>>>>> to the left) AND Ian's (grey dot coincident with white dot). >>>>>> Very strange. My shapefile dataset gets reprojected from >>>>>> geographic to UTM, so that may be causing the difference. I >>>>>> need to look into that... >>>>>> >>>>>> Best Regards, Brent Fraser >>>>>> >>>>>> >>>>>> >>>>>> On 12/11/2011 10:57 AM, Jeff McKenna wrote: >>>>>>> On 11-12-11 11:20 AM, Ian Walberg wrote: >>>>>>>> Here is the map file we are using ms4w 3.0.3. >>>>>>>> >>>>>>>> We thought the larger grey circle should be drawn in the >>>>>>>> center of the label text. >>>>>>>> >>>>>>>> What have we done wrong? >>>>>>>> >>>>>>>> >>>>>>> I have done some testing on this on Windows, with MapServer >>>>>>> trunk (6.1-dev), here are my findings: >>>>>>> >>>>>>> - I used Brent's original example styles (from >>>>>>> >>>>>>> http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-td6408065.html) >>>>>>> >>>>>>> >>>>>>> > with Ian's FEATURE layer --> Brent's "Blue Dot" LABELPNT with > POSITION >>>>>>> CC is now correctly placed in the center of the label text >>>>>>> (so it seems this has been fixed in the code, but I can't >>>>>>> find the ticket that says that) - If I change to POSITION >>>>>>> LR (as in Ian's example layer) then I get Ian's issue >>>>>>> (LABELPNT is placed at the geometry location, not in the >>>>>>> center of the label text - but this is now an issue of >>>>>>> understanding the developer's logic (from that thread >>>>>>> SteveL says "Let me ponder this and get back to you. I >>>>>>> think it makes sense to use the label point geotransform >>>>>>> only with position CC so that it matches actual shape >>>>>>> location.") >>>>>>> >>>>>>> That's all I know at this point (ha pun). >>>>>>> >>>>>>> -jeff >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> _______________________________________________ mapserver-users >>>> mailing list mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon Dec 12 10:37:41 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 12 Dec 2011 18:37:41 +0000 Subject: [mapserver-users] mimic geonames.org JSON server In-Reply-To: <1323403888.84252.YahooMailNeo@web121310.mail.ne1.yahoo.com> References: <1323317164.28992.YahooMailNeo@web121314.mail.ne1.yahoo.com> <1323403888.84252.YahooMailNeo@web121310.mail.ne1.yahoo.com> Message-ID: 1) Use mode=itemnquery and a regex search, something like qstring=/^value/. You?ll need to account for this in your validation string. 2) There is an outstanding bug regarding trimlast (see http://trac.osgeo.org/mapserver/ticket/4063) but I?m starting to think it?s a problem with single vs. double quotes in tag arguments. Try using double quotes? 3) There are a number of counter tags that should be available. See http://mapserver.org/mapfile/template.html and search for the [nr] tag and you?ll see the others documented below. Steve From: Mark Volz [mailto:volzmark at yahoo.com] Sent: Thursday, December 08, 2011 10:11 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mimic geonames.org JSON server Steve, Thank you for your assistance. The code is starting to work. I just have a couple more questions. 1) How can I change the query on the html call to use regular expressions, or more particularly make the search a "begins with" search. Using qlayer=myLayer&qitem=MyField&qstring='myValue' obliviously returns only one result, however I would like to search for n items 2) In the JSON template, I have a comma separating each result. I thought that I could remove the final comma by adding [feature trimlast=',']. The final comment was not removed. how do I correctly use [feature trimlast=','] 3) for JSON templates is a variable for "total results"? If not is there another way to get a record count? Thanks ________________________________ From: "Lime, Steve D (DNR)" To: Mark Volz ; "mapserver-users at lists.osgeo.org" Sent: Thursday, December 8, 2011 10:26 AM Subject: RE: [mapserver-users] mimic geonames.org JSON server 1) Correct. Templates are just a means of presenting the results of a query operation. I?ve used templates to return json successfully. 2) Again, you need to issue a query. So to find a record in a layer you might do something like: http://localhost/cgi-bin/mapserv?map=mapfile&mode=itemquery&qlayer=layer&qitem=item&qstring=value&qformat=jsonformat This assumes that: for the layer in question you?ve setup a validation pattern for qstring and you?ve defined a output format called ?jsonformat?. The one limitation I?ve found (and would like to fix) is that there?s no easy way to handle exceptions relative to the output format. For example, if you?re outputting json it would be nice to return errors (if possible, certain ones like mapfile not found can?t be dealt with other than in the default way) as json too. Let me know if you have questions. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, December 07, 2011 10:06 PM To: mapserver-users at lists.osgeo.org; volzmark at yahoo.com Subject: [mapserver-users] mimic geonames.org JSON server Hello, I recently came across an interesting openlayers application that uses geonames.org for a search functionality. I would like to be able to use my own gis data on the searches. I came across http://mapserver.org/trunk/output/template_output.html, which starts to describe how to make a template. I just have a couple questions. 1) My understanding is I can use any .map files that have a layer with appropriate fields. I just need to add another output format so that my .map file references a JSON template, and I can keep the standard image output formats. Is this correct? 2) How would the html request need to be formatted to search a specific value in a specific layer and return JSON? Any help and / or examples would be greatly appreciated. Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Dec 12 11:19:16 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 12 Dec 2011 15:19:16 -0400 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com><6747A58B2713B44E9BEB2E9BDEFA775030E3A335@be28.exg3.exghost.com><4EE4EF08.9040307@gatewaygeomatics.com><4EE4F7B3.1050309@geoanalytic.com><4EE50830.1080505@geoanalytic.com> <4EE51A47.5040604@geoanalytic.com> <4EE52858.8050709@swoodbridge.com> <4EE549A7.3050309@geoanalytic.com> Message-ID: <4EE653B4.9080706@gatewaygeomatics.com> Updates: - I have checked-in a documentation change for LABELPNT (using Thomas' clear wording for this): http://www.mapserver.org/mapfile/label.html?highlight=labelpnt - I have verified with trunk (6.1-dev) on Windows that Brent's report of using LABELCACHE OFF with GEOMTRANSFORM LABELPNT causes problems and is definitely a bug. I have created a tiny test case and attached it to a new ticket, please everyone involved in this thread add yourself to it and contribute (with this many people interested we should all be working on this ticket together-testing, commenting, etc): http://trac.osgeo.org/mapserver/ticket/4121 thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From moizkfov at gmail.com Mon Dec 12 13:30:27 2011 From: moizkfov at gmail.com (kaaos) Date: Mon, 12 Dec 2011 13:30:27 -0800 (PST) Subject: [mapserver-users] small mapserver admin tool errors Message-ID: <1323725427952-7087821.post@n2.nabble.com> Hi. Im writing a small admin tool for MapServer for own use in PHP with MapScript. I'm building a mapfile object with ms_newMapObj() and then throwing elements into database, forms, etc. I've got this problem that when a mapfile has errors (pure simple like 'IMAGETYPE "pnhgg"' instead 'IMAGETYPE "png"') the mapscript parser throws an error and the whole application stops. The thing is that I want the application on to at least tell the user, that his mapfile has errors and for example open a textarea where the user could edit his whole mapfile without throwing it to ms_newMapObj(). I tried many things but nothing seems to work. The thing is, it's msPostMapParseOutputFormatSetup() which actually crashes and which is used by ms_newMapObj(). I dont have access to msPostMapParseOutputFormatSetup(). Sample: A PHP Error was encountered Severity: Warning Message: ms_newMapObj(): [MapServer Error]: msPostMapParseOutputFormatSetup(): Unable to select IMAGETYPE `pnfg'. Filename: controllers/program.php Line Number: 35 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "D:\ms4w\Apache\htdocs\p3\p3.map"' in D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controllers\program.php:35 Stack trace: #0 D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controllers\program.php(35) : ms_newMapObj('D:\ms4w\Apache\...') #1 D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controllers\program.php(10) : Program->index() #2 [internal function]: Program->save_f_tmp() #3 D:\ms4w\Apache\htdocs\ci_doctrine\system\codeigniter\CodeIgniter.php(236): call_user_func_array(Array, Array) #4 D:\ms4w\Apache\htdocs\ci_doctrine\index.php(115): require_once('D:\ms4w\Apache\...') #5 {main} thrown in D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controllers\program.php on line 35 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "D:\ms4w\Apache\htdocs\map_file\map_file.map"' in D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controllers\load_controler. php:35 Stack trace: #0 D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controllers\load_controler. php(35): ms_newMapObj('D:\ms4w\Apache\...') #1 D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controllers\load_controler. php(10): Program->index() #2 [internal function]: Program->svft() #3 D:\ms4w\Apache\htdocs\ci_doctrine\system\codeigniter\CodeIgniter.php(236): call_user_func_array(Array, Array) #4 D:\ms4w\Apache\htdocs\ci_doctrine\index.php(115): require_once('D:\ms4w\Apache\...') #5 {main} thrown in D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controllers\load_controler. php on line 35 Thanks for any help. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/small-mapserver-admin-tool-errors-tp7087821p7087821.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ian.walberg at airborne.aero Sat Dec 10 23:51:21 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sun, 11 Dec 2011 02:51:21 -0500 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> Message-ID: Here is an image and the map file we are using ms4w 3.0.3. We thought the larger grey circle should be drawn in the center of the label text. What have we done wrong? Thanks Ian LAYER DEBUG 5 NAME Test TYPE annotation STATUS DEFAULT FEATURE POINTS -122 33 END TEXT "Some label text" END CLASS LABEL FONT "arialuni" TYPE truetype ENCODING 'UTF-8' SIZE 14 COLOR 255 255 0 POSITION LR OFFSET 8 8 STYLE GEOMTRANSFORM LABELPOLY COLOR 200 50 50 END STYLE GEOMTRANSFORM LABELPNT SYMBOL 'circle' COLOR 100 100 100 SIZE 20 END STYLE COLOR 255 255 255 SYMBOL 'circle' SIZE 6 END END END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, December 10, 2011 3:53 PM To: Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example Brent, We copied the example http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-t d6408065.html. However we see the GEOMTRANSFORM labelpnt drawing the circle on the point location not the center of the label text. Thanks Ian -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Saturday, December 10, 2011 1:25 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example Ian, How are you specifying it in your mapfile? Brent Fraser > Steve, > > We are still not seeing what we expect, we are testing with the ms4w > 3.0.3 install, will this work? > > Thanks > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Saturday, December 10, 2011 7:48 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example > > On 12/10/2011 10:36 AM, Ian Walberg wrote: >> Does anyone have an example of the GEOMTRANSFORM LABELPNT? >> >> We have been trying this I were expecting the center to be located on >> the center of the label test border rectangle but we seem to be >> getting the center as the point location. >> >> Any ideas? > > Hi Ian, > > The label point is the that the label is placed about. The actual > label position can change relative to the label point based on > POSITION and other attributes of the label. > > I don't have the RFC in front of me but here is a good example to test > with: > > http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location > -t > d6408065.html > > Try varying the LABEL POSITION and see how it behaves. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 15414 bytes Desc: image001.png URL: From Andreas.Eichner at sid.sachsen.de Mon Dec 12 23:35:42 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Tue, 13 Dec 2011 08:35:42 +0100 Subject: AW: [mapserver-users] small mapserver admin tool errors References: <1323725427952-7087821.post@n2.nabble.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF29E@KS-EVS1.smi.sachsen.de> Use try+catch: http://www.php.net/manual/en/language.exceptions.php > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von kaaos > Gesendet: Montag, 12. Dezember 2011 22:30 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] small mapserver admin tool errors > > Hi. > > Im writing a small admin tool for MapServer for own use in PHP with > MapScript. > > I'm building a mapfile object with ms_newMapObj() and then > throwing elements > > into database, forms, etc. > > I've got this problem that when a mapfile has errors (pure > simple like > > 'IMAGETYPE "pnhgg"' instead 'IMAGETYPE "png"') the mapscript > parser throws > an > > error and the whole application stops. > > The thing is that I want the application on to at least tell > the user, that > his > > mapfile has errors and for example open a textarea where the > user could edit > his > > whole mapfile without throwing it to ms_newMapObj(). > > I tried many things but nothing seems to work. The thing is, it's > > msPostMapParseOutputFormatSetup() which actually crashes and > which is used > by > > ms_newMapObj(). I dont have access to > msPostMapParseOutputFormatSetup(). > > > Sample: > > > A PHP Error was encountered > Severity: Warning > Message: ms_newMapObj(): [MapServer Error]: > msPostMapParseOutputFormatSetup(): > > Unable to select IMAGETYPE `pnfg'. > Filename: controllers/program.php > Line Number: 35 > > Fatal error: Uncaught exception 'MapScriptException' with > message 'Failed to > > open map file "D:\ms4w\Apache\htdocs\p3\p3.map"' in > > D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle > rs\program.php:35 > > Stack trace: #0 > > D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle > rs\program.php(35) > > : ms_newMapObj('D:\ms4w\Apache\...') #1 > > D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle > rs\program.php(10) > > : Program->index() #2 [internal function]: Program->save_f_tmp() #3 > > D:\ms4w\Apache\htdocs\ci_doctrine\system\codeigniter\CodeIgnit > er.php(236): > > call_user_func_array(Array, Array) #4 > > D:\ms4w\Apache\htdocs\ci_doctrine\index.php(115): > > require_once('D:\ms4w\Apache\...') #5 {main} thrown in > > D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle > rs\program.php > on > > line 35 > > Fatal error: Uncaught exception 'MapScriptException' with > message 'Failed to > > open map file "D:\ms4w\Apache\htdocs\map_file\map_file.map"' in > > D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle > rs\load_controler. > > php:35 Stack trace: #0 > > D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle > rs\load_controler. > > php(35): ms_newMapObj('D:\ms4w\Apache\...') #1 > > D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle > rs\load_controler. > > php(10): Program->index() #2 [internal function]: Program->svft() #3 > > D:\ms4w\Apache\htdocs\ci_doctrine\system\codeigniter\CodeIgnit > er.php(236): > > call_user_func_array(Array, Array) #4 > > D:\ms4w\Apache\htdocs\ci_doctrine\index.php(115): > > require_once('D:\ms4w\Apache\...') #5 {main} thrown in > > D:\ms4w\Apache\htdocs\ci_doctrine\system\application\controlle > rs\load_controler. > > php on line 35 > > Thanks for any help. > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/small-mapserver-admin-t > ool-errors-tp7087821p7087821.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 oeli16 at gmx.de Tue Dec 13 01:03:14 2011 From: oeli16 at gmx.de (Micha) Date: Tue, 13 Dec 2011 01:03:14 -0800 (PST) Subject: [mapserver-users] Possibility to read DXF files? Message-ID: <1323766994241-7089202.post@n2.nabble.com> Hello, i'm trying to read DXF files to represent them on a map. I heard that it would be possible, but for me it is impossible till now. If it is possible which Version of Mapserver and GDAL/OGR do I have to have installed? Actually it is a quite old version with Mapserver 5.2 and GDAL 1.5 (never change a running system). Might it be possible for such a system? My actuall layer definition looks like this (perhaps it has some mistakes which I don't see): LAYER NAME 'dxf_map' CONNECTIONTYPE ogr CONNECTION 'Profil.DXF' STATUS on TYPE LINE STYLEITEM "AUTO" CLASS NAME 'try' END METADATA WMS_SRS 'epsg:900913 epsg:31467' WMS_TITLE 'dxf_map' WMS_FEATURE_INFO_MIME_TYPE 'text/html' WFS_SRS 'epsg:900913 epsg:31467' WFS_TITLE 'dxf_map' END PROJECTION 'init=epsg:31467' END END #Layer Best regards Micha -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Possibility-to-read-DXF-files-tp7089202p7089202.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kai.behncke at fossgis.de Tue Dec 13 07:13:46 2011 From: kai.behncke at fossgis.de (kai.behncke at fossgis.de) Date: Tue, 13 Dec 2011 16:13:46 +0100 Subject: [mapserver-users] FOSSGIS-Conference - Call for papers - Deadline now: December, 23 Message-ID: <6e838d6a4def76f984b0f240cefe9034@mail.fossgis.de> Dear Free and Open Source GI-Software- and OSM-Users, please apologize any cross-postings...... FOSSGIS is a German-language conference (Free and Open Source GI Software and OpenStreetMap) primarily for a German audience. The program committee will, however, also consider applications for talks or workshops held in English if they are deeemed to add to the quality of the conference. So if you don't speak German, but are a FOSS/Open Data celebrity, or have a story that only you can tell, please do submit your talk. We are unlikely to be able to provide interpreters, but we'll make sure you don't get lost in Germany. Please be aware that you can submit paper until December, 23.: http://www.fossgis.de/konferenz/2012/callforpapers/ We are looking forward to see you in Dessau from March, 20. to March, 23. http://www.fossgis.de/konferenz/2012/ Your FOSSGIS-Team In German: Potsdam, 13. Dezember 2011 - Die FOSSGIS und OpenStreetMap Konferenz 2012 ? die gr??te deutschsprachige Anwenderkonferenz f?r Freie Geo-Informationssysteme und freie Geodaten ? findet vom 20. bis 22. M?rz 2012 an der Hochschule Anhalt in Dessau-Ro?lau statt. Die Konferenz bietet Ihnen die M?glichkeit, Ideen, Themen oder Anwendungen zum Thema OSM und Freie Geo-Informationssysteme und freie Geodaten zu pr?sentieren. Hierf?r wurde die Frist f?r das Einreichen von Vortr?gen, Poster oder Workshops noch bis zum 23.12.2011 verl?ngert. Ideen und Anreize finden Sie auch in den Vortr?gen aus dem letzten Jahr unter http://www.fossgis.de/konferenz/2011/programm/index.de.html FOSSGIS ist die Abk?rzung f?r Freie und Open Source Software f?r Geoinformationssysteme und ist die f?hrende Konferenz zu diesem Thema im deutschsprachigen Raum. Ausgerichtet wird die FOSSGIS Konferenz 2012 vom gemeinn?tzigen Verein FOSSGIS e.V, der OpenStreetMap Community und der Open Source Geospatial Foundation (OSGeo) in Zusammenarbeit mit der Hochschule Anhalt in Dessau. Weitere Informationen finden Sie unter http://www.fossgis.de/konferenz/2012/callforpapers/ Wir freuen uns ?ber Ihr Interesse und ?ber eine aktive Teilnahme an der FOSSGIS 2012! From bfraser at geoanalytic.com Tue Dec 13 08:18:12 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 13 Dec 2011 09:18:12 -0700 Subject: [mapserver-users] Possibility to read DXF files? In-Reply-To: <1323766994241-7089202.post@n2.nabble.com> References: <1323766994241-7089202.post@n2.nabble.com> Message-ID: <4EE77AC4.6050702@geoanalytic.com> Works for me. Confirm your version of GDAL supports DXF by issuing on the command line: ogrinfo --formats It should show: -> "DXF" (read/write) Best Regards, Brent Fraser On 12/13/2011 2:03 AM, Micha wrote: > Hello, > > i'm trying to read DXF files to represent them on a map. I heard that it > would be possible, but for me it is impossible till now. If it is possible > which Version of Mapserver and GDAL/OGR do I have to have installed? > Actually it is a quite old version with Mapserver 5.2 and GDAL 1.5 (never > change a running system). Might it be possible for such a system? > > My actuall layer definition looks like this (perhaps it has some mistakes > which I don't see): > > LAYER > NAME 'dxf_map' > CONNECTIONTYPE ogr > CONNECTION 'Profil.DXF' > STATUS on > TYPE LINE > STYLEITEM "AUTO" > CLASS > NAME 'try' > END > > METADATA > WMS_SRS 'epsg:900913 epsg:31467' > WMS_TITLE 'dxf_map' > WMS_FEATURE_INFO_MIME_TYPE 'text/html' > WFS_SRS 'epsg:900913 epsg:31467' > WFS_TITLE 'dxf_map' > END > > PROJECTION > 'init=epsg:31467' > END > > END #Layer > > Best regards > Micha > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Possibility-to-read-DXF-files-tp7089202p7089202.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 moizkfov at gmail.com Tue Dec 13 08:50:49 2011 From: moizkfov at gmail.com (kaaos) Date: Tue, 13 Dec 2011 08:50:49 -0800 (PST) Subject: AW: [mapserver-users] small mapserver admin tool errors In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF29E@KS-EVS1.smi.sachsen.de> References: <1323725427952-7087821.post@n2.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF29E@KS-EVS1.smi.sachsen.de> Message-ID: <1323795049119-7090610.post@n2.nabble.com> I've tried and it didn't work so far. Can I see somwhere how looks MapScriptException to try catching it outside MapScript library? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/small-mapserver-admin-tool-errors-tp7087821p7090610.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Tue Dec 13 08:49:13 2011 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 13 Dec 2011 16:49:13 +0000 Subject: [mapserver-users] ticket for 'trimlast'? In-Reply-To: <63BAB1F4-176F-4A63-819D-8681D0F1DBD8@gmail.com> References: <63BAB1F4-176F-4A63-819D-8681D0F1DBD8@gmail.com> Message-ID: Steve Lime has narrowed this bug down to the parsing of single quotes in template tags. The trimlast functionality will work if you use double quotes on the character to be trimmed. e.g. This works: [feature trimlast=","] This doesn't: [feature trimlast=','] I will file a ticket for a change in the documentation at: http://mapserver.org/output/template_output.html David. -----Original Message----- From: Puneet Kishor [mailto:punk.kish at gmail.com] Sent: Thursday, October 20, 2011 4:15 PM To: Fawcett, David (MPCA) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ticket for 'trimlast'? On Oct 20, 2011, at 4:06 PM, Fawcett, David (MPCA) wrote: > I also can't get trimlast=',' to remove the trailing comma in a json formatted query result. > > [resultset layer=stations] > { > "stations": [ > [feature trimlast=','] > { > "name": "[NAME]", > "stationId": "[STATION_ID > }, > [/feature] > ] > } > [/resultset] > > http://lists.osgeo.org/pipermail/mapserver-users/2011-September/070298.html > > I searched for a trac ticket, but didn't see one. I will file one if someone can confirm that this is still a real issue and that a ticket doesn't exist. > I can confirm that I experienced it as well. -- Puneet Kishor From scott159 at free.fr Tue Dec 13 13:54:12 2011 From: scott159 at free.fr (scott159 at free.fr) Date: Tue, 13 Dec 2011 22:54:12 +0100 (CET) Subject: [mapserver-users] - SQL Server 2008 In-Reply-To: <2017783879.1952871323813111988.JavaMail.root@zimbra45-e7.priv.proxad.net> Message-ID: <1858366034.1953511323813252963.JavaMail.root@zimbra45-e7.priv.proxad.net> Hi, I install and configure FreeTDS and unixodbc to connect to SQL Server 2008. Everything is ok when I request database with tsql. But when I launch "ogrinfo ODBC:user/pwd at DSN", I have this error message : [unixodbc] [driver manager] data source name not found and no default driver specified What's the solution, environment variable ... ? Thanks ----- Mail Original ----- De: "Eduardo Kanegae" ?: "MapServer Users" Envoy?: Samedi 26 Novembre 2011 15h49:27 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [mapserver-users] - SQL Server 2008 The mapfile won't change so much. Basically your layer will have layer name, type, connection type and then in connection param something like "MSSQL:dsn=MY_DSN;server=(local);database=DBNAME_HERE;tables=myscheme.mytable;uid=USER_HERE;pwd=PWD_HERE" mytable Check OGR docs for more info http://www.gdal.org/ogr/drv_mssqlspatial.html You might need freetds + unixodbc too http://www.sommarskog.se/mssqlperl/unix.html http://comments.gmane.org/gmane.comp.db.tds.freetds/13292 In advance I can tell what I got: I gave up using default geometry/spatial types/functions from SQL 2008 - to slow, no official docs is available. To speed it up, I installed MsSqlSpatial lib (originally developed for SQL 2005 but also works for 2008) on SQL 2008 database + ODBC OGR driver on MapServer. And then spatial SQL speed gone 10-15 times over standard ms sql 2008 types Eduardo Patto Kanegae http://www.webmapit.com?| @webmapit 2011/11/26 > > Ok but I try to use it on Linux. Do you have some examples of mapfile to specify a sql 2008 connection ? > > ----- Mail Original ----- > De: "Eduardo Kanegae" > ?: "MapServer Users" > Envoy?: Samedi 26 Novembre 2011 00h00:11 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > Objet: Re: [mapserver-users] - SQL Server 2008 > > I'm sure about 2008 but 2000/2005 you can connect using FreeTDS client > libs - and probably an ODBC connection. > > I also plan to publish more experiments using 2008/2005 > http://blog.webmapit.com/2011/11/ms-sql-2008-spatial-experiments.html > > regards > > Eduardo Patto Kanegae > http://www.webmapit.com?| @webmapit > > > 2011/11/25 > > > > Hi, > > > > I would like to create a mapfile with SQL Server 2008 connection but i don't know how to configure it. With Windows, the driver is mssql2008.dll but my server run on Linux. How to do it ? > > When MapServer is running with fcgid mode, what's the best configuration ? Is it possible to have some examples of fcgid.conf ? > > > > Thanks > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From eduardo.kanegae at gmail.com Tue Dec 13 15:11:51 2011 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Tue, 13 Dec 2011 21:11:51 -0200 Subject: [mapserver-users] - SQL Server 2008 In-Reply-To: <1858366034.1953511323813252963.JavaMail.root@zimbra45-e7.priv.proxad.net> References: <2017783879.1952871323813111988.JavaMail.root@zimbra45-e7.priv.proxad.net> <1858366034.1953511323813252963.JavaMail.root@zimbra45-e7.priv.proxad.net> Message-ID: Sounds like no datasource was defined. At windows boxes normally we use ODBC system manager to do that tasks. Using Linux probably config files will be neessary. Check unixODBC docs Eduardo Patto Kanegae http://www.webmapit.com?| @webmapit 2011/12/13 > > Hi, > > I install and configure FreeTDS and unixodbc to connect to SQL Server 2008. Everything is ok when I request database with tsql. But when I launch "ogrinfo ODBC:user/pwd at DSN", I have this error message : > [unixodbc] [driver manager] data source name not found and no default driver specified > What's the solution, environment variable ... ? > > Thanks > > > ----- Mail Original ----- > De: "Eduardo Kanegae" > ?: "MapServer Users" > Envoy?: Samedi 26 Novembre 2011 15h49:27 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > Objet: Re: [mapserver-users] - SQL Server 2008 > > The mapfile won't change so much. Basically your layer will have layer > name, type, connection type and then in connection param something > like > > "MSSQL:dsn=MY_DSN;server=(local);database=DBNAME_HERE;tables=myscheme.mytable;uid=USER_HERE;pwd=PWD_HERE" > mytable > > Check OGR docs for more info http://www.gdal.org/ogr/drv_mssqlspatial.html > > You might need freetds + unixodbc too > > http://www.sommarskog.se/mssqlperl/unix.html > http://comments.gmane.org/gmane.comp.db.tds.freetds/13292 > > In advance I can tell what I got: I gave up using default > geometry/spatial types/functions from SQL 2008 - to slow, no official > docs is available. > > To speed it up, I installed MsSqlSpatial lib (originally developed for > SQL 2005 but also works for 2008) on SQL 2008 database + ODBC OGR > driver on MapServer. And then spatial SQL speed gone 10-15 times over > standard ms sql 2008 types > > > > Eduardo Patto Kanegae > http://www.webmapit.com?| @webmapit > > > 2011/11/26 > > > > Ok but I try to use it on Linux. Do you have some examples of mapfile to specify a sql 2008 connection ? > > > > ----- Mail Original ----- > > De: "Eduardo Kanegae" > > ?: "MapServer Users" > > Envoy?: Samedi 26 Novembre 2011 00h00:11 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > > Objet: Re: [mapserver-users] - SQL Server 2008 > > > > I'm sure about 2008 but 2000/2005 you can connect using FreeTDS client > > libs - and probably an ODBC connection. > > > > I also plan to publish more experiments using 2008/2005 > > http://blog.webmapit.com/2011/11/ms-sql-2008-spatial-experiments.html > > > > regards > > > > Eduardo Patto Kanegae > > http://www.webmapit.com?| @webmapit > > > > > > 2011/11/25 > > > > > > Hi, > > > > > > I would like to create a mapfile with SQL Server 2008 connection but i don't know how to configure it. With Windows, the driver is mssql2008.dll but my server run on Linux. How to do it ? > > > When MapServer is running with fcgid mode, what's the best configuration ? Is it possible to have some examples of fcgid.conf ? > > > > > > Thanks > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Tue Dec 13 15:21:51 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Tue, 13 Dec 2011 18:21:51 -0500 Subject: [mapserver-users] Raster rendering performance and zoom levels Message-ID: We have an application which is using php mapscript to render maps at a number of different zoom levels, these zoom levels can be fixed and the maps are centered on a specific location. So we calculate the extent based on the zoom level and the current required center lat/long. The raster imagery we are using is approx. the same resolution as the max zoom (smallest extent) and in this case the map rendering is the fastest. As we zoom out and the extent increases the map rendering is slower, we are assuming this is because the imagery is being resized which is processor/memory intensive. Now the question, how do we create imagery sets for each zoom level so that they are the required resolution and no re-sizing is required? We are using mapserver without a client to generate the images on a server. I hope this makes sense. Thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Dec 13 15:29:20 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 13 Dec 2011 15:29:20 -0800 Subject: [mapserver-users] Raster rendering performance and zoom levels In-Reply-To: References: Message-ID: Ian, The normal approach to slow rendering at larger scales is to build pyramids/overviews on large images. This can generally be accomplished something like: gdaladdo big.tif 2 4 8 16 32 64 128 The gdaladdo command should work on virtually all GDAL supported raster formats. There are also things you could do to produce very specific overviews for the particular rendering resolutions you want to produce. But I'd suggest first trying the above generic solution and see if it is sufficient for your needs. Some gdaladdo docs are available at: http://www.gdal.org/gdaladdo.html Best regards, On Tue, Dec 13, 2011 at 3:21 PM, Ian Walberg wrote: > > > We have an application which is using php ?mapscript to render maps at a > number of different zoom levels, these zoom levels can be fixed and the maps > are centered on a specific location. > > > > So we calculate the extent based on the zoom level and the current required > center lat/long. > > > > The raster imagery we are using is approx. the same resolution as the max > zoom (smallest extent) and in this case the map rendering is the fastest. > > > > As we zoom out and the extent increases the map rendering is slower, we are > assuming this is because the imagery is being resized which is > processor/memory intensive. > > > > Now the question, ?how do we create imagery sets for each zoom level so that > they are the required resolution and no re-sizing is required? > > > > We are using mapserver without a client to generate the images on a server. > > > > I hope this makes sense. > > > > Thanks > > > > Ian > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------+-------------------------------------- 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 Software Developer From ian.walberg at airborne.aero Tue Dec 13 15:32:56 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Tue, 13 Dec 2011 18:32:56 -0500 Subject: [mapserver-users] Raster rendering performance and zoom levels In-Reply-To: References: Message-ID: We have added the overviews and they help but as we are able to fix the zoom levels we are hoping to go a step further. Thanks Ian -----Original Message----- From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Tuesday, December 13, 2011 3:29 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Raster rendering performance and zoom levels Ian, The normal approach to slow rendering at larger scales is to build pyramids/overviews on large images. This can generally be accomplished something like: gdaladdo big.tif 2 4 8 16 32 64 128 The gdaladdo command should work on virtually all GDAL supported raster formats. There are also things you could do to produce very specific overviews for the particular rendering resolutions you want to produce. But I'd suggest first trying the above generic solution and see if it is sufficient for your needs. Some gdaladdo docs are available at: http://www.gdal.org/gdaladdo.html Best regards, On Tue, Dec 13, 2011 at 3:21 PM, Ian Walberg wrote: > > > We have an application which is using php ?mapscript to render maps at > a number of different zoom levels, these zoom levels can be fixed and > the maps are centered on a specific location. > > > > So we calculate the extent based on the zoom level and the current > required center lat/long. > > > > The raster imagery we are using is approx. the same resolution as the > max zoom (smallest extent) and in this case the map rendering is the fastest. > > > > As we zoom out and the extent increases the map rendering is slower, > we are assuming this is because the imagery is being resized which is > processor/memory intensive. > > > > Now the question, ?how do we create imagery sets for each zoom level > so that they are the required resolution and no re-sizing is required? > > > > We are using mapserver without a client to generate the images on a server. > > > > I hope this makes sense. > > > > Thanks > > > > Ian > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------+-------------------------------- ---------------------------------------+------ 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 Software Developer From admin at michiganwxsystem.com Tue Dec 13 15:39:48 2011 From: admin at michiganwxsystem.com (Jeff Lake) Date: Tue, 13 Dec 2011 18:39:48 -0500 Subject: [mapserver-users] compile issues Message-ID: <4EE7E244.6010407@michiganwxsystem.com> having some problems getting mapserver to compile with php support... php_config.h and php_version.h are both in /usr/include .. so that is what I use ./configure --with-php=/usr/include configure come's back and says it can't find them in /usr/include ... -- -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com From ian.walberg at airborne.aero Tue Dec 13 16:24:32 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Tue, 13 Dec 2011 19:24:32 -0500 Subject: [mapserver-users] Raster rendering performance and zoom levels Message-ID: Frank, We can test again tomorrow with and without the overviews. I had assumed as the overviews would be closer to what we needed but not the correct resolution it would reduce the image resizing but not eliminate it. The 4 images are the NASA Blue Marble 1km imagery split into 4 files. Thanks Ian -----Original Message----- From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: Tuesday, December 13, 2011 4:18 PM To: Ian Walberg Subject: Re: [mapserver-users] Raster rendering performance and zoom levels Ian, Hmm, four images shouldn't be an issue. If overviews are built and being used rendering should not be noticably slower at different resolutions. Can you confirm that the overviews exist with gdalinfo? Best regards, On Tue, Dec 13, 2011 at 4:11 PM, Ian Walberg wrote: > Frank, > > With the current test setup we have the whole earth as 4 images in a shp file. > > As the area displayed increases the images are taking much longer to render, we had put this down to the image data being re-sampled as it was shrunk to fit. > > Thanks > > Ian > > -----Original Message----- > From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] On Behalf Of > Frank Warmerdam > Sent: Tuesday, December 13, 2011 4:07 PM > To: Ian Walberg > Subject: Re: [mapserver-users] Raster rendering performance and zoom > levels > > Ian, > > I'm surprised you are seeing significant performance problems with one raster image with overviews as you zoom out. ?I suspect there is more going on and that understanding what that is might be helpful. ?There is just one image, right? > > Best regards, > Frank > > On Tue, Dec 13, 2011 at 3:32 PM, Ian Walberg wrote: >> We have added the overviews and they help but as we are able to fix the zoom levels we are hoping to go a step further. >> >> Thanks >> >> Ian >> >> -----Original Message----- >> From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] On Behalf Of >> Frank Warmerdam >> Sent: Tuesday, December 13, 2011 3:29 PM >> To: Ian Walberg >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Raster rendering performance and zoom >> levels >> >> Ian, >> >> The normal approach to slow rendering at larger scales is to build pyramids/overviews on large images. ?This can generally be accomplished something like: >> >> ?gdaladdo big.tif 2 4 8 16 32 64 128 >> >> The gdaladdo command should work on virtually all GDAL supported >> raster formats. ?There are also things you could do to produce very >> specific overviews for the particular rendering resolutions you want >> to produce. ?But I'd suggest first trying the above generic solution >> and see if it is sufficient for your needs. ?Some gdaladdo docs are >> available >> at: >> >> ?http://www.gdal.org/gdaladdo.html >> >> Best regards, >> >> >> On Tue, Dec 13, 2011 at 3:21 PM, Ian Walberg wrote: >>> >>> >>> We have an application which is using php ?mapscript to render maps >>> at a number of different zoom levels, these zoom levels can be fixed >>> and the maps are centered on a specific location. >>> >>> >>> >>> So we calculate the extent based on the zoom level and the current >>> required center lat/long. >>> >>> >>> >>> The raster imagery we are using is approx. the same resolution as >>> the max zoom (smallest extent) and in this case the map rendering is the fastest. >>> >>> >>> >>> As we zoom out and the extent increases the map rendering is slower, >>> we are assuming this is because the imagery is being resized which >>> is processor/memory intensive. >>> >>> >>> >>> Now the question, ?how do we create imagery sets for each zoom level >>> so that they are the required resolution and no re-sizing is required? >>> >>> >>> >>> We are using mapserver without a client to generate the images on a server. >>> >>> >>> >>> I hope this makes sense. >>> >>> >>> >>> Thanks >>> >>> >>> >>> Ian >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> >> >> -- >> ---------------------------------------+----------------------------- >> ---------------------------------------+- >> ---------------------------------------+-- >> ---------------------------------------+------ >> 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 Software Developer > > > > -- > ---------------------------------------+------------------------------ > ---------------------------------------+-- > ---------------------------------------+------ > 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 Software Developer -- ---------------------------------------+-------------------------------- ---------------------------------------+------ 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 Software Developer From forums at craniumjuice.com Tue Dec 13 16:19:30 2011 From: forums at craniumjuice.com (forums) Date: Tue, 13 Dec 2011 18:19:30 -0600 Subject: [mapserver-users] compile issues In-Reply-To: <4EE7E244.6010407@michiganwxsystem.com> References: <4EE7E244.6010407@michiganwxsystem.com> Message-ID: Try with just --with-php=/usr Sometimes configure scripts tack on the /include, /lib etc Don't know if that will help, but worth a shot. On Tue, Dec 13, 2011 at 5:39 PM, Jeff Lake wrote: > having some problems getting mapserver to compile with php support... > php_config.h and php_version.h are both in /usr/include .. > so that is what I use > > ./configure --with-php=/usr/include > > configure come's back and says it can't find them in /usr/include ... > > -- > -Jeff Lake > MichiganWxSystem.com > WeatherMichigan.net > TheWeatherCenter.net > GRLevelXStuff.com > > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From linchuan.cheng at gmail.com Tue Dec 13 22:19:55 2011 From: linchuan.cheng at gmail.com (Lin Chuan) Date: Wed, 14 Dec 2011 14:19:55 +0800 Subject: [mapserver-users] mapserver-openlayers integration problem Message-ID: Hello, I am running into some trouble getting openlayers to render a map (with maptiles) using a locally installed mapserver to serve the mapfile to openlayers. Here's the complete description of my problem - http://gis.stackexchange.com/questions/17917/openlayers-mapserver-controlling-tiles I am not exactly sure whether I am missing some config parameters in my mapfile or if I am actually not providing the right js params in my javascript/openlayers code. Any advice pointing me in the right direction will be very much appreciated! -- www.calvinx.com Stalk me! @ www.twitter.com/calvinchengx -------------- next part -------------- An HTML attachment was scrubbed... URL: From kai.behncke at fossgis.de Wed Dec 14 00:27:30 2011 From: kai.behncke at fossgis.de (kai.behncke at fossgis.de) Date: Wed, 14 Dec 2011 09:27:30 +0100 Subject: [mapserver-users] FOSSGIS-Conference - Call for papers - Deadline now: December, 23 Message-ID: <198646d9c9b98bb28ad041656e0eed54@mail.fossgis.de> Dear Free and Open Source GI-Software- and OSM-Users, please apologize any cross-postings...... FOSSGIS is a German-language conference (Free and Open Source GI Software and OpenStreetMap) primarily for a German audience. The program committee will, however, also consider applications for talks or workshops held in English if they are deeemed to add to the quality of the conference. So if you don't speak German, but are a FOSS/Open Data celebrity, or have a story that only you can tell, please do submit your talk. We are unlikely to be able to provide interpreters, but we'll make sure you don't get lost in Germany. Please be aware that you can submit paper until December, 23.: http://www.fossgis.de/konferenz/2012/callforpapers/ We are looking forward to see you in Dessau from March, 20. to March, 23. http://www.fossgis.de/konferenz/2012/ Your FOSSGIS-Team In German: Potsdam, 13. Dezember 2011 - Die FOSSGIS und OpenStreetMap Konferenz 2012 ? die gr??te deutschsprachige Anwenderkonferenz f?r Freie Geo-Informationssysteme und freie Geodaten ? findet vom 20. bis 22. M?rz 2012 an der Hochschule Anhalt in Dessau-Ro?lau statt. Die Konferenz bietet Ihnen die M?glichkeit, Ideen, Themen oder Anwendungen zum Thema OSM und Freie Geo-Informationssysteme und freie Geodaten zu pr?sentieren. Hierf?r wurde die Frist f?r das Einreichen von Vortr?gen, Poster oder Workshops noch bis zum 23.12.2011 verl?ngert. Ideen und Anreize finden Sie auch in den Vortr?gen aus dem letzten Jahr unter http://www.fossgis.de/konferenz/2011/programm/index.de.html FOSSGIS ist die Abk?rzung f?r Freie und Open Source Software f?r Geoinformationssysteme und ist die f?hrende Konferenz zu diesem Thema im deutschsprachigen Raum. Ausgerichtet wird die FOSSGIS Konferenz 2012 vom gemeinn?tzigen Verein FOSSGIS e.V, der OpenStreetMap Community und der Open Source Geospatial Foundation (OSGeo) in Zusammenarbeit mit der Hochschule Anhalt in Dessau. Weitere Informationen finden Sie unter http://www.fossgis.de/konferenz/2012/callforpapers/ Wir freuen uns ?ber Ihr Interesse und ?ber eine aktive Teilnahme an der FOSSGIS 2012! From edikaradumi at gmail.com Wed Dec 14 00:53:08 2011 From: edikaradumi at gmail.com (Edi.Karadumi) Date: Wed, 14 Dec 2011 00:53:08 -0800 (PST) Subject: [mapserver-users] RE: Raster rendering performance and zoom levels In-Reply-To: References: Message-ID: <1323852788327-7092803.post@n2.nabble.com> Try this, it works in most cases 1- Fisrt enable internal tiling with the command gdal_translate -co "TILED=YES" original.tif tiled.tif 2-than add overviews gdaladdo -r average 2 4 8 16 32 64 128 3-create a tileindex gdaltindex myindex.shp *.tif 4-than create a spatial index shptree myindex.shp and finally add the layer to the map LAYER NAME myorthos TYPE RASTER DUMP TRUE STATUS ON TILEINDEX ../data/myindex TILEITEM Location -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-rendering-performance-and-zoom-levels-tp7091875p7092803.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cheung.jackey at gmail.com Wed Dec 14 02:46:19 2011 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed, 14 Dec 2011 18:46:19 +0800 Subject: [mapserver-users] Why failed to hard wrap labels? Message-ID: Hi all, I have met a weird situation while using hard wraps on labels. I haven't tried on English labels, the same wrapping setting yields different results when applied to Chinese labels. It's not the first time i have met this problem, nor the sending mail here. This time I have made a test case. Attached is a map file for testing, and its output (cropped). In the output image, you can see the there is a single-line label at the upper left corner, while another wrapped label at the lower right. Both labels are set to hard wrapping on the fourth character (MAXLENGTH -4). However, only the longer one seems wrapped correctly. Since the font displaying is not important here, i have not attached the font used here. Below are two more strings for testing, one can just replace the TEXT with them. In case anyone curious enough, the first 6 characters in the second string are exactly the same as the first string. "??????" "?????? (????)" -------------- next part -------------- A non-text attachment was scrubbed... Name: testwrap.png Type: image/png Size: 8802 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testwrap.map Type: application/octet-stream Size: 2352 bytes Desc: not available URL: From thomas.bonfort at gmail.com Wed Dec 14 03:09:46 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 14 Dec 2011 12:09:46 +0100 Subject: [mapserver-users] Why failed to hard wrap labels? In-Reply-To: References: Message-ID: Jackey, I have reproduced your issue and confirm it's a bug. Please open a ticket for this and I will fix it asap. regards, thomas On Wed, Dec 14, 2011 at 11:46, Jackey Cheung wrote: > Hi all, > > > I have met a weird situation while using hard wraps on labels. I > haven't tried on English labels, the same wrapping setting yields > different results when applied to Chinese labels. It's not the first > time i have met this problem, nor the sending mail here. This time I > have made a test case. > > Attached is a map file for testing, and its output (cropped). In the > output image, you can see the there is a single-line label at the > upper left corner, while another wrapped label at the lower right. > Both labels are set to hard wrapping on the fourth character > (MAXLENGTH -4). However, only the longer one seems wrapped correctly. > > Since the font displaying is not important here, i have not attached > the font used here. > > Below are two more strings for testing, one can just replace the TEXT > with them. In case anyone curious enough, the first 6 characters in > the second string are exactly the same as the first string. > "??????" > "?????? (????)" > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Wed Dec 14 03:37:51 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 14 Dec 2011 12:37:51 +0100 Subject: [mapserver-users] - SQL Server 2008 In-Reply-To: <1858366034.1953511323813252963.JavaMail.root@zimbra45-e7.priv.proxad.net> References: <2017783879.1952871323813111988.JavaMail.root@zimbra45-e7.priv.proxad.net> <1858366034.1953511323813252963.JavaMail.root@zimbra45-e7.priv.proxad.net> Message-ID: Hi, I think the OGR MSSQL Spatial driver would be a better choice than OGR ODBC to connect to MS SQL Server 2008. You may however specify the driver in the connection string explicitly. The default is driver={SQL Server} which may not be sufficient in non Windows environments. You may probably use: "MSSQL:driver=FreeTDS;..." You may also require to use the latest SVN (trunk or branch-1-8) in order to get it working. Best regards, Tamas 2011/12/13 > Hi, > > I install and configure FreeTDS and unixodbc to connect to SQL Server > 2008. Everything is ok when I request database with tsql. But when I launch > "ogrinfo ODBC:user/pwd at DSN", I have this error message : > [unixodbc] [driver manager] data source name not found and no default > driver specified > What's the solution, environment variable ... ? > > Thanks > > > ----- Mail Original ----- > De: "Eduardo Kanegae" > ?: "MapServer Users" > Envoy?: Samedi 26 Novembre 2011 15h49:27 GMT +01:00 Amsterdam / Berlin / > Berne / Rome / Stockholm / Vienne > Objet: Re: [mapserver-users] - SQL Server 2008 > > The mapfile won't change so much. Basically your layer will have layer > name, type, connection type and then in connection param something > like > > > "MSSQL:dsn=MY_DSN;server=(local);database=DBNAME_HERE;tables=myscheme.mytable;uid=USER_HERE;pwd=PWD_HERE" > mytable > > Check OGR docs for more info http://www.gdal.org/ogr/drv_mssqlspatial.html > > You might need freetds + unixodbc too > > http://www.sommarskog.se/mssqlperl/unix.html > http://comments.gmane.org/gmane.comp.db.tds.freetds/13292 > > In advance I can tell what I got: I gave up using default > geometry/spatial types/functions from SQL 2008 - to slow, no official > docs is available. > > To speed it up, I installed MsSqlSpatial lib (originally developed for > SQL 2005 but also works for 2008) on SQL 2008 database + ODBC OGR > driver on MapServer. And then spatial SQL speed gone 10-15 times over > standard ms sql 2008 types > > > > Eduardo Patto Kanegae > http://www.webmapit.com | @webmapit > > > 2011/11/26 > > > > Ok but I try to use it on Linux. Do you have some examples of mapfile to > specify a sql 2008 connection ? > > > > ----- Mail Original ----- > > De: "Eduardo Kanegae" > > ?: "MapServer Users" > > Envoy?: Samedi 26 Novembre 2011 00h00:11 GMT +01:00 Amsterdam / Berlin / > Berne / Rome / Stockholm / Vienne > > Objet: Re: [mapserver-users] - SQL Server 2008 > > > > I'm sure about 2008 but 2000/2005 you can connect using FreeTDS client > > libs - and probably an ODBC connection. > > > > I also plan to publish more experiments using 2008/2005 > > http://blog.webmapit.com/2011/11/ms-sql-2008-spatial-experiments.html > > > > regards > > > > Eduardo Patto Kanegae > > http://www.webmapit.com | @webmapit > > > > > > 2011/11/25 > > > > > > Hi, > > > > > > I would like to create a mapfile with SQL Server 2008 connection but i > don't know how to configure it. With Windows, the driver is mssql2008.dll > but my server run on Linux. How to do it ? > > > When MapServer is running with fcgid mode, what's the best > configuration ? Is it possible to have some examples of fcgid.conf ? > > > > > > Thanks > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > 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 kai.behncke at fossgis.de Tue Dec 13 06:55:43 2011 From: kai.behncke at fossgis.de (kai.behncke at fossgis.de) Date: Tue, 13 Dec 2011 15:55:43 +0100 Subject: [mapserver-users] FOSSGIS-Conference - Call for papers - Deadline now: December, 23 Message-ID: <6ede9b0dae07477780a2774903b3f2bf@mail.fossgis.de> Dear Free and Open Source GI-Software- and OSM-Users, please apologize any cross-postings...... FOSSGIS is a German-language conference (Free and Open Source GI Software and OpenStreetMap) primarily for a German audience. The program committee will, however, also consider applications for talks or workshops held in English if they are deeemed to add to the quality of the conference. So if you don't speak German, but are a FOSS/Open Data celebrity, or have a story that only you can tell, please do submit your talk. We are unlikely to be able to provide interpreters, but we'll make sure you don't get lost in Germany. Please be aware that you can submit paper until December, 23.: http://www.fossgis.de/konferenz/2012/callforpapers/ We are looking forward to see you in Dessau from March, 20. to March, 23. http://www.fossgis.de/konferenz/2012/ Your FOSSGIS-Team In German: Potsdam, 13. Dezember 2011 - Die FOSSGIS und OpenStreetMap Konferenz 2012 ? die gr??te deutschsprachige Anwenderkonferenz f?r Freie Geo-Informationssysteme und freie Geodaten ? findet vom 20. bis 22. M?rz 2012 an der Hochschule Anhalt in Dessau-Ro?lau statt. Die Konferenz bietet Ihnen die M?glichkeit, Ideen, Themen oder Anwendungen zum Thema OSM und Freie Geo-Informationssysteme und freie Geodaten zu pr?sentieren. Hierf?r wurde die Frist f?r das Einreichen von Vortr?gen, Poster oder Workshops noch bis zum 23.12.2011 verl?ngert. Ideen und Anreize finden Sie auch in den Vortr?gen aus dem letzten Jahr unter http://www.fossgis.de/konferenz/2011/programm/index.de.html FOSSGIS ist die Abk?rzung f?r Freie und Open Source Software f?r Geoinformationssysteme und ist die f?hrende Konferenz zu diesem Thema im deutschsprachigen Raum. Ausgerichtet wird die FOSSGIS Konferenz 2012 vom gemeinn?tzigen Verein FOSSGIS e.V, der OpenStreetMap Community und der Open Source Geospatial Foundation (OSGeo) in Zusammenarbeit mit der Hochschule Anhalt in Dessau. Weitere Informationen finden Sie unter http://www.fossgis.de/konferenz/2012/callforpapers/ Wir freuen uns ?ber Ihr Interesse und ?ber eine aktive Teilnahme an der FOSSGIS 2012! From Steve.Lime at state.mn.us Tue Dec 13 08:14:27 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 13 Dec 2011 16:14:27 +0000 Subject: [mapserver-users] GEOMTRANSFORM LABELPNT example In-Reply-To: References: <4EE37F24.7000902@swoodbridge.com><32b1704a26c66f794e096cbeb1e3059d.squirrel@mail.geoanalytic.com> Message-ID: The intention was for the grey circle to be drawn at the computed label point. The most common use case is drawing a marker with associated text and you don't want them to overlap. If you do want them to overlap, use case would be labeling a highway shield then you must use POSITION CC. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Sunday, December 11, 2011 1:51 AM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example Here is an image and the map file we are using ms4w 3.0.3. We thought the larger grey circle should be drawn in the center of the label text. What have we done wrong? Thanks Ian [cid:image001.png at 01CCB97F.FE886AC0] LAYER DEBUG 5 NAME Test TYPE annotation STATUS DEFAULT FEATURE POINTS -122 33 END TEXT "Some label text" END CLASS LABEL FONT "arialuni" TYPE truetype ENCODING 'UTF-8' SIZE 14 COLOR 255 255 0 POSITION LR OFFSET 8 8 STYLE GEOMTRANSFORM LABELPOLY COLOR 200 50 50 END STYLE GEOMTRANSFORM LABELPNT SYMBOL 'circle' COLOR 100 100 100 SIZE 20 END STYLE COLOR 255 255 255 SYMBOL 'circle' SIZE 6 END END END END -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, December 10, 2011 3:53 PM To: Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example Brent, We copied the example http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location-t d6408065.html. However we see the GEOMTRANSFORM labelpnt drawing the circle on the point location not the center of the label text. Thanks Ian -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Saturday, December 10, 2011 1:25 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] GEOMTRANSFORM LABELPNT example Ian, How are you specifying it in your mapfile? Brent Fraser > Steve, > > We are still not seeing what we expect, we are testing with the ms4w > 3.0.3 install, will this work? > > Thanks > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Saturday, December 10, 2011 7:48 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GEOMTRANSFORM LABELPNT example > > On 12/10/2011 10:36 AM, Ian Walberg wrote: >> Does anyone have an example of the GEOMTRANSFORM LABELPNT? >> >> We have been trying this I were expecting the center to be located on >> the center of the label test border rectangle but we seem to be >> getting the center as the point location. >> >> Any ideas? > > Hi Ian, > > The label point is the that the label is placed about. The actual > label position can change relative to the label point based on > POSITION and other attributes of the label. > > I don't have the RFC in front of me but here is a good example to test > with: > > http://osgeo-org.1803224.n2.nabble.com/GEOMTRANSFORM-labelpnt-location > -t > d6408065.html > > Try varying the LABEL POSITION and see how it behaves. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 15414 bytes Desc: image001.png URL: From nikos at maich.gr Wed Dec 14 06:15:06 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Wed, 14 Dec 2011 16:15:06 +0200 Subject: [mapserver-users] Queryfile w/ ms 5.6.3 In-Reply-To: <20111213170030.C7AA6E00ADA@lists.osgeo.org> References: <20111213170030.C7AA6E00ADA@lists.osgeo.org> Message-ID: <110fc6196a083a3aa1f1d59fd5530a6e@maich.gr> Hello, I have searched but have not found a clear way to use savequery and queryfiles with ms > 5.6. I have seen a few posts regarding the change in the format w/ 5.6x but I have not understood how to implement it. My app/queryfiles/savequery works with ms 5.3 but not w/ 5.6.3 on linux from the fwtools distro. Using postgis layers... I posted in the past regarding queryfiles with ms cgi and was able to get everything running fine w/ yourhelp (S. Lime actually) I am sorry if this has been discussed but I have not been able to find a solution.. regards, nikos From astrid.emde at wheregroup.com Wed Dec 14 08:44:42 2011 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Wed, 14 Dec 2011 16:44:42 -0000 Subject: [mapserver-users] Specify resolution (or pixel size) in WMS requests Message-ID: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> Hello, we tried the parameter MAP.RESOLUTION AND MAP.DEFRESOLUTION with MapServer 6.0.1 and made the following observations. We tested with RESOLUTION=288&MAP.DEFRESOLUTION=72 The size of the symbols and textes was not like we expected. They were often too small. We tested with and without the parameter SYMBOLSCALEDENOM 1.) without SYMBOLSCALEDENOM (none scaled, fix size) ok are: * lines (not scaled) are dispayed correct (ok) * outlines (not scaled) of polygones are dispayed correct (ok). * symbols (not scaled) are displayed correct (ok). * textes (not scaled) are displayed correct (ok).We tested not scaled texts without SYMBOLSCALEDENOM: It's displayed different weather MINSIZE/MAXSIZE is existing or not. 2.) with SYMBOLSCALEDENOM NOT ok: * Scaled symbols are displayed incorrect - too small. * Scaled lines are dispayed incorrect - too small. * scaled outlines of polygones are dispayed incorrect. * Scaled text are dispayed incorrect - too small. For us it would be good to get this problem solved, as at the moment we generate a copy of the mapfile for the print with symbol- and labelsize multiplyed with factor 4. It would be charming to solve the print with one mapfile. We could do testing and maybe I could look for sponsoring too. Is there someone else interested to solve this? Is there a ticket already? Astrid thomas bonfort schrieb: > cgi controls should do the trick? > > http://....../?SERVICE=WMS&....&MAP.RESOLUTION=144&MAP.DEFRESOLUTION=96 > > -- > thomas > > On Mon, Dec 5, 2011 at 17:43, Peter Hopfgartner > wrote: >> Basically, I am looking for a way to something analogous to DEFRESOLUTION in >> a WMS request. The standard says, that a pixel is 0.28 mm x 0.28 mm >> (25.4/0.28 ~= 90.71 DPI). I could not found a way to change this in the WMS >> 1.3.0 standard. >> Is there a MapServer vendor parameter, similar to the one in GeoServer, >> http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options >> ? >> >> Peter >> >> -- >> Peter Hopfgartner R3 GIS http://www.r3-gis.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 -- Mit freundlichen Gr????en Astrid Emde ---------------------------------- Aufwind durch Wissen! Qualifizierte OpenSource-Schulungen bei der www.foss-academy.eu ---------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Eifelstra??e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement??rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl??sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated From jjackson at franklincountyohio.gov Wed Dec 14 09:04:44 2011 From: jjackson at franklincountyohio.gov (Jackson, John) Date: Wed, 14 Dec 2011 12:04:44 -0500 Subject: [mapserver-users] assign layer to multiple groups Message-ID: Good afternoon, Is it possible to assign a mapserver layer to multiple groups? What I'm trying to do is create a combined "initial" group of several layers that I want rendered all at once, but I also want the layers classified into separate groups for futher map requests... In essence, I want to group my layers in multiple ways. (This would currently be on MapServer 5.6) Thanks for the help. John Jackson Deputy Auditor 373 South High St, 19th floor Columbus, Ohio 43215-6310 www.franklincountyauditor.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Dec 14 09:54:45 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 14 Dec 2011 17:54:45 +0000 Subject: [mapserver-users] Specify resolution (or pixel size) in WMS requests In-Reply-To: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> References: <4e2df992bb8902871d2f3b7357e5a51e.squirrel@troubadix.wheregroup.com> Message-ID: <84446DEF76453C439E9E97E438E13A6305ECE3@suutari.haapa.mmm.fi> Hi, Could you possible create a couple of images showing what is the current situation and how would you like the image to look like, together with corresponding parts of mapfile and requests you have used? -Jukka Rahkonen- ________________________________________ Astrid Emde wrote: Hello, we tried the parameter MAP.RESOLUTION AND MAP.DEFRESOLUTION with MapServer 6.0.1 and made the following observations. We tested with RESOLUTION=288&MAP.DEFRESOLUTION=72 The size of the symbols and textes was not like we expected. They were often too small. We tested with and without the parameter SYMBOLSCALEDENOM 1.) without SYMBOLSCALEDENOM (none scaled, fix size) ok are: * lines (not scaled) are dispayed correct (ok) * outlines (not scaled) of polygones are dispayed correct (ok). * symbols (not scaled) are displayed correct (ok). * textes (not scaled) are displayed correct (ok).We tested not scaled texts without SYMBOLSCALEDENOM: It's displayed different weather MINSIZE/MAXSIZE is existing or not. 2.) with SYMBOLSCALEDENOM NOT ok: * Scaled symbols are displayed incorrect - too small. * Scaled lines are dispayed incorrect - too small. * scaled outlines of polygones are dispayed incorrect. * Scaled text are dispayed incorrect - too small. For us it would be good to get this problem solved, as at the moment we generate a copy of the mapfile for the print with symbol- and labelsize multiplyed with factor 4. It would be charming to solve the print with one mapfile. We could do testing and maybe I could look for sponsoring too. Is there someone else interested to solve this? Is there a ticket already? Astrid thomas bonfort schrieb: > cgi controls should do the trick? > > http://....../?SERVICE=WMS&....&MAP.RESOLUTION=144&MAP.DEFRESOLUTION=96 > > -- > thomas > > On Mon, Dec 5, 2011 at 17:43, Peter Hopfgartner > wrote: >> Basically, I am looking for a way to something analogous to DEFRESOLUTION in >> a WMS request. The standard says, that a pixel is 0.28 mm x 0.28 mm >> (25.4/0.28 ~= 90.71 DPI). I could not found a way to change this in the WMS >> 1.3.0 standard. >> Is there a MapServer vendor parameter, similar to the one in GeoServer, >> http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options >> ? >> >> Peter >> >> -- >> Peter Hopfgartner R3 GIS http://www.r3-gis.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 -- Mit freundlichen Gr????en Astrid Emde ---------------------------------- Aufwind durch Wissen! Qualifizierte OpenSource-Schulungen bei der www.foss-academy.eu ---------------------------------- Astrid Emde WhereGroup GmbH & Co.KG Eifelstra??e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement??rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl??sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ealpert at digitalglobe.com Wed Dec 14 15:41:25 2011 From: ealpert at digitalglobe.com (Ethan Alpert) Date: Wed, 14 Dec 2011 16:41:25 -0700 Subject: [mapserver-users] mapserver compiled with jpeg v7 and GDAL with internal JPEG results in core dumps (SIGSEGV) Message-ID: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com> I've been running down a mapserver core dump for most of the day. It appears that when I compile GDAL 1.8.1 with it's internal JPEG library and mapserver links to libjpeg.so.7 BAD things happen. I tried compiling mapserver with -without-jpeg but configure errors out: configure: checking whether we should include JPEG support... configure: error: "Could not find jpeglib.h or libjpeg.a/libjpeg.so/libjpeg.dylib in /dg/local/apps/osgeo_pack/source/build/mapserver-6.0.1/no." It appears that when linking mapserver GDAL's internal version of jpeg_CreateDecompress is not used during a GDALOpenShared. Instead the libjpeg linked to mapserver is used which in this case is jpeg 7. GDAL dies horribly. Not sure what to do about this. Going to think about it overnight. -e This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Wed Dec 14 15:51:12 2011 From: even.rouault at mines-paris.org (Even Rouault) Date: Thu, 15 Dec 2011 00:51:12 +0100 Subject: [mapserver-users] mapserver compiled with jpeg v7 and GDAL with internal JPEG results in core dumps (SIGSEGV) In-Reply-To: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com> References: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com> Message-ID: <201112150051.12591.even.rouault@mines-paris.org> Le jeudi 15 d?cembre 2011 00:41:25, Ethan Alpert a ?crit : > I've been running down a mapserver core dump for most of the day. It > appears that when I compile GDAL 1.8.1 with it's internal JPEG library > and mapserver links to libjpeg.so.7 BAD things happen. > > > > I tried compiling mapserver with -without-jpeg but configure errors out: > > > > configure: checking whether we should include JPEG support... > > configure: error: "Could not find jpeglib.h or > libjpeg.a/libjpeg.so/libjpeg.dylib in > /dg/local/apps/osgeo_pack/source/build/mapserver-6.0.1/no." > > > > It appears that when linking mapserver GDAL's internal version of > jpeg_CreateDecompress is not used during a GDALOpenShared. Instead the > libjpeg linked to mapserver is used which in this case is jpeg 7. > > > > GDAL dies horribly. > > > > Not sure what to do about this. Going to think about it overnight. You can not safely mix libraries of different versions. There's absolutely no guarantee that GDAL will use the internal libjpeg if an application links to GDAL and another version of libjpeg. The best is to rebuild GDAL with external libjpeg support, so that both GDAL and mapserver use the same version of libjpeg. > > > > -e > > > This electronic communication and any attachments may contain confidential > and proprietary information of DigitalGlobe, Inc. If you are not the > intended recipient, or an agent or employee responsible for delivering > this communication to the intended recipient, or if you have received this > communication in error, please do not print, copy, retransmit, disseminate > or otherwise use the information. Please indicate to the sender that you > have received this communication in error, and delete the copy you > received. DigitalGlobe reserves the right to monitor any electronic > communication sent or received by its employees, agents or > representatives. From cheung.jackey at gmail.com Wed Dec 14 17:19:30 2011 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Thu, 15 Dec 2011 09:19:30 +0800 Subject: [mapserver-users] Why failed to hard wrap labels? In-Reply-To: References: Message-ID: I've filed a new ticket http://trac.osgeo.org/mapserver/ticket/4125 Thanks. On Wed, Dec 14, 2011 at 7:09 PM, thomas bonfort wrote: > Jackey, > I have reproduced your issue and confirm it's a bug. Please open a > ticket for this and I will fix it asap. > > regards, > thomas > > On Wed, Dec 14, 2011 at 11:46, Jackey Cheung wrote: >> Hi all, >> >> >> I have met a weird situation while using hard wraps on labels. I >> haven't tried on English labels, the same wrapping setting yields >> different results when applied to Chinese labels. It's not the first >> time i have met this problem, nor the sending mail here. This time I >> have made a test case. >> >> Attached is a map file for testing, and its output (cropped). In the >> output image, you can see the there is a single-line label at the >> upper left corner, while another wrapped label at the lower right. >> Both labels are set to hard wrapping on the fourth character >> (MAXLENGTH -4). However, only the longer one seems wrapped correctly. >> >> Since the font displaying is not important here, i have not attached >> the font used here. >> >> Below are two more strings for testing, one can just replace the TEXT >> with them. In case anyone curious enough, the first 6 characters in >> the second string are exactly the same as the first string. >> "??????" >> "?????? (????)" >> >> _______________________________________________ >> 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 Dec 14 21:29:39 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 15 Dec 2011 05:29:39 +0000 Subject: [mapserver-users] WFS fails is PostGIS table has capital characters in the name Message-ID: <84446DEF76453C439E9E97E438E13A6305EE5C@suutari.haapa.mmm.fi> Hi, It seems that Mapserver WFS fails if the PostGIS source table has capitalised characters in the name. For example with table named Natura2000_Suomi_2010 the DescibeFeatureType fails and error suggests that Mapserver is usin table name "natura2000_suomi_2010" in the query instead. [Thu Dec 15 07:22:38 2011].109270 msPostGISLayerGetItems(): Query error. Error (ERROR: relation "natura2000_suomi_2010" does not exist LINE 1: select * from Natura2000_Suomi_2010 where false limit 0 My Mapserver version is 6.0.1 on Ubuntu Linux. -Jukka Rahkonen- From nikos at maich.gr Thu Dec 15 00:38:10 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Thu, 15 Dec 2011 10:38:10 +0200 Subject: [mapserver-users] Queryfile w/ ms 5.6.3 In-Reply-To: <20111214170023.02E86E01050@lists.osgeo.org> References: <20111214170023.02E86E01050@lists.osgeo.org> Message-ID: <4beaeea2aafd84ac8a86227aa46a0eba@maich.gr> Bump > 1. Queryfile w/ ms 5.6.3 > I have searched but have not found a clear way to use savequery and > queryfiles with ms > 5.6. > I have seen a few posts regarding the change in the format w/ 5.6x > but > I have not understood how to implement it. > My app/queryfiles/savequery works with ms 5.3 but not w/ 5.6.3 on > linux > from the fwtools distro. > > Using postgis layers... > I posted in the past regarding queryfiles with ms cgi and was able > to > get everything running fine w/ yourhelp (S. Lime actually) > I am sorry if this has been discussed but I have not been able to > find > a solution.. > > regards, > nikos From amkha.nazou at gmail.com Thu Dec 15 01:14:05 2011 From: amkha.nazou at gmail.com (Amkha VAYAPHATH) Date: Thu, 15 Dec 2011 01:14:05 -0800 Subject: [mapserver-users] Amkha VAYAPHATH wants to chat Message-ID: ----------------------------------------------------------------------- Amkha VAYAPHATH wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-a92ec54d39-a2f24e1a48-mdMVC10nOD_3BCdOODrfV-yjR6A You'll need to click this link to be able to chat with Amkha VAYAPHATH. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with Amkha VAYAPHATH, visit: http://mail.google.com/mail/a-a92ec54d39-a2f24e1a48-mdMVC10nOD_3BCdOODrfV-yjR6A Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into "conversations" - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). From lasmasi at gmail.com Thu Dec 15 03:58:11 2011 From: lasmasi at gmail.com (Lasma Sietinsone) Date: Thu, 15 Dec 2011 11:58:11 +0000 Subject: [mapserver-users] Templating CAIRO/PDF in MapServer 6.x? Message-ID: Hi all, First of all I would like to say that MapServer developers have done great job integrating libcairo support in MapServer 6, PDF output quality is superb! I wish to publish my maps from MapServer as PDF but I have the following problem: I don't know if and how it is possible to template them! I would like to add to my PDF files such basic things as title, scalebar and legend. Ideally, I would like to template PDFs in similar fashion as templating custom kml, xml outputs. I have reviewed MapServer documentation and searched mailing lists but did not find any solution. Any tips, tricks, workarounds from users and hackers would be greatly appreciated! Kind regards, Lasma -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at usace.army.mil Thu Dec 15 04:15:02 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 15 Dec 2011 12:15:02 +0000 Subject: [mapserver-users] WFS fails is PostGIS table has capital characters in the name In-Reply-To: <84446DEF76453C439E9E97E438E13A6305EE5C@suutari.haapa.mmm.fi> Message-ID: Jukka, Does it work if you quote the name? In Oracle, if you have mixed case table names, then those table names have to be quoted. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/15/11 12:29 AM, "Rahkonen Jukka" wrote: >Hi, > >It seems that Mapserver WFS fails if the PostGIS source table has >capitalised characters in the name. For example with table named >Natura2000_Suomi_2010 the DescibeFeatureType fails and error suggests >that Mapserver is usin table name >"natura2000_suomi_2010" in the query instead. > >[Thu Dec 15 07:22:38 2011].109270 msPostGISLayerGetItems(): Query error. >Error (ERROR: relation "natura2000_suomi_2010" does not exist >LINE 1: select * from Natura2000_Suomi_2010 where false limit 0 > >My Mapserver version is 6.0.1 on Ubuntu Linux. > >-Jukka Rahkonen- >_______________________________________________ >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 Dec 15 04:51:59 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 15 Dec 2011 12:51:59 +0000 Subject: [mapserver-users] WFS fails is PostGIS table has capital characters in the name In-Reply-To: References: <84446DEF76453C439E9E97E438E13A6305EE5C@suutari.haapa.mmm.fi>, Message-ID: <84446DEF76453C439E9E97E438E13A6305EF28@suutari.haapa.mmm.fi> Hi, Well, this works really: DATA 'the_geom from "mml_AVI1_l" using unique gid using srid=3067' There must by outer single quetes and inner double ones. But this has a funny side effect. GetFeatures are working now both with &typeName=mml_AVI1_l and &typeName=mml_avi1_l. Usually in OWS services the values in the key/value pairs are case sensitive. Single quotes inside double ones do not work because they are directly included in the SQL . The following definition DATA "the_geom from 'mml_AVI1_l' using unique gid using srid=3067" leads to SQL query containing SELECT ... from 'mml_AVI1_l' ... Double quote naturally breaks the DATA line, I have renamed my tables to use only undercase but direct import of shapefiles can easily create mixed case table names. A related question, does WFS schema officially accept uppercase letters in typeNames? It is different thing than the real names of database tables but I am mostly using the the table names also as typeNames. The WFS clients which I am using have not complained about mixed case names. TinyOWS accepts those too. -Jukka Rahkonen- ________________________________________ Smith, Michael wrote: > Jukka, > Does it work if you quote the name? In Oracle, if you have mixed case > table names, then those table names have to be quoted. > Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/15/11 12:29 AM, "Rahkonen Jukka" wrote: >Hi, > >It seems that Mapserver WFS fails if the PostGIS source table has >capitalised characters in the name. For example with table named >Natura2000_Suomi_2010 the DescibeFeatureType fails and error suggests >that Mapserver is usin table name >"natura2000_suomi_2010" in the query instead. > >[Thu Dec 15 07:22:38 2011].109270 msPostGISLayerGetItems(): Query error. >Error (ERROR: relation "natura2000_suomi_2010" does not exist >LINE 1: select * from Natura2000_Suomi_2010 where false limit 0 > >My Mapserver version is 6.0.1 on Ubuntu Linux. > >-Jukka Rahkonen- >_______________________________________________ >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 Dec 15 05:01:30 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 15 Dec 2011 13:01:30 +0000 Subject: [mapserver-users] Non-ASCII characters in "wfs_title" break WFS GetCapabilities Message-ID: <84446DEF76453C439E9E97E438E13A6305EF3B@suutari.haapa.mmm.fi> Hi, I noticed that I cannot use non-ASCII characters (??????) in "wfs_title" metadata element because they break at least GetCapabilities. Mapserver version is 6.0.1. -Jukka Rahkonen- From jmckenna at gatewaygeomatics.com Thu Dec 15 05:24:40 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 15 Dec 2011 09:24:40 -0400 Subject: [mapserver-users] WFS fails is PostGIS table has capital characters in the name In-Reply-To: <84446DEF76453C439E9E97E438E13A6305EE5C@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6305EE5C@suutari.haapa.mmm.fi> Message-ID: <4EE9F518.8080508@gatewaygeomatics.com> On 11-12-15 1:29 AM, Rahkonen Jukka wrote: > Hi, > > It seems that Mapserver WFS fails if the PostGIS source table has capitalised characters in the name. For example with table named Natura2000_Suomi_2010 the DescibeFeatureType fails and error suggests that Mapserver is usin table name > "natura2000_suomi_2010" in the query instead. > > [Thu Dec 15 07:22:38 2011].109270 msPostGISLayerGetItems(): Query error. Error (ERROR: relation "natura2000_suomi_2010" does not exist > LINE 1: select * from Natura2000_Suomi_2010 where false limit 0 > > My Mapserver version is 6.0.1 on Ubuntu Linux. > Although Mike already answered this: I just went through a client's PG database with mixed-case fieldnames, having to do WFS queries, and I can tell you that I always always always make sure the query works through ogrinfo first (and yes I had to do many crazy single/double quotes to make these queries work). Once I have a working syntax through the ogrinfo utility (and its -sql switch) then I port that into the MapServer mapfile. Short answer: always use ogrinfo first (with its -sql switch to duplicate the query). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From michal.sredl at gmail.com Thu Dec 15 08:09:54 2011 From: michal.sredl at gmail.com (=?ISO-8859-2?B?TWljaGFsIKly6WRs?=) Date: Thu, 15 Dec 2011 17:09:54 +0100 Subject: [mapserver-users] MapServer as WFS 1.1.0 does NOT support correct axis order Message-ID: Hi all, we met a bug related to axis order in WFS 1.1.0 as described here: http://trac.osgeo.org/mapserver/ticket/4118 Have anybody had a time already to check it? Thanks a lot, Michal From ealpert at digitalglobe.com Thu Dec 15 08:23:28 2011 From: ealpert at digitalglobe.com (Ethan Alpert) Date: Thu, 15 Dec 2011 09:23:28 -0700 Subject: [mapserver-users] mapserver compiled with jpeg v7 and GDAL with internal JPEG results in core dumps (SIGSEGV) In-Reply-To: <201112150051.12591.even.rouault@mines-paris.org> References: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com> <201112150051.12591.even.rouault@mines-paris.org> Message-ID: <8B319E5A30FF4A48BE7EEAAF609DB2330869B612@COMAIL01.digitalglobe.com> I agree. Problem here is I now have to downgrade jpeg because GDAL will only work with v62. Since I have a whole suite of image processing utilities I will have to rebuild my entire runtime. You can not safely mix libraries of different versions. There's absolutely no guarantee that GDAL will use the internal libjpeg if an application links to GDAL and another version of libjpeg. The best is to rebuild GDAL with external libjpeg support, so that both GDAL and mapserver use the same version of libjpeg. This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. From ealpert at digitalglobe.com Thu Dec 15 08:41:08 2011 From: ealpert at digitalglobe.com (Ethan Alpert) Date: Thu, 15 Dec 2011 09:41:08 -0700 Subject: [mapserver-users] mapserver compiled with jpeg v7 and GDAL withinternal JPEG results in core dumps (SIGSEGV) In-Reply-To: <8B319E5A30FF4A48BE7EEAAF609DB2330869B612@COMAIL01.digitalglobe.com> References: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com><201112150051.12591.even.rouault@mines-paris.org> <8B319E5A30FF4A48BE7EEAAF609DB2330869B612@COMAIL01.digitalglobe.com> Message-ID: <8B319E5A30FF4A48BE7EEAAF609DB2330869B631@COMAIL01.digitalglobe.com> One more thing. Why doesn't --without-jpeg work for configuration. Since I use GDAL for all my I/O I would thing I don't even need JPEG compiled in to mapserver nor any other format for that matter. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ethan Alpert Sent: Thursday, December 15, 2011 9:23 AM To: Even Rouault; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] mapserver compiled with jpeg v7 and GDAL withinternal JPEG results in core dumps (SIGSEGV) I agree. Problem here is I now have to downgrade jpeg because GDAL will only work with v62. Since I have a whole suite of image processing utilities I will have to rebuild my entire runtime. You can not safely mix libraries of different versions. There's absolutely no guarantee that GDAL will use the internal libjpeg if an application links to GDAL and another version of libjpeg. The best is to rebuild GDAL with external libjpeg support, so that both GDAL and mapserver use the same version of libjpeg. This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. From even.rouault at mines-paris.org Thu Dec 15 10:28:42 2011 From: even.rouault at mines-paris.org (Even Rouault) Date: Thu, 15 Dec 2011 19:28:42 +0100 Subject: [mapserver-users] mapserver compiled with jpeg v7 and GDAL with internal JPEG results in core dumps (SIGSEGV) In-Reply-To: <8B319E5A30FF4A48BE7EEAAF609DB2330869B612@COMAIL01.digitalglobe.com> References: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com> <201112150051.12591.even.rouault@mines-paris.org> <8B319E5A30FF4A48BE7EEAAF609DB2330869B612@COMAIL01.digitalglobe.com> Message-ID: <201112151928.42557.even.rouault@mines-paris.org> Le jeudi 15 d?cembre 2011 17:23:28, Ethan Alpert a ?crit : > I agree. Problem here is I now have to downgrade jpeg because GDAL will > only work with v62. > Are you sure of that ? Did you try to build against libjpeg v7 ? Did you get error messages ? From scott159 at free.fr Thu Dec 15 11:49:39 2011 From: scott159 at free.fr (scott159 at free.fr) Date: Thu, 15 Dec 2011 20:49:39 +0100 (CET) Subject: [mapserver-users] - SQL Server 2008 In-Reply-To: <1055547334.2350571323978332774.JavaMail.root@zimbra45-e7.priv.proxad.net> Message-ID: <39369663.2351061323978579585.JavaMail.root@zimbra45-e7.priv.proxad.net> Hi, I try this command but it's doesn't work : ogrinfo -al "MSSQL:server=.\MSSQLSERVER2008;driver=FreeTDS;database=EXAMPLE;trusted_connection=yes" I'm not sure for values in server and driver. server=.\MSSQLSERVER2008 or server=XX.XX.XX.XX driver=FreeTDS or driver=[value from freetds.conf] scott ----- Mail Original ----- De: "Tamas Szekeres" ?: scott159 at free.fr Cc: "Eduardo Kanegae" , "MapServer Users" Envoy?: Mercredi 14 D?cembre 2011 12h37:51 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [mapserver-users] - SQL Server 2008 Hi, I think the OGR MSSQL Spatial driver would be a better choice than OGR ODBC to connect to MS SQL Server 2008. You may however specify the driver in the connection string explicitly. The default is driver={SQL Server} which may not be sufficient in non Windows environments. You may probably use: "MSSQL:driver=FreeTDS;..." You may also require to use the latest SVN (trunk or branch-1-8) in order to get it working. Best regards, Tamas 2011/12/13 < scott159 at free.fr > Hi, I install and configure FreeTDS and unixodbc to connect to SQL Server 2008. Everything is ok when I request database with tsql. But when I launch "ogrinfo ODBC:user/pwd at DSN", I have this error message : [unixodbc] [driver manager] data source name not found and no default driver specified What's the solution, environment variable ... ? Thanks ----- Mail Original ----- De: "Eduardo Kanegae" < eduardo.kanegae at gmail.com > ?: "MapServer Users" < mapserver-users at lists.osgeo.org > Envoy?: Samedi 26 Novembre 2011 15h49:27 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [mapserver-users] - SQL Server 2008 The mapfile won't change so much. Basically your layer will have layer name, type, connection type and then in connection param something like "MSSQL:dsn=MY_DSN;server=(local);database=DBNAME_HERE;tables=myscheme.mytable;uid=USER_HERE;pwd=PWD_HERE" mytable Check OGR docs for more info http://www.gdal.org/ogr/drv_mssqlspatial.html You might need freetds + unixodbc too http://www.sommarskog.se/mssqlperl/unix.html http://comments.gmane.org/gmane.comp.db.tds.freetds/13292 In advance I can tell what I got: I gave up using default geometry/spatial types/functions from SQL 2008 - to slow, no official docs is available. To speed it up, I installed MsSqlSpatial lib (originally developed for SQL 2005 but also works for 2008) on SQL 2008 database + ODBC OGR driver on MapServer. And then spatial SQL speed gone 10-15 times over standard ms sql 2008 types Eduardo Patto Kanegae http://www.webmapit.com | @webmapit 2011/11/26 < scott159 at free.fr > > > Ok but I try to use it on Linux. Do you have some examples of mapfile to specify a sql 2008 connection ? > > ----- Mail Original ----- > De: "Eduardo Kanegae" < eduardo.kanegae at gmail.com > > ?: "MapServer Users" < mapserver-users at lists.osgeo.org > > Envoy?: Samedi 26 Novembre 2011 00h00:11 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne > Objet: Re: [mapserver-users] - SQL Server 2008 > > I'm sure about 2008 but 2000/2005 you can connect using FreeTDS client > libs - and probably an ODBC connection. > > I also plan to publish more experiments using 2008/2005 > http://blog.webmapit.com/2011/11/ms-sql-2008-spatial-experiments.html > > regards > > Eduardo Patto Kanegae > http://www.webmapit.com | @webmapit > > > 2011/11/25 < scott159 at free.fr > > > > > Hi, > > > > I would like to create a mapfile with SQL Server 2008 connection but i don't know how to configure it. With Windows, the driver is mssql2008.dll but my server run on Linux. How to do it ? > > When MapServer is running with fcgid mode, what's the best configuration ? Is it possible to have some examples of fcgid.conf ? > > > > Thanks > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu Dec 15 12:55:19 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 15 Dec 2011 20:55:19 +0000 Subject: [mapserver-users] Queryfile w/ ms 5.6.3 In-Reply-To: <110fc6196a083a3aa1f1d59fd5530a6e@maich.gr> References: <20111213170030.C7AA6E00ADA@lists.osgeo.org> <110fc6196a083a3aa1f1d59fd5530a6e@maich.gr> Message-ID: I guess I don't follow your question. While the format of the file changed the method to use it hasn't. Can you be more specific? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of nikos at maich.gr Sent: Wednesday, December 14, 2011 8:15 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Queryfile w/ ms 5.6.3 Hello, I have searched but have not found a clear way to use savequery and queryfiles with ms > 5.6. I have seen a few posts regarding the change in the format w/ 5.6x but I have not understood how to implement it. My app/queryfiles/savequery works with ms 5.3 but not w/ 5.6.3 on linux from the fwtools distro. Using postgis layers... I posted in the past regarding queryfiles with ms cgi and was able to get everything running fine w/ yourhelp (S. Lime actually) I am sorry if this has been discussed but I have not been able to find a solution.. regards, nikos _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu Dec 15 14:06:14 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 15 Dec 2011 22:06:14 +0000 Subject: [mapserver-users] RE: assign layer to multiple groups In-Reply-To: References: Message-ID: Unfortunately no. You might be able to do it on the client side depending on what tool you're using. That is, manage a list of layers as a delimited string (layer1,layer1,layer3) and then pass that list depending on need. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Wednesday, December 14, 2011 11:05 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] assign layer to multiple groups Good afternoon, Is it possible to assign a mapserver layer to multiple groups? What I'm trying to do is create a combined "initial" group of several layers that I want rendered all at once, but I also want the layers classified into separate groups for futher map requests... In essence, I want to group my layers in multiple ways. (This would currently be on MapServer 5.6) Thanks for the help. John Jackson Deputy Auditor 373 South High St, 19th floor Columbus, Ohio 43215-6310 www.franklincountyauditor.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at digitalglobe.com Thu Dec 15 14:21:22 2011 From: ealpert at digitalglobe.com (Ethan Alpert) Date: Thu, 15 Dec 2011 15:21:22 -0700 Subject: [mapserver-users] mapserver compiled with jpeg v7 and GDAL with internal JPEG results in core dumps (SIGSEGV) In-Reply-To: <201112151928.42557.even.rouault@mines-paris.org> References: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com> <201112150051.12591.even.rouault@mines-paris.org> <8B319E5A30FF4A48BE7EEAAF609DB2330869B612@COMAIL01.digitalglobe.com> <201112151928.42557.even.rouault@mines-paris.org> Message-ID: <8B319E5A30FF4A48BE7EEAAF609DB2330869B79A@COMAIL01.digitalglobe.com> It builds find but gdal_translate complains when you run it that the jpeg version is not 62 -----Original Message----- From: Even Rouault [mailto:even.rouault at mines-paris.org] Sent: Thursday, December 15, 2011 11:29 AM To: Ethan Alpert Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapserver compiled with jpeg v7 and GDAL with internal JPEG results in core dumps (SIGSEGV) Le jeudi 15 d?cembre 2011 17:23:28, Ethan Alpert a ?crit : > I agree. Problem here is I now have to downgrade jpeg because GDAL will > only work with v62. > Are you sure of that ? Did you try to build against libjpeg v7 ? Did you get error messages ? This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. From even.rouault at mines-paris.org Thu Dec 15 14:30:18 2011 From: even.rouault at mines-paris.org (Even Rouault) Date: Thu, 15 Dec 2011 23:30:18 +0100 Subject: [mapserver-users] mapserver compiled with jpeg v7 and GDAL with internal JPEG results in core dumps (SIGSEGV) In-Reply-To: <8B319E5A30FF4A48BE7EEAAF609DB2330869B79A@COMAIL01.digitalglobe.com> References: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com> <201112151928.42557.even.rouault@mines-paris.org> <8B319E5A30FF4A48BE7EEAAF609DB2330869B79A@COMAIL01.digitalglobe.com> Message-ID: <201112152330.18645.even.rouault@mines-paris.org> Le jeudi 15 d?cembre 2011 23:21:22, Ethan Alpert a ?crit : > It builds find but gdal_translate complains when you run it that the jpeg > version is not 62 Hum, did you check the include line when the jpeg driver is compiled ? I guess there must be in it the path to the include files of the "old" libjpeg version (perhaps in /usr/include). Looking at GDAL makefiles, they make sure to not include the internal libjpeg header if GDAL is configured for external libjpeg build, so I don't think the issue comes from here. But if you have libjpeg 6.2 headers in /usr/include and libjpeg 7 headers in /usr/local/include, a big mess could happen. > > -----Original Message----- > From: Even Rouault [mailto:even.rouault at mines-paris.org] > Sent: Thursday, December 15, 2011 11:29 AM > To: Ethan Alpert > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] mapserver compiled with jpeg v7 and GDAL > with internal JPEG results in core dumps (SIGSEGV) > > Le jeudi 15 d?cembre 2011 17:23:28, Ethan Alpert a ?crit : > > I agree. Problem here is I now have to downgrade jpeg because GDAL will > > only work with v62. > > Are you sure of that ? Did you try to build against libjpeg v7 ? Did you > get error messages ? > > This electronic communication and any attachments may contain confidential > and proprietary information of DigitalGlobe, Inc. If you are not the > intended recipient, or an agent or employee responsible for delivering > this communication to the intended recipient, or if you have received this > communication in error, please do not print, copy, retransmit, disseminate > or otherwise use the information. Please indicate to the sender that you > have received this communication in error, and delete the copy you > received. DigitalGlobe reserves the right to monitor any electronic > communication sent or received by its employees, agents or > representatives. From Clement.MONIER at v-trafic.com Fri Dec 16 03:35:41 2011 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Fri, 16 Dec 2011 12:35:41 +0100 Subject: [mapserver-users] [WMS] Styles not working with mode=tile Message-ID: <0B6D7F516315594DBEFE58178D91BD320202688A3879@exchangemm.mm.fr> Hi, I'm applying styles to my list of layers inside a WMS request, using the classgroup/class/group system in the mapfile. It works fine when no "tile mode" is used (bbox instead) : If I launch this request http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=style2&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&bbox=-35,10,52,15&WIDTH=600&HEIGHT=600 style2 is applied to layer1 But it doesn't work if the request uses tile mode : http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=style2&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&tile=0+0+0&tilemode=gmap&mode=tile&WIDTH=600&HEIGHT=600 style2 is not applied (default style is applied) Is there a way to apply styles in tile mode ? Thanks & Regards Cl?ment ps : config MS4W MapServer v5.6 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Fri Dec 16 04:44:24 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Fri, 16 Dec 2011 14:44:24 +0200 Subject: [mapserver-users] Re: Queryfile w/ ms 5.6.3 In-Reply-To: <20111215222203.E0B30E00EB8@lists.osgeo.org> References: <20111215222203.E0B30E00EB8@lists.osgeo.org> Message-ID: Hi, Trying to clarify as best as I can.. Simply adding a queryfile parameter (queryfile does exist) ms seg faults on Linux and hangs on win 1. This does NOT choke on XP ms 5.3-dev, dont have an old ms for linux (mandriva)to test.. This chokes, seg faults on Linux, and hangs on windows, /var/www/html/cgi-bin/fw/mapserv -nh "QUERY_STRING=queryfile=/var/www/html/IUNG/tmp/IUNG1324032812.qy&img.x=135&img.y=242&savequery=true&zoomdir=1&zoomsize=2&map=/var/www/html/IUNG/IUNG_aoa.map&imgext=361228.892188 4364612.298438 369032.295312 4372415.701562&mapext=shape&layer=municipalities" nothing is reported in ms_error, debug 5 2. This does not hang in win, or segfault on Linux, on any vesrion...all I've done is taken out the queryfile parameter /var/www/html/cgi-bin/fw/mapserv -nh "QUERY_STRING=queryfile=&img.x=135&img.y=242&savequery=true&zoomdir=1&zoomsize=2&map=/var/www/html/IUNG/IUNG_aoa.map&imgext=361228.892188 4364612.298438 369032.295312 4372415.701562&mapext=shape&layer=municipalities" Maybe it's staring me in the face :-0 regards, nikos From loiselle.guillaume at gmail.com Fri Dec 16 05:18:59 2011 From: loiselle.guillaume at gmail.com (Guillaume Loiselle) Date: Fri, 16 Dec 2011 08:18:59 -0500 Subject: [mapserver-users] [WMS] Styles not working with mode=tile In-Reply-To: <0B6D7F516315594DBEFE58178D91BD320202688A3879@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD320202688A3879@exchangemm.mm.fr> Message-ID: Hi, I can't help you but I'll add that specifying an output format is useless, at least with GMAP tile-mode. Whatever you ask for, you'll receive png. I assumed it was an intended behaviour and supposed googleMap could only use png as an input. Be it the case or not, it would be nice if we could specify the format... Guillaume Loiselle P.S. : message to developers : I think that the tile-mode should only be used as an alternative way to determine the bbox. Other options should not be limited when tile-mode is used. More importantly, we should not be obliged to use a tile-mode way of requesting to use tile_map_edge_buffer. You may disagree and have good programming design reasons to do so. I just wanted to give a user's point of view. 2011/12/16 Cl?ment MONIER > Hi,**** > > ** ** > > I?m applying styles to my list of layers inside a WMS request, using the > classgroup/class/group system in the mapfile.**** > > ** ** > > It works fine when no ?tile mode? is used (bbox instead) :**** > > If I launch this request **** > > > http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=style2&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&bbox=-35,10,52,15&WIDTH=600&HEIGHT=600 > **** > > style2 is applied to layer1**** > > ** ** > > But it doesn?t work if the request uses tile mode :**** > > > http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=style2&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&tile=0+0+0&tilemode=gmap&mode=tile&WIDTH=600&HEIGHT=600 > **** > > style2 is not applied (default style is applied)**** > > ** ** > > Is there a way to apply styles in tile mode ?**** > > ** ** > > Thanks & Regards**** > > ** ** > > *Cl?ment ***** > > ** ** > > ps : config **** > > MS4W**** > > MapServer v5.6**** > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From boesiii at yahoo.com Fri Dec 16 05:41:43 2011 From: boesiii at yahoo.com (boesiii) Date: Fri, 16 Dec 2011 05:41:43 -0800 (PST) Subject: [mapserver-users] Sanitary Sewer Flow Direction Line Symbol Message-ID: <1324042903097-7100828.post@n2.nabble.com> Is it possible to create a line symbol as shown in the picture below, specifically the black arrow, one triangle for each line segment at the downstream point? Please ignore the circles, they are manhole points in a separate shapefile. Thanks, http://osgeo-org.1803224.n2.nabble.com/file/n7100828/san_pipe_symbol.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Sanitary-Sewer-Flow-Direction-Line-Symbol-tp7100828p7100828.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Dec 16 05:49:29 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 16 Dec 2011 14:49:29 +0100 Subject: [mapserver-users] Sanitary Sewer Flow Direction Line Symbol In-Reply-To: <1324042903097-7100828.post@n2.nabble.com> References: <1324042903097-7100828.post@n2.nabble.com> Message-ID: Yes, its possible: STYLE GEOMTRANSFORM "END" ANGLE AUTO SIZE 15 COLOR 0 0 0 SYMBOL "arrow" END -- thomas On Fri, Dec 16, 2011 at 14:41, boesiii wrote: > Is it possible to create a line symbol as shown in the picture below, > specifically the black arrow, one triangle for each line segment at the > downstream point? Please ignore the circles, they are manhole points in a > separate shapefile. Thanks, > ------------------------------ > View this message in context: Sanitary Sewer Flow Direction Line Symbol > Sent from the Mapserver - User mailing list archiveat Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From boesiii at yahoo.com Fri Dec 16 06:41:10 2011 From: boesiii at yahoo.com (boesiii) Date: Fri, 16 Dec 2011 06:41:10 -0800 (PST) Subject: [mapserver-users] Re: Sanitary Sewer Flow Direction Line Symbol In-Reply-To: References: <1324042903097-7100828.post@n2.nabble.com> Message-ID: <1324046470954-7100971.post@n2.nabble.com> Thanks, but it's not quite right, yet. The arrow is offset (above and below) from the line. How would I get it centered on the line? Symbol Name 'flow' Type VECTOR FILLED TRUE Points 1 1.5 0 2 0 1 1 1.5 END END STYLE GEOMTRANSFORM "end" ANGLE auto SIZE 30 COLOR 0 0 0 SYMBOL "flow2" END http://osgeo-org.1803224.n2.nabble.com/file/n7100971/san_pipe_symbol_2.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Sanitary-Sewer-Flow-Direction-Line-Symbol-tp7100828p7100971.html Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.greenwood at gmail.com Fri Dec 16 06:43:20 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Fri, 16 Dec 2011 07:43:20 -0700 Subject: [mapserver-users] Re: Queryfile w/ ms 5.6.3 In-Reply-To: References: <20111215222203.E0B30E00EB8@lists.osgeo.org> Message-ID: On Fri, Dec 16, 2011 at 5:44 AM, wrote: > Hi, > > Trying to clarify as best as I can.. > Simply adding a queryfile parameter (queryfile does exist) ms seg faults on > Linux and hangs on win > > > 1. This does NOT choke on XP ms 5.3-dev, dont have an old ms for linux > (mandriva)to test.. > This chokes, seg faults on Linux, and hangs on windows, > /var/www/html/cgi-bin/fw/mapserv -nh > "QUERY_STRING=queryfile=/var/www/html/IUNG/tmp/IUNG1324032812.qy&img.x=135&img.y=242&savequery=true&zoomdir=1&zoomsize=2&map=/var/www/html/IUNG/IUNG_aoa.map&imgext=361228.892188 > 4364612.298438 369032.295312 > 4372415.701562&mapext=shape&layer=municipalities" > > nothing is reported in ms_error, debug 5 Nikos - Did you create your query files with the same version of MapServer as you are truing to read it with? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Jukka.Rahkonen at mmmtike.fi Fri Dec 16 06:55:18 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 16 Dec 2011 14:55:18 +0000 Subject: [mapserver-users] Cannot get OGR output to work Message-ID: <84446DEF76453C439E9E97E438E13A6305F24B@suutari.haapa.mmm.fi> Hi, I wonder if anybody has managed to make the OGR output to work? For me all my trials have stopped to an error that seems to mean that Mapserver can't write out a temporary file. The same happens both on Windows and Linux. I hope that somebody else would repeat the test and I have tried to make it pretty easy for MS4W users. It should be enough to unzip the following file into a directory \MS4W\map and then start running my WFS request examples Test data (mapfile and a small shapefile) http://latuviitta.org/documents/wfs_outputformat_test.zip GetCapabilities is OK for me http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.map&service=wfs&version=1.0.0&request=getcapabilities DescribeFeatureType is OK for me http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.map&service=wfs&version=1.0.0&request=describefeaturetype&typename=wfs_polygons GetFeature with default outputformat is OK for me http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.map&service=wfs&version=1.0.0&request=getfeature&typename=wfs_polygons&maxfeatures=1 GetFeature with default outputformat is OK for me http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.map&service=wfs&version=1.0.0&request=getfeature&typename=wfs_polygons&maxfeatures=1 GetFeature with CSV outputformat fails for me http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.map&service=wfs&version=1.0.0&request=getfeature&typename=wfs_polygons&maxfeatures=1&outputformat=CSV GetFeature with SHAPEZIP outputformat fails for me http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.map&service=wfs&version=1.0.0&request=getfeature&typename=wfs_polygons&maxfeatures=1&outputformat=SHAPEZIP Regards, -Jukka Rahkonen- From thomas.bonfort at gmail.com Fri Dec 16 07:07:39 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 16 Dec 2011 16:07:39 +0100 Subject: [mapserver-users] Re: Sanitary Sewer Flow Direction Line Symbol In-Reply-To: <1324046470954-7100971.post@n2.nabble.com> References: <1324042903097-7100828.post@n2.nabble.com> <1324046470954-7100971.post@n2.nabble.com> Message-ID: multiple workarounds: - trunk has ANCHORPOINT, which can be used for that. - use a truetype symbol - define a vector symbol that starts at (0,0) On Fri, Dec 16, 2011 at 15:41, boesiii wrote: > Thanks, but it's not quite right, yet. ?The arrow is offset (above and below) > from the line. ?How would I get it centered on the line? > > Symbol > ? ? ? ?Name 'flow' > ? ? ? ?Type VECTOR > ? ? ? ?FILLED TRUE > ? ? ? ?Points > ? ? ? ? ? ? ? ?1 1.5 > ? ? ? ? ? ? ? ?0 2 > ? ? ? ? ? ? ? ?0 1 > ? ? ? ? ? ? ? ?1 1.5 > ? ? ? ?END > END > > > STYLE > ? GEOMTRANSFORM "end" > ? ANGLE auto > ? SIZE 30 > ? COLOR 0 0 0 > ? SYMBOL "flow2" > END > > http://osgeo-org.1803224.n2.nabble.com/file/n7100971/san_pipe_symbol_2.png > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Sanitary-Sewer-Flow-Direction-Line-Symbol-tp7100828p7100971.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 Michael.Smith at usace.army.mil Fri Dec 16 07:11:42 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Fri, 16 Dec 2011 15:11:42 +0000 Subject: [mapserver-users] Cannot get OGR output to work In-Reply-To: <84446DEF76453C439E9E97E438E13A6305F24B@suutari.haapa.mmm.fi> Message-ID: Jukka, Are the OGR Output formats defined as STORAGE=filesystem? That is the error I've had. There is a ticket for this. http://trac.osgeo.org/mapserver/ticket/4085 On my linux box, I'm using GDAL 1,9 r12670 and not having a problem so I suspect this is a GDAL issue (or a GDAL/MapServer issue). I'll try narrowing down on which version of GDAL this started occurring. Mike On 12/16/11 9:55 AM, "Rahkonen Jukka" wrote: >Hi, > >I wonder if anybody has managed to make the OGR output to work? For me >all my trials have stopped to an error that seems to mean that Mapserver >can't write out a temporary file. The same happens both on Windows and >Linux. > >I hope that somebody else would repeat the test and I have tried to make >it pretty easy for MS4W users. It should be enough to unzip the following >file into a directory \MS4W\map and then start running my WFS request >examples > >Test data (mapfile and a small shapefile) >http://latuviitta.org/documents/wfs_outputformat_test.zip > > > >GetCapabilities is OK for me >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma >p&service=wfs&version=1.0.0&request=getcapabilities > >DescribeFeatureType is OK for me >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma >p&service=wfs&version=1.0.0&request=describefeaturetype&typename=wfs_polyg >ons > >GetFeature with default outputformat is OK for me >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_polygons&maxfe >atures=1 > >GetFeature with default outputformat is OK for me >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_polygons&maxfe >atures=1 > >GetFeature with CSV outputformat fails for me >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_polygons&maxfe >atures=1&outputformat=CSV > >GetFeature with SHAPEZIP outputformat fails for me >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver60_wfs_test.ma >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_polygons&maxfe >atures=1&outputformat=SHAPEZIP > > >Regards, > >-Jukka Rahkonen-_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Fri Dec 16 07:19:24 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 16 Dec 2011 15:19:24 +0000 Subject: [mapserver-users] Cannot get OGR output to work In-Reply-To: References: <84446DEF76453C439E9E97E438E13A6305F24B@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A6305F275@suutari.haapa.mmm.fi> Hi, STORAGE=filesystem, yes, and I am following the ticket. Just wanted to make it easier to start investigating the problem. Other storage alternatives did not work for me any better on Linux but I have not tried them on Windows. I think that filesystem is the one which should work for all drivers. What is odd is that I have managed to get one valid zipped shapefile from Linux server but after that success I have been receiving just empty zips. -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: Smith, Michael ERDC-CRREL-NH > [mailto:Michael.Smith at usace.army.mil] > L?hetetty: 16. joulukuuta 2011 17:12 > Vastaanottaja: Rahkonen Jukka; 'mapserver-users at lists.osgeo.org' > Aihe: Re: [mapserver-users] Cannot get OGR output to work > > Jukka, > > Are the OGR Output formats defined as STORAGE=filesystem? That is the > error I've had. > > There is a ticket for this. > http://trac.osgeo.org/mapserver/ticket/4085 > > On my linux box, I'm using GDAL 1,9 r12670 and not having a > problem so I > suspect this is a GDAL issue (or a GDAL/MapServer issue). > > I'll try narrowing down on which version of GDAL this started > occurring. > > Mike > > On 12/16/11 9:55 AM, "Rahkonen Jukka" > wrote: > > >Hi, > > > >I wonder if anybody has managed to make the OGR output to > work? For me > >all my trials have stopped to an error that seems to mean > that Mapserver > >can't write out a temporary file. The same happens both on > Windows and > >Linux. > > > >I hope that somebody else would repeat the test and I have > tried to make > >it pretty easy for MS4W users. It should be enough to unzip > the following > >file into a directory \MS4W\map and then start running my WFS request > >examples > > > >Test data (mapfile and a small shapefile) > >http://latuviitta.org/documents/wfs_outputformat_test.zip > > > > > > > >GetCapabilities is OK for me > >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 > 0_wfs_test.ma > >p&service=wfs&version=1.0.0&request=getcapabilities > > > >DescribeFeatureType is OK for me > >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 > 0_wfs_test.ma > >p&service=wfs&version=1.0.0&request=describefeaturetype&typen ame=wfs_polyg > >ons > > > >GetFeature with default outputformat is OK for me > >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 > 0_wfs_test.ma > >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p olygons&maxfe > >atures=1 > > > >GetFeature with default outputformat is OK for me > >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 > 0_wfs_test.ma > >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p olygons&maxfe > >atures=1 > > > >GetFeature with CSV outputformat fails for me > >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 > 0_wfs_test.ma > >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p olygons&maxfe > >atures=1&outputformat=CSV > > > >GetFeature with SHAPEZIP outputformat fails for me > >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 > 0_wfs_test.ma > >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p olygons&maxfe > >atures=1&outputformat=SHAPEZIP > > > > > >Regards, > > > >-Jukka Rahkonen-_______________________________________________ > >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 Fri Dec 16 07:30:07 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Fri, 16 Dec 2011 15:30:07 +0000 Subject: [mapserver-users] Cannot get OGR output to work In-Reply-To: <84446DEF76453C439E9E97E438E13A6305F275@suutari.haapa.mmm.fi> Message-ID: Actually, on most drivers you can use STORAGE=memory and it does work. The only driver I've need to use STORAGE=filesystem is FileGDB. I have my shapfile format defined as follows OUTPUTFORMAT NAME "Shapefile" DRIVER "OGR/ESRI Shapefile" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=zip" FORMATOPTION "FILENAME=%outfile%.zip" END Mike On 12/16/11 10:19 AM, "Rahkonen Jukka" wrote: >Hi, > >STORAGE=filesystem, yes, and I am following the ticket. Just wanted to >make it easier to start investigating the problem. Other storage >alternatives did not work for me any better on Linux but I have not tried >them on Windows. I think that filesystem is the one which should work for >all drivers. What is odd is that I have managed to get one valid zipped >shapefile from Linux server but after that success I have been receiving >just empty zips. > >-Jukka- > >> -----Alkuper?inen viesti----- >> L?hett?j?: Smith, Michael ERDC-CRREL-NH >> [mailto:Michael.Smith at usace.army.mil] >> L?hetetty: 16. joulukuuta 2011 17:12 >> Vastaanottaja: Rahkonen Jukka; 'mapserver-users at lists.osgeo.org' >> Aihe: Re: [mapserver-users] Cannot get OGR output to work >> >> Jukka, >> >> Are the OGR Output formats defined as STORAGE=filesystem? That is the >> error I've had. >> >> There is a ticket for this. >> http://trac.osgeo.org/mapserver/ticket/4085 >> >> On my linux box, I'm using GDAL 1,9 r12670 and not having a >> problem so I >> suspect this is a GDAL issue (or a GDAL/MapServer issue). >> >> I'll try narrowing down on which version of GDAL this started >> occurring. >> >> Mike >> >> On 12/16/11 9:55 AM, "Rahkonen Jukka" >> wrote: >> >> >Hi, >> > >> >I wonder if anybody has managed to make the OGR output to >> work? For me >> >all my trials have stopped to an error that seems to mean >> that Mapserver >> >can't write out a temporary file. The same happens both on >> Windows and >> >Linux. >> > >> >I hope that somebody else would repeat the test and I have >> tried to make >> >it pretty easy for MS4W users. It should be enough to unzip >> the following >> >file into a directory \MS4W\map and then start running my WFS request >> >examples >> > >> >Test data (mapfile and a small shapefile) >> >http://latuviitta.org/documents/wfs_outputformat_test.zip >> > >> > >> > >> >GetCapabilities is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getcapabilities >> > >> >DescribeFeatureType is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=describefeaturetype&typen >ame=wfs_polyg >> >ons >> > >> >GetFeature with default outputformat is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1 >> > >> >GetFeature with default outputformat is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1 >> > >> >GetFeature with CSV outputformat fails for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1&outputformat=CSV >> > >> >GetFeature with SHAPEZIP outputformat fails for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1&outputformat=SHAPEZIP >> > >> > >> >Regards, >> > >> >-Jukka Rahkonen-_______________________________________________ >> >mapserver-users mailing list >> >mapserver-users at lists.osgeo.org >> >http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From boesiii at yahoo.com Fri Dec 16 08:08:18 2011 From: boesiii at yahoo.com (Ed Boesenberg) Date: Fri, 16 Dec 2011 11:08:18 -0500 Subject: [mapserver-users] Re: Sanitary Sewer Flow Direction Line Symbol In-Reply-To: References: <1324042903097-7100828.post@n2.nabble.com> <1324046470954-7100971.post@n2.nabble.com> Message-ID: <002b01ccbc0c$ed63c570$c82b5050$@com> Thomas, Not sure if the trunk version will work in my GeoMoose application. The second option produced a better result but the font was centered on the point, not exactly what I am after. The third option, I defined the symbol starting at 0,0 and still was offset. I am using MS 5.6.6. Thanks, Ed -------------- next part -------------- A non-text attachment was scrubbed... Name: vector.PNG Type: image/png Size: 9603 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: truetype.PNG Type: image/png Size: 17431 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Fri Dec 16 08:22:23 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 16 Dec 2011 16:22:23 +0000 Subject: [mapserver-users] Cannot get OGR output to work In-Reply-To: References: <84446DEF76453C439E9E97E438E13A6305F275@suutari.haapa.mmm.fi>, Message-ID: <84446DEF76453C439E9E97E438E13A6305F2A3@suutari.haapa.mmm.fi> Hi, Storage=memory yields the following error with MS4W: General error message. Failed to open result file '/vsimem/ogr_out/4eeb6efb_c00_0/result.csv'. -Jukka Rahkonen- ________________________________________ Smith, Michael ERDC-CRREL-NH wrote: > Actually, on most drivers you can use STORAGE=memory and it does work. > The only driver I've need to use STORAGE=filesystem is FileGDB. > I have my shapfile format defined as follows OUTPUTFORMAT NAME "Shapefile" DRIVER "OGR/ESRI Shapefile" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=zip" FORMATOPTION "FILENAME=%outfile%.zip" END Mike On 12/16/11 10:19 AM, "Rahkonen Jukka" wrote: >Hi, > >STORAGE=filesystem, yes, and I am following the ticket. Just wanted to >make it easier to start investigating the problem. Other storage >alternatives did not work for me any better on Linux but I have not tried >them on Windows. I think that filesystem is the one which should work for >all drivers. What is odd is that I have managed to get one valid zipped >shapefile from Linux server but after that success I have been receiving >just empty zips. > >-Jukka- > >> -----Alkuper?inen viesti----- >> L?hett?j?: Smith, Michael ERDC-CRREL-NH >> [mailto:Michael.Smith at usace.army.mil] >> L?hetetty: 16. joulukuuta 2011 17:12 >> Vastaanottaja: Rahkonen Jukka; 'mapserver-users at lists.osgeo.org' >> Aihe: Re: [mapserver-users] Cannot get OGR output to work >> >> Jukka, >> >> Are the OGR Output formats defined as STORAGE=filesystem? That is the >> error I've had. >> >> There is a ticket for this. >> http://trac.osgeo.org/mapserver/ticket/4085 >> >> On my linux box, I'm using GDAL 1,9 r12670 and not having a >> problem so I >> suspect this is a GDAL issue (or a GDAL/MapServer issue). >> >> I'll try narrowing down on which version of GDAL this started >> occurring. >> >> Mike >> >> On 12/16/11 9:55 AM, "Rahkonen Jukka" >> wrote: >> >> >Hi, >> > >> >I wonder if anybody has managed to make the OGR output to >> work? For me >> >all my trials have stopped to an error that seems to mean >> that Mapserver >> >can't write out a temporary file. The same happens both on >> Windows and >> >Linux. >> > >> >I hope that somebody else would repeat the test and I have >> tried to make >> >it pretty easy for MS4W users. It should be enough to unzip >> the following >> >file into a directory \MS4W\map and then start running my WFS request >> >examples >> > >> >Test data (mapfile and a small shapefile) >> >http://latuviitta.org/documents/wfs_outputformat_test.zip >> > >> > >> > >> >GetCapabilities is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getcapabilities >> > >> >DescribeFeatureType is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=describefeaturetype&typen >ame=wfs_polyg >> >ons >> > >> >GetFeature with default outputformat is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1 >> > >> >GetFeature with default outputformat is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1 >> > >> >GetFeature with CSV outputformat fails for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1&outputformat=CSV >> > >> >GetFeature with SHAPEZIP outputformat fails for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1&outputformat=SHAPEZIP >> > >> > >> >Regards, >> > >> >-Jukka Rahkonen-_______________________________________________ >> >mapserver-users mailing list >> >mapserver-users at lists.osgeo.org >> >http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Fri Dec 16 08:38:17 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 16 Dec 2011 17:38:17 +0100 Subject: [mapserver-users] Re: Sanitary Sewer Flow Direction Line Symbol In-Reply-To: <002b01ccbc0c$ed63c570$c82b5050$@com> References: <1324042903097-7100828.post@n2.nabble.com> <1324046470954-7100971.post@n2.nabble.com> <002b01ccbc0c$ed63c570$c82b5050$@com> Message-ID: without trunk anchorpoint, the symbol will always be centered on the last point of the line, that's why we added anchorpoint. So you can must stick with the current version and use a symbol that looks ok when centered on the last point, or upgrade. -- t. On Fri, Dec 16, 2011 at 17:08, Ed Boesenberg wrote: > Thomas, > > Not sure if the trunk version will work in my GeoMoose application. ?The second option produced a better result but the font was centered on the point, not exactly what I am after. ?The third option, I defined the symbol starting at 0,0 and still was offset. > > I am using MS 5.6.6. > > Thanks, > > Ed > > From boesiii at yahoo.com Fri Dec 16 08:41:51 2011 From: boesiii at yahoo.com (Ed Boesenberg) Date: Fri, 16 Dec 2011 11:41:51 -0500 Subject: [mapserver-users] Re: Sanitary Sewer Flow Direction Line Symbol In-Reply-To: References: <1324042903097-7100828.post@n2.nabble.com> <1324046470954-7100971.post@n2.nabble.com> <002b01ccbc0c$ed63c570$c82b5050$@com> Message-ID: <002f01ccbc11$9db78de0$d926a9a0$@com> Ok, thanks. -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Friday, December 16, 2011 11:38 AM To: Ed Boesenberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Sanitary Sewer Flow Direction Line Symbol without trunk anchorpoint, the symbol will always be centered on the last point of the line, that's why we added anchorpoint. So you can must stick with the current version and use a symbol that looks ok when centered on the last point, or upgrade. -- t. On Fri, Dec 16, 2011 at 17:08, Ed Boesenberg wrote: > Thomas, > > Not sure if the trunk version will work in my GeoMoose application. The second option produced a better result but the font was centered on the point, not exactly what I am after. The third option, I defined the symbol starting at 0,0 and still was offset. > > I am using MS 5.6.6. > > Thanks, > > Ed > > From Jukka.Rahkonen at mmmtike.fi Fri Dec 16 09:46:01 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 16 Dec 2011 17:46:01 +0000 Subject: [mapserver-users] WFS srsName does not work with PostGIS layers Message-ID: <84446DEF76453C439E9E97E438E13A6305F2DC@suutari.haapa.mmm.fi> Hi, Using srsName for reprojecting the resultset of WFS 1.1.0 GetFeature works OK when I use shapefiles as datasource. However, it I use PostGIS as datasource Mapserver does not find any features with a non-native srsName. It is not a wonder because using srsName is changing the data window. Without srsName, means that the native srsName EPSG:3067 is used [Fri Dec 16 19:31:25 2011].351479 msPostGISLayerWhichShapes query: select "gid",,encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from municipalities where the_geom && GeomFromText('POLYGON((-25000000 -25000000,-25000000 25000000,25000000 25000000,25000000 -25000000,-25000000 -25000000))',3067) limit 2 With srsName=EPSG:4326. Notice, that the data window polygon is modified. However, it should not. The query from the PostGIS should remain the same because just the output should be converted into EPSG:4326. [Fri Dec 16 19:32:46 2011].564500 msPostGISLayerWhichShapes query: select "gid",,encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"gid" from municipalities where the_geom && GeomFromText('POLYGON((-16344931.6696761 -300.401875399739,-16344931.6696761 -53.9733500203773,17985512.3469393 -53.9733500203773,17985512.3469393 -300.401875399739,-16344931.6696761 -300.401875399739))',3067) limit 2 Corresponding requests: http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/wfsmap/mapserver_wfs.map&service=wfs&version=1.0.0&request=getfeature&typename=municipalities&maxfeatures=2 http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/wfsmap/mapserver_wfs.map&service=wfs&version=1.1.0&request=getfeature&typename=municipalities&maxfeatures=2&srsname=EPSG:4326 Server is Mapserver 6.0.1 on Linux. -Jukka Rahkonen- From dstroeer at uni-osnabrueck.de Sat Dec 17 06:33:29 2011 From: dstroeer at uni-osnabrueck.de (dstroeer at uni-osnabrueck.de) Date: Sat, 17 Dec 2011 15:33:29 +0100 (CET) Subject: [mapserver-users] wfs problem missing Message-ID: <52692.91.97.223.12.1324132409.squirrel@myuos.uni-osnabrueck.de> Hello, I'm testing a WFS-Layer in OpenLayers. So first of all I set up a WFS in epsg:4326. You can see the mapfile below... Now I want to put his WFS into a OpenLayers project. Here we've got a simple OpenStreetMap WMS, also in epsg:4326. But when I'm testing my OpenLayers application (code below), I don't see my WFS layer. So I'm using firebug and I can see that OpenLayers tries the following request: http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/wfs_server_4326.map&TYPENAME=Testdatenlayer&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=3.60546875,50.802734375,12.39453125,55.197265625 When I try this request in Firefox, I'm getting the following result: missing When I'm cutting the BBOX parameter like this http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/wfs_server_4326.map&TYPENAME=Testdatenlayer&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326 I can see a list of my features: ... 3449790.000000,5891640.000000 3470274.000000,5940811.0000003463543.000000,5900876.000000 3463543.000000,5900876.00000 ... It seems to be a projection problem, but I don't know where... So now I want to ask if there are any problems with my mapfile or if I made another mistake? Thanking you in anticipation, D. Stroeer ########################## mapfile ########################### MAP NAME 'Testkarte WFS' STATUS ON IMAGETYPE PNG #EXTENT 3430018 5876533 3491970 5948485 EXTENT 7.855 53.034 8.866 53.646 UNITS meters SIZE 500 500 IMAGECOLOR 220 220 220 SHAPEPATH 'C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/data/' SYMBOLSET 'C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/symbols/symbols.sym' FONTSET 'C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/fonts/fonts.list' WEB TEMPLATE 'template.html' IMAGEPATH 'C:/ms4w/Apache/htdocs/tmp/' IMAGEURL '/tmp/' METADATA "WFS_TITLE" "WFS-Test" "WFS_SRS" "epsg:4326" "WFS_ABSTRACT" "Ein kleiner WFS-Test" "WFS_ONLINERESOURCE" "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/wfs_server_4326.map" "wfs_enable_request" "*" # necessary END END PROJECTION "init=epsg:4326" END LAYER PROJECTION 'init=epsg:4326' END SYMBOLSCALE 50000 NAME 'Testdatenlayer' TYPE POINT TOLERANCE 5 STATUS ON DATA 'testdaten_4326.shp' DUMP TRUE METADATA "WFS_TITLE" "Testdaten" "WFS_SRS" "epsg:4326" "gml_featureid" "id" "GML_INCLUDE_ITEMS" "all" END CLASS STYLE SYMBOL 'square' COLOR 200 0 0 SIZE 9 MINSIZE 9 MAXSIZE 15 END END END END ###################### OpenLayers Application ######################## From Michael.Smith at usace.army.mil Sat Dec 17 07:32:49 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Sat, 17 Dec 2011 15:32:49 +0000 Subject: [mapserver-users] wfs problem missing In-Reply-To: <52692.91.97.223.12.1324132409.squirrel@myuos.uni-osnabrueck.de> Message-ID: Your data is not in projection epsg:4326 as indicated by 3449790.000000,5891640.000000 3470274.000000,5940811.0000003463543.000000,5900876.000000 3463543.000000,5900876.00000 You need to find out what projection your data is in and then set that projection in the mapfile layer LAYER PROJECTION 'init=epsg:4326' <------- change this value to the epsg code of your data END SYMBOLSCALE 50000 NAME 'Testdatenlayer' MapServer will then be able to reproject your data on the fly to epsg:4326, which is the output projection of your mapfile. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/17/11 9:33 AM, "dstroeer at uni-osnabrueck.de" wrote: >Hello, > >I'm testing a WFS-Layer in OpenLayers. So first of all I set up a WFS in >epsg:4326. You can see the mapfile below... >Now I want to put his WFS into a OpenLayers project. Here we've got a >simple OpenStreetMap WMS, also in epsg:4326. But when I'm testing my >OpenLayers application (code below), I don't see my WFS layer. > >So I'm using firebug and I can see that OpenLayers tries the following >request: > >http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/mapserverII >/wms_wfs/wfs_ogc/wfs_server_4326.map&TYPENAME=Testdatenlayer&SERVICE=WFS&V >ERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=3.60546875,50.8027343 >75,12.39453125,55.197265625 > >When I try this request in Firefox, I'm getting the following result: > >dedBy>missing > > >When I'm cutting the BBOX parameter like this > >http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/mapserverII >/wms_wfs/wfs_ogc/wfs_server_4326.map&TYPENAME=Testdatenlayer&SERVICE=WFS&V >ERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326 > >I can see a list of my features: >... >srsName="EPSG:4326">3449790.000000,5891640.000000 >3470274.000000,5940811.000000< >gml:featureMember>fid="Testdatenlayer.1">srsName="EPSG:4326">3463543.000000,5900876.000000 >3463543.000000,5900876.00000 >... > >It seems to be a projection problem, but I don't know where... >So now I want to ask if there are any problems with my mapfile or if I >made another mistake? > >Thanking you in anticipation, > >D. Stroeer > > >########################## mapfile ########################### > >MAP > NAME 'Testkarte WFS' > STATUS ON > IMAGETYPE PNG > #EXTENT 3430018 5876533 3491970 5948485 > EXTENT 7.855 53.034 8.866 53.646 > UNITS meters > SIZE 500 500 > IMAGECOLOR 220 220 220 > SHAPEPATH >'C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/data/' > SYMBOLSET >'C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/symbols/symbols.sym' > FONTSET >'C:/ms4w/Apache/htdocs/mapserverII/wms_wfs/wfs_ogc/fonts/fonts.list' > >WEB > TEMPLATE 'template.html' > IMAGEPATH 'C:/ms4w/Apache/htdocs/tmp/' > IMAGEURL '/tmp/' > METADATA > "WFS_TITLE" "WFS-Test" > "WFS_SRS" "epsg:4326" > "WFS_ABSTRACT" "Ein kleiner WFS-Test" > "WFS_ONLINERESOURCE" >"http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/mapserverI >I/wms_wfs/wfs_ogc/wfs_server_4326.map" > "wfs_enable_request" "*" # necessary > END >END > >PROJECTION > "init=epsg:4326" >END > > LAYER > PROJECTION > 'init=epsg:4326' > END > SYMBOLSCALE 50000 > NAME 'Testdatenlayer' > TYPE POINT > TOLERANCE 5 > STATUS ON > DATA 'testdaten_4326.shp' > DUMP TRUE > METADATA > "WFS_TITLE" "Testdaten" > "WFS_SRS" "epsg:4326" > "gml_featureid" "id" > "GML_INCLUDE_ITEMS" "all" > END > CLASS > STYLE > SYMBOL 'square' > COLOR 200 0 0 > SIZE 9 > MINSIZE 9 > MAXSIZE 15 > END > END > END >END > > >###################### OpenLayers Application >######################## > > > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From mforiansz at gmail.com Sat Dec 17 12:45:04 2011 From: mforiansz at gmail.com (=?UTF-8?B?Rm9yacOhbi1TemFiw7MgTcOhcnRvbg==?=) Date: Sat, 17 Dec 2011 21:45:04 +0100 Subject: [mapserver-users] Color values from attribute using OracleSpatial Message-ID: Hi, my problem when using attributes for color values with OracleSpatial: RGB color values are defined as a string like '0 128 211' in a column named 'RGBCOLOR'. The map file looks like ... STYLE COLOR [RGBCOLOR] ... Trying this with Shape+dbf files the coloring of the shapes works properly, but when the data is in OracleSpatial and I reference to the 'RGBCOLOR' column in the same way I receive: OracleSpatial error. Error: ORA-00904: "RGBCOLOR": invalid identifier Thanks for any suggestions! M?rton Fori?n-Szab? -------------- next part -------------- An HTML attachment was scrubbed... URL: From michal.seidl at gmail.com Sat Dec 17 13:35:11 2011 From: michal.seidl at gmail.com (Michal Seidl) Date: Sat, 17 Dec 2011 13:35:11 -0800 (PST) Subject: [mapserver-users] Get MAP file CLASSes with no data - empty Message-ID: <1324157711231-7104765.post@n2.nabble.com> I would like to get in PHP/Python environment the list of CLASSes which do not target any data. The situation is like this. 1) I am interested only in vector data 2) I have mapfile and running mapserver 3) There is LAYER with many CLASSes which are defined by EXPRESSION in mapfile Any suggestion how get classes with no data? Thanks Michal -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Get-MAP-file-CLASSes-with-no-data-empty-tp7104765p7104765.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Michael.Smith at usace.army.mil Sat Dec 17 13:37:27 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Sat, 17 Dec 2011 21:37:27 +0000 Subject: [mapserver-users] Color values from attribute using OracleSpatial In-Reply-To: Message-ID: M?rton, You can use DEBUG mode (DEBUG 3 or higher on the LAYER) to see in your error log the exact query that MapServer is generating. The fact that you are seeing an ORA-00904 for RGBCOLOR as an invalid identifier indicates that the column request is being passed to Oracle but that your column in your table must have a different name. You also don't specify your version. I have tested this on MapServer 6 and an Oracle Spatial connection and not had any issue. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Fori?n-Szab? M?rton > Date: Sat, 17 Dec 2011 21:45:04 +0100 To: > Subject: [mapserver-users] Color values from attribute using OracleSpatial Hi, my problem when using attributes for color values with OracleSpatial: RGB color values are defined as a string like '0 128 211' in a column named 'RGBCOLOR'. The map file looks like ... STYLE COLOR [RGBCOLOR] ... Trying this with Shape+dbf files the coloring of the shapes works properly, but when the data is in OracleSpatial and I reference to the 'RGBCOLOR' column in the same way I receive: OracleSpatial error. Error: ORA-00904: "RGBCOLOR": invalid identifier Thanks for any suggestions! M?rton Fori?n-Szab? _______________________________________________ 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 mforiansz at gmail.com Sat Dec 17 14:03:43 2011 From: mforiansz at gmail.com (=?UTF-8?B?Rm9yacOhbi1TemFiw7MgTcOhcnRvbg==?=) Date: Sat, 17 Dec 2011 23:03:43 +0100 Subject: [mapserver-users] Color values from attribute using OracleSpatial In-Reply-To: References: Message-ID: Thanks, Mike, The detailed log was useful. Because of multiple geometry types stored in a single table I already had a selection in my DATA line: DATA 'GEOMETRY FROM (select c.GEOMETRY from [table] c where c.GEOMETRY.GET_GTYPE()=3) ... My problem was solved when I inserted 'c.RGBCOLOR, ' before c.GEOMETRY M?rton 2011/12/17 Smith, Michael ERDC-CRREL-NH > M?rton, > > You can use DEBUG mode (DEBUG 3 or higher on the LAYER) to see in your > error log the exact query that MapServer is generating. The fact that you > are seeing an ORA-00904 for RGBCOLOR as an invalid identifier indicates > that the column request is being passed to Oracle but that your column in > your table must have a different name. > > You also don't specify your version. > > I have tested this on MapServer 6 and an Oracle Spatial connection and > not had any issue. > > Mike > > -- > Michael Smith > US Army Corps > Remote Sensing GIS/Center > From: Fori?n-Szab? M?rton > Date: Sat, 17 Dec 2011 21:45:04 +0100 > To: > Subject: [mapserver-users] Color values from attribute using OracleSpatial > > Hi, > my problem when using attributes for color values with OracleSpatial: > RGB color values are defined as a string like '0 128 211' in a column > named 'RGBCOLOR'. > The map file looks like > ... > STYLE > COLOR [RGBCOLOR] > ... > Trying this with Shape+dbf files the coloring of the shapes works > properly, but when the data is in OracleSpatial and I reference to the > 'RGBCOLOR' column in the same way I receive: > OracleSpatial error. Error: ORA-00904: "RGBCOLOR": invalid identifier > > Thanks for any suggestions! > > M?rton Fori?n-Szab? > _______________________________________________ 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 hawk at aamdal.com Sun Dec 18 13:35:36 2011 From: hawk at aamdal.com (=?UTF-8?Q?H=C3=A5kon_=C3=85mdal?=) Date: Sun, 18 Dec 2011 13:35:36 -0800 (PST) Subject: [mapserver-users] Re: Post body is short In-Reply-To: <003701ccb2cc$ba120f40$2e362dc0$@aamdal.com> References: <003701ccb2cc$ba120f40$2e362dc0$@aamdal.com> Message-ID: <1324244136008-7106576.post@n2.nabble.com> Hi all, I found a solution, actually quite simple: Adding all the parameters manually. $oRequest = new OWSRequestObj(); foreach ($_REQUEST as $k=>$v) { $oRequest->setParameter($k, utf8_decode($v)); } ms_ioinstallstdouttobuffer(); $oMap->owsdispatch($oRequest); $strContType = ms_iostripstdoutbuffercontenttype(); if ($strContType == 'image/png') { header('Content-type: image/png'); } if($_REQUEST['encode']) { echo utf8_encode(ms_iogetstdoutbufferstring()); } else { ms_iogetStdoutBufferBytes(); } ms_ioresethandlers(); Hope this helps other people with the same problem :) Hawk -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Post-body-is-short-tp7061122p7106576.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nikos at maich.gr Mon Dec 19 00:26:56 2011 From: nikos at maich.gr (nikos at maich.gr) Date: Mon, 19 Dec 2011 10:26:56 +0200 Subject: [mapserver-users] Re: Re: Queryfile w/ ms 5.6.3 (Richard Greenwood) In-Reply-To: <20111216153106.61FE6E01001@lists.osgeo.org> References: <20111216153106.61FE6E01001@lists.osgeo.org> Message-ID: Hi Richard, Yes, the queryfiles are created/read with their respective versions, and actually, for kicks, I tried using a 5.3 queryfile on 5.7 and MS correctly complained "Hmm, this does not look a queryfile..." regards, nikos > On Fri, Dec 16, 2011 at 5:44 AM, wrote: >> Hi, >> >> Trying to clarify as best as I can.. >> Simply adding a queryfile parameter (queryfile does exist) ms seg >> faults on >> Linux and hangs on win >> >> >> 1. This does NOT choke on XP ms 5.3-dev, dont have an old ms for >> linux >> (mandriva)to test.. >> This chokes, seg faults on Linux, and hangs on windows, >> /var/www/html/cgi-bin/fw/mapserv -nh >> >> "QUERY_STRING=queryfile=/var/www/html/IUNG/tmp/IUNG1324032812.qy&img.x=135&img.y=242&savequery=true&zoomdir=1&zoomsize=2&map=/var/www/html/IUNG/IUNG_aoa.map&imgext=361228.892188 >> 4364612.298438 369032.295312 >> 4372415.701562&mapext=shape&layer=municipalities" >> >> nothing is reported in ms_error, debug 5 > > Nikos - > > Did you create your query files with the same version of MapServer as > you are truing to read it with? > > Rich > > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > From knasia at poczta.fm Mon Dec 19 07:11:23 2011 From: knasia at poczta.fm (knasia) Date: Mon, 19 Dec 2011 07:11:23 -0800 (PST) Subject: [mapserver-users] Re: Shape File not appearing In-Reply-To: <1318733791340-6896942.post@n2.nabble.com> References: <1318733791340-6896942.post@n2.nabble.com> Message-ID: <1324307483636-7108442.post@n2.nabble.com> I have the same problem. Does anyone know how to solve it? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Shape-File-not-appearing-tp6896942p7108442.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Mon Dec 19 07:58:54 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 19 Dec 2011 10:58:54 -0500 Subject: [mapserver-users] Re: Shape File not appearing In-Reply-To: <1324307483636-7108442.post@n2.nabble.com> References: <1318733791340-6896942.post@n2.nabble.com> <1324307483636-7108442.post@n2.nabble.com> Message-ID: <4EEF5F3E.10507@swoodbridge.com> On 12/19/2011 10:11 AM, knasia wrote: > I have the same problem. > Does anyone know how to solve it? No! you have not supplied enough details for anyone to help you. What makes you think it is the same problem and not a different problem with a similar symptom? What does you mapfile look like? What does you mapserver request look like? Is it on a publicly accessible IP address? Thanks, -Steve W From fx.gamoy at geomatika.fr Mon Dec 19 02:28:31 2011 From: fx.gamoy at geomatika.fr (fx gamoy) Date: Mon, 19 Dec 2011 11:28:31 +0100 Subject: [mapserver-users] Multilinestring (postgis) don't display with mapserver on linux box? Message-ID: <4EEF11CF.3060404@geomatika.fr> Hello everybody, i have some problems to display multilinestring (PostGIS) with mapserver on linux box (debian). In fact They don't display. In my table i have a column wkb_geometry (Multilinestring ) which don't display. So i have computed a column the_geom and updated it using postgis geometryn(wkb_geometry,1) to get some linestrings. With the_geom (linestring), the lines are well computed but not with wkb_geometry (multilinestrings). Multilinestring seem to correctly dysplay with osgeo4w for windows.. What can be the issue? Thanks, fx -------------- next part -------------- A non-text attachment was scrubbed... Name: mapscript.png Type: image/png Size: 20613 bytes Desc: not available URL: From joanne.mcgraw at SYMPATICO.CA Mon Dec 19 10:19:15 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Mon, 19 Dec 2011 10:19:15 -0800 (PST) Subject: [mapserver-users] Are there Mapserver-specific s to in WMC? Message-ID: <1324318755057-7109187.post@n2.nabble.com> Hello everyone, Hopefully, a quick question...a no or (better) a yes with an idea where to find some documentation would be splendid. Using mode=map and passing the URL to a WMC in the context parameter, I am receiving the image I expect...but not quite the one I want. I'd like to be able to limit the extents of a given WMS in the WMC. I don't see anything within the spec that would allow me to define that at the LAYER level, so I was wondering if there are any Mapserver-specific extensions to the tag that might allow this type of information to be included and used. Something like OpenLayers' ...? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Are-there-Mapserver-specific-Extension-s-to-Layer-in-WMC-tp7109187p7109187.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Dec 19 10:59:22 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 19 Dec 2011 18:59:22 +0000 Subject: [mapserver-users] Get MAP file CLASSes with no data - empty In-Reply-To: <1324157711231-7104765.post@n2.nabble.com> References: <1324157711231-7104765.post@n2.nabble.com> Message-ID: Do you mean classes with no representation in some map draw? There's no easy way. You'd either 1) have to hack the source and extend the classObj to track precence/absence or 2) do your drawing at the shape level and assign (and presumably track) class membership in MapScript. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michal Seidl Sent: Saturday, December 17, 2011 3:35 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Get MAP file CLASSes with no data - empty I would like to get in PHP/Python environment the list of CLASSes which do not target any data. The situation is like this. 1) I am interested only in vector data 2) I have mapfile and running mapserver 3) There is LAYER with many CLASSes which are defined by EXPRESSION in mapfile Any suggestion how get classes with no data? Thanks Michal -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Get-MAP-file-CLASSes-with-no-data-empty-tp7104765p7104765.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 scott159 at free.fr Mon Dec 19 11:08:05 2011 From: scott159 at free.fr (scott159 at free.fr) Date: Mon, 19 Dec 2011 20:08:05 +0100 (CET) Subject: [mapserver-users] Substitution variable In-Reply-To: <346580347.2913121324321250283.JavaMail.root@zimbra45-e7.priv.proxad.net> Message-ID: <1259680157.2914221324321685036.JavaMail.root@zimbra45-e7.priv.proxad.net> Hi, I try to implement substitution variable with mapserver 6. I add in URL "&attribute=value" and the mapfile contains : ... DATA "D:\tmp\%attribute%\data.shp" ... But when I launch the URL "http://.....mapserv.exe?map=....&attribute=value", I have a error because mapserver can't load data from D:\tmp\%attribute%\data.shp. Why the substitution doesn't work ? Is there a configuration to add in Apache, in mapfile to success ? Thanks scott From jmckenna at gatewaygeomatics.com Mon Dec 19 11:15:23 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 19 Dec 2011 15:15:23 -0400 Subject: [mapserver-users] Substitution variable In-Reply-To: <1259680157.2914221324321685036.JavaMail.root@zimbra45-e7.priv.proxad.net> References: <1259680157.2914221324321685036.JavaMail.root@zimbra45-e7.priv.proxad.net> Message-ID: <4EEF8D4B.5080901@gatewaygeomatics.com> On 11-12-19 3:08 PM, scott159 at free.fr wrote: > Hi, > > I try to implement substitution variable with mapserver 6. I add in URL "&attribute=value" and the mapfile contains : > > ... > DATA "D:\tmp\%attribute%\data.shp" > ... > > But when I launch the URL "http://.....mapserv.exe?map=....&attribute=value", I have a error because mapserver can't load data from D:\tmp\%attribute%\data.shp. Why the substitution doesn't work ? Is there a configuration to add in Apache, in mapfile to success ? > Scott, I recently created a small test package for variable substitution, that contains a small working mapfile: http://labs.gatewaygeomatics.com/dl/ogr-outputformat.zip You could check that mapfile to see the syntax. Also, a full discussion is in the related ticket: http://trac.osgeo.org/mapserver/ticket/3751 I wish everyone a merry Christmas. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at state.mn.us Mon Dec 19 11:59:53 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 19 Dec 2011 19:59:53 +0000 Subject: [mapserver-users] Substitution variable In-Reply-To: <4EEF8D4B.5080901@gatewaygeomatics.com> References: <1259680157.2914221324321685036.JavaMail.root@zimbra45-e7.priv.proxad.net> <4EEF8D4B.5080901@gatewaygeomatics.com> Message-ID: Pay particular attention to the validation block... You *must* set that up or no substitution will be done. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Monday, December 19, 2011 1:15 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Substitution variable On 11-12-19 3:08 PM, scott159 at free.fr wrote: > Hi, > > I try to implement substitution variable with mapserver 6. I add in URL "&attribute=value" and the mapfile contains : > > ... > DATA "D:\tmp\%attribute%\data.shp" > ... > > But when I launch the URL "http://.....mapserv.exe?map=....&attribute=value", I have a error because mapserver can't load data from D:\tmp\%attribute%\data.shp. Why the substitution doesn't work ? Is there a configuration to add in Apache, in mapfile to success ? > Scott, I recently created a small test package for variable substitution, that contains a small working mapfile: http://labs.gatewaygeomatics.com/dl/ogr-outputformat.zip You could check that mapfile to see the syntax. Also, a full discussion is in the related ticket: http://trac.osgeo.org/mapserver/ticket/3751 I wish everyone a merry Christmas. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jaykayone at gmail.com Mon Dec 19 12:33:17 2011 From: jaykayone at gmail.com (Jeff Konnen) Date: Mon, 19 Dec 2011 21:33:17 +0100 Subject: [mapserver-users] Fwd: WFS Filters Encoding References: <25F624D4-B6B1-4E67-B7D7-6E07EADA2F62@konnen.lu> Message-ID: <895356F8-3ECB-4742-A993-DE96340C6831@gmail.com> > Hi > > We are using Mapserver 6.0.1 on linux with a postgis database. > We have some wfs services that used to work correctly in earlier versions of mapserver. > > In version 6, we observed the following: when people use a wfs filter on a string field with a numeric value code_commu105, mapserver will generate a sql statement without quotes assuming that the Literal is an Integer. > > To fix this i have to use the "gml_types" "auto" directive. > > now the filter works but it alters the describefeature xml document by setting the attribute types to 'Character'. This however does not seem to be valid xml, at least my client (FME) does not to seem to like this type declarations, telling me that they are not valid... > > Is there another way to fix the filter issue? > > There is a similar problem with the PropertyIsLike operator but I could not make it work at allin version 6.0.1 > > Thanks in advance for your help > Best regards > Jeff From jaykayone at gmail.com Mon Dec 19 12:36:48 2011 From: jaykayone at gmail.com (Jeff Konnen) Date: Mon, 19 Dec 2011 21:36:48 +0100 Subject: [mapserver-users] WFS Filter Encoding for strings Message-ID: <28B51FFD-274A-4E7A-9D8E-5364C2486B2F@gmail.com> Hi We are using Mapserver 6.0.1 on linux with a postgis database. We have some wfs services that used to work correctly in earlier versions of mapserver. In version 6, we observed the following: when people use a wfs filter on a string field with a numeric value code_commu105, mapserver will generate a sql statement without quotes assuming that the Literal is an Integer. To fix this i have to use the "gml_types" "auto" directive. now the filter works but it alters the describefeature xml document by setting the attribute types to 'Character'. This however does not seem to be valid xml, at least my client (FME) does not to seem to like this type declarations, telling me that they are not valid... Is there another way to fix the filter issue? There is a similar problem with the PropertyIsLike operator but I could not make it work at allin version 6.0.1 Thanks in advance for your help Best regards Jeff PS: sorry if this post appears twice, there has been a formatting problem in the earlier version of the mail From armin.burger at gmx.net Mon Dec 19 12:45:21 2011 From: armin.burger at gmx.net (Armin Burger) Date: Mon, 19 Dec 2011 21:45:21 +0100 Subject: [mapserver-users] Get MAP file CLASSes with no data - empty In-Reply-To: <1324157711231-7104765.post@n2.nabble.com> References: <1324157711231-7104765.post@n2.nabble.com> Message-ID: <4EEFA261.3030304@gmx.net> Michal I hope I understood your question correctly...: the following code returns all class indexes for the provided layer and full map extent that appear in the data. $me = $map->extent; $layer->open(); $status = $layer->whichShapes($me); $classWithData = array(); while ($shape = $layer->nextShape()) { $shpIdx = $shape->index; $clsIdx = $layer->getClassIndex($shape); if (!in_array($clsIdx, $classWithData) && $clsIdx >= 0) { $classWithData[] = $clsIdx; } } $layer->close(); You could use this to get first all classes *with* data and then calculate the difference of this array with the array of total classes. The resulting array should contain the classes that are *not represented in the data* , like $allClasses = range(0, $layer->numclasses-1); $noDataList = array_diff($allClasses, $classWithData); print_r($noDataList); Note however that this works like listed above only for layers that have the same projection as the map. If both projections are different then the call of "$layer->nextShape()" causes a segmentation fault (in both MS 5.6 and 6). In this case you need to re-project the layer beforehand to the projection of the map, then it should work. Armin On 17/12/2011 22:35, Michal Seidl wrote: > I would like to get in PHP/Python environment the list of CLASSes which do > not target any data. The situation is like this. > > 1) I am interested only in vector data > 2) I have mapfile and running mapserver > 3) There is LAYER with many CLASSes which are defined by EXPRESSION in > mapfile > > Any suggestion how get classes with no data? > > Thanks Michal > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Get-MAP-file-CLASSes-with-no-data-empty-tp7104765p7104765.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From joanne.mcgraw at SYMPATICO.CA Mon Dec 19 14:30:51 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Mon, 19 Dec 2011 14:30:51 -0800 (PST) Subject: [mapserver-users] Re: Some PointSymbolizer values are being ignored. SLD Syntax problem? In-Reply-To: <1322153034558-7028772.post@n2.nabble.com> References: <1322153034558-7028772.post@n2.nabble.com> Message-ID: <1324333851148-7110031.post@n2.nabble.com> Hello everyone, I've come back to this problem I submitted to the forum last month re: my PointSymbolizer's fill-opacity, stroke-opacity and stroke-width being ignored. I'm no further ahead, so I thought I'd update what I've read and tried, just to see if that jogs anyone's thoughts in terms of some issue related to this that I'm not aware of. I am fairly certain this functionality is supported, given what I read in the "SLD implementation - fill-opacity" post thread (http://osgeo-org.1803224.n2.nabble.com/SLD-implementation-fill-opacity-td1971368.html) from 2008. I've worked through the StyledLayerDescriptor.xsd as best I can and believe my definition is correct syntactically. I also tried creating a Polygon layer and applying a similarly-defined PolygonSymbolizer SLD to the one I am using for the PointSymbolizer to see if my syntax was correct (as much as I could given the two different types of data). This, too, suggests it is fine. When using the PolygonSymbolizer definition below, the fill-opacity and stroke-width values are applied in the output. Granted, the the stroke-opacity is still not but at least something worked that doesn't with the PointSymbolizer. I'm including an attachment that shows the results of using the two SLDs included in this thread (my PointSymbolizer and the PolygonSymbolizer above). The definitions are as close to the same as I can make them but, as you can see, the output is not. In the Point symbology, the fill-opacity (0.4), stroke-opacity (0.6) and stroke-width (10.0) are being ignored; and, in the Polygon symbology, the stroke-opacity (0.6) is being ignored but the fill-opacity (0.4) and stoke-width (10.0) are being correctly applied. http://osgeo-org.1803224.n2.nabble.com/file/n7110031/Point_vs._Polygon.png Could there be an issue with my Mapfile definition? In case it matters, here is my OUTPUTFORMAT definition for the Point and Polygon layers used above and the Point layer definition: I really can't imagine what else to try...Is it possible this stuff is broken in 6.0.1? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Some-PointSymbolizer-values-are-being-ignored-SLD-Syntax-problem-tp7028772p7110031.html Sent from the Mapserver - User mailing list archive at Nabble.com. From niwa at orkney.co.jp Mon Dec 19 19:07:15 2011 From: niwa at orkney.co.jp (Makoto Niwa) Date: Tue, 20 Dec 2011 12:07:15 +0900 Subject: [mapserver-users] annotation symbol with label and labelpoy In-Reply-To: <1324333851148-7110031.post@n2.nabble.com> References: <1322153034558-7028772.post@n2.nabble.com> <1324333851148-7110031.post@n2.nabble.com> Message-ID: <421220111220030715niwa@orkney.co.jp> Hello everyone, I have a label problem in MapServer 6.0.1 I cannot get corrct label image in annotation layer with symbol,label and labelpoly - backgound color.(see attached image label_error.jpg) Layer definition in mapfile as follows. LAYER NAME "RND" DATA "Road/road_rnd_13.shp" STATUS DEFAULT TYPE ANNOTATION PROJECTION "init=epsg:4612" END MAXSCALE 50000 LABELITEM "NAME_KANJI" CLASSITEM "SIGNAL_F" CLASS NAME "RND" EXPRESSION "1" STYLE SYMBOL "027" END LABEL PRIORITY 6 TYPE TRUETYPE POSITION AUTO OFFSET -5 -5 MINDISTANCE 50 PARTIALS FALSE FONT gothic COLOR 255 255 255 SIZE 8 ENCODING SJIS STYLE GEOMTRANSFORM 'labelpoly' COLOR 0 85 170 END END END I make a patch for this problem. Then I can get correct label image(attached image label_patched.jpg). But this patch is not testing for many cases. regaeds, makoto. -------------- next part -------------- A non-text attachment was scrubbed... Name: label_patched.jpg Type: image/jpeg Size: 9078 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: label_error.jpg Type: image/jpeg Size: 8574 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: annotation_symbol_w_label.patch Type: application/octet-stream Size: 1170 bytes Desc: not available URL: From niwa at orkney.co.jp Mon Dec 19 19:15:27 2011 From: niwa at orkney.co.jp (Makoto Niwa) Date: Tue, 20 Dec 2011 12:15:27 +0900 Subject: [mapserver-users] legend for annotation label In-Reply-To: <1324333851148-7110031.post@n2.nabble.com> References: <1322153034558-7028772.post@n2.nabble.com> <1324333851148-7110031.post@n2.nabble.com> Message-ID: <421220111220031527niwa@orkney.co.jp> Hello everyone, I have a lengend problem in MapServer 6.0.1 The legned icon image is strange in annotation label layer. see attached image legend_error.jpg I use OFFSET in label object. and the Character "Az" is shifted by OFFSET in legend image. I make a patch for this problem. see attached image legnd_patched.jpg. regards, makoto. -------------- next part -------------- A non-text attachment was scrubbed... Name: legend_error.png Type: image/png Size: 2146 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: legend_annotation_label.patch Type: application/octet-stream Size: 689 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: legend_patched.png Type: image/png Size: 2145 bytes Desc: not available URL: From knasia at poczta.fm Mon Dec 19 22:25:09 2011 From: knasia at poczta.fm (knasia) Date: Mon, 19 Dec 2011 22:25:09 -0800 (PST) Subject: [mapserver-users] Re: Shape File not appearing In-Reply-To: <4EEF5F3E.10507@swoodbridge.com> References: <1318733791340-6896942.post@n2.nabble.com> <1324307483636-7108442.post@n2.nabble.com> <4EEF5F3E.10507@swoodbridge.com> Message-ID: <1324362309002-7110856.post@n2.nabble.com> My mapfile generates tile which is empty (white). My mapfile contains a code which is beneath: MAP NAME name STATUS ON OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" TRANSPARENT ON IMAGEMODE RGB EXTENSION "png" END SIZE 256 256 EXTENT -97.238976 41.619778 -82.122902 49.385620 UNITS METERS SHAPEPATH "/pathToShapes/shapes/" WEB TEMPLATE "myPage.php" IMAGEPATH "/path/" IMAGEURL "validURL" END QUERYMAP SIZE 256 256 STATUS ON STYLE HILITE COLOR 255 0 0 END LAYER NAME map1 PROJECTION "init=epsg:4326" END TYPE LINE STATUS ON DATA "waterways" CLASS NAME "test" OUTLINECOLOR 0 0 0 END END #end of layer END END My shapefiles are in folder shapes and there are 3 files: waterways.shp waterways.shx waterways.dbf Could you help? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Shape-File-not-appearing-tp6896942p7110856.html Sent from the Mapserver - User mailing list archive at Nabble.com. From forums at craniumjuice.com Tue Dec 20 04:34:34 2011 From: forums at craniumjuice.com (forums) Date: Tue, 20 Dec 2011 06:34:34 -0600 Subject: [mapserver-users] Re: Shape File not appearing In-Reply-To: <1324362309002-7110856.post@n2.nabble.com> References: <1318733791340-6896942.post@n2.nabble.com> <1324307483636-7108442.post@n2.nabble.com> <4EEF5F3E.10507@swoodbridge.com> <1324362309002-7110856.post@n2.nabble.com> Message-ID: What units are in your shapefile? The thing that jumps out at me, is your units is in Meters. So the extent gives about at 15x8m view. That's pretty small. Maybe comment out the UNITS METERS part just to see how it goes. Jerl On Tue, Dec 20, 2011 at 12:25 AM, knasia wrote: > My mapfile generates tile which is empty (white). > > My mapfile contains a code which is beneath: > > MAP > NAME name > STATUS ON > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > TRANSPARENT ON > IMAGEMODE RGB > EXTENSION "png" > END > SIZE 256 256 > EXTENT -97.238976 41.619778 -82.122902 49.385620 > UNITS METERS > SHAPEPATH "/pathToShapes/shapes/" > > WEB > TEMPLATE "myPage.php" > IMAGEPATH "/path/" > IMAGEURL "validURL" > END > > QUERYMAP > SIZE 256 256 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > LAYER > NAME map1 > PROJECTION > "init=epsg:4326" > END > TYPE LINE > STATUS ON > DATA "waterways" > CLASS > NAME "test" > OUTLINECOLOR 0 0 0 > END > > END #end of layer > END > END > > > My shapefiles are in folder shapes and there are 3 files: > waterways.shp > waterways.shx > waterways.dbf > > Could you help? > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Shape-File-not-appearing-tp6896942p7110856.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 > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Dec 20 05:01:41 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 20 Dec 2011 14:01:41 +0100 Subject: [mapserver-users] Re: Some PointSymbolizer values are being ignored. SLD Syntax problem? In-Reply-To: <1324333851148-7110031.post@n2.nabble.com> References: <1322153034558-7028772.post@n2.nabble.com> <1324333851148-7110031.post@n2.nabble.com> Message-ID: Joanne, I have committed a potential fix in http://trac.osgeo.org/mapserver/changeset/12904 , but I am not setup to test SLD. Please open a ticket for the issue and report your findings there. regards, thomas On Mon, Dec 19, 2011 at 23:30, myOpenLayersUName wrote: > Hello everyone, > > I've come back to this problem I submitted to the forum last month re: my > PointSymbolizer's fill-opacity, stroke-opacity and stroke-width being > ignored. I'm no further ahead, so I thought I'd update what I've read and > tried, just to see if that jogs anyone's thoughts in terms of some issue > related to this that I'm not aware of. > > I am fairly certain this functionality is supported, given what I read in > the "SLD implementation - fill-opacity" post thread > (http://osgeo-org.1803224.n2.nabble.com/SLD-implementation-fill-opacity-td1971368.html) > from 2008. > > I've worked through the StyledLayerDescriptor.xsd as best I can and believe > my definition is correct syntactically. I also tried creating a Polygon > layer and applying a similarly-defined PolygonSymbolizer SLD to the one I am > using for the PointSymbolizer to see if my syntax was correct (as much as I > could given the two different types of data). This, too, suggests it is > fine. When using the PolygonSymbolizer definition below, the fill-opacity > and stroke-width values are applied in the output. Granted, the the > stroke-opacity is still not but at least something worked that doesn't with > the PointSymbolizer. > > > I'm including an attachment that shows the results of using the two SLDs > included in this thread (my PointSymbolizer and the PolygonSymbolizer > above). The definitions are as close to the same as I can make them but, as > you can see, the output is not. In the Point symbology, the fill-opacity > (0.4), stroke-opacity (0.6) and stroke-width (10.0) are being ignored; and, > in the Polygon symbology, the stroke-opacity (0.6) is being ignored but the > fill-opacity (0.4) and stoke-width (10.0) are being correctly applied. > > http://osgeo-org.1803224.n2.nabble.com/file/n7110031/Point_vs._Polygon.png > > > Could there be an issue with my Mapfile definition? In case it matters, here > is my OUTPUTFORMAT definition for the Point and Polygon layers used above > and the Point layer definition: > > > I really can't imagine what else to try...Is it possible this stuff is > broken in 6.0.1? > > Cheers, > jtm > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Some-PointSymbolizer-values-are-being-ignored-SLD-Syntax-problem-tp7028772p7110031.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 MarkVolz at co.lyon.mn.us Tue Dec 20 10:01:15 2011 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 20 Dec 2011 18:01:15 +0000 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 47, Issue 48 In-Reply-To: <20111220170017.58B2CE00BE3@lists.osgeo.org> References: <20111220170017.58B2CE00BE3@lists.osgeo.org> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30B67DD@swmail01.r8nssis.local> Judging by your e-mail address you might want to check the extent. That extent appears to be valid for part of the Midwest USA. P.S. I don't know if extent matters. Mark Volz GIS Specialist -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Tuesday, December 20, 2011 11:00 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 47, Issue 48 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Shape File not appearing (knasia) 2. Re: Re: Shape File not appearing (forums) 3. Re: Re: Some PointSymbolizer values are being ignored. SLD Syntax problem? (thomas bonfort) ---------------------------------------------------------------------- Message: 1 Date: Mon, 19 Dec 2011 22:25:09 -0800 (PST) From: knasia Subject: [mapserver-users] Re: Shape File not appearing To: mapserver-users at lists.osgeo.org Message-ID: <1324362309002-7110856.post at n2.nabble.com> Content-Type: text/plain; charset=us-ascii My mapfile generates tile which is empty (white). My mapfile contains a code which is beneath: MAP NAME name STATUS ON OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" TRANSPARENT ON IMAGEMODE RGB EXTENSION "png" END SIZE 256 256 EXTENT -97.238976 41.619778 -82.122902 49.385620 UNITS METERS SHAPEPATH "/pathToShapes/shapes/" WEB TEMPLATE "myPage.php" IMAGEPATH "/path/" IMAGEURL "validURL" END QUERYMAP SIZE 256 256 STATUS ON STYLE HILITE COLOR 255 0 0 END LAYER NAME map1 PROJECTION "init=epsg:4326" END TYPE LINE STATUS ON DATA "waterways" CLASS NAME "test" OUTLINECOLOR 0 0 0 END END #end of layer END END My shapefiles are in folder shapes and there are 3 files: waterways.shp waterways.shx waterways.dbf Could you help? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Shape-File-not-appearing-tp6896942p7110856.html Sent from the Mapserver - User mailing list archive at Nabble.com. ------------------------------ Message: 2 Date: Tue, 20 Dec 2011 06:34:34 -0600 From: forums Subject: Re: [mapserver-users] Re: Shape File not appearing To: knasia Cc: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset="iso-8859-1" What units are in your shapefile? The thing that jumps out at me, is your units is in Meters. So the extent gives about at 15x8m view. That's pretty small. Maybe comment out the UNITS METERS part just to see how it goes. Jerl On Tue, Dec 20, 2011 at 12:25 AM, knasia wrote: > My mapfile generates tile which is empty (white). > > My mapfile contains a code which is beneath: > > MAP > NAME name > STATUS ON > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > TRANSPARENT ON > IMAGEMODE RGB > EXTENSION "png" > END > SIZE 256 256 > EXTENT -97.238976 41.619778 -82.122902 49.385620 > UNITS METERS > SHAPEPATH "/pathToShapes/shapes/" > > WEB > TEMPLATE "myPage.php" > IMAGEPATH "/path/" > IMAGEURL "validURL" > END > > QUERYMAP > SIZE 256 256 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > LAYER > NAME map1 > PROJECTION > "init=epsg:4326" > END > TYPE LINE > STATUS ON > DATA "waterways" > CLASS > NAME "test" > OUTLINECOLOR 0 0 0 > END > > END #end of layer > END > END > > > My shapefiles are in folder shapes and there are 3 files: > waterways.shp > waterways.shx > waterways.dbf > > Could you help? > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Shape-File-not-appearing-tp6896 > 942p7110856.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 Clement.MONIER at v-trafic.com Wed Dec 21 02:56:59 2011 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Wed, 21 Dec 2011 11:56:59 +0100 Subject: [mapserver-users] RE: [WMS] Styles not working with mode=tile In-Reply-To: <0B6D7F516315594DBEFE58178D91BD320202688A3879@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD320202688A3879@exchangemm.mm.fr> Message-ID: <0B6D7F516315594DBEFE58178D91BD320202688A3B43@exchangemm.mm.fr> Up ! Any hint on this issue ?? Below are exactly the 2 same map's requests : one with bbox, one with tile. But the 2 output displays are not identical. http://mapserver-dev/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=red_style&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&BBOX=47.99,1.40625,48.9225,2.8125&WIDTH=256&HEIGHT=256 http://mapserver-dev/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap/htdocs/test.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=red_style&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&tile=129+88+8&mode=tile&WIDTH=600&HEIGHT=600 You'll find mapfile & shp attached to run the same testcase. Thanks & Regards Cl?ment De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Cl?ment MONIER Envoy? : vendredi 16 d?cembre 2011 12:36 ? : mapserver-users at lists.osgeo.org Objet : [mapserver-users] [WMS] Styles not working with mode=tile Hi, I'm applying styles to my list of layers inside a WMS request, using the classgroup/class/group system in the mapfile. It works fine when no "tile mode" is used (bbox instead) : If I launch this request http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=style2&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&bbox=-35,10,52,15&WIDTH=600&HEIGHT=600 style2 is applied to layer1 But it doesn't work if the request uses tile mode : http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=layer1&STYLES=style2&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&tile=0+0+0&tilemode=gmap&mode=tile&WIDTH=600&HEIGHT=600 style2 is not applied (default style is applied) Is there a way to apply styles in tile mode ? Thanks & Regards Cl?ment ps : config MS4W MapServer v5.6 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tmp.rar Type: application/octet-stream Size: 158157 bytes Desc: tmp.rar URL: From forums at craniumjuice.com Wed Dec 21 04:11:39 2011 From: forums at craniumjuice.com (forums) Date: Wed, 21 Dec 2011 06:11:39 -0600 Subject: [mapserver-users] Image output issues Message-ID: Hi all: I'm wondering if there's a good solution to the issues I'm having. I would prefer to use JPEG format for my maps, overall they look better and are smaller. But I have two issues I'm wondering about. 1) I can't seem to find a way to turn off anti-aliasing. Is it possible to turn it off with JPEG ? I want the crisper look of aliased lines for the various (MULTI)LINESTRING elements like state/county/country/coastlines, etc. 2) The images are washed out or are lighter in color. Hard to explain, it's as if it's over exposed film. If I use GIF output, these problems go away, but other problems are introduced. For instance the image size goes up too much and the quality of the other features goes down. I have one of the Nasa Blue Earth images as a base rastar layer, then place roads and other features on top of it. I can use PNG images, but those are also too large and I still have the antialiasing problem with certain features. I've considered using a jpeg for the blue marble, then a transparent gif for the overlay, and joining the two. I can't seem to get the GIF transparency to work though. (Manually setting the transparency and overlaying the GIF on the JPEG seems to produce a reasonable result.) Gif declaration: OUTPUTFORMAT NAME "gif" DRIVER GD/GIF MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" FORMATOPTION "TRANSPARENT=ON" END IMAGECOLOR 55 55 55 Jpeg declaration: OUTPUTFORMAT NAME "jpeg" DRIVER AGG/JPEG MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END Can anyone provide any help? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Wed Dec 21 08:55:13 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 21 Dec 2011 08:55:13 -0800 (PST) Subject: [mapserver-users] Re: Some PointSymbolizer values are being ignored. SLD Syntax problem? In-Reply-To: References: <1322153034558-7028772.post@n2.nabble.com> <1324333851148-7110031.post@n2.nabble.com> Message-ID: <1324486513509-7115837.post@n2.nabble.com> Thomas, Thank you for your quick response and investigation into this issue. I introduced the code changes noted in the changeset you provided and the PointSymbolizer's fill-opacity, stroke-opacity and stroke-width are now properly applied. I tried to extrapolate what you did in msSLDParseGraphicFillOrStroke to msSLDGenerateLineSLD and msSLDGeneratePolygonSLD to ensure it also applied the stroke-opacity values for those symbolizers but the code for reading the CssParameters and applying them in those methods is different enough that I'm not clear on how to do so properly. If you have a moment to throw out a code snippet for that in those locations, I'll be happy to try it out and include it in the ticket I'll write up about all this stuff shortly. If you don't have time, no worries. Your help has already been tremendously useful. I'll keep trying... Cheers jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Some-PointSymbolizer-values-are-being-ignored-SLD-Syntax-problem-tp7028772p7115837.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Wed Dec 21 09:37:30 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 21 Dec 2011 09:37:30 -0800 (PST) Subject: [mapserver-users] Re: Some PointSymbolizer values are being ignored. SLD Syntax problem? In-Reply-To: <1324486513509-7115837.post@n2.nabble.com> References: <1322153034558-7028772.post@n2.nabble.com> <1324333851148-7110031.post@n2.nabble.com> <1324486513509-7115837.post@n2.nabble.com> Message-ID: <1324489050498-7116015.post@n2.nabble.com> Okay, wait a second, I was looking at the wrong methods. The method in question is msSLDParseStroke where the stroke-opacity is "handled" and it is writing the value to: psStyle->color.alpha = (int)(atof(psCssParam->psChild->psNext->pszValue)*255); This works for a LineSymbolizer, but for a PolygonSymbolizer must read: psStyle->outlinecolor.alpha = (int)(atof(psCssParam->psChild->psNext->pszValue)*255); Do I have a way of knowing which type of symbolizer it is in that method so I'll know whether to save the value to color or outlinecolor? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Some-PointSymbolizer-values-are-being-ignored-SLD-Syntax-problem-tp7028772p7116015.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Wed Dec 21 10:04:39 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 21 Dec 2011 10:04:39 -0800 (PST) Subject: [mapserver-users] Re: Some PointSymbolizer values are being ignored. SLD Syntax problem? In-Reply-To: <1324489050498-7116015.post@n2.nabble.com> References: <1322153034558-7028772.post@n2.nabble.com> <1324333851148-7110031.post@n2.nabble.com> <1324486513509-7115837.post@n2.nabble.com> <1324489050498-7116015.post@n2.nabble.com> Message-ID: <1324490679675-7116092.post@n2.nabble.com> I've created two separate tickets for the issues brought up in this thread: 1. http://trac.osgeo.org/mapserver/ticket/4131 - regarding the parameters ignored in the PointSymbolizer and highlighting Thomas Bonfort's proposed fix. 2. http://trac.osgeo.org/mapserver/ticket/4132 - regarding the "stroke-opacity" parameter being ignored in the PolygonSymbolizer and possibly identifying the area of code that is problematic. Cheers jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Some-PointSymbolizer-values-are-being-ignored-SLD-Syntax-problem-tp7028772p7116092.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Phil.Anzel at ftc.usda.gov Wed Dec 21 14:10:12 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Wed, 21 Dec 2011 22:10:12 +0000 Subject: [mapserver-users] mapObj does not close MS_ERRORFILE handle in MapServer 6.0 Message-ID: Hi, All, I believe that the mapObj's Dispose() method does not close the file handle for the MS_ERRORFILE under MapServer 6.0, when used via the SWIG MapScript API for C#. Here's the context, presented as C# fragments, and please bear with me for the length of this: using OSGeo.MapServer; ... string mapfile = @"MAP CONFIG 'MS_ERRORFILE' "c:/.../mapserver.log" DEBUG 3 imagetype 'png' ... LAYER ... END END"; mapObj mo = mapscript.msLoadMapFromString(mapfile, null); imageObj io = mo.draw(); mo.Dispose(); byte[] img = io.getBytes(); ...dump the "img" to a file (such as a ".png" file) io.Dispose; By way of demonstration, if I use this code in a "Console" application, and set a break point right after the "io.Dispose", a directory listing shows a zero length for the mapserver.log file. If I let the application terminate normally, I see the size of the mapserver.log file grow to the expected 1KB or so, and I see that the file contains the expected elapsed time information appropriate to "DEBUG 3". In my test use, the "mapfile" string is well-formed and a reasonable ".png" file is created. Should I be calling some additional method on the mapObj instance to force ERRORFILE file closure? Is there some other explanation for the behavior reported here? Thanks - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients.? Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties.? If you believe you have received this message in error, please notify the sender and delete the email immediately. From dejan.gambin at coin.hr Thu Dec 22 05:39:50 2011 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Thu, 22 Dec 2011 14:39:50 +0100 Subject: [mapserver-users] Order of attributes returned from WFS GetFeature Message-ID: <12CE9CFF-5405-46F0-87A5-8A67AC7E4782@coin.hr> Hi, I am using GetFeature request to get the attributes from my PostGIS data. I define attributes with "gml_include_items". The order of attributes is however related to postgis column order, not to the order in gml_include_items. Is it somehow possible to change the order, withoout need to modify column order in PostGIS/PostgreSQL? regards, dejan From dwija_dey at rediffmail.com Thu Dec 22 00:14:05 2011 From: dwija_dey at rediffmail.com (Amazing Airtel) Date: 22 Dec 2011 08:14:05 -0000 Subject: [mapserver-users] unsubscribe Message-ID: <20111222081405.1933.qmail@f4mail-235-196.rediffmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: From SSchantz at BfS.de Fri Dec 23 05:27:35 2011 From: SSchantz at BfS.de (Stefan Schantz) Date: Fri, 23 Dec 2011 14:27:35 +0100 Subject: [mapserver-users] Limitation of WMS-Time with MySql or Documentation Error? Message-ID: <4EF481C7.9090002@BfS.de> Hello, I have a very principal question. Is it possible to setup a WMS-Time service with Mapserver, OGR and a MySQL database? I have read the documentation, and the example shows, that it possible with a Postgres database. I have tried it with a MySQL database, and I didn't get it work (at least I think, that it doesn't work as it should). I have heard, that there are some limitations in OGR supporting MySQL, there was nothing concrete. There is a part of the mapfile: LAYER NAME "odl_wmst" TYPE POINT STATUS ON INCLUDE "../../include/general/debug_layer.map" #2 Zeilen DEBUG ON DUMP TRUE TOLERANCE 3 PROCESSING "CLOSE_CONNECTION=DEFER" CONNECTIONTYPE OGR CONNECTION "MYSQL:onmon,host=10.130.63.11,user=user,password=password,port=3306,tables=result_current;locality" DATA "SELECT value AS wert, end_measure, locality.geom FROM result_current JOIN locality ON result_current.locality_code = locality.locality_code" WHERE end_measure = '%time%' " METADATA WMS_TITLE "ODL_WMS-T" WMS_ABSTRACT "ODL_Paragraph2" INCLUDE "../../include/general/standard_extent_germany_4326.map" "wms_timeextent" "2011-10-01/2011-12-31" "wms_timeitem" "end_measure" "wms_timedefault" "2011-12-21" "wms_timeformat" "YYYY-MM-DD" gml_include_items "all" END VALIDATION 'time' '^((((19|20)(([02468][048])|([13579][26]))-02-29))|((20[0-9][0-9])|(19[0-9][0-9]))-((((0[1-9])|(1[0-2]))-((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30)))))$' END ... END #LAYER I 've tried it with MapServer 5.6.5 (OGR 1.8), 6.0.1 (OGR 1.7). I don't get any errors. The only thing is, that i get a white picture. But if I remove the parameter "wms_timeitem" "end_measure", it works, though the dokumentation tells, that the parameter "wms_timeitem" is mandatory. Is my WMS-Time service a really WMS-Time-Service without the "wms_timeitem" parameter? Has anybody a working WMS-Time service with MySQL? Thank you, Best regards und Merry Christmas! Stefan From xander at mitre.org Fri Dec 23 06:48:59 2011 From: xander at mitre.org (Enzmann, Alexander R.) Date: Fri, 23 Dec 2011 14:48:59 +0000 Subject: [mapserver-users] Multi-Resolution Terrain Map File Message-ID: How do I construct a map file that can handle different resolutions of terrain, with fallback to lower resolution when a no-value is found? In Google Earth Fusion, I can specify multiple terrain sources and tell it which value(s) represent missing data, and it will then process the terrain, checking for availability of each type of terrain, falling back if there isn't any in a geographic area and falling back if there is missing data. For simple fallback based on area coverage, I can use a map file like the one below (using 30 Arcsecond SRTM and 1 Arcsecond DTED). Now, what would I need to do to have it use/interpolate data from the 30 Arcsecond values when there is a missing data/NODATA/hole in the DTED? In the file below, gdaltindex has been used to generate the coverage shapefiles. The example below is a simple one, and it would be really helpful to be able to have multiple terrain sources and a way to automatically fill voids the same way that transparency works with raster image layers. Specifying that terrain values are posts and not pixels would be good too, but lower priority. Xander MAP NAME "srtm" EXTENT -180 -90 180 90 SIZE 512 512 UNITS DD IMAGETYPE bil PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME "bil" DRIVER "GDAL/EHdr" MIMETYPE "image/bil" EXTENSION "bil" IMAGEMODE INT16 END OUTPUTFORMAT NAME "bil16" DRIVER "GDAL/EHdr" MIMETYPE "application/bil16" EXTENSION "bil" IMAGEMODE INT16 END OUTPUTFORMAT NAME "gtiff_16" DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" EXTENSION "tif" IMAGEMODE INT16 END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" LOG "/tmp/srtm.err" METADATA wms_title "SRTM Terrain" END END # # Coarse (30 ArcSecond) terrain. There is worldwide coverage, so this # is good for areas uncovered by SRTM data, as well as for high # scale values. # LAYER NAME "srtm" TILEINDEX "SRTM30/bathmetry.shp" TYPE RASTER PROCESSING "RESAMPLE=BICUBIC" STATUS ON METADATA "wms_title" "SRTM 30 ArcSecond Bathmetry" "wms_group_title" "srtm30" "wms_srs" "epsg:4326" "wms_style" "Default" "wms_extent" "-180 -90 180 90" END MAXSCALEDENOM 1000000000 MINSCALEDENOM 10 END # # Moderate resolution (1 ArcSecond) terrain. Coverage is available worldwide # for most land areas between latitudes -60 and +60. # LAYER NAME "srtm" TILEINDEX "srt2f_1/srt2f_1.shp" TYPE RASTER PROCESSING "RESAMPLE=BICUBIC" STATUS ON METADATA "wms_title" "SRTM 1 ArcSecond Bathmetry" "wms_group_title" "srtm30" "wms_srs" "epsg:4326" "wms_style" "Default" "wms_extent" "-180 -60 180 60" END MAXSCALEDENOM 1000000 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.suematsu at syncadd.com Fri Dec 23 16:19:23 2011 From: richard.suematsu at syncadd.com (Richard Suematsu) Date: Fri, 23 Dec 2011 14:19:23 -1000 Subject: [mapserver-users] ORA-00932: inconsistent datatypes: expected %s got %s Message-ID: <0c3707f5-4083-49fb-9cc0-a70cf7aed311@syncadd.com> ORA-00932: inconsistent datatypes: expected %s got %s Ok, I've been banging my head against this one for a while. I'm getting this error on MapServer 5.6.7 on a WFS request. WMS requests seem to work fine on the same layer. This exact same file works fine on 5.6.0_Beta2. I have no other BLOB/CLOB columns laying around. I've tried running the sql (see log below) from the sqlplus and it works fine. Any ideas? Thanks. My WFS Request is simple: XXXID 3047 XXXID 3257 XXXID 2362 msOracleSpatialLayerGetExtent. Using this Sql to retrieve the extent: SELECT SDO_GEOM.SDO_CONVEXHULL(shape, 0.001000) AS GEOM from (SELECT OBJECTID, BUILDNG_ID, STR_STAT_D, XXXID, shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE XXXID > 0 and STR_STAT_D<>'DEMOLISHED' ). msOracleSpatialLayerGetExtent(): OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s got %s . Query statement: SELECT SDO_GEOM.SDO_CONVEXHULL(shape, 0.001000) AS GEOM from (SELECT OBJECTID, BUILDNG_ID, STR_STAT_D, XXXID, shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE XXXID > 0 and STR_STAT_D<>'DEMOLISHED' ) .Check your data statement. msOracleSpatialLayerOpen called with: shape from (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) using unique OBJECTID (Layer pointer 0000000001955030) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerGetItems was called. msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list msOracleSpatialLayerOpen called with: shape from (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) using unique OBJECTID (Layer pointer 0000000001955030) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerGetItems was called. msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, OBJECTID,shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE ( ("XXXID"= 3047) OR ( ("XXXID"= 3257) OR ("XXXID"= 2362) ) ) AND SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes. Bind values: srid:-1 minx:523231.000000 miny:3895750.000000 maxx:536144.000000 maxy:3908174.000000 msOracleSpatialLayerWhichShapes getting ordinate definition. msOracleSpatialLayerWhichShapes converting to OCIColl. msOracleSpatialLayerWhichShapes bind by name and object. msOracleSpatialLayerWhichShapes name and object now bound. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s got %s . Query statement: SELECT rownum, OBJECTID,shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE ( ("XXXID"= 3047) OR ( ("XXXID"= 3257) OR ("XXXID"= 2362) ) ) AND SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerClose was called. Layer: 0000000001955030, Layer name: BuildingXXX. Layer connection: maps/maps at orcl msOracleSpatialLayerClose. Cleaning layerinfo handlers. msOracleSpatialLayerClose. Release the Oracle Pool. msConnPoolRelease(BuildingXXX,maps/maps at orci,00000000019EB330) msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed mapserv request processing time (msLoadMap not incl.): 0.094s msFreeMap(): freeing map at 00000000019219F0. Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Unauthorized review, use, disclosure or distribution is prohibited. If you are not the addressee indicated in this message kindly notify the sender by reply e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Dec 23 18:01:24 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 23 Dec 2011 19:01:24 -0700 Subject: [mapserver-users] Multi-Resolution Terrain Map File In-Reply-To: References: Message-ID: You could use the OFFSITE value in the higher resolution layer. Basically in this scheme, mapserver would render each layer, and any place with an OFFSITE value would show the value from the layer under it. A more basic problem is how do you want the elevation value to be rendered to a visible image? You could use GDAL to pre-process the SRTM DEMs (http://www.perrygeo.net/wordpress/?p=7), or use mapserver to classify the DEM values to colors on the fly. Best Regards, Brent Fraser > How do I construct a map file that can handle different resolutions of > terrain, with fallback to lower resolution when a no-value is found? In > Google Earth Fusion, I can specify multiple terrain sources and tell it > which value(s) represent missing data, and it will then process the > terrain, checking for availability of each type of terrain, falling back > if there isn't any in a geographic area and falling back if there is > missing data. > > For simple fallback based on area coverage, I can use a map file like the > one below (using 30 Arcsecond SRTM and 1 Arcsecond DTED). Now, what would > I need to do to have it use/interpolate data from the 30 Arcsecond values > when there is a missing data/NODATA/hole in the DTED? In the file below, > gdaltindex has been used to generate the coverage shapefiles. > > The example below is a simple one, and it would be really helpful to be > able to have multiple terrain sources and a way to automatically fill > voids the same way that transparency works with raster image layers. > Specifying that terrain values are posts and not pixels would be good too, > but lower priority. > > Xander > > MAP > NAME "srtm" > EXTENT -180 -90 180 90 > SIZE 512 512 > UNITS DD > IMAGETYPE bil > > PROJECTION > "init=epsg:4326" > END > > OUTPUTFORMAT > NAME "bil" > DRIVER "GDAL/EHdr" > MIMETYPE "image/bil" > EXTENSION "bil" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "bil16" > DRIVER "GDAL/EHdr" > MIMETYPE "application/bil16" > EXTENSION "bil" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "gtiff_16" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > EXTENSION "tif" > IMAGEMODE INT16 > END > > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > LOG "/tmp/srtm.err" > METADATA > wms_title "SRTM Terrain" > END > END > > # > # Coarse (30 ArcSecond) terrain. There is worldwide coverage, so this > # is good for areas uncovered by SRTM data, as well as for high > # scale values. > # > LAYER > NAME "srtm" > TILEINDEX "SRTM30/bathmetry.shp" > TYPE RASTER > PROCESSING "RESAMPLE=BICUBIC" > STATUS ON > > METADATA > "wms_title" "SRTM 30 ArcSecond Bathmetry" > "wms_group_title" "srtm30" > "wms_srs" "epsg:4326" > "wms_style" "Default" > "wms_extent" "-180 -90 180 90" > END > > MAXSCALEDENOM 1000000000 > MINSCALEDENOM 10 > END > > # > # Moderate resolution (1 ArcSecond) terrain. Coverage is available > worldwide > # for most land areas between latitudes -60 and +60. > # > LAYER > NAME "srtm" > TILEINDEX "srt2f_1/srt2f_1.shp" > TYPE RASTER > PROCESSING "RESAMPLE=BICUBIC" > STATUS ON > > METADATA > "wms_title" "SRTM 1 ArcSecond Bathmetry" > "wms_group_title" "srtm30" > "wms_srs" "epsg:4326" > "wms_style" "Default" > "wms_extent" "-180 -60 180 60" > END > > MAXSCALEDENOM 1000000 > END > > END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Sat Dec 24 00:41:23 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 24 Dec 2011 08:41:23 +0000 Subject: [mapserver-users] Multi-Resolution Terrain Map File In-Reply-To: References: , Message-ID: <84446DEF76453C439E9E97E438E13A630603DB@suutari.haapa.mmm.fi> Hi, On possibility might be to prepare one tileindex which contains all the resolutions. It is a normal shapefile and it can be edited with any GIS program. When ready and saved the tileindex can be sorted with sortshape utility so that the course DEM tiles are in the beginning of the shapefile and more accurate ones on the bottom. This way the accurate DEM would be drawn on top of coarse and the result woul look good. However, it would mean double rendering in those areas with accurare DEM. It does not necessarily be unacceptable slow but for avoiding that you could cut holes into the polygons presenting the course data. In practise I am not sure if Mapserver is reading the holes of tileindex polygons. Perhaps you should split the polygon into pieces and delete then the polygons which are overlapped with more accurate DEM. It might be also good to use course DEM everywhere with small map scales. That could be done by making a scale dependent group layer. The first would use only SRTM and when zoomed in the other layer with edited tileindex would take place. -Jukka Rahkonen- Brent Fraser wrote: > You could use the OFFSITE value in the higher resolution layer. > Basically in this scheme, mapserver would render each layer, and any > place with an OFFSITE value would show the value from the layer under > it. > A more basic problem is how do you want the elevation value to be > rendered to a visible image? You could use GDAL to pre-process the > SRTM DEMs (http://www.perrygeo.net/wordpress/?p=7), or use mapserver to > classify the DEM values to colors on the fly. > Best Regards, > Brent Fraser >> How do I construct a map file that can handle different resolutions of >> terrain, with fallback to lower resolution when a no-value is found? In >> Google Earth Fusion, I can specify multiple terrain sources and tell it >> which value(s) represent missing data, and it will then process the >> terrain, checking for availability of each type of terrain, falling back >> if there isn't any in a geographic area and falling back if there is >> missing data. >> >> For simple fallback based on area coverage, I can use a map file like the >> one below (using 30 Arcsecond SRTM and 1 Arcsecond DTED). Now, what would >> I need to do to have it use/interpolate data from the 30 Arcsecond values >> when there is a missing data/NODATA/hole in the DTED? In the file below, >> gdaltindex has been used to generate the coverage shapefiles. > >> The example below is a simple one, and it would be really helpful to be >> able to have multiple terrain sources and a way to automatically fill >> voids the same way that transparency works with raster image layers. >> Specifying that terrain values are posts and not pixels would be good too, >> but lower priority. > > Xander > > MAP > NAME "srtm" > EXTENT -180 -90 180 90 > SIZE 512 512 > UNITS DD > IMAGETYPE bil > > PROJECTION > "init=epsg:4326" > END > > OUTPUTFORMAT > NAME "bil" > DRIVER "GDAL/EHdr" > MIMETYPE "image/bil" > EXTENSION "bil" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "bil16" > DRIVER "GDAL/EHdr" > MIMETYPE "application/bil16" > EXTENSION "bil" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "gtiff_16" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > EXTENSION "tif" > IMAGEMODE INT16 > END > > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > LOG "/tmp/srtm.err" > METADATA > wms_title "SRTM Terrain" > END > END > > # > # Coarse (30 ArcSecond) terrain. There is worldwide coverage, so this > # is good for areas uncovered by SRTM data, as well as for high > # scale values. > # > LAYER > NAME "srtm" > TILEINDEX "SRTM30/bathmetry.shp" > TYPE RASTER > PROCESSING "RESAMPLE=BICUBIC" > STATUS ON > > METADATA > "wms_title" "SRTM 30 ArcSecond Bathmetry" > "wms_group_title" "srtm30" > "wms_srs" "epsg:4326" > "wms_style" "Default" > "wms_extent" "-180 -90 180 90" > END > > MAXSCALEDENOM 1000000000 > MINSCALEDENOM 10 > END > > # > # Moderate resolution (1 ArcSecond) terrain. Coverage is available > worldwide > # for most land areas between latitudes -60 and +60. > # > LAYER > NAME "srtm" > TILEINDEX "srt2f_1/srt2f_1.shp" > TYPE RASTER > PROCESSING "RESAMPLE=BICUBIC" > STATUS ON > > METADATA > "wms_title" "SRTM 1 ArcSecond Bathmetry" > "wms_group_title" "srtm30" > "wms_srs" "epsg:4326" > "wms_style" "Default" > "wms_extent" "-180 -60 180 60" > END > > MAXSCALEDENOM 1000000 > END > > END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Michael.Smith at usace.army.mil Sat Dec 24 04:16:28 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Sat, 24 Dec 2011 12:16:28 +0000 Subject: [mapserver-users] ORA-00932: inconsistent datatypes: expected %s got %s In-Reply-To: <0c3707f5-4083-49fb-9cc0-a70cf7aed311@syncadd.com> Message-ID: Rich, Have you tried MapServer 6? It might be the null srid. I know there was some work done around that time (although I thought it was earlier). If you send me the layer definition in question and the WFS request, I can try it with the current and some other versions. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Richard Suematsu > Date: Fri, 23 Dec 2011 14:19:23 -1000 To: > Subject: [mapserver-users] ORA-00932: inconsistent datatypes: expected %s got %s ORA-00932: inconsistent datatypes: expected %s got %s Ok, I?ve been banging my head against this one for a while. I?m getting this error on MapServer 5.6.7 on a WFS request. WMS requests seem to work fine on the same layer. This exact same file works fine on 5.6.0_Beta2. I have no other BLOB/CLOB columns laying around. I?ve tried running the sql (see log below) from the sqlplus and it works fine. Any ideas? Thanks. My WFS Request is simple: XXXID 3047 XXXID 3257 XXXID 2362 msOracleSpatialLayerGetExtent. Using this Sql to retrieve the extent: SELECT SDO_GEOM.SDO_CONVEXHULL(shape, 0.001000) AS GEOM from (SELECT OBJECTID, BUILDNG_ID, STR_STAT_D, XXXID, shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE XXXID > 0 and STR_STAT_D<>'DEMOLISHED' ). msOracleSpatialLayerGetExtent(): OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s got %s . Query statement: SELECT SDO_GEOM.SDO_CONVEXHULL(shape, 0.001000) AS GEOM from (SELECT OBJECTID, BUILDNG_ID, STR_STAT_D, XXXID, shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE XXXID > 0 and STR_STAT_D<>'DEMOLISHED' ) .Check your data statement. msOracleSpatialLayerOpen called with: shape from (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) using unique OBJECTID (Layer pointer 0000000001955030) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerGetItems was called. msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list msOracleSpatialLayerOpen called with: shape from (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) using unique OBJECTID (Layer pointer 0000000001955030) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerGetItems was called. msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, OBJECTID,shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE ( ("XXXID"= 3047) OR ( ("XXXID"= 3257) OR ("XXXID"= 2362) ) ) AND SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes. Bind values: srid:-1 minx:523231.000000 miny:3895750.000000 maxx:536144.000000 maxy:3908174.000000 msOracleSpatialLayerWhichShapes getting ordinate definition. msOracleSpatialLayerWhichShapes converting to OCIColl. msOracleSpatialLayerWhichShapes bind by name and object. msOracleSpatialLayerWhichShapes name and object now bound. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s got %s . Query statement: SELECT rownum, OBJECTID,shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE ( ("XXXID"= 3047) OR ( ("XXXID"= 3257) OR ("XXXID"= 2362) ) ) AND SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerClose was called. Layer: 0000000001955030, Layer name: BuildingXXX. Layer connection: maps/maps at orcl msOracleSpatialLayerClose. Cleaning layerinfo handlers. msOracleSpatialLayerClose. Release the Oracle Pool. msConnPoolRelease(BuildingXXX,maps/maps at orci,00000000019EB330) msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed mapserv request processing time (msLoadMap not incl.): 0.094s msFreeMap(): freeing map at 00000000019219F0. ________________________________ Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Unauthorized review, use, disclosure or distribution is prohibited. If you are not the addressee indicated in this message kindly notify the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Sat Dec 24 08:38:51 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sat, 24 Dec 2011 09:38:51 -0700 Subject: [mapserver-users] Multi-Resolution Terrain Map File In-Reply-To: References: Message-ID: <01b19ea6d8c1c281dff2dcb2b3e7f68b.squirrel@mail.geoanalytic.com> Here's a more current link: http://www.gdal.org/gdaldem.html And you could look into the VRT format to see if can help with the nodata problem. > You could use the OFFSITE value in the higher resolution layer. > Basically in this scheme, mapserver would render each layer, and any > place with an OFFSITE value would show the value from the layer under > it. > > A more basic problem is how do you want the elevation value to be > rendered to a visible image? You could use GDAL to pre-process the > SRTM DEMs (http://www.perrygeo.net/wordpress/?p=7), or use mapserver to > classify the DEM values to colors on the fly. > > Best Regards, > Brent Fraser > >> How do I construct a map file that can handle different resolutions of >> terrain, with fallback to lower resolution when a no-value is found? In >> Google Earth Fusion, I can specify multiple terrain sources and tell it >> which value(s) represent missing data, and it will then process the >> terrain, checking for availability of each type of terrain, falling back >> if there isn't any in a geographic area and falling back if there is >> missing data. >> >> For simple fallback based on area coverage, I can use a map file like >> the >> one below (using 30 Arcsecond SRTM and 1 Arcsecond DTED). Now, what >> would >> I need to do to have it use/interpolate data from the 30 Arcsecond >> values >> when there is a missing data/NODATA/hole in the DTED? In the file >> below, >> gdaltindex has been used to generate the coverage shapefiles. >> >> The example below is a simple one, and it would be really helpful to be >> able to have multiple terrain sources and a way to automatically fill >> voids the same way that transparency works with raster image layers. >> Specifying that terrain values are posts and not pixels would be good >> too, >> but lower priority. >> >> Xander >> >> MAP >> NAME "srtm" >> EXTENT -180 -90 180 90 >> SIZE 512 512 >> UNITS DD >> IMAGETYPE bil >> >> PROJECTION >> "init=epsg:4326" >> END >> >> OUTPUTFORMAT >> NAME "bil" >> DRIVER "GDAL/EHdr" >> MIMETYPE "image/bil" >> EXTENSION "bil" >> IMAGEMODE INT16 >> END >> >> OUTPUTFORMAT >> NAME "bil16" >> DRIVER "GDAL/EHdr" >> MIMETYPE "application/bil16" >> EXTENSION "bil" >> IMAGEMODE INT16 >> END >> >> OUTPUTFORMAT >> NAME "gtiff_16" >> DRIVER "GDAL/GTiff" >> MIMETYPE "image/tiff" >> EXTENSION "tif" >> IMAGEMODE INT16 >> END >> >> WEB >> IMAGEPATH "/tmp/" >> IMAGEURL "/tmp/" >> LOG "/tmp/srtm.err" >> METADATA >> wms_title "SRTM Terrain" >> END >> END >> >> # >> # Coarse (30 ArcSecond) terrain. There is worldwide coverage, so this >> # is good for areas uncovered by SRTM data, as well as for high >> # scale values. >> # >> LAYER >> NAME "srtm" >> TILEINDEX "SRTM30/bathmetry.shp" >> TYPE RASTER >> PROCESSING "RESAMPLE=BICUBIC" >> STATUS ON >> >> METADATA >> "wms_title" "SRTM 30 ArcSecond Bathmetry" >> "wms_group_title" "srtm30" >> "wms_srs" "epsg:4326" >> "wms_style" "Default" >> "wms_extent" "-180 -90 180 90" >> END >> >> MAXSCALEDENOM 1000000000 >> MINSCALEDENOM 10 >> END >> >> # >> # Moderate resolution (1 ArcSecond) terrain. Coverage is available >> worldwide >> # for most land areas between latitudes -60 and +60. >> # >> LAYER >> NAME "srtm" >> TILEINDEX "srt2f_1/srt2f_1.shp" >> TYPE RASTER >> PROCESSING "RESAMPLE=BICUBIC" >> STATUS ON >> >> METADATA >> "wms_title" "SRTM 1 ArcSecond Bathmetry" >> "wms_group_title" "srtm30" >> "wms_srs" "epsg:4326" >> "wms_style" "Default" >> "wms_extent" "-180 -60 180 60" >> END >> >> MAXSCALEDENOM 1000000 >> END >> >> END >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From richard.suematsu at syncadd.com Mon Dec 26 00:53:03 2011 From: richard.suematsu at syncadd.com (Richard Suematsu) Date: Sun, 25 Dec 2011 22:53:03 -1000 Subject: [mapserver-users] ORA-00932: inconsistent datatypes: expected %s got %s In-Reply-To: References: <0c3707f5-4083-49fb-9cc0-a70cf7aed311@syncadd.com> Message-ID: <0a822a09-befa-4fa6-9e40-e21591e804c9@syncadd.com> Thanks, Mike. I'll try it out. From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil] Sent: Saturday, December 24, 2011 2:16 AM To: Richard Suematsu; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ORA-00932: inconsistent datatypes: expected %s got %s Rich, Have you tried MapServer 6? It might be the null srid. I know there was some work done around that time (although I thought it was earlier). If you send me the layer definition in question and the WFS request, I can try it with the current and some other versions. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Richard Suematsu Date: Fri, 23 Dec 2011 14:19:23 -1000 To: Subject: [mapserver-users] ORA-00932: inconsistent datatypes: expected %s got %s ORA-00932: inconsistent datatypes: expected %s got %s Ok, I've been banging my head against this one for a while. I'm getting this error on MapServer 5.6.7 on a WFS request. WMS requests seem to work fine on the same layer. This exact same file works fine on 5.6.0_Beta2. I have no other BLOB/CLOB columns laying around. I've tried running the sql (see log below) from the sqlplus and it works fine. Any ideas? Thanks. My WFS Request is simple: XXXID 3047 XXXID 3257 XXXID 2362 msOracleSpatialLayerGetExtent. Using this Sql to retrieve the extent: SELECT SDO_GEOM.SDO_CONVEXHULL(shape, 0.001000) AS GEOM from (SELECT OBJECTID, BUILDNG_ID, STR_STAT_D, XXXID, shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE XXXID > 0 and STR_STAT_D<>'DEMOLISHED' ). msOracleSpatialLayerGetExtent(): OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s got %s . Query statement: SELECT SDO_GEOM.SDO_CONVEXHULL(shape, 0.001000) AS GEOM from (SELECT OBJECTID, BUILDNG_ID, STR_STAT_D, XXXID, shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE XXXID > 0 and STR_STAT_D<>'DEMOLISHED' ) .Check your data statement. msOracleSpatialLayerOpen called with: shape from (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) using unique OBJECTID (Layer pointer 0000000001955030) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerGetItems was called. msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list msOracleSpatialLayerOpen called with: shape from (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) using unique OBJECTID (Layer pointer 0000000001955030) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerGetItems was called. msOracleSpatialLayerGetItems(): Query error. Cannot retrieve column list msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT rownum, OBJECTID,shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE ( ("XXXID"= 3047) OR ( ("XXXID"= 3257) OR ("XXXID"= 2362) ) ) AND SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' msOracleSpatialLayerWhichShapes. Bind values: srid:-1 minx:523231.000000 miny:3895750.000000 maxx:536144.000000 maxy:3908174.000000 msOracleSpatialLayerWhichShapes getting ordinate definition. msOracleSpatialLayerWhichShapes converting to OCIColl. msOracleSpatialLayerWhichShapes bind by name and object. msOracleSpatialLayerWhichShapes name and object now bound. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s got %s . Query statement: SELECT rownum, OBJECTID,shape FROM (select shape,OBJECTID,buildng_id,str_stat_d,XXXid from structure_existing_area) WHERE ( ("XXXID"= 3047) OR ( ("XXXID"= 3257) OR ("XXXID"= 2362) ) ) AND SDO_FILTER( shape, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerClose was called. Layer: 0000000001955030, Layer name: BuildingXXX. Layer connection: maps/maps at orcl msOracleSpatialLayerClose. Cleaning layerinfo handlers. msOracleSpatialLayerClose. Release the Oracle Pool. msConnPoolRelease(BuildingXXX,maps/maps at orci,00000000019EB330) msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed mapserv request processing time (msLoadMap not incl.): 0.094s msFreeMap(): freeing map at 00000000019219F0. Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Unauthorized review, use, disclosure or distribution is prohibited. If you are not the addressee indicated in this message kindly notify the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Unauthorized review, use, disclosure or distribution is prohibited. If you are not the addressee indicated in this message kindly notify the sender by reply e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott159 at free.fr Mon Dec 26 04:46:15 2011 From: scott159 at free.fr (scott159 at free.fr) Date: Mon, 26 Dec 2011 13:46:15 +0100 (CET) Subject: [mapserver-users] - SQL Server 2008 In-Reply-To: <39369663.2351061323978579585.JavaMail.root@zimbra45-e7.priv.proxad.net> Message-ID: <2129937202.3785571324903575809.JavaMail.root@zimbra45-e7.priv.proxad.net> Hi, I would like connect MapServer 6.0.1 to MS SQL Server 2008. To use OGR driver with FreeTDS I try : - to install FreeTDS from .\freetds-0.91 : ./configure --with-tdsver=7.2 sudo make make install make clean Configure with only --with-tdsver ? - to edit freetds.conf to configure MS Sql Server 2008 : [servername1] host = XX.XX.XX.XX port = 1433 Only 2 variables to configure ? - to try to connect MS SQL Server 2008 with ogrinfo : ogrinfo -al "MSSQL:server=servername1;driver=FreeTDS;database=EXAMPLE;trusted_connection=yes" How ogrinfo can find freetds.conf file ? servername1 must be found in freetds.conf ? gdal 1.8 is it necessary to specify driver=FreeTDS ? But it's doesn't work, so I can't try with mapfile ;-( What's wrong ? scott From Bob.Basques at ci.stpaul.mn.us Tue Dec 27 07:07:51 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 27 Dec 2011 09:07:51 -0600 Subject: [mapserver-users] Multi-Resolution Terrain Map File In-Reply-To: <84446DEF76453C439E9E97E438E13A630603DB@suutari.haapa.mmm.fi> References: , <84446DEF76453C439E9E97E438E13A630603DB@suutari.haapa.mmm.fi> Message-ID: <4EF98AE7020000A800031B74@heckle> All, Ok, probably a real hack (as in I'm not sure I want to admit it), but I took a different route with this. Using our local coordinate system, I set up a templated grid folder for all the desired resolution layers with a tile index based system and keep this in a static form. Instead of keeping all the data separate and indexed, I keep an index template and just change the tiles as needed. I add new tiles into the tile set (same names, just overwrite the old ones) as they are built/become available. The underlying tiles are from all different sources and are only updated when they become available. If there is a new set of data available only those tiles are built and replaced in the tile set. The same tile index is reused repeatedly thereafter, only the actual tiles are updated. The result is a single layer, single pass dataset with mixed tiles being rendered as needed. Now if I could just figure out how to economically blend the tiles together colorwise . . . always something though . . . :c) bobb >>> Rahkonen Jukka wrote: Hi, On possibility might be to prepare one tileindex which contains all the resolutions. It is a normal shapefile and it can be edited with any GIS program. When ready and saved the tileindex can be sorted with sortshape utility so that the course DEM tiles are in the beginning of the shapefile and more accurate ones on the bottom. This way the accurate DEM would be drawn on top of coarse and the result woul look good. However, it would mean double rendering in those areas with accurare DEM. It does not necessarily be unacceptable slow but for avoiding that you could cut holes into the polygons presenting the course data. In practise I am not sure if Mapserver is reading the holes of tileindex polygons. Perhaps you should split the polygon into pieces and delete then the polygons which are overlapped with more accurate DEM. It might be also good to use course DEM everywhere with small map scales. That could be done by making a scale dependent group layer. The first would use only SRTM and when zoomed in the other layer with edited tileindex would take place. -Jukka Rahkonen- Brent Fraser wrote: > You could use the OFFSITE value in the higher resolution layer. > Basically in this scheme, mapserver would render each layer, and any > place with an OFFSITE value would show the value from the layer under > it. > A more basic problem is how do you want the elevation value to be > rendered to a visible image? You could use GDAL to pre-process the > SRTM DEMs (http://www.perrygeo.net/wordpress/?p=7), or use mapserver to > classify the DEM values to colors on the fly. > Best Regards, > Brent Fraser >> How do I construct a map file that can handle different resolutions of >> terrain, with fallback to lower resolution when a no-value is found? In >> Google Earth Fusion, I can specify multiple terrain sources and tell it >> which value(s) represent missing data, and it will then process the >> terrain, checking for availability of each type of terrain, falling back >> if there isn't any in a geographic area and falling back if there is >> missing data. >> >> For simple fallback based on area coverage, I can use a map file like the >> one below (using 30 Arcsecond SRTM and 1 Arcsecond DTED). Now, what would >> I need to do to have it use/interpolate data from the 30 Arcsecond values >> when there is a missing data/NODATA/hole in the DTED? In the file below, >> gdaltindex has been used to generate the coverage shapefiles. > >> The example below is a simple one, and it would be really helpful to be >> able to have multiple terrain sources and a way to automatically fill >> voids the same way that transparency works with raster image layers. >> Specifying that terrain values are posts and not pixels would be good too, >> but lower priority. > > Xander > > MAP > NAME "srtm" > EXTENT -180 -90 180 90 > SIZE 512 512 > UNITS DD > IMAGETYPE bil > > PROJECTION > "init=epsg:4326" > END > > OUTPUTFORMAT > NAME "bil" > DRIVER "GDAL/EHdr" > MIMETYPE "image/bil" > EXTENSION "bil" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "bil16" > DRIVER "GDAL/EHdr" > MIMETYPE "application/bil16" > EXTENSION "bil" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "gtiff_16" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > EXTENSION "tif" > IMAGEMODE INT16 > END > > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > LOG "/tmp/srtm.err" > METADATA > wms_title "SRTM Terrain" > END > END > > # > # Coarse (30 ArcSecond) terrain. There is worldwide coverage, so this > # is good for areas uncovered by SRTM data, as well as for high > # scale values. > # > LAYER > NAME "srtm" > TILEINDEX "SRTM30/bathmetry.shp" > TYPE RASTER > PROCESSING "RESAMPLE=BICUBIC" > STATUS ON > > METADATA > "wms_title" "SRTM 30 ArcSecond Bathmetry" > "wms_group_title" "srtm30" > "wms_srs" "epsg:4326" > "wms_style" "Default" > "wms_extent" "-180 -90 180 90" > END > > MAXSCALEDENOM 1000000000 > MINSCALEDENOM 10 > END > > # > # Moderate resolution (1 ArcSecond) terrain. Coverage is available > worldwide > # for most land areas between latitudes -60 and +60. > # > LAYER > NAME "srtm" > TILEINDEX "srt2f_1/srt2f_1.shp" > TYPE RASTER > PROCESSING "RESAMPLE=BICUBIC" > STATUS ON > > METADATA > "wms_title" "SRTM 1 ArcSecond Bathmetry" > "wms_group_title" "srtm30" > "wms_srs" "epsg:4326" > "wms_style" "Default" > "wms_extent" "-180 -60 180 60" > END > > MAXSCALEDENOM 1000000 > END > > END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From xander at mitre.org Tue Dec 27 08:04:27 2011 From: xander at mitre.org (Enzmann, Alexander R.) Date: Tue, 27 Dec 2011 16:04:27 +0000 Subject: [mapserver-users] Multi-Resolution Terrain Map File In-Reply-To: References: Message-ID: Brent, Thanks for the tips. Was able to make some progress. A couple of quick notes on the source data - it is either text based (.asc) or GeoTIFF. In either case, individual pixels are 16 bit signed values (meters). The intended use is to use it as terrain (WMS access to terrain information in .bil or .tif formats), not to generate colored images. So while GDAL is great for turning the source uncompressed data into LZW compressed GeoTIFF files, the tools for shading/coloring aren't useful in this application. OFFSITE might work if I can figure out how to use it for a 16 bit signed value instead of RGB. If I try something like this: OFFSITE -9999 The parse fails. Using a color like this: OFFSITE 0 0 0 Gives a useable result, pulling content from the coarse (SRTM30) terrain when there are negative values in the higher resolution terrain. I suspect it works for the wrong reason (e.g., negative values in the source data are mapped to the color 0). However, it isn't quite the right result. What I'm really looking for is the ability to specify the value(s) where the source data has missing values (typically -9999 or -32768) or a range of data to ignore (Google Earth Fusion allows this) such as: -32768:-20000,-9999,0. Xander This is a nearly working .map file: # Query that would pull a piece of the earth: MAP NAME "ASTER" EXTENT -180 -90 180 90 SIZE 512 512 UNITS DD IMAGETYPE bil PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME "asc" DRIVER "GDAL/AAIGrid" MIMETYPE "application/asc" EXTENSION "asc" IMAGEMODE INT16 END OUTPUTFORMAT NAME "bil" DRIVER "GDAL/EHdr" MIMETYPE "image/bil" EXTENSION "bil" IMAGEMODE INT16 END OUTPUTFORMAT NAME "bil16" DRIVER "GDAL/EHdr" MIMETYPE "application/bil16" EXTENSION "bil" IMAGEMODE INT16 END OUTPUTFORMAT NAME "gtiff_16" DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" EXTENSION "tif" IMAGEMODE INT16 END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" LOG "/tmp/srtm.err" METADATA wms_title "ASTER Terrain" "ows_enable_request" "*" END END # # Coarse (30 ArcSecond) terrain. There is worldwide coverage, so this # is good for areas uncovered by SRTM data, as well as for high # scale values. # LAYER NAME "aster" TILEINDEX "SRTM30/bathmetry.shp" TYPE RASTER STATUS ON METADATA "wms_title" "SRTM 30 ArcSecond Bathmetry" "wms_group_title" "aster" "wms_srs" "epsg:4326" "wms_style" "Default" "wms_extent" "-180 -90 180 90" END MAXSCALEDENOM 1000000000 MINSCALEDENOM 1 END # # Moderate resolution (1 ArcSecond) terrain. Coverage is available worldwide # for most land areas between latitudes -80 and +80. # LAYER NAME "aster" TILEINDEX "/mcgi/Terrain/asterz.shp" TYPE RASTER PROCESSING "RESAMPLE=BICUBIC" STATUS ON METADATA "wms_title" "ASTER 1 ArcSecond Terrain" "wms_group_title" "aster" "wms_srs" "epsg:4326" "wms_style" "Default" "wms_extent" "-180 -80 180 80" END MAXSCALEDENOM 1000000 OFFSITE 0 0 0 END END -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Friday, December 23, 2011 9:01 PM To: Enzmann, Alexander R. Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Multi-Resolution Terrain Map File You could use the OFFSITE value in the higher resolution layer. Basically in this scheme, mapserver would render each layer, and any place with an OFFSITE value would show the value from the layer under it. A more basic problem is how do you want the elevation value to be rendered to a visible image? You could use GDAL to pre-process the SRTM DEMs (http://www.perrygeo.net/wordpress/?p=7), or use mapserver to classify the DEM values to colors on the fly. Best Regards, Brent Fraser > How do I construct a map file that can handle different resolutions of > terrain, with fallback to lower resolution when a no-value is found? In > Google Earth Fusion, I can specify multiple terrain sources and tell it > which value(s) represent missing data, and it will then process the > terrain, checking for availability of each type of terrain, falling back > if there isn't any in a geographic area and falling back if there is > missing data. > > For simple fallback based on area coverage, I can use a map file like the > one below (using 30 Arcsecond SRTM and 1 Arcsecond DTED). Now, what would > I need to do to have it use/interpolate data from the 30 Arcsecond values > when there is a missing data/NODATA/hole in the DTED? In the file below, > gdaltindex has been used to generate the coverage shapefiles. > > The example below is a simple one, and it would be really helpful to be > able to have multiple terrain sources and a way to automatically fill > voids the same way that transparency works with raster image layers. > Specifying that terrain values are posts and not pixels would be good too, > but lower priority. > > Xander From Steve.Lime at state.mn.us Tue Dec 27 08:13:33 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 27 Dec 2011 16:13:33 +0000 Subject: [mapserver-users] Order of attributes returned from WFS GetFeature In-Reply-To: <12CE9CFF-5405-46F0-87A5-8A67AC7E4782@coin.hr> References: <12CE9CFF-5405-46F0-87A5-8A67AC7E4782@coin.hr> Message-ID: I don't believe you can control this on the MapServer side. Why not just set the column order explicitly in the SQL statement? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin Sent: Thursday, December 22, 2011 7:40 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Order of attributes returned from WFS GetFeature Hi, I am using GetFeature request to get the attributes from my PostGIS data. I define attributes with "gml_include_items". The order of attributes is however related to postgis column order, not to the order in gml_include_items. Is it somehow possible to change the order, withoout need to modify column order in PostGIS/PostgreSQL? regards, dejan_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Dec 27 08:33:45 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 27 Dec 2011 16:33:45 +0000 Subject: [mapserver-users] Image output issues In-Reply-To: References: Message-ID: Not sure what version you're working with. In 6.0 it should be as simple as: IMAGETYPE GIF TRANSPARENT TRUE No need for any funky output format, just use the default. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of forums Sent: Wednesday, December 21, 2011 6:12 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Image output issues Hi all: I'm wondering if there's a good solution to the issues I'm having. I would prefer to use JPEG format for my maps, overall they look better and are smaller. But I have two issues I'm wondering about. 1) I can't seem to find a way to turn off anti-aliasing. Is it possible to turn it off with JPEG ? I want the crisper look of aliased lines for the various (MULTI)LINESTRING elements like state/county/country/coastlines, etc. 2) The images are washed out or are lighter in color. Hard to explain, it's as if it's over exposed film. If I use GIF output, these problems go away, but other problems are introduced. For instance the image size goes up too much and the quality of the other features goes down. I have one of the Nasa Blue Earth images as a base rastar layer, then place roads and other features on top of it. I can use PNG images, but those are also too large and I still have the antialiasing problem with certain features. I've considered using a jpeg for the blue marble, then a transparent gif for the overlay, and joining the two. I can't seem to get the GIF transparency to work though. (Manually setting the transparency and overlaying the GIF on the JPEG seems to produce a reasonable result.) Gif declaration: OUTPUTFORMAT NAME "gif" DRIVER GD/GIF MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" FORMATOPTION "TRANSPARENT=ON" END IMAGECOLOR 55 55 55 Jpeg declaration: OUTPUTFORMAT NAME "jpeg" DRIVER AGG/JPEG MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END Can anyone provide any help? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Dec 27 13:13:00 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 27 Dec 2011 21:13:00 +0000 Subject: [mapserver-users] Order of attributes returned from WFS GetFeature In-Reply-To: References: <12CE9CFF-5405-46F0-87A5-8A67AC7E4782@coin.hr>, Message-ID: <84446DEF76453C439E9E97E438E13A63060738@suutari.haapa.mmm.fi> Hi, The WFS standard defines that attributes are included in a XML sequence. Therefore the returned attributes must be in the same order than in the schema of your feature type. I would suggest also having a try with editing the SQL in the DATA line and selecting attributes as you like but check first if it has an effect on the schema returned by DescribeFeatureType. -Jukka Rahkonen- ________________________________________ Lime, Steve D (DNR) wrote: > I don't believe you can control this on the MapServer side. Why not just set the column order > explicitly in the SQL statement? > Steve > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Dejan Gambin > Sent: Thursday, December 22, 2011 7:40 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Order of attributes returned from WFS GetFeature > Hi, > I am using GetFeature request to get the attributes from my PostGIS data. I define attributes with "gml_include_items". The order of attributes is however related to postgis column order, not to the order in gml_include_items. Is it somehow possible to change the order, withoout need to modify column order in PostGIS/PostgreSQL? regards, dejan_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Tue Dec 27 19:24:11 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 27 Dec 2011 20:24:11 -0700 Subject: [mapserver-users] Multi-Resolution Terrain Map File In-Reply-To: References: Message-ID: <4EFA8BDB.4040801@geoanalytic.com> Xander, You could have a look at using GDAL's virtual format (VRT) to point to your original data and specify the nodata value in the VRT (you could even get exotic by using TILEINDEXs of VRTS). Another option is to instead use the PROCESSING "LUT=..." directive. This may allow you to specify the target nodata value as well as the source nodata value when you tweak the directive for each of your elevation layers. But I haven't tried it... Best Regards, Brent Fraser On 12/27/2011 9:04 AM, Enzmann, Alexander R. wrote: > Brent, > > Thanks for the tips. Was able to make some progress. > > A couple of quick notes on the source data - it is either text based (.asc) or GeoTIFF. In either case, individual pixels are 16 bit signed values (meters). The intended use is to use it as terrain (WMS access to terrain information in .bil or .tif formats), not to generate colored images. So while GDAL is great for turning the source uncompressed data into LZW compressed GeoTIFF files, the tools for shading/coloring aren't useful in this application. > > OFFSITE might work if I can figure out how to use it for a 16 bit signed value instead of RGB. If I try something like this: > OFFSITE -9999 > The parse fails. Using a color like this: > OFFSITE 0 0 0 > Gives a useable result, pulling content from the coarse (SRTM30) terrain when there are negative values in the higher resolution terrain. I suspect it works for the wrong reason (e.g., negative values in the source data are mapped to the color 0). > > However, it isn't quite the right result. What I'm really looking for is the ability to specify the value(s) where the source data has missing values (typically -9999 or -32768) or a range of data to ignore (Google Earth Fusion allows this) such as: -32768:-20000,-9999,0. > > Xander > > This is a nearly working .map file: > > # Query that would pull a piece of the earth: > MAP > NAME "ASTER" > EXTENT -180 -90 180 90 > SIZE 512 512 > UNITS DD > IMAGETYPE bil > > PROJECTION > "init=epsg:4326" > END > > OUTPUTFORMAT > NAME "asc" > DRIVER "GDAL/AAIGrid" > MIMETYPE "application/asc" > EXTENSION "asc" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "bil" > DRIVER "GDAL/EHdr" > MIMETYPE "image/bil" > EXTENSION "bil" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "bil16" > DRIVER "GDAL/EHdr" > MIMETYPE "application/bil16" > EXTENSION "bil" > IMAGEMODE INT16 > END > > OUTPUTFORMAT > NAME "gtiff_16" > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > EXTENSION "tif" > IMAGEMODE INT16 > END > > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > LOG "/tmp/srtm.err" > METADATA > wms_title "ASTER Terrain" > "ows_enable_request" "*" > END > END > > # > # Coarse (30 ArcSecond) terrain. There is worldwide coverage, so this > # is good for areas uncovered by SRTM data, as well as for high > # scale values. > # > LAYER > NAME "aster" > TILEINDEX "SRTM30/bathmetry.shp" > TYPE RASTER > STATUS ON > > METADATA > "wms_title" "SRTM 30 ArcSecond Bathmetry" > "wms_group_title" "aster" > "wms_srs" "epsg:4326" > "wms_style" "Default" > "wms_extent" "-180 -90 180 90" > END > > MAXSCALEDENOM 1000000000 > MINSCALEDENOM 1 > END > > # > # Moderate resolution (1 ArcSecond) terrain. Coverage is available worldwide > # for most land areas between latitudes -80 and +80. > # > LAYER > NAME "aster" > TILEINDEX "/mcgi/Terrain/asterz.shp" > TYPE RASTER > PROCESSING "RESAMPLE=BICUBIC" > STATUS ON > > METADATA > "wms_title" "ASTER 1 ArcSecond Terrain" > "wms_group_title" "aster" > "wms_srs" "epsg:4326" > "wms_style" "Default" > "wms_extent" "-180 -80 180 80" > END > > MAXSCALEDENOM 1000000 > OFFSITE 0 0 0 > END > > END > > -----Original Message----- > From: Brent Fraser [mailto:bfraser at geoanalytic.com] > Sent: Friday, December 23, 2011 9:01 PM > To: Enzmann, Alexander R. > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Multi-Resolution Terrain Map File > > You could use the OFFSITE value in the higher resolution layer. > Basically in this scheme, mapserver would render each layer, and any > place with an OFFSITE value would show the value from the layer under > it. > > A more basic problem is how do you want the elevation value to be > rendered to a visible image? You could use GDAL to pre-process the > SRTM DEMs (http://www.perrygeo.net/wordpress/?p=7), or use mapserver to > classify the DEM values to colors on the fly. > > Best Regards, > Brent Fraser > >> How do I construct a map file that can handle different resolutions of >> terrain, with fallback to lower resolution when a no-value is found? In >> Google Earth Fusion, I can specify multiple terrain sources and tell it >> which value(s) represent missing data, and it will then process the >> terrain, checking for availability of each type of terrain, falling back >> if there isn't any in a geographic area and falling back if there is >> missing data. >> >> For simple fallback based on area coverage, I can use a map file like the >> one below (using 30 Arcsecond SRTM and 1 Arcsecond DTED). Now, what would >> I need to do to have it use/interpolate data from the 30 Arcsecond values >> when there is a missing data/NODATA/hole in the DTED? In the file below, >> gdaltindex has been used to generate the coverage shapefiles. >> >> The example below is a simple one, and it would be really helpful to be >> able to have multiple terrain sources and a way to automatically fill >> voids the same way that transparency works with raster image layers. >> Specifying that terrain values are posts and not pixels would be good too, >> but lower priority. >> >> Xander > > From Bob.Bistrais at maine.gov Wed Dec 28 07:55:47 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 28 Dec 2011 10:55:47 -0500 Subject: [mapserver-users] failed to open map file - MS 6.0 to 6.0.1 Message-ID: <4EFF8BB964547748A07CA32961810C041CB6666F@SOM-TEAQASMAIL1.som.w2k.state.me.us> I'm trying to upgrade some MapServer applications which were originally written before MS 6.0. These had been migrated to 6.0, now I am trying to upgrade them to 6.0.1. I would have thought nothing needed to be done, but when I try to view these applications, I get the following error message: Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "../maps/mymap.map"' in C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 C:\ms4w\apps\mgs\htdocs\drawMap.php(218): ms_newMapObj('../maps/mymap...') #1 {main} thrown in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 -I checked the obvious, such as permissions, paths, etc, but not able to figure out what's going wrong here. As mentioned, it works OK in MS 6.0. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Dec 28 08:00:02 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 28 Dec 2011 16:00:02 +0000 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: <4EFF8BB964547748A07CA32961810C041CB6666F@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041CB6666F@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Nothing should have to be done. 6.0.1 was primarily a security update. Can you try accessing the mapfile outside PHP with shp2img or mapserv itself? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Wednesday, December 28, 2011 9:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] failed to open map file - MS 6.0 to 6.0.1 I'm trying to upgrade some MapServer applications which were originally written before MS 6.0. These had been migrated to 6.0, now I am trying to upgrade them to 6.0.1. I would have thought nothing needed to be done, but when I try to view these applications, I get the following error message: Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "../maps/mymap.map"' in C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 C:\ms4w\apps\mgs\htdocs\drawMap.php(218): ms_newMapObj('../maps/mymap...') #1 {main} thrown in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 -I checked the obvious, such as permissions, paths, etc, but not able to figure out what's going wrong here. As mentioned, it works OK in MS 6.0. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed Dec 28 08:20:29 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 28 Dec 2011 11:20:29 -0500 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041CB6666F@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041CB6668E@SOM-TEAQASMAIL1.som.w2k.state.me.us> When I try to get the mapfile in cgi mode, a different error appears: loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6) ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, December 28, 2011 11:00 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: failed to open map file - MS 6.0 to 6.0.1 Nothing should have to be done. 6.0.1 was primarily a security update. Can you try accessing the mapfile outside PHP with shp2img or mapserv itself? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Wednesday, December 28, 2011 9:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] failed to open map file - MS 6.0 to 6.0.1 I'm trying to upgrade some MapServer applications which were originally written before MS 6.0. These had been migrated to 6.0, now I am trying to upgrade them to 6.0.1. I would have thought nothing needed to be done, but when I try to view these applications, I get the following error message: Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "../maps/mymap.map"' in C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 C:\ms4w\apps\mgs\htdocs\drawMap.php(218): ms_newMapObj('../maps/mymap...') #1 {main} thrown in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 -I checked the obvious, such as permissions, paths, etc, but not able to figure out what's going wrong here. As mentioned, it works OK in MS 6.0. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Dec 28 08:30:45 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 28 Dec 2011 11:30:45 -0500 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: <4EFF8BB964547748A07CA32961810C041CB6668E@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041CB6666F@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041CB6668E@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFB4435.40606@swoodbridge.com> Hi Bob, What does the top 15+- lines of your mapfile look like? This error is in loadSymbol, do you have a reference to a symbol file? is this where the error is coming from? Are you sure you are loading the correct symbol file? -Steve W On 12/28/2011 11:20 AM, Bistrais, Bob wrote: > When I try to get the mapfile in cgi mode, a different error appears: > > loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6) > > *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > *Sent:* Wednesday, December 28, 2011 11:00 AM > *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org > *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1 > > Nothing should have to be done. 6.0.1 was primarily a security update. > Can you try accessing the mapfile > > outside PHP with shp2img or mapserv itself? > > Steve > > *From: * mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Bistrais, Bob > *Sent:* Wednesday, December 28, 2011 9:56 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] failed to open map file - MS 6.0 to 6.0.1 > > I?m trying to upgrade some MapServer applications which were originally > written before MS 6.0. These had been migrated to 6.0, now I am trying > to upgrade them to 6.0.1. I would have thought nothing needed to be > done, but when I try to view these applications, I get the following > error message: > > Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): > (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 > Fatal error: Uncaught exception 'MapScriptException' with message > 'Failed to open map file "../maps/mymap.map"' in > C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 > C:\ms4w\apps\mgs\htdocs\drawMap.php(218): > ms_newMapObj('../maps/mymap...') #1 {main} thrown in > C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 > > -I checked the obvious, such as permissions, paths, etc, but not able to > figure out what?s going wrong here. As mentioned, it works OK in MS 6.0. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Wed Dec 28 12:58:45 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 28 Dec 2011 15:58:45 -0500 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: <4EFB4435.40606@swoodbridge.com> References: <4EFF8BB964547748A07CA32961810C041CB6666F@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041CB6668E@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFB4435.40606@swoodbridge.com> Message-ID: <4EFF8BB964547748A07CA32961810C041CB667B9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Not sure if this helps, but here's the first few lines of the symbol file- notice that line 6 contains the Style keyword. Does anything look out of place with that? SYMBOL NAME 'county-line' TYPE ELLIPSE POINTS 2 2 END FILLED true STYLE 4 2 2 4 END END -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Wednesday, December 28, 2011 11:31 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 Hi Bob, What does the top 15+- lines of your mapfile look like? This error is in loadSymbol, do you have a reference to a symbol file? is this where the error is coming from? Are you sure you are loading the correct symbol file? -Steve W On 12/28/2011 11:20 AM, Bistrais, Bob wrote: > When I try to get the mapfile in cgi mode, a different error appears: > > loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6) > > *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > *Sent:* Wednesday, December 28, 2011 11:00 AM > *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org > *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1 > > Nothing should have to be done. 6.0.1 was primarily a security update. > Can you try accessing the mapfile > > outside PHP with shp2img or mapserv itself? > > Steve > > *From: * mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Bistrais, Bob > *Sent:* Wednesday, December 28, 2011 9:56 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] failed to open map file - MS 6.0 to 6.0.1 > > I'm trying to upgrade some MapServer applications which were originally > written before MS 6.0. These had been migrated to 6.0, now I am trying > to upgrade them to 6.0.1. I would have thought nothing needed to be > done, but when I try to view these applications, I get the following > error message: > > Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): > (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 > Fatal error: Uncaught exception 'MapScriptException' with message > 'Failed to open map file "../maps/mymap.map"' in > C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 > C:\ms4w\apps\mgs\htdocs\drawMap.php(218): > ms_newMapObj('../maps/mymap...') #1 {main} thrown in > C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 > > -I checked the obvious, such as permissions, paths, etc, but not able to > figure out what's going wrong here. As mentioned, it works OK in MS 6.0. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Wed Dec 28 13:02:26 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 28 Dec 2011 16:02:26 -0500 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: <4EFB4435.40606@swoodbridge.com> References: <4EFF8BB964547748A07CA32961810C041CB6666F@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041CB6668E@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFB4435.40606@swoodbridge.com> Message-ID: <4EFF8BB964547748A07CA32961810C041CB667BE@SOM-TEAQASMAIL1.som.w2k.state.me.us> As for the first 15 lines of the .map file, here they are: MAP NAME "LURC PARCELS" SIZE 580 460 STATUS ON IMAGETYPE PNG IMAGECOLOR 192 224 255 EXTENT 134000 4700000 890900 5300000 UNITS METERS SHAPEPATH "../data" SYMBOLSET "../symbols/symbols35.sym" FONTSET "../fonts/fonts.list" PROJECTION # NAD83 / UTM zone 19N "proj=utm" "zone=19" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END -All individual layers are referenced as Included files -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Wednesday, December 28, 2011 11:31 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 Hi Bob, What does the top 15+- lines of your mapfile look like? This error is in loadSymbol, do you have a reference to a symbol file? is this where the error is coming from? Are you sure you are loading the correct symbol file? -Steve W On 12/28/2011 11:20 AM, Bistrais, Bob wrote: > When I try to get the mapfile in cgi mode, a different error appears: > > loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6) > > *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > *Sent:* Wednesday, December 28, 2011 11:00 AM > *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org > *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1 > > Nothing should have to be done. 6.0.1 was primarily a security update. > Can you try accessing the mapfile > > outside PHP with shp2img or mapserv itself? > > Steve > > *From: * mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Bistrais, Bob > *Sent:* Wednesday, December 28, 2011 9:56 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] failed to open map file - MS 6.0 to 6.0.1 > > I'm trying to upgrade some MapServer applications which were originally > written before MS 6.0. These had been migrated to 6.0, now I am trying > to upgrade them to 6.0.1. I would have thought nothing needed to be > done, but when I try to view these applications, I get the following > error message: > > Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): > (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 > Fatal error: Uncaught exception 'MapScriptException' with message > 'Failed to open map file "../maps/mymap.map"' in > C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 > C:\ms4w\apps\mgs\htdocs\drawMap.php(218): > ms_newMapObj('../maps/mymap...') #1 {main} thrown in > C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 > > -I checked the obvious, such as permissions, paths, etc, but not able to > figure out what's going wrong here. As mentioned, it works OK in MS 6.0. > > > > _______________________________________________ > 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 Wed Dec 28 13:07:48 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 28 Dec 2011 21:07:48 +0000 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: <4EFF8BB964547748A07CA32961810C041CB667B9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Bob, STYLE at the SYMBOL level was renamed PATTERN in 5.0 and removed in v6. This is a dashed line and now the PATTERN is applied at the LAYER level rather than at the SYMBOL. You should remove the STYLE..END block from the SYMBOL and apply it as a PATTERN at the LAYER level (see http://mapserver.org/mapfile/style.html#style) Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/28/11 3:58 PM, "Bistrais, Bob" wrote: >Not sure if this helps, but here's the first few lines of the symbol >file- notice that line 6 contains the Style keyword. Does anything look >out of place with that? > >SYMBOL > NAME 'county-line' > TYPE ELLIPSE > POINTS 2 2 END > FILLED true > STYLE 4 2 2 4 END >END > > > >-----Original Message----- >From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >Sent: Wednesday, December 28, 2011 11:31 AM >To: mapserver-users at lists.osgeo.org >Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to >6.0.1 > >Hi Bob, > >What does the top 15+- lines of your mapfile look like? >This error is in loadSymbol, do you have a reference to a symbol file? >is this where the error is coming from? Are you sure you are loading the > >correct symbol file? > >-Steve W > >On 12/28/2011 11:20 AM, Bistrais, Bob wrote: >> When I try to get the mapfile in cgi mode, a different error appears: >> >> loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6) >> >> *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] >> *Sent:* Wednesday, December 28, 2011 11:00 AM >> *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org >> *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1 >> >> Nothing should have to be done. 6.0.1 was primarily a security update. >> Can you try accessing the mapfile >> >> outside PHP with shp2img or mapserv itself? >> >> Steve >> >> *From: * mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >> *Bistrais, Bob >> *Sent:* Wednesday, December 28, 2011 9:56 AM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] failed to open map file - MS 6.0 to 6.0.1 >> >> I'm trying to upgrade some MapServer applications which were >originally >> written before MS 6.0. These had been migrated to 6.0, now I am trying >> to upgrade them to 6.0.1. I would have thought nothing needed to be >> done, but when I try to view these applications, I get the following >> error message: >> >> Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): >> (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 >> Fatal error: Uncaught exception 'MapScriptException' with message >> 'Failed to open map file "../maps/mymap.map"' in >> C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 >> C:\ms4w\apps\mgs\htdocs\drawMap.php(218): >> ms_newMapObj('../maps/mymap...') #1 {main} thrown in >> C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 >> >> -I checked the obvious, such as permissions, paths, etc, but not able >to >> figure out what's going wrong here. As mentioned, it works OK in MS >6.0. >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Wed Dec 28 13:50:30 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 28 Dec 2011 16:50:30 -0500 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041CB667B9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041CB667DB@SOM-TEAQASMAIL1.som.w2k.state.me.us> Thanks Mike, Looking at that now. Does the same apply to Cartoline? I seem to be having issues with those symbols as well. -----Original Message----- From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil] Sent: Wednesday, December 28, 2011 4:08 PM To: Bistrais, Bob; Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 Bob, STYLE at the SYMBOL level was renamed PATTERN in 5.0 and removed in v6. This is a dashed line and now the PATTERN is applied at the LAYER level rather than at the SYMBOL. You should remove the STYLE..END block from the SYMBOL and apply it as a PATTERN at the LAYER level (see http://mapserver.org/mapfile/style.html#style) Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/28/11 3:58 PM, "Bistrais, Bob" wrote: >Not sure if this helps, but here's the first few lines of the symbol >file- notice that line 6 contains the Style keyword. Does anything look >out of place with that? > >SYMBOL > NAME 'county-line' > TYPE ELLIPSE > POINTS 2 2 END > FILLED true > STYLE 4 2 2 4 END >END > > > >-----Original Message----- >From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >Sent: Wednesday, December 28, 2011 11:31 AM >To: mapserver-users at lists.osgeo.org >Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to >6.0.1 > >Hi Bob, > >What does the top 15+- lines of your mapfile look like? >This error is in loadSymbol, do you have a reference to a symbol file? >is this where the error is coming from? Are you sure you are loading the > >correct symbol file? > >-Steve W > >On 12/28/2011 11:20 AM, Bistrais, Bob wrote: >> When I try to get the mapfile in cgi mode, a different error appears: >> >> loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6) >> >> *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] >> *Sent:* Wednesday, December 28, 2011 11:00 AM >> *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org >> *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1 >> >> Nothing should have to be done. 6.0.1 was primarily a security update. >> Can you try accessing the mapfile >> >> outside PHP with shp2img or mapserv itself? >> >> Steve >> >> *From: * mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >> *Bistrais, Bob >> *Sent:* Wednesday, December 28, 2011 9:56 AM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] failed to open map file - MS 6.0 to 6.0.1 >> >> I'm trying to upgrade some MapServer applications which were >originally >> written before MS 6.0. These had been migrated to 6.0, now I am trying >> to upgrade them to 6.0.1. I would have thought nothing needed to be >> done, but when I try to view these applications, I get the following >> error message: >> >> Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): >> (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 >> Fatal error: Uncaught exception 'MapScriptException' with message >> 'Failed to open map file "../maps/mymap.map"' in >> C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 >> C:\ms4w\apps\mgs\htdocs\drawMap.php(218): >> ms_newMapObj('../maps/mymap...') #1 {main} thrown in >> C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 >> >> -I checked the obvious, such as permissions, paths, etc, but not able >to >> figure out what's going wrong here. As mentioned, it works OK in MS >6.0. >> >> >> >> _______________________________________________ >> 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 Wed Dec 28 14:02:08 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 28 Dec 2011 22:02:08 +0000 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: <4EFF8BB964547748A07CA32961810C041CB667DB@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Yes, CARTOLINE was deprecated back at version 5 and completely removed at version 6. Here's the migration guide http://mapserver.org/MIGRATION_GUIDE.html#migration Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/28/11 4:50 PM, "Bistrais, Bob" wrote: >Thanks Mike, > >Looking at that now. Does the same apply to Cartoline? I seem to be >having issues with those symbols as well. > > >-----Original Message----- >From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil] > >Sent: Wednesday, December 28, 2011 4:08 PM >To: Bistrais, Bob; Stephen Woodbridge; mapserver-users at lists.osgeo.org >Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to >6.0.1 > >Bob, > >STYLE at the SYMBOL level was renamed PATTERN in 5.0 and removed in v6. >This is a dashed line and now the PATTERN is applied at the LAYER level >rather than at the SYMBOL. > >You should remove the STYLE..END block from the SYMBOL and apply it as a >PATTERN at the LAYER level (see >http://mapserver.org/mapfile/style.html#style) > >Mike > >-- >Michael Smith > >US Army Corps >Remote Sensing GIS/Center > > > > >On 12/28/11 3:58 PM, "Bistrais, Bob" wrote: > >>Not sure if this helps, but here's the first few lines of the symbol >>file- notice that line 6 contains the Style keyword. Does anything >look >>out of place with that? >> >>SYMBOL >> NAME 'county-line' >> TYPE ELLIPSE >> POINTS 2 2 END >> FILLED true >> STYLE 4 2 2 4 END >>END >> >> >> >>-----Original Message----- >>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >>Sent: Wednesday, December 28, 2011 11:31 AM >>To: mapserver-users at lists.osgeo.org >>Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to >>6.0.1 >> >>Hi Bob, >> >>What does the top 15+- lines of your mapfile look like? >>This error is in loadSymbol, do you have a reference to a symbol file? >>is this where the error is coming from? Are you sure you are loading >the >> >>correct symbol file? >> >>-Steve W >> >>On 12/28/2011 11:20 AM, Bistrais, Bob wrote: >>> When I try to get the mapfile in cgi mode, a different error appears: >>> >>> loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6) >>> >>> *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] >>> *Sent:* Wednesday, December 28, 2011 11:00 AM >>> *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org >>> *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1 >>> >>> Nothing should have to be done. 6.0.1 was primarily a security >update. >>> Can you try accessing the mapfile >>> >>> outside PHP with shp2img or mapserv itself? >>> >>> Steve >>> >>> *From: * mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >>> *Bistrais, Bob >>> *Sent:* Wednesday, December 28, 2011 9:56 AM >>> *To:* mapserver-users at lists.osgeo.org >>> *Subject:* [mapserver-users] failed to open map file - MS 6.0 to >6.0.1 >>> >>> I'm trying to upgrade some MapServer applications which were >>originally >>> written before MS 6.0. These had been migrated to 6.0, now I am >trying >>> to upgrade them to 6.0.1. I would have thought nothing needed to be >>> done, but when I try to view these applications, I get the following >>> error message: >>> >>> Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): >>> (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line >218 >>> Fatal error: Uncaught exception 'MapScriptException' with message >>> 'Failed to open map file "../maps/mymap.map"' in >>> C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 >>> C:\ms4w\apps\mgs\htdocs\drawMap.php(218): >>> ms_newMapObj('../maps/mymap...') #1 {main} thrown in >>> C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 >>> >>> -I checked the obvious, such as permissions, paths, etc, but not able >>to >>> figure out what's going wrong here. As mentioned, it works OK in MS >>6.0. >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >>_______________________________________________ >>mapserver-users mailing list >>mapserver-users at lists.osgeo.org >>http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Bob.Bistrais at maine.gov Wed Dec 28 14:14:32 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 28 Dec 2011 17:14:32 -0500 Subject: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041CB667DB@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041CB667DF@SOM-TEAQASMAIL1.som.w2k.state.me.us> Thanks Mike. This will be a big help. -----Original Message----- From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil] Sent: Wednesday, December 28, 2011 5:02 PM To: Bistrais, Bob; Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to 6.0.1 Yes, CARTOLINE was deprecated back at version 5 and completely removed at version 6. Here's the migration guide http://mapserver.org/MIGRATION_GUIDE.html#migration Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 12/28/11 4:50 PM, "Bistrais, Bob" wrote: >Thanks Mike, > >Looking at that now. Does the same apply to Cartoline? I seem to be >having issues with those symbols as well. > > >-----Original Message----- >From: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil] > >Sent: Wednesday, December 28, 2011 4:08 PM >To: Bistrais, Bob; Stephen Woodbridge; mapserver-users at lists.osgeo.org >Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to >6.0.1 > >Bob, > >STYLE at the SYMBOL level was renamed PATTERN in 5.0 and removed in v6. >This is a dashed line and now the PATTERN is applied at the LAYER level >rather than at the SYMBOL. > >You should remove the STYLE..END block from the SYMBOL and apply it as a >PATTERN at the LAYER level (see >http://mapserver.org/mapfile/style.html#style) > >Mike > >-- >Michael Smith > >US Army Corps >Remote Sensing GIS/Center > > > > >On 12/28/11 3:58 PM, "Bistrais, Bob" wrote: > >>Not sure if this helps, but here's the first few lines of the symbol >>file- notice that line 6 contains the Style keyword. Does anything >look >>out of place with that? >> >>SYMBOL >> NAME 'county-line' >> TYPE ELLIPSE >> POINTS 2 2 END >> FILLED true >> STYLE 4 2 2 4 END >>END >> >> >> >>-----Original Message----- >>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >>Sent: Wednesday, December 28, 2011 11:31 AM >>To: mapserver-users at lists.osgeo.org >>Subject: Re: [mapserver-users] RE: failed to open map file - MS 6.0 to >>6.0.1 >> >>Hi Bob, >> >>What does the top 15+- lines of your mapfile look like? >>This error is in loadSymbol, do you have a reference to a symbol file? >>is this where the error is coming from? Are you sure you are loading >the >> >>correct symbol file? >> >>-Steve W >> >>On 12/28/2011 11:20 AM, Bistrais, Bob wrote: >>> When I try to get the mapfile in cgi mode, a different error appears: >>> >>> loadSymbol(): Unknown identifier. Parsing error near (STYLE):(line 6) >>> >>> *From: * Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] >>> *Sent:* Wednesday, December 28, 2011 11:00 AM >>> *To:* Bistrais, Bob; mapserver-users at lists.osgeo.org >>> *Subject:* RE: failed to open map file - MS 6.0 to 6.0.1 >>> >>> Nothing should have to be done. 6.0.1 was primarily a security >update. >>> Can you try accessing the mapfile >>> >>> outside PHP with shp2img or mapserv itself? >>> >>> Steve >>> >>> *From: * mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >>> *Bistrais, Bob >>> *Sent:* Wednesday, December 28, 2011 9:56 AM >>> *To:* mapserver-users at lists.osgeo.org >>> *Subject:* [mapserver-users] failed to open map file - MS 6.0 to >6.0.1 >>> >>> I'm trying to upgrade some MapServer applications which were >>originally >>> written before MS 6.0. These had been migrated to 6.0, now I am >trying >>> to upgrade them to 6.0.1. I would have thought nothing needed to be >>> done, but when I try to view these applications, I get the following >>> error message: >>> >>> Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): >>> (../maps/mymap.map) in C:\ms4w\apps\mgs\htdocs\drawMap.php on line >218 >>> Fatal error: Uncaught exception 'MapScriptException' with message >>> 'Failed to open map file "../maps/mymap.map"' in >>> C:\ms4w_303\apps\mgs\htdocs\drawMap.php:218 Stack trace: #0 >>> C:\ms4w\apps\mgs\htdocs\drawMap.php(218): >>> ms_newMapObj('../maps/mymap...') #1 {main} thrown in >>> C:\ms4w\apps\mgs\htdocs\drawMap.php on line 218 >>> >>> -I checked the obvious, such as permissions, paths, etc, but not able >>to >>> figure out what's going wrong here. As mentioned, it works OK in MS >>6.0. >>> >>> >>> >>> _______________________________________________ >>> 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 dejan.gambin at coin.hr Thu Dec 29 03:19:44 2011 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Thu, 29 Dec 2011 12:19:44 +0100 Subject: [mapserver-users] Order of attributes returned from WFS GetFeature In-Reply-To: <84446DEF76453C439E9E97E438E13A63060738@suutari.haapa.mmm.fi> References: <12CE9CFF-5405-46F0-87A5-8A67AC7E4782@coin.hr>, <84446DEF76453C439E9E97E438E13A63060738@suutari.haapa.mmm.fi> Message-ID: Thanks, I tried something like: DATA "the_geom from (select the_geom, attr1, attr2 from table) as new_table using unique gid" but this doesn't work. Can you tell me how should such a query look like? Now it is like: DATA "the_geom from table using unique gid" Thanks very much regards, dejan On 27. pro. 2011., at 22:13, Rahkonen Jukka wrote: > Hi, > > The WFS standard defines that attributes are included in a XML sequence. Therefore the returned attributes must be in the same order than in the schema of your feature type. > > I would suggest also having a try with editing the SQL in the DATA line and selecting attributes as you like but check first if it has an effect on the schema returned by DescribeFeatureType. > > -Jukka Rahkonen- > ________________________________________ > Lime, Steve D (DNR) wrote: > >> I don't believe you can control this on the MapServer side. Why not just set the column order >> explicitly in the SQL statement? > >> Steve > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Dejan Gambin >> Sent: Thursday, December 22, 2011 7:40 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Order of attributes returned from WFS GetFeature > >> Hi, > >> I am using GetFeature request to get the attributes from my PostGIS data. I define attributes with "gml_include_items". The order of attributes is however related to postgis column order, not to the order in gml_include_items. > > Is it somehow possible to change the order, withoout need to modify column order in PostGIS/PostgreSQL? > > regards, dejan_______________________________________________ > 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 havard.tveite at umb.no Thu Dec 29 03:40:26 2011 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 29 Dec 2011 12:40:26 +0100 Subject: [mapserver-users] Order of attributes returned from WFS GetFeature In-Reply-To: References: <12CE9CFF-5405-46F0-87A5-8A67AC7E4782@coin.hr>, <84446DEF76453C439E9E97E438E13A63060738@suutari.haapa.mmm.fi> Message-ID: <4EFC51AA.9040701@umb.no> I think your subselect has to include gid. Examples on: H?vard On 12/29/2011 12:19 PM, Dejan Gambin wrote: > Thanks, > > I tried something like: > > DATA "the_geom from (select the_geom, attr1, attr2 from table) as new_table using unique gid" > > but this doesn't work. Can you tell me how should such a query look like? Now it is like: > > DATA "the_geom from table using unique gid" > > Thanks very much > > regards, dejan > On 27. pro. 2011., at 22:13, Rahkonen Jukka wrote: > >> Hi, >> >> The WFS standard defines that attributes are included in a XML sequence. Therefore the returned attributes must be in the same order than in the schema of your feature type. >> >> I would suggest also having a try with editing the SQL in the DATA line and selecting attributes as you like but check first if it has an effect on the schema returned by DescribeFeatureType. >> >> -Jukka Rahkonen- >> ________________________________________ >> Lime, Steve D (DNR) wrote: >> >>> I don't believe you can control this on the MapServer side. Why not just set the column order >>> explicitly in the SQL statement? >> >>> Steve >> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf> Of Dejan Gambin >>> Sent: Thursday, December 22, 2011 7:40 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Order of attributes returned from WFS GetFeature >> >>> Hi, >> >>> I am using GetFeature request to get the attributes from my PostGIS data. I define attributes with "gml_include_items". The order of attributes is however related to postgis column order, not to the order in gml_include_items. >> >> Is it somehow possible to change the order, withoout need to modify column order in PostGIS/PostgreSQL? >> >> regards, dejan_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From dejan.gambin at coin.hr Thu Dec 29 03:59:24 2011 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Thu, 29 Dec 2011 12:59:24 +0100 Subject: [mapserver-users] Order of attributes returned from WFS GetFeature In-Reply-To: <4EFC51AA.9040701@umb.no> References: <12CE9CFF-5405-46F0-87A5-8A67AC7E4782@coin.hr>, <84446DEF76453C439E9E97E438E13A63060738@suutari.haapa.mmm.fi> <4EFC51AA.9040701@umb.no> Message-ID: <25E15702-2A1F-48AA-906B-29B0A35E805A@coin.hr> Thanks. This works like a charm :-) dejan On 29. pro. 2011., at 12:40, Havard Tveite wrote: > I think your subselect has to include gid. > > Examples on: > > > H?vard > > On 12/29/2011 12:19 PM, Dejan Gambin wrote: >> Thanks, >> >> I tried something like: >> >> DATA "the_geom from (select the_geom, attr1, attr2 from table) as new_table using unique gid" >> >> but this doesn't work. Can you tell me how should such a query look like? Now it is like: >> >> DATA "the_geom from table using unique gid" >> >> Thanks very much >> >> regards, dejan >> On 27. pro. 2011., at 22:13, Rahkonen Jukka wrote: >> >>> Hi, >>> >>> The WFS standard defines that attributes are included in a XML sequence. Therefore the returned attributes must be in the same order than in the schema of your feature type. >>> >>> I would suggest also having a try with editing the SQL in the DATA line and selecting attributes as you like but check first if it has an effect on the schema returned by DescribeFeatureType. >>> >>> -Jukka Rahkonen- >>> ________________________________________ >>> Lime, Steve D (DNR) wrote: >>> >>>> I don't believe you can control this on the MapServer side. Why not just set the column order >>>> explicitly in the SQL statement? >>> >>>> Steve >>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf> Of Dejan Gambin >>>> Sent: Thursday, December 22, 2011 7:40 AM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] Order of attributes returned from WFS GetFeature >>> >>>> Hi, >>> >>>> I am using GetFeature request to get the attributes from my PostGIS data. I define attributes with "gml_include_items". The order of attributes is however related to postgis column order, not to the order in gml_include_items. >>> >>> Is it somehow possible to change the order, withoout need to modify column order in PostGIS/PostgreSQL? >>> >>> regards, dejan_______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- > H?vard Tveite > Department of Mathematical Sciences and Technology, UMB > Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY > Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ahti.lahtela at pp.inet.fi Thu Dec 29 05:49:19 2011 From: ahti.lahtela at pp.inet.fi (ahlah) Date: Thu, 29 Dec 2011 05:49:19 -0800 (PST) Subject: [mapserver-users] simplify problem Message-ID: <1325166559184-7135648.post@n2.nabble.com> Hi, I'm trying to use ST_Simplify function of Postgis in Mapserver This data source works fine in my mapfile of Mapserver: DATA 'geom_3067 from lines using srid=3067 using unique id' ST_Simplify query works fine inside Postgis: select ST_Simplify(geom_3067,100) from lines; But when I'm trying to use simplify function like this in mapfile, mapserver throws error: DATA 'ST_Simplify(geom_3067,100) from lines using srid=3067 using unique id' msDrawMap(): Image handling error. Failed to draw layer named 'grid'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: column "ST_Simplify(geom_3067,100)" does not exist LINE 1: ...status",encode(AsBinary(force_collection(force_2d("ST_Simpli... ^ This is the query sent by mapserver: select "status",encode(AsBinary(force_collection(force_2d("ST_Simplify(geom_3067,100)")),'NDR'),'hex') as geom,"id" from lines where ST_Simplify(geom_3067,100) && GeomFromText('POLYGON((365203 7272028.2777498,365203 7661628.2777498,724803 7661628.2777498,724803 7272028.2777498,365203 7272028.2777498))',3067) It seems that mapserver handles "ST_Simplify(geom_3067,100)" like a database column. Is there something wrong in my syntax? Thanks in advance AL -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/simplify-problem-tp7135648p7135648.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Thu Dec 29 06:01:39 2011 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu, 29 Dec 2011 08:01:39 -0600 Subject: [mapserver-users] simplify problem In-Reply-To: <1325166559184-7135648.post@n2.nabble.com> References: <1325166559184-7135648.post@n2.nabble.com> Message-ID: <0A765F53-B1CC-4FFA-88B5-AEBB9F599D43@gmail.com> On Dec 29, 2011, at 7:49 AM, ahlah wrote: > Hi, > > I'm trying to use ST_Simplify function of Postgis in Mapserver > > This data source works fine in my mapfile of Mapserver: > DATA 'geom_3067 from lines using srid=3067 using unique id' > > ST_Simplify query works fine inside Postgis: > select ST_Simplify(geom_3067,100) from lines; > > But when I'm trying to use simplify function like this in mapfile, mapserver > throws error: > DATA 'ST_Simplify(geom_3067,100) from lines using srid=3067 using unique id' Try using a column alias like so DATA 'ST_Simplify(geom_3067, 100) geom FROM lines USING srid=3067 USING UNIQUE id' > > msDrawMap(): Image handling error. Failed to draw layer named 'grid'. > msPostGISLayerWhichShapes(): Query error. Error (ERROR: column > "ST_Simplify(geom_3067,100)" does not exist > LINE 1: ...status",encode(AsBinary(force_collection(force_2d("ST_Simpli... > ^ > This is the query sent by mapserver: > select > "status",encode(AsBinary(force_collection(force_2d("ST_Simplify(geom_3067,100)")),'NDR'),'hex') > as geom,"id" from lines where ST_Simplify(geom_3067,100) && > GeomFromText('POLYGON((365203 7272028.2777498,365203 7661628.2777498,724803 > 7661628.2777498,724803 7272028.2777498,365203 7272028.2777498))',3067) > > It seems that mapserver handles "ST_Simplify(geom_3067,100)" like a database > column. Is there something wrong in my syntax? > > Thanks in advance > > AL > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/simplify-problem-tp7135648p7135648.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 ahti.lahtela at pp.inet.fi Thu Dec 29 06:14:21 2011 From: ahti.lahtela at pp.inet.fi (ahlah) Date: Thu, 29 Dec 2011 06:14:21 -0800 (PST) Subject: [mapserver-users] Re: simplify problem In-Reply-To: <0A765F53-B1CC-4FFA-88B5-AEBB9F599D43@gmail.com> References: <1325166559184-7135648.post@n2.nabble.com> <0A765F53-B1CC-4FFA-88B5-AEBB9F599D43@gmail.com> Message-ID: <1325168061280-7135710.post@n2.nabble.com> Hi, > DATA 'ST_Simplify(geom_3067, 100) geom FROM lines USING srid=3067 USING > UNIQUE id' still getting error: msDrawMap(): Image handling error. Failed to draw layer named 'grid'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: syntax error at or near "geom" LINE 1: ...id" from lines where ST_Simplify(geom_3067, 1000) geom && Ge... ^ ) executing query: select "status",encode(AsBinary(force_collection(force_2d("ST_Simplify(geom_3067, 1000) geom")),'NDR'),'hex') as geom,"id" from lines where ST_Simplify(geom_3067, 1000) geom && GeomFromText('POLYGON((455103 7369428.2777498,455103 7564228.2777498,634903 7564228.2777498,634903 7369428.2777498,455103 7369428.2777498))',3067) AL -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/simplify-problem-tp7135648p7135710.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Thu Dec 29 06:43:14 2011 From: punk.kish at gmail.com (Puneet Kishor) Date: Thu, 29 Dec 2011 08:43:14 -0600 Subject: [mapserver-users] Re: simplify problem In-Reply-To: <1325168061280-7135710.post@n2.nabble.com> References: <1325166559184-7135648.post@n2.nabble.com> <0A765F53-B1CC-4FFA-88B5-AEBB9F599D43@gmail.com> <1325168061280-7135710.post@n2.nabble.com> Message-ID: On Dec 29, 2011, at 8:14 AM, ahlah wrote: > Hi, > >> DATA 'ST_Simplify(geom_3067, 100) geom FROM lines USING srid=3067 USING >> UNIQUE id' > > still getting error: > > msDrawMap(): Image handling error. Failed to draw layer named 'grid'. > msPostGISLayerWhichShapes(): Query error. Error (ERROR: syntax error at or > near "geom" > LINE 1: ...id" from lines where ST_Simplify(geom_3067, 1000) geom && Ge... Dunno man. Guessing in the wind again... Create a view in Pg using a column alias as above, then use the view in the map file. That should do it. Mind it, I haven't looked at the actual syntax of your query.... I am on an iPad here. > ^ > ) executing query: select > "status",encode(AsBinary(force_collection(force_2d("ST_Simplify(geom_3067, > 1000) geom")),'NDR'),'hex') as geom,"id" from lines where > ST_Simplify(geom_3067, 1000) geom && GeomFromText('POLYGON((455103 > 7369428.2777498,455103 7564228.2777498,634903 7564228.2777498,634903 > 7369428.2777498,455103 7369428.2777498))',3067) > AL > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/simplify-problem-tp7135648p7135710.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 ahti.lahtela at pp.inet.fi Thu Dec 29 08:07:33 2011 From: ahti.lahtela at pp.inet.fi (ahlah) Date: Thu, 29 Dec 2011 08:07:33 -0800 (PST) Subject: [mapserver-users] Re: simplify problem In-Reply-To: References: <1325166559184-7135648.post@n2.nabble.com> <0A765F53-B1CC-4FFA-88B5-AEBB9F599D43@gmail.com> <1325168061280-7135710.post@n2.nabble.com> Message-ID: <1325174853977-7136002.post@n2.nabble.com> Hi, Actually I did a view and it works fine, but I thought to use different tolerances depending on map scale. So it would be better to have simplify on mapfile. regards, AL -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/simplify-problem-tp7135648p7136002.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Thu Dec 29 08:19:58 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 29 Dec 2011 17:19:58 +0100 Subject: [mapserver-users] Re: simplify problem In-Reply-To: <1325174853977-7136002.post@n2.nabble.com> References: <1325166559184-7135648.post@n2.nabble.com> <0A765F53-B1CC-4FFA-88B5-AEBB9F599D43@gmail.com> <1325168061280-7135710.post@n2.nabble.com> <1325174853977-7136002.post@n2.nabble.com> Message-ID: data "the_geom from (select st_simplify(the_geom,xxx) as the_geom, gid, attr1,attr2 from table) as foo using unique gid using srid=xxx" On Thu, Dec 29, 2011 at 17:07, ahlah wrote: > Hi, > > Actually I did a view and it works fine, but I thought to use different > tolerances depending on map scale. So it would be better to ?have simplify > on mapfile. > > regards, > > AL > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/simplify-problem-tp7135648p7136002.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 ahti.lahtela at pp.inet.fi Thu Dec 29 08:44:51 2011 From: ahti.lahtela at pp.inet.fi (ahlah) Date: Thu, 29 Dec 2011 08:44:51 -0800 (PST) Subject: [mapserver-users] Re: simplify problem In-Reply-To: References: <1325166559184-7135648.post@n2.nabble.com> <0A765F53-B1CC-4FFA-88B5-AEBB9F599D43@gmail.com> <1325168061280-7135710.post@n2.nabble.com> <1325174853977-7136002.post@n2.nabble.com> Message-ID: <1325177091890-7136117.post@n2.nabble.com> Hi, this one works! > data "the_geom from (select st_simplify(the_geom,xxx) as the_geom, > gid, attr1,attr2 from table) as foo using unique gid using srid=xxx" Thanks, AL -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/simplify-problem-tp7135648p7136117.html Sent from the Mapserver - User mailing list archive at Nabble.com. From agr.gianluca.massei at gmail.com Thu Dec 29 10:07:57 2011 From: agr.gianluca.massei at gmail.com (gianluca.massei) Date: Thu, 29 Dec 2011 19:07:57 +0100 Subject: [mapserver-users] setting mapserv path in template Message-ID: <4EFCAC7D.2020306@gmail.com> I'm new in mapserver, I'm following a tutorial but I can't go on. I've made a simple mapfile and a template with hidden form like this:
If I open the template with a browser I get a download window and ask me If I wont download te mapserv file. Could you help me? Thanks Gianluca From aeskreis at gmail.com Thu Dec 29 10:27:49 2011 From: aeskreis at gmail.com (Adam Eskreis) Date: Thu, 29 Dec 2011 13:27:49 -0500 Subject: [mapserver-users] setting mapserv path in template In-Reply-To: <4EFCAC7D.2020306@gmail.com> References: <4EFCAC7D.2020306@gmail.com> Message-ID: First of all, try using GET instead of POST. Once you make that change, post the full URL with parameters that you are trying to use and maybe we can help. One thing I cna say for sure is if those inputs are hte only parameters you are passing to mapserver, it's probably not enough. I don't see a parameter there for image type, a bounding box, or image width/height. On Thu, Dec 29, 2011 at 1:07 PM, gianluca.massei < agr.gianluca.massei at gmail.com> wrote: > I'm new in mapserver, I'm following a tutorial but I can't go on. I've > made a simple mapfile and a template with hidden form like this: > >
> > > > > >
> > If I open the template with a browser I get a download window and ask me > If I wont download te mapserv file. > Could you help me? > > Thanks > > Gianluca > ______________________________**_________________ > 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 aeskreis at gmail.com Thu Dec 29 10:29:51 2011 From: aeskreis at gmail.com (Adam Eskreis) Date: Thu, 29 Dec 2011 13:29:51 -0500 Subject: [mapserver-users] setting mapserv path in template In-Reply-To: References: <4EFCAC7D.2020306@gmail.com> Message-ID: Also are you sure hte CGI-BIN is set up properly on your webserver? That could be hte problem as well. On Thu, Dec 29, 2011 at 1:27 PM, Adam Eskreis wrote: > First of all, try using GET instead of POST. Once you make that change, > post the full URL with parameters that you are trying to use and maybe we > can help. One thing I cna say for sure is if those inputs are hte only > parameters you are passing to mapserver, it's probably not enough. I don't > see a parameter there for image type, a bounding box, or image width/height. > > > On Thu, Dec 29, 2011 at 1:07 PM, gianluca.massei < > agr.gianluca.massei at gmail.com> wrote: > >> I'm new in mapserver, I'm following a tutorial but I can't go on. I've >> made a simple mapfile and a template with hidden form like this: >> >>
>> >> >> >> >> >>
>> >> If I open the template with a browser I get a download window and ask me >> If I wont download te mapserv file. >> Could you help me? >> >> Thanks >> >> Gianluca >> ______________________________**_________________ >> 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 richard.greenwood at gmail.com Thu Dec 29 20:36:12 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 29 Dec 2011 21:36:12 -0700 Subject: [mapserver-users] force labels to centroid only Message-ID: When labeling Public Land Survey polygons I would like to force the label to stay at the center of the polygon, and if the center of the polygon is not visible in the map view (only a portion of the poly is visible) then I do not want the label to be drawn. The way that I'm currently doing this is with a separate point layer for labeling, which works fine. I'm just wondering if there is a label directive that I am overlooking that could be applied to the poly layer? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Steve.Lime at state.mn.us Fri Dec 30 07:46:51 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 30 Dec 2011 15:46:51 +0000 Subject: [mapserver-users] force labels to centroid only In-Reply-To: References: Message-ID: Look at the "LABEL_NO_CLIP" processing option. That tells MapServer to compute a label point before clipping to the map view. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Richard Greenwood [richard.greenwood at gmail.com] Sent: Thursday, December 29, 2011 10:36 PM To: mapserver Subject: [mapserver-users] force labels to centroid only When labeling Public Land Survey polygons I would like to force the label to stay at the center of the polygon, and if the center of the polygon is not visible in the map view (only a portion of the poly is visible) then I do not want the label to be drawn. The way that I'm currently doing this is with a separate point layer for labeling, which works fine. I'm just wondering if there is a label directive that I am overlooking that could be applied to the poly layer? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users