From lmhelp1 at orange.fr Fri Apr 1 07:23:18 2011 From: lmhelp1 at orange.fr (Lmhelp) Date: Fri, 01 Apr 2011 16:23:18 +0200 Subject: [mapserver-users] MapServer download (at download.osgeo.org) failure Message-ID: <4D95DFD6.5050801@orange.fr> Hi, Thank you for reading my post. When I try to download "MapServer" by clicking the following link: http://download.osgeo.org/mapserver/mapserver-5.6.6.tar.gz in the download page : http://mapserver.org/download.html it says: "The connection has timed out. The server at download.osgeo.org is taking to long to respond." How/where can I download "MapServer"? Thank you for your help and best regards. From aboudreault at mapgears.com Fri Apr 1 07:34:18 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 1 Apr 2011 10:34:18 -0400 Subject: [mapserver-users] MapServer download (at download.osgeo.org) failure In-Reply-To: <4D95DFD6.5050801@orange.fr> References: <4D95DFD6.5050801@orange.fr> Message-ID: <201104011034.18414.aboudreault@mapgears.com> I've just tried the link and it is working properly. The failure may come from your side. Alan On April 1, 2011 10:23:18 am Lmhelp wrote: > Hi, > > Thank you for reading my post. > > When I try to download "MapServer" by clicking the following link: > http://download.osgeo.org/mapserver/mapserver-5.6.6.tar.gz > in the download page : http://mapserver.org/download.html > it says: > "The connection has timed out. > The server at download.osgeo.org is taking to long to respond." > > How/where can I download "MapServer"? > > Thank you for your help and best regards. > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From warmerdam at pobox.com Fri Apr 1 07:44:02 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 01 Apr 2011 10:44:02 -0400 Subject: [mapserver-users] MapServer download (at download.osgeo.org) failure In-Reply-To: <4D95DFD6.5050801@orange.fr> References: <4D95DFD6.5050801@orange.fr> Message-ID: <4D95E4B2.7060005@pobox.com> On 11-04-01 10:23 AM, Lmhelp wrote: > Hi, > > Thank you for reading my post. > > When I try to download "MapServer" by clicking the following link: > http://download.osgeo.org/mapserver/mapserver-5.6.6.tar.gz > in the download page : http://mapserver.org/download.html > it says: > "The connection has timed out. > The server at download.osgeo.org is taking to long to respond." > > How/where can I download "MapServer"? > > Thank you for your help and best regards. Lmhelp, We have observed routing problems from some European ISPs to download.osgeo.org. There is a mirror available at: http://download2.osgeo.org/ that should work for you. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From lmhelp1 at orange.fr Fri Apr 1 07:50:00 2011 From: lmhelp1 at orange.fr (Lmhelp) Date: Fri, 01 Apr 2011 16:50:00 +0200 Subject: [mapserver-users] MapServer download (at download.osgeo.org) failure In-Reply-To: <4D95E4B2.7060005@pobox.com> References: <4D95DFD6.5050801@orange.fr> <4D95E4B2.7060005@pobox.com> Message-ID: <4D95E618.70703@orange.fr> On 04/01/2011 4:44 PM, Frank Warmerdam wrote: > On 11-04-01 10:23 AM, Lmhelp wrote: >> Hi, >> >> Thank you for reading my post. >> >> When I try to download "MapServer" by clicking the following link: >> http://download.osgeo.org/mapserver/mapserver-5.6.6.tar.gz >> in the download page : http://mapserver.org/download.html >> it says: >> "The connection has timed out. >> The server at download.osgeo.org is taking to long to respond." >> >> How/where can I download "MapServer"? >> >> Thank you for your help and best regards. > > Lmhelp, > > We have observed routing problems from some European ISPs to > download.osgeo.org. There is a mirror available at: > > http://download2.osgeo.org/ > > that should work for you. > > Best regards, Hi, Thank you. It worked. Best regards. From Weisbend at wapa.gov Fri Apr 1 08:35:51 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Fri, 01 Apr 2011 09:35:51 -0600 Subject: [mapserver-users] embed reference map Message-ID: <4D959C77020000DF000732DE@10.1.50.131> Is there a way to embed the Mapserver reference map like you can the legend. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott.stewart at nbtsolutions.com Fri Apr 1 09:04:17 2011 From: scott.stewart at nbtsolutions.com (Scott Stewart) Date: Fri, 1 Apr 2011 12:04:17 -0400 Subject: [mapserver-users] GetLegendGraphic and Mapserver upgrade Message-ID: Hi I recently upgraded a mapserver 5.2 server to 5.6.6 and it has "broken" my abiltity to get legend icons WITHOUT labels and a specificied size here is my legend block from my mapfile LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF END and here is my RULE for the layer CLASS NAME "AboveNet" STYLE ANGLE 360 COLOR 0 0 255 OPACITY 100 SYMBOL 0 WIDTH 4 END END and here is my request http:// /cgi-bin/mapserv?map=/home/fiberlocatormaps/mapfiles/fiberlocator.map&LAYER=l_abovenet&RULE=AboveNet&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&FORMAT=image%2Fpng&WIDTH=16&HEIGHT=16 When I make this call on the new server, I ALWAY get back a legend graphic with a label. On the old server, i get back a nice 16x16 png. I have read in some place about ommiting the RULE in the request, but this didnt work for me. It still returns the label. If i remove the CLASS from the mapfile, it returns an "empty" image My question is what changed and how do i go about fixing or rectifying the problem? -- Scott Stewart Principal NBT Solutions LLC phone: (757)941-5110 email: scott.stewart at nbtsolutions.com website:www.nbtsolutions.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Fri Apr 1 09:12:22 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 1 Apr 2011 11:12:22 -0500 Subject: [mapserver-users] embed reference map In-Reply-To: <4D959C77020000DF000732DE@10.1.50.131> References: <4D959C77020000DF000732DE@10.1.50.131> Message-ID: Yup, set STATUS EMBED. They work the same way. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Weisbender Sent: Friday, April 01, 2011 10:36 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] embed reference map Is there a way to embed the Mapserver reference map like you can the legend. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrguerra at gmv.com Fri Apr 1 12:09:14 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Fri, 1 Apr 2011 21:09:14 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4E70D1E8680D584198DDB55BD65220B3A32D98DCF4@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>, <4D936F11.1060500@mapgears.com> <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> <4D9385CF.2020305@dmsolutions.ca> , <4D939708.40903@dmsolutions.ca>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCEE@GMVMAIL5.gmv.es>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCF3@GMVMAIL5.gmv.es>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCF4@GMVMAIL5.gmv.es> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98DCF6@GMVMAIL5.gmv.es> Hello, Today I had time to try this test in 3 different systems, and I couldn make it work in any of them, so I think this is a bug, should I create a new ticket in http://trac.osgeo.org/mapserver/. I write the steps below to reproduce the problem PROBLEM: In wfs layer where the data is retrieved from a mysql table, the intersect filter only returns a result list when the first feature(the first inserted record in the table) is part of the result set. If the filter shall return results, but the first feature is not among them, then we get not list of features: -1.000000,-1.000000 -1.000000,-1.000000 Which is diffrent to when a query shall not return any resultst: missing TEST: 1. Create Spatial Data CREATE DATABASE mmi_spatial_db; USE mmi_spatial_db; CREATE TABLE positionReal (oid LONG, point POINT); INSERT INTO positionReal(oid, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); INSERT INTO positionReal(oid, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(oid, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); 2. Map file: MAP NAME MMI_WFS UNITS METERS TRANSPARENT ON IMAGECOLOR 0 0 0 IMAGETYPE PNG SHAPEPATH "." SYMBOLSET "../symbols.sym" STATUS ON WEB IMAGEPATH "/opt/fsg/tmp/" IMAGEURL "/opt/fsg/" METADATA "wfs_title" "WFS MMI Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_srs" "EPSG:4326"## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended "wfs_schemas_location" "http://schemas.opengeospatial.net" END END PROJECTION "init=epsg:4326" END LAYER NAME "PositionReal" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "MySQL:mmi_spatial_db,user=mmi,password=*****,host=127.0.0.1,port=3306" DATA "SELECT point from positionReal" #CONNECTIONTYPE POSTGIS #CONNECTION "host=127.0.0.1 port=5432 dbname=mmi_db user=postgres password=postgres" #DATA "point from positionreal" DUMP TRUE ## REQUIRED #TOLERANCE 200 #TOLERANCEUNITS PIXELS METADATA #"wfs_featureid" "oid" "wfs_srs" "epsg:4326" "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_title" "PositionReal" "gml_include_items" "all" ## Optional (serves all attributes for lay "gml_surface_occurances" "0,UNBOUNDED" "wfs_extent" "-180 -90 180 90" "gml_include_items" "all" END END END # Map File 3. Intersect Filter: - This one works because point (-10,-10) is part of the resultset. http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -180,-90 -180,90 180,90 180,-90 -180,-90 - This one works, point (-10,-10) is part of the resultset http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -11,-11 -11,-9 -9,-9 -9,-11 -11,-11 - This query fails, it should return one feature, but we get the weird behavior because point (-10,-10) is not part of the resultset http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point 9,9 9,11 11,11 11,9 9,9 Notice that I use gml:polygon instead of gml:box to be able to test this with mapserver in trunk (which works with gml:box) but also with mapserver 5.6.3 (fgs-installer, which dont work with intersect and gml:box) The problem does not ocurr if the database in use is postgres ./createdb -U postgres -T template_postgis mmi_db; CREATE TABLE positionReal (oid int); SELECT AddGeometryColumn('positionreal', 'point', 4326,'POINT',2); INSERT INTO positionReal(oid, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); INSERT INTO positionReal(oid, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(oid, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); SYSTEMS: I test this in the following systems: OpenSuse 11 fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin and building from the sources (branch 5-6) mysql Ver 14.12 Distrib 5.0.67, for suse-linux-gnu (i686) using readline 5.2 and mysql 5.5 too SLES 11 fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin mysql Ver 14.14 Distrib 5.1.43, for unknown-linux-gnu (x86_64) using readline 5.1 Ubunut fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin mysql 5.1 Best regards, Joaqu?n ________________________________________ De: Joaqu?n Rodriguez-Guerra Urcelay Enviado el: jueves, 31 de marzo de 2011 17:25 Para: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hi, I have check the same example using Posgres and it works, so it is a problem with mysql Joaqu?n Rodr?guez-Guerra Urcelay Unidad de Sistemas de Procesamiento de Ciencia y de Observaci?n de la Tierra / Science and Earth Observing Processing Systems Unit GMV AEROSPACE AND DEFENCE, S.A. Isaac Newton, 11 P.T.M. Tres Cantos E-28760 Madrid Tel. +34 91 807 21 00 / 7695 Fax +34 91 807 21 99 www.gmv.com ________________________________________ De: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] En nombre de Joaqu?n Rodriguez-Guerra Urcelay [jrguerra at gmv.com] Enviado el: jueves, 31 de marzo de 2011 16:42 Para: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hello, Here I am again, this is not over :( I have been testing this all morning, and I have seen that intersect only returns results when the first feature in the mysql table belongs to the resultset, very weird :( When I request a filter which should return results, but the first feature is not in the resultset, then I get this: -1.000000,-1.000000 -1.000000,-1.000000 Which is diffrent to when I make a query which should not return any results, then I get: missing So, it detects when there are results, but only show them when the first feature is on the result set. Does this make any sense? This is my database (mysql 5): CREATE DATABASE mmi_spatial_db; USE mmi_spatial_db; CREATE TABLE positionReal (id INTEGER, point GEOMETRY); INSERT INTO positionReal(id, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(id, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); INSERT INTO positionReal(id, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); The following query returns the expected result http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point 10,10 10,10 result: 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 2 And any other query where the point 10,10 is belonging the bounding box, works. If I change the order INSERTS, then this magic point changes for the one I insert first. This is my map file: MAP NAME MMI_WFS UNITS METERS TRANSPARENT ON IMAGECOLOR 0 0 0 IMAGETYPE PNG SHAPEPATH "." SYMBOLSET "../symbols.sym" STATUS ON WEB IMAGEPATH "/opt/fsg/tmp/" IMAGEURL "/opt/fsg/" METADATA "wfs_title" "WFS MMI Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_srs" "EPSG:4326"## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended "wfs_schemas_location" "http://schemas.opengeospatial.net" END END PROJECTION "init=epsg:4326" END LAYER NAME "PositionReal" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "MySQL:mmi_spatial_db,user=mmi,password=adminis,host=127.0.0.1,port=3306" DATA "SELECT id,point from positionReal" DUMP TRUE ## REQUIRED #TOLERANCE 200 #TOLERANCEUNITS PIXELS METADATA "wfs_featureid" "id" "wfs_srs" "epsg:4326" "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_title" "PositionReal" "gml_include_items" "all" ## Optional (serves all attributes for lay "gml_surface_occurances" "0,UNBOUNDED" "wfs_extent" "-180 -90 180 90" "gml_include_items" "all" END END END # Map File Well, this is weird, but if it sounds familliar or it rings a bell to some one, please help me :) Thanks! Joaqu?n ________________________________________ De: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] En nombre de Joaqu?n Rodriguez-Guerra Urcelay [jrguerra at gmv.com] Enviado el: jueves, 31 de marzo de 2011 11:31 CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hi, Thank you both for your help, the filter is finally working :D The bug is fixed, gml:box works now with intersect. I wanted to confirm this in the bug report, but I havent found they way to write anything there (is it because the bug is now closed?) Yesterday I was not getting the results I expected because I think my connection to the mysql database had some problem. I tried with a shapefile and it was working perfectly, so I then played a bit with the mysql connection and now it is working :) Joaqu?n ________________________________________ De: Yewondwossen Assefa [yassefa at dmsolutions.ca] Enviado el: mi?rcoles, 30 de marzo de 2011 22:48 Para: Rahkonen Jukka CC: mapserver-users at lists.osgeo.org; Joaqu?n Rodriguez-Guerra Urcelay Asunto: Re: [mapserver-users] WFS Intersect with gml:box On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: > Hi, > > "Intersect" means the same as "not disjoint", that the two geometries have at least one point in common. Thus WFS Intersects should select the point that is inside the "box" in the query. I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial query Intersects. > Geos lib used by MapServer should act the same as JTS I beleive. Joaqu?n, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From otesta at gmail.com Fri Apr 1 12:22:16 2011 From: otesta at gmail.com (Oscar Testa) Date: Fri, 01 Apr 2011 16:22:16 -0300 Subject: [mapserver-users] DrawQuery problem Message-ID: <4D9625E8.4010101@gmail.com> An HTML attachment was scrubbed... URL: From Weisbend at wapa.gov Fri Apr 1 13:23:05 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Fri, 01 Apr 2011 14:23:05 -0600 Subject: [mapserver-users] a follow-up to REST services in MapServer Message-ID: <4D95DFC9020000DF0007337C@10.1.50.131> What I have learned sense my last post on REST/WMTS in MapServer is that ArcOnline REST services are known as WMTS or web map tile services and with GDAL 1.7 or better you can use an xml proxy file in conjunction with gdal to access any WMTS. With this configuration the WMTS behaves like any WMS. Speed and performance is comparable to WMS but resolution is sometimes iffy. My layer def and gdal xml file is as follows. Thanks to Robert, Mark, and others . LAYER NAME "esri_imagery" TYPE RASTER STATUS OFF DATA "/data/gis/www/html/cso/esri_imagery.xml" PROCESSING "OVERSAMPLE_RATIO=1.0" METADATA "wms_title" "World_Imagery" "wms_name" "World_Imagery" "wms_srs" "EPSG:3785" END PROJECTION "init=epsg:3785" END CLASS NAME "ESRI Imagery" KEYIMAGE "/data/gis/www/html/ms_common/colorphoto_sym.png" END END 1.1.1 http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/${z}/${y}/${x}.png -20037508.342787 20037508.342787 20037508.342787 -20037508.342787 19 1 1 top EPSG:3857 256 256 3 -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Fri Apr 1 13:57:35 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 1 Apr 2011 15:57:35 -0500 Subject: [mapserver-users] a follow-up to REST services in MapServer In-Reply-To: <4D95DFC9020000DF0007337C@10.1.50.131> References: <4D95DFC9020000DF0007337C@10.1.50.131> Message-ID: This would be something well worth documenting on the MapServer website. I'd suggest creating a ticket with your message content and assigning it to the documentation component. Glad it's working. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Weisbender Sent: Friday, April 01, 2011 3:23 PM To: mapserver-users at lists.osgeo.org Cc: reh2 at prodigy.net Subject: [mapserver-users] a follow-up to REST services in MapServer What I have learned sense my last post on REST/WMTS in MapServer is that ArcOnline REST services are known as WMTS or web map tile services and with GDAL 1.7 or better you can use an xml proxy file in conjunction with gdal to access any WMTS. With this configuration the WMTS behaves like any WMS. Speed and performance is comparable to WMS but resolution is sometimes iffy. My layer def and gdal xml file is as follows. Thanks to Robert, Mark, and others . LAYER NAME "esri_imagery" TYPE RASTER STATUS OFF DATA "/data/gis/www/html/cso/esri_imagery.xml" PROCESSING "OVERSAMPLE_RATIO=1.0" METADATA "wms_title" "World_Imagery" "wms_name" "World_Imagery" "wms_srs" "EPSG:3785" END PROJECTION "init=epsg:3785" END CLASS NAME "ESRI Imagery" KEYIMAGE "/data/gis/www/html/ms_common/colorphoto_sym.png" END END 1.1.1 http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/${z}/${y}/${x}.png -20037508.342787 20037508.342787 20037508.342787 -20037508.342787 19 1 1 top EPSG:3857 256 256 3 -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco.pirotti at unipd.it Sat Apr 2 01:52:39 2011 From: francesco.pirotti at unipd.it (francesco) Date: Sat, 02 Apr 2011 10:52:39 +0200 Subject: [mapserver-users] Mapserver 6.0.0 beta4 mapscript layer.getFeature missing? In-Reply-To: References: Message-ID: <4D96E3D7.1060800@unipd.it> Hello everyone, Thanks to mapserver developers/users for their time to help out on this list. I am trying out the new Mapserver 6.0.0, compiled it for windows and now I am testing it. Came across the following problem: on mapscript I cannot call the "getFeature($i)" function; I get the following message /Call to undefined method layerObj::getFeature() / The migration guide reads: /layer.getShape(int tileindex, int shapeindex)) has been deprecated and renamed to layer.getFeature(int shapeindex [, int tileindex = -1]) to match the SWIG MapScript equivalent./ But it seems that function does not exist! :-) Am I missing out on something? Cheers, -- ************************************************** *Francesco Pirotti* Dep. TESAF CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry Remote Sensing and G.I.S. University of Padova Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm Email: francesco.pirotti at unipd.it Phone: +39 049 827 2710 Phone: +39 349 55 39 261 ************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at gmx.net Sat Apr 2 02:26:59 2011 From: armin.burger at gmx.net (Armin Burger) Date: Sat, 02 Apr 2011 11:26:59 +0200 Subject: [mapserver-users] Mapserver 6.0.0 beta4 mapscript layer.getFeature missing? In-Reply-To: <4D96E3D7.1060800@unipd.it> References: <4D96E3D7.1060800@unipd.it> Message-ID: <4D96EBE3.4070003@gmx.net> Francesco getShape() has been deprecated in MS <=5.6 and has been re-introduced (with modifications) in MS 6, and getFeature() that replaced getShape() in MS <=5.6 has been removed in MS 6, quite clear, isn't it? ;-) There's a migration guide Mapscript 5.6->6 and an RFC hat describe Mapscript changes, though I don't know if that reflects the final status or if there have been additional changes in the meantime: http://www.mapserver.org/trunk/mapscript/php/migration_guide.html http://www.mapserver.org/trunk/development/rfc/ms-rfc-65.html armin On 02/04/2011 10:52, francesco wrote: > Hello everyone, > Thanks to mapserver developers/users for their time to help out on this > list. > I am trying out the new Mapserver 6.0.0, compiled it for windows and now > I am testing it. > Came across the following problem: > on mapscript I cannot call the "getFeature($i)" function; I get the > following message > /Call to undefined method layerObj::getFeature() / > > The migration guide reads: > /layer.getShape(int tileindex, int shapeindex)) has been deprecated and > renamed to layer.getFeature(int shapeindex [, int tileindex = -1]) to > match the SWIG MapScript equivalent./ > > But it seems that function does not exist! :-) > > Am I missing out on something? > > Cheers, > -- > ************************************************** > *Francesco Pirotti* > Dep. TESAF > CIRGEO ? Interdepartmental Research Center on Cartography Photogrammetry > Remote Sensing and G.I.S. > University of Padova > Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm > Email: francesco.pirotti at unipd.it > Phone: +39 049 827 2710 > Phone: +39 349 55 39 261 > ************************************************** > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From francesco.pirotti at unipd.it Sat Apr 2 03:41:56 2011 From: francesco.pirotti at unipd.it (francesco) Date: Sat, 02 Apr 2011 12:41:56 +0200 Subject: [mapserver-users] Mapserver 6.0.0 beta4 mapscript layer.getFeature missing? In-Reply-To: <4D96EBE3.4070003@gmx.net> References: <4D96E3D7.1060800@unipd.it> <4D96EBE3.4070003@gmx.net> Message-ID: <4D96FD74.40806@unipd.it> Ok thanks that cleared it up!! My objective "simply" is to get feature number X from a layer (postgis). I'll look at getShape() . Thank you also for links to the trunk migration guides. Francesco Il 02/04/2011 11:26, Armin Burger ha scritto: > Francesco > > getShape() has been deprecated in MS <=5.6 and has been re-introduced > (with modifications) in MS 6, and getFeature() that replaced > getShape() in MS <=5.6 has been removed in MS 6, quite clear, isn't > it? ;-) > > There's a migration guide Mapscript 5.6->6 and an RFC hat describe > Mapscript changes, though I don't know if that reflects the final > status or if there have been additional changes in the meantime: > http://www.mapserver.org/trunk/mapscript/php/migration_guide.html > http://www.mapserver.org/trunk/development/rfc/ms-rfc-65.html > > armin > > > On 02/04/2011 10:52, francesco wrote: >> Hello everyone, >> Thanks to mapserver developers/users for their time to help out on this >> list. >> I am trying out the new Mapserver 6.0.0, compiled it for windows and now >> I am testing it. >> Came across the following problem: >> on mapscript I cannot call the "getFeature($i)" function; I get the >> following message >> /Call to undefined method layerObj::getFeature() / >> >> The migration guide reads: >> /layer.getShape(int tileindex, int shapeindex)) has been deprecated and >> renamed to layer.getFeature(int shapeindex [, int tileindex = -1]) to >> match the SWIG MapScript equivalent./ >> >> But it seems that function does not exist! :-) >> >> Am I missing out on something? >> >> Cheers, >> -- >> ************************************************** >> *Francesco Pirotti* >> Dep. TESAF >> CIRGEO ? Interdepartmental Research Center on Cartography Photogrammetry >> Remote Sensing and G.I.S. >> University of Padova >> Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm >> Email: francesco.pirotti at unipd.it >> Phone: +39 049 827 2710 >> Phone: +39 349 55 39 261 >> ************************************************** >> >> >> >> _______________________________________________ >> 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 > > -- ************************************************** *Francesco Pirotti* Dep. TESAF CIRGEO ? Interdepartmental Research Center on Cartography Photogrammetry Remote Sensing and G.I.S. University of Padova Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm Email: francesco.pirotti at unipd.it Phone: +39 049 827 2710 Phone: +39 349 55 39 261 ************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Sat Apr 2 13:12:36 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Sat, 02 Apr 2011 16:12:36 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta4 release In-Reply-To: <20110331083804.E0F2D1678238@mail.r3-gis.com> References: <20110331083804.E0F2D1678238@mail.r3-gis.com> Message-ID: <4D978334.7000904@mapgears.com> On 11-03-31 04:38 AM, Peter Hopfgartner wrote: > > Looking at ./configure, around line 12710, the tests look like: > > test -f $XSLT_DIR/include/libxslt/xslt.h&& XSLT_INCDIR="$XSLT_DIR/include" > test -f $XSLT_DIR/lib/libxslt.so&& XSLT_LIBDIR="$XSLT_DIR/lib" > > Anyway, on a pure 64 bit machine, there won't be any lib/libxslt.so, but a lib64/libxslt.so. Indeed, changing this to lib64 it configures fine on my machine. > Thanks for the report. I have fixed this in SVN trunk r11448. The fix will be in the next beta. Daniel -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From crookgeo at gmail.com Sun Apr 3 06:26:24 2011 From: crookgeo at gmail.com (martin crook) Date: Sun, 3 Apr 2011 09:26:24 -0400 Subject: [mapserver-users] tutorial assistance Message-ID: I have recently installed mapserver and I get the appropriate message by using the following command: http://localhost/cgi-bin/mapserv I saved the Example1-1.map file to my Apache html directory: /var/www/html/mapserver/ Example1-1.map all my data for the tutorial is in: /var/www/html/mapserver/data within the mapfile, I modified the path to: SHAPEPATH "/var/www/html/mapserver/data" when I use the command in the browswer: " http://localhost/cgi-bin/mapserv&map=/var/www/html/mapserver/Example1-1.map&layer=states&mode=map " I get the following output: "Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 localhost Apache/2.2.14 (Mandriva Linux/PREFORK-1.5mdv2010.0)" I have tried many alternate locations and paths to troubleshoot, but cannot make any of them work. I suspect a permission issue, but am unsure. Please help. Thanks in advance. -Marty -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Sun Apr 3 06:51:23 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Sun, 03 Apr 2011 09:51:23 -0400 Subject: [mapserver-users] tutorial assistance In-Reply-To: References: Message-ID: <4D987B5B.7050407@mapgears.com> On 11-04-03 09:26 AM, martin crook wrote: > > when I use the command in the browswer: > > " > > I get the following output: > > Try using: http://localhost/cgi-bin/mapserv?map=/var/www/html/mapserver/Example1-1.map&layer=states&mode=map The first delimiter after the mapserv program name should be a "?"... and then "&" are used between the parameters in the QUERY_STRING part of the URL. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From otesta at gmail.com Fri Apr 1 11:43:21 2011 From: otesta at gmail.com (Oscar Testa) Date: Fri, 01 Apr 2011 15:43:21 -0300 Subject: [mapserver-users] DrawQuery problem In-Reply-To: References: <4D94BAED.9030803@gmail.com> Message-ID: <4D961CC9.1030406@gmail.com> An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Apr 4 06:45:41 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 4 Apr 2011 16:45:41 +0300 Subject: [mapserver-users] SLD filter does not work with attribute values like '04.186.1.004' Message-ID: Hi, We have shapefiles with a string type attribute field and the values in that field are numbers separated with points, for example '04.186.1.004'. Now we have troubles with doing SLD filtering by the values. This filter does not work JARVINUMER04.186.1.004 I can make the SLD to work by editing the source data so that the JARVINUMER is like K04.186.1.004 or 041861004 and changing the filter accordingly. Editing shapefile to have the attribute value like 4.186.1.004 makes SLD to fail again. I tried what happens when I filter the layer in the mapfile by adding a CLASSITEM and EXPRESSION and ask Mapserver to send GetStyles for this filtered layer. The result was exactly the same than my original filter (or almost, Mapserver is sending the PropertyName as lower case >jarvinumer). Both upper case and lower case PropertyNames do work in the filter. I am not sure if they should but my main problem is that the filter with number-dot-number-dot-number does not work at all. Is this possibly something worth making a bug report? The Mapserver versions I was playing with were 5.6 and 6.0 beta4. They behaved in a similar way. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From nb at geosys.com Mon Apr 4 16:20:13 2011 From: nb at geosys.com (Nicolas BOUTET) Date: Tue, 5 Apr 2011 01:20:13 +0200 Subject: [mapserver-users] Coordinates precision in GML output Message-ID: <001901cbf31e$da785a00$8f690e00$@com> Hello all, I'm serving some Oracle Geometries using MapServer as a WFS Server. Data are stored in Oracle using WGS84 and are served as GML using a Mercator projection. Re-projection is also done by MapServer / PROJ.4. All is working fine, but because I have a lot of geometries, with more and more vertices, the resulting GML output is too big and I need to decrease his size. Because I don't need to have metric coordinates with 6 decimals (1 or 2 should be more than enough), I tried to find a way to limit the number of decimals, with no success. Does anybody know how to do this? Thanks Nicolas B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From johannes.smith at ymail.com Tue Apr 5 03:51:33 2011 From: johannes.smith at ymail.com (Johannes Smith) Date: Tue, 5 Apr 2011 03:51:33 -0700 (PDT) Subject: [mapserver-users] MapServer 6: outputformat gd/jpeg missing Message-ID: <2819.7813.qm@web121501.mail.ne1.yahoo.com> Hi, trying MapServer 6 beta 4 I recognized that output format gd/jpeg is no longer supported. Instead there's agg/jpeg. Is that intended? J. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fruitwerks at gmail.com Tue Apr 5 04:25:19 2011 From: fruitwerks at gmail.com (fruitwerks) Date: Tue, 5 Apr 2011 04:25:19 -0700 Subject: [mapserver-users] MapServer 6: outputformat gd/jpeg missing In-Reply-To: <2819.7813.qm@web121501.mail.ne1.yahoo.com> References: <2819.7813.qm@web121501.mail.ne1.yahoo.com> Message-ID: The only recent mention of jpg I see is: "AGG/PNG and AGG/JPEG are the only valid agg drivers. Imagetypes aggpng24 and aggjpeg can be used to refer to the default output formats." Is there a documentation for 6 yet? I know there are a few migration / quirk / changes texts, but I was unable to find full blown documentation. On Tue, Apr 5, 2011 at 3:51 AM, Johannes Smith wrote: > Hi, trying MapServer 6 beta 4 I recognized that output format gd/jpeg is no > longer supported. Instead there's agg/jpeg. Is that intended? J. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- _______________________________________________________________________________ Any use, dissemination, distribution, posting on Internet bulletin boards, disclosure or copying of this e-mail or any information contained herein by or to anyone other than the intended recipient(s) is strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws. From yassefa at dmsolutions.ca Tue Apr 5 06:30:20 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 05 Apr 2011 09:30:20 -0400 Subject: [mapserver-users] MapServer 6: outputformat gd/jpeg missing In-Reply-To: References: <2819.7813.qm@web121501.mail.ne1.yahoo.com> Message-ID: <4D9B196C.7090301@dmsolutions.ca> Hi, I am not sure if there is yet a 6.0 doc on that. Here is what I can see browsing through the code. This list gives you the output format names that are defined in MapServer and the driver used to render them. - name: png; dirver is AGG; mime type is image/png; produces 24bit png - jpeg; AGG; image/jpeg; jpeg output - gif; GD; image/gif; gif output - png8; AGG; image/png; mode=8bit; QUANTIZED automatically to produce 8bit png; - png24; AGG; image/png; mode=24bit; same as png-24bit png - pdf; CAIRO; application/x-pdf; - svg; CAIRO; image/svg+xml - cairopng; CAIRO; 24bit png - GTiff; GDAL/GTiff, image/tiff - kml; Mapserver native; application/vnd.google-earth.kml+xml - kmz, Mapserver native; application/vnd.google-earth.kmz You can also define output blocks in the map file as before. Here are some of them I see in the code. - gdal/xxx : where xxx is the gdal driver - dirver TEMPLATE (http://mapserver.org/development/rfc/ms-rfc-36.html) - ogr outputs for WMS (http://www.mapserver.org/trunk/output/ogr_output.html) - cairowinGDI; CAIRO/WINGDI - cairowinGDIPrint; CAIRO/WINGDIPRINT - oglpng24; OGL/PNG Note that there might be docs explaining/giving details on each of them. I might also have missed some of them. An explicit doc on oputput format is needed I believe for the 6.0 release. Assefa On 05/04/2011 7:25 AM, fruitwerks wrote: > The only recent mention of jpg I see is: > > "AGG/PNG and AGG/JPEG are the only valid agg drivers. Imagetypes > aggpng24 and aggjpeg can be used to refer to the default output > formats." > > Is there a documentation for 6 yet? I know there are a few migration / > quirk / changes texts, but I was unable to find full blown > documentation. > > > On Tue, Apr 5, 2011 at 3:51 AM, Johannes Smith wrote: >> Hi, trying MapServer 6 beta 4 I recognized that output format gd/jpeg is no >> longer supported. Instead there's agg/jpeg. Is that intended? J. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From otesta at gmail.com Tue Apr 5 10:46:40 2011 From: otesta at gmail.com (Oscar Testa) Date: Tue, 05 Apr 2011 14:46:40 -0300 Subject: [mapserver-users] DrawQuery problem Message-ID: <4D9B5580.4010800@gmail.com> An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Tue Apr 5 11:27:19 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 5 Apr 2011 13:27:19 -0500 Subject: [mapserver-users] Coordinates precision in GML output In-Reply-To: <001901cbf31e$da785a00$8f690e00$@com> References: <001901cbf31e$da785a00$8f690e00$@com> Message-ID: Looking at the code the 6 decimals are fixed. You'd need to edit mapgml.c and recompile I'm afraid. Sorry... Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nicolas BOUTET Sent: Monday, April 04, 2011 6:20 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Coordinates precision in GML output Hello all, I'm serving some Oracle Geometries using MapServer as a WFS Server. Data are stored in Oracle using WGS84 and are served as GML using a Mercator projection. Re-projection is also done by MapServer / PROJ.4. All is working fine, but because I have a lot of geometries, with more and more vertices, the resulting GML output is too big and I need to decrease his size. Because I don't need to have metric coordinates with 6 decimals (1 or 2 should be more than enough), I tried to find a way to limit the number of decimals, with no success. Does anybody know how to do this? Thanks Nicolas B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco.pirotti at unipd.it Tue Apr 5 23:27:16 2011 From: francesco.pirotti at unipd.it (francesco.pirotti at unipd.it) Date: Wed, 6 Apr 2011 08:27:16 +0200 Subject: [mapserver-users] fcgi with mapserver version 6.0.0 beta4 - Parsing error Message-ID: <00f22722051bd6b5012c2a9214be54e4.squirrel@webmail.unipd.it> Hello List, Here is what I think is a bug on Mapserver last dev version 6.0.0 beta4: When calling mapserv.exe using fcgi handler, it draw the map correctly every OTHER call to mapserver, so once it draws the map, and if I click again it throws the following error: msLoadMap(): Unknown Identifier. Parsing error near(): line 3. Seems like it cannot read the mapfile or something. Any one experiencing the same problem? Ciao Francesco From Brian at zetica.com Wed Apr 6 00:04:55 2011 From: Brian at zetica.com (Brian Barrett) Date: Wed, 6 Apr 2011 08:04:55 +0100 Subject: [mapserver-users] html legend Message-ID: <774A827313441E439B989397455DB3041A9EE3B7FF@GEOSUK02.zetica.local> Hi, I have a mapserver html legend that does not show all of my desired classes. My map has some layers with a group name and some without. Most layers with a group name need just a single legend entry, so I've specified a [leg_group_html] section (as shown below) to identify those layers using the "isset" and "neq" operators. The layers with a group name "geophysics" or "interp" need a legend item for each layer (with a specific formatting) so I've specified a [leg_class_html] section and set these up there using the "eq" operator on the "layer_group" My problem is with the remaining layers that have no group defined. These currently do not show in the legend, despite using the "isnull" option in the [leg_class_html] section. Code is below. Can anyone help explain the problem please? [leg_header_html] [/leg_header_html] [leg_group_html] [if name=group_name oper=isset] [if name=group_name oper=neq value="geophysics"] [if name=group_name oper=neq value="interp"] [if name=layer_status oper=eq value=1]
[leg_group_name]
[/if][/if][/if][/if] [/leg_group_html] [leg_class_html] [if name=layer_group oper=isnull]
[leg_class_name]
[/if] [if name=layer_group oper=eq value="geophysics"]
[/if] [if name=layer_group oper=eq value="interp"]
[/if] [/leg_class_html] Brian 3D mapping and site investigation services for: Pipeline and cable routes | UXO | Utilities | Rail | Foundation design | Flood defences | Surveying ** Click here to see our latest newsletter ** Brian Barrett Senior Geophysicist brian at zetica.com Tel: 44-(0)1993-886682 Mob: 44-(0)7973-549737 Fax: 44-(0)1993-886683 www.zetica.com [cid:image001.gif at 01CBF431.188F2400] Zetica Ltd Units 15 & 16 Hanborough Business Park Long Hanborough OX29 8LH, UK Zetica Limited is registered in England No. 4079723 The information in this email is intended only for the addressee(s) named above. Access to this email by anyone else is unauthorised. If you are not the intended recipient of this message any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. Zetica Ltd and or its subsidiaries do not warrant that any attachments are free from viruses or other defects and accept no liability for any losses resulting from infected email transmissions. Please note that any views expressed in this email may be those of the originator and do not necessarily reflect those of this organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 1392 bytes Desc: image001.gif URL: From Thomas.Waberzeck at liag-hannover.de Wed Apr 6 01:16:00 2011 From: Thomas.Waberzeck at liag-hannover.de (Waberzeck, Thomas) Date: Wed, 6 Apr 2011 10:16:00 +0200 Subject: [mapserver-users] php Mapscript logging Message-ID: <08F447350F7FA0408F7BE55D99D3E861111263A80E@ZVMBX01.bgr.local> Hello, I've got some questions about logging: 1. How do I avoid the logging if queryByPoint fails? I use the following statement to query: if (@($this_layer->queryByPoint($querypoint, MS_SINGLE, 0)) == MS_SUCCESS) {.} If nothing is found, I've got a message in my Mapserver logfile. At map level debug is set off but I still get warnings. 2. How do I catch warnings i.e. if getLayerByName is called with a wrong layername? try { $currLay = $map->getLayerByName($currLayName); } catch (Exception $exc) { error_log('Layer '.$currLayName.' not found - Exception'); }catch (Error $e) { error_log('Layer '.$currLayName.' not found - Error'); } Using the code above, php doesn't run into the catch statement. Using "@" in the code above like [...] $currLay = @$map->getLayerByName($currLayName); [...] nothing is logged... Thanks Thomas Waberzeck Leibniz-Institut f?r Angewandte Geophysik (LIAG) GEOZENTRUM HANNOVER Stilleweg 2 30655 Hannover Telefon +49 (0)511 643 3352 Telefax +49 (0)511 643 3665 Thomas.Waberzeck at liag-hannover.de From francesco.pirotti at unipd.it Wed Apr 6 02:45:26 2011 From: francesco.pirotti at unipd.it (francesco.pirotti at unipd.it) Date: Wed, 6 Apr 2011 11:45:26 +0200 Subject: [mapserver-users] Mapserver6.0.0 beta4 - setting object values In-Reply-To: <00f22722051bd6b5012c2a9214be54e4.squirrel@webmail.unipd.it> References: <00f22722051bd6b5012c2a9214be54e4.squirrel@webmail.unipd.it> Message-ID: <5a1a8ea527334ea3cf51fdb4cc2108d0.squirrel@webmail.unipd.it> Hello, Daniel Morrissette mentioned to report bugs when using Mapserver6.0.0beta4 so here I go. Sorry if sometimes what I think is a bug is just me missing out on something. :-) I cannot use PHPMapscript to set values either using: $mapobj->shapepath = "" and $mapobj->set("shapepath", "") but nothing get set (I echo the value and it is still the old value). Cheers, Francesco From snaperski at gmail.com Wed Apr 6 04:34:14 2011 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 6 Apr 2011 14:34:14 +0300 Subject: [mapserver-users] label placement problem Message-ID: Hello! I am using MapServer 5.4 and right now I'm facing with label positioning problem. Any help solving that would really be appreciated. 1. I have lots of buildings address points... so for example if two nearby located buildings at the crossing of "Some_street" and "Some_other_street" have both same house numbers (for example "1") then the MINDISTANCE 30 declaration will cancel one label out. 2. I cannot remove MINDISTANCE neither since in many cases I have large building complexes where multiple buildings share same address label. And I want mapfile to declare some distance between those addresses that logically will mark the same address object. 3. In my buildings_addresses (points) file I do have attribute, which I could use to separate those two kinds of duplicate labels, but MapServer doent seem to support rendering them differently in a such way.... Or am I wrong? My LABEL definition: LABEL TYPE truetype ANTIALIAS true FONT "arial" COLOR 50 50 50 SIZE 9 priority 1 ANGLE [POORDENURK] MINDISTANCE 30 OUTLINECOLOR 220 220 220 POSITION cc BUFFER 2 END Hope that there will be some kind of solution here. Sincerely, Raivo Alla -------------- next part -------------- An HTML attachment was scrubbed... URL: From otesta at gmail.com Wed Apr 6 04:36:09 2011 From: otesta at gmail.com (Oscar Testa) Date: Wed, 06 Apr 2011 08:36:09 -0300 Subject: [mapserver-users] DrawQuery problem Message-ID: <4D9C5029.5050806@gmail.com> An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Apr 6 04:40:01 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 06 Apr 2011 08:40:01 -0300 Subject: [mapserver-users] fcgi with mapserver version 6.0.0 beta4 - Parsing error In-Reply-To: <00f22722051bd6b5012c2a9214be54e4.squirrel@webmail.unipd.it> References: <00f22722051bd6b5012c2a9214be54e4.squirrel@webmail.unipd.it> Message-ID: <4D9C5111.6010203@gatewaygeomatics.com> On 11-04-06 3:27 AM, francesco.pirotti at unipd.it wrote: > Hello List, > Here is what I think is a bug on Mapserver last dev version 6.0.0 beta4: > When calling mapserv.exe using fcgi handler, it draw the map correctly > every OTHER call to mapserver, so once it draws the map, and if I click > again it throws the following error: > > msLoadMap(): Unknown Identifier. Parsing error near(): line 3. > > Seems like it cannot read the mapfile or something. > > Any one experiencing the same problem? > Ciao > Francesco Hello Francesco, Great catch, I can also reproduce this with beta4 (beta 1 to beta 3 work fine). I have filed a ticket, please add yourself to its CC (http://trac.osgeo.org/mapserver/ticket/3812). I looked at the list of beta4 changes, could it be one of the lexer/variable changes? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From pixelpusher at cox.net Wed Apr 6 06:10:33 2011 From: pixelpusher at cox.net (PixelPusher) Date: Wed, 6 Apr 2011 9:10:33 -0400 Subject: [mapserver-users] how do min/max scale filters work? Message-ID: <20110406091033.0EXJ7.16017.imail@eastrmwml30> I?ve got a simple thing in a MapServer page that doesn?t want to work. There is a layer in my map that I only want displayed if the scale of the view is between 1:24000 and 1:100000. However, I?ve had no luck using the MAXSCALEDENOM and MINSCALEDENOM keywords. As configured below, the layer never draws, regardless of the scale. The layer draws correctly if I comment out the scale tests. Can anyone show me the correct way to use this? The relevant section of the mapfile looks like this: LAYER NAME "BTSroads_local_PostGIS" TYPE LINE STATUS DEFAULT MAXSCALEDENOM 100000 MINSCALEDENOM 24000 CONNECTIONTYPE POSTGIS CONNECTION "dbname=mapserver user=uuuu password=pppp port=5432" DATA "wkb_geometry from btsroads using unique ogc_fid using srid=4269" FILTER "fcc LIKE 'A4%'" CLASS NAME "Local Roads" STYLE COLOR 220 214 196 END END END # layer Thanks, Thom -- ------------------------------------------------------- Man will occasionally stumble over the truth, but most of the time he will pick himself up and continue. -- Winston Churchill From woodbri at swoodbridge.com Wed Apr 6 07:37:14 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 06 Apr 2011 10:37:14 -0400 Subject: [mapserver-users] how do min/max scale filters work? In-Reply-To: <20110406091033.0EXJ7.16017.imail@eastrmwml30> References: <20110406091033.0EXJ7.16017.imail@eastrmwml30> Message-ID: <4D9C7A9A.6070107@swoodbridge.com> Does it draw if you remove both (MAX|MIN)SCALEDENOM? If not the problem is probably not related to these. -Steve W On 4/6/2011 9:10 AM, PixelPusher wrote: > I?ve got a simple thing in a MapServer page that doesn?t want to work. There is a layer in my map that I only want displayed if the scale of the view is between 1:24000 and 1:100000. However, I?ve had no luck using the MAXSCALEDENOM and MINSCALEDENOM keywords. As configured below, the layer never draws, regardless of the scale. The layer draws correctly if I comment out the scale tests. Can anyone show me the correct way to use this? > > The relevant section of the mapfile looks like this: > > LAYER > NAME "BTSroads_local_PostGIS" > TYPE LINE > STATUS DEFAULT > MAXSCALEDENOM 100000 > MINSCALEDENOM 24000 > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=mapserver user=uuuu password=pppp port=5432" > DATA "wkb_geometry from btsroads using unique ogc_fid using srid=4269" > FILTER "fcc LIKE 'A4%'" > CLASS > NAME "Local Roads" > STYLE > COLOR 220 214 196 > END > END > END # layer > > Thanks, > Thom > > -- > ------------------------------------------------------- > Man will occasionally stumble over the truth, but most of the time > he will pick himself up and continue. -- Winston Churchill > _______________________________________________ > 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 Apr 6 09:14:01 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 6 Apr 2011 19:14:01 +0300 Subject: [mapserver-users] how do min/max scale filters work? References: <20110406091033.0EXJ7.16017.imail@eastrmwml30> Message-ID: Hi, I would first change the layer to have STATUS ON. Now you are giving ambiguous instructions "draw layer always" and "draw just at this scale range". It may be something else, though, but it does not cost much to try. -Jukka Rahkonen- PixelPusher wrote: > I've got a simple thing in a MapServer page that doesn't want to work. There is a layer in my map that I only want displayed if the scale of the view is between 1:24000 and 1:100000. However, I've had no luck using the MAXSCALEDENOM and MINSCALEDENOM keywords. As configured below, the layer never draws, regardless of the scale. The layer draws correctly if I comment out the scale tests. Can anyone show me the correct way to use this? The relevant section of the mapfile looks like this: LAYER NAME "BTSroads_local_PostGIS" TYPE LINE STATUS DEFAULT MAXSCALEDENOM 100000 MINSCALEDENOM 24000 CONNECTIONTYPE POSTGIS CONNECTION "dbname=mapserver user=uuuu password=pppp port=5432" DATA "wkb_geometry from btsroads using unique ogc_fid using srid=4269" FILTER "fcc LIKE 'A4%'" CLASS NAME "Local Roads" STYLE COLOR 220 214 196 END END END # layer Thanks, Thom -- ------------------------------------------------------- Man will occasionally stumble over the truth, but most of the time he will pick himself up and continue. -- Winston Churchill _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pixelpusher at cox.net Wed Apr 6 10:22:10 2011 From: pixelpusher at cox.net (PixelPusher) Date: Wed, 6 Apr 2011 13:22:10 -0400 Subject: [mapserver-users] how do min/max scale filters work? In-Reply-To: Message-ID: <20110406132210.6SF2H.19770.imail@eastrmwml39> Hmmm... interesting... When I change to STATUS ON I get an error saying, "msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers." At the top of each of the mapfiles used in this map, I define the projection as: PROJECTION "init=epsg:4269" END And that matches the srid for all of the layers. ---- Rahkonen Jukka wrote: > Hi, > > I would first change the layer to have STATUS ON. Now you are giving ambiguous instructions "draw layer always" and "draw just at this scale range". It may be something else, though, but it does not cost much to try. > > -Jukka Rahkonen- > > PixelPusher wrote: > > > I've got a simple thing in a MapServer page that doesn't want to work. There is a layer in my map that I only want displayed if the scale of the view is between 1:24000 and 1:100000. However, I've had no luck using the MAXSCALEDENOM and MINSCALEDENOM keywords. As configured below, the layer never draws, regardless of the scale. The layer draws correctly if I comment out the scale tests. Can anyone show me the correct way to use this? > > The relevant section of the mapfile looks like this: > > LAYER > NAME "BTSroads_local_PostGIS" > TYPE LINE > STATUS DEFAULT > MAXSCALEDENOM 100000 > MINSCALEDENOM 24000 > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=mapserver user=uuuu password=pppp port=5432" > DATA "wkb_geometry from btsroads using unique ogc_fid using srid=4269" > FILTER "fcc LIKE 'A4%'" > CLASS > NAME "Local Roads" > STYLE > COLOR 220 214 196 > END > END > END # layer > > Thanks, > Thom > > -- > ------------------------------------------------------- > Man will occasionally stumble over the truth, but most of the time > he will pick himself up and continue. -- Winston Churchill > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ------------------------------------------------------- Man will occasionally stumble over the truth, but most of the time he will pick himself up and continue. -- Winston Churchill From Jukka.Rahkonen at mmmtike.fi Wed Apr 6 10:49:11 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 6 Apr 2011 20:49:11 +0300 Subject: [mapserver-users] how do min/max scale filters work? References: <20110406132210.6SF2H.19770.imail@eastrmwml39> Message-ID: Hi, Are you testing with WMS requests? If yes, I would suggest to read and follow the document http://mapserver.org/ogc/wms_server.html. You need more WMS metadata for making a really working WMS service. If you are testing with Mapserver CGI calls and error message is just misleading with the WMS hint, I am not sure what happens. Myself I have always PROJECTION at LAYER level as well because it gives me a feeling that I am controlling the situation better if I do not need to rely on the defaults. However, it is not compulsory to have LAYER-PROJECTION if all the layers are using the same projection as the whole MAP and you configuration should work. And add DEBUG 5 into your LAYER. It gives faster feedback than this mailing list. -Jukka Rahkonen- PixelPusher wrote: > Hmmm... interesting... > When I change to STATUS ON I get an error saying, "msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers." > At the top of each of the mapfiles used in this map, I define the projection as: PROJECTION "init=epsg:4269" END > And that matches the srid for all of the layers. ---- Rahkonen Jukka wrote: >> Hi, > >> I would first change the layer to have STATUS ON. Now you are giving ambiguous instructions "draw layer always" and "draw just at this scale range". It may be something else, though, but it does not cost much to try. > > -Jukka Rahkonen- > >> PixelPusher wrote: > >> > I've got a simple thing in a MapServer page that doesn't want to work. There is a layer in my map that I only want displayed if the scale of the view is between 1:24000 and 1:100000. However, I've had no luck using the MAXSCALEDENOM and MINSCALEDENOM keywords. As configured below, the layer never draws, regardless of the scale. The layer draws correctly if I comment out the scale tests. Can anyone show me the correct way to use this? > > The relevant section of the mapfile looks like this: > > LAYER > NAME "BTSroads_local_PostGIS" > TYPE LINE > STATUS DEFAULT > MAXSCALEDENOM 100000 > MINSCALEDENOM 24000 > CONNECTIONTYPE POSTGIS > CONNECTION "dbname=mapserver user=uuuu password=pppp port=5432" > DATA "wkb_geometry from btsroads using unique ogc_fid using srid=4269" > FILTER "fcc LIKE 'A4%'" > CLASS > NAME "Local Roads" > STYLE > COLOR 220 214 196 > END > END > END # layer > > Thanks, > Thom > > -- > ------------------------------------------------------- > Man will occasionally stumble over the truth, but most of the time > he will pick himself up and continue. -- Winston Churchill > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ------------------------------------------------------- Man will occasionally stumble over the truth, but most of the time he will pick himself up and continue. -- Winston Churchill From rpinho_eng at yahoo.com.br Wed Apr 6 17:41:59 2011 From: rpinho_eng at yahoo.com.br (Ricardo Pinho) Date: Wed, 6 Apr 2011 17:41:59 -0700 (PDT) Subject: [mapserver-users] [Annouce] GISVM Base Message-ID: <256409.54887.qm@web65708.mail.ac4.yahoo.com> Dear all, We are proud to announce the new ?GISVM BASE?. Available now for FREE DOWNLOAD at: http://gisvm.com GISVM ("GIS Virtual Machine") is a Ubuntu Linux distribution for GIS users, packaged as a virtual machine, a completely isolated computer that can be run in a window inside your current operating system. This new BASE edition, based on a minimum Ubuntu 10.10 installation, provides the user with simple Double Click install scripts for an unlimited possible number of open-source GIS packages.This way, users are FREE to build their own GISVM by installing the desired GIS packages. By the time of this announcement these are the available install scripts: - Quantum GIS / Grass - uDIG - gvSIG - OpenJump - Kosmo - R - GeoServer - GeoMajas We plan to keep adding more install scripts, depending on the users feedback and request. PLEASE REGISTER ON THE GISVM USER MAILLING LIST and help us improve this new version: https://lists.sourceforge.net/lists/listinfo/gisvm-users We would also appreciate it if you SPREAD THE WORD. Put it in your blog, forum, facebook, twitter, webpage, and so on. Thank you, Ricardo Pinho -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Apr 6 19:40:08 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 06 Apr 2011 22:40:08 -0400 Subject: [mapserver-users] Mapserver6.0.0 beta4 - setting object values In-Reply-To: <5a1a8ea527334ea3cf51fdb4cc2108d0.squirrel@webmail.unipd.it> References: <00f22722051bd6b5012c2a9214be54e4.squirrel@webmail.unipd.it> <5a1a8ea527334ea3cf51fdb4cc2108d0.squirrel@webmail.unipd.it> Message-ID: <4D9D2408.4040903@mapgears.com> On 11-04-06 05:45 AM, francesco.pirotti at unipd.it wrote: > > I cannot use PHPMapscript to set values either using: > $mapobj->shapepath = "" and > $mapobj->set("shapepath", "") but nothing get set (I echo the value > and it is still the old value). Nice catch. I have filed a ticket and the fix will be in 6.0.0-beta5. http://trac.osgeo.org/mapserver/ticket/3815 -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From dmorissette at mapgears.com Wed Apr 6 20:29:04 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 06 Apr 2011 23:29:04 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta5 release Message-ID: <4D9D2F80.9050106@mapgears.com> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta5. This is the latest beta on our way to a final 6.0 release. Once again this beta contains several important fixes and we encourage you to test it and continue to provide feedback. The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). If all goes well, the plan is to have a final 6.0 release around the end of April. The full release plan which also includes the list of new features and changes in this release is available at: http://mapserver.org/trunk/development/release/release-plan-6.0.html The list of fixes since beta1 is attached at the end of this message. For a complete list see the HISTORY.TXT file at: http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta5/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. It is not complete yet but we strongly recommend that you review the latest version online at: http://mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-beta5.tar.gz The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team Version 6.0.0-beta5 (2011-04-06) -------------------------------- - Fix setting of top-level mapObj member variables in PHP MapScript (#3815) - More robust OpenGL context creation on older video cards and drivers (#3791) - Allow users to set the maximum number of vector features to be drawn (#3739) - Fixed FCGI on Windows problem related to lexer (#3812) - KML: Add ows/kml_exclude_items (#3560) - Removed all refs left to MS_SYMBOL_CARTOLINE (#3798) - Removed GAP, PATTERN, LINECAP/JOIN and POSITION from symbolObj (#3797) - Fixed handling of STYLEITEM AUTO label position codes 10,11,12 (#3806) - Fixed msGEOSGeometry2Shape to handle 'GEOMETRYCOLLECTION EMPTY' as null geometry instead of raising an error (#3811) - Re-added the MYSQL JOIN support. Had been removed with the MYGIS deprecated driver. - Add opacity to legend (#3740) - Updated PHP/MapScript with the new objects properties (#3735) - KML: set layer's projection when it is not defined (#3809) - Updated xml mapfile schema and xsl with the new lexer properties (#3735) - Updated PHP/MapScript for MS RFC 69: clustering. (#3700) - Move allocation of cgiRequestObj paramNames/Values to msAllocCgiObj() (#1888) - Add support for simple aggregates for the cluster layer attributes (#3700) - Improved error reporting in msSaveImage() (#3733) - configure: look for libxslt.so under lib64 as well - added missing ';' before charset in WFS DescribeFeatureType header (#3793) - add brushed line support for agg renderer (#3792) - fix bug with marker symbols along offset line - fix for the cluster layer returning invalid feature count (#3794) - remove some compiler warnings - fix incorrect scaling of hatch symbol spacing (#3773) - fix incorrect background color for INIMAGE exceptions (#3790) From peter.hopfgartner at r3-gis.com Thu Apr 7 02:12:45 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 7 Apr 2011 11:12:45 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0-beta4 release Message-ID: <20110407091245.D45061678223@mail.r3-gis.com> --------Daniel Morissette wrote-------- Subject: Re: [mapserver-users] MapServer 6.0.0-beta4 release Date: 02.04.2011 22:13 Hi, Daniel >On 11-03-31 04:38 AM, Peter Hopfgartner wrote: >> >> Looking at ./configure, around line 12710, the tests look like: >> >> test -f $XSLT_DIR/include/libxslt/xslt.h&& >XSLT_INCDIR="$XSLT_DIR/include" >> test -f $XSLT_DIR/lib/libxslt.so&& XSLT_LIBDIR="$XSLT_DIR/lib" >> >> Anyway, on a pure 64 bit machine, there won't be any lib/libxslt.so, >but a lib64/libxslt.so. Indeed, changing this to lib64 it configures fine >on my machine. >> > >Thanks for the report. I have fixed this in SVN trunk r11448. The fix >will be in the next beta. I guess that the same fix might be applied for libexslt, too. > >Daniel > >-- >Daniel Morissette >http://www.mapgears.com/ >Provider of Professional MapServer Support since 2000 > Peter R3 GIS Srl - GmbH http://www.r3-gis.com -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.diff Type: text/x-patch Size: 476 bytes Desc: not available URL: From peter.hopfgartner at r3-gis.com Thu Apr 7 02:25:03 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 7 Apr 2011 11:25:03 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0-beta5 release Message-ID: <20110407092503.D6DF01678223@mail.r3-gis.com> --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-beta5 release Date: 07.04.2011 05:29 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta5. This is the latest beta on our way to a final 6.0 release. >Once again this beta contains several important fixes and we encourage >you to test it and continue to provide feedback. > Packages for RHEL/CentOS/Scientific Linux 5 and as src.rpm: http://www.r3-gis.com/upload/mapserver-6.0.0beta5-1.0.el5.src.rpm http://www.r3-gis.com/upload/mapserver-6.0.0beta5-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/php-mapserver-6.0.0beta5-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-perl-6.0.0beta5-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-python-6.0.0beta5-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-java-6.0.0beta5-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-debuginfo-6.0.0beta5-1.0.el5.x86_64.rpm These packages depend on http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS and on the php53* packages, which might be found in http://dev.centos.org/centos/5/testing/x86_64/RPMS/php53/ , until CentOS 5.6 is out. In addition to the beta4 packages, XML map files were enabled, php-mapserver-proj was integrated with php-mapserver and internal TIFF was disbled. beta4 packages were removed. (...) Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com From otesta at gmail.com Wed Apr 6 04:34:27 2011 From: otesta at gmail.com (Oscar Testa) Date: Wed, 06 Apr 2011 08:34:27 -0300 Subject: [mapserver-users] DrawQuery problem In-Reply-To: References: <4D94BAED.9030803@gmail.com> <4D9B6C5F.7040603@gmail.com> Message-ID: <4D9C4FC3.2040105@gmail.com> An HTML attachment was scrubbed... URL: From mapcollect at gmx.net Thu Apr 7 05:19:29 2011 From: mapcollect at gmx.net (kaipi) Date: Thu, 7 Apr 2011 05:19:29 -0700 (PDT) Subject: [mapserver-users] 16 Bit PNG Output Message-ID: <1302178769222-6249725.post@n2.nabble.com> I am not able to output elevation data as 16 Bit PNGs. Is Mapserver not able to to this ? I tried with a current version of Mapserver on Windows and on Linux. I tried WMS and WCS requests - but I always get 8 Bit PNGs back although I have configured 16INT. Other formats like GTiff or Esri Bil work fine with 16Int. Any ideas ? Thanks, kaipi Here is my mapfile: [...] OUTPUTFORMAT NAME 'tif' DRIVER GDAL/GTIFF IMAGEMODE INT16 MIMETYPE "image/tif" END OUTPUTFORMAT NAME 'pngint16' DRIVER GDAL/PNG IMAGEMODE INT16 MIMETYPE "image/pngint16" END [...] LAYER NAME "SRTM30" PROJECTION "init=epsg:4326" END DUMP TRUE METADATA "wcs_rangeset_name" "Range 1" ### required to support DescribeCoverage request "wcs_rangeset_label" "My Label" ### required to support DescribeCoverage request "wcs_label" "SRTM WCS TIF Server" "ows_extent" "-180 -90 180 90" "wcs_resolution" "0.0083 -0.0083" "ows_srs" "EPSG:4326" END STATUS default TYPE RASTER DATA "S:\dem\srtm\srtm30\SRTM30_16b_BIL_GM.TIF" CLASS END END [...] -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/16-Bit-PNG-Output-tp6249725p6249725.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Thu Apr 7 05:57:26 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 7 Apr 2011 08:57:26 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta5 release In-Reply-To: <4D9D2F80.9050106@mapgears.com> References: <4D9D2F80.9050106@mapgears.com> Message-ID: <201104070857.26754.aboudreault@mapgears.com> UbuntuGIS MapServer packages have been updated for the beta5 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On April 6, 2011 11:29:04 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta5. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the end > of April. The full release plan which also includes the list of new > features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta5/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta5.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > > Version 6.0.0-beta5 (2011-04-06) > -------------------------------- > > - Fix setting of top-level mapObj member variables in PHP MapScript (#3815) > > - More robust OpenGL context creation on older video cards and drivers > (#3791) > > - Allow users to set the maximum number of vector features to be drawn > (#3739) > > - Fixed FCGI on Windows problem related to lexer (#3812) > > - KML: Add ows/kml_exclude_items (#3560) > > - Removed all refs left to MS_SYMBOL_CARTOLINE (#3798) > > - Removed GAP, PATTERN, LINECAP/JOIN and POSITION from symbolObj (#3797) > > - Fixed handling of STYLEITEM AUTO label position codes 10,11,12 (#3806) > > - Fixed msGEOSGeometry2Shape to handle 'GEOMETRYCOLLECTION EMPTY' > as null geometry instead of raising an error (#3811) > > - Re-added the MYSQL JOIN support. Had been removed with the MYGIS > deprecated driver. > > - Add opacity to legend (#3740) > > - Updated PHP/MapScript with the new objects properties (#3735) > > - KML: set layer's projection when it is not defined (#3809) > > - Updated xml mapfile schema and xsl with the new lexer properties (#3735) > > - Updated PHP/MapScript for MS RFC 69: clustering. (#3700) > > - Move allocation of cgiRequestObj paramNames/Values to msAllocCgiObj() > (#1888) > > - Add support for simple aggregates for the cluster layer attributes > (#3700) > > - Improved error reporting in msSaveImage() (#3733) > > - configure: look for libxslt.so under lib64 as well > > - added missing ';' before charset in WFS DescribeFeatureType header > (#3793) > > - add brushed line support for agg renderer (#3792) > > - fix bug with marker symbols along offset line > > - fix for the cluster layer returning invalid feature count (#3794) > > - remove some compiler warnings > > - fix incorrect scaling of hatch symbol spacing (#3773) > > - fix incorrect background color for INIMAGE exceptions (#3790) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From juanzito at univali.br Thu Apr 7 10:03:44 2011 From: juanzito at univali.br (Juan Carlos Monestel) Date: Thu, 7 Apr 2011 14:03:44 -0300 Subject: [mapserver-users] making POINT with SQL Message-ID: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> Hello I'm trying to make an POINT in the map but it's not working this is my Layer layer name "ponto" connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "geo_info from table" type point status on metadata tile_source "nocache" end maxscale 3000001 class style size 4 symbol "circulo" color 0 0 0 end style size 1 symbol "circulo" color 255 255 255 end end end The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" Any Ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Apr 7 10:43:29 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 7 Apr 2011 12:43:29 -0500 Subject: [mapserver-users] RE: making POINT with SQL In-Reply-To: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> Message-ID: What does "not working" mean? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Juan Carlos Monestel Sent: Thursday, April 07, 2011 12:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] making POINT with SQL Hello I'm trying to make an POINT in the map but it's not working this is my Layer layer name "ponto" connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "geo_info from table" type point status on metadata tile_source "nocache" end maxscale 3000001 class style size 4 symbol "circulo" color 0 0 0 end style size 1 symbol "circulo" color 255 255 255 end end end The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" Any Ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gcpp.kalxas at gmail.com Thu Apr 7 10:49:09 2011 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Thu, 07 Apr 2011 20:49:09 +0300 Subject: [mapserver-users] MapServer 6.0.0-beta5 release In-Reply-To: <4D9D2F80.9050106@mapgears.com> References: <4D9D2F80.9050106@mapgears.com> Message-ID: <4D9DF915.2040201@gmail.com> Hi all, openSUSE packages for beta5 can be found here: http://download.opensuse.org/repositories/home:/tzotsos/ http://wiki.osgeo.org/wiki/OpenSUSE_Geo_Repositories Regards, Angelos On 04/07/2011 06:29 AM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta5. This is the latest beta on our way to a final 6.0 > release. Once again this beta contains several important fixes and we > encourage you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in > your respective environments and provide feedback (through the users > list or Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the > end of April. The full release plan which also includes the list of > new features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta5/mapserver/HISTORY.TXT > > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other > changes required when upgrading to 6.0. It is not complete yet but we > strongly recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta5.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so > please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > > Version 6.0.0-beta5 (2011-04-06) > -------------------------------- > > - Fix setting of top-level mapObj member variables in PHP MapScript > (#3815) > > - More robust OpenGL context creation on older video cards and drivers > (#3791) > > - Allow users to set the maximum number of vector features to be drawn > (#3739) > > - Fixed FCGI on Windows problem related to lexer (#3812) > > - KML: Add ows/kml_exclude_items (#3560) > > - Removed all refs left to MS_SYMBOL_CARTOLINE (#3798) > > - Removed GAP, PATTERN, LINECAP/JOIN and POSITION from symbolObj (#3797) > > - Fixed handling of STYLEITEM AUTO label position codes 10,11,12 (#3806) > > - Fixed msGEOSGeometry2Shape to handle 'GEOMETRYCOLLECTION EMPTY' > as null geometry instead of raising an error (#3811) > > - Re-added the MYSQL JOIN support. Had been removed with the MYGIS > deprecated driver. > > - Add opacity to legend (#3740) > > - Updated PHP/MapScript with the new objects properties (#3735) > > - KML: set layer's projection when it is not defined (#3809) > > - Updated xml mapfile schema and xsl with the new lexer properties > (#3735) > > - Updated PHP/MapScript for MS RFC 69: clustering. (#3700) > > - Move allocation of cgiRequestObj paramNames/Values to > msAllocCgiObj() (#1888) > > - Add support for simple aggregates for the cluster layer attributes > (#3700) > > - Improved error reporting in msSaveImage() (#3733) > > - configure: look for libxslt.so under lib64 as well > > - added missing ';' before charset in WFS DescribeFeatureType header > (#3793) > > - add brushed line support for agg renderer (#3792) > > - fix bug with marker symbols along offset line > > - fix for the cluster layer returning invalid feature count (#3794) > > - remove some compiler warnings > > - fix incorrect scaling of hatch symbol spacing (#3773) > > - fix incorrect background color for INIMAGE exceptions (#3790) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos From juanzito at univali.br Thu Apr 7 11:20:51 2011 From: juanzito at univali.br (Juan Carlos Monestel) Date: Thu, 7 Apr 2011 15:20:51 -0300 Subject: [mapserver-users] RE: making POINT with SQL References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> Message-ID: <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> Hi it is not drawing and no error occurs -----Original Message----- From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sent: Thu 4/7/2011 2:43 PM To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org Subject: RE: making POINT with SQL What does "not working" mean? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Juan Carlos Monestel Sent: Thursday, April 07, 2011 12:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] making POINT with SQL Hello I'm trying to make an POINT in the map but it's not working this is my Layer layer name "ponto" connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "geo_info from table" type point status on metadata tile_source "nocache" end maxscale 3000001 class style size 4 symbol "circulo" color 0 0 0 end style size 1 symbol "circulo" color 255 255 255 end end end The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" Any Ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Apr 7 11:35:56 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 7 Apr 2011 21:35:56 +0300 Subject: [mapserver-users] RE: making POINT with SQL References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> Message-ID: Hi, First add DEBUG 5, it may generate some interesting information for you into ms_errorfile. Next, comment out maxscale to be sure it is not preventing the rendering. Change it to MAXSCALEDENOM later, maxscale is not to be used any more. Add PROJECTION into your LAYER for getting more control on what is happening. And tell us the exact request you were using. Very often a blank map without any errors means that Mapserver does not find data from the requested map window, and very often it is because of some misconfiguration or misunderstanding with projections. -Jukka Rahkonen- Juan Carlos Monestel wrote: > Hi > it is not drawing and no error occurs -----Original Message----- From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sent: Thu 4/7/2011 2:43 PM To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org Subject: RE: making POINT with SQL What does "not working" mean? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Juan Carlos Monestel Sent: Thursday, April 07, 2011 12:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] making POINT with SQL Hello I'm trying to make an POINT in the map but it's not working this is my Layer layer name "ponto" connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "geo_info from table" type point status on metadata tile_source "nocache" end maxscale 3000001 class style size 4 symbol "circulo" color 0 0 0 end style size 1 symbol "circulo" color 255 255 255 end end end The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" Any Ideas ? From steve.lime at state.mn.us Thu Apr 7 12:49:07 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 7 Apr 2011 14:49:07 -0500 Subject: [mapserver-users] RE: making POINT with SQL In-Reply-To: <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> Message-ID: Make sure you're actually turning the layer on. Status ON always makes me wonder. Try setting STATUS to DEFAULT and comment out the maxscale line and see what happens. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Juan Carlos Monestel Sent: Thursday, April 07, 2011 1:21 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: making POINT with SQL Hi it is not drawing and no error occurs -----Original Message----- From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sent: Thu 4/7/2011 2:43 PM To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org Subject: RE: making POINT with SQL What does "not working" mean? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Juan Carlos Monestel Sent: Thursday, April 07, 2011 12:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] making POINT with SQL Hello I'm trying to make an POINT in the map but it's not working this is my Layer layer name "ponto" connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "geo_info from table" type point status on metadata tile_source "nocache" end maxscale 3000001 class style size 4 symbol "circulo" color 0 0 0 end style size 1 symbol "circulo" color 255 255 255 end end end The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" Any Ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Apr 7 13:23:39 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 Apr 2011 17:23:39 -0300 Subject: [mapserver-users] MapServer 6.0.0-beta5 release In-Reply-To: <4D9DF915.2040201@gmail.com> References: <4D9D2F80.9050106@mapgears.com> <4D9DF915.2040201@gmail.com> Message-ID: <4D9E1D4B.8090103@gatewaygeomatics.com> Windows can find details on the 6.0-beta5 package at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From m.shabihkhani at gmail.com Thu Apr 7 21:16:56 2011 From: m.shabihkhani at gmail.com (morteza shabihkhani) Date: Fri, 8 Apr 2011 00:16:56 -0400 Subject: [mapserver-users] error in raster layer Message-ID: Hello all, I want to create a very simple raster layer, but I faced to this error: msDrawMap(): Image handling error. Failed to draw layer named 'elevation'. msDrawRaster(): Unable to access file. stcon using full path stcon this is my layer: LAYER NAME elevation TYPE raster STATUS on DATA stcon PROJECTION "init=epsg:2260" END CLASS STYLE OUTLINECOLOR 0 200 0 END END END I checked paths and names, and everything is correct. I should note that I try to look at the only raster layer of itasca, but although all other layers are working very well, running this layer causes this error: msDrawMap(): Image handling error. Failed to draw layer named 'drgs'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /var/www/Mapserver/Amin(Itasca)/data/drgncimq1926.tif is not an EPPL file. Thank you in advance for your help. Amin -------------- next part -------------- An HTML attachment was scrubbed... URL: From fruitwerks at gmail.com Thu Apr 7 23:45:49 2011 From: fruitwerks at gmail.com (fruitwerks) Date: Thu, 7 Apr 2011 23:45:49 -0700 Subject: [mapserver-users] error in raster layer In-Reply-To: References: Message-ID: That error is fairly vague. The first thing I would look at is permissions. Also a good rule of thumb is to not use () in file or directory names. On Thu, Apr 7, 2011 at 9:16 PM, morteza shabihkhani wrote: > Hello all, > > I want to create a very simple raster layer, but I faced to this error: > > msDrawMap(): Image handling error. Failed to draw layer named 'elevation'. > msDrawRaster(): Unable to access file. stcon using full path stcon > > this is my layer: > > LAYER > ? NAME elevation > ? TYPE raster > ? STATUS on > ? DATA stcon > > > ? PROJECTION > ??? "init=epsg:2260" > > ? END > > ? CLASS > ???? STYLE > ????? OUTLINECOLOR 0 200 0 > ???? END > ? END > > END > > I checked paths and names, and everything is correct. > > I should note that I try to look at the only raster layer of itasca, but > although all other layers are working very well, running this layer causes > this error: > > msDrawMap(): Image handling error. Failed to draw layer named 'drgs'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format drawEPP(): Image handling error. > /var/www/Mapserver/Amin(Itasca)/data/drgncimq1926.tif is not an EPPL file. > > Thank you in advance for your help. > > Amin > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- _______________________________________________________________________________ Any use, dissemination, distribution, posting on Internet bulletin boards, disclosure or copying of this e-mail or any information contained herein by or to anyone other than the intended recipient(s) is strictly prohibited. Use of this content for any other purpose is a violation of International Copyright Laws. From andy.hird at aligned-assets.co.uk Fri Apr 8 01:00:16 2011 From: andy.hird at aligned-assets.co.uk (Andy Hird) Date: Fri, 8 Apr 2011 09:00:16 +0100 Subject: [mapserver-users] Problems with Query Template (Chameleon) Message-ID: Hi there - really need some help if you can please regarding Template Query feature, and I have googled to exhaustion :-/ Background: I have an existing Map file referencing MapInfo Tab files running under ms4w_2.3.1 & chameleon_ms4w-2.4.1 I have installed ms4w - V3.0.1 and chameleon V2.6.0 Copied my Map file across and made the necessary adjustments to get it working. However when using the Query Widget (info of layers at mouse click) against MapInfo Layers it is no longer returning results, and yet it did previously. My knowledge is not that great in php etc - but I suspect that its requiring a dbf rather than MapInfo Tab as it does work with a shp, dbf set of files. Can Anyone help please as I really struggling - ideally I just want to use the old widget. However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too. Thanks in advance Andy ---------------------------------------------------------------------------- The information contained in or attached to this message is the responsibility of the sender and is meant for the confidential use of the intended recipients. It does not necessarily represent the position of Aligned Assets. If you are not an intended recipient you are notified that you have received this communication in error and that review, dissemination or copying of this communication is prohibited. If you have received this in error, please notify us. Aligned Assets Limited Unit 5 River Court Albert Drive Sheerwater Woking GU21 5RP Company Registration No: 4610724 ---------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Fri Apr 8 01:39:53 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 08 Apr 2011 10:39:53 +0200 Subject: [mapserver-users] RE: making POINT with SQL In-Reply-To: References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> Message-ID: <4D9EC9D9.7080509@uva.nl> Didn't I hear this advice before on this list :-) Jan On 7-4-2011 21:49, Lime, Steve D (DNR) wrote: > > Make sure you're actually turning the layer on. Status ON always makes > me wonder. Try setting STATUS to DEFAULT and comment out the maxscale > line and see what happens. > > Steve > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Juan > Carlos Monestel > *Sent:* Thursday, April 07, 2011 1:21 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] RE: making POINT with SQL > > Hi > it is not drawing and no error occurs > > > > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] > Sent: Thu 4/7/2011 2:43 PM > To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org > Subject: RE: making POINT with SQL > > What does "not working" mean? Steve > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Juan > Carlos Monestel > Sent: Thursday, April 07, 2011 12:04 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] making POINT with SQL > > > Hello > I'm trying to make an POINT in the map but it's not working > > this is my Layer > layer > name "ponto" > connectiontype POSTGIS > connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" > data "geo_info from table" > type point > status on > metadata > tile_source "nocache" > end > maxscale 3000001 > class > style > size 4 > symbol "circulo" > color 0 0 0 > end > style > size 1 > symbol "circulo" > color 255 255 255 > end > end > end > > > The SQL brings me an geo info > ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is > = "POINT(-37.719 -24.328)" > > > Any Ideas ? > > > _______________________________________________ > 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 cecile.alfred at gmail.com Fri Apr 8 05:09:02 2011 From: cecile.alfred at gmail.com (=?ISO-8859-1?Q?C=E9cile_Alfred?=) Date: Fri, 8 Apr 2011 14:09:02 +0200 Subject: [mapserver-users] MapServer 6: ESRI Grid display with KMZ output Message-ID: Hi, I try to use Mapserver 6 beta 5 to generate kmz output with several type of input data (geotiff, shape and esri ascii grid): It is OK with geotiff and shape but there is no result with grd (empty image in temp). If I try to generate png output it's OK for all. Thank you for help Kelly -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Apr 8 05:10:52 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 8 Apr 2011 15:10:52 +0300 Subject: [mapserver-users] MS 6.0 beta 4: OGR outputformat truncates WMS GetCapabilities Message-ID: Hi, I was playing with the ORG outputformats. On the bottom I have a working mapfile for WMS. I took this section OUTPUTFORMAT NAME "OGRGML" DRIVER "OGR/GML" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=multipart" FORMATOPTION "FILENAME=result.gml" END from document http://mapserver.org/trunk/output/ogr.html and added it into my mapfile. As a result the WMS GetCapabilities requsts fails. The response is truncated. All that is coming out is pasted here below ]> OGC:WMS Kaverin WMS-testipalvelu application/vnd.ogc.wms_xml image/png image/jpeg image/gif image/png; mode=8bit application/x-pdf image/svg+xml image/tiff application/vnd.google-earth.kml+xml application/vnd.google-earth.kmz text/plain application/vnd.ogc.gml text/xml image/png image/jpeg image/gif image/png; mode=8bit text/xml application/vnd.ogc.se_xml application/vnd.ogc.se_inimage appl -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Apr 8 05:14:27 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 08 Apr 2011 08:14:27 -0400 Subject: [mapserver-users] MS 6.0 beta 4: OGR outputformat truncates WMS GetCapabilities In-Reply-To: References: Message-ID: <4D9EFC23.10703@mapgears.com> Looks like a seg fault (crash). You're on Windows, right? Can you please create a ticket? We may need more info to reproduce it once someone starts looking into it. Thanks Daniel On 11-04-08 08:10 AM, Rahkonen Jukka wrote: > Hi, > I was playing with the ORG outputformats. On the bottom I have a working > mapfile for WMS. I took this section > OUTPUTFORMAT > NAME "OGRGML" > DRIVER "OGR/GML" > FORMATOPTION "STORAGE=filesystem" > FORMATOPTION "FORM=multipart" > FORMATOPTION "FILENAME=result.gml" > END > from document http://mapserver.org/trunk/output/ogr.html and added it > into my mapfile. As a result the WMS GetCapabilities requsts fails. The > response is truncated. All that is coming out is pasted here below > > "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd" > [ > > ]> > > > > OGC:WMS > Kaverin WMS-testipalvelu > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > application/vnd.ogc.wms_xml > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > image/png > image/jpeg > image/gif > image/png; mode=8bit > application/x-pdf > image/svg+xml > image/tiff > application/vnd.google-earth.kml+xml > application/vnd.google-earth.kmz > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > text/plain > application/vnd.ogc.gml > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > text/xml > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > image/png > image/jpeg > image/gif > image/png; mode=8bit > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > text/xml > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > application/vnd.ogc.se_xml > application/vnd.ogc.se_inimage > appl > -Jukka Rahkonen- > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Jukka.Rahkonen at mmmtike.fi Fri Apr 8 05:42:46 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 8 Apr 2011 15:42:46 +0300 Subject: [mapserver-users] MS 6.0 beta 4: OGR outputformat truncates WMSGetCapabilities In-Reply-To: <4D9EFC23.10703@mapgears.com> References: <4D9EFC23.10703@mapgears.com> Message-ID: Done, #3822 with a simple mapfile that truncates GetCapabilities for me. And yes, I am on Windows, server 2003 and MS4W with MS 6.0 beta4 package. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Daniel Morissette > L?hetetty: 8. huhtikuuta 2011 15:14 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] MS 6.0 beta 4: OGR outputformat > truncates WMSGetCapabilities > > Looks like a seg fault (crash). You're on Windows, right? Can > you please > create a ticket? We may need more info to reproduce it once someone > starts looking into it. > > Thanks > > Daniel > > On 11-04-08 08:10 AM, Rahkonen Jukka wrote: > > Hi, > > I was playing with the ORG outputformats. On the bottom I > have a working > > mapfile for WMS. I took this section > > OUTPUTFORMAT > > NAME "OGRGML" > > DRIVER "OGR/GML" > > FORMATOPTION "STORAGE=filesystem" > > FORMATOPTION "FORM=multipart" > > FORMATOPTION "FILENAME=result.gml" > > END > > from document http://mapserver.org/trunk/output/ogr.html > and added it > > into my mapfile. As a result the WMS GetCapabilities > requsts fails. The > > response is truncated. All that is coming out is pasted here below > > > > > "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd" > > [ > > > > ]> > > > > > > > > OGC:WMS > > Kaverin WMS-testipalvelu > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > > > > > > > > application/vnd.ogc.wms_xml > > > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > > > > > > image/png > > image/jpeg > > image/gif > > image/png; mode=8bit > > application/x-pdf > > image/svg+xml > > image/tiff > > application/vnd.google-earth.kml+xml > > application/vnd.google-earth.kmz > > > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > > > > > > text/plain > > application/vnd.ogc.gml > > > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > > > > > > text/xml > > > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > > > > > > image/png > > image/jpeg > > image/gif > > image/png; mode=8bit > > > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > > > > > > text/xml > > > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > xlink:href="http://localhost/cgi-bin/mapserv.exe?"/> > > > > > > > > > > > > > > application/vnd.ogc.se_xml > > application/vnd.ogc.se_inimage > > appl > > -Jukka Rahkonen- > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Daniel Morissette > http://www.mapgears.com/ > Provider of Professional MapServer Support since 2000 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stephan.holl at intevation.de Fri Apr 8 06:42:31 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Fri, 8 Apr 2011 15:42:31 +0200 Subject: [mapserver-users] Transparency of overlapping PNG-symbols Message-ID: <20110408154231.3224cb16@thoe.hq.intevation.de> Dear list, while developing an application with PNG-symbols rendered on top of a map I have encountered a problem if the PNG-symbols overlap each other; artefacts are present (see attachment). The Symbols are defined as following: SYMBOL NAME "Batnight" TYPE PIXMAP IMAGE "./images/batnight.png" TRANSPARENT 0 END Used outputformat: OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END Is there an easy way to let them disappear or is this a (perhaps known) bug in MapServer? I am using the AGG-renderer and MS 5.6.6 though. TIA Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: transparent_symbols.png Type: image/png Size: 5848 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From stephan.holl at intevation.de Fri Apr 8 06:44:48 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Fri, 8 Apr 2011 15:44:48 +0200 Subject: [mapserver-users] wms_style_xxx_legendurl_href In-Reply-To: <4D8096C0.5000800@mapmedia.de> References: <4D77AC5C.60101@mapmedia.de> <4D8096C0.5000800@mapmedia.de> Message-ID: <20110408154448.339c112e@thoe.hq.intevation.de> Hello J?rg, J?rg Thomsen , [20110316 - 11:53:52] > Hi, > > o.k., it was not the best moment to ask my question, because at the > same time the mapserver beta 6 was announced ;) > > so here a 'repost', it would be nice if anyone could give me a hint: > > > Hi, > > > > I'm using the wms_style-parameters in the layer metadata section to > > tell the client to use a special legend-url: > > 'wms_style' 'Farbwerte' > > 'wms_style_Farbwerte_legendurl_height' '218' > > 'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png' > > 'wms_style_Farbwerte_legendurl_format' 'png' > > 'wms_style_Farbwerte_legendurl_width' '300' > > > > This works fine with only one style. But what do I have to do, if I > > have defined different styles / classgroups? one should use a > > pre-defined image, > > the other ones should be generated by mapserver. > > When defining > > 'wms_style' 'Farbwerte' > > the capabilities only shows this style, even if there are more > > styles (classgroups) defined. > > > > Any idea? leave wms_style away, just set 'wms_style_Farbwerte_legendurl_height' '218' 'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png' 'wms_style_Farbwerte_legendurl_format' 'png' 'wms_style_Farbwerte_legendurl_width' '300' 'wms_style_FarbwerteBlablabla_legendurl_height' '218' 'wms_style_FarbwerteBlablabla_legendurl_href' 'http://xxx/html/test/gimp.png' 'wms_style_FarbwerteBlablabla_legendurl_format' 'png' 'wms_style_FarbwerteBlablabla_legendurl_width' '300' untested, but should work. Cheers Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From j.l.h.hartmann at uva.nl Fri Apr 8 07:21:09 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 08 Apr 2011 16:21:09 +0200 Subject: [mapserver-users] Error Message in WMS service In-Reply-To: <4D9EC9D9.7080509@uva.nl> References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> <4D9EC9D9.7080509@uva.nl> Message-ID: <4D9F19D5.4060005@uva.nl> Hi folks, just a beginner's question: Is it possible to position the image-error message of a WMS request in the middle of the image? Normally it is placed in the upper left corner, and with OpenLayers (overlaid over Google Maps) the message is displayed on a tile outside the visual screen. Jan From steve.lime at state.mn.us Fri Apr 8 07:27:11 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 8 Apr 2011 09:27:11 -0500 Subject: [mapserver-users] Error Message in WMS service In-Reply-To: <4D9F19D5.4060005@uva.nl> References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> <4D9EC9D9.7080509@uva.nl> <4D9F19D5.4060005@uva.nl> Message-ID: Looking at the code it's always in the same place, so no... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Friday, April 08, 2011 9:21 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Error Message in WMS service Hi folks, just a beginner's question: Is it possible to position the image-error message of a WMS request in the middle of the image? Normally it is placed in the upper left corner, and with OpenLayers (overlaid over Google Maps) the message is displayed on a tile outside the visual screen. Jan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From j.l.h.hartmann at uva.nl Fri Apr 8 07:31:08 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 08 Apr 2011 16:31:08 +0200 Subject: [mapserver-users] Error Message in WMS service In-Reply-To: References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> <4D9EC9D9.7080509@uva.nl> <4D9F19D5.4060005@uva.nl> Message-ID: <4D9F1C2C.6010906@uva.nl> OK, that means that I have to create an error image the size of the WMS request and position the message in the middle, with some combination of PHP Mapscript and PHP/GD. Doable. Thanks, Jan On 8-4-2011 16:27, Lime, Steve D (DNR) wrote: > Looking at the code it's always in the same place, so no... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann > Sent: Friday, April 08, 2011 9:21 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Error Message in WMS service > > Hi folks, just a beginner's question: > > Is it possible to position the image-error message of a WMS request in > the middle of the image? Normally it is placed in the upper left corner, > and with OpenLayers (overlaid over Google Maps) the message is displayed > on a tile outside the visual screen. > > Jan > _______________________________________________ > 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 Fri Apr 8 07:31:27 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 8 Apr 2011 09:31:27 -0500 Subject: [mapserver-users] Transparency of overlapping PNG-symbols In-Reply-To: <20110408154231.3224cb16@thoe.hq.intevation.de> References: <20110408154231.3224cb16@thoe.hq.intevation.de> Message-ID: Can you share the batnight.png file? Any difference if you remove "TRANSPARENT 0"? It shouldn't have any effect since transparency is picked up from the pixmap. By chance does this work ok in 6.0? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephan Holl Sent: Friday, April 08, 2011 8:43 AM To: mapserver-users at lists.osgeo.org Cc: Bj?rn Schilberg Subject: [mapserver-users] Transparency of overlapping PNG-symbols Dear list, while developing an application with PNG-symbols rendered on top of a map I have encountered a problem if the PNG-symbols overlap each other; artefacts are present (see attachment). The Symbols are defined as following: SYMBOL NAME "Batnight" TYPE PIXMAP IMAGE "./images/batnight.png" TRANSPARENT 0 END Used outputformat: OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END Is there an easy way to let them disappear or is this a (perhaps known) bug in MapServer? I am using the AGG-renderer and MS 5.6.6 though. TIA Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From steve.lime at state.mn.us Fri Apr 8 07:34:26 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 8 Apr 2011 09:34:26 -0500 Subject: [mapserver-users] Error Message in WMS service In-Reply-To: <4D9F1C2C.6010906@uva.nl> References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> <4D9EC9D9.7080509@uva.nl> <4D9F19D5.4060005@uva.nl> <4D9F1C2C.6010906@uva.nl> Message-ID: Or limit the size of the WMS request to the viewport size (ratio:1). I would think that would be desirable regardless IMHO. Other option is to generate longer error messages with really long layer names. ;-) Steve -----Original Message----- From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] Sent: Friday, April 08, 2011 9:31 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Error Message in WMS service OK, that means that I have to create an error image the size of the WMS request and position the message in the middle, with some combination of PHP Mapscript and PHP/GD. Doable. Thanks, Jan On 8-4-2011 16:27, Lime, Steve D (DNR) wrote: > Looking at the code it's always in the same place, so no... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann > Sent: Friday, April 08, 2011 9:21 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Error Message in WMS service > > Hi folks, just a beginner's question: > > Is it possible to position the image-error message of a WMS request in > the middle of the image? Normally it is placed in the upper left corner, > and with OpenLayers (overlaid over Google Maps) the message is displayed > on a tile outside the visual screen. > > Jan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From warmerdam at pobox.com Fri Apr 8 07:42:36 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 08 Apr 2011 10:42:36 -0400 Subject: [mapserver-users] error in raster layer In-Reply-To: References: Message-ID: <4D9F1EDC.2070703@pobox.com> On 11-04-08 12:16 AM, morteza shabihkhani wrote: > Hello all, > > I want to create a very simple raster layer, but I faced to this error: > > msDrawMap(): Image handling error. Failed to draw layer named 'elevation'. > msDrawRaster(): Unable to access file. stcon using full path stcon > > this is my layer: > > LAYER > NAME elevation > TYPE raster > STATUS on > DATA stcon Morteza, I don't think you mentioned what binaries you are using. Could you confirm that the "mapserv -v" output includes "INPUT=GDAL"? The error - particularly the EPPL one, could mean you don't even have GDAL raster support built in. In the above case, are you really really really sure the path is right? You haven't provided any path so it ought to be evaluated relative to the mapfile but to be very sure I'd suggest supplying a full path. Also, does your file really have no extension? MapServer isn't going to guess an extension! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From thomas.bonfort at gmail.com Fri Apr 8 07:52:53 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 8 Apr 2011 16:52:53 +0200 Subject: [mapserver-users] Transparency of overlapping PNG-symbols In-Reply-To: References: <20110408154231.3224cb16@thoe.hq.intevation.de> Message-ID: Given the artifact, I'd say that you are using the GD renderer. Are you sure it's the AGG one that is being selected when you create that image? -- thomas 2011/4/8 Lime, Steve D (DNR) : > Can you share the batnight.png file? Any difference if you remove "TRANSPARENT 0"? It shouldn't have any > effect since transparency is picked up from the pixmap. By chance does this work ok in 6.0? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephan Holl > Sent: Friday, April 08, 2011 8:43 AM > To: mapserver-users at lists.osgeo.org > Cc: Bj?rn Schilberg > Subject: [mapserver-users] Transparency of overlapping PNG-symbols > > Dear list, > > while developing an application with PNG-symbols rendered on top of a map I have encountered a problem if the PNG-symbols overlap each other; artefacts are present (see attachment). > > The Symbols are defined as following: > SYMBOL > ?NAME "Batnight" > ?TYPE PIXMAP > ?IMAGE "./images/batnight.png" > ?TRANSPARENT 0 > END > > Used outputformat: > OUTPUTFORMAT > ? ?NAME agg > ? ?DRIVER AGG/PNG > ? ?IMAGEMODE RGB > END > > Is there an easy way to let them disappear or is this a (perhaps known) bug in MapServer? > > I am using the AGG-renderer and MS 5.6.6 though. > > TIA > > ? ? ? ?Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS ?| ?AG Osnabr?ck - HR B 18998 > Gesch?ftsf?hrer: ?Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From warmerdam at pobox.com Fri Apr 8 08:08:32 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 08 Apr 2011 11:08:32 -0400 Subject: [mapserver-users] 16 Bit PNG Output In-Reply-To: <1302178769222-6249725.post@n2.nabble.com> References: <1302178769222-6249725.post@n2.nabble.com> Message-ID: <4D9F24F0.8090808@pobox.com> On 11-04-07 08:19 AM, kaipi wrote: > I am not able to output elevation data as 16 Bit PNGs. Is Mapserver not able > to to this ? > I tried with a current version of Mapserver on Windows and on Linux. I tried > WMS and WCS requests - but I always get 8 Bit PNGs back although I have > configured 16INT. Other formats like GTiff or Esri Bil work fine with 16Int. > > Any ideas ? > > Thanks, > > kaipi > > Here is my mapfile: > > [...] > > OUTPUTFORMAT > NAME 'tif' > DRIVER GDAL/GTIFF > IMAGEMODE INT16 > MIMETYPE "image/tif" > END > > OUTPUTFORMAT > NAME 'pngint16' > DRIVER GDAL/PNG > IMAGEMODE INT16 > MIMETYPE "image/pngint16" > END Harry, I suspect the problem is that the PNG driver supposed unsigned 16bit integer while IMAGEMODE INT16 is signed 16bit integers. We really need a FORMATOPTION that will let us force the pixel data type of the generated file even if it is somewhat different from the IMAGEMODE type. Perhaps you could create an enhancement ticket for this and ensure it is assigned to me (userid: warmerdam)? It should be a pretty easy change. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From m.shabihkhani at gmail.com Fri Apr 8 08:20:57 2011 From: m.shabihkhani at gmail.com (morteza shabihkhani) Date: Fri, 8 Apr 2011 11:20:57 -0400 Subject: [mapserver-users] error in raster layer In-Reply-To: References: Message-ID: Thank you, Because I'm new in Mapserver, I don't know how to track the errors. Could you please help me to check the permissions. On Fri, Apr 8, 2011 at 2:45 AM, fruitwerks wrote: > That error is fairly vague. The first thing I would look at is > permissions. Also a good rule of thumb is to not use () in file or > directory names. > > On Thu, Apr 7, 2011 at 9:16 PM, morteza shabihkhani > wrote: > > Hello all, > > > > I want to create a very simple raster layer, but I faced to this error: > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'elevation'. > > msDrawRaster(): Unable to access file. stcon using full path stcon > > > > this is my layer: > > > > LAYER > > NAME elevation > > TYPE raster > > STATUS on > > DATA stcon > > > > > > PROJECTION > > "init=epsg:2260" > > > > END > > > > CLASS > > STYLE > > OUTLINECOLOR 0 200 0 > > END > > END > > > > END > > > > I checked paths and names, and everything is correct. > > > > I should note that I try to look at the only raster layer of itasca, but > > although all other layers are working very well, running this layer > causes > > this error: > > > > msDrawMap(): Image handling error. Failed to draw layer named 'drgs'. > > msDrawRaster(): Image handling error. Unrecognized or unsupported image > > format drawEPP(): Image handling error. > > /var/www/Mapserver/Amin(Itasca)/data/drgncimq1926.tif is not an EPPL > file. > > > > Thank you in advance for your help. > > > > Amin > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > > _______________________________________________________________________________ > Any use, dissemination, distribution, posting on Internet bulletin > boards, disclosure or copying of this e-mail or any information > contained herein by or to anyone other than the intended recipient(s) > is strictly prohibited. Use of this content for any other purpose is a > violation of International Copyright Laws. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Fri Apr 8 09:22:51 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 08 Apr 2011 18:22:51 +0200 Subject: [mapserver-users] Error Message in WMS service In-Reply-To: References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> <4D9EC9D9.7080509@uva.nl> <4D9F19D5.4060005@uva.nl> <4D9F1C2C.6010906@uva.nl> Message-ID: <4D9F365B.2090507@uva.nl> No, that doesn't work. It's an OpenLayers application, so the WMS request automatically computes an extent in excess of the screen. The second solution is really a bit of a kludge, don't you think so? :-) I use another kludge: handle the complete WMS request via PHP Mapscript: return a an XML file for a GetCapabilities request, and an image for everything else (http://mapserver.org/ogc/mapscript.html). This will not cover the complete WMS protocol, but works fine for simple map requests, both in OpenLayers, ArcGIS, MapInfo and QGis. And it gives me at least complete control over error handling, with GD-produced error images at the right position. It's the only way I am aware of to produce WMS output that can be debugged easily. Jan On 8-4-2011 16:34, Lime, Steve D (DNR) wrote: > Or limit the size of the WMS request to the viewport size (ratio:1). I would think that would be desirable regardless IMHO. Other option is to generate longer error messages with really long layer names. ;-) > > Steve > > -----Original Message----- > From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] > Sent: Friday, April 08, 2011 9:31 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Error Message in WMS service > > OK, that means that I have to create an error image the size of the WMS > request and position the message in the middle, with some combination of > PHP Mapscript and PHP/GD. Doable. > > Thanks, > > Jan > > On 8-4-2011 16:27, Lime, Steve D (DNR) wrote: >> Looking at the code it's always in the same place, so no... >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann >> Sent: Friday, April 08, 2011 9:21 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Error Message in WMS service >> >> Hi folks, just a beginner's question: >> >> Is it possible to position the image-error message of a WMS request in >> the middle of the image? Normally it is placed in the upper left corner, >> and with OpenLayers (overlaid over Google Maps) the message is displayed >> on a tile outside the visual screen. >> >> Jan >> _______________________________________________ >> 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 Apr 8 09:36:02 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Fri, 08 Apr 2011 09:36:02 -0700 Subject: [mapserver-users] Error Message in WMS service In-Reply-To: <4D9F365B.2090507@uva.nl> Message-ID: Jan, In the options to OpenLayers WMS layer, you set the ratio: 1 and OpenLayers will not request outside of the visible screen area. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 4/8/11 9:22 AM, "Jan Hartmann" wrote: > No, that doesn't work. It's an OpenLayers application, so the WMS > request automatically computes an extent in excess of the screen. The > second solution is really a bit of a kludge, don't you think so? :-) > > I use another kludge: handle the complete WMS request via PHP Mapscript: > return a an XML file for a GetCapabilities request, and an image for > everything else (http://mapserver.org/ogc/mapscript.html). This will not > cover the complete WMS protocol, but works fine for simple map requests, > both in OpenLayers, ArcGIS, MapInfo and QGis. And it gives me at least > complete control over error handling, with GD-produced error images at > the right position. It's the only way I am aware of to produce WMS > output that can be debugged easily. > > Jan > > On 8-4-2011 16:34, Lime, Steve D (DNR) wrote: >> Or limit the size of the WMS request to the viewport size (ratio:1). I would >> think that would be desirable regardless IMHO. Other option is to generate >> longer error messages with really long layer names. ;-) >> >> Steve >> >> -----Original Message----- >> From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] >> Sent: Friday, April 08, 2011 9:31 AM >> To: Lime, Steve D (DNR) >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Error Message in WMS service >> >> OK, that means that I have to create an error image the size of the WMS >> request and position the message in the middle, with some combination of >> PHP Mapscript and PHP/GD. Doable. >> >> Thanks, >> >> Jan >> >> On 8-4-2011 16:27, Lime, Steve D (DNR) wrote: >>> Looking at the code it's always in the same place, so no... >>> >>> Steve >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann >>> Sent: Friday, April 08, 2011 9:21 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] Error Message in WMS service >>> >>> Hi folks, just a beginner's question: >>> >>> Is it possible to position the image-error message of a WMS request in >>> the middle of the image? Normally it is placed in the upper left corner, >>> and with OpenLayers (overlaid over Google Maps) the message is displayed >>> on a tile outside the visual screen. >>> >>> Jan >>> _______________________________________________ >>> 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 j.l.h.hartmann at uva.nl Fri Apr 8 09:55:18 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 08 Apr 2011 18:55:18 +0200 Subject: [mapserver-users] Error Message in WMS service In-Reply-To: References: Message-ID: <4D9F3DF6.30207@uva.nl> Ah, I knew it was a beginner's question. Thanks Michael. Jan On 8-4-2011 18:36, Smith, Michael ERDC-CRREL-NH wrote: > Jan, > > In the options to OpenLayers WMS layer, you set the ratio: 1 and OpenLayers > will not request outside of the visible screen area. > > Mike > > From m.shabihkhani at gmail.com Fri Apr 8 10:41:10 2011 From: m.shabihkhani at gmail.com (morteza shabihkhani) Date: Fri, 8 Apr 2011 13:41:10 -0400 Subject: [mapserver-users] error in raster layer In-Reply-To: <4D9F1EDC.2070703@pobox.com> References: <4D9F1EDC.2070703@pobox.com> Message-ID: Frank Thank you for your response. In fact, I'm not very familiar with binaries, but as I remember, I had installed GDAL/OGR before I installed Mapserv. How can I check that my installation process was correct? about the path, I have provided the path in my mapfile and the mapfile call this layer (in separate file). To make sure I replaced another shapefile (polygon layer) in the same path into this layer, and it worked. Also, I'm using linux, which I think doesn't need extension for files, but anyway my layer file has the extension of ".lay". In addition, for the polygon layer with the same situation every thing is working very well. Thanks a lot. Regards, On Fri, Apr 8, 2011 at 10:42 AM, Frank Warmerdam wrote: > On 11-04-08 12:16 AM, morteza shabihkhani wrote: > >> Hello all, >> >> I want to create a very simple raster layer, but I faced to this error: >> >> msDrawMap(): Image handling error. Failed to draw layer named 'elevation'. >> msDrawRaster(): Unable to access file. stcon using full path stcon >> >> this is my layer: >> >> LAYER >> NAME elevation >> TYPE raster >> STATUS on >> DATA stcon >> > > Morteza, > > I don't think you mentioned what binaries you are using. Could you confirm > that the "mapserv -v" output includes "INPUT=GDAL"? The error - > particularly > the EPPL one, could mean you don't even have GDAL raster support built in. > > In the above case, are you really really really sure the path is right? > You haven't provided any path so it ought to be evaluated relative to the > mapfile but to be very sure I'd suggest supplying a full path. Also, does > your file really have no extension? MapServer isn't going to guess an > extension! > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Apr 8 12:38:58 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 08 Apr 2011 15:38:58 -0400 Subject: [mapserver-users] error in raster layer In-Reply-To: References: <4D9F1EDC.2070703@pobox.com> Message-ID: <4D9F6452.6030605@pobox.com> On 11-04-08 01:41 PM, morteza shabihkhani wrote: > Frank > > Thank you for your response. In fact, I'm not very familiar with binaries, but > as I remember, I had installed GDAL/OGR before I installed Mapserv. How can I > check that my installation process was correct? Morteza, I suggested using the command "mapserv -v" to get the version information which includes things like "INPUT=GDAL" if GDAL input support for rasters is supported. I don't think GDAL is picked up automatically when building from source though I'm not sure. > about the path, I have provided the path in my mapfile and the mapfile call > this layer (in separate file). To make sure I replaced another shapefile > (polygon layer) in the same path into this layer, and it worked. Shapefiles and raster files use subtly different rules, and the shapefile layer type is distinct in that an extension is not required. > Also, I'm > using linux, which I think doesn't need extension for files, but anyway my > layer file has the extension of ".lay". In addition, for the polygon layer with > the same situation every thing is working very well. Thanks a lot. GDAL does not support ArcGIS layer files (I'm guessing this is what your .lay file is). And if the file has an extension then you must specify it (on linux or Windows). And vectors aren't the same as rasters. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From vsaraf.gmu at gmail.com Mon Apr 11 00:37:04 2011 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Mon, 11 Apr 2011 13:07:04 +0530 Subject: [mapserver-users] Mapserver search performance Message-ID: Hello Everyone, I have programmed a GIS application using Mapserver, Google maps and Tilecache. The functionality of this GIS application is to extract the data (from the dbf file) for all features (Points) within a randomly drawn user shape and doing some statistical operation on that data. I use an NQUERY mode with MAPSHAPE attribute to get all the data for the user drawn shape. Mapserver takes aout 5-10 seconds for a small shape (a couple of square miles) but as the shape gets bigger (hundreds of square miles), the time taken to fetch all data related to the features/points lying in the shape grows exponentially (Upto 2 hours for some shapes). Until now, we were restricting the maximum area a shape can have but we have to get rid of that. Is there a way to improve the performance in any way? Will SHPTREE work for this purpose? The features are currently points only but we may move to polygons in future. We use the .shp files for the shapes. Is it advantageous to move to a database instead? If yes, what database works best? What I did notice is that for any given request to mapserver, however large the shape, the CPU utilization never crosses 12%. Can we improve performance by increasing the RAM or maybe move to a solid state hard drive? There is also the possibility of moving this application to Cloud computing. Anything that will improve the performance actually. Can someone point me in the right direction as to what might be the current bottleneck? T current setup is on windows and uses MS4W on an Apache server. Thanks, Varun From stephan.holl at intevation.de Mon Apr 11 00:39:34 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Mon, 11 Apr 2011 09:39:34 +0200 Subject: [mapserver-users] Transparency of overlapping PNG-symbols [solved] In-Reply-To: References: <20110408154231.3224cb16@thoe.hq.intevation.de> Message-ID: <20110411093934.6f8f75e8@thoe.hq.intevation.de> Hello thomas, thomas bonfort , [20110408 - 16:52:53] > Given the artifact, I'd say that you are using the GD renderer. Are > you sure it's the AGG one that is being selected when you create that > image? At least I was, yes, but after looking at the _right_ mapfile it was missing the AGG-rendering-options. setting the following helps. IMAGETYPE aggpng #8bit png, supports transparency. OUTPUTFORMAT NAME aggpng DRIVER AGG/PNG MIMETYPE "image/png" ## transparency only with RGBA Image Mode ## mapserver had to be compiled -with-experimental-png IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_COLORS=256" FORMATOPTION "QUANTIZE_NEW=ON" TRANSPARENT ON END Best regards Stephan > 2011/4/8 Lime, Steve D (DNR) : > > Can you share the batnight.png file? Any difference if you remove > > "TRANSPARENT 0"? It shouldn't have any effect since transparency is > > picked up from the pixmap. By chance does this work ok in 6.0? > > > > Steve -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From thomas.bonfort at gmail.com Mon Apr 11 00:41:54 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 11 Apr 2011 09:41:54 +0200 Subject: [mapserver-users] Transparency of overlapping PNG-symbols [solved] In-Reply-To: <20110411093934.6f8f75e8@thoe.hq.intevation.de> References: <20110408154231.3224cb16@thoe.hq.intevation.de> <20110411093934.6f8f75e8@thoe.hq.intevation.de> Message-ID: Ok, thanks. could you check the same mapfile with GD on mapserver 6.0 to see if the issue still exists? thomas On Mon, Apr 11, 2011 at 09:39, Stephan Holl wrote: > Hello thomas, > > thomas bonfort , [20110408 - 16:52:53] > >> Given the artifact, I'd say that you are using the GD renderer. Are >> you sure it's the AGG one that is being selected when you create that >> image? > > At least I was, yes, but after looking at the _right_ mapfile it was > missing the AGG-rendering-options. > > setting the following helps. > ?IMAGETYPE aggpng > > ?#8bit png, supports transparency. > ?OUTPUTFORMAT > ? ? NAME aggpng > ? ? DRIVER AGG/PNG > ? ? MIMETYPE "image/png" > ? ? ## transparency only with RGBA Image Mode > ? ? ## mapserver had to be compiled -with-experimental-png > ? ? IMAGEMODE RGBA > ? ? EXTENSION "png" > ? ? FORMATOPTION "QUANTIZE_FORCE=ON" > ? ? FORMATOPTION "QUANTIZE_COLORS=256" > ? ? FORMATOPTION "QUANTIZE_NEW=ON" > ? ? TRANSPARENT ON > ?END > > Best regards > > ? ? ? ?Stephan > > >> 2011/4/8 Lime, Steve D (DNR) : >> > Can you share the batnight.png file? Any difference if you remove >> > "TRANSPARENT 0"? It shouldn't have any effect since transparency is >> > picked up from the pixmap. By chance does this work ok in 6.0? >> > >> > Steve > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS ?| ?AG Osnabr?ck - HR B 18998 > Gesch?ftsf?hrer: ?Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > From stephan.holl at intevation.de Mon Apr 11 01:03:04 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Mon, 11 Apr 2011 10:03:04 +0200 Subject: [mapserver-users] Transparency of overlapping PNG-symbols [solved] In-Reply-To: References: <20110408154231.3224cb16@thoe.hq.intevation.de> <20110411093934.6f8f75e8@thoe.hq.intevation.de> Message-ID: <20110411100304.5808c468@thoe.hq.intevation.de> Hello thomas, thomas bonfort , [20110411 - 09:41:54] > Ok, thanks. > could you check the same mapfile with GD on mapserver 6.0 to see if > the issue still exists? We will do so when we have set up a MS6-Box, which will be the case soon since my collegue bj?rn is going to package MS6 shortly in the future. Best Stephan > > thomas > > On Mon, Apr 11, 2011 at 09:39, Stephan Holl > wrote: > > Hello thomas, > > > > thomas bonfort , [20110408 - 16:52:53] > > > >> Given the artifact, I'd say that you are using the GD renderer. Are > >> you sure it's the AGG one that is being selected when you create > >> that image? > > > > At least I was, yes, but after looking at the _right_ mapfile it was > > missing the AGG-rendering-options. > > > > setting the following helps. > > ?IMAGETYPE aggpng > > > > ?#8bit png, supports transparency. > > ?OUTPUTFORMAT > > ? ? NAME aggpng > > ? ? DRIVER AGG/PNG > > ? ? MIMETYPE "image/png" > > ? ? ## transparency only with RGBA Image Mode > > ? ? ## mapserver had to be compiled -with-experimental-png > > ? ? IMAGEMODE RGBA > > ? ? EXTENSION "png" > > ? ? FORMATOPTION "QUANTIZE_FORCE=ON" > > ? ? FORMATOPTION "QUANTIZE_COLORS=256" > > ? ? FORMATOPTION "QUANTIZE_NEW=ON" > > ? ? TRANSPARENT ON > > ?END > > > > Best regards > > > > ? ? ? ?Stephan > > > > > >> 2011/4/8 Lime, Steve D (DNR) : > >> > Can you share the batnight.png file? Any difference if you remove > >> > "TRANSPARENT 0"? It shouldn't have any effect since transparency > >> > is picked up from the pixmap. By chance does this work ok in 6.0? > >> > > >> > Steve > > > > -- > > Stephan Holl | Tel.: +49 (0)541-33 508 > > 3663 Intevation GmbH, Neuer Graben 17, 49074 OS ?| ?AG Osnabr?ck - > > HR B 18998 Gesch?ftsf?hrer: ?Frank Koormann, Bernhard Reiter, Dr. > > Jan-Oliver Wagner > > -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Mon Apr 11 01:20:12 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 11 Apr 2011 11:20:12 +0300 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: References: Message-ID: Hi, Shptree will help and stopwatch will tell you how much. Without spatial index Mapserver needs to go through the whole shapefile every time. Have a try, it will not take very many seconds to run shptree. Make different requests, take times with and without .qix files and you will some numbers. Change the requests and request order (query 1 with .qix/withour qix, query 2 without .qix/with .qix) so that you can see if you are actually testing the speed of disk access and memory cache access and not the effect of having spatial index. By adding DEBUG 5 for your layer you don't need stopwatch but you'll get timings into ms_errorfile. -Jukka Rahkonen- Varun saraf wrote: > > Hello Everyone, > > I have programmed a GIS application using Mapserver, Google maps and > Tilecache. The functionality of this GIS application is to extract the > data (from the dbf file) for all features (Points) within a randomly > drawn user shape and doing some statistical operation on that data. I > use an NQUERY mode with MAPSHAPE attribute to get all the data for the > user drawn shape. Mapserver takes aout 5-10 seconds for a small shape > (a couple of square miles) but as the shape gets bigger (hundreds of > square miles), the time taken to fetch all data related to the > features/points lying in the shape grows exponentially (Upto 2 hours > for some shapes). Until now, we were restricting the maximum area a > shape can have but we have to get rid of that. Is there a way to > improve the performance in any way? Will SHPTREE work for this > purpose? The features are currently points only but we may move to > polygons in future. We use the .shp files for the shapes. Is it > advantageous to move to a database instead? If yes, what database > works best? > > What I did notice is that for any given request to mapserver, however > large the shape, the CPU utilization never crosses 12%. Can we improve > performance by increasing the RAM or maybe move to a solid state hard > drive? There is also the possibility of moving this application to > Cloud computing. Anything that will improve the performance actually. > Can someone point me in the right direction as to what might be the > current bottleneck? > > T current setup is on windows and uses MS4W on an Apache server. > > Thanks, > Varun > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tommasodb at googlemail.com Mon Apr 11 01:54:31 2011 From: tommasodb at googlemail.com (tommaso) Date: Mon, 11 Apr 2011 10:54:31 +0200 Subject: [mapserver-users] Tag SYMBOL -> CENTER/ORIGIN Message-ID: <1302512071.2246.6.camel@tommaso-laptop> Hallo List, in the Document http://mapserver.org/trunk/development/rfc/ms-rfc-45.html is mentioned the tag CENTER / ORIGIN for SYMBOL: was this feature already implemented? if yes, in which Mapserver version? Greetings, Tommaso -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Apr 11 01:58:31 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 11 Apr 2011 10:58:31 +0200 Subject: [mapserver-users] Tag SYMBOL -> CENTER/ORIGIN In-Reply-To: <1302512071.2246.6.camel@tommaso-laptop> References: <1302512071.2246.6.camel@tommaso-laptop> Message-ID: No, it was not implemented, and is on hold until someone funds it. regards, thomas On Mon, Apr 11, 2011 at 10:54, tommaso wrote: > Hallo List, > in the Document http://mapserver.org/trunk/development/rfc/ms-rfc-45.html is > mentioned the tag CENTER / ORIGIN for SYMBOL:? was this feature already > implemented? if yes, in which Mapserver version? > > Greetings, > Tommaso > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From vsaraf.gmu at gmail.com Mon Apr 11 02:36:40 2011 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Mon, 11 Apr 2011 15:06:40 +0530 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: References: Message-ID: Thanks a lot for the quick reply. I will give it a try. On Mon, Apr 11, 2011 at 1:50 PM, Rahkonen Jukka wrote: > Hi, > > Shptree will help and stopwatch will tell you how much. Without spatial > index Mapserver needs to go through the whole shapefile every time. Have > a try, it will not take very many seconds to run shptree. Make different > requests, take times with and without .qix files and you will some > numbers. Change the requests and request order (query 1 with > .qix/withour qix, query 2 without .qix/with .qix) so that you can see if > you are actually testing the speed of disk access and memory cache > access and not the effect of having spatial index. > By adding DEBUG 5 for your layer you don't need stopwatch but you'll get > timings into ms_errorfile. > > > -Jukka Rahkonen- > > Varun saraf wrote: > >> >> Hello Everyone, >> >> I have programmed a GIS application using Mapserver, Google maps and >> Tilecache. The functionality of this GIS application is to extract the >> data (from the dbf file) for all features (Points) within a randomly >> drawn user shape and doing some statistical operation on that data. I >> use an NQUERY mode with MAPSHAPE attribute to get all the data for the >> user drawn shape. Mapserver takes aout 5-10 seconds for a small shape >> (a couple of square miles) but as the shape gets bigger (hundreds of >> square miles), the time taken to fetch all data related to the >> features/points lying in the shape grows exponentially (Upto 2 hours >> for some shapes). Until now, we were restricting the maximum area a >> shape can have but we have to get rid of that. Is there a way to >> improve the performance in any way? Will SHPTREE work for this >> purpose? The features are currently points only but we may move to >> polygons in future. We use the .shp files for the shapes. Is it >> advantageous to move to a database instead? If yes, what database >> works best? >> >> What I did notice is that for any given request to mapserver, however >> large the shape, the CPU utilization never crosses 12%. Can we improve >> performance by increasing the RAM or maybe move to a solid state hard >> drive? There is also the possibility of moving this application to >> Cloud computing. Anything that will improve the performance actually. >> Can someone point me in the right direction as to what might be the >> current bottleneck? >> >> T current setup is on windows and uses MS4W on an Apache server. >> >> Thanks, >> Varun >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From frederic.junod at camptocamp.com Mon Apr 11 03:01:37 2011 From: frederic.junod at camptocamp.com (Frederic Junod) Date: Mon, 11 Apr 2011 12:01:37 +0200 Subject: [mapserver-users] box substitution for ogr layers Message-ID: Hello, Is it possible to have a !BOX! substitution for an OGR layer (CONNECTION value) ? The box substitution seems only available to postgis layers. What I'm trying to have is something like: MAP ... LAYER NAME "world_borders" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "http://www.example.com/world_borders.json?bbox=!BOX!" ... END END Regards, fredj -- Fr?d?ric Junod Camptocamp SA From yassefa at dmsolutions.ca Mon Apr 11 06:34:27 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 11 Apr 2011 09:34:27 -0400 Subject: [mapserver-users] MapServer 6: ESRI Grid display with KMZ output In-Reply-To: References: Message-ID: <4DA30363.40201@dmsolutions.ca> Hi, If you are willing to share a sample map file + this particular format file, I can look into the kmz output issue. If that is the case, wither send me the sample or open a trac bug and attche the data. Please assign the bug to me (assefa). Assefa On 08/04/2011 8:09 AM, C?cile Alfred wrote: > Hi, > > I try to use Mapserver 6 beta 5 to generate kmz output with several > type of input data (geotiff, shape and esri ascii grid): > It is OK with geotiff and shape but there is no result with grd > (empty image in temp). > If I try to generate png output it's OK for all. > > Thank you for help > Kelly > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Apr 11 06:56:29 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 11 Apr 2011 09:56:29 -0400 Subject: [mapserver-users] box substitution for ogr layers In-Reply-To: References: Message-ID: <4DA3088D.3040001@pobox.com> On 11-04-11 06:01 AM, Frederic Junod wrote: > Hello, > > Is it possible to have a !BOX! substitution for an OGR layer > (CONNECTION value) ? The box substitution seems only available to > postgis layers. > > What I'm trying to have is something like: > > MAP > ... > LAYER > NAME "world_borders" > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "http://www.example.com/world_borders.json?bbox=!BOX!" > ... > END > END fredj, This seems like a plausible thing to add but I'm hesitant to do it at this late point in the release cycle. Could you file an enhancement ticket with the request? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cecile.alfred at gmail.com Mon Apr 11 07:35:30 2011 From: cecile.alfred at gmail.com (=?ISO-8859-1?Q?C=E9cile_Alfred?=) Date: Mon, 11 Apr 2011 16:35:30 +0200 Subject: [mapserver-users] MapServer 6: ESRI Grid display with KMZ output In-Reply-To: <4DA30363.40201@dmsolutions.ca> References: <4DA30363.40201@dmsolutions.ca> Message-ID: Hi, there is here the mapfile (test.map), an ESRI ascii grid, a geotiff and requests png and kmz (requests.txt). Thank you C?cile 2011/4/11 Yewondwossen Assefa > Hi, > > If you are willing to share a sample map file + this particular format > file, I can look into the kmz output issue. > If that is the case, wither send me the sample or open a trac bug and > attche the data. Please assign the bug to me (assefa). > > Assefa > > > On 08/04/2011 8:09 AM, C?cile Alfred wrote: > > Hi, > > I try to use Mapserver 6 beta 5 to generate kmz output with several type of > input data (geotiff, shape and esri ascii grid): > It is OK with geotiff and shape but there is no result with grd (empty > image in temp). > If I try to generate png output it's OK for all. > > Thank you for help > Kelly > > > _______________________________________________ > mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- http://tlsdk068/cgi-bin/mapserv.exe?map=C:\ms4w\apps\test\test.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=Momuy,Cumul1h&STYLES=&SRS=EPSG:4326&BBOX=-10,40,10,50&WIDTH=400&HEIGHT=300&format=image/png http://tlsdk068/cgi-bin/mapserv.exe?map=C:\ms4w\apps\test\test.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=Momuy,Cumul1h&STYLES=&SRS=EPSG:4326&BBOX=-10,40,10,50&WIDTH=400&HEIGHT=300&format=application/vnd.google-earth.kmz -------------- next part -------------- A non-text attachment was scrubbed... Name: MapGrd.zip Type: application/zip Size: 33544 bytes Desc: not available URL: From geomartino at gmail.com Mon Apr 11 10:22:11 2011 From: geomartino at gmail.com (Martin Ouellet) Date: Mon, 11 Apr 2011 13:22:11 -0400 Subject: [mapserver-users] fastcgi mode with raster layer? Message-ID: I've just activated the fastcgi mode (RHEL5 - Mapserver 5.6.3 - Httpd) on my server. is it normal to have no speed increase for a raster layer? Does the fastcgi mode is optimized mainly for database layers as Oracle or PostGIS? thank you in advance. MartinOuellet -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Mon Apr 11 10:31:25 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 11 Apr 2011 13:31:25 -0400 Subject: [mapserver-users] fastcgi mode with raster layer? In-Reply-To: References: Message-ID: <201104111331.25836.aboudreault@mapgears.com> Martin, you'll have to set explicitly the CONNECTION POOL setting to get a persistant DB connection for a specific layer. See: http://mapserver.org/mapfile/layer.html (search for pooling) Alan On April 11, 2011 01:22:11 pm Martin Ouellet wrote: > I've just activated the fastcgi mode (RHEL5 - Mapserver 5.6.3 - Httpd) on > my server. is it normal to have no speed increase for a raster layer? > > Does the fastcgi mode is optimized mainly for database layers as Oracle or > PostGIS? > > thank you in advance. > > MartinOuellet -- Alan Boudreault Mapgears http://www.mapgears.com From thomas.bonfort at gmail.com Mon Apr 11 10:33:07 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 11 Apr 2011 19:33:07 +0200 Subject: [mapserver-users] fastcgi mode with raster layer? In-Reply-To: References: Message-ID: Martin, fastcgi will essentially give you speedups in these two cases: * with slow-to-open data connections (i.e. oracle, some gdal/ogr datasources?) if you use "CLOSE_CONNECTION=DEFER" * and/or when the cost of creation of a process becomes non negligible compared to the time that the mapserv process will actually be running for each request. basically, there is little advantage of using fastcgi if your map draws are heavy, or if you are not using oracle connections. YMMV, -- thomas On Mon, Apr 11, 2011 at 19:22, Martin Ouellet wrote: > I've just activated the fastcgi mode (RHEL5 - Mapserver 5.6.3 - Httpd) on my > server. ?is it normal to have no speed increase for a raster layer? > Does the fastcgi mode is optimized mainly for database layers as Oracle or > PostGIS? > thank you in advance. > MartinOuellet > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From frederic.junod at camptocamp.com Mon Apr 11 10:35:57 2011 From: frederic.junod at camptocamp.com (Frederic Junod) Date: Mon, 11 Apr 2011 19:35:57 +0200 Subject: [mapserver-users] box substitution for ogr layers In-Reply-To: <4DA3088D.3040001@pobox.com> References: <4DA3088D.3040001@pobox.com> Message-ID: On Mon, Apr 11, 2011 at 3:56 PM, Frank Warmerdam wrote: > On 11-04-11 06:01 AM, Frederic Junod wrote: >> >> Hello, >> >> Is it possible to have a !BOX! substitution for an OGR layer >> (CONNECTION value) ? The box substitution seems only available to >> postgis layers. >> >> What I'm trying to have is something like: >> >> MAP >> ? ... >> ? LAYER >> ? ? NAME "world_borders" >> ? ? TYPE POLYGON >> ? ? CONNECTIONTYPE OGR >> ? ? CONNECTION "http://www.example.com/world_borders.json?bbox=!BOX!" >> ? ? ... >> ? END >> END > > fredj, > > This seems like a plausible thing to add but I'm hesitant to do it at > this late point in the release cycle. ?Could you file an enhancement > ticket with the request? http://trac.osgeo.org/mapserver/ticket/3827 Regards, fredj -- Fr?d?ric Junod Camptocamp SA From Jukka.Rahkonen at mmmtike.fi Mon Apr 11 10:46:55 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 11 Apr 2011 20:46:55 +0300 Subject: [mapserver-users] fastcgi mode with raster layer? In-Reply-To: References: Message-ID: Hi, I have a feeling that there is a difference also when the raster layer is used through a big tileindex which is collecting thousands or tens of thousands of images. I do not have any reliable numbers available right now, though. thomas bonfort wrote: > Martin, > fastcgi will essentially give you speedups in these two cases: > * with slow-to-open data connections (i.e. oracle, some gdal/ogr > datasources?) if you use "CLOSE_CONNECTION=DEFER" > * and/or when the cost of creation of a process becomes non > negligible compared to the time that the mapserv process will actually > be running for each request. > basically, there is little advantage of using fastcgi if your map > draws are heavy, or if you are not using oracle connections. > YMMV, -- > thomas > On Mon, Apr 11, 2011 at 19:22, Martin Ouellet wrote: >> I've just activated the fastcgi mode (RHEL5 - Mapserver 5.6.3 - Httpd) on my >> server. ?is it normal to have no speed increase for a raster layer? >> Does the fastcgi mode is optimized mainly for database layers as Oracle or >> PostGIS? >> thank you in advance. >> MartinOuellet > _______________________________________________ > 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 juanzito at univali.br Mon Apr 11 12:32:17 2011 From: juanzito at univali.br (Juan Carlos Monestel) Date: Mon, 11 Apr 2011 16:32:17 -0300 Subject: [mapserver-users] RE: making POINT with SQL References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> Message-ID: <164EB4B8A51B054CA831E54324F468B735D7BC@siaimail06.univali.br> Hi Jukka, This is the error in the debug file: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'test'. in /xxx/xx/xx/xxx.php on line 992 Warning: [MapServer Error]: msPOSTGISLayerParseData(): Error parsing POSTGIS data variable. Must contain 'geometry_column from table_name' or 'geom from (subselect) as foo' (couldnt find ' from '). More help: Error with POSTGIS data variable. You specified '%data%'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. in /var/www/html/dev/jmonestel/trunk/app/lib/mapaMapscriptF.class.php on line 992 This is my Layer: LAYER NAME test TYPE POINT STATUS ON connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "%data%" projection "proj=latlong" "ellps=WGS84" "datum=WGS84" end CLASS NAME "juan" STYLE SYMBOL 'juan2' COLOR 0 119 255 SIZE 2 END END END # layer My %data% is "geo_coordenada FROM (select cod_referencia as oid, geo_coordenada, ind_cor from ponto_referencia where cod_referencia = 1 ) as map using SRID=4326" The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thu 4/7/2011 3:35 PM To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: making POINT with SQL Hi, First add DEBUG 5, it may generate some interesting information for you into ms_errorfile. Next, comment out maxscale to be sure it is not preventing the rendering. Change it to MAXSCALEDENOM later, maxscale is not to be used any more. Add PROJECTION into your LAYER for getting more control on what is happening. And tell us the exact request you were using. Very often a blank map without any errors means that Mapserver does not find data from the requested map window, and very often it is because of some misconfiguration or misunderstanding with projections. -Jukka Rahkonen- Juan Carlos Monestel wrote: > Hi > it is not drawing and no error occurs -----Original Message----- From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sent: Thu 4/7/2011 2:43 PM To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org Subject: RE: making POINT with SQL What does "not working" mean? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Juan Carlos Monestel Sent: Thursday, April 07, 2011 12:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] making POINT with SQL Hello I'm trying to make an POINT in the map but it's not working this is my Layer layer name "ponto" connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "geo_info from table" type point status on metadata tile_source "nocache" end maxscale 3000001 class style size 4 symbol "circulo" color 0 0 0 end style size 1 symbol "circulo" color 255 255 255 end end end The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" Any Ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Apr 11 13:51:35 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 11 Apr 2011 23:51:35 +0300 Subject: [mapserver-users] RE: making POINT with SQL In-Reply-To: <164EB4B8A51B054CA831E54324F468B735D7BC@siaimail06.univali.br> References: <164EB4B8A51B054CA831E54324F468B735D7B9@siaimail06.univali.br><164EB4B8A51B054CA831E54324F468B735D7BA@siaimail06.univali.br> <164EB4B8A51B054CA831E54324F468B735D7BC@siaimail06.univali.br> Message-ID: Hi, Your %data% looks rather similar than the example. You seem to miss "using unique", try what happens if you add it. -Jukka Rahkonen- Juan Carlos Monestel wrote: > Hi Jukka, > This is the error in the debug file: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'test'. in /xxx/xx/xx/xxx.php on line 992 Warning: [MapServer Error]: msPOSTGISLayerParseData(): Error parsing POSTGIS data variable. Must contain 'geometry_column from table_name' or 'geom from (subselect) as foo' (couldnt find ' from '). More help: Error with POSTGIS data variable. You specified '%data%'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. in /var/www/html/dev/jmonestel/trunk/app/lib/mapaMapscriptF.class.php on line 992 This is my Layer: LAYER NAME test TYPE POINT STATUS ON connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "%data%" projection "proj=latlong" "ellps=WGS84" "datum=WGS84" end CLASS NAME "juan" STYLE SYMBOL 'juan2' COLOR 0 119 255 SIZE 2 END END END # layer My %data% is "geo_coordenada FROM (select cod_referencia as oid, geo_coordenada, ind_cor from ponto_referencia where cod_referencia = 1 ) as map using SRID=4326" The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi ] Sent: Thu 4/7/2011 3:35 PM To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: making POINT with SQL Hi, First add DEBUG 5, it may generate some interesting information for you into ms_errorfile. Next, comment out maxscale to be sure it is not preventing the rendering. Change it to MAXSCALEDENOM later, maxscale is not to be used any more. Add PROJECTION into your LAYER for getting more control on what is happening. And tell us the exact request you were using. Very often a blank map without any errors means that Mapserver does not find data from the requested map window, and very often it is because of some misconfiguration or misunderstanding with projections. -Jukka Rahkonen- Juan Carlos Monestel wrote: > Hi > it is not drawing and no error occurs -----Original Message----- From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us ] Sent: Thu 4/7/2011 2:43 PM To: Juan Carlos Monestel; mapserver-users at lists.osgeo.org Subject: RE: making POINT with SQL What does "not working" mean? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org ] On Behalf Of Juan Carlos Monestel Sent: Thursday, April 07, 2011 12:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] making POINT with SQL Hello I'm trying to make an POINT in the map but it's not working this is my Layer layer name "ponto" connectiontype POSTGIS connection "dbname=xxxx user=xxxxx host=xxxxx port=xxxxx" data "geo_info from table" type point status on metadata tile_source "nocache" end maxscale 3000001 class style size 4 symbol "circulo" color 0 0 0 end style size 1 symbol "circulo" color 255 255 255 end end end The SQL brings me an geo info ("0101000020E610000079E9263108DC42C08716D9CEF75338C0") that in text is = "POINT(-37.719 -24.328)" Any Ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Mon Apr 11 14:48:57 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 11 Apr 2011 16:48:57 -0500 Subject: [mapserver-users] RE: Problems with Query Template (Chameleon) In-Reply-To: References: Message-ID: Not a Chameleon user so I may not be of much help. Any errors being logged? What does the template file look like? It?s possible that ms4w_2.3.1?s MapServer did not require a magic string be on the first line of the template. In new versions it is required. Basically the first line of a template must contain the string ?MapServer Template?. Typically you?d put that in a HTML comment, e.g.: ...template follows... That?s my first guess anyway. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Hird Sent: Friday, April 08, 2011 3:00 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problems with Query Template (Chameleon) Hi there - really need some help if you can please regarding Template Query feature, and I have googled to exhaustion :-/ Background: I have an existing Map file referencing MapInfo Tab files running under ms4w_2.3.1 & chameleon_ms4w-2.4.1 I have installed ms4w - V3.0.1 and chameleon V2.6.0 Copied my Map file across and made the necessary adjustments to get it working. However when using the Query Widget (info of layers at mouse click) against MapInfo Layers it is no longer returning results, and yet it did previously. My knowledge is not that great in php etc ? but I suspect that its requiring a dbf rather than MapInfo Tab as it does work with a shp, dbf set of files. Can Anyone help please as I really struggling ? ideally I just want to use the old widget. However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too. Thanks in advance Andy ---------------------------------------------------------------------------- The information contained in or attached to this message is the responsibility of the sender and is meant for the confidential use of the intended recipients. It does not necessarily represent the position of Aligned Assets. If you are not an intended recipient you are notified that you have received this communication in error and that review, dissemination or copying of this communication is prohibited. If you have received this in error, please notify us. Aligned Assets Limited Unit 5 River Court Albert Drive Sheerwater Woking GU21 5RP Company Registration No: 4610724 ---------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Apr 12 02:59:04 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 12 Apr 2011 12:59:04 +0300 Subject: [mapserver-users] MS 6.0 beta4 writes always into ms_errorfile with raster layers Message-ID: Hi, I wonder why Mapserver 6.0 beta seems to write two lines into ms_errorfile even if there is no errors and I do not have degug on. [Tue Apr 12 12:37:59 2011].386000 msDrawRasterLayerLow(Suomi_1m): Filename is: D:\Data\test\suomi1m.tif [Tue Apr 12 12:37:59 2011].386000 msDrawRasterLayerLow(Suomi_1m): Path is: D:\Data\test\suomi1m.tif Vector layers do not produce similar lines into ms_errorfile. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Apr 12 03:20:46 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Apr 2011 12:20:46 +0200 Subject: [mapserver-users] MS 6.0 beta4 writes always into ms_errorfile with raster layers In-Reply-To: References: Message-ID: fixed in r11537. regards, thomas On Tue, Apr 12, 2011 at 11:59, Rahkonen Jukka wrote: > Hi, > > I wonder why Mapserver 6.0 beta seems to write two lines into ms_errorfile > even if there is no errors and I do not have degug on. > > [Tue Apr 12 12:37:59 2011].386000 msDrawRasterLayerLow(Suomi_1m): Filename > is: D:\Data\test\suomi1m.tif > [Tue Apr 12 12:37:59 2011].386000 msDrawRasterLayerLow(Suomi_1m): Path is: > D:\Data\test\suomi1m.tif > > Vector layers do not produce similar lines into ms_errorfile. > > > -Jukka Rahkonen- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Brian at zetica.com Tue Apr 12 03:20:41 2011 From: Brian at zetica.com (Brian Barrett) Date: Tue, 12 Apr 2011 11:20:41 +0100 Subject: [mapserver-users] RE: html legend In-Reply-To: <774A827313441E439B989397455DB3041A9EE3B7FF@GEOSUK02.zetica.local> References: <774A827313441E439B989397455DB3041A9EE3B7FF@GEOSUK02.zetica.local> Message-ID: <774A827313441E439B989397455DB3041A9EE3BCD9@GEOSUK02.zetica.local> Does anybody have any suggestions for the problem outlined below? Is it a problem the order of the If statements? Thanks Brian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Barrett Sent: 06 April 2011 08:05 To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] html legend Hi, I have a mapserver html legend that does not show all of my desired classes. My map has some layers with a group name and some without. Most layers with a group name need just a single legend entry, so I've specified a [leg_group_html] section (as shown below) to identify those layers using the "isset" and "neq" operators. The layers with a group name "geophysics" or "interp" need a legend item for each layer (with a specific formatting) so I've specified a [leg_class_html] section and set these up there using the "eq" operator on the "layer_group" My problem is with the remaining layers that have no group defined. These currently do not show in the legend, despite using the "isnull" option in the [leg_class_html] section. Code is below. Can anyone help explain the problem please? [leg_header_html] [/leg_header_html] [leg_group_html] [if name=group_name oper=isset] [if name=group_name oper=neq value="geophysics"] [if name=group_name oper=neq value="interp"] [if name=layer_status oper=eq value=1]
[leg_group_name]
[/if][/if][/if][/if] [/leg_group_html] [leg_class_html] [if name=layer_group oper=isnull]
[leg_class_name]
[/if] [if name=layer_group oper=eq value="geophysics"]
[/if] [if name=layer_group oper=eq value="interp"]
[/if] [/leg_class_html] Brian 3D mapping and site investigation services for: Pipeline and cable routes | UXO | Utilities | Rail | Foundation design | Flood defences | Surveying ** Click here to see our latest newsletter ** Brian Barrett Senior Geophysicist brian at zetica.com Tel: 44-(0)1993-886682 Mob: 44-(0)7973-549737 Fax: 44-(0)1993-886683 www.zetica.com [cid:image001.gif at 01CBF903.A890EF80] Zetica Ltd Units 15 & 16 Hanborough Business Park Long Hanborough OX29 8LH, UK Zetica Limited is registered in England No. 4079723 The information in this email is intended only for the addressee(s) named above. Access to this email by anyone else is unauthorised. If you are not the intended recipient of this message any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. Zetica Ltd and or its subsidiaries do not warrant that any attachments are free from viruses or other defects and accept no liability for any losses resulting from infected email transmissions. Please note that any views expressed in this email may be those of the originator and do not necessarily reflect those of this organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 1392 bytes Desc: image001.gif URL: From g8a at email.com Tue Apr 12 06:33:24 2011 From: g8a at email.com (aznan) Date: Tue, 12 Apr 2011 06:33:24 -0700 (PDT) Subject: [mapserver-users] Re: handling multiple styles for WMS layers In-Reply-To: <20100119152435.3fd3ea92@thoe.hq.intevation.de> References: <4B55B355.1030304@wheregroup.com> <20100119152435.3fd3ea92@thoe.hq.intevation.de> Message-ID: <1302615204608-6265124.post@n2.nabble.com> Sorry to resurrect an old thread. I'm trying to accomplish the same thing, but I can't get the styles URL parameter to "stick". I modified the OGC workshop slightly: LAYER NAME rivers GROUP "Vectors" CLASSGROUP "blue" PROJECTION "init=epsg:4326" END TYPE LINE STATUS ON DATA ../data/rivers # how will this data look? CLASS NAME "Rivers-blue" GROUP "blue" COLOR 0 0 255 END CLASS NAME "Rivers-red" GROUP "red" COLOR 255 0 0 END END When I do a GetLegendGraphic using the following URL I still get a blue river: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/service/config.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=rivers&format=image/png&styles=red Likewise, if I set CLASSGROUP to "red" I only get the red river even though I specify "&styles=blue" in the URL. What gives? Thanks! Stephan Holl wrote: > > Hello Verena, > > Verena Diewald <verena.diewald at wheregroup.com>, [20100119 - > 14:27:49] > >> Hi list, >> >> I have one question concerning style handling in MapServer. Is it >> possible to define multiple layer styles for my WMS and request the >> single styles in the styles parameter in the GetMap request? And how >> are the single styles defined in the layer section of the mapfile? > > Have a look at GROUP[1] and CLASSGROUP[2]. > > This should should give what you want. > > Best > > Stephan > > [1] http://mapserver.org/mapfile/class.html > [2] http://mapserver.org/mapfile/layer.html > -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/handling-multiple-styles-for-WMS-layers-tp4419989p6265124.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue Apr 12 06:47:39 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 12 Apr 2011 16:47:39 +0300 Subject: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? Message-ID: Hi, I have a pretty basic mapfile without my own OUTPUTFORMAT settings. MS 6.0 beta4 is advertising image/jpeg in the GetCapabilities. However, if I use it in the GetMap I am getting my request back from the server. I mean that by browser shows me exactly the same query as a result in test format that I was sending from the URL line. I have never before seen this behaviour. If I change format into image/png or image/gif I am getting a proper image back. I am testing with MS4W package. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrguerra at gmv.com Tue Apr 12 06:49:35 2011 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Tue, 12 Apr 2011 15:49:35 +0200 Subject: [mapserver-users] WFS Intersect with gml:box In-Reply-To: <4E70D1E8680D584198DDB55BD65220B3A32D98DCF6@GMVMAIL5.gmv.es> References: <4E70D1E8680D584198DDB55BD65220B3A32D98DCE1@GMVMAIL5.gmv.es> <4D924204.4090401@dmsolutions.ca>, <789E82AF6874CF4CB8F27BE0B3C6435CA13B8B@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCEB@GMVMAIL5.gmv.es> <4D936C08.4090303@dmsolutions.ca>, <4D936F11.1060500@mapgears.com> <4E70D1E8680D584198DDB55BD65220B3A32D98DCED@GMVMAIL5.gmv.es> <4D9385CF.2020305@dmsolutions.ca> , <4D939708.40903@dmsolutions.ca>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCEE@GMVMAIL5.gmv.es>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCF3@GMVMAIL5.gmv.es>, <4E70D1E8680D584198DDB55BD65220B3A32D98DCF4@GMVMAIL5.gmv.es> <4E70D1E8680D584198DDB55BD65220B3A32D98DCF6@GMVMAIL5.gmv.es> Message-ID: <4E70D1E8680D584198DDB55BD65220B3A32D98B19F@GMVMAIL5.gmv.es> I have found out that composed BBOX queries using AND return unexpected results too (when using mysql data source, they work correctly using postgres): Test Queries. 1.AND and 2 BBOX: Returns only the first feature (-10,-10) and that feature is out of the boundinx boxes http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= msGeometry -7.874614621788295,14.799588929907502 15.519013391777994,28.776978474820144 msGeometry -100.82219958499486,-57.14285725714286 100.82219958499486,57.14285725714286 2. AND, but only the first BBOX. Returns the 3 features, but feature 1 (-10,-10) is out of the bounding box http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= msGeometry -7.874614621788295,14.799588929907502 15.519013391777994,28.776978474820144 3. The First BBOX, without AND. This one works :) http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= msGeometry -7.874614621788295,14.799588929907502 15.519013391777994,28.776978474820144 -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Joaqu?n Rodriguez-Guerra Urcelay Enviado el: viernes, 01 de abril de 2011 21:09 Para: mapserver-users at lists.osgeo.org CC: ?scar Luengo Herrero Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hello, Today I had time to try this test in 3 different systems, and I couldn make it work in any of them, so I think this is a bug, should I create a new ticket in http://trac.osgeo.org/mapserver/. I write the steps below to reproduce the problem PROBLEM: In wfs layer where the data is retrieved from a mysql table, the intersect filter only returns a result list when the first feature(the first inserted record in the table) is part of the result set. If the filter shall return results, but the first feature is not among them, then we get not list of features: -1.000000,-1.000000 -1.000000,-1.000000 Which is diffrent to when a query shall not return any resultst: missing TEST: 1. Create Spatial Data CREATE DATABASE mmi_spatial_db; USE mmi_spatial_db; CREATE TABLE positionReal (oid LONG, point POINT); INSERT INTO positionReal(oid, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); INSERT INTO positionReal(oid, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(oid, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); 2. Map file: MAP NAME MMI_WFS UNITS METERS TRANSPARENT ON IMAGECOLOR 0 0 0 IMAGETYPE PNG SHAPEPATH "." SYMBOLSET "../symbols.sym" STATUS ON WEB IMAGEPATH "/opt/fsg/tmp/" IMAGEURL "/opt/fsg/" METADATA "wfs_title" "WFS MMI Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_srs" "EPSG:4326"## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended "wfs_schemas_location" "http://schemas.opengeospatial.net" END END PROJECTION "init=epsg:4326" END LAYER NAME "PositionReal" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "MySQL:mmi_spatial_db,user=mmi,password=*****,host=127.0.0.1,port=3306" DATA "SELECT point from positionReal" #CONNECTIONTYPE POSTGIS #CONNECTION "host=127.0.0.1 port=5432 dbname=mmi_db user=postgres password=postgres" #DATA "point from positionreal" DUMP TRUE ## REQUIRED #TOLERANCE 200 #TOLERANCEUNITS PIXELS METADATA #"wfs_featureid" "oid" "wfs_srs" "epsg:4326" "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_title" "PositionReal" "gml_include_items" "all" ## Optional (serves all attributes for lay "gml_surface_occurances" "0,UNBOUNDED" "wfs_extent" "-180 -90 180 90" "gml_include_items" "all" END END END # Map File 3. Intersect Filter: - This one works because point (-10,-10) is part of the resultset. http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -180,-90 -180,90 180,90 180,-90 -180,-90 - This one works, point (-10,-10) is part of the resultset http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point -11,-11 -11,-9 -9,-9 -9,-11 -11,-11 - This query fails, it should return one feature, but we get the weird behavior because point (-10,-10) is not part of the resultset http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point 9,9 9,11 11,11 11,9 9,9 Notice that I use gml:polygon instead of gml:box to be able to test this with mapserver in trunk (which works with gml:box) but also with mapserver 5.6.3 (fgs-installer, which dont work with intersect and gml:box) The problem does not ocurr if the database in use is postgres ./createdb -U postgres -T template_postgis mmi_db; CREATE TABLE positionReal (oid int); SELECT AddGeometryColumn('positionreal', 'point', 4326,'POINT',2); INSERT INTO positionReal(oid, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); INSERT INTO positionReal(oid, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(oid, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); SYSTEMS: I test this in the following systems: OpenSuse 11 fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin and building from the sources (branch 5-6) mysql Ver 14.12 Distrib 5.0.67, for suse-linux-gnu (i686) using readline 5.2 and mysql 5.5 too SLES 11 fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin mysql Ver 14.14 Distrib 5.1.43, for unknown-linux-gnu (x86_64) using readline 5.1 Ubunut fgs-mapserver_basic_5.6.3-fgs_9.5-linux-i386.bin mysql 5.1 Best regards, Joaqu?n ________________________________________ De: Joaqu?n Rodriguez-Guerra Urcelay Enviado el: jueves, 31 de marzo de 2011 17:25 Para: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hi, I have check the same example using Posgres and it works, so it is a problem with mysql Joaqu?n Rodr?guez-Guerra Urcelay Unidad de Sistemas de Procesamiento de Ciencia y de Observaci?n de la Tierra / Science and Earth Observing Processing Systems Unit GMV AEROSPACE AND DEFENCE, S.A. Isaac Newton, 11 P.T.M. Tres Cantos E-28760 Madrid Tel. +34 91 807 21 00 / 7695 Fax +34 91 807 21 99 www.gmv.com ________________________________________ De: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] En nombre de Joaqu?n Rodriguez-Guerra Urcelay [jrguerra at gmv.com] Enviado el: jueves, 31 de marzo de 2011 16:42 Para: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hello, Here I am again, this is not over :( I have been testing this all morning, and I have seen that intersect only returns results when the first feature in the mysql table belongs to the resultset, very weird :( When I request a filter which should return results, but the first feature is not in the resultset, then I get this: -1.000000,-1.000000 -1.000000,-1.000000 Which is diffrent to when I make a query which should not return any results, then I get: missing So, it detects when there are results, but only show them when the first feature is on the result set. Does this make any sense? This is my database (mysql 5): CREATE DATABASE mmi_spatial_db; USE mmi_spatial_db; CREATE TABLE positionReal (id INTEGER, point GEOMETRY); INSERT INTO positionReal(id, point) VALUES (2, GeomFromText('POINT(10 10)',4326)); INSERT INTO positionReal(id, point) VALUES (1, GeomFromText('POINT(0 20)',4326)); INSERT INTO positionReal(id, point) VALUES (3, GeomFromText('POINT(-10 -10)',4326)); The following query returns the expected result http://localhost:8080/cgi-bin/mywfs?SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter= point 10,10 10,10 result: 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 10.000000,10.000000 2 And any other query where the point 10,10 is belonging the bounding box, works. If I change the order INSERTS, then this magic point changes for the one I insert first. This is my map file: MAP NAME MMI_WFS UNITS METERS TRANSPARENT ON IMAGECOLOR 0 0 0 IMAGETYPE PNG SHAPEPATH "." SYMBOLSET "../symbols.sym" STATUS ON WEB IMAGEPATH "/opt/fsg/tmp/" IMAGEURL "/opt/fsg/" METADATA "wfs_title" "WFS MMI Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_srs" "EPSG:4326"## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended "wfs_schemas_location" "http://schemas.opengeospatial.net" END END PROJECTION "init=epsg:4326" END LAYER NAME "PositionReal" STATUS ON TYPE POINT CONNECTIONTYPE OGR CONNECTION "MySQL:mmi_spatial_db,user=mmi,password=adminis,host=127.0.0.1,port=3306" DATA "SELECT id,point from positionReal" DUMP TRUE ## REQUIRED #TOLERANCE 200 #TOLERANCEUNITS PIXELS METADATA "wfs_featureid" "id" "wfs_srs" "epsg:4326" "wfs_onlineresource" "http://localhost:8080/cgi-bin/mywfs?" ## Recommended "wfs_title" "PositionReal" "gml_include_items" "all" ## Optional (serves all attributes for lay "gml_surface_occurances" "0,UNBOUNDED" "wfs_extent" "-180 -90 180 90" "gml_include_items" "all" END END END # Map File Well, this is weird, but if it sounds familliar or it rings a bell to some one, please help me :) Thanks! Joaqu?n ________________________________________ De: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] En nombre de Joaqu?n Rodriguez-Guerra Urcelay [jrguerra at gmv.com] Enviado el: jueves, 31 de marzo de 2011 11:31 CC: mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] WFS Intersect with gml:box Hi, Thank you both for your help, the filter is finally working :D The bug is fixed, gml:box works now with intersect. I wanted to confirm this in the bug report, but I havent found they way to write anything there (is it because the bug is now closed?) Yesterday I was not getting the results I expected because I think my connection to the mysql database had some problem. I tried with a shapefile and it was working perfectly, so I then played a bit with the mysql connection and now it is working :) Joaqu?n ________________________________________ De: Yewondwossen Assefa [yassefa at dmsolutions.ca] Enviado el: mi?rcoles, 30 de marzo de 2011 22:48 Para: Rahkonen Jukka CC: mapserver-users at lists.osgeo.org; Joaqu?n Rodriguez-Guerra Urcelay Asunto: Re: [mapserver-users] WFS Intersect with gml:box On 30/03/2011 4:16 PM, Rahkonen Jukka wrote: > Hi, > > "Intersect" means the same as "not disjoint", that the two geometries have at least one point in common. Thus WFS Intersects should select the point that is inside the "box" in the query. I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial query Intersects. > Geos lib used by MapServer should act the same as JTS I beleive. Joaqu?n, you can maybe attach your simple map/data/url to the bug and I will check it using MapServer trunk. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ______________________ This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la Informacion siendo para uso exclusivo del destinatario, quedando prohibida su divulgacion copia o distribucion a terceros sin la autorizacion expresa del remitente. Si Vd. ha recibido este mensaje erroneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboracion. ______________________ From thomas.bonfort at gmail.com Tue Apr 12 06:50:57 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 12 Apr 2011 15:50:57 +0200 Subject: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? In-Reply-To: References: Message-ID: I think some browsers do that if the image is corrupt. Try to use curl or wget or view-source to see the actual returned data. -- thomas On Tue, Apr 12, 2011 at 15:47, Rahkonen Jukka wrote: > Hi, > > I have a pretty basic mapfile without my own OUTPUTFORMAT settings.? MS 6.0 > beta4 is advertising image/jpeg in the GetCapabilities.? However, if I use > it in the GetMap I am getting my request back from the server.? I mean that > by browser shows me exactly the same query as a result in test format that I > was sending from the URL line.? I have never before seen this behaviour. > If?I change format into image/png or image/gif I am getting a proper image > back. I am testing with MS4W package. > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jt at mapmedia.de Tue Apr 12 07:07:16 2011 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Tue, 12 Apr 2011 16:07:16 +0200 Subject: [mapserver-users] Re: handling multiple styles for WMS layers In-Reply-To: <1302615204608-6265124.post@n2.nabble.com> References: <4B55B355.1030304@wheregroup.com> <20100119152435.3fd3ea92@thoe.hq.intevation.de> <1302615204608-6265124.post@n2.nabble.com> Message-ID: <4DA45C94.1090507@mapmedia.de> hi, as you only request one layer in getlegendgraphic, it should be only one 'style=red', not 'styleS=red' within the request. J?rg Am 12.04.2011 15:33, schrieb aznan: > Sorry to resurrect an old thread. I'm trying to accomplish the same thing, > but I can't get the styles URL parameter to "stick". I modified the OGC > workshop slightly: > > LAYER > NAME rivers > GROUP "Vectors" > > CLASSGROUP "blue" > > PROJECTION > "init=epsg:4326" > END > > TYPE LINE > STATUS ON > DATA ../data/rivers > > # how will this data look? > CLASS > NAME "Rivers-blue" > GROUP "blue" > COLOR 0 0 255 > END > > CLASS > NAME "Rivers-red" > GROUP "red" > COLOR 255 0 0 > END > END > > When I do a GetLegendGraphic using the following URL I still get a blue > river: > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/service/config.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=rivers&format=image/png&styles=red > > Likewise, if I set CLASSGROUP to "red" I only get the red river even though > I specify "&styles=blue" in the URL. > What gives? Thanks! > > > Stephan Holl wrote: >> >> Hello Verena, >> >> Verena Diewald<verena.diewald at wheregroup.com>, [20100119 - >> 14:27:49] >> >>> Hi list, >>> >>> I have one question concerning style handling in MapServer. Is it >>> possible to define multiple layer styles for my WMS and request the >>> single styles in the styles parameter in the GetMap request? And how >>> are the single styles defined in the layer section of the mapfile? >> >> Have a look at GROUP[1] and CLASSGROUP[2]. >> >> This should should give what you want. >> >> Best >> >> Stephan >> >> [1] http://mapserver.org/mapfile/class.html >> [2] http://mapserver.org/mapfile/layer.html >> > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/handling-multiple-styles-for-WMS-layers-tp4419989p6265124.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 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: jt at mapmedia.de net: www.mapmedia.de _________________________________________________ Gesch?ftsf?hrer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 From Jukka.Rahkonen at mmmtike.fi Tue Apr 12 11:23:12 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 12 Apr 2011 21:23:12 +0300 Subject: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? In-Reply-To: References: Message-ID: Hi, Some more information found from the Apache error log: [Tue Apr 12 17:19:05 2011] [error] [client xxx.xx.xx.xx] Wrong JPEG library version: library is 62, caller expects 80\r Can anybody guess where this wrong JPEG library is hiding? I am running Windows 2003 server with MS4W 3.0.1, updated into MS 6.0 beta4. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Rahkonen Jukka L?hetetty: 12. huhtikuuta 2011 16:48 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? Hi, I have a pretty basic mapfile without my own OUTPUTFORMAT settings. MS 6.0 beta4 is advertising image/jpeg in the GetCapabilities. However, if I use it in the GetMap I am getting my request back from the server. I mean that by browser shows me exactly the same query as a result in test format that I was sending from the URL line. I have never before seen this behaviour. If I change format into image/png or image/gif I am getting a proper image back. I am testing with MS4W package. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.hird at aligned-assets.co.uk Tue Apr 12 14:28:12 2011 From: andy.hird at aligned-assets.co.uk (Andy Hird) Date: Tue, 12 Apr 2011 22:28:12 +0100 Subject: [mapserver-users] RE: Problems with Query Template (Chameleon) Message-ID: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> Steve Thanks for the reply. There are no errors being logged and as I say it works for files which are not MapInfo Tab files. For instance the following works fine. LAYER NAME "10K StreetView" STATUS ON TYPE RASTER MINSCALEDENOM 6000 #600 MAXSCALEDENOM 22499 #2999 TILEINDEX "C:\ms4w\apps\XXXX\data\10K.shp" TILEITEM "LOCATION" CLASS TEMPLATE "templates/XXXX.html" #TOLERANCE 6 TOLERANCEUNITS PIXELS END END I assume that this is because it?s a shp file which has a dbf file. This does not work: LAYER NAME "MasterMap Area" TYPE POLYGON MINSCALEDENOM 1 MAXSCALEDENOM 5999 STATUS ON CONNECTIONTYPE OGR CONNECTION "C:\ms4w\apps\XXXX\data\MM_Topo_Area.TAB" STYLEITEM "AUTO" CLASS TEMPLATE "templates/XXXX.html" #TOLERANCE 6 TOLERANCEUNITS PIXELS END # Class section HEADER "templates/XXXX_header.html" FOOTER "templates/XXXX_footer.html" END Its bugging me like crazy as I can?t figure it out, - the second part of my question was: ?However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too.? If it?s easier for someone to advise on that it would be appreciated. Thanks Andy From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sent: 11 April 2011 22:49 To: Andy Hird; mapserver-users at lists.osgeo.org Subject: RE: Problems with Query Template (Chameleon) Not a Chameleon user so I may not be of much help. Any errors being logged? What does the template file look like? It?s possible that ms4w_2.3.1?s MapServer did not require a magic string be on the first line of the template. In new versions it is required. Basically the first line of a template must contain the string ?MapServer Template?. Typically you?d put that in a HTML comment, e.g.: ...template follows... That?s my first guess anyway. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Hird Sent: Friday, April 08, 2011 3:00 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problems with Query Template (Chameleon) Hi there - really need some help if you can please regarding Template Query feature, and I have googled to exhaustion :-/ Background: I have an existing Map file referencing MapInfo Tab files running under ms4w_2.3.1 & chameleon_ms4w-2.4.1 I have installed ms4w - V3.0.1 and chameleon V2.6.0 Copied my Map file across and made the necessary adjustments to get it working. However when using the Query Widget (info of layers at mouse click) against MapInfo Layers it is no longer returning results, and yet it did previously. My knowledge is not that great in php etc ? but I suspect that its requiring a dbf rather than MapInfo Tab as it does work with a shp, dbf set of files. Can Anyone help please as I really struggling ? ideally I just want to use the old widget. However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too. Thanks in advance Andy ---------------------------------------------------------------------------- The information contained in or attached to this message is the responsibility of the sender and is meant for the confidential use of the intended recipients. It does not necessarily represent the position of Aligned Assets. If you are not an intended recipient you are notified that you have received this communication in error and that review, dissemination or copying of this communication is prohibited. If you have received this in error, please notify us. Aligned Assets Limited Unit 5 River Court Albert Drive Sheerwater Woking GU21 5RP Company Registration No: 4610724 ---------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpinho_eng at yahoo.com.br Wed Apr 13 00:03:12 2011 From: rpinho_eng at yahoo.com.br (Ricardo Pinho) Date: Wed, 13 Apr 2011 00:03:12 -0700 (PDT) Subject: [mapserver-users] [Annouce] GISVM Base In-Reply-To: References: Message-ID: <329408.20633.qm@web65701.mail.ac4.yahoo.com> Hi Juan, Sorry, forgot to mention that GISVM Base comes with Mapserver already installed! Along with Apache, PHP, Mapscrit, ... Thank you! Cheers, Ricardo ________________________________ De: Fuchs Juan Carlos Para: Ricardo Pinho Enviadas: Sexta-feira, 8 de Abril de 2011 12:46:24 Assunto: RE: [mapserver-users] [Annouce] GISVM Base Hi, Nice Work! What about the install scripts for MapServer ? would be nice. Thanks in advanced JC. -----Mensaje original----- >De: Ricardo Pinho [mailto:rpinho_eng at yahoo.com.br] >Enviado el: Mi?rcoles, 06 de Abril de 2011 09:42 p.m. >Para: mapserver-users at lists.osgeo.org >Asunto: [mapserver-users] [Annouce] GISVM Base > > >Dear all, >We are proud to announce the new ?GISVM BASE?. >Available now for FREE DOWNLOAD at: http://gisvm.com > >GISVM ("GIS Virtual Machine") is a Ubuntu Linux distribution for GIS users, >packaged as a virtual machine, a completely isolated computer that can be run >in a window inside your current operating system. > >This new BASE edition, based on a minimum Ubuntu 10.10 installation, provides >the user with simple Double Click install scripts for an unlimited possible >number of open-source GIS packages.This way, users are FREE to build their >own GISVM by installing the desired GIS packages. > >By the time of this announcement these are the available install scripts: >- Quantum GIS / Grass >- uDIG >- gvSIG >- OpenJump >- Kosmo >- R >- GeoServer >- GeoMajas > >We plan to keep adding more install scripts, depending on the users feedback >and request. > >PLEASE REGISTER ON THE GISVM USER MAILLING LIST and help us improve this new >version: https://lists.sourceforge.net/lists/listinfo/gisvm-users > >We would also appreciate it if you SPREAD THE WORD. Put it in your blog, >forum, facebook, twitter, webpage, and so on. > >Thank you, >Ricardo Pinho > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Apr 13 00:09:24 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 13 Apr 2011 10:09:24 +0300 Subject: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? In-Reply-To: <4DA49BEB.80009@pobox.com> References: <4DA49BEB.80009@pobox.com> Message-ID: > -----Alkuper?inen viesti----- > L?hett?j?: Frank Warmerdam [mailto:warmerdam at pobox.com] > L?hetetty: 12. huhtikuuta 2011 21:38 > Vastaanottaja: Rahkonen Jukka > Aihe: Re: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? > > On 11-04-12 02:23 PM, Rahkonen Jukka wrote: > > Hi, > > Some more information found from the Apache error log: > > > > [Tue Apr 12 17:19:05 2011] [error] [client xxx.xx.xx.xx] > Wrong JPEG library > > version: library is 62, caller expects 80\r > > > > Can anybody guess where this wrong JPEG library is hiding? > I am running Windows > > 2003 server with MS4W 3.0.1, updated into MS 6.0 beta4. > > Jukka, > > I would suggest looking in \windows\system32 for any jpeg > DLLs. It may be > that one is overriding the one distributed with MS4W. Hi, MS4W does not come with jpeg dll as far as I understand. Nor do I have such in my system disk in any directory. I checked it with running dir /s *jpeg*.dll I do have jpeg.dlls in other places like Java \bin directory. In addition I have jpeg_osgeo.DLLs in various places, but not within the MS4W tree. Renaming everything that looks like jpeg dll did not change anything, the error is still "library is 62, caller expects 80" Perhaps this is more MS4W problem? -Jukka Rahkonen- From snaperski at gmail.com Wed Apr 13 03:33:13 2011 From: snaperski at gmail.com (Raivo Alla) Date: Wed, 13 Apr 2011 13:33:13 +0300 Subject: [mapserver-users] label placement problem In-Reply-To: References: Message-ID: Thank You ! The situation is illustrated here: https://picasaweb.google.com/105062450878416453583/Ort#5595010970050628162 I got three different streets that have same label "2", and I would like to display the labels so that for the same street address points I could use declaration like MINDISTANCE 40, but if the same label "2" appears on the address point that belongs to other street, then it will not use MINDISTANCE and should display that label. I have shapefile, whre one attribute "REFERENCEPOINT" holds the same numerical value for the same address points (ie those points which have label "2" on the screenshot and belong to the same street have same "REFERENCEPOINT" value). Can I somehow use it to render them differently? I hope I expressed myself correctly :) With regards, Raivo On Tue, Apr 12, 2011 at 1:18 AM, Lime, Steve D (DNR) wrote: > Can you share some pictures that illustrate the issue? > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Raivo Alla > *Sent:* Wednesday, April 06, 2011 6:34 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] label placement problem > > > > Hello! > > I am using MapServer 5.4 and right now I'm facing with label positioning > problem. > Any help solving that would really be appreciated. > > 1. I have lots of buildings address points... so for example if two nearby > located buildings at the crossing of "Some_street" and "Some_other_street" > have both same house numbers (for example "1") then the MINDISTANCE 30 > declaration will cancel one label out. > 2. I cannot remove MINDISTANCE neither since in many cases I have large > building complexes where multiple buildings share same address label. > And I want mapfile to declare some distance between those addresses that > logically will mark the same address object. > 3. In my buildings_addresses (points) file I do have attribute, which I > could use to separate those two kinds of duplicate labels, > but MapServer doent seem to support rendering them differently in a such > way.... Or am I wrong? > > > My LABEL definition: > LABEL > TYPE truetype > ANTIALIAS true > FONT "arial" > COLOR 50 50 50 > SIZE 9 > priority 1 > ANGLE [POORDENURK] > MINDISTANCE 30 > OUTLINECOLOR 220 220 220 > POSITION cc > BUFFER 2 > END > > > Hope that there will be some kind of solution here. > > > Sincerely, > Raivo Alla > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Apr 13 05:34:21 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 13 Apr 2011 09:34:21 -0300 Subject: [mapserver-users] RE: Problems with Query Template (Chameleon) In-Reply-To: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> References: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> Message-ID: <4DA5984D.1010906@gatewaygeomatics.com> Hello Andy, I may not have your solution, but I can let you know what I would do in this situation: - make sure GDAL/OGR is accessing your file properly (testing with the ogrinfo command on your old installation version and with your new installation GDAL version, and compare the ogrinfo results) - test a simple query on your problem file in something other than Chameleon (e.g. install the MS4W addon "MapServer Itasca Demo Application" and try modifying that for your own mapfile, it is a MapServer CGI viewer with a query tool that you desire) - once you know if it is an issue specific to Chameleon then move this question to the Chameleon mailing list - if it isn't a Chameleon issue, you might have discovered an issue with MapServer/OGR....so don't give up! Hope this helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-04-12 6:28 PM, Andy Hird wrote: > Steve > > Thanks for the reply. > > There are no errors being logged and as I say it works for files which > are not MapInfo Tab files. For instance the following works fine. > > LAYER > > NAME "10K StreetView" > > STATUS ON > > TYPE RASTER > > MINSCALEDENOM 6000 #600 > > MAXSCALEDENOM 22499 #2999 > > TILEINDEX "C:\ms4w\apps\XXXX\data\10K.shp" > > TILEITEM "LOCATION" > > CLASS > > TEMPLATE "templates/XXXX.html" #TOLERANCE 6 TOLERANCEUNITS PIXELS > > END > > END > > I assume that this is because it?s a shp file which has a dbf file. > > This does not work: > > LAYER > > NAME "MasterMap Area" > > TYPE POLYGON > > MINSCALEDENOM 1 > > MAXSCALEDENOM 5999 > > STATUS ON > > CONNECTIONTYPE OGR > > CONNECTION "C:\ms4w\apps\XXXX\data\MM_Topo_Area.TAB" > > STYLEITEM "AUTO" > > CLASS > > TEMPLATE "templates/XXXX.html" #TOLERANCE 6 TOLERANCEUNITS PIXELS > > END # Class section > > HEADER "templates/XXXX_header.html" > > FOOTER "templates/XXXX_footer.html" > > END > > Its bugging me like crazy as I can?t figure it out, - the second part of > my question was: > > ?However If someone can provide example of placing a button on a html > page that would call query functionality that would be very helpful too.? > > If it?s easier for someone to advise on that it would be appreciated. > > Thanks > > Andy From Johan.Hallgren at sweco.se Wed Apr 13 06:14:15 2011 From: Johan.Hallgren at sweco.se (Hallgren Johan) Date: Wed, 13 Apr 2011 15:14:15 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" Message-ID: Hello I have a strange problem... I should use MapServer with Mapscript to call a WMS server as a client. I created a LAYER definition and after some struggle it went thru, I get my map. I used the shp2img command to test the mapfile. Next step was to test the mapfile with drawmap so the mapscript implementation was tested and now an error showed up. "CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7" I expected that this error should show up already in the shp2img-test, but there it worked fine. Anyone having a clue what's wrong? Here is the error: ----------------------------------------- Unhandled Exception: System.ApplicationException: msHTTPExecuteRequests(): HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up. *_p roxy_auth_type setting ignored. at OSGeo.MapServer.mapObj.draw() at DrawMap.Main(String[] args) GDAL: GDALDeregister_GTiff() called. --------------------------------------- ... and here is the layer definition. --------------------------------------- LAYER NAME 'WMS-Oversikt' TYPE RASTER STATUS ON CONNECTION 'http://maps.metria.se/geoserver/wms?' CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:2400' 'wms_name' 'anyname' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_auth_type' 'basic' 'wms_auth_username' 'xxx' 'wms_auth_password' 'yyy' 'wms_proxy_type' 'http' 'wms_proxy_host' '147.44.134.17' 'wms_proxy_port' '80' 'wms_proxy_auth_type' 'basic' 'wms_proxy_username' 'zzz' 'wms_proxy_password' 'yyy' END END ------------------------------------------ Regards Johan ________________________________ Johan Hallgren Gruppchef Telefon direkt 023-464 92 Mobil 073-800 64 92 johan.hallgren at sweco.se Sweco Position AB Parkgatan 3 Box 1902 791 19 Falun Telefon 023-464 00 www.sweco.se [cid:image001.png at 01CBF9EC.EB232C20] [cid:image002.png at 01CBF9EC.EB232C20]Please consider the environment before printing my e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 31553 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 181 bytes Desc: image002.png URL: From adams at terrestris.de Wed Apr 13 07:39:46 2011 From: adams at terrestris.de (adams) Date: Wed, 13 Apr 2011 16:39:46 +0200 Subject: [mapserver-users] mapserver 6 beta5 and variable substitutions In-Reply-To: References: Message-ID: <4DA5B5B2.9070208@terrestris.de> Dear list, I am just testing around with mapserver 6 beta5 and wonder, if there is an issue with the variable substitutuions. Great work so far !! Thanks guys! ... and now my problem ;-): We set a filter on events due to time and level in the client and send the parameters via url as variable substitutions to the DATA -request on postgis in the mapfile: CONNECTION 'user=.... DATA "geom from (select * from table WHERE level IN (%LEVEL%) AND (date BETWEEN '%TIME_START%' AND '%TIME_END%' OR ....))) as foo using unique id using SRID=..." .... Calling this via WMS getMap-Request: http:// ... /mapserv6?map=maps.map&LAYERS=earthquake&...&LEVEL=1,2,3&TIME_START=2011-03-10&TIME_END=2011-03-24&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&.... Works fine for mapserver 5.6, but fails on mapserver6 (yes, I tried without variable substitution and all works fine after reading: http://mapserver.org/trunk/MIGRATION_GUIDE.html - thanks for that!) This is the xml error I get: msDrawMap(): Image handling error. Failed to draw layer named 'earthquake'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: syntax error at or near "%" LINE 1: ...WHERE head_category_id = 34 AND level IN (%LEVE... ^ ) executing query: select "level",encode(ST_AsBinary(ST_Force_2D("head_geo"),'NDR'),'hex') as geom,"id" from (select * from app_head_event WHERE head_category_id = 34 AND level IN (%LEVEL%) AND (head_time_start::date BETWEEN '%TIME_START%' AND '%TIME_END%' OR head_time_end::date BETWEEN '%TIME_START%' AND '%TIME_END%' OR (head_time_end::date > '%TIME_END%' AND head_time_start::date < '%TIME_START%'))) as foo where head_geo && GeomFromText('POLYGON((11401706.0926982 2783146.86697407,11401706.0926982 5613635.52927973,19986215.8245698 5613635.52927973,19986215.8245698 2783146.86697407,11401706.0926982 2783146.86697407))',900913) msValidateParameter(): Regular expression error. Parameter pattern validation failed. msValidateParameter(): Regular expression error. Parameter pattern validation failed. msValidateParameter(): Regular expression error. Parameter pattern validation failed. [....] It seems that the var-subs are not passed to the query... or is there something else I missed? I just found one issue on variable substitutions: http://osgeo-org.1803224.n2.nabble.com/MapServer-6-0-0-beta4-release-td6225613.html But in my eyes this does not explain my problem. Thanks in advance! Till From steve.lime at state.mn.us Wed Apr 13 07:42:31 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 13 Apr 2011 09:42:31 -0500 Subject: [mapserver-users] mapserver 6 beta5 and variable substitutions In-Reply-To: <4DA5B5B2.9070208@terrestris.de> References: <4DA5B5B2.9070208@terrestris.de> Message-ID: Hi Till: From the migration guide... "Runtime subsitution now *requires* a validation pattern be present before the substitution will take place (this had been optional). This can be done via a layer metadata tag as before or within layer or web VALIDATION blocks. See ticket #3522 for more information." Could this be it? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of adams Sent: Wednesday, April 13, 2011 9:40 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapserver 6 beta5 and variable substitutions Dear list, I am just testing around with mapserver 6 beta5 and wonder, if there is an issue with the variable substitutuions. Great work so far !! Thanks guys! ... and now my problem ;-): We set a filter on events due to time and level in the client and send the parameters via url as variable substitutions to the DATA -request on postgis in the mapfile: CONNECTION 'user=.... DATA "geom from (select * from table WHERE level IN (%LEVEL%) AND (date BETWEEN '%TIME_START%' AND '%TIME_END%' OR ....))) as foo using unique id using SRID=..." .... Calling this via WMS getMap-Request: http:// ... /mapserv6?map=maps.map&LAYERS=earthquake&...&LEVEL=1,2,3&TIME_START=2011-03-10&TIME_END=2011-03-24&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&.... Works fine for mapserver 5.6, but fails on mapserver6 (yes, I tried without variable substitution and all works fine after reading: http://mapserver.org/trunk/MIGRATION_GUIDE.html - thanks for that!) This is the xml error I get: msDrawMap(): Image handling error. Failed to draw layer named 'earthquake'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: syntax error at or near "%" LINE 1: ...WHERE head_category_id = 34 AND level IN (%LEVE... ^ ) executing query: select "level",encode(ST_AsBinary(ST_Force_2D("head_geo"),'NDR'),'hex') as geom,"id" from (select * from app_head_event WHERE head_category_id = 34 AND level IN (%LEVEL%) AND (head_time_start::date BETWEEN '%TIME_START%' AND '%TIME_END%' OR head_time_end::date BETWEEN '%TIME_START%' AND '%TIME_END%' OR (head_time_end::date > '%TIME_END%' AND head_time_start::date < '%TIME_START%'))) as foo where head_geo && GeomFromText('POLYGON((11401706.0926982 2783146.86697407,11401706.0926982 5613635.52927973,19986215.8245698 5613635.52927973,19986215.8245698 2783146.86697407,11401706.0926982 2783146.86697407))',900913) msValidateParameter(): Regular expression error. Parameter pattern validation failed. msValidateParameter(): Regular expression error. Parameter pattern validation failed. msValidateParameter(): Regular expression error. Parameter pattern validation failed. [....] It seems that the var-subs are not passed to the query... or is there something else I missed? I just found one issue on variable substitutions: http://osgeo-org.1803224.n2.nabble.com/MapServer-6-0-0-beta4-release-td6225613.html But in my eyes this does not explain my problem. Thanks in advance! Till _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From adams at terrestris.de Wed Apr 13 08:09:01 2011 From: adams at terrestris.de (adams) Date: Wed, 13 Apr 2011 17:09:01 +0200 Subject: [mapserver-users] mapserver 6 beta5 and variable substitutions In-Reply-To: References: <4DA5B5B2.9070208@terrestris.de> Message-ID: <4DA5BC8D.1060209@terrestris.de> Steve, :-[ oh, sorry, it seems that my eyes have become bad ... OK, I tried this: 'LEVEL_validation_pattern' '1|1,2|1,2,3|1,2,3,4|1,2,3,4,5' 'TIME_START_validation_pattern' '20$|^20' 'TIME_END_validation_pattern' '20$|^20' 'default_LEVEL' '1,2,3,4,5' 'default_TIME_START' '2011-04-01' 'default_TIME_END' '2011-04-30' In the Maps web-metadata and/or layer-metadata tags, it works fine in the layer-metadata but not for the maps metadata. If I understood your discussion on ticket #3522, there were plans to enable to put this into the maps-metadata tag as well? Thanks so far! Regards, Till Lime, Steve D (DNR) wrote: > Hi Till: From the migration guide... > > "Runtime subsitution now *requires* a validation pattern be present before the > substitution will take place (this had been optional). This can be done via > a layer metadata tag as before or within layer or web VALIDATION blocks. See > ticket #3522 for more information." > > Could this be it? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of adams > Sent: Wednesday, April 13, 2011 9:40 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] mapserver 6 beta5 and variable substitutions > > Dear list, > > I am just testing around with mapserver 6 beta5 and wonder, if there is > an issue with the variable substitutuions. > > Great work so far !! Thanks guys! > > ... and now my problem ;-): > We set a filter on events due to time and level in the client and send > the parameters via url as variable substitutions to the DATA -request on > postgis in the mapfile: > > > > > CONNECTION 'user=.... > DATA "geom from (select * from table WHERE level IN (%LEVEL%) AND (date > BETWEEN '%TIME_START%' AND '%TIME_END%' OR ....))) as foo using unique > id using SRID=..." > .... > > > > > Calling this via WMS getMap-Request: > > http:// ... > /mapserv6?map=maps.map&LAYERS=earthquake&...&LEVEL=1,2,3&TIME_START=2011-03-10&TIME_END=2011-03-24&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&.... > > Works fine for mapserver 5.6, but fails on mapserver6 (yes, I tried > without variable substitution and all works fine after reading: > http://mapserver.org/trunk/MIGRATION_GUIDE.html - thanks for that!) > > This is the xml error I get: > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'earthquake'. > msPostGISLayerWhichShapes(): Query error. Error (ERROR: syntax error at > or near "%" > LINE 1: ...WHERE head_category_id = 34 AND level IN (%LEVE... > ^ > ) executing query: select > "level",encode(ST_AsBinary(ST_Force_2D("head_geo"),'NDR'),'hex') > as geom,"id" from (select * from app_head_event WHERE > head_category_id = 34 AND level IN (%LEVEL%) AND (head_time_start::date > BETWEEN '%TIME_START%' AND '%TIME_END%' OR > head_time_end::date BETWEEN '%TIME_START%' AND > '%TIME_END%' OR (head_time_end::date > '%TIME_END%' > AND head_time_start::date < '%TIME_START%'))) as foo where > head_geo && GeomFromText('POLYGON((11401706.0926982 > 2783146.86697407,11401706.0926982 5613635.52927973,19986215.8245698 > 5613635.52927973,19986215.8245698 2783146.86697407,11401706.0926982 > 2783146.86697407))',900913) > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > [....] > > > > It seems that the var-subs are not passed to the query... or is there > something else I missed? > > I just found one issue on variable substitutions: > http://osgeo-org.1803224.n2.nabble.com/MapServer-6-0-0-beta4-release-td6225613.html > > But in my eyes this does not explain my problem. > > Thanks in advance! > > Till > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- --------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From steve.lime at state.mn.us Wed Apr 13 08:34:38 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 13 Apr 2011 10:34:38 -0500 Subject: [mapserver-users] mapserver 6 beta5 and variable substitutions In-Reply-To: <4DA5BC8D.1060209@terrestris.de> References: <4DA5B5B2.9070208@terrestris.de> <4DA5BC8D.1060209@terrestris.de> Message-ID: The web metadata checking had a bug, I've fixed for the next beta. Anyway, ideally I'd like abandon the metadata approach and stick these in the VALIDATION block. That's supported in 6.0, at least for the validation patterns. The defaults still live in layer metadata. 6.0 looks for patterns like so: 1) layer validation block (e.g. 'level' 'pattern') 2) layer metadata (e.g 'level_validation_pattern' 'pattern') 3) web metadata (e.g. 'level_validation_pattern' 'pattern') I suppose 1a) should be the web validation block shouldn't it, I just added that for beta 5. One thing to note is that you should avoid MapServer keywords for runtime tag names. Steve -----Original Message----- From: adams [mailto:adams at terrestris.de] Sent: Wednesday, April 13, 2011 10:09 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapserver 6 beta5 and variable substitutions Steve, :-[ oh, sorry, it seems that my eyes have become bad ... OK, I tried this: 'LEVEL_validation_pattern' '1|1,2|1,2,3|1,2,3,4|1,2,3,4,5' 'TIME_START_validation_pattern' '20$|^20' 'TIME_END_validation_pattern' '20$|^20' 'default_LEVEL' '1,2,3,4,5' 'default_TIME_START' '2011-04-01' 'default_TIME_END' '2011-04-30' In the Maps web-metadata and/or layer-metadata tags, it works fine in the layer-metadata but not for the maps metadata. If I understood your discussion on ticket #3522, there were plans to enable to put this into the maps-metadata tag as well? Thanks so far! Regards, Till Lime, Steve D (DNR) wrote: > Hi Till: From the migration guide... > > "Runtime subsitution now *requires* a validation pattern be present before the > substitution will take place (this had been optional). This can be done via > a layer metadata tag as before or within layer or web VALIDATION blocks. See > ticket #3522 for more information." > > Could this be it? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of adams > Sent: Wednesday, April 13, 2011 9:40 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] mapserver 6 beta5 and variable substitutions > > Dear list, > > I am just testing around with mapserver 6 beta5 and wonder, if there is > an issue with the variable substitutuions. > > Great work so far !! Thanks guys! > > ... and now my problem ;-): > We set a filter on events due to time and level in the client and send > the parameters via url as variable substitutions to the DATA -request on > postgis in the mapfile: > > > > > CONNECTION 'user=.... > DATA "geom from (select * from table WHERE level IN (%LEVEL%) AND (date > BETWEEN '%TIME_START%' AND '%TIME_END%' OR ....))) as foo using unique > id using SRID=..." > .... > > > > > Calling this via WMS getMap-Request: > > http:// ... > /mapserv6?map=maps.map&LAYERS=earthquake&...&LEVEL=1,2,3&TIME_START=2011-03-10&TIME_END=2011-03-24&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&.... > > Works fine for mapserver 5.6, but fails on mapserver6 (yes, I tried > without variable substitution and all works fine after reading: > http://mapserver.org/trunk/MIGRATION_GUIDE.html - thanks for that!) > > This is the xml error I get: > > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'earthquake'. > msPostGISLayerWhichShapes(): Query error. Error (ERROR: syntax error at > or near "%" > LINE 1: ...WHERE head_category_id = 34 AND level IN (%LEVE... > ^ > ) executing query: select > "level",encode(ST_AsBinary(ST_Force_2D("head_geo"),'NDR'),'hex') > as geom,"id" from (select * from app_head_event WHERE > head_category_id = 34 AND level IN (%LEVEL%) AND (head_time_start::date > BETWEEN '%TIME_START%' AND '%TIME_END%' OR > head_time_end::date BETWEEN '%TIME_START%' AND > '%TIME_END%' OR (head_time_end::date > '%TIME_END%' > AND head_time_start::date < '%TIME_START%'))) as foo where > head_geo && GeomFromText('POLYGON((11401706.0926982 > 2783146.86697407,11401706.0926982 5613635.52927973,19986215.8245698 > 5613635.52927973,19986215.8245698 2783146.86697407,11401706.0926982 > 2783146.86697407))',900913) > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > [....] > > > > It seems that the var-subs are not passed to the query... or is there > something else I missed? > > I just found one issue on variable substitutions: > http://osgeo-org.1803224.n2.nabble.com/MapServer-6-0-0-beta4-release-td6225613.html > > But in my eyes this does not explain my problem. > > Thanks in advance! > > Till > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- --------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From steve.lime at state.mn.us Wed Apr 13 11:59:34 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 13 Apr 2011 13:59:34 -0500 Subject: [mapserver-users] RE: Problems with Query Template (Chameleon) In-Reply-To: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> References: <12E95C4AD68A754789F634B91B3FBE3F19B9BA@aasrv01.alignedassets> Message-ID: There?s nothing in the templates that would care about the data source be it shapefile or mapinfo tab file. If it were something like missing attributes you should get the template content back but without tags being processed. Can you take this outside of Chameleon to debug? You could issue a query against the MasterMap Area layer and see what happens. For example: http://yourserver/cgi-bin/mapserv.exe?/yourmapfile.map&qlayer=MasterMap+Area&qindex=1&mode=indexquery That should pull the first record from the MasterMap Area layer. Steve From: Andy Hird [mailto:andy.hird at aligned-assets.co.uk] Sent: Tuesday, April 12, 2011 4:28 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: Problems with Query Template (Chameleon) Steve Thanks for the reply. There are no errors being logged and as I say it works for files which are not MapInfo Tab files. For instance the following works fine. LAYER NAME "10K StreetView" STATUS ON TYPE RASTER MINSCALEDENOM 6000 #600 MAXSCALEDENOM 22499 #2999 TILEINDEX "C:\ms4w\apps\XXXX\data\10K.shp" TILEITEM "LOCATION" CLASS TEMPLATE "templates/XXXX.html" #TOLERANCE 6 TOLERANCEUNITS PIXELS END END I assume that this is because it?s a shp file which has a dbf file. This does not work: LAYER NAME "MasterMap Area" TYPE POLYGON MINSCALEDENOM 1 MAXSCALEDENOM 5999 STATUS ON CONNECTIONTYPE OGR CONNECTION "C:\ms4w\apps\XXXX\data\MM_Topo_Area.TAB" STYLEITEM "AUTO" CLASS TEMPLATE "templates/XXXX.html" #TOLERANCE 6 TOLERANCEUNITS PIXELS END # Class section HEADER "templates/XXXX_header.html" FOOTER "templates/XXXX_footer.html" END Its bugging me like crazy as I can?t figure it out, - the second part of my question was: ?However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too.? If it?s easier for someone to advise on that it would be appreciated. Thanks Andy From: Lime, Steve D (DNR) [mailto:steve.lime at state.mn.us] Sent: 11 April 2011 22:49 To: Andy Hird; mapserver-users at lists.osgeo.org Subject: RE: Problems with Query Template (Chameleon) Not a Chameleon user so I may not be of much help. Any errors being logged? What does the template file look like? It?s possible that ms4w_2.3.1?s MapServer did not require a magic string be on the first line of the template. In new versions it is required. Basically the first line of a template must contain the string ?MapServer Template?. Typically you?d put that in a HTML comment, e.g.: ...template follows... That?s my first guess anyway. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Hird Sent: Friday, April 08, 2011 3:00 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problems with Query Template (Chameleon) Hi there - really need some help if you can please regarding Template Query feature, and I have googled to exhaustion :-/ Background: I have an existing Map file referencing MapInfo Tab files running under ms4w_2.3.1 & chameleon_ms4w-2.4.1 I have installed ms4w - V3.0.1 and chameleon V2.6.0 Copied my Map file across and made the necessary adjustments to get it working. However when using the Query Widget (info of layers at mouse click) against MapInfo Layers it is no longer returning results, and yet it did previously. My knowledge is not that great in php etc ? but I suspect that its requiring a dbf rather than MapInfo Tab as it does work with a shp, dbf set of files. Can Anyone help please as I really struggling ? ideally I just want to use the old widget. However If someone can provide example of placing a button on a html page that would call query functionality that would be very helpful too. Thanks in advance Andy ---------------------------------------------------------------------------- The information contained in or attached to this message is the responsibility of the sender and is meant for the confidential use of the intended recipients. It does not necessarily represent the position of Aligned Assets. If you are not an intended recipient you are notified that you have received this communication in error and that review, dissemination or copying of this communication is prohibited. If you have received this in error, please notify us. Aligned Assets Limited Unit 5 River Court Albert Drive Sheerwater Woking GU21 5RP Company Registration No: 4610724 ---------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Apr 13 16:12:41 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 13 Apr 2011 19:12:41 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta6 release Message-ID: <4DA62DE9.5070504@mapgears.com> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta6. This is the latest beta on our way to a final 6.0 release. Once again this beta contains several important fixes and we encourage you to test it and continue to provide feedback. The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). If all goes well, the plan is to have a final 6.0 release around the end of April. The full release plan which also includes the list of new features and changes in this release is available at: http://mapserver.org/trunk/development/release/release-plan-6.0.html The list of fixes since beta1 is attached at the end of this message. For a complete list see the HISTORY.TXT file at: http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta6/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. It is not complete yet but we strongly recommend that you review the latest version online at: http://mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-beta6.tar.gz The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team Version 6.0.0-beta6 (2011-04-13) -------------------------------- - SLD: use pixmap size when parameter size is not specified (#2305) - fix memory leaks in mapgraticule.c (#3831) - fix runtime sub validation against web metadata, was using wrong lookup key - clean up the symbolset if we've used an alternate renderer for a layer (#3834,#3616) - fix crash on embeded legend with cairo raster renderer - fix crashes in SVG renderer on polygon symbol fills (#3837) - fix crash/corruptions with raster layers in pdf outputs (#3799) - fix memory leak in msFreeLabelCacheSlot (#3829) - use a circle brush for wide GD lines (#3835) - fix segmentation fault with transparent layers containing symbols (#3834) - fix memory leak on tiled vector polygons - fix segfault with marker symbols on short lines (#3823) - wms_getmap_formatlist causes first defined outputformat to be returned by getmap (#3826) - fix building of mapcluster.c when OGR support is disabled - fix some valgrind found memory leaks (offset symbols, and gd io contexts) - skip marker symbol with no defined SYMBOL (caused some memory leaks with uninitialized vector points) - fix crash in GD lines with floating point dash patterns (#3823) - Check renderer before using it when calculating label size (#3822) - allow palette file path to be relative to mapfile (#2115) - use supplied offset for brushed lines (#3825, #3792) - fix division by 0 error in bar charts for some ill-defined cases (#3218) - add GAP, POSITION and CAPS/JOINS to mapfile writer (#3797) - fix GEOMTRANSFORM rotation orientation for vector symbols (#3802) - GD Driver broken in FastCGI (#3813) - configure: look for libexslt.so under lib64 as well - Coding style and formatting fixes (#3819, #3820, #3821, and more) - More improvements to OpenGL error handling (#3791) - Added WMS GetFeatureInfo RADIUS=bbox vendor-specific option (#3561) From jmckenna at gatewaygeomatics.com Thu Apr 14 04:15:38 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 14 Apr 2011 08:15:38 -0300 Subject: [mapserver-users] REMINDER: Tomorrow is the deadline for abstracts for FOSS4G2011 ! In-Reply-To: <4DA62DE9.5070504@mapgears.com> References: <4DA62DE9.5070504@mapgears.com> Message-ID: <4DA6D75A.1090100@gatewaygeomatics.com> Tomorrow is the deadline to submit a presentation abstract for FOSS4G2011 in Denver: http://2011.foss4g.org/abstracts/ Come on everyone, we need lots of MapServer presentations, to show everyone how great our software is, so take 10 minutes today and submit a paragraph! Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From gcpp.kalxas at gmail.com Thu Apr 14 04:21:38 2011 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Thu, 14 Apr 2011 14:21:38 +0300 Subject: [mapserver-users] MapServer 6.0.0-beta6 release In-Reply-To: <4DA62DE9.5070504@mapgears.com> References: <4DA62DE9.5070504@mapgears.com> Message-ID: <4DA6D8C2.8050906@gmail.com> Hi all, Packages for openSUSE are now updated to beta 6 http://download.opensuse.org/repositories/home:/tzotsos/ Regards, Angelos On 04/14/2011 02:12 AM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta6. This is the latest beta on our way to a final 6.0 > release. Once again this beta contains several important fixes and we > encourage you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in > your respective environments and provide feedback (through the users > list or Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the > end of April. The full release plan which also includes the list of > new features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta6/mapserver/HISTORY.TXT > > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other > changes required when upgrading to 6.0. It is not complete yet but we > strongly recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta6.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so > please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta6 (2011-04-13) > -------------------------------- > > - SLD: use pixmap size when parameter size is not specified (#2305) > > - fix memory leaks in mapgraticule.c (#3831) > > - fix runtime sub validation against web metadata, was using wrong > lookup key > > - clean up the symbolset if we've used an alternate renderer for a > layer (#3834,#3616) > > - fix crash on embeded legend with cairo raster renderer > > - fix crashes in SVG renderer on polygon symbol fills (#3837) > > - fix crash/corruptions with raster layers in pdf outputs (#3799) > > - fix memory leak in msFreeLabelCacheSlot (#3829) > > - use a circle brush for wide GD lines (#3835) > > - fix segmentation fault with transparent layers containing symbols > (#3834) > > - fix memory leak on tiled vector polygons > > - fix segfault with marker symbols on short lines (#3823) > > - wms_getmap_formatlist causes first defined outputformat to be > returned by > getmap (#3826) > > - fix building of mapcluster.c when OGR support is disabled > > - fix some valgrind found memory leaks (offset symbols, and gd io > contexts) > > - skip marker symbol with no defined SYMBOL (caused some memory leaks > with > uninitialized vector points) > > - fix crash in GD lines with floating point dash patterns (#3823) > > - Check renderer before using it when calculating label size (#3822) > > - allow palette file path to be relative to mapfile (#2115) > > - use supplied offset for brushed lines (#3825, #3792) > > - fix division by 0 error in bar charts for some ill-defined cases > (#3218) > > - add GAP, POSITION and CAPS/JOINS to mapfile writer (#3797) > > - fix GEOMTRANSFORM rotation orientation for vector symbols (#3802) > > - GD Driver broken in FastCGI (#3813) > > - configure: look for libexslt.so under lib64 as well > > - Coding style and formatting fixes (#3819, #3820, #3821, and more) > > - More improvements to OpenGL error handling (#3791) > > - Added WMS GetFeatureInfo RADIUS=bbox vendor-specific option (#3561) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos From jmckenna at gatewaygeomatics.com Thu Apr 14 05:10:45 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 14 Apr 2011 09:10:45 -0300 Subject: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? In-Reply-To: References: <4DA49BEB.80009@pobox.com> Message-ID: <4DA6E445.3020006@gatewaygeomatics.com> Hello Jukka, If you create a test case I can do some testing (and if you can file it in the MS4W issue tracker that would be excellent). Also in the ticket please mention whether this works for you with MS4W 3.0.2 (MapServer 5.6.6), or if this issue applies to just the MapServer 6.0 beta packages (and which exact package did this issue first occur at for you, including beta5). Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-04-13 4:09 AM, Rahkonen Jukka wrote: > > >> -----Alkuper?inen viesti----- >> L?hett?j?: Frank Warmerdam [mailto:warmerdam at pobox.com] >> L?hetetty: 12. huhtikuuta 2011 21:38 >> Vastaanottaja: Rahkonen Jukka >> Aihe: Re: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? >> >> On 11-04-12 02:23 PM, Rahkonen Jukka wrote: >>> Hi, >>> Some more information found from the Apache error log: >>> >>> [Tue Apr 12 17:19:05 2011] [error] [client xxx.xx.xx.xx] >> Wrong JPEG library >>> version: library is 62, caller expects 80\r >>> >>> Can anybody guess where this wrong JPEG library is hiding? >> I am running Windows >>> 2003 server with MS4W 3.0.1, updated into MS 6.0 beta4. >> >> Jukka, >> >> I would suggest looking in \windows\system32 for any jpeg >> DLLs. It may be >> that one is overriding the one distributed with MS4W. > > Hi, > > MS4W does not come with jpeg dll as far as I understand. Nor do I have such in my system disk in any directory. I checked it with running > > dir /s *jpeg*.dll > > I do have jpeg.dlls in other places like Java \bin directory. In addition I have jpeg_osgeo.DLLs in various places, but not within the MS4W tree. Renaming everything that looks like jpeg dll did not change anything, the error is still "library is 62, caller expects 80" > > Perhaps this is more MS4W problem? > From vsaraf.gmu at gmail.com Thu Apr 14 06:38:25 2011 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Thu, 14 Apr 2011 19:08:25 +0530 Subject: VS: [mapserver-users] Mapserver search performance In-Reply-To: References: Message-ID: Hi, I tried the shptree tool but did not see any performance improvement. It fetched results about 4-5 seconds faster. Without QIX files, it was 5 minutes and with QIX files, it took about 4 minutes and 56 seconds. All of my requests are based on the "MAPSHAPE" parameter in NQUERY mode. I noticed that mapserver was taking about 1 second for outputting the information in the template file for each feature. Could it be because all of this information that I require is coming from an external DBF file that I join to the layer/shape's DBF? Will including all these fields/information in the shape's DBF file itself help? Does mapserver pick up each feature and use a point in polygon approach to check if it lies in the provided shape? If yes, how can i make this process faster. Is there a way of making it multi-threaded or do more checks per second? I am providing sample code. Hope this helps. I have about 35 layers in my map file. Should I merge all these into a single layer? MAP FILE ======== LAYER NAME "L1" METADATA qstring_validation_pattern '.' END STATUS DEFAULT TYPE point DATA BLKS_01 TOLERANCE 0 TOLERANCEUNITS METERS CLASS STYLE OUTLINECOLOR 255 0 0 END END JOIN NAME "external" TABLE "data/externalData.dbf" FROM "Field1" TO "Field1" TYPE ONE-TO-ONE END TEMPLATE "blockTemplate.xml" END Template File ========== [GEOID],[Field1],[LON],[LAT],[external_ID],[external_NAME],[external_STA],[external_NEEDSCORE],[external_MINSCORE]; Request ======= http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/GIS/centroides.map&mode=nquery&mapshape=-99.757833 32.474433 -99.758005 32.450679 -99.726591 32.447637 -99.727621 32.474723 Any help in this regard is greatly appreciated. Let me know if you need any more information. Thanks, Varun On Mon, Apr 11, 2011 at 3:06 PM, Varun saraf wrote: > Thanks a lot for the quick reply. I will give it a try. > > On Mon, Apr 11, 2011 at 1:50 PM, Rahkonen Jukka > wrote: >> Hi, >> >> Shptree will help and stopwatch will tell you how much. Without spatial >> index Mapserver needs to go through the whole shapefile every time. Have >> a try, it will not take very many seconds to run shptree. Make different >> requests, take times with and without .qix files and you will some >> numbers. Change the requests and request order (query 1 with >> .qix/withour qix, query 2 without .qix/with .qix) so that you can see if >> you are actually testing the speed of disk access and memory cache >> access and not the effect of having spatial index. >> By adding DEBUG 5 for your layer you don't need stopwatch but you'll get >> timings into ms_errorfile. >> >> >> -Jukka Rahkonen- >> >> Varun saraf wrote: >> >>> >>> Hello Everyone, >>> >>> I have programmed a GIS application using Mapserver, Google maps and >>> Tilecache. The functionality of this GIS application is to extract the >>> data (from the dbf file) for all features (Points) within a randomly >>> drawn user shape and doing some statistical operation on that data. I >>> use an NQUERY mode with MAPSHAPE attribute to get all the data for the >>> user drawn shape. Mapserver takes aout 5-10 seconds for a small shape >>> (a couple of square miles) but as the shape gets bigger (hundreds of >>> square miles), the time taken to fetch all data related to the >>> features/points lying in the shape grows exponentially (Upto 2 hours >>> for some shapes). Until now, we were restricting the maximum area a >>> shape can have but we have to get rid of that. Is there a way to >>> improve the performance in any way? Will SHPTREE work for this >>> purpose? The features are currently points only but we may move to >>> polygons in future. We use the .shp files for the shapes. Is it >>> advantageous to move to a database instead? If yes, what database >>> works best? >>> >>> What I did notice is that for any given request to mapserver, however >>> large the shape, the CPU utilization never crosses 12%. Can we improve >>> performance by increasing the RAM or maybe move to a solid state hard >>> drive? There is also the possibility of moving this application to >>> Cloud computing. Anything that will improve the performance actually. >>> Can someone point me in the right direction as to what might be the >>> current bottleneck? >>> >>> T current setup is on windows and uses MS4W on an Apache server. >>> >>> Thanks, >>> Varun >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > From yassefa at dmsolutions.ca Thu Apr 14 07:20:14 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 14 Apr 2011 10:20:14 -0400 Subject: [mapserver-users] MapServer 6: ESRI Grid display with KMZ output In-Reply-To: References: <4DA30363.40201@dmsolutions.ca> <4DA4B997.9030005@dmsolutions.ca> Message-ID: <4DA7029E.70900@dmsolutions.ca> On 14/04/2011 4:13 AM, C?cile Alfred wrote: > Yes it is. > Thank you very much. There is just a problem with the latlongbox. It > seems to use the WIDTH HEIGHT oh the request. > This should be fixed now in svn. Bug related to that issue is at http://trac.osgeo.org/mapserver/ticket/3840 best regards, > C?cile > > 2011/4/12 Yewondwossen Assefa > > > You should comment out CLASSITEM "[pixel]". There is no need to > add that line from what I can see and in this case seems to make a > difference. > Let me know. > > Assefa > > > > On 11/04/2011 10:35 AM, C?cile Alfred wrote: >> Hi, >> >> there is here the mapfile (test.map), an ESRI ascii grid, a >> geotiff and requests png and kmz (requests.txt). >> Thank you >> C?cile >> >> >> 2011/4/11 Yewondwossen Assefa > > >> >> Hi, >> >> If you are willing to share a sample map file + this >> particular format file, I can look into the kmz output issue. >> If that is the case, wither send me the sample or open a trac >> bug and attche the data. Please assign the bug to me (assefa). >> >> Assefa >> >> >> On 08/04/2011 8:09 AM, C?cile Alfred wrote: >>> Hi, >>> >>> I try to use Mapserver 6 beta 5 to generate kmz output with >>> several type of input data (geotiff, shape and esri ascii grid): >>> It is OK with geotiff and shape but there is no result with >>> grd (empty image in temp). >>> If I try to generate png output it's OK for all. >>> >>> Thank you for help >>> Kelly >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> -- >> ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email:yassefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 (ext 14) >> Fax: (613) 565-0925 >> ---------------------------------------------------------------- >> >> >> > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email:yassefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Thu Apr 14 08:02:00 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 14 Apr 2011 11:02:00 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta6 release In-Reply-To: <4DA62DE9.5070504@mapgears.com> References: <4DA62DE9.5070504@mapgears.com> Message-ID: <201104141102.00917.aboudreault@mapgears.com> UbuntuGIS MapServer packages have been updated for the beta6 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On April 13, 2011 07:12:41 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta6. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, the plan is to have a final 6.0 release around the end > of April. The full release plan which also includes the list of new > features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since beta1 is attached at the end of this message. > For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta6/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta6.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta6 (2011-04-13) > -------------------------------- > > - SLD: use pixmap size when parameter size is not specified (#2305) > > - fix memory leaks in mapgraticule.c (#3831) > > - fix runtime sub validation against web metadata, was using wrong > lookup key > > - clean up the symbolset if we've used an alternate renderer for a > layer (#3834,#3616) > > - fix crash on embeded legend with cairo raster renderer > > - fix crashes in SVG renderer on polygon symbol fills (#3837) > > - fix crash/corruptions with raster layers in pdf outputs (#3799) > > - fix memory leak in msFreeLabelCacheSlot (#3829) > > - use a circle brush for wide GD lines (#3835) > > - fix segmentation fault with transparent layers containing symbols (#3834) > > - fix memory leak on tiled vector polygons > > - fix segfault with marker symbols on short lines (#3823) > > - wms_getmap_formatlist causes first defined outputformat to be returned by > getmap (#3826) > > - fix building of mapcluster.c when OGR support is disabled > > - fix some valgrind found memory leaks (offset symbols, and gd io contexts) > > - skip marker symbol with no defined SYMBOL (caused some memory leaks with > uninitialized vector points) > > - fix crash in GD lines with floating point dash patterns (#3823) > > - Check renderer before using it when calculating label size (#3822) > > - allow palette file path to be relative to mapfile (#2115) > > - use supplied offset for brushed lines (#3825, #3792) > > - fix division by 0 error in bar charts for some ill-defined cases (#3218) > > - add GAP, POSITION and CAPS/JOINS to mapfile writer (#3797) > > - fix GEOMTRANSFORM rotation orientation for vector symbols (#3802) > > - GD Driver broken in FastCGI (#3813) > > - configure: look for libexslt.so under lib64 as well > > - Coding style and formatting fixes (#3819, #3820, #3821, and more) > > - More improvements to OpenGL error handling (#3791) > > - Added WMS GetFeatureInfo RADIUS=bbox vendor-specific option (#3561) > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From snaperski at gmail.com Thu Apr 14 08:02:08 2011 From: snaperski at gmail.com (Raivo Alla) Date: Thu, 14 Apr 2011 18:02:08 +0300 Subject: [mapserver-users] label placement problem In-Reply-To: References: Message-ID: Hey, is it possible that the reason why this feature is not implemented in Mapserver is cause it demands too much computation resource and Mapserver assumes that those kind of issues will be dealt before... modifying data structure maybe? Deleting all the duplicate address points for each building complex and leaving only one (I do not prefer that)? Cause for me it seems quite a common problem one should face in case he needs to display building numbers. Since there could be many buildings closely together at the crossings of the streets, I seek some way to display them decently - ie. showing label ("2") for buildings that are located at the street "M?ndi" and other label "2" for buildings at the street "Saiakangi" so that Mapserver does not "see" the labels being identical. Still full of hope, Raivo On Wed, Apr 13, 2011 at 1:33 PM, Raivo Alla wrote: > Thank You ! > > The situation is illustrated here: > https://picasaweb.google.com/105062450878416453583/Ort#5595010970050628162 > I got three different streets that have same label "2", and I would like to > display the labels so that for the same street address points > I could use declaration like MINDISTANCE 40, but if the same label "2" > appears on the address point that belongs to other street, then > it will not use MINDISTANCE and should display that label. > > I have shapefile, whre one attribute "REFERENCEPOINT" holds the same > numerical value for the same address points (ie those > points which have label "2" on the screenshot and belong to the same street > have same "REFERENCEPOINT" value). Can I > somehow use it to render them differently? > > I hope I expressed myself correctly :) > > > With regards, > Raivo > > > On Tue, Apr 12, 2011 at 1:18 AM, Lime, Steve D (DNR) < > steve.lime at state.mn.us> wrote: > >> Can you share some pictures that illustrate the issue? >> >> >> >> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Raivo Alla >> *Sent:* Wednesday, April 06, 2011 6:34 AM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] label placement problem >> >> >> >> Hello! >> >> I am using MapServer 5.4 and right now I'm facing with label positioning >> problem. >> Any help solving that would really be appreciated. >> >> 1. I have lots of buildings address points... so for example if two nearby >> located buildings at the crossing of "Some_street" and "Some_other_street" >> have both same house numbers (for example "1") then the MINDISTANCE 30 >> declaration will cancel one label out. >> 2. I cannot remove MINDISTANCE neither since in many cases I have large >> building complexes where multiple buildings share same address label. >> And I want mapfile to declare some distance between those addresses that >> logically will mark the same address object. >> 3. In my buildings_addresses (points) file I do have attribute, which I >> could use to separate those two kinds of duplicate labels, >> but MapServer doent seem to support rendering them differently in a such >> way.... Or am I wrong? >> >> >> My LABEL definition: >> LABEL >> TYPE truetype >> ANTIALIAS true >> FONT "arial" >> COLOR 50 50 50 >> SIZE 9 >> priority 1 >> ANGLE [POORDENURK] >> MINDISTANCE 30 >> OUTLINECOLOR 220 220 220 >> POSITION cc >> BUFFER 2 >> END >> >> >> Hope that there will be some kind of solution here. >> >> >> Sincerely, >> Raivo Alla >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hannes.kickinger at gmail.com Thu Apr 14 08:05:33 2011 From: hannes.kickinger at gmail.com (Kickinger Johann) Date: Thu, 14 Apr 2011 17:05:33 +0200 Subject: [mapserver-users] SLD and Offset Message-ID: I have real time traffic data which has values for one link/line in both directions e.g. value 0 (green) in the digitalisation direction and value 3 (red) against the digitalisation direction. At the moment this is done with OFFSET x -99 and works well. I see the link two times with, if available, two different values CLASS NAME C_0_0 EXPRESSION (([value_los] = 0) && ([linkdirection] = 0)) STYLE COLOR 0 117 0 WIDTH 3 ANTIALIAS TRUE OFFSET 2 -99 END END CLASS NAME C_0_1 EXPRESSION (([value_los] = 0) && ([linkdirection] = 1)) STYLE COLOR 0 117 0 WIDTH 3 ANTIALIAS TRUE OFFSET -2 -99 Now I wanted to use SLD with UserStyle - the color and width is changeable, but I noticed that the OFFSET was overruled and so I dont see different values for separate directions. I found no parameter in the SLD for the Offset of a line. So my workaround is SLD with NamedStyle - I copied the Classes and the first are in group1 the last in group2. I switch in the one layer with the name of the group. So my question is - is it possible to use UserStyle SLD with the possibility to set a usefull offset or could the offset in the mapfile could be used even if nothing more is defined in the SLD. Thanks for your support/ideas. BR, Hannes -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Apr 14 08:21:05 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 14 Apr 2011 17:21:05 +0200 Subject: [mapserver-users] label placement problem In-Reply-To: References: Message-ID: Raivo, When using mindistance, we check to see if there are labels with the same text from the same layer that are closer than the specified threshold. Modifying that behavior would not be impossible to make them check for a third condition (i.e. same text, same layer, and same attribute), but is still rather involved in the sense that each label would also have to hold a reference to that attribute. You might want to file an enhancement ticket for that. -- thomas On Thu, Apr 14, 2011 at 17:02, Raivo Alla wrote: > Hey, > > is it possible that the reason why this feature is not implemented in > Mapserver is cause it demands too much computation resource and Mapserver > assumes that those kind of issues will be dealt before... modifying data > structure maybe? > Deleting all the duplicate address points for each building complex and > leaving only one (I do not prefer that)? > > Cause for me it seems quite a common problem one should face in case he > needs to display building numbers. > Since there could be many buildings closely together at the crossings of the > streets, I seek some way to display them decently - > ie. showing label ("2") for buildings that are located at the street "M?ndi" > and other label "2" for buildings at the street "Saiakangi" > so that Mapserver does not "see" the labels being identical. > > > Still full of hope, > Raivo > > On Wed, Apr 13, 2011 at 1:33 PM, Raivo Alla wrote: >> >> Thank You ! >> >> The situation is illustrated here: >> https://picasaweb.google.com/105062450878416453583/Ort#5595010970050628162 >> I got three different streets that have same label "2", and I would like >> to display the labels so that for the same street address points >> I could use declaration like MINDISTANCE 40, but if the same label "2" >> appears on the address point that belongs to other street, then >> it will not use MINDISTANCE and should display that label. >> >> I have shapefile, whre one attribute "REFERENCEPOINT" holds the same >> numerical value for the same address points (ie those >> points which have label "2" on the screenshot and belong to the same >> street have same "REFERENCEPOINT" value). Can I >> somehow use it to render them differently? >> >> I hope I expressed myself correctly :) >> >> >> With regards, >> Raivo >> >> On Tue, Apr 12, 2011 at 1:18 AM, Lime, Steve D (DNR) >> wrote: >>> >>> Can you share some pictures that illustrate the issue? >>> >>> >>> >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Raivo Alla >>> Sent: Wednesday, April 06, 2011 6:34 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] label placement problem >>> >>> >>> >>> Hello! >>> >>> I am using MapServer 5.4 and right now I'm facing with label positioning >>> problem. >>> Any help solving that would really be appreciated. >>> >>> 1. I have lots of buildings address points... so for example if two >>> nearby located buildings at the crossing of "Some_street" and >>> "Some_other_street" >>> have both same house numbers (for example "1") then the MINDISTANCE 30 >>> declaration will cancel one label out. >>> 2. I cannot remove MINDISTANCE neither since in many cases I have large >>> building complexes where multiple buildings share same address label. >>> And I want mapfile to declare some distance between those addresses that >>> logically will mark the same address object. >>> 3. In my buildings_addresses (points) file I do have attribute, which I >>> could use to separate those two kinds of duplicate labels, >>> but MapServer doent seem to support rendering them differently in a such >>> way.... Or am I wrong? >>> >>> >>> My LABEL definition: >>> ??? ??? ??? LABEL >>> ??? ??? ??? ??? TYPE truetype >>> ??? ??? ??? ??? ANTIALIAS true >>> ??? ??? ??? ??? FONT "arial" >>> ??? ??? ??? ??? COLOR 50 50 50 >>> ??? ??? ??? ??? SIZE 9 >>> ??? ??? ??? ??? priority 1 >>> ??? ??? ??? ??? ANGLE [POORDENURK] >>> ??? ??? ??? ??? MINDISTANCE 30 >>> ??? ??? ??? ??? OUTLINECOLOR 220 220 220 >>> ??? ??? ??? ??? POSITION cc >>> ??? ??? ??? ??? BUFFER 2 >>> ??? ??? ??? END >>> >>> >>> Hope that there will be some kind of solution here. >>> >>> >>> Sincerely, >>> Raivo Alla > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From david.fawcett at state.mn.us Thu Apr 14 08:35:40 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 14 Apr 2011 10:35:40 -0500 Subject: [mapserver-users] MapServer 6.0.0-beta6 release In-Reply-To: <201104141102.00917.aboudreault@mapgears.com> References: <4DA62DE9.5070504@mapgears.com> <201104141102.00917.aboudreault@mapgears.com> Message-ID: Thanks to all who are providing Linux MapServer packages. It is really cool to see packages for stable releases and pretty amazing to see the release candidates. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alan Boudreault Sent: Thursday, April 14, 2011 10:02 AM To: mapserver-users at lists.osgeo.org Cc: ubuntu at lists.osgeo.org; Daniel Morissette Subject: Re: [mapserver-users] MapServer 6.0.0-beta6 release UbuntuGIS MapServer packages have been updated for the beta6 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan From yassefa at dmsolutions.ca Thu Apr 14 08:51:19 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 14 Apr 2011 11:51:19 -0400 Subject: [mapserver-users] SLD and Offset In-Reply-To: References: Message-ID: <4DA717F7.1080600@dmsolutions.ca> Maybe using the PerpendicularOffset of the stroke element would work in your case (only availble in sld1.1)? Quick example can be found at http://www3.dmsolutions.ca/tmp/sld_line_simple_1.1.0_offset.xml best regards, On 14/04/2011 11:05 AM, Kickinger Johann wrote: > I have real time traffic data which has values for one link/line in > both directions e.g. value 0 (green) in the digitalisation direction > and value 3 (red) against the digitalisation direction. > At the moment this is done with OFFSET x -99 and works well. I see the > link two times with, if available, two different values > > CLASS > NAME C_0_0 > EXPRESSION (([value_los] = 0) && ([linkdirection] = 0)) > STYLE > COLOR 0 117 0 > WIDTH 3 > ANTIALIAS TRUE > OFFSET 2 -99 > END > END > CLASS > NAME C_0_1 > EXPRESSION (([value_los] = 0) && ([linkdirection] = 1)) > STYLE > COLOR 0 117 0 > WIDTH 3 > ANTIALIAS TRUE > OFFSET -2 -99 > > > Now I wanted to use SLD with UserStyle - the color and width is > changeable, but I noticed that the OFFSET was overruled and so I dont > see different values for separate directions. I found no parameter in > the SLD for the Offset of a line. > So my workaround is SLD with NamedStyle - I copied the Classes and the > first are in group1 the last in group2. I switch in the one layer with > the name of the group. > So my question is - is it possible to use UserStyle SLD with the > possibility to set a usefull offset or could the offset in the mapfile > could be used even if nothing more is defined in the SLD. > Thanks for your support/ideas. > BR, > Hannes > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Apr 14 09:50:52 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 14 Apr 2011 11:50:52 -0500 Subject: [mapserver-users] label placement problem In-Reply-To: References: Message-ID: The mindistance check actually compares classindex, label text and, of course, distance. Same layer is not checked, that seems to me like a bug. As it sits its possible then that labels in two different layers would be considered duplicates if they have the same classindex and text. I could see where that could happen and lead to weird results. I'd propose patching MapServer 6.0 to explicitly compare layer indexes. I'm not sure if that impacts this particular problem or not. If someone wanted to test I can point you to the right spot in the code... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas bonfort Sent: Thursday, April 14, 2011 10:21 AM To: Raivo Alla Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] label placement problem Raivo, When using mindistance, we check to see if there are labels with the same text from the same layer that are closer than the specified threshold. Modifying that behavior would not be impossible to make them check for a third condition (i.e. same text, same layer, and same attribute), but is still rather involved in the sense that each label would also have to hold a reference to that attribute. You might want to file an enhancement ticket for that. -- thomas On Thu, Apr 14, 2011 at 17:02, Raivo Alla wrote: > Hey, > > is it possible that the reason why this feature is not implemented in > Mapserver is cause it demands too much computation resource and Mapserver > assumes that those kind of issues will be dealt before... modifying data > structure maybe? > Deleting all the duplicate address points for each building complex and > leaving only one (I do not prefer that)? > > Cause for me it seems quite a common problem one should face in case he > needs to display building numbers. > Since there could be many buildings closely together at the crossings of the > streets, I seek some way to display them decently - > ie. showing label ("2") for buildings that are located at the street "M?ndi" > and other label "2" for buildings at the street "Saiakangi" > so that Mapserver does not "see" the labels being identical. > > > Still full of hope, > Raivo > > On Wed, Apr 13, 2011 at 1:33 PM, Raivo Alla wrote: >> >> Thank You ! >> >> The situation is illustrated here: >> https://picasaweb.google.com/105062450878416453583/Ort#5595010970050628162 >> I got three different streets that have same label "2", and I would like >> to display the labels so that for the same street address points >> I could use declaration like MINDISTANCE 40, but if the same label "2" >> appears on the address point that belongs to other street, then >> it will not use MINDISTANCE and should display that label. >> >> I have shapefile, whre one attribute "REFERENCEPOINT" holds the same >> numerical value for the same address points (ie those >> points which have label "2" on the screenshot and belong to the same >> street have same "REFERENCEPOINT" value). Can I >> somehow use it to render them differently? >> >> I hope I expressed myself correctly :) >> >> >> With regards, >> Raivo >> >> On Tue, Apr 12, 2011 at 1:18 AM, Lime, Steve D (DNR) >> wrote: >>> >>> Can you share some pictures that illustrate the issue? >>> >>> >>> >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Raivo Alla >>> Sent: Wednesday, April 06, 2011 6:34 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] label placement problem >>> >>> >>> >>> Hello! >>> >>> I am using MapServer 5.4 and right now I'm facing with label positioning >>> problem. >>> Any help solving that would really be appreciated. >>> >>> 1. I have lots of buildings address points... so for example if two >>> nearby located buildings at the crossing of "Some_street" and >>> "Some_other_street" >>> have both same house numbers (for example "1") then the MINDISTANCE 30 >>> declaration will cancel one label out. >>> 2. I cannot remove MINDISTANCE neither since in many cases I have large >>> building complexes where multiple buildings share same address label. >>> And I want mapfile to declare some distance between those addresses that >>> logically will mark the same address object. >>> 3. In my buildings_addresses (points) file I do have attribute, which I >>> could use to separate those two kinds of duplicate labels, >>> but MapServer doent seem to support rendering them differently in a such >>> way.... Or am I wrong? >>> >>> >>> My LABEL definition: >>> ??? ??? ??? LABEL >>> ??? ??? ??? ??? TYPE truetype >>> ??? ??? ??? ??? ANTIALIAS true >>> ??? ??? ??? ??? FONT "arial" >>> ??? ??? ??? ??? COLOR 50 50 50 >>> ??? ??? ??? ??? SIZE 9 >>> ??? ??? ??? ??? priority 1 >>> ??? ??? ??? ??? ANGLE [POORDENURK] >>> ??? ??? ??? ??? MINDISTANCE 30 >>> ??? ??? ??? ??? OUTLINECOLOR 220 220 220 >>> ??? ??? ??? ??? POSITION cc >>> ??? ??? ??? ??? BUFFER 2 >>> ??? ??? ??? END >>> >>> >>> Hope that there will be some kind of solution here. >>> >>> >>> Sincerely, >>> Raivo Alla > > > _______________________________________________ > 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 joanne.mcgraw at SYMPATICO.CA Thu Apr 14 10:42:22 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 14 Apr 2011 10:42:22 -0700 (PDT) Subject: [mapserver-users] msProcessProjection(): Projection library error. no options in 'init' file Message-ID: <1302802942648-6273726.post@n2.nabble.com> We are trying to deploy a WMS to production that we have working in a development environment. When I try to do a getCapabilities request in the prod environment, I get the message provided in the subject above. I looked at the documentation for this error message at http://mapserver.org/errors.html. It tells me: "The message tells you that the projection you?re trying to use isn?t defined in the epsg file. Open your epsg file in a text editor and search for your projection to make sure that it exists." I have checked the epsg file in the prodution environment and the projection I am asking for is included. Further, I have run a file comparison on the epsg file in dev and the one in prod and they are the same. Does anyone know of other reasons MapServer could be unable to find the projection definition? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msProcessProjection-Projection-library-error-no-options-in-init-file-tp6273726p6273726.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Thu Apr 14 10:55:55 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 14 Apr 2011 10:55:55 -0700 (PDT) Subject: [mapserver-users] Re: msProcessProjection(): Projection library error. no options in 'init' file In-Reply-To: <1302802942648-6273726.post@n2.nabble.com> References: <1302802942648-6273726.post@n2.nabble.com> Message-ID: <1302803755633-6273806.post@n2.nabble.com> I tried putting: CONFIG PROJ_LIB "/usr/share/proj/" into the map file on production and it is now working. So, the problem is that the MapServer in production is not looking where I expect it to for the epsg file. Is there a configuration thing I need to do? What dictates where MapServer looks for that file by default? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msProcessProjection-Projection-library-error-no-options-in-init-file-tp6273726p6273806.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu Apr 14 11:03:05 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 14 Apr 2011 15:03:05 -0300 Subject: [mapserver-users] msProcessProjection(): Projection library error. no options in 'init' file In-Reply-To: <1302802942648-6273726.post@n2.nabble.com> References: <1302802942648-6273726.post@n2.nabble.com> Message-ID: <4DA736D9.3030400@gatewaygeomatics.com> On 11-04-14 2:42 PM, myOpenLayersUName wrote: > We are trying to deploy a WMS to production that we have working in a > development environment. When I try to do a getCapabilities request in the > prod environment, I get the message provided in the subject above. > > I looked at the documentation for this error message at > http://mapserver.org/errors.html. It tells me: > "The message tells you that the projection you?re trying to use isn?t > defined in the epsg file. Open your epsg file in a text editor and search > for your projection to make sure that it exists." > > I have checked the epsg file in the prodution environment and the projection > I am asking for is included. Further, I have run a file comparison on the > epsg file in dev and the one in prod and they are the same. > > Does anyone know of other reasons MapServer could be unable to find the > projection definition? I hit that often when moving from a dev-Windows machine to a client's production-Unix machine. It could be a case issue in your mapfile ("init=epsg:3978" versus the incorrect "init=EPSG:3978"), which is documented in the "Important Notes" section of http://www.mapserver.org/mapfile/projection.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From joanne.mcgraw at SYMPATICO.CA Thu Apr 14 11:20:43 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 14 Apr 2011 11:20:43 -0700 (PDT) Subject: [mapserver-users] Re: msProcessProjection(): Projection library error. no options in 'init' file In-Reply-To: <4DA736D9.3030400@gatewaygeomatics.com> References: <1302802942648-6273726.post@n2.nabble.com> <4DA736D9.3030400@gatewaygeomatics.com> Message-ID: <1302805243424-6273896.post@n2.nabble.com> Thanks for your response Jeff. I'm guessing you responded before you received my followup post regarding the location of the epsg file. However, to address the concern, I did check and the MAP's projection is defined with lowercase epsg and the "wms_srs" list is uppercase EPSG following the example found at: http://mapserver.org/ogc/wms_server.html discussing Map PROJECTION and wms_srs metadata. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msProcessProjection-Projection-library-error-no-options-in-init-file-tp6273726p6273896.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu Apr 14 11:34:54 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 14 Apr 2011 15:34:54 -0300 Subject: [mapserver-users] Re: msProcessProjection(): Projection library error. no options in 'init' file In-Reply-To: <1302805243424-6273896.post@n2.nabble.com> References: <1302802942648-6273726.post@n2.nabble.com> <4DA736D9.3030400@gatewaygeomatics.com> <1302805243424-6273896.post@n2.nabble.com> Message-ID: <4DA73E4E.7000607@gatewaygeomatics.com> On 11-04-14 3:20 PM, myOpenLayersUName wrote: > Thanks for your response Jeff. I'm guessing you responded before you received > my followup post regarding the location of the epsg file. > Correct, glad you solved it! Just as a side note, if you are an MS4W user on the windows platform, you might not have noticed that it contains the environment variable "PROJ_LIB" (which specifies the location of the epsg file) set in Apache's httpd.conf. In any case that may be the answer to one of your earlier questions. Happy MapServ-ing! :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Weisbend at wapa.gov Thu Apr 14 11:26:02 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Thu, 14 Apr 2011 12:26:02 -0600 Subject: [mapserver-users] query question Message-ID: <4DA6E7DA020000DF000745D0@10.1.50.131> How can I tell MapServer the specific layer I want it to query? e.g. set the query layer with a radio button. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Thu Apr 14 12:24:57 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 14 Apr 2011 12:24:57 -0700 (PDT) Subject: [mapserver-users] Re: msProcessProjection(): Projection library error. no options in 'init' file In-Reply-To: <4DA73E4E.7000607@gatewaygeomatics.com> References: <1302802942648-6273726.post@n2.nabble.com> <4DA736D9.3030400@gatewaygeomatics.com> <1302805243424-6273896.post@n2.nabble.com> <4DA73E4E.7000607@gatewaygeomatics.com> Message-ID: <1302809097302-6274097.post@n2.nabble.com> No, no, no! I didn't solve it. I found out more specifically what the problem is and have got a work around but I have not solved the problem as far as I am concerned. I have an epsg file in a proj directory on the MapServer host. As far as I was concerned, MapServer is using that file to indicate which epsg projections are supported. However, MapServer is obviously not looking at that file because the projection in question definitely exists in it and when I specifically point to the file's location within the Map file itself (using the CONFIG PROJ_LIB directive), and thereby overriding where ever it is MapServer is looking by default, everything works. I need to know how to ensure the configuration of MapServer is properly looking at the location I expect it to. At http://mapserver.org/installation/unix.html, I see a "--with-proj=/usr/local" compile option. What happens if someone didn't include that when they compiled? Or, if that's not even possible, is there any way to find out from the MapServer executable itself where it is looking for the epsg file? And, further, if it is looking somewhere and doesn't find one at all, does it use some kind of default list? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msProcessProjection-Projection-library-error-no-options-in-init-file-tp6273726p6274097.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Thu Apr 14 12:35:55 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 14 Apr 2011 12:35:55 -0700 (PDT) Subject: [mapserver-users] Re: msProcessProjection(): Projection library error. no options in 'init' file In-Reply-To: <1302809097302-6274097.post@n2.nabble.com> References: <1302802942648-6273726.post@n2.nabble.com> <4DA736D9.3030400@gatewaygeomatics.com> <1302805243424-6273896.post@n2.nabble.com> <4DA73E4E.7000607@gatewaygeomatics.com> <1302809097302-6274097.post@n2.nabble.com> Message-ID: <1302809755002-6274126.post@n2.nabble.com> Ooops! Sorry! I just reacted to the "Correct, glad you solved it!" line. I'll look into the Apache configuration you suggested. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msProcessProjection-Projection-library-error-no-options-in-init-file-tp6273726p6274126.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu Apr 14 13:24:01 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 14 Apr 2011 17:24:01 -0300 Subject: [mapserver-users] MapServer 6.0.0-beta6 release In-Reply-To: <4DA62DE9.5070504@mapgears.com> References: <4DA62DE9.5070504@mapgears.com> Message-ID: <4DA757E1.7070706@gatewaygeomatics.com> Windows users can find the 6.0-beta6 upgrade package for MapServer for Windows at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From szekerest at gmail.com Thu Apr 14 13:37:26 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 14 Apr 2011 22:37:26 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: Johan, It is indeed not enabled by default and this flag hasn't been added to nmake.opt (this may be reported as a ticket which should be fixed). If you are using the build SDKs I've just added this flag to the builds (will be available in the next build tomorrow). If you prefer to compile this by using the SDK packages just replace the row: *echo CURL=-DUSE_CURL >> $(OUTPUT_DIR)\mapserver.opt *with *echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt* in the Makefile. I hope that will help. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Apr 14 13:53:34 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 14 Apr 2011 15:53:34 -0500 Subject: [mapserver-users] query question In-Reply-To: <4DA6E7DA020000DF000745D0@10.1.50.131> References: <4DA6E7DA020000DF000745D0@10.1.50.131> Message-ID: Set the qlayer CGI parameter. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Weisbender Sent: Thursday, April 14, 2011 1:26 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] query question How can I tell MapServer the specific layer I want it to query? e.g. set the query layer with a radio button. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Thu Apr 14 23:38:32 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 15 Apr 2011 08:38:32 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0-beta6 release Message-ID: <20110415063832.99A731678215@mail.r3-gis.com> Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com --------Daniel Morissette wrote-------- Subject: [mapserver-users] MapServer 6.0.0-beta6 release Date: 14.04.2011 01:22 >The MapServer Team is pleased to announce the release of MapServer >6.0.0-beta6. This is the latest beta on our way to a final 6.0 release. >Once again this beta contains several important fixes and we encourage >you to test it and continue to provide feedback. > >The 6.0 release introduces important changes in key components of the >MapServer core (rendering, query and expressions), and for this reason >we count on you, MapServer power users, to help test the release in your >respective environments and provide feedback (through the users list or >Trac tickets). > Packages for RHEL/CentOS/Scientific Linux 5 and as src.rpm: http://www.r3-gis.com/upload/mapserver-6.0.0beta6-1.0.el5.src.rpm http://www.r3-gis.com/upload/mapserver-6.0.0beta6-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/php-mapserver-6.0.0beta6-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-perl-6.0.0beta6-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-python-6.0.0beta6-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-java-6.0.0beta6-1.0.el5.x86_64.rpm http://www.r3-gis.com/upload/mapserver-debuginfo-6.0.0beta6-1.0.el5.x86_64.rpm These packages depend on http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS and on the php53* packages, in CentOS 5.6. beta5 packages were removed. (...) Peter R3 GIS Srl - GmbH http://www.r3-gis.com From szekerest at gmail.com Thu Apr 14 13:35:01 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 14 Apr 2011 22:35:01 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: Johan, It is indeed not enabled by default and this flag hasn't been added to nmake.opt (this may be reported as a ticket which should be fixed). If you are using the build SDKs I've just added this flag to the builds (will be available in the next build tomorrow). If you prefer to compile this by using the SDK packages just replace the row: *echo CURL=-DUSE_CURL >> $(OUTPUT_DIR)\mapserver.opt *with *echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt* in the Makefile. I hope that will help. Best regards, Tamas 2011/4/13 Hallgren Johan > Hello > > > > I have a strange problem? > > > > I should use MapServer with Mapscript to call a WMS server as a client. > > > > I created a LAYER definition and after some struggle it went thru, I get my > map. I used the *shp2img* command to test the mapfile. Next step was to > test the mapfile with *drawmap* so the mapscript implementation was tested > and now an error showed up. > > ?CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7? > > > > I expected that this error should show up already in the shp2img-test, but > there it worked fine. > > > > Anyone having a clue what?s wrong? > > > > Here is the error: > > ----------------------------------------- > > > > Unhandled Exception: System.ApplicationException: msHTTPExecuteRequests(): > HTTP > request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and > up. *_p > roxy_auth_type setting ignored. > at OSGeo.MapServer.mapObj.draw() > at DrawMap.Main(String[] args) > GDAL: GDALDeregister_GTiff() called. > > --------------------------------------- > > > > ? and here is the layer definition. > > --------------------------------------- > > LAYER > NAME 'WMS-Oversikt' > TYPE RASTER > STATUS ON > CONNECTION 'http://maps.metria.se/geoserver/wms?' > CONNECTIONTYPE WMS > METADATA > 'wms_srs' 'EPSG:2400' > 'wms_name' 'anyname' > 'wms_server_version' '1.1.1' > 'wms_format' 'image/png' > 'wms_auth_type' 'basic' > 'wms_auth_username' 'xxx' > 'wms_auth_password' 'yyy' > 'wms_proxy_type' 'http' > > 'wms_proxy_host' '147.44.134.17' > 'wms_proxy_port' '80' 'wms_proxy_auth_type' 'basic' > 'wms_proxy_username' 'zzz' > 'wms_proxy_password' 'yyy' > END > END > > ------------------------------------------ > > > > Regards > > Johan > ------------------------------ > > *Johan Hallgren* > > Gruppchef > Telefon direkt 023-464 92 > Mobil 073-800 64 92 > johan.hallgren at sweco.se > > *Sweco Position AB* > > Parkgatan 3 > Box 1902 > 791 19 Falun > Telefon 023-464 00 > www.sweco.se > > > > > > > > Please consider the environment before printing my e-mail. > > > > _______________________________________________ > 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: image002.png Type: image/png Size: 181 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 31553 bytes Desc: not available URL: From Johan.Hallgren at sweco.se Thu Apr 14 21:25:23 2011 From: Johan.Hallgren at sweco.se (Hallgren Johan) Date: Fri, 15 Apr 2011 06:25:23 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: Many thanks, I will give it a try. By the way, was I you who created the build package for mapserver? I have been away for two years and it has really been improved. Now it seems to be much easier to rebuild ms. Thanks for that and thanks for your assistance again. Johan ________________________________ Johan Hallgren Gruppchef Telefon direkt 023-464 92 Mobil 073-800 64 92 johan.hallgren at sweco.se Sweco Position AB Parkgatan 3 Box 1902 791 19 Falun Telefon 023-464 00 www.sweco.se [cid:image001.png at 01CBFB35.39295680] [cid:image002.png at 01CBFB35.39295680]Please consider the environment before printing my e-mail. From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: den 14 april 2011 22:35 To: Hallgren Johan Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" Johan, It is indeed not enabled by default and this flag hasn't been added to nmake.opt (this may be reported as a ticket which should be fixed). If you are using the build SDKs I've just added this flag to the builds (will be available in the next build tomorrow). If you prefer to compile this by using the SDK packages just replace the row: echo CURL=-DUSE_CURL >> $(OUTPUT_DIR)\mapserver.opt with echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt in the Makefile. I hope that will help. Best regards, Tamas 2011/4/13 Hallgren Johan > Hello I have a strange problem... I should use MapServer with Mapscript to call a WMS server as a client. I created a LAYER definition and after some struggle it went thru, I get my map. I used the shp2img command to test the mapfile. Next step was to test the mapfile with drawmap so the mapscript implementation was tested and now an error showed up. "CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7" I expected that this error should show up already in the shp2img-test, but there it worked fine. Anyone having a clue what's wrong? Here is the error: ----------------------------------------- Unhandled Exception: System.ApplicationException: msHTTPExecuteRequests(): HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up. *_p roxy_auth_type setting ignored. at OSGeo.MapServer.mapObj.draw() at DrawMap.Main(String[] args) GDAL: GDALDeregister_GTiff() called. --------------------------------------- ... and here is the layer definition. --------------------------------------- LAYER NAME 'WMS-Oversikt' TYPE RASTER STATUS ON CONNECTION 'http://maps.metria.se/geoserver/wms?' CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:2400' 'wms_name' 'anyname' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_auth_type' 'basic' 'wms_auth_username' 'xxx' 'wms_auth_password' 'yyy' 'wms_proxy_type' 'http' 'wms_proxy_host' '147.44.134.17' 'wms_proxy_port' '80' 'wms_proxy_auth_type' 'basic' 'wms_proxy_username' 'zzz' 'wms_proxy_password' 'yyy' END END ------------------------------------------ Regards Johan ________________________________ Johan Hallgren Gruppchef Telefon direkt 023-464 92 Mobil 073-800 64 92 johan.hallgren at sweco.se Sweco Position AB Parkgatan 3 Box 1902 791 19 Falun Telefon 023-464 00 www.sweco.se [cid:image001.png at 01CBFB35.39295680] [cid:image002.png at 01CBFB35.39295680]Please consider the environment before printing my e-mail. _______________________________________________ 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: image002.png Type: image/png Size: 181 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 31553 bytes Desc: image001.png URL: From Johan.Hallgren at sweco.se Thu Apr 14 21:30:44 2011 From: Johan.Hallgren at sweco.se (Hallgren Johan) Date: Fri, 15 Apr 2011 06:30:44 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: Tamas, I'm not the right person to report this as a ticket, I don't have the whole picture. I will do the change in my file and hopefully remember it to the next time. Regards, Johan ________________________________ Johan Hallgren Gruppchef Telefon direkt 023-464 92 Mobil 073-800 64 92 johan.hallgren at sweco.se Sweco Position AB Parkgatan 3 Box 1902 791 19 Falun Telefon 023-464 00 www.sweco.se [cid:image001.png at 01CBFB36.56DCFC80] [cid:image002.png at 01CBFB36.56DCFC80]Please consider the environment before printing my e-mail. From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: den 14 april 2011 22:35 To: Hallgren Johan Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" Johan, It is indeed not enabled by default and this flag hasn't been added to nmake.opt (this may be reported as a ticket which should be fixed). If you are using the build SDKs I've just added this flag to the builds (will be available in the next build tomorrow). If you prefer to compile this by using the SDK packages just replace the row: echo CURL=-DUSE_CURL >> $(OUTPUT_DIR)\mapserver.opt with echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt in the Makefile. I hope that will help. Best regards, Tamas 2011/4/13 Hallgren Johan > Hello I have a strange problem... I should use MapServer with Mapscript to call a WMS server as a client. I created a LAYER definition and after some struggle it went thru, I get my map. I used the shp2img command to test the mapfile. Next step was to test the mapfile with drawmap so the mapscript implementation was tested and now an error showed up. "CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7" I expected that this error should show up already in the shp2img-test, but there it worked fine. Anyone having a clue what's wrong? Here is the error: ----------------------------------------- Unhandled Exception: System.ApplicationException: msHTTPExecuteRequests(): HTTP request error. CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up. *_p roxy_auth_type setting ignored. at OSGeo.MapServer.mapObj.draw() at DrawMap.Main(String[] args) GDAL: GDALDeregister_GTiff() called. --------------------------------------- ... and here is the layer definition. --------------------------------------- LAYER NAME 'WMS-Oversikt' TYPE RASTER STATUS ON CONNECTION 'http://maps.metria.se/geoserver/wms?' CONNECTIONTYPE WMS METADATA 'wms_srs' 'EPSG:2400' 'wms_name' 'anyname' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_auth_type' 'basic' 'wms_auth_username' 'xxx' 'wms_auth_password' 'yyy' 'wms_proxy_type' 'http' 'wms_proxy_host' '147.44.134.17' 'wms_proxy_port' '80' 'wms_proxy_auth_type' 'basic' 'wms_proxy_username' 'zzz' 'wms_proxy_password' 'yyy' END END ------------------------------------------ Regards Johan ________________________________ Johan Hallgren Gruppchef Telefon direkt 023-464 92 Mobil 073-800 64 92 johan.hallgren at sweco.se Sweco Position AB Parkgatan 3 Box 1902 791 19 Falun Telefon 023-464 00 www.sweco.se [cid:image001.png at 01CBFB36.56DCFC80] [cid:image002.png at 01CBFB36.56DCFC80]Please consider the environment before printing my e-mail. _______________________________________________ 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: image002.png Type: image/png Size: 181 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 31553 bytes Desc: image001.png URL: From Andreas.Eichner at sid.sachsen.de Thu Apr 14 23:40:06 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 15 Apr 2011 08:40:06 +0200 Subject: AW: VS: [mapserver-users] Mapserver search performance References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF133@KS-EVS1.smi.sachsen.de> Hi, AFAIK dBase files don't provide an index themselves and there's no other way to provide one. shptree only creates an spatial index. Therefore only queries like 'does this geometry touch/intersect/lie within a given rectangle'can be accelerated. > I tried the shptree tool but did not see any performance improvement. So this becomes clear: By doing a JOIN MapServer basically runs a loop: for each geometry that matches search withing external data for a line matching the join condition. > Could it be because all of this information that I require is coming > from an external DBF file that I join to the layer/shape's DBF? Will > including all these fields/information in the shape's DBF file itself > help? I'm pretty sure that this would help, since this would avoid the (unaccelerated) join. With a database like PostgreSQL/PostGIS or SQlite it's basically the same problem: if you don't create an appropriate index for the join condition, this becomes an costly operation. Although those columns are usually primary and foreign key columns with appropriate index and the join condition is usually a simple equality match. From julho at kms.dk Fri Apr 15 06:39:21 2011 From: julho at kms.dk (Hollingbery, Julian) Date: Fri, 15 Apr 2011 15:39:21 +0200 Subject: [mapserver-users] SLD support: Anyone for fixing 5 yr old tickets? Message-ID: <53D7A0A1A7E1B94689D14547F9262CF60B0BA004@resc-ex002.res.adroot.dk> Hi list, I have just joined the list for the following reason: We have been running SLD-enabled WMS services for some years now, on a closed source platform. For that, and several other reasons, we are now looking at using MapServer as a replacement. I have compared our existing platform and MapServer 5.6.6, and have noticed a couple of incompatibilities. After having looked around, I find that both of these issues exist as old tickets: http://trac.osgeo.org/mapserver/ticket/1602 http://trac.osgeo.org/mapserver/ticket/1166 We do not have the developer resources to provide patches, so I am looking for someone to do it for us. Our migration is organized as a project, for which we have some funds. Therefore, I am looking for someone who would be willing to provide me with an estimate of what it would cost (time and/or money) to come up with a patch. Regarding #1602, what I would like to achieve is to highlight an object given by a ogc:Filter, while rendering the remaining objects in that layer in the default style. I could of course use an ElseFilter, but since this is a question of providing backward compatibility, I'd prefer not to. It is not exactly the same thing as in #1602, but it seems to me that it might be the same fix. My particular SLD looks something like this: Jordstykke landsejerlavskode 90552 matrikelnummer 7fv #0000FF 1 #FF0000 3 Jordstykke default Thanks in advance, Julian Hollingbery Danish Ministry of The Environment, National Survey and Cadastre -------------- next part -------------- An HTML attachment was scrubbed... URL: From julho at kms.dk Fri Apr 15 06:39:21 2011 From: julho at kms.dk (Hollingbery, Julian) Date: Fri, 15 Apr 2011 15:39:21 +0200 Subject: [mapserver-users] SLD support: Anyone for fixing 5 yr old tickets? Message-ID: <53D7A0A1A7E1B94689D14547F9262CF60B0BA004@resc-ex002.res.adroot.dk> Hi list, I have just joined the list for the following reason: We have been running SLD-enabled WMS services for some years now, on a closed source platform. For that, and several other reasons, we are now looking at using MapServer as a replacement. I have compared our existing platform and MapServer 5.6.6, and have noticed a couple of incompatibilities. After having looked around, I find that both of these issues exist as old tickets: http://trac.osgeo.org/mapserver/ticket/1602 http://trac.osgeo.org/mapserver/ticket/1166 We do not have the developer resources to provide patches, so I am looking for someone to do it for us. Our migration is organized as a project, for which we have some funds. Therefore, I am looking for someone who would be willing to provide me with an estimate of what it would cost (time and/or money) to come up with a patch. Regarding #1602, what I would like to achieve is to highlight an object given by a ogc:Filter, while rendering the remaining objects in that layer in the default style. I could of course use an ElseFilter, but since this is a question of providing backward compatibility, I'd prefer not to. It is not exactly the same thing as in #1602, but it seems to me that it might be the same fix. My particular SLD looks something like this: Jordstykke landsejerlavskode 90552 matrikelnummer 7fv #0000FF 1 #FF0000 3 Jordstykke default Thanks in advance, Julian Hollingbery Danish Ministry of The Environment, National Survey and Cadastre -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Apr 15 11:25:37 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 15 Apr 2011 15:25:37 -0300 Subject: [mapserver-users] MS 6.0 beta4, is image/jpeg output OK? In-Reply-To: References: Message-ID: <4DA88DA1.8000608@gatewaygeomatics.com> Jukka, You indeed found a good one: image/jpeg output for all 6.0 betas in MS4W was broken. In fact the underlying GD library was pointing to a an old non-existent libjpeg version, jpeg-6b, and recent MS4W is built against jpeg-8b (this is what the error message was really trying to tell us: "Wrong JPEG library version: you are calling JPEG-6 through GD but MapServer expects to find JPEG-8"). So here is a patch, which contains a rebuilt GD library that points to an upgraded JPEG-8c library: http://www.maptools.org/dl/ms4w/mapserver_ms4w-6.0.0-beta6-patch.zip I thank you very much for discovering this problem. I guess this is why we have a 'beta' stage. (the MS4W ticket is http://bugzilla.maptools.org/show_bug.cgi?id=2313) Thanks again for this feedback! happy friday to all. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-04-12 10:47 AM, Rahkonen Jukka wrote: > Hi, > I have a pretty basic mapfile without my own OUTPUTFORMAT settings. MS > 6.0 beta4 is advertising image/jpeg in the GetCapabilities. However, if > I use it in the GetMap I am getting my request back from the server. I > mean that by browser shows me exactly the same query as a result in test > format that I was sending from the URL line. I have never before seen > this behaviour. If I change format into image/png or image/gif I am > getting a proper image back. I am testing with MS4W package. > -Jukka Rahkonen- From peter.hopfgartner at r3-gis.com Fri Apr 15 11:59:21 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 15 Apr 2011 20:59:21 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0-beta6 release Message-ID: <20110415185921.AFBAE16781CE@mail.r3-gis.com> --------Peter Hopfgartner wrote-------- Subject: RE: [mapserver-users] MapServer 6.0.0-beta6 release Date: 15.04.2011 08:38 >--------Daniel Morissette wrote-------- > >Subject: [mapserver-users] MapServer 6.0.0-beta6 release > >Date: 14.04.2011 01:22 > > > >>The MapServer Team is pleased to announce the release of MapServer > >>6.0.0-beta6. This is the latest beta on our way to a final 6.0 release. > >>Once again this beta contains several important fixes and we encourage > >>you to test it and continue to provide feedback. > >> > >>The 6.0 release introduces important changes in key components of the > >>MapServer core (rendering, query and expressions), and for this reason > >>we count on you, MapServer power users, to help test the release in your > > >>respective environments and provide feedback (through the users list or > >>Trac tickets). > >> > > > >Packages for RHEL/CentOS/Scientific Linux 5 and as src.rpm: > > > >http://www.r3-gis.com/upload/mapserver-6.0.0beta6-1.0.el5.src.rpm > >http://www.r3-gis.com/upload/mapserver-6.0.0beta6-1.0.el5.x86_64.rpm > >http://www.r3-gis.com/upload/php-mapserver-6.0.0beta6-1.0.el5.x86_64.rpm > >http://www.r3-gis.com/upload/mapserver-perl-6.0.0beta6-1.0.el5.x86_64.rpm > >http://www.r3-gis.com/upload/mapserver-python-6.0.0beta6-1.0.el5.x86_64.rpm > >http://www.r3-gis.com/upload/mapserver-java-6.0.0beta6-1.0.el5.x86_64.rpm > >http://www.r3-gis.com/upload/mapserver-debuginfo-6.0.0beta6-1.0.el5.x86_64.rpm > > > >These packages depend on http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS >and on the php53* packages, in CentOS 5.6. > > > >beta5 packages were removed. > > MapServer 6.0.0 beta6 packages are now available in ELGIS testing repository as mnapserver6, http://elgis.argeo.org/ Peter > > >Peter > > > >R3 GIS Srl - GmbH > >http://www.r3-gis.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 Fri Apr 15 12:32:22 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 15 Apr 2011 12:32:22 -0700 (PDT) Subject: [mapserver-users] Re: msProcessProjection(): Projection library error. no options in 'init' file In-Reply-To: <1302809755002-6274126.post@n2.nabble.com> References: <1302802942648-6273726.post@n2.nabble.com> <4DA736D9.3030400@gatewaygeomatics.com> <1302805243424-6273896.post@n2.nabble.com> <4DA73E4E.7000607@gatewaygeomatics.com> <1302809097302-6274097.post@n2.nabble.com> <1302809755002-6274126.post@n2.nabble.com> Message-ID: <1302895942916-6277431.post@n2.nabble.com> I can confirm that the PROJ_LIB environment variable is not set in the httpd configuration file. Adding it has solved the problem. Yay!! In addition, I got some answers to my questions regarding where MapServer was getting this information if that environment variable wasn't in the Apache configuration. By default, it was using a directory provided at compile time, as suggested in a previous post. Obviously, that path wasn't the same as the one we thought it was using. Now we know and our choice is either to leave the PROJ_LIB environment variable set or to just overwrite the epsg file in the proper location. Special thanks to Jeff for his input here. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msProcessProjection-Projection-library-error-no-options-in-init-file-tp6273726p6277431.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri Apr 15 12:35:58 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 15 Apr 2011 21:35:58 +0200 Subject: Fwd: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: I need to correct myself and you'll require to use the following setting instead: *echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt * Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdedels at gmail.com Sat Apr 16 11:22:13 2011 From: cdedels at gmail.com (Christopher Dedels) Date: Sat, 16 Apr 2011 14:22:13 -0400 Subject: [mapserver-users] Mapserver and raster layers Message-ID: I am having some problems adding a raster layer to my map. The image produced by mapserver is blank. My mapfile is as follows: MAP SIZE 800 600 UNITS meters EXTENT -123.8600311 38.0116386 -97.1885986 53.7055626 PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" END LAYER NAME "grid" TYPE RASTER DATA "/tmp/image.tiff" STATUS ON PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" END END END I have also noticed that changing the DATA path to a file which does not exist in the filesystem (or is not a GDAL-supported file format) has no effect on the rendered output and does not produce an error message. Can somebody help me where I am going wrong? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sat Apr 16 13:26:09 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 16 Apr 2011 16:26:09 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: References: Message-ID: <4DA9FB61.4070304@swoodbridge.com> Try changing the layer status to default, ie: STATUS DEFAULT -Steve W On 4/16/2011 2:22 PM, Christopher Dedels wrote: > I am having some problems adding a raster layer to my map. The image > produced by mapserver is blank. My mapfile is as follows: > > MAP > SIZE 800 600 > UNITS meters > > EXTENT -123.8600311 38.0116386 -97.1885986 53.7055626 > > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > > LAYER > NAME "grid" > TYPE RASTER > DATA "/tmp/image.tiff" > STATUS ON > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > END > END > > I have also noticed that changing the DATA path to a file which does not > exist in the filesystem (or is not a GDAL-supported file format) has no > effect on the rendered output and does not produce an error message. > > Can somebody help me where I am going wrong? > > Thanks > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From cdedels at gmail.com Sat Apr 16 13:33:29 2011 From: cdedels at gmail.com (Christopher Dedels) Date: Sat, 16 Apr 2011 16:33:29 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: <4DA9FB61.4070304@swoodbridge.com> References: <4DA9FB61.4070304@swoodbridge.com> Message-ID: Thanks for the suggestion. I have tried it and it appears to have no effect. Chris On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge wrote: > Try changing the layer status to default, ie: > > STATUS DEFAULT > > -Steve W > > > On 4/16/2011 2:22 PM, Christopher Dedels wrote: > >> I am having some problems adding a raster layer to my map. The image >> produced by mapserver is blank. My mapfile is as follows: >> >> MAP >> SIZE 800 600 >> UNITS meters >> >> EXTENT -123.8600311 38.0116386 -97.1885986 53.7055626 >> >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> >> LAYER >> NAME "grid" >> TYPE RASTER >> DATA "/tmp/image.tiff" >> STATUS ON >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> END >> END >> >> I have also noticed that changing the DATA path to a file which does not >> exist in the filesystem (or is not a GDAL-supported file format) has no >> effect on the rendered output and does not produce an error message. >> >> Can somebody help me where I am going wrong? >> >> Thanks >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sat Apr 16 13:34:48 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 16 Apr 2011 16:34:48 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: References: <4DA9FB61.4070304@swoodbridge.com> Message-ID: <4DA9FD68.20207@swoodbridge.com> On 4/16/2011 4:33 PM, Christopher Dedels wrote: > Thanks for the suggestion. I have tried it and it appears to have no > effect. > > Chris > > > On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge > > wrote: > > Try changing the layer status to default, ie: > > STATUS DEFAULT > > -Steve W > > > On 4/16/2011 2:22 PM, Christopher Dedels wrote: > > I am having some problems adding a raster layer to my map. The > image > produced by mapserver is blank. My mapfile is as follows: > > MAP > SIZE 800 600 > UNITS meters This is a problem, Your UNITs are meters, but your extents and projection are DD! > > EXTENT -123.8600311 38.0116386 -97.1885986 53.7055626 > > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > > LAYER > NAME "grid" > TYPE RASTER > DATA "/tmp/image.tiff" > STATUS ON > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > END > END > > I have also noticed that changing the DATA path to a file which > does not > exist in the filesystem (or is not a GDAL-supported file format) > has no > effect on the rendered output and does not produce an error message. > > Can somebody help me where I am going wrong? > > 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 From Jukka.Rahkonen at mmmtike.fi Sat Apr 16 13:43:34 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 16 Apr 2011 23:43:34 +0300 Subject: [mapserver-users] Mapserver and raster layers References: <4DA9FB61.4070304@swoodbridge.com> Message-ID: Hi, - Add DEBUG 5 into your LAYER and see what you'll get into MS_ERRORFILE - What kind of request do you use for getting an image? - Using full paths into your image file may help - Send also the gdalinfo output of image.tiff file -Jukka Rahkonen- > Christopher Dedels > Thanks for the suggestion. I have tried it and it appears to have no > effect. >Chris On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge > wrote: >> Try changing the layer status to default, ie: > > STATUS DEFAULT > > -Steve W > > > On 4/16/2011 2:22 PM, Christopher Dedels wrote: > >> I am having some problems adding a raster layer to my map. The image >> produced by mapserver is blank. My mapfile is as follows: >> >> MAP >> SIZE 800 600 >> UNITS meters >> >> EXTENT -123.8600311 38.0116386 -97.1885986 53.7055626 >> >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> >> LAYER >> NAME "grid" >> TYPE RASTER >> DATA "/tmp/image.tiff" >> STATUS ON >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> END >> END >> >> I have also noticed that changing the DATA path to a file which does not >> exist in the filesystem (or is not a GDAL-supported file format) has no >> effect on the rendered output and does not produce an error message. >> >> Can somebody help me where I am going wrong? >> >> Thanks >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > From cdedels at gmail.com Sat Apr 16 13:52:49 2011 From: cdedels at gmail.com (Christopher Dedels) Date: Sat, 16 Apr 2011 16:52:49 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: <4DA9FD68.20207@swoodbridge.com> References: <4DA9FB61.4070304@swoodbridge.com> <4DA9FD68.20207@swoodbridge.com> Message-ID: Hmmm...missed that one. But changing the units to dd still doesn't have any effect. I am using mapserver 4.8.1. DEBUG is not an option in this version. mapserv -v produces the following output: MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE My request uri is: http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP gdalinfo output for my raster file is: Driver: GTiff/GeoTIFF Files: /tmp/image.tiff Size is 800, 600 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-123.860031127930000,38.011638641357401) Pixel Size = (0.033339290618897,0.026156539916992) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N) Band 1 Block=800x2 Type=Float32, ColorInterp=Gray Regards, Chris On Sat, Apr 16, 2011 at 4:34 PM, Stephen Woodbridge wrote: > On 4/16/2011 4:33 PM, Christopher Dedels wrote: > >> Thanks for the suggestion. I have tried it and it appears to have no >> effect. >> >> Chris >> >> >> On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge >> > wrote: >> >> Try changing the layer status to default, ie: >> >> STATUS DEFAULT >> >> -Steve W >> >> >> On 4/16/2011 2:22 PM, Christopher Dedels wrote: >> >> I am having some problems adding a raster layer to my map. The >> image >> produced by mapserver is blank. My mapfile is as follows: >> >> MAP >> SIZE 800 600 >> UNITS meters >> > > This is a problem, Your UNITs are meters, but your extents and projection > are DD! > > >> EXTENT -123.8600311 38.0116386 -97.1885986 53.7055626 >> >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> >> LAYER >> NAME "grid" >> TYPE RASTER >> DATA "/tmp/image.tiff" >> STATUS ON >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> END >> END >> >> I have also noticed that changing the DATA path to a file which >> does not >> exist in the filesystem (or is not a GDAL-supported file format) >> has no >> effect on the rendered output and does not produce an error >> message. >> >> Can somebody help me where I am going wrong? >> >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sat Apr 16 14:47:01 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 16 Apr 2011 17:47:01 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: References: <4DA9FB61.4070304@swoodbridge.com> <4DA9FD68.20207@swoodbridge.com> Message-ID: <4DAA0E55.7060501@swoodbridge.com> What does: gdalinfo /tmp/image.tif report? -Steve W On 4/16/2011 4:52 PM, Christopher Dedels wrote: > Hmmm...missed that one. But changing the units to dd still doesn't have > any effect. > > I am using mapserver 4.8.1. DEBUG is not an option in this version. > mapserv -v produces the following output: > > MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE > > My request uri is: > http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP > > > gdalinfo output for my raster file is: > > Driver: GTiff/GeoTIFF > Files: /tmp/image.tiff > Size is 800, 600 > Coordinate System is: > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]] > Origin = (-123.860031127930000,38.011638641357401) > Pixel Size = (0.033339290618897,0.026156539916992) > Metadata: > AREA_OR_POINT=Area > Image Structure Metadata: > INTERLEAVE=BAND > Corner Coordinates: > Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) > Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) > Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) > Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) > Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N) > Band 1 Block=800x2 Type=Float32, ColorInterp=Gray > > Regards, > > Chris > > > On Sat, Apr 16, 2011 at 4:34 PM, Stephen Woodbridge > > wrote: > > On 4/16/2011 4:33 PM, Christopher Dedels wrote: > > Thanks for the suggestion. I have tried it and it appears to > have no > effect. > > Chris > > > On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge > > >> wrote: > > Try changing the layer status to default, ie: > > STATUS DEFAULT > > -Steve W > > > On 4/16/2011 2:22 PM, Christopher Dedels wrote: > > I am having some problems adding a raster layer to my > map. The > image > produced by mapserver is blank. My mapfile is as follows: > > MAP > SIZE 800 600 > UNITS meters > > > This is a problem, Your UNITs are meters, but your extents and > projection are DD! > > > EXTENT -123.8600311 38.0116386 -97.1885986 > 53.7055626 > > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > > LAYER > NAME "grid" > TYPE RASTER > DATA "/tmp/image.tiff" > STATUS ON > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > END > END > > I have also noticed that changing the DATA path to a > file which > does not > exist in the filesystem (or is not a GDAL-supported file > format) > has no > effect on the rendered output and does not produce an > error message. > > Can somebody help me where I am going wrong? > > 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 cdedels at gmail.com Sat Apr 16 14:52:01 2011 From: cdedels at gmail.com (Christopher Dedels) Date: Sat, 16 Apr 2011 17:52:01 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: <4DAA0E55.7060501@swoodbridge.com> References: <4DA9FB61.4070304@swoodbridge.com> <4DA9FD68.20207@swoodbridge.com> <4DAA0E55.7060501@swoodbridge.com> Message-ID: gdalinfo output for my raster file is: Driver: GTiff/GeoTIFF Files: /tmp/image.tiff Size is 800, 600 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]] Origin = (-123.860031127930000,38.011638641357401) Pixel Size = (0.033339290618897,0.026156539916992) Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N) Band 1 Block=800x2 Type=Float32, ColorInterp=Gray Regards, Chris On Sat, Apr 16, 2011 at 5:47 PM, Stephen Woodbridge wrote: > What does: > > gdalinfo /tmp/image.tif > > report? > > -Steve W > > > > On 4/16/2011 4:52 PM, Christopher Dedels wrote: > >> Hmmm...missed that one. But changing the units to dd still doesn't have >> any effect. >> >> I am using mapserver 4.8.1. DEBUG is not an option in this version. >> mapserv -v produces the following output: >> >> MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE >> >> My request uri is: >> >> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >> < >> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >> > >> >> gdalinfo output for my raster file is: >> >> Driver: GTiff/GeoTIFF >> Files: /tmp/image.tiff >> Size is 800, 600 >> Coordinate System is: >> GEOGCS["WGS 84", >> DATUM["WGS_1984", >> SPHEROID["WGS 84",6378137,298.257223563, >> AUTHORITY["EPSG","7030"]], >> AUTHORITY["EPSG","6326"]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433], >> AUTHORITY["EPSG","4326"]] >> Origin = (-123.860031127930000,38.011638641357401) >> Pixel Size = (0.033339290618897,0.026156539916992) >> Metadata: >> AREA_OR_POINT=Area >> Image Structure Metadata: >> INTERLEAVE=BAND >> Corner Coordinates: >> Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) >> Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) >> Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) >> Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) >> Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N) >> Band 1 Block=800x2 Type=Float32, ColorInterp=Gray >> >> Regards, >> >> Chris >> >> >> On Sat, Apr 16, 2011 at 4:34 PM, Stephen Woodbridge >> > wrote: >> >> On 4/16/2011 4:33 PM, Christopher Dedels wrote: >> >> Thanks for the suggestion. I have tried it and it appears to >> have no >> effect. >> >> Chris >> >> >> On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge >> >> > >> >> wrote: >> >> Try changing the layer status to default, ie: >> >> STATUS DEFAULT >> >> -Steve W >> >> >> On 4/16/2011 2:22 PM, Christopher Dedels wrote: >> >> I am having some problems adding a raster layer to my >> map. The >> image >> produced by mapserver is blank. My mapfile is as follows: >> >> MAP >> SIZE 800 600 >> UNITS meters >> >> >> This is a problem, Your UNITs are meters, but your extents and >> projection are DD! >> >> >> EXTENT -123.8600311 38.0116386 -97.1885986 >> 53.7055626 >> >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> >> LAYER >> NAME "grid" >> TYPE RASTER >> DATA "/tmp/image.tiff" >> STATUS ON >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> END >> END >> >> I have also noticed that changing the DATA path to a >> file which >> does not >> exist in the filesystem (or is not a GDAL-supported file >> format) >> has no >> effect on the rendered output and does not produce an >> error message. >> >> Can somebody help me where I am going wrong? >> >> 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 > 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 woodbri at swoodbridge.com Sat Apr 16 21:11:57 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 17 Apr 2011 00:11:57 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: References: <4DA9FB61.4070304@swoodbridge.com> <4DA9FD68.20207@swoodbridge.com> <4DAA0E55.7060501@swoodbridge.com> Message-ID: <4DAA688D.4000800@swoodbridge.com> Sorry, you had posted the gdalinfo, I was rushing out the door and missed that. But looking at it the image extents looks strange, it seems that the north-south coordinates are inverted. Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) lower left should be the xmin, ymin and upper right should be the xmax, ymax values and so that looks weird. Otherwise I'm not seeing a problem. You might need to specify an image mode that you want mapserver to render you image in: IMAGETYPE jpeg -Steve W On 4/16/2011 5:52 PM, Christopher Dedels wrote: > gdalinfo output for my raster file is: > > Driver: GTiff/GeoTIFF > Files: /tmp/image.tiff > Size is 800, 600 > Coordinate System is: > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]] > Origin = (-123.860031127930000,38.011638641357401) > Pixel Size = (0.033339290618897,0.026156539916992) > Metadata: > AREA_OR_POINT=Area > Image Structure Metadata: > INTERLEAVE=BAND > Corner Coordinates: > Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) > Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) > Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) > Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) > Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N) > Band 1 Block=800x2 Type=Float32, ColorInterp=Gray > > Regards, > > Chris > > On Sat, Apr 16, 2011 at 5:47 PM, Stephen Woodbridge > > wrote: > > What does: > > gdalinfo /tmp/image.tif > > report? > > -Steve W > > > > On 4/16/2011 4:52 PM, Christopher Dedels wrote: > > Hmmm...missed that one. But changing the units to dd still > doesn't have > any effect. > > I am using mapserver 4.8.1. DEBUG is not an option in this version. > mapserv -v produces the following output: > > MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE > > My request uri is: > http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP > > > > > gdalinfo output for my raster file is: > > Driver: GTiff/GeoTIFF > Files: /tmp/image.tiff > Size is 800, 600 > Coordinate System is: > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4326"]] > Origin = (-123.860031127930000,38.011638641357401) > Pixel Size = (0.033339290618897,0.026156539916992) > Metadata: > AREA_OR_POINT=Area > Image Structure Metadata: > INTERLEAVE=BAND > Corner Coordinates: > Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d > 0'41.90"N) > Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, > 53d42'20.03"N) > Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d > 0'41.90"N) > Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, > 53d42'20.03"N) > Center (-110.5243149, 45.8586006) (110d31'27.53"W, > 45d51'30.96"N) > Band 1 Block=800x2 Type=Float32, ColorInterp=Gray > > Regards, > > Chris > > > On Sat, Apr 16, 2011 at 4:34 PM, Stephen Woodbridge > > >> wrote: > > On 4/16/2011 4:33 PM, Christopher Dedels wrote: > > Thanks for the suggestion. I have tried it and it > appears to > have no > effect. > > Chris > > > On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge > > > > > > >>> wrote: > > Try changing the layer status to default, ie: > > STATUS DEFAULT > > -Steve W > > > On 4/16/2011 2:22 PM, Christopher Dedels wrote: > > I am having some problems adding a raster layer > to my > map. The > image > produced by mapserver is blank. My mapfile is > as follows: > > MAP > SIZE 800 600 > UNITS meters > > > This is a problem, Your UNITs are meters, but your extents and > projection are DD! > > > EXTENT -123.8600311 38.0116386 -97.1885986 > 53.7055626 > > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > > LAYER > NAME "grid" > TYPE RASTER > DATA "/tmp/image.tiff" > STATUS ON > PROJECTION > "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" > END > END > END > > I have also noticed that changing the DATA path to a > file which > does not > exist in the filesystem (or is not a > GDAL-supported file > format) > has no > effect on the rendered output and does not > produce an > error message. > > Can somebody help me where I am going wrong? > > 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 > > > _______________________________________________ > 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 cdedels at gmail.com Sun Apr 17 06:09:43 2011 From: cdedels at gmail.com (Christopher Dedels) Date: Sun, 17 Apr 2011 09:09:43 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: <4DAA688D.4000800@swoodbridge.com> References: <4DA9FB61.4070304@swoodbridge.com> <4DA9FD68.20207@swoodbridge.com> <4DAA0E55.7060501@swoodbridge.com> <4DAA688D.4000800@swoodbridge.com> Message-ID: I'll look into the N-S coordinates. I am using gdal_grid to create a grid from a point layer and then using gdal_contour to create a line layer from the grid. The input point layer and output line layer seem to have the right N-S coordinates and display on my map just fine. Thanks, Chris On Sun, Apr 17, 2011 at 12:11 AM, Stephen Woodbridge < woodbri at swoodbridge.com> wrote: > Sorry, you had posted the gdalinfo, I was rushing out the door and missed > that. But looking at it the image extents looks strange, it seems that the > north-south coordinates are inverted. > > > Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) > Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) > Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) > Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) > > lower left should be the xmin, ymin and upper right should be the xmax, > ymax values and so that looks weird. > > Otherwise I'm not seeing a problem. You might need to specify an image mode > that you want mapserver to render you image in: > > IMAGETYPE jpeg > > > -Steve W > > On 4/16/2011 5:52 PM, Christopher Dedels wrote: > >> gdalinfo output for my raster file is: >> >> Driver: GTiff/GeoTIFF >> Files: /tmp/image.tiff >> Size is 800, 600 >> Coordinate System is: >> GEOGCS["WGS 84", >> DATUM["WGS_1984", >> SPHEROID["WGS 84",6378137,298.257223563, >> AUTHORITY["EPSG","7030"]], >> AUTHORITY["EPSG","6326"]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433], >> AUTHORITY["EPSG","4326"]] >> Origin = (-123.860031127930000,38.011638641357401) >> Pixel Size = (0.033339290618897,0.026156539916992) >> Metadata: >> AREA_OR_POINT=Area >> Image Structure Metadata: >> INTERLEAVE=BAND >> Corner Coordinates: >> Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) >> Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) >> Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) >> Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) >> Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N) >> Band 1 Block=800x2 Type=Float32, ColorInterp=Gray >> >> Regards, >> >> Chris >> >> On Sat, Apr 16, 2011 at 5:47 PM, Stephen Woodbridge >> > wrote: >> >> What does: >> >> gdalinfo /tmp/image.tif >> >> report? >> >> -Steve W >> >> >> >> On 4/16/2011 4:52 PM, Christopher Dedels wrote: >> >> Hmmm...missed that one. But changing the units to dd still >> doesn't have >> any effect. >> >> I am using mapserver 4.8.1. DEBUG is not an option in this >> version. >> mapserv -v produces the following output: >> >> MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >> OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE >> >> My request uri is: >> >> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >> < >> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >> > >> < >> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >> < >> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >> >> >> >> gdalinfo output for my raster file is: >> >> Driver: GTiff/GeoTIFF >> Files: /tmp/image.tiff >> Size is 800, 600 >> Coordinate System is: >> GEOGCS["WGS 84", >> DATUM["WGS_1984", >> SPHEROID["WGS 84",6378137,298.257223563, >> AUTHORITY["EPSG","7030"]], >> AUTHORITY["EPSG","6326"]], >> PRIMEM["Greenwich",0], >> UNIT["degree",0.0174532925199433], >> AUTHORITY["EPSG","4326"]] >> Origin = (-123.860031127930000,38.011638641357401) >> Pixel Size = (0.033339290618897,0.026156539916992) >> Metadata: >> AREA_OR_POINT=Area >> Image Structure Metadata: >> INTERLEAVE=BAND >> Corner Coordinates: >> Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d >> 0'41.90"N) >> Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, >> 53d42'20.03"N) >> Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d >> 0'41.90"N) >> Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, >> 53d42'20.03"N) >> Center (-110.5243149, 45.8586006) (110d31'27.53"W, >> 45d51'30.96"N) >> Band 1 Block=800x2 Type=Float32, ColorInterp=Gray >> >> Regards, >> >> Chris >> >> >> On Sat, Apr 16, 2011 at 4:34 PM, Stephen Woodbridge >> >> > >> wrote: >> >> On 4/16/2011 4:33 PM, Christopher Dedels wrote: >> >> Thanks for the suggestion. I have tried it and it >> appears to >> have no >> effect. >> >> Chris >> >> >> On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge >> >> > >> >> >> > >>> wrote: >> >> Try changing the layer status to default, ie: >> >> STATUS DEFAULT >> >> -Steve W >> >> >> On 4/16/2011 2:22 PM, Christopher Dedels wrote: >> >> I am having some problems adding a raster layer >> to my >> map. The >> image >> produced by mapserver is blank. My mapfile is >> as follows: >> >> MAP >> SIZE 800 600 >> UNITS meters >> >> >> This is a problem, Your UNITs are meters, but your extents and >> projection are DD! >> >> >> EXTENT -123.8600311 38.0116386 -97.1885986 >> 53.7055626 >> >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> >> LAYER >> NAME "grid" >> TYPE RASTER >> DATA "/tmp/image.tiff" >> STATUS ON >> PROJECTION >> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >> END >> END >> END >> >> I have also noticed that changing the DATA path to >> a >> file which >> does not >> exist in the filesystem (or is not a >> GDAL-supported file >> format) >> has no >> effect on the rendered output and does not >> produce an >> error message. >> >> Can somebody help me where I am going wrong? >> >> 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 >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org > 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 cdedels at gmail.com Sun Apr 17 15:04:41 2011 From: cdedels at gmail.com (Christopher Dedels) Date: Sun, 17 Apr 2011 18:04:41 -0400 Subject: [mapserver-users] Mapserver and raster layers In-Reply-To: References: <4DA9FB61.4070304@swoodbridge.com> <4DA9FD68.20207@swoodbridge.com> <4DAA0E55.7060501@swoodbridge.com> <4DAA688D.4000800@swoodbridge.com> Message-ID: Steve, This resolved the issue. I ran `gdalwarp /tmp/image.tiff /tmp/image_inverted.tiff` and it inverted the y axis coordinates again. Chris On Sun, Apr 17, 2011 at 9:09 AM, Christopher Dedels wrote: > I'll look into the N-S coordinates. I am using gdal_grid to create a grid > from a point layer and then using gdal_contour to create a line layer from > the grid. The input point layer and output line layer seem to have the > right N-S coordinates and display on my map just fine. > > Thanks, > > Chris > > > > On Sun, Apr 17, 2011 at 12:11 AM, Stephen Woodbridge < > woodbri at swoodbridge.com> wrote: > >> Sorry, you had posted the gdalinfo, I was rushing out the door and missed >> that. But looking at it the image extents looks strange, it seems that the >> north-south coordinates are inverted. >> >> >> Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) >> Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) >> Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) >> Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) >> >> lower left should be the xmin, ymin and upper right should be the xmax, >> ymax values and so that looks weird. >> >> Otherwise I'm not seeing a problem. You might need to specify an image >> mode that you want mapserver to render you image in: >> >> IMAGETYPE jpeg >> >> >> -Steve W >> >> On 4/16/2011 5:52 PM, Christopher Dedels wrote: >> >>> gdalinfo output for my raster file is: >>> >>> Driver: GTiff/GeoTIFF >>> Files: /tmp/image.tiff >>> Size is 800, 600 >>> Coordinate System is: >>> GEOGCS["WGS 84", >>> DATUM["WGS_1984", >>> SPHEROID["WGS 84",6378137,298.257223563, >>> AUTHORITY["EPSG","7030"]], >>> AUTHORITY["EPSG","6326"]], >>> PRIMEM["Greenwich",0], >>> UNIT["degree",0.0174532925199433], >>> AUTHORITY["EPSG","4326"]] >>> Origin = (-123.860031127930000,38.011638641357401) >>> Pixel Size = (0.033339290618897,0.026156539916992) >>> Metadata: >>> AREA_OR_POINT=Area >>> Image Structure Metadata: >>> INTERLEAVE=BAND >>> Corner Coordinates: >>> Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N) >>> Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N) >>> Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N) >>> Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N) >>> Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N) >>> Band 1 Block=800x2 Type=Float32, ColorInterp=Gray >>> >>> Regards, >>> >>> Chris >>> >>> On Sat, Apr 16, 2011 at 5:47 PM, Stephen Woodbridge >>> > wrote: >>> >>> What does: >>> >>> gdalinfo /tmp/image.tif >>> >>> report? >>> >>> -Steve W >>> >>> >>> >>> On 4/16/2011 4:52 PM, Christopher Dedels wrote: >>> >>> Hmmm...missed that one. But changing the units to dd still >>> doesn't have >>> any effect. >>> >>> I am using mapserver 4.8.1. DEBUG is not an option in this >>> version. >>> mapserv -v produces the following output: >>> >>> MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>> OUTPUT=WBMP >>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >>> SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE >>> >>> My request uri is: >>> >>> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >>> < >>> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >>> > >>> < >>> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >>> < >>> http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP >>> >> >>> >>> gdalinfo output for my raster file is: >>> >>> Driver: GTiff/GeoTIFF >>> Files: /tmp/image.tiff >>> Size is 800, 600 >>> Coordinate System is: >>> GEOGCS["WGS 84", >>> DATUM["WGS_1984", >>> SPHEROID["WGS 84",6378137,298.257223563, >>> AUTHORITY["EPSG","7030"]], >>> AUTHORITY["EPSG","6326"]], >>> PRIMEM["Greenwich",0], >>> UNIT["degree",0.0174532925199433], >>> AUTHORITY["EPSG","4326"]] >>> Origin = (-123.860031127930000,38.011638641357401) >>> Pixel Size = (0.033339290618897,0.026156539916992) >>> Metadata: >>> AREA_OR_POINT=Area >>> Image Structure Metadata: >>> INTERLEAVE=BAND >>> Corner Coordinates: >>> Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d >>> 0'41.90"N) >>> Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, >>> 53d42'20.03"N) >>> Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d >>> 0'41.90"N) >>> Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, >>> 53d42'20.03"N) >>> Center (-110.5243149, 45.8586006) (110d31'27.53"W, >>> 45d51'30.96"N) >>> Band 1 Block=800x2 Type=Float32, ColorInterp=Gray >>> >>> Regards, >>> >>> Chris >>> >>> >>> On Sat, Apr 16, 2011 at 4:34 PM, Stephen Woodbridge >>> >>> >> >> wrote: >>> >>> On 4/16/2011 4:33 PM, Christopher Dedels wrote: >>> >>> Thanks for the suggestion. I have tried it and it >>> appears to >>> have no >>> effect. >>> >>> Chris >>> >>> >>> On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge >>> >>> > >>> >>> >>> >> >>> wrote: >>> >>> Try changing the layer status to default, ie: >>> >>> STATUS DEFAULT >>> >>> -Steve W >>> >>> >>> On 4/16/2011 2:22 PM, Christopher Dedels wrote: >>> >>> I am having some problems adding a raster layer >>> to my >>> map. The >>> image >>> produced by mapserver is blank. My mapfile is >>> as follows: >>> >>> MAP >>> SIZE 800 600 >>> UNITS meters >>> >>> >>> This is a problem, Your UNITs are meters, but your extents and >>> projection are DD! >>> >>> >>> EXTENT -123.8600311 38.0116386 >>> -97.1885986 >>> 53.7055626 >>> >>> PROJECTION >>> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >>> END >>> >>> LAYER >>> NAME "grid" >>> TYPE RASTER >>> DATA "/tmp/image.tiff" >>> STATUS ON >>> PROJECTION >>> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" >>> END >>> END >>> END >>> >>> I have also noticed that changing the DATA path to >>> a >>> file which >>> does not >>> exist in the filesystem (or is not a >>> GDAL-supported file >>> format) >>> has no >>> effect on the rendered output and does not >>> produce an >>> error message. >>> >>> Can somebody help me where I am going wrong? >>> >>> 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 >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >> 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 Jukka.Rahkonen at mmmtike.fi Mon Apr 18 01:18:44 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 18 Apr 2011 11:18:44 +0300 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews Message-ID: Hi, I am sometimes getting images with totally odd colours with MS 6.0 beta 6 (and the previous beta versions) with format image/png; mode=8bit. I have been doing some testing and I believe I can now reproduce the error. The error happens only if the raster image has overviews. If I delete or rename the external .ovr file the 8bit png output is correct at any scales. To be sure that there is nothing odd with the overview file I recreated it with FWTools v. 2.4.2 by using a basic command gdaladdo -r average -ro suomi1m.tif 2 4 8 I prepared also my own outputformat so I could compare the outputs from MS 6.0 and older MS 5.6.5 version. This is my outputformat which I have understood to mean just the same as the inbuild MS 6.0 outputformat "image/png; mode=8bit". OUTPUTFORMAT NAME 'AGG_Q' MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END With this outputformat the resulting map is correct with MS 5.6.5 at any scales even if the .ovr file is in use. My conclusion is that exectly MS 6.0 version is creating at some scales through ADD driver an 8 bit png output with messed up colours, but it happens only if the source image has overviews. If someone is interested in having a look at this I can prepare and send my mapfile and some imagery to play with. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Apr 18 01:26:11 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 18 Apr 2011 10:26:11 +0200 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews In-Reply-To: References: Message-ID: Jukka, please create a ticket and attach your test case, I'll have a look. thanks, thomas On Mon, Apr 18, 2011 at 10:18, Rahkonen Jukka wrote: > Hi, > > I am sometimes getting images with totally odd colours with MS 6.0 beta 6 > (and the previous beta versions) with format image/png; mode=8bit.? I have > been doing some testing and I believe I can now reproduce the error. > > The error happens only if the raster image has overviews.?If I delete or > rename the external .ovr file the 8bit png output is correct at any scales. > To be sure that there is nothing odd with the overview file I recreated it > with FWTools v. 2.4.2 by using a basic command > gdaladdo -r average -ro suomi1m.tif 2 4 8 > > I prepared also my own outputformat so I could compare the outputs from?MS > 6.0 and older MS 5.6.5 version.?This is my outputformat which I have > understood to?mean just the same as the inbuild MS 6.0 outputformat > "image/png; mode=8bit". > OUTPUTFORMAT > ????? NAME 'AGG_Q' > ????? MIMETYPE "image/png" > ????? DRIVER "AGG/PNG" > ????? EXTENSION "png" > ????? IMAGEMODE RGB > ????? FORMATOPTION "QUANTIZE_FORCE=ON" > ????? FORMATOPTION "QUANTIZE_DITHER=OFF" > ????? FORMATOPTION "QUANTIZE_COLORS=256" > ? END > > With this outputformat the resulting map is correct with MS 5.6.5 at any > scales even if the .ovr file is in use. > > My conclusion is that exectly MS 6.0 version is creating at some scales > through ADD driver an 8 bit png?output with messed up colours, but it > happens only if the source image has overviews. > > If someone is interested in having a look at this I can prepare and send my > mapfile and some imagery to play with. > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From LCLARK at GENASYS.COM Mon Apr 18 04:25:39 2011 From: LCLARK at GENASYS.COM (LewInMadrid) Date: Mon, 18 Apr 2011 04:25:39 -0700 (PDT) Subject: [mapserver-users] MapServer map-file for NAVSTREETS anyone? Message-ID: <1303125939232-6283280.post@n2.nabble.com> Does anyone have a MapServer mapfile for Navteq NAVSTREETS data that they could let me have? Regards, Lew. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-map-file-for-NAVSTREETS-anyone-tp6283280p6283280.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Johan.Hallgren at sweco.se Fri Apr 15 02:50:03 2011 From: Johan.Hallgren at sweco.se (Hallgren Johan) Date: Fri, 15 Apr 2011 11:50:03 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: Hello again Tamas, I changed the lines as I understould I should, but i did not see any change. I still get the "CURLOPT_PROXYAUTH not supported. Requires Curl 7.10.7 and up. *_proxy_auth_type setting ignored" when I use drawmap. Still with shp2img it runs fine. !IFDEF MS_WXS echo WMS=-DUSE_WMS_SVR >> $(OUTPUT_DIR)\mapserver.opt # echo CURL=-DUSE_CURL >> $(OUTPUT_DIR)\mapserver.opt echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt echo WMSCLIENT=-DUSE_WMS_LYR >> $(OUTPUT_DIR)\mapserver.opt echo CURL_DIR=$(BASE_DIR)\$(CURL_DIR) >> $(OUTPUT_DIR)\mapserver.opt echo CURL_INC=-I$(BASE_DIR)\$(CURL_DIR)/include >> $(OUTPUT_DIR)\mapserver.opt echo CURL_LIB=$(BASE_DIR)\$(CURL_DIR)\lib\libcurl_imp.lib >> $(OUTPUT_DIR)\mapserver.opt echo $(CURL_DIR) >> $(OUTPUT_DIR)\doc\ms_deps.txt echo WINSOCK_LIB =WS2_32.Lib >> $(OUTPUT_DIR)\mapserver.opt echo WFSCLIENT= -DUSE_WFS_LYR >> $(OUTPUT_DIR)\mapserver.opt echo WFS=-DUSE_WFS_SVR >> $(OUTPUT_DIR)\mapserver.opt echo WCS=-DUSE_WCS_SVR >> $(OUTPUT_DIR)\mapserver.opt !ENDIF I build with: nmake ms and nmake ms_csharp Must I do any other steps? Could I see the support of curl_proxy at the client bin? :) Johan ________________________________ Johan Hallgren Gruppchef Telefon direkt 023-464 92 Mobil 073-800 64 92 johan.hallgren at sweco.se Sweco Position AB Parkgatan 3 Box 1902 791 19 Falun Telefon 023-464 00 www.sweco.se [cid:image001.png at 01CBFB63.42094930] [cid:image002.png at 01CBFB63.42094930]Please consider the environment before printing my e-mail. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: den 14 april 2011 22:37 To: MapserverList OSGEO Subject: Re: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" Johan, It is indeed not enabled by default and this flag hasn't been added to nmake.opt (this may be reported as a ticket which should be fixed). If you are using the build SDKs I've just added this flag to the builds (will be available in the next build tomorrow). If you prefer to compile this by using the SDK packages just replace the row: echo CURL=-DUSE_CURL >> $(OUTPUT_DIR)\mapserver.opt with echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt in the Makefile. I hope that will help. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 31553 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 181 bytes Desc: image002.png URL: From szekerest at gmail.com Fri Apr 15 12:34:35 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 15 Apr 2011 21:34:35 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: I need to correct myself and you'll require to use the following setting instead: *echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt * Best regards, Tamas * * 2011/4/15 Hallgren Johan > Hello again Tamas, > > > > I changed the lines as I understould I should, but i did not see any > change. I still get the ?CURLOPT_PROXYAUTH not supported. Requires Curl > 7.10.7 and up. *_proxy_auth_type setting ignored? when I use drawmap. Still > with shp2img it runs fine. > > > > !IFDEF MS_WXS > > echo WMS=-DUSE_WMS_SVR >> $(OUTPUT_DIR)\mapserver.opt > > # echo CURL=-DUSE_CURL >> $(OUTPUT_DIR)\mapserver.opt > > echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH >> > $(OUTPUT_DIR)\mapserver.opt > > echo WMSCLIENT=-DUSE_WMS_LYR >> > $(OUTPUT_DIR)\mapserver.opt > > echo CURL_DIR=$(BASE_DIR)\$(CURL_DIR) >> > $(OUTPUT_DIR)\mapserver.opt > > echo CURL_INC=-I$(BASE_DIR)\$(CURL_DIR)/include >> > $(OUTPUT_DIR)\mapserver.opt > > echo CURL_LIB=$(BASE_DIR)\$(CURL_DIR)\lib\libcurl_imp.lib >> > $(OUTPUT_DIR)\mapserver.opt > > echo $(CURL_DIR) >> $(OUTPUT_DIR)\doc\ms_deps.txt > > echo WINSOCK_LIB =WS2_32.Lib >> > $(OUTPUT_DIR)\mapserver.opt > > echo WFSCLIENT= -DUSE_WFS_LYR >> > $(OUTPUT_DIR)\mapserver.opt > > echo WFS=-DUSE_WFS_SVR >> $(OUTPUT_DIR)\mapserver.opt > > echo WCS=-DUSE_WCS_SVR >> $(OUTPUT_DIR)\mapserver.opt > > !ENDIF > > > > I build with: nmake ms and nmake ms_csharp > > > > Must I do any other steps? > > Could I see the support of curl_proxy at the client bin? > > > > J > > Johan > ------------------------------ > > *Johan Hallgren* > > Gruppchef > Telefon direkt 023-464 92 > Mobil 073-800 64 92 > johan.hallgren at sweco.se > > *Sweco Position AB* > > Parkgatan 3 > Box 1902 > 791 19 Falun > Telefon 023-464 00 > www.sweco.se > > > > > > > > Please consider the environment before printing my e-mail. > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Tamas Szekeres > *Sent:* den 14 april 2011 22:37 > *To:* MapserverList OSGEO > > *Subject:* Re: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not > supported" > > > > > > > Johan, > > It is indeed not enabled by default and this flag hasn't been added to > nmake.opt (this may be reported as a ticket which should be fixed). > If you are using the > build SDKs I've just added this flag to the > builds (will be available in the next build tomorrow). > > > > If you prefer to compile this by using the SDK packages just replace the > row: > > *echo CURL=-DUSE_CURL >> $(OUTPUT_DIR)\mapserver.opt > *with > *echo CURL=-DUSE_CURL -DCURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt* > in the Makefile. > > I hope that will help. > > Best regards, > > Tamas > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 31553 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 181 bytes Desc: not available URL: From v.billard at ellipsa.com Mon Apr 18 04:58:17 2011 From: v.billard at ellipsa.com (Vinc) Date: Mon, 18 Apr 2011 13:58:17 +0200 Subject: [mapserver-users] how to install PHP MapScript extension on Windows wihtout Ms4w ? Message-ID: Hello, For our development, I'd really like to use the wonderful and promising PHP MapScript extension. I'm developing under Windows, the final application is hosted on a Linux server. It theoretically should be no problem since MapServer and its PHP MapScript extension are available under both Linux and Windows. Unfortunately PHP MapScript for Windows is only provided with the Ms4w package. Ms4w is a Windows installation that bundles several tools including (but not only) Apache, PHP, MySQL. But I have already my own WAMP (stands for Windows+Apache+MySQL+Php) configuration (it's Wampserver 2.1e), and the Ms4w bundle is too much for me. So I've tried to isolate the PHP MapScript extension from Ms4w package. Unfortunately without success. I've downloaded Ms4w last version 3.0.2, it has PHP 5.3.6, (I have PHP 5.3.5). I've copied the "php_mapscript.dll" under my own "ext" directory and I've added the line "extension=php_mapscript.dll" in my "PHP.ini" file, and I have the error message when restarting Apache: *** PHP Startup: Unable to load dynamic library "./php5.3.5/ext/php_mapscript.dll". The specified module could not be found *** It's clear that the "php_mapscript.dll" file has dependencies with other DLLs, but which ones? In Ms4w, the "README_INSTALL.txt" file has a section "K. Installing the MS4W MapServer Binaries in Other Environments". Unfortunately this section is not up-to-date because all the listed DLL are not included in the Ms4w package. And even if I copy all DLL from the "cgi-bin" and 'ext' of Ms4w directories and copy them to my own "cgi-bin" directory, then I have the same result. Idem if I copy all those DLLs under my "ext" directory. Does anyone have already faced this problem? Would you know if it's possible to have an up-to-date "howto" that explain how to install PHP MapScript for Windows in an independent PHP environment? And is it possible to know the dependencies of "php_mapscript.dll"? Regards, Vinc -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Mon Apr 18 05:14:03 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Mon, 18 Apr 2011 14:14:03 +0200 Subject: [mapserver-users] how to install PHP MapScript extension on Windows wihtout Ms4w ? In-Reply-To: References: Message-ID: Hello, I can only help you about how to see dll dependencies. For this, use http://www.dependencywalker.com Regards ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: From Johan.Hallgren at sweco.se Mon Apr 18 11:01:17 2011 From: Johan.Hallgren at sweco.se (Hallgren Johan) Date: Mon, 18 Apr 2011 20:01:17 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" References: Message-ID: Never ending storry:) Sorry to disturb you again. I did your changes (echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH >> $(OUTPUT_DIR)\mapserver.opt), no change. Still the same error. As I mentioned before, the wms call works with shp2img, but gives the CURL error with drawmap. I used wireshark to monitor the network traffic and I did not see any difference. Actually it seemed as the png-image was returned over the network in both cases, but did not return as file with drawmap. Any other ideas? Best Regards Johan -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Apr 18 13:34:03 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 18 Apr 2011 22:34:03 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: 2011/4/18 Hallgren Johan > Never ending storryJ > > > > Sorry to disturb you again. > > > > I did your changes (echo CURL=-DUSE_CURL -DUSE_CURLOPT_PROXYAUTH >> > $(OUTPUT_DIR)\mapserver.opt), no change. Still the same error. > > > > As I mentioned before, the *wms call works with shp2img*, but gives the > CURL error with drawmap. > > > > Seems like libmap.dll is different when shpimg and drawmap is used. You may also use the process monitorto see where the dll-s are coming from actually. BTW: I've noticed that MapServer 5-6 requires -DCURLOPT_PROXYAUTH but 6-0 requires -DUSE_CURLOPT_PROXYAUTH. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From gustafson.erik at gmail.com Tue Apr 19 00:32:27 2011 From: gustafson.erik at gmail.com (Erik Gustafson) Date: Tue, 19 Apr 2011 09:32:27 +0200 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews In-Reply-To: References: Message-ID: > On Mon, Apr 18, 2011 at 10:18, Rahkonen Jukka wrote: >> Hi, >> >> I am sometimes getting images with totally odd colours with MS 6.0 beta 6 >> (and the previous beta versions) with format image/png; mode=8bit.? I have >> been doing some testing and I believe I can now reproduce the error. >> >> The error happens only if the raster image has overviews.?If I delete or >> rename the external .ovr file the 8bit png output is correct at any scales. >> To be sure that there is nothing odd with the overview file I recreated it >> with FWTools v. 2.4.2 by using a basic command >> gdaladdo -r average -ro suomi1m.tif 2 4 8 >> [snip] >> >> My conclusion is that exectly MS 6.0 version is creating at some scales >> through ADD driver an 8 bit png?output with messed up colours, but it >> happens only if the source image has overviews. >> >> If someone is interested in having a look at this I can prepare and send my >> mapfile and some imagery to play with. >> >> -Jukka Rahkonen- Hello, I have a similar problem on vector data, possibly related. The color problem appears when quantize is enabled and a large amount if data is rendered. I can trigger the bug with mapfile below: MAP OUTPUTFORMAT NAME "png" DRIVER "agg/png" FORMATOPTION QUANTIZE_FORCE=on END LAYER NAME corine DATA "corine" TYPE polygon CLASS NAME ALL2 EXPRESSION ([area_ha] < 1000) STYLE COLOR 0 0 255 END END CLASS NAME ALL EXPRESSION ([area_ha] < 1500) STYLE COLOR 255 0 0 END END CLASS NAME ALL #EXPRESSION ([area_ha] < 1500) STYLE COLOR 0 255 0 END END END END ~ To trigger the bug I need at least two classes with different colors. If I use a single color or if I render only a subset of the data the colors look good. I do not have a test case yet as the data used is not free. I will try to create one but it might take a few days. Just writing this to note that problem may not be related to the overviews but the quantizing itself. Another note: If I add and OUTLINECOLOR and WIDTH=1 in the style definition the problem seems heal the bug, I guess thats because fewer antialiasing colors are generated. No problem with this mapfile on Mapserver 5.6. /Erik From thomas.bonfort at gmail.com Tue Apr 19 00:39:26 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Apr 2011 09:39:26 +0200 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews In-Reply-To: References: Message-ID: please test with trunk and report back if you're still having the error: http://trac.osgeo.org/mapserver/ticket/3848 -- thomas On Tue, Apr 19, 2011 at 09:32, Erik Gustafson wrote: >> On Mon, Apr 18, 2011 at 10:18, Rahkonen Jukka wrote: >>> Hi, >>> >>> I am sometimes getting images with totally odd colours with MS 6.0 beta 6 >>> (and the previous beta versions) with format image/png; mode=8bit.? I have >>> been doing some testing and I believe I can now reproduce the error. >>> >>> The error happens only if the raster image has overviews.?If I delete or >>> rename the external .ovr file the 8bit png output is correct at any scales. >>> To be sure that there is nothing odd with the overview file I recreated it >>> with FWTools v. 2.4.2 by using a basic command >>> gdaladdo -r average -ro suomi1m.tif 2 4 8 >>> > [snip] >>> >>> My conclusion is that exectly MS 6.0 version is creating at some scales >>> through ADD driver an 8 bit png?output with messed up colours, but it >>> happens only if the source image has overviews. >>> >>> If someone is interested in having a look at this I can prepare and send my >>> mapfile and some imagery to play with. >>> >>> -Jukka Rahkonen- > > > Hello, I have a similar problem on vector data, possibly related. > The color problem appears when quantize is enabled and a large amount > if data is rendered. I can trigger the bug with mapfile below: > > MAP > ? OUTPUTFORMAT > ? ? ? NAME "png" > ? ? ? DRIVER "agg/png" > ? ? ? FORMATOPTION QUANTIZE_FORCE=on > ? END > ? LAYER > ? ? ? NAME corine > ? ? ? DATA "corine" > ? ? ? TYPE polygon > ? ? ? CLASS > ? ? ? ? ? NAME ALL2 > ? ? ? ? ? EXPRESSION ([area_ha] < 1000) > ? ? ? ? ? STYLE > ? ? ? ? ? ? ? COLOR 0 0 255 > ? ? ? ? ? END > ? ? ? END > ? ? ? CLASS > ? ? ? ? ? NAME ALL > ? ? ? ? ? EXPRESSION ([area_ha] < 1500) > ? ? ? ? ? STYLE > ? ? ? ? ? ? ? COLOR 255 0 0 > ? ? ? ? ? END > ? ? ? END > ? ? ? CLASS > ? ? ? ? ? NAME ALL > #EXPRESSION ([area_ha] < 1500) > ? ? ? ? ? STYLE > ? ? ? ? ? ? ? COLOR 0 255 0 > ? ? ? ? ? END > ? ? ? END > ? END > END > ~ > To trigger the bug I need at least two classes with different colors. > If I use a single color or if I render only a subset of the data the > colors look good. I do not have a test case yet as the data used is > not free. I will try to create one but it might take a few days. Just > writing this to note that problem may not be related to the overviews > but the quantizing itself. > > Another note: If I add and OUTLINECOLOR and WIDTH=1 in the style > definition the problem seems heal the bug, I guess thats because fewer > antialiasing colors are generated. > > No problem with this mapfile on Mapserver 5.6. > > ?/Erik > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gustafson.erik at gmail.com Tue Apr 19 01:14:02 2011 From: gustafson.erik at gmail.com (Erik Gustafson) Date: Tue, 19 Apr 2011 10:14:02 +0200 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews In-Reply-To: References: Message-ID: On Tue, Apr 19, 2011 at 9:39 AM, thomas bonfort wrote: > please test with trunk and report back if you're still having the > error: http://trac.osgeo.org/mapserver/ticket/3848 My test case from yesterday has correct colors with trunk of today! The resulting image went from 56kb to 130kb though. (512x512pixels, 3 colors defined in mapfile). With mapserver 5.6.6 the image size is 74kb. I'm using shp2img and default settings in outputformat as shown in the mapfile earlier in this thread. Maybe some default setting has changed between 5.6 and 6.0? Regards Erik Gustafson From thomas.bonfort at gmail.com Tue Apr 19 01:27:47 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Apr 2011 10:27:47 +0200 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews In-Reply-To: References: Message-ID: Erik, the png compression that is applied is now configurable, and defaults to "6". You can set it as it was by default in 5.6 for quantized output with FORMATOPTION "COMPRESSION=9" please post your image size after the change. -- thomas On Tue, Apr 19, 2011 at 10:14, Erik Gustafson wrote: > On Tue, Apr 19, 2011 at 9:39 AM, thomas bonfort > wrote: >> please test with trunk and report back if you're still having the >> error: http://trac.osgeo.org/mapserver/ticket/3848 > > My test case from yesterday has correct colors with trunk of today! > The resulting image went from 56kb to 130kb though. (512x512pixels, 3 > colors defined in mapfile). With mapserver 5.6.6 the image size is > 74kb. > > I'm using shp2img and default settings in outputformat as shown in the > mapfile earlier in this thread. Maybe some default setting has changed > between 5.6 and 6.0? > > Regards > Erik Gustafson > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gustafson.erik at gmail.com Tue Apr 19 01:44:10 2011 From: gustafson.erik at gmail.com (Erik Gustafson) Date: Tue, 19 Apr 2011 10:44:10 +0200 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews In-Reply-To: References: Message-ID: On Tue, Apr 19, 2011 at 10:27 AM, thomas bonfort wrote: > Erik, > the png compression that is applied is now configurable, and defaults > to "6". You can set it as it was by default in 5.6 for quantized > output with > FORMATOPTION "COMPRESSION=9" > > please post your image size after the change. > Mapserver 5.6: 74kb Mapserver 6, compression 1: 133kb Mapserver 6, compression 9: 129kb I'm on deep water now because I do not know much about the png-format. But, by looking at the output from gdalinfo the image from mapserver 5 seems to have most colors set to rgba 255,255,255,255 rio% gdalinfo out_v5.png|sed '1,/Color Table/d'|head -20 0: 255,255,255,255 1: 8,139,121,255 2: 255,255,255,255 3: 255,255,255,255 4: 5,202,56,255 5: 140,199,90,255 6: 255,255,255,255 7: 81,201,28,255 8: 207,135,90,255 9: 255,255,255,255 10: 255,255,255,255 11: 255,255,255,255 12: 140,138,170,255 13: 255,255,255,255 14: 95,95,132,255 15: 255,255,255,255 16: 255,255,255,255 17: 255,255,255,255 18: 255,255,255,255 19: 255,255,255,255 rio% gdalinfo out_compression9_v6.png|sed '1,/Color Table/d'|head -20 0: 22,253,20,255 1: 6,253,6,255 2: 0,249,0,255 3: 6,253,10,255 4: 0,253,4,255 5: 16,253,18,255 6: 20,20,255,255 7: 6,253,8,255 8: 80,80,255,255 9: 96,94,253,255 10: 102,102,255,255 11: 0,239,16,255 12: 74,76,255,255 13: 64,64,255,255 14: 8,249,16,255 15: 161,255,161,255 16: 34,253,36,255 17: 26,26,255,255 18: 0,235,18,255 19: 0,245,10,255 /Erik From thomas.bonfort at gmail.com Tue Apr 19 01:51:08 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Apr 2011 10:51:08 +0200 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews In-Reply-To: References: Message-ID: ok, I see where the issue is arising from: in 5.x you were using gd's quantization algorithm, which to put it frankly, sucked badly (i.e. note the duplicate entries in the color table which are a waste of quality). the current quantization algorithm is much higher quality, and thus produces heavier images. If you want to return to something like GD, try lowering the number of colors , e.g. QUANTIZE_COLORS=64 . Although I'm not sure if by doing that the zlib compression will be able to squeeze the final size down. As before, please post back your findings if you try! -- thomas On Tue, Apr 19, 2011 at 10:44, Erik Gustafson wrote: > On Tue, Apr 19, 2011 at 10:27 AM, thomas bonfort > wrote: >> Erik, >> the png compression that is applied is now configurable, and defaults >> to "6". You can set it as it was by default in 5.6 for quantized >> output with >> FORMATOPTION "COMPRESSION=9" >> >> please post your image size after the change. >> > > Mapserver 5.6: 74kb > Mapserver 6, compression 1: 133kb > Mapserver 6, compression 9: 129kb > > I'm on deep water now because I do not know much about the png-format. > But, by looking at the output from gdalinfo the image from mapserver 5 > seems to have most colors set to rgba 255,255,255,255 > > > rio% gdalinfo out_v5.png|sed '1,/Color Table/d'|head -20 > ? ?0: 255,255,255,255 > ? ?1: 8,139,121,255 > ? ?2: 255,255,255,255 > ? ?3: 255,255,255,255 > ? ?4: 5,202,56,255 > ? ?5: 140,199,90,255 > ? ?6: 255,255,255,255 > ? ?7: 81,201,28,255 > ? ?8: 207,135,90,255 > ? ?9: 255,255,255,255 > ? 10: 255,255,255,255 > ? 11: 255,255,255,255 > ? 12: 140,138,170,255 > ? 13: 255,255,255,255 > ? 14: 95,95,132,255 > ? 15: 255,255,255,255 > ? 16: 255,255,255,255 > ? 17: 255,255,255,255 > ? 18: 255,255,255,255 > ? 19: 255,255,255,255 > rio% gdalinfo out_compression9_v6.png|sed '1,/Color Table/d'|head -20 > ? ?0: 22,253,20,255 > ? ?1: 6,253,6,255 > ? ?2: 0,249,0,255 > ? ?3: 6,253,10,255 > ? ?4: 0,253,4,255 > ? ?5: 16,253,18,255 > ? ?6: 20,20,255,255 > ? ?7: 6,253,8,255 > ? ?8: 80,80,255,255 > ? ?9: 96,94,253,255 > ? 10: 102,102,255,255 > ? 11: 0,239,16,255 > ? 12: 74,76,255,255 > ? 13: 64,64,255,255 > ? 14: 8,249,16,255 > ? 15: 161,255,161,255 > ? 16: 34,253,36,255 > ? 17: 26,26,255,255 > ? 18: 0,235,18,255 > ? 19: 0,245,10,255 > > ?/Erik > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gustafson.erik at gmail.com Tue Apr 19 02:01:17 2011 From: gustafson.erik at gmail.com (Erik Gustafson) Date: Tue, 19 Apr 2011 11:01:17 +0200 Subject: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews In-Reply-To: References: Message-ID: On Tue, Apr 19, 2011 at 10:51 AM, thomas bonfort wrote: > ok, I see where the issue is arising from: in 5.x you were using gd's > quantization algorithm, which to put it frankly, sucked badly (i.e. > note the duplicate entries in the color table which are a waste of > quality). > the current quantization algorithm is much higher quality, and thus > produces heavier images. If you want to return to something like GD, > try lowering the number of colors , e.g. QUANTIZE_COLORS=64 . Although > I'm not sure if by doing that the zlib compression will be able to > squeeze the final size down. As before, please post back your findings > if you try! With quantize_colors 64 the size is reduced to 101kb, with 32 colors the size is 87kb and the quality i still good. I think this should be mentioned in migration.txt! Also, the documentation for 5.6 says http://mapserver.org/mapfile/outputformat.html: ?QUANTIZE_COLORS=256? used to specify the number of colors to be used when applying quantization. Maximum value is 256. Specifying anything between 17 and 255 is probably a waste of quality as each pixel is still encoded with a full byte. Specifying a value under 16 will produce tiny images, but severly degraded. I think it will be hard to specify good values for quantize_colors as this is really dependent of the scale used (thinking WMS). An enhancement for Mapserver 6.1 would be some sort of auto tuning? Thanks for the support! /Erik From szekerest at gmail.com Tue Apr 19 04:48:23 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 19 Apr 2011 13:48:23 +0200 Subject: [mapserver-users] Windows SDK support (at vbkto.dyndns.org) site has been relocated Message-ID: Looks like my account on dyndns has been lost :-( Since I'm getting tired to update the account in every month, I've already registered a domain to point to this location which is: http://www.gisinternals.com/sdk/ If you have any links or bookmarks to point to the support site then update them to refer to this new location. The old URL is considered to be deprecated from now. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From tiedtke at gmail.com Tue Apr 19 09:22:24 2011 From: tiedtke at gmail.com (Thiago Tiedtke dos Reis) Date: Tue, 19 Apr 2011 13:22:24 -0300 Subject: [mapserver-users] Tcl Mapscript in 5.6 Message-ID: Hi Everybody, At some months ago, I was trying to compile and run the Mapscript extension in Tcl scripts. In Linux, with a little patch, this was easily solved, and the extension was generated, providing the methods, objetcs, etc in the Tcl scripts... In Windows, was a little bit hard, due the problems with DLL Panic, unresolved references of library in linkage,etc, but the extension was generated too. In my dept, we are using these extension in our system, with great sucess. But the procedures to compile the extension in windows is a workaround, nothing automated like the configure + make, or in my case, nmake ms-tcl (like build prodecures of Tamas sdk). I used the last release of sdk and libs provided by Tamas (5.6.6) to compile the dll extension: http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1500-gdal-1-8-0-mapserver-5-6-6.zip I applied this patch: trac.osgeo.org/mapserver/raw-attachment/ticket/1533/tclmodule.i And all features that I know in PHP mapscript (e.g.) now are avaliable in Tcl, including the dynamic objects creation. A interesting development that we are using, is put the mapscript process to run in a different Tcl Thread, this is nice for user interfaces. By the way, using these patch: http://tcl-map.googlecode.com/files/gdal-1.6.1-tcl_bindings.diff (with some diferences of lines), easily I generated the extension of gdal 1.8 to be loaded in Tcl scripts. I used Visual Studio 2008 to generate the extension, but the intention do this using mingw (I have not yet succeeded, due incompatibilities of dll dependencies). I believe that the update of tcl mapscript (stopped in version 3.5 of mapserver) can be easily (or not ... :| ) updated to current version of mapserver, with little modifications in makefiles of gcc and nmake. If Anyone have insterest, suggestions, mail-me. Best Regards, Eng. Msc. Thiago Tiedtke dos Reis Research and Development Department Engemap - Geoinformation www.engemap.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Tue Apr 19 14:11:01 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 19 Apr 2011 14:11:01 -0700 (PDT) Subject: [mapserver-users] Yet another Dynamic WMS server question Message-ID: <1303247461075-6288703.post@n2.nabble.com> Similar to the type of thing I'm doing in: http://osgeo-org.1803224.n2.nabble.com/Changing-map-file-parameter-Label-Color-via-URL-td5771138.html We have a dynamic map file that we use to display a number of dynamically generated pieces of information. Currently, the Map file has a projection defined and, as long as we're working with data that is in that projection, all is well. However, sometimes we're working with data in a different projection, so my question is whether it is possible to tell MapServer what the projection of the data is in within the WMS request also? So, given a URL like this: http:///dynamicWms_en?map.layer[mylayer]=DATA+'path2/shapefile'+END&LAYERS=mylayer&FORMAT=image/png&SRS=EPSG:2957&... I'd like to introduce something like: "map.projection='init%22epsg:2957'" to indicate what projection the data the map file is pointing to is in that projection. Is that even possible? And, if yes, can anyone give me an idea what the syntax is because I've been trying and can't get it to work. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Yet-another-Dynamic-WMS-server-question-tp6288703p6288703.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cdedels at gmail.com Tue Apr 19 17:20:02 2011 From: cdedels at gmail.com (Christopher Dedels) Date: Tue, 19 Apr 2011 20:20:02 -0400 Subject: [mapserver-users] Colorrange in Mapserver Message-ID: Can somebody tell me how to use a colorrange in Mapserver? Based on some research, I have the following in my mapfile. Unfortunately my raster shows up in grey scale. MAP SIZE 800 500 UNITS dd EXTENT -123.893740048754 46.1485674734785 -123.773066332134 46.2230446882423 PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" END IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END LAYER NAME "Gradient" TYPE RASTER DATA "/tmp/grid5m7rmd.tif" STATUS DEFAULT PROJECTION "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" END CLASS STYLE COLORRANGE 0 255 255 255 255 0 DATARANGE 0.0 100.0 RANGEITEM "[pixel]" END END END END I am using Mapserver 4.8.1. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Tue Apr 19 19:11:20 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Tue, 19 Apr 2011 19:11:20 -0700 (PDT) Subject: [mapserver-users] Mapserver metadata In-Reply-To: Message-ID: <873734.77591.qm@web33203.mail.mud.yahoo.com> Hi, The mapserver docs describe map & layer level metadata. eg: Map object: wms_abstract WMS TAG Name: Abstract (WMS1.1.1, sect. 7.1.4.2) Description: (Optional) A blurb of text providing more information about the WMS server. Layer object: wms_abstract Same as wms_abstract in the Web Object. What is not clear to me is whether a layer will automatically and explicitly inherit the map object content if there is no layer level item present, and whether the layer level content will supercede the map level content if present. Thus, if I set a map object attribution content, or keywords, will these explicitly apply to every layer described in a capabilities document, or is it up to the client application to apply map level content to the layer objects. Thanks, ? Brent Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From gustafson.erik at gmail.com Wed Apr 20 00:59:22 2011 From: gustafson.erik at gmail.com (Erik Gustafson) Date: Wed, 20 Apr 2011 09:59:22 +0200 Subject: [mapserver-users] Mapserver6 calls exit() in FastCGI-mode Message-ID: Hello list, when Mapserver 5 got a WMS request like this: mapserv?request=getcapabilities&map=mymap.map it responded with an wms_exception saying that the SERVICE parameter was missing. Mapserver 6 can not decide if the request if for a wms service or another ows service and responds with: mapserv(): Web application error. Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. The problem is that the error from Mapserver 6, apart from its user unfriendlyness for ows-requests, is reported by writeError() in mapserv.c which calls exit() even if we are running under FastCGI. As this error is non fatal I consider this a bug. Less important: I also think mapserver could be a bit more helpful. An error message like: Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none was provided. For OWS-requests the SERVICE-parameter is needed. Or maybe msOWSDispatch could check for all known requests (getmap, getcapabilities, etc) and return an exception instead of returning MS_DONE to mapserv.c -- Erik Gustafson From cnieman at dmsolutions.ca Wed Apr 20 06:20:25 2011 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 20 Apr 2011 09:20:25 -0400 Subject: [mapserver-users] Problems with png output when using libpng 1.5 Message-ID: <4DAEDD99.7040304@dmsolutions.ca> Hi, I compiled MapServer 6.0 beta6 against libpng 1.5.2 and encountered the following problems: * when using the default png IMAGETYPE (i.e. no OUTPUTFORMAT block), I got yellow & striped maps (see cyprus.png) * when using the AGG/PNG driver and IMAGEMODE "RGBA", the output image looks fine * when using the default png8 IMAGETYPE, the output image looks fine I also compiled with cairo, and with the driver set to CAIRO/PNG, I had the same yellow & striped maps. With libpng 1.2.44, everything seems to work properly. Has anyone else seen this problem with libpng 1.5? Should it work properly with MapServer? Regards, Christy -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cyprus.png Type: image/png Size: 43530 bytes Desc: not available URL: From yassefa at dmsolutions.ca Wed Apr 20 06:47:45 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 20 Apr 2011 09:47:45 -0400 Subject: [mapserver-users] SLD support: Anyone for fixing 5 yr old tickets? In-Reply-To: <53D7A0A1A7E1B94689D14547F9262CF60B0BA004@resc-ex002.res.adroot.dk> References: <53D7A0A1A7E1B94689D14547F9262CF60B0BA004@resc-ex002.res.adroot.dk> Message-ID: <4DAEE401.9070005@dmsolutions.ca> Hi there, I have updated both issues in trac. It would be good if you could add yourself in cc in the bugs and comment on them. I agree that #1166 is still relevant and could be fixed for 6.2. I am not sure if #1602 is something that needs to be done and fits the way the specs describe sld and wms. best regards, On 15/04/2011 9:39 AM, Hollingbery, Julian wrote: > > Hi list, > > I have just joined the list for the following reason: We have been > running SLD-enabled WMS services for some years now, on a closed > source platform. For that, and several other reasons, we are now > looking at using MapServer as a replacement. I have compared our > existing platform and MapServer 5.6.6, and have noticed a couple of > incompatibilities. After having looked around, I find that both of > these issues exist as old tickets: > > _http://trac.osgeo.org/mapserver/ticket/1602_ > _http://trac.osgeo.org/mapserver/ticket/1166_ > > We do not have the developer resources to provide patches, so I am > looking for someone to do it for us. Our migration is organized as a > project, for which we have some funds. Therefore, I am looking for > someone who would be willing to provide me with an estimate of what it > would cost (time and/or money) to come up with a patch. > > Regarding #1602, what I would like to achieve is to highlight an > object given by a ogc:Filter, while rendering the remaining objects in > that layer in the default style. I could of course use an ElseFilter, > but since this is a question of providing backward compatibility, I'd > prefer not to. It is not exactly the same thing as in #1602, but it > seems to me that it might be the same fix. > > My particular SLD looks something like this: > > xmlns="http://www.opengis.net/sld" > xmlns:ogc="http://www.opengis.net/ogc"> > > Jordstykke > > > > > > > landsejerlavskode > 90552 > > > matrikelnummer > 7fv > > > > > > #0000FF > 1 > > > #FF0000 > 3 > > > > > > > > Jordstykke > > default > > > > > > Thanks in advance, > Julian Hollingbery > Danish Ministry of The Environment, National Survey and Cadastre > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpass at bgs.ac.uk Wed Apr 20 07:12:28 2011 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Wed, 20 Apr 2011 15:12:28 +0100 Subject: [mapserver-users] MapServer 6.0.0-beta6 Incorrect error response to missing parameter In-Reply-To: <20110420132834.E0500E02083@lists.osgeo.org> References: <20110420132834.E0500E02083@lists.osgeo.org> Message-ID: <4DC99887ECFBA1499899FACCDFF7F21A1FAC8D6DCE@nerckwmb1.ad.nerc.ac.uk> When I omit the request=GetCapabilities parameter on the below request http://ogcdev.bgs.ac.uk/cgi-bin/BGS_Bedrock_and_Superficial_Geology/wms?service=wms& The exception reported is: msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing msOutputFormatValidate(): General error message. OUTPUTFORMAT png has IMAGEMODE RGB/RGBA, which is not supported for GD drivers. I believe this is incorrect. When the service parameter is specified the request can only be GetCapabilities. For a GetCapabilities request the version parameter is optional. The error should therefore report: msWMSDispatch(): WMS server error. Incomplete WMS request: REQUEST parameter missing. James James Passmore GIS and WWW Specialist Information Systems and Infrastructure, British Geological Survey, http://www.bgs.ac.uk/ +44 (0)115 936 3125 -- This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From thomas.bonfort at gmail.com Wed Apr 20 07:28:52 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Apr 2011 16:28:52 +0200 Subject: [mapserver-users] Problems with png output when using libpng 1.5 In-Reply-To: <4DAEDD99.7040304@dmsolutions.ca> References: <4DAEDD99.7040304@dmsolutions.ca> Message-ID: Christy, I suspect this is due to a bug in libpng. see http://sourceforge.net/tracker/index.php?func=detail&aid=3288207&group_id=5624&atid=105624 . On Wed, Apr 20, 2011 at 15:20, Christy Nieman wrote: > Hi, > > I compiled MapServer 6.0 beta6 against libpng 1.5.2 and encountered the > following problems: > > when using the default png IMAGETYPE (i.e. no OUTPUTFORMAT block), I got > yellow & striped maps (see cyprus.png) > when using the AGG/PNG driver and IMAGEMODE "RGBA", the output image looks > fine > when using the default png8 IMAGETYPE, the output image looks fine > > I also compiled with cairo, and with the driver set to CAIRO/PNG, I had the > same yellow & striped maps. rgba and png8 use different png formats. agg/png and cairo/png use the same codepath when saving images, so the behavior your are observing is normal. > > With libpng 1.2.44, everything seems to work properly.? Has anyone else seen > this problem with libpng 1.5?? Should it work properly with MapServer? > > Regards, > Christy > > _______________________________________________ > 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 Apr 20 07:43:51 2011 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Wed, 20 Apr 2011 16:43:51 +0200 Subject: [mapserver-users] relative path for .map file inside a WMS url Message-ID: <0B6D7F516315594DBEFE58178D91BD3201E667E12062@exchangemm.mm.fr> Hi, I have a CGI MapServer 5.6.0beta5 instance running on Windows. But I'm not (and won't never be) able to know for sure the folder's path where its files are deployed. I know that MapServer is running fine though, delivering maps as needed. But I'm not able to make some WMS web request because I can't provide an absolute path for the "map=" parameter : I don't know in which folder my .map files reside. http://myserver/cgi-bin/mapserv.exe?map=?*****?/mymapfile.map&... Is there a way to use relative path ? or to use a kind of environment variable MS_INSTALL_PATH inside the "&map=" parameter? I can only act on the server's configuration and MS deployment Thanks for your help Cl?ment -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Apr 20 07:49:14 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Apr 2011 16:49:14 +0200 Subject: [mapserver-users] relative path for .map file inside a WMS url In-Reply-To: <0B6D7F516315594DBEFE58178D91BD3201E667E12062@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD3201E667E12062@exchangemm.mm.fr> Message-ID: I don't think it is possible o have this yet. You could file an enhancement request, as this would be a nice feature to have. regards, thomas On Wed, Apr 20, 2011 at 16:43, Cl?ment MONIER wrote: > Hi, > > > > I have a CGI MapServer 5.6.0beta5 instance running on Windows. > > But I?m not (and won?t never be) able to know for sure the folder?s path > where its files are deployed. > > I know that MapServer is running fine though, delivering maps as needed. > > > > But I?m not able to make some WMS web request because I can?t provide an > absolute path for the ?map=? parameter : > > I don?t know in which folder my .map files reside. > > > > http://myserver/cgi-bin/mapserv.exe?map=?*****?/mymapfile.map&... > > > > Is there a way to use relative path ? or to use a kind of environment > variable MS_INSTALL_PATH inside the ?&map=? parameter? > > I can only act on the server?s configuration and MS deployment > > > > Thanks for your help > > > > Cl?ment > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From warmerdam at pobox.com Wed Apr 20 07:56:43 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 20 Apr 2011 10:56:43 -0400 Subject: [mapserver-users] Mapserver6 calls exit() in FastCGI-mode In-Reply-To: References: Message-ID: <4DAEF42B.7010806@pobox.com> On 11-04-20 03:59 AM, Erik Gustafson wrote: > The problem is that the error from Mapserver 6, apart from its user > unfriendlyness for ows-requests, is reported by writeError() in > mapserv.c which calls exit() even if we are running under FastCGI. As > this error is non fatal I consider this a bug. Erik, For reference, I do *not* consider this a bug. In my opinion it is perfectly acceptable for MapServer processes to terminated sometimes on an error even when running in FastCGI mode. Reasonable FastCGI implementations will just start a new process for the next request so the only harm is a slight delay as libraries are reinitialized and DB connections are re-established. The error you are encountering is not something that will happen often in practice. In fact, I believe it is a good practice to have MapServer FastCGI instances recycled occasionally as it is hard to ensure there are no memory leaks in the more esoteric parts of the code. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fsozzi at intercad.ch Wed Apr 20 07:37:34 2011 From: fsozzi at intercad.ch (Francesco Sozzi) Date: Wed, 20 Apr 2011 16:37:34 +0200 Subject: [mapserver-users] Query on WFS Layer: Fatal error: [MapServer Error]: msQueryByShape(): No matching record(s) found In-Reply-To: <4DC99887ECFBA1499899FACCDFF7F21A1FAC8D6DCE@nerckwmb1.ad.nerc.ac.uk> References: <20110420132834.E0500E02083@lists.osgeo.org> <4DC99887ECFBA1499899FACCDFF7F21A1FAC8D6DCE@nerckwmb1.ad.nerc.ac.uk> Message-ID: <004601cbff68$7d597f10$780c7d30$@ch> Hi list, I have a big problem on querying a WFS layer. Here you find both script and layer definition on mapfile. The problem is that $result->shapeindex has value 0 and I get the error: "Fatal error: [MapServer Error]: msQueryByShape(): No matching record(s) found." Any suggestions? Best regards Francesco ----------------------------------------------------- SCRIPT ----------------------------------------------------- $qresult = @$layer->queryByRect($myrect); //get all results $numResults = $layer->getNumResults(); for ($i=0; $i < $numResults; $i++) { $result = $layer->getResult($i); $layer->open(); $shape = $layer->getFeature($result->shapeindex); $layer->close(); } ----------------------------------------------------- MAPFILE LAYER DEFINITION ----------------------------------------------------- LAYER NAME "parchiGR" GROUP "Grigioni" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE WFS CONNECTION "http://mapserver1.gr.ch/wfs/wildruhezonen?" CLASSITEM "beschlussjahr" METADATA "wfs_typename" "Eidg_Jagdbanngebiete_und_Schweizerischer_Nationalpark" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "100" "wfs_maxfeatures" "1000" END DUMP TRUE PROJECTION "init=epsg:21781" END CLASS NAME "anno 2004" EXPRESSION "2004" COLOR 159 255 159 OUTLINECOLOR 250 20 10 TEMPLATE "templates/default.html" END CLASS NAME "anno 1980" EXPRESSION "1980" COLOR 140 198 255 OUTLINECOLOR 250 20 10 TEMPLATE "templates/default.html" END CLASS NAME "altro anno" COLOR 192 192 192 OUTLINECOLOR 250 20 10 TEMPLATE "templates/default.html" END END From thomas.bonfort at gmail.com Wed Apr 20 08:59:12 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 20 Apr 2011 17:59:12 +0200 Subject: [mapserver-users] relative path for .map file inside a WMS url In-Reply-To: <0B6D7F516315594DBEFE58178D91BD3201E667E12062@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD3201E667E12062@exchangemm.mm.fr> Message-ID: Actually, you can also do this with an apache rewrite rule, I've just tested it and it seems to work quite well ! RewriteEngine On RewriteRule ^/wms/(.*) /cgi-bin/mapserv?map=/datadir/$1.map [PT,QSA] it will translate requests that are like /wms/carto to /cgi-bin/mapserv?map=/datadir/carto.map , along with the query string. regards, thomas On Wed, Apr 20, 2011 at 16:43, Cl?ment MONIER wrote: > Hi, > > > > I have a CGI MapServer 5.6.0beta5 instance running on Windows. > > But I?m not (and won?t never be) able to know for sure the folder?s path > where its files are deployed. > > I know that MapServer is running fine though, delivering maps as needed. > > > > But I?m not able to make some WMS web request because I can?t provide an > absolute path for the ?map=? parameter : > > I don?t know in which folder my .map files reside. > > > > http://myserver/cgi-bin/mapserv.exe?map=?*****?/mymapfile.map&... > > > > Is there a way to use relative path ? or to use a kind of environment > variable MS_INSTALL_PATH inside the ?&map=? parameter? > > I can only act on the server?s configuration and MS deployment > > > > Thanks for your help > > > > Cl?ment > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From dmorissette at mapgears.com Thu Apr 21 00:23:55 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 21 Apr 2011 03:23:55 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta7 release Message-ID: <4DAFDB8B.9020205@mapgears.com> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta7. This is the latest beta on our way to a final 6.0 release. Once again this beta contains several important fixes and we encourage you to test it and continue to provide feedback. The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). If all goes well, we hope to have a release candidate next week and a final 6.0 release around the end of April. The full release plan which also includes the list of new features and changes in this release is available at: http://mapserver.org/trunk/development/release/release-plan-6.0.html The list of fixes since the last beta is attached at the end of this message. For a complete list see the HISTORY.TXT file at: http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta7/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. It is not complete yet but we strongly recommend that you review the latest version online at: http://mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-beta7.tar.gz The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team Version 6.0.0-beta7 (2011-04-20) -------------------------------- - Union Layer: fix for the STYLEITEM AUTO option (#3674) - Union Layer: Add support for the layer FILTER expressions, add "Union:SourceLayerVisible" predefined attribute (#3674) - fix circle layer drawing for edge case when point1.x==point2.x (#1356) - fix incorrect quantization for images with very large number of colors (#3848) - fix poor performance of polygon hatching (#3846) - upgrade clipper library to 4.2 (related to #3846) - Fix configure output for "WFS Client" (was reporting WMS info, #3842) - KML: latlon bbox for raster layers could end up being wrong for non-square requests (#3840) From cnieman at dmsolutions.ca Thu Apr 21 05:59:45 2011 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Thu, 21 Apr 2011 08:59:45 -0400 Subject: [mapserver-users] Problems with png output when using libpng 1.5 In-Reply-To: References: <4DAEDD99.7040304@dmsolutions.ca> <4DAEF024.2030903@dmsolutions.ca> Message-ID: <4DB02A41.7010405@dmsolutions.ca> Thomas, Sorry it took me awhile to respond - I'd left things compiling when I went home last night, and it failed, so I had to fix it and get it going again this morning. With libpng 1.5.3 beta3 and mapserver 6.0 beta 7 (since it was released before I fixed things this morning), everything now seems fine. Christy On 04/21/2011 04:59 AM, thomas bonfort wrote: > Christy, > Can you confirm that the bug disappeared with the latest libpng beta ? > > -- > thomas > > On Wed, Apr 20, 2011 at 16:39, Christy Nieman wrote: >> Aha, thanks Thomas. I hadn't found that. >> >> On 04/20/2011 10:28 AM, thomas bonfort wrote: >>> Christy, >>> I suspect this is due to a bug in libpng. see >>> >>> http://sourceforge.net/tracker/index.php?func=detail&aid=3288207&group_id=5624&atid=105624 >>> . >>> >>> On Wed, Apr 20, 2011 at 15:20, Christy Nieman >>> wrote: >>>> Hi, >>>> >>>> I compiled MapServer 6.0 beta6 against libpng 1.5.2 and encountered the >>>> following problems: >>>> >>>> when using the default png IMAGETYPE (i.e. no OUTPUTFORMAT block), I got >>>> yellow& striped maps (see cyprus.png) >>>> when using the AGG/PNG driver and IMAGEMODE "RGBA", the output image >>>> looks >>>> fine >>>> when using the default png8 IMAGETYPE, the output image looks fine >>>> >>>> I also compiled with cairo, and with the driver set to CAIRO/PNG, I had >>>> the >>>> same yellow& striped maps. >>> rgba and png8 use different png formats. agg/png and cairo/png use the >>> same codepath when saving images, so the behavior your are observing >>> is normal. >>> >>>> With libpng 1.2.44, everything seems to work properly. Has anyone else >>>> seen >>>> this problem with libpng 1.5? Should it work properly with MapServer? >>>> >>>> Regards, >>>> Christy >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> From peter.hopfgartner at r3-gis.com Thu Apr 21 08:11:58 2011 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Thu, 21 Apr 2011 17:11:58 +0200 (CEST) Subject: [mapserver-users] MapServer 6.0.0-beta7 packages in ELGIS repository Message-ID: <20110421151158.04F2F1678232@mail.r3-gis.com> MapServer 6.0.0-beta7 has been packaged into rpms for CentOS and Red Hat Enterprise Linux 5.6 as mapserver6. Scientific Linux users might get php53 packages from CentOS, in order to use php-mapserver6. The packages are in the testing repositoriy of http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS. Thanks to Mathieu for the quick handling of the package, Peter R3 GIS Srl - GmbH http://www.r3-gis.com From aboudreault at mapgears.com Thu Apr 21 08:43:07 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 21 Apr 2011 11:43:07 -0400 Subject: [mapserver-users] MapServer 6.0.0-beta7 release In-Reply-To: <4DAFDB8B.9020205@mapgears.com> References: <4DAFDB8B.9020205@mapgears.com> Message-ID: <201104211143.09395.aboudreault@mapgears.com> UbuntuGIS MapServer packages have been updated for the beta7 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On April 21, 2011 03:23:55 am Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta7. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, we hope to have a release candidate next week and a > final 6.0 release around the end of April. The full release plan which > also includes the list of new features and changes in this release is > available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last beta is attached at the end of this > message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta7/mapserver/HIST > ORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta7.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta7 (2011-04-20) > -------------------------------- > > - Union Layer: fix for the STYLEITEM AUTO option (#3674) > > - Union Layer: Add support for the layer FILTER expressions, > add "Union:SourceLayerVisible" predefined attribute (#3674) > > - fix circle layer drawing for edge case when point1.x==point2.x (#1356) > > - fix incorrect quantization for images with very large number of > colors (#3848) > > - fix poor performance of polygon hatching (#3846) > > - upgrade clipper library to 4.2 (related to #3846) > > - Fix configure output for "WFS Client" (was reporting WMS info, #3842) > > - KML: latlon bbox for raster layers could end up being wrong for > non-square requests (#3840) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From thomas.bonfort at gmail.com Thu Apr 21 08:47:23 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 21 Apr 2011 17:47:23 +0200 Subject: [mapserver-users] Re: [mapserver-dev] problem with mapserver In-Reply-To: <604741689.1897561303396525840.JavaMail.root@ucimail1.uci.cu> References: <604741689.1897561303396525840.JavaMail.root@ucimail1.uci.cu> Message-ID: forwarding this to the mapserver-users list where it belongs. you are setting TYPE bitmap, which does not support more than ascii characters. you must set TYPE TRUETYPE and SIZE 9 (an integer value, not tiny, medium, etc...) regards, thomas On Thu, Apr 21, 2011 at 16:35, Annabell Schelton Lima wrote: > hi, i have a ?problem with encoding ?labels and mapfile configuration..my data is already converted to UTF-8 format, stored in a postgres database, but the labels do not recognize the accents, this is my mapfile in the section label, i declare it like a new layer with annotations, but as a part of a layer with labelitem the result it?s the same... > > ? ? ? ? ? ? ? ? ?LABEL > ? ? ? ? ? ? ? ? ? ? ? ?SIZE ? medium > ? ? ? ? ? ? ? ? ? ? ? ?FONT arial > ? ? ? ? ? ? ? ? ? ? ? ?COLOR ? 0 0 0 > ? ? ? ? ? ? ? ? ? ? ? ?POSITION ?cl > ? ? ? ? ? ? ? ? ? ? ? ?TYPE ?bitmap > ? ? ? ? ? ? ? ? ? ? ? ?ANTIALIAS TRUE > ? ? ? ? ? ? ? ? ? ? ? ?MINDISTANCE 300 > ? ? ? ? ? ? ? ? ? ? ? ?#MINFEATURESIZE 200 > ? ? ? ? ? ? ? ? ? ? ? ?ENCODING "UTF-8" > ? ? ? ? ? ? ? ? ? ? ? ?BUFFER 4 > ? ? ? ? ? ? ? ? ? ? ? ?PARTIALS FALSE > ? ? ? ? ? ?END > ?Please, somebody help me, i really need resolve this soon... > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > From thomas.bonfort at gmail.com Thu Apr 21 09:22:25 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 21 Apr 2011 18:22:25 +0200 Subject: [mapserver-users] Re: [mapserver-dev] problem with mapserver In-Reply-To: <872011388.1903611303401427780.JavaMail.root@ucimail1.uci.cu> References: <872011388.1903611303401427780.JavaMail.root@ucimail1.uci.cu> Message-ID: please keep the message on list. this is usually the case if the font file (referenced from your fontset) was corrupt or pointing to an incorrect location. On Thu, Apr 21, 2011 at 17:57, Annabell Schelton Lima wrote: > i tried it that before, but does not work, when i use type truetype in my object label my label layer does not show..any idea?? > > > > ----- Mensaje original ----- > De: "thomas bonfort" > Para: "Annabell Schelton Lima" > CC: "MapserverList OSGEO" > Enviados: Jueves, 21 de Abril 2011 17:47:23 GMT +01:00 Amsterdam / Berl?n / Berna / Roma / Estocolmo / Viena > Asunto: Re: [mapserver-dev] problem with mapserver > > forwarding this to the mapserver-users list where it belongs. > > you are setting TYPE bitmap, which does not support more than ascii characters. > you must set TYPE TRUETYPE and SIZE 9 (an integer value, not tiny, > medium, etc...) > > regards, > thomas > > On Thu, Apr 21, 2011 at 16:35, Annabell Schelton Lima wrote: >> hi, i have a ?problem with encoding ?labels and mapfile configuration..my data is already converted to UTF-8 format, stored in a postgres database, but the labels do not recognize the accents, this is my mapfile in the section label, i declare it like a new layer with annotations, but as a part of a layer with labelitem the result it?s the same... >> >> ? ? ? ? ? ? ? ? ?LABEL >> ? ? ? ? ? ? ? ? ? ? ? ?SIZE ? medium >> ? ? ? ? ? ? ? ? ? ? ? ?FONT arial >> ? ? ? ? ? ? ? ? ? ? ? ?COLOR ? 0 0 0 >> ? ? ? ? ? ? ? ? ? ? ? ?POSITION ?cl >> ? ? ? ? ? ? ? ? ? ? ? ?TYPE ?bitmap >> ? ? ? ? ? ? ? ? ? ? ? ?ANTIALIAS TRUE >> ? ? ? ? ? ? ? ? ? ? ? ?MINDISTANCE 300 >> ? ? ? ? ? ? ? ? ? ? ? ?#MINFEATURESIZE 200 >> ? ? ? ? ? ? ? ? ? ? ? ?ENCODING "UTF-8" >> ? ? ? ? ? ? ? ? ? ? ? ?BUFFER 4 >> ? ? ? ? ? ? ? ? ? ? ? ?PARTIALS FALSE >> ? ? ? ? ? ?END >> ?Please, somebody help me, i really need resolve this soon... >> _______________________________________________ >> mapserver-dev mailing list >> mapserver-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >> > From thomas.bonfort at gmail.com Thu Apr 21 10:05:15 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 21 Apr 2011 19:05:15 +0200 Subject: [mapserver-users] Re: [mapserver-dev] problem with mapserver In-Reply-To: <1058429016.1908071303404752713.JavaMail.root@ucimail1.uci.cu> References: <1058429016.1908071303404752713.JavaMail.root@ucimail1.uci.cu> Message-ID: you create it, it maps font names, used with the LABEL->FONT keyword, with the full path to your .tff font. e.g. arial /usr/local/share/fonts/arial.ttf arialbold /usr/local/share/fonts/arialbf.ttf ... this is all in the docs... http://mapserver.org/mapfile/fontset.html http://mapserver.org/mapfile/label.html On Thu, Apr 21, 2011 at 18:52, Annabell Schelton Lima wrote: > thanks Thomas, i already checked the location of the font file and does not found it, there is not a file fonts.list in my project, so, what can i do? where can i get this file? > > > > ----- Mensaje original ----- > De: "thomas bonfort" > Para: "Annabell Schelton Lima" > CC: "MapserverList OSGEO" > Enviados: Jueves, 21 de Abril 2011 18:22:25 GMT +01:00 Amsterdam / Berl?n / Berna / Roma / Estocolmo / Viena > Asunto: Re: [mapserver-dev] problem with mapserver > > please keep the message on list. > this is usually the case if the font file (referenced from your > fontset) was corrupt or pointing to an incorrect location. > > On Thu, Apr 21, 2011 at 17:57, Annabell Schelton Lima wrote: >> i tried it that before, but does not work, when i use type truetype in my object label my label layer does not show..any idea?? >> >> >> >> ----- Mensaje original ----- >> De: "thomas bonfort" >> Para: "Annabell Schelton Lima" >> CC: "MapserverList OSGEO" >> Enviados: Jueves, 21 de Abril 2011 17:47:23 GMT +01:00 Amsterdam / Berl?n / Berna / Roma / Estocolmo / Viena >> Asunto: Re: [mapserver-dev] problem with mapserver >> >> forwarding this to the mapserver-users list where it belongs. >> >> you are setting TYPE bitmap, which does not support more than ascii characters. >> you must set TYPE TRUETYPE and SIZE 9 (an integer value, not tiny, >> medium, etc...) >> >> regards, >> thomas >> >> On Thu, Apr 21, 2011 at 16:35, Annabell Schelton Lima wrote: >>> hi, i have a ?problem with encoding ?labels and mapfile configuration..my data is already converted to UTF-8 format, stored in a postgres database, but the labels do not recognize the accents, this is my mapfile in the section label, i declare it like a new layer with annotations, but as a part of a layer with labelitem the result it?s the same... >>> >>> ? ? ? ? ? ? ? ? ?LABEL >>> ? ? ? ? ? ? ? ? ? ? ? ?SIZE ? medium >>> ? ? ? ? ? ? ? ? ? ? ? ?FONT arial >>> ? ? ? ? ? ? ? ? ? ? ? ?COLOR ? 0 0 0 >>> ? ? ? ? ? ? ? ? ? ? ? ?POSITION ?cl >>> ? ? ? ? ? ? ? ? ? ? ? ?TYPE ?bitmap >>> ? ? ? ? ? ? ? ? ? ? ? ?ANTIALIAS TRUE >>> ? ? ? ? ? ? ? ? ? ? ? ?MINDISTANCE 300 >>> ? ? ? ? ? ? ? ? ? ? ? ?#MINFEATURESIZE 200 >>> ? ? ? ? ? ? ? ? ? ? ? ?ENCODING "UTF-8" >>> ? ? ? ? ? ? ? ? ? ? ? ?BUFFER 4 >>> ? ? ? ? ? ? ? ? ? ? ? ?PARTIALS FALSE >>> ? ? ? ? ? ?END >>> ?Please, somebody help me, i really need resolve this soon... >>> _______________________________________________ >>> mapserver-dev mailing list >>> mapserver-dev at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev >>> >> > From Weisbend at wapa.gov Thu Apr 21 13:29:24 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Thu, 21 Apr 2011 14:29:24 -0600 Subject: [mapserver-users] Dynamic Layer name in Legend Message-ID: <4DB03F44020000DF00074E0A@10.1.50.131> How would you dynamically generate a layer name in the map legend with use input or url substitutions. Right know I imagine it looking something like this... CLASS NAME "Entered Point'%[xytext]'" SYMBOL "xsymbol" COLOR 0 0 0 SIZE 12 but is obviously it does not work... this is just a excerpt from the layer def. Any help is greatly appreciated. Thanks, EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at state.mn.us Thu Apr 21 14:12:50 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 21 Apr 2011 16:12:50 -0500 Subject: [mapserver-users] Dynamic Layer name in Legend In-Reply-To: <4DB03F44020000DF00074E0A@10.1.50.131> References: <4DB03F44020000DF00074E0A@10.1.50.131> Message-ID: You can't muck about with NAMEs. In 6.0 we did finally hook the TITLE attribute up for legend production (takes precedence over NAME) as always intended. A class title can be changed within the limits established by its validation settings. For example: LAYER NAME 'foo' ... VALIDATION 'title' '^[A-z]{5,20}$' # title's can be between 5 and 20 characters long consisting only of alpha characters END ... CLASS NAME 'bar' TITLE 'my default title' ... END END Then via URL you could do: ...&map.layer[foo].class[bar]=TITLE+'New+Title'&... At least that's the plan. You might give it a shot against the latest beta. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Weisbender Sent: Thursday, April 21, 2011 3:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Dynamic Layer name in Legend How would you dynamically generate a layer name in the map legend with use input or url substitutions.? Right know I imagine it looking something like this... ? CLASS ??? NAME "Entered Point'%[xytext]'" ??? SYMBOL "xsymbol" ??? COLOR 0 0 0 ??? SIZE 12 ? but is obviously it does not work... this is just a excerpt from the layer def.? Any help is greatly appreciated. ? Thanks, EW From jachym.cepicky at gmail.com Fri Apr 22 08:03:47 2011 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Fri, 22 Apr 2011 17:03:47 +0200 Subject: [mapserver-users] gridObj in python mapscript Message-ID: Hi, is it possible to create GRID object within python mapscript? MapServer 5.6.6 Jachym -- Jachym Cepicky e-mail: jachym.cepicky gmail com URL: http://les-ejk.cz GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp From jmckenna at gatewaygeomatics.com Fri Apr 22 11:26:04 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 22 Apr 2011 15:26:04 -0300 Subject: [mapserver-users] MapServer 6.0.0-beta7 release In-Reply-To: <4DAFDB8B.9020205@mapgears.com> References: <4DAFDB8B.9020205@mapgears.com> Message-ID: <4DB1C83C.1070307@gatewaygeomatics.com> Windows users can find the beta7 package at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html Happy Easter everyone. -jeff Do you think there are any easter eggs in MapServer? :) -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-04-21 4:23 AM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-beta7. This is the latest beta on our way to a final 6.0 release. > Once again this beta contains several important fixes and we encourage > you to test it and continue to provide feedback. > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well, we hope to have a release candidate next week and a > final 6.0 release around the end of April. The full release plan which > also includes the list of new features and changes in this release is > available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last beta is attached at the end of this > message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta7/mapserver/HISTORY.TXT > > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. It is not complete yet but we strongly > recommend that you review the latest version online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-beta7.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > Version 6.0.0-beta7 (2011-04-20) > -------------------------------- > > - Union Layer: fix for the STYLEITEM AUTO option (#3674) > > - Union Layer: Add support for the layer FILTER expressions, > add "Union:SourceLayerVisible" predefined attribute (#3674) > > - fix circle layer drawing for edge case when point1.x==point2.x (#1356) > > - fix incorrect quantization for images with very large number of > colors (#3848) > > - fix poor performance of polygon hatching (#3846) > > - upgrade clipper library to 4.2 (related to #3846) > > - Fix configure output for "WFS Client" (was reporting WMS info, #3842) > > - KML: latlon bbox for raster layers could end up being wrong for > non-square > requests (#3840) From gcpp.kalxas at gmail.com Fri Apr 22 16:48:41 2011 From: gcpp.kalxas at gmail.com (Angelos Tzotsos) Date: Sat, 23 Apr 2011 02:48:41 +0300 Subject: [mapserver-users] MapServer 6.0.0-beta7 release In-Reply-To: <4DB1C83C.1070307@gatewaygeomatics.com> References: <4DAFDB8B.9020205@mapgears.com> <4DB1C83C.1070307@gatewaygeomatics.com> Message-ID: Hi all, openSUSE packages are also updated to beta7. http://download.opensuse.org/repositories/home:/tzotsos/ Regards, Angelos On Fri, Apr 22, 2011 at 9:26 PM, Jeff McKenna wrote: > Windows users can find the beta7 package at: > http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html > > Happy Easter everyone. > > -jeff > > Do you think there are any easter eggs in MapServer? :) > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > On 11-04-21 4:23 AM, Daniel Morissette wrote: > >> The MapServer Team is pleased to announce the release of MapServer >> 6.0.0-beta7. This is the latest beta on our way to a final 6.0 release. >> Once again this beta contains several important fixes and we encourage >> you to test it and continue to provide feedback. >> >> The 6.0 release introduces important changes in key components of the >> MapServer core (rendering, query and expressions), and for this reason >> we count on you, MapServer power users, to help test the release in your >> respective environments and provide feedback (through the users list or >> Trac tickets). >> >> If all goes well, we hope to have a release candidate next week and a >> final 6.0 release around the end of April. The full release plan which >> also includes the list of new features and changes in this release is >> available at: >> http://mapserver.org/trunk/development/release/release-plan-6.0.html >> >> The list of fixes since the last beta is attached at the end of this >> message. For a complete list see the HISTORY.TXT file at: >> >> >> http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-beta7/mapserver/HISTORY.TXT >> >> >> We have started working on a 5.6 -> 6.0 migration guide. This document >> contains important notes on backwards incompatibilities or other changes >> required when upgrading to 6.0. It is not complete yet but we strongly >> recommend that you review the latest version online at: >> >> http://mapserver.org/trunk/MIGRATION_GUIDE.html >> >> The source for this release can be downloaded at: >> >> http://mapserver.org/download.html >> or >> http://download.osgeo.org/mapserver/mapserver-6.0.0-beta7.tar.gz >> >> The binary distributions listed in the download page should be updated >> with binaries for the new beta release in the next day or so. >> >> Once again we need your help to ensure a high quality product, so please >> help out by testing your applications with this new code base. >> >> Thanks! - The MapServer Team >> >> >> Version 6.0.0-beta7 (2011-04-20) >> -------------------------------- >> >> - Union Layer: fix for the STYLEITEM AUTO option (#3674) >> >> - Union Layer: Add support for the layer FILTER expressions, >> add "Union:SourceLayerVisible" predefined attribute (#3674) >> >> - fix circle layer drawing for edge case when point1.x==point2.x (#1356) >> >> - fix incorrect quantization for images with very large number of >> colors (#3848) >> >> - fix poor performance of polygon hatching (#3846) >> >> - upgrade clipper library to 4.2 (related to #3846) >> >> - Fix configure output for "WFS Client" (was reporting WMS info, #3842) >> >> - KML: latlon bbox for raster layers could end up being wrong for >> non-square >> requests (#3840) >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Angelos Tzotsos Remote Sensing Laboratory National Technical University of Athens http://users.ntua.gr/tzotsos -------------- next part -------------- An HTML attachment was scrubbed... URL: From jxjackso at franklincountyohio.gov Mon Apr 25 09:25:31 2011 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Mon, 25 Apr 2011 12:25:31 -0400 Subject: [mapserver-users] adding ecw support Message-ID: Quick question: I've compiled libecw3.3 and gdal... now gdalinfo --formats shows the ECW format, but mapserver still won't produce a map with an ecw file. Do I need to recompile mapserver also? (I'm running 5.65 on a Fedora 13 box if that helps) Thanks --John Jackson --Deputy Auditor --jxjackso at franklincountyohio.gov From jxjackso at franklincountyohio.gov Mon Apr 25 10:04:24 2011 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Mon, 25 Apr 2011 13:04:24 -0400 Subject: [mapserver-users] adding ecw support In-Reply-To: <939317.99739.qm@web38204.mail.mud.yahoo.com> References: , <939317.99739.qm@web38204.mail.mud.yahoo.com> Message-ID: Debug 5 produces: [Mon Apr 25 12:00:04 2011].97972 msDrawRasterLayerLow(ortho): entering. [Mon Apr 25 12:00:04 2011].98406 drawEPP(): Image handling error. EPPL7 support is not available. [Mon Apr 25 12:00:04 2011].98414 msDrawRaster(): Image handling error. Unrecognized or unsupported image format [Mon Apr 25 12:00:04 2011].98421 msDrawMap(): Image handling error. Failed to draw layer named 'ortho'. relevant section from map file is pretty straightforward: LAYER NAME "ortho" STATUS on TYPE RASTER DATA "/home/ecw/test.ecw" END ________________________________________ From: Carlos Ruiz [boolean10001 at yahoo.com] Sent: Monday, April 25, 2011 12:59 PM To: Jackson, John Subject: Re: [mapserver-users] adding ecw support Try setting DEBUG 5 and CONFIG MS_ERRORFILE '/var/www/error.log' into the MAP section to see what does Mapserver throws. Also, can you post the MAP file contents ? Cheers from M?xico IC Carlos Ruiz ________________________________ From: "Jackson, John" To: "mapserver-users at lists.osgeo.org" Sent: Monday, April 25, 2011 11:25 AM Subject: Re: [mapserver-users] adding ecw support Quick question: I've compiled libecw3.3 and gdal... now gdalinfo --formats shows the ECW format, but mapserver still won't produce a map with an ecw file. Do I need to recompile mapserver also? (I'm running 5.65 on a Fedora 13 box if that helps) Thanks --John Jackson --Deputy Auditor --jxjackso at franklincountyohio.gov_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jxjackso at franklincountyohio.gov Mon Apr 25 10:25:43 2011 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Mon, 25 Apr 2011 13:25:43 -0400 Subject: [mapserver-users] adding ecw support In-Reply-To: <258538.55723.qm@web38205.mail.mud.yahoo.com> References: , <939317.99739.qm@web38204.mail.mud.yahoo.com> , <258538.55723.qm@web38205.mail.mud.yahoo.com> Message-ID: Here's the output of gdalinfo for the ecw file... Could it be the lack of coordinate system info? [jhjackson at map-tester gdal-1.7.2-fedora]# gdalinfo /home/ecw/test.ecw Driver: ECW/ERMapper Compressed Wavelets Files: /home/ecw/test.ecw /home/ecw/test.eww Size is 445500, 412500 Coordinate System is `' Origin = (1753630.000000000000000,781300.000000000000000) Pixel Size = (0.320000000000000,-0.320000000000000) Corner Coordinates: Upper Left ( 1753630.000, 781300.000) Lower Left ( 1753630.000, 649300.000) Upper Right ( 1896190.000, 781300.000) Lower Right ( 1896190.000, 649300.000) Center ( 1824910.000, 715300.000) Band 1 Block=445500x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Band 2 Block=445500x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Band 3 Block=445500x1 Type=Byte, ColorInterp=Blue Overviews: arbitrary ________________________________________ From: Carlos Ruiz [boolean10001 at yahoo.com] Sent: Monday, April 25, 2011 1:23 PM To: Jackson, John Subject: Re: [mapserver-users] adding ecw support Your MAP contents looks fine to me. Did you run ldconfig after the libecw/gdal compilation ? Sometimes when I upload some raster files to my production server, they are somehow corrupted. Please check if you can see test.ecw with ER Viewer or other applications, and if this is your case too, check the byte length of the local and the remote files. Maybe you should recompile Mapserver. I don't remember if this must be done, but I thing you don't need it. IC Carlos Ruiz ________________________________ From: "Jackson, John" To: Carlos Ruiz ; "mapserver-users at lists.osgeo.org" Sent: Monday, April 25, 2011 12:04 PM Subject: Re: [mapserver-users] adding ecw support Debug 5 produces: [Mon Apr 25 12:00:04 2011].97972 msDrawRasterLayerLow(ortho): entering. [Mon Apr 25 12:00:04 2011].98406 drawEPP(): Image handling error. EPPL7 support is not available. [Mon Apr 25 12:00:04 2011].98414 msDrawRaster(): Image handling error. Unrecognized or unsupported image format [Mon Apr 25 12:00:04 2011].98421 msDrawMap(): Image handling error. Failed to draw layer named 'ortho'. relevant section from map file is pretty straightforward: LAYER NAME "ortho" STATUS on TYPE RASTER DATA "/home/ecw/test.ecw" END ________________________________________ From: Carlos Ruiz [boolean10001 at yahoo.com] Sent: Monday, April 25, 2011 12:59 PM To: Jackson, John Subject: Re: [mapserver-users] adding ecw support Try setting DEBUG 5 and CONFIG MS_ERRORFILE '/var/www/error.log' into the MAP section to see what does Mapserver throws. Also, can you post the MAP file contents ? Cheers from M?xico IC Carlos Ruiz ________________________________ From: "Jackson, John" > To: "mapserver-users at lists.osgeo.org" > Sent: Monday, April 25, 2011 11:25 AM Subject: Re: [mapserver-users] adding ecw support Quick question: I've compiled libecw3.3 and gdal... now gdalinfo --formats shows the ECW format, but mapserver still won't produce a map with an ecw file. Do I need to recompile mapserver also? (I'm running 5.65 on a Fedora 13 box if that helps) Thanks --John Jackson --Deputy Auditor --jxjackso at franklincountyohio.gov>_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users From michael.smith at usace.army.mil Tue Apr 26 02:39:19 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Tue, 26 Apr 2011 05:39:19 -0400 Subject: [mapserver-users] 3d WFS Service Message-ID: All, Is there a way to get a 3d (from 3d source data) return from a mapserver wfs service? Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -------------- next part -------------- An HTML attachment was scrubbed... URL: From yrrman at gmail.com Tue Apr 26 02:40:46 2011 From: yrrman at gmail.com (ChrisFern) Date: Tue, 26 Apr 2011 02:40:46 -0700 (PDT) Subject: [mapserver-users] NoDATA value, transparency for paletted IMG file Message-ID: <1303810846728-6305135.post@n2.nabble.com> Dear All, I'm trying to figure out how to set the OFFSITE value for an 8bit paletted img file - I've been searching the archive for quite some time now but couldn't find an answer :( I got the following gdalinfo: Driver: HFA/Erdas Imagine Images (.img) [..] Coordinate System is: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.017453292519943295]] [..] Band 1 Block=64x64 Type=Byte, ColorInterp=Palette [..] NoData Value=0 Overviews: 7197x7624, 3599x3812, 1800x1906, 900x953, 450x477, 225x239 Metadata: [..] Color Table (RGB with 256 entries) 0: 0,0,0,255 1: 0,0,0,0 2: 0,0,0,0 3: 113,235,47,255 [..] so the NoData Value corresponds to index 0, with rgb 0,0,0 and opacity 255. In the mapfile I tried both OFFSITE 0,0,0 and PROCESSING "NoData=0" which didn't work. "OFFSITE 0", as one could expect, doesn't work either (generates an error). My output format is OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" # IMAGEMODE RGBA IMAGEMODE PC256 EXTENSION "png" TRANSPARENT ON FORMATOPTION "transparent=on" END With my other RGB-Layers with 3bands the above setting works well, we're overlaying these WMS layers in the Google Earth API (browser plugin) using the function "ge.createGroundOverlay". We're using MapServer version 5.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Any idea/clues what might be wrong here? Help is highly appreciated. Thanks and advance and greetings, Chris -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/NoDATA-value-transparency-for-paletted-IMG-file-tp6305135p6305135.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Johan.Hallgren at sweco.se Tue Apr 26 04:17:06 2011 From: Johan.Hallgren at sweco.se (Hallgren Johan) Date: Tue, 26 Apr 2011 13:17:06 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: Hello Tamas It slowly moving forward with my proxy-login problem. I can't find a way to specify login-domain. I tried with: "wms_proxy_username" "domain\foo" and "wms_proxy_username" "domain\\foo" But no one gives the feeling that it worked. Du you have any better ideas? /Johan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Johan.Hallgren at sweco.se Tue Apr 26 04:39:59 2011 From: Johan.Hallgren at sweco.se (Hallgren Johan) Date: Tue, 26 Apr 2011 13:39:59 +0200 Subject: [mapserver-users] Mapscript and "CURLOPT_PROXYAUTH not supported" In-Reply-To: References: Message-ID: Tamas again, One more thing. I tried the process monitor to see if there was different libmap.dll when used drawmap.exe versus shp2img.exe. And what I could see it was just the same libmap.dll (same path). I still have a feeling that the error I have seen (CURL proxy not supported) isn't the actual problem. It indicates a problem but what I had to specify when I wrote another internet call thru the same proxy was the login-domain. I couldn't just use urs/pwd, I had to send domain also. /Johan -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Apr 26 07:30:47 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 26 Apr 2011 10:30:47 -0400 Subject: [mapserver-users] 3d WFS Service In-Reply-To: References: Message-ID: <4DB6D717.5010408@pobox.com> On 11-04-26 05:39 AM, Smith, Michael ERDC-CRREL-NH wrote: > All, > > Is there a way to get a 3d (from 3d source data) return from a mapserver wfs > service? > Mike, I notice that the mapgml.c code is 2D output only. Also, the new mapogroutput.c that can be used for WFS is 2D only as it stands. It seems both sets of code *could* be improved to produce 2.5D output if USE_POINT_Z_M is defined in the mapserver build though it is a bit late for 6.0 now. If you would like me to do so for the OGR based output let me know. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From michael.smith at usace.army.mil Tue Apr 26 08:16:33 2011 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Tue, 26 Apr 2011 11:16:33 -0400 Subject: [mapserver-users] 3d WFS Service In-Reply-To: <4DB6D717.5010408@pobox.com> Message-ID: Frank, We do have a need to do this for our National Levee Database. If we could do 2.5D output (gml) using a OGR output format, that would work fine for us. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 4/26/11 10:30 AM, "Frank Warmerdam" wrote: > On 11-04-26 05:39 AM, Smith, Michael ERDC-CRREL-NH wrote: >> All, >> >> Is there a way to get a 3d (from 3d source data) return from a mapserver wfs >> service? >> > > Mike, > > I notice that the mapgml.c code is 2D output only. Also, the new > mapogroutput.c that can be used for WFS is 2D only as it stands. It seems > both sets of code *could* be improved to produce 2.5D output if > USE_POINT_Z_M is defined in the mapserver build though it is a bit late > for 6.0 now. If you would like me to do so for the OGR based output > let me know. > > Best regards, From mattxbart at gmail.com Tue Apr 26 09:57:48 2011 From: mattxbart at gmail.com (Matt Bartolome) Date: Tue, 26 Apr 2011 09:57:48 -0700 Subject: [mapserver-users] CLASS directive Message-ID: Hello, I have a funky raster I'm trying to tile as jpegs. For whatever reason this RGB raster has white pixels on the source raster which should be black. Is it possible to set only these white pixels to be black on the output jpeg? I was playing around with the CLASS directive. This sets all those white pixels to black, but it does not preserve the rest of the rgb that I want to use; those "good" values are not processed and show as blank (white) space. How do I do this? I thought of preprocessing this with gdalwarp but the raster becomes too large (source is an ecw) on output so need to do it on-the-fly with mapserver (I'm using mapserver trunk and gdal 1.8 on linux). Thanks! Matt OUTPUTFORMAT NAME jpeg DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END LAYER NAME "test" TYPE RASTER STATUS ON DATA "/test.tif" PROJECTION "init=epsg:2230" END PROCESSING "NODATA=255" CLASS NAME "set white to black" EXPRESSION ([red] = 255 AND [green] = 255 AND [blue] = 255) STYLE COLOR 0 0 0 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Tue Apr 26 11:46:34 2011 From: mwkorver at gmail.com (Mark Korver) Date: Tue, 26 Apr 2011 13:46:34 -0500 Subject: [mapserver-users] CLASS directive In-Reply-To: References: Message-ID: Maybe you can just define the layer 2X in the mapfile. Put the altered layer on top of the regular layer? I am assuming that you can get the good values to be transparent and not white. On Tue, Apr 26, 2011 at 11:57 AM, Matt Bartolome wrote: > Hello, > I have a funky raster I'm trying to tile as jpegs. For whatever reason this > RGB raster has white pixels on the source raster which should be black. Is > it possible to set only these white pixels to be black on the output jpeg? I > was playing around with the CLASS directive. This sets all those white > pixels to black, but it does not preserve the rest of the rgb that I want to > use; those "good" values are not processed and show as blank (white) space. > How do I do this? I thought of preprocessing this with gdalwarp but the > raster becomes too large (source is an ecw) on output so need to do it > on-the-fly with mapserver (I'm using mapserver trunk and gdal 1.8 on linux). > > Thanks! > Matt > > OUTPUTFORMAT > ??? NAME jpeg > ??? DRIVER "AGG/JPEG" > ??? MIMETYPE "image/jpeg" > ??? IMAGEMODE RGB > ??? EXTENSION "jpg" > END > > LAYER > ? NAME "test" > ? TYPE RASTER > ? STATUS ON > ? DATA "/test.tif" > > ? PROJECTION > ??? "init=epsg:2230" > ? END > > ? PROCESSING "NODATA=255" > > ? CLASS > ??? NAME "set white to black" > ??? EXPRESSION ([red] = 255 AND [green] = 255 AND [blue] = 255) > ??? STYLE > ??? COLOR 0 0 0 > ? END > > END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mattxbart at gmail.com Tue Apr 26 15:07:11 2011 From: mattxbart at gmail.com (Matt Bartolome) Date: Tue, 26 Apr 2011 15:07:11 -0700 Subject: [mapserver-users] CLASS directive In-Reply-To: References: Message-ID: On Tue, Apr 26, 2011 at 11:46 AM, Mark Korver wrote: > Maybe you can just define the layer 2X in the mapfile. Put the > altered layer on top of the regular layer? I am assuming that you can > get the good values to be transparent and not white. > Thanks Mark! This works great. > On Tue, Apr 26, 2011 at 11:57 AM, Matt Bartolome > wrote: > > Hello, > > I have a funky raster I'm trying to tile as jpegs. For whatever reason > this > > RGB raster has white pixels on the source raster which should be black. > Is > > it possible to set only these white pixels to be black on the output > jpeg? I > > was playing around with the CLASS directive. This sets all those white > > pixels to black, but it does not preserve the rest of the rgb that I want > to > > use; those "good" values are not processed and show as blank (white) > space. > > How do I do this? I thought of preprocessing this with gdalwarp but the > > raster becomes too large (source is an ecw) on output so need to do it > > on-the-fly with mapserver (I'm using mapserver trunk and gdal 1.8 on > linux). > > > > Thanks! > > Matt > > > > OUTPUTFORMAT > > NAME jpeg > > DRIVER "AGG/JPEG" > > MIMETYPE "image/jpeg" > > IMAGEMODE RGB > > EXTENSION "jpg" > > END > > > > LAYER > > NAME "test" > > TYPE RASTER > > STATUS ON > > DATA "/test.tif" > > > > PROJECTION > > "init=epsg:2230" > > END > > > > PROCESSING "NODATA=255" > > > > CLASS > > NAME "set white to black" > > EXPRESSION ([red] = 255 AND [green] = 255 AND [blue] = 255) > > STYLE > > COLOR 0 0 0 > > END > > > > END > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From HeuerT at landcareresearch.co.nz Tue Apr 26 17:13:23 2011 From: HeuerT at landcareresearch.co.nz (Tim Heuer) Date: Wed, 27 Apr 2011 12:13:23 +1200 Subject: [mapserver-users] OUTPUTFORMAT svg Message-ID: Hi List, For quite a few days I am now stuck on this problem, and since I haven't found it with searching the web, here a question: We have a relatively complex setup here. 2 MapServer versions. One is the standard 5.6.6 and the other one, we got a SVN snapshot: $ svn info Path: . URL: https://svn.osgeo.org/mapserver/trunk/mapserver Repository Root: https://svn.osgeo.org/mapserver Repository UUID: 7532c77e-422f-0410-93f4-f0b67bdd69e2 Revision: 10907 Node Kind: directory Schedule: normal Last Changed Author: tbonfort Last Changed Rev: 10907 Last Changed Date: 2011-01-26 06:07:46 +1300 (Wed, 26 Jan 2011) We use the "normal" release version for our mapping application in the browser and the "SVN" version for printing SVG output. We decided to do it this way, because that is how we got the best looking maps with help of the MapFish print module. We have 2 map files (more but irrelevant for this), one for the base map and one for science data. In both we have this: IMAGETYPE png #... OUTPUTFORMAT NAME "aggpng24" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME svg MIMETYPE "image/svg+xml" DRIVER CAIRO/SVG #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" FORMATOPTION "FULL_RESOLUTION=TRUE" END #... WEB IMAGEPATH "/var/www/tmp/" IMAGEURL "/tmp/" END # layer definitions Our requests look like this: http://ourwmsserver/cgi-bin/mapserv.svn?BBOX=175.90352%2C-38.04814%2C176.34756%2C-37.560966&HEIGHT=1024&WIDTH=933&map_resolution=72&CLASS=1%2C2%2C3%2C4%2C6%2C7%2C8&SERVICE=WMS&REQUEST=GetMap&MAP=%2Fopt%2Fmapserver%2Fmapfiles%2Flri.map&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fsvg%2Bxml&format_options=dpi%3A72&LAYERS=luc_main&SRS=EPSG%3A4326 Result: SVG XML http://ourwmsserver/cgi-bin/mapserv.svn?BBOX=175.90352%2C-38.04814%2C176.34756%2C-37.560966&HEIGHT=1024&WIDTH=933&TRANSPARENT=true&map_resolution=72&VERSION=1.1.1&FORMAT=image%2Fsvg%2Bxml&SERVICE=WMS&map=%2Fopt%2Fmapserver%2Fmapfiles%2Fscenz_topo_new.map&format_options=dpi%3A72&LAYERS=coastpoly&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326 Result: PNG image We would like to get SVG output in both cases. The funny thing is that we're using the same MapServer instance, there are no errors reported and in one case we get SVG output (as desired) and in the other case we get a PNG with every request. If we however request a JPG in that case, we get an error. I also looked at the GetCapabilities output and found image/svg+xml there, but it does not output that for us. Another thing I've tried is to change to OUTPUTFORMAT svg in which case we always get an SVG, even when requesting a PNG. A solution for us could be to define 2 .map files for each layer, but that would be a maintenance nightmare with the amount of .map files we have already. Also, it seems sensible to me that multiple OUTPUTFORMATs are allowed and it should really work. I realise, that the "SVN" version we are using might not be totally bug free. The problem is though, that our map files do not work with the MapServer 6.0 beta 5 version, because there were a lot of changes in the way map files are handled in version 6. We need to get this working ASAP, so any help or comments are greatly appreciated. Thank you! Kind regards, Tim-Hinnerk Heuer Landcare Research, Palmerston North ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: From HeuerT at landcareresearch.co.nz Tue Apr 26 22:32:58 2011 From: HeuerT at landcareresearch.co.nz (Tim Heuer) Date: Wed, 27 Apr 2011 17:32:58 +1200 Subject: [mapserver-users] OUTPUTFORMAT svg In-Reply-To: <1303876881.19422.34.camel@mobil.geoworld.de> References: <1303876881.19422.34.camel@mobil.geoworld.de> Message-ID: Thanks Nicol, but we already solved it. It was a configuration setting that we have used wrongly: Commenting out # "wms_getmap_formatlist" "image/svg+xml,image/png" From the map file did the trick. Not sure why or what is wrong about that line... Kind regards, Tim-Hinnerk Heuer Landcare Research, Palmerston North -----Original Message----- From: Nicol Hermann [mailto:mapserver at geoworld.de] Sent: Wednesday, 27 April 2011 4:01 p.m. To: Tim Heuer Subject: Re: [mapserver-users] OUTPUTFORMAT svg Hi Tim, Is this link of any help? http://mapserver.org/output/svg.html I saw that you are using WMS requests. The document states: "WMS layers are not yet supported." Not sure of the documentations is outdated as it is last updated in December 2008. Best regards Nicol Am Mittwoch, den 27.04.2011, 12:13 +1200 schrieb Tim Heuer: > Hi List, > > > > For quite a few days I am now stuck on this problem, and since I > haven?t found it with searching the web, here a question: > > > > We have a relatively complex setup here. 2 MapServer versions. One is > the standard 5.6.6 and the other one, we got a SVN snapshot: > > > > $ svn info > > Path: . > > URL: https://svn.osgeo.org/mapserver/trunk/mapserver > > Repository Root: https://svn.osgeo.org/mapserver > > Repository UUID: 7532c77e-422f-0410-93f4-f0b67bdd69e2 > > Revision: 10907 > > Node Kind: directory > > Schedule: normal > > Last Changed Author: tbonfort > > Last Changed Rev: 10907 > > Last Changed Date: 2011-01-26 06:07:46 +1300 (Wed, 26 Jan 2011) > > > > We use the ?normal? release version for our mapping application in the > browser and the ?SVN? version for printing SVG output. We decided to > do it this way, because that is how we got the best looking maps with > help of the MapFish print module. > > > > We have 2 map files (more but irrelevant for this), one for the base > map and one for science data. In both we have this: > > > > IMAGETYPE png > > #... > > OUTPUTFORMAT > > NAME "aggpng24" > > DRIVER AGG/PNG > > MIMETYPE "image/png" > > IMAGEMODE RGB > > EXTENSION "png" > > FORMATOPTION "INTERLACE=OFF" > > END > > OUTPUTFORMAT > > NAME svg > > MIMETYPE "image/svg+xml" > > DRIVER CAIRO/SVG > > #FORMATOPTION "COMPRESSED_OUTPUT=TRUE" > > FORMATOPTION "FULL_RESOLUTION=TRUE" > > END > > #... > > WEB > > IMAGEPATH "/var/www/tmp/" > > IMAGEURL "/tmp/" > > END > > # layer definitions > > > > > > Our requests look like this: > > http://ourwmsserver/cgi-bin/mapserv.svn?BBOX=175.90352%2C-38.04814% > 2C176.34756% > 2C-37.560966&HEIGHT=1024&WIDTH=933&map_resolution=72&CLASS=1%2C2%2C3% > 2C4%2C6%2C7%2C8&SERVICE=WMS&REQUEST=GetMap&MAP=%2Fopt%2Fmapserver% > 2Fmapfiles%2Flri.map&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fsvg > %2Bxml&format_options=dpi%3A72&LAYERS=luc_main&SRS=EPSG%3A4326 > > Result: SVG XML > > > > http://ourwmsserver/cgi-bin/mapserv.svn?BBOX=175.90352%2C-38.04814% > 2C176.34756% > 2C-37.560966&HEIGHT=1024&WIDTH=933&TRANSPARENT=true&map_resolution=72&VERSION=1.1.1&FORMAT=image%2Fsvg%2Bxml&SERVICE=WMS&map=%2Fopt%2Fmapserver%2Fmapfiles%2Fscenz_topo_new.map&format_options=dpi%3A72&LAYERS=coastpoly&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326 > > Result: PNG image > > > > We would like to get SVG output in both cases. The funny thing is that > we?re using the same MapServer instance, there are no errors reported > and in one case we get SVG output (as desired) and in the other case > we get a PNG with every request. If we however request a JPG in that > case, we get an error. I also looked at the GetCapabilities output and > found image/svg+xml there, but it does not output that for us. > > Another thing I?ve tried is to change to > OUTPUTFORMAT svg > in which case we always get an SVG, even when requesting a PNG. A > solution for us could be to define 2 .map files for each layer, but > that would be a maintenance nightmare with the amount of .map files we > have already. Also, it seems sensible to me that multiple > OUTPUTFORMATs are allowed and it should really work. > > > > I realise, that the ?SVN? version we are using might not be totally > bug free. The problem is though, that our map files do not work with > the MapServer 6.0 beta 5 version, because there were a lot of changes > in the way map files are handled in version 6. > > > > We need to get this working ASAP, so any help or comments are greatly > appreciated. > > > > Thank you! > > > > Kind regards, > > Tim-Hinnerk Heuer > > > > Landcare Research, Palmerston North > > > > > > > ______________________________________________________________________ > Please consider the environment before printing this email > Warning: This electronic message together with any attachments is > confidential. If you receive it in error: (i) you must not read, use, > disclose, copy or retain it; (ii) please contact the sender > immediately by reply email and then delete the emails. > The views expressed in this email may not be those of Landcare > Research New Zealand Limited. http://www.landcareresearch.co.nz > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz From lists at remoteinformation.com.au Wed Apr 27 00:45:27 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Wed, 27 Apr 2011 15:45:27 +0800 Subject: [mapserver-users] Re: Postgis -> Mapserver white background In-Reply-To: References: Message-ID: <7D489DD8-A0BC-4F23-AC48-F730A1B75365@remoteinformation.com.au> Graham, It looks OK to me. Although the brevity is good, it might help if you could also attach the table definition - is it just producing a blank png image? is it in the same projection etc...? How are you accessing it (ie through WMS, mapscript or standard mapserver output). I've also copied this back to MapServer list... cheers Ben On 27/04/2011, at 3:26 PM, Graham Walker wrote: > Hi all, fairly new to all this. I was wondering if you could help me > with the following issue. I can't seem to display my postgis table in > mapserver. I can display shapefiles and html templates fine, but when > I try to connect to my postgis table I simply get a white background > (or whatever colour I set it as). > > I have managed to display postgis tables before in mapserver, but I am > having no luck in this one and cannot see any differences. Both the > shapefile and postgis table can display in qgis. My map file is listed > below. I have intentionally tried to simplify this down to the basics > so it has no projection details, etc at present. Any help would be > greatly appreciated. Thanks > > MAP > NAME "test" > IMAGETYPE PNG > SIZE 400 500 > STATUS ON > EXTENT 200949 883531 347001 979508 > SHAPEPATH "C:\ms4w\Apache\htdocs\test" > UNITS METERS > END > > WEB > IMAGEPATH "c:\ms4w\tmp\ms_tmp\" > IMAGEURL "/ms_tmp/" > END > > #Region Polygons > LAYER > NAME "North" > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=1 > dbname=test host=localhost port=5432" > DATA "the_geom from North" > TYPE POLYGON > STATUS DEFAULT > CLASS > STYLE > COLOR 1 1 1 > OUTLINECOLOR 1 1 1 > END > END > END > _______________________________________________ > postgis-users mailing list > postgis-users at postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users From hans.wapenaar at gis-innovations.nl Wed Apr 27 03:50:30 2011 From: hans.wapenaar at gis-innovations.nl (Hans Wapenaar (GIS Innovations)) Date: Wed, 27 Apr 2011 12:50:30 +0200 Subject: [mapserver-users] problem with setting outline width for polygons Message-ID: <003801cc04c8$ed493530$c7db9f90$@wapenaar@gis-innovations.nl> Hi, I'm using mapserver/mapscript in a windows/visual studio environment and I'm getting some errors: when I want to add a style to a layer with polygons the setting of a width generates an error. Any idea what the reason is? Setting of colors etc is no problem. Dim classtest As classObj = New classObj(layer) Dim styletest2 As styleObj = New styleObj(classtest) styletest2.outlinecolor.setRGB(74, 74, 74) styletest2.width = 5 Error Message: System.EntryPointNotFoundException: Unable to find an entry point named 'CSharp_styleObj_width_set' in DLL 'mapscript'. at OSGeo.MapServer.mapscriptPINVOKE.styleObj_width_set(HandleRef jarg1, Int32 jarg2) at OSGeo.MapServer.styleObj.set_width(Int32 value) Hans Wapenaar -------------- next part -------------- An HTML attachment was scrubbed... URL: From milo at dogodigi.net Wed Apr 27 04:58:03 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 27 Apr 2011 13:58:03 +0200 Subject: [mapserver-users] problem with setting outline width for polygons In-Reply-To: <-330104388465627521@unknownmsgid> References: <-330104388465627521@unknownmsgid> Message-ID: Hello Hans ;-) I have no experience using C# with Mapscript, but have you tried this? http://efreedom.com/Question/1-826851/Dynamic-Map-Layer-Mapservers-CSharp-MapScript Maybe it has something to do with that your colorvalues should be cast to int32 2011/4/27 Hans Wapenaar (GIS Innovations) : > Hi, > > I'm using mapserver/mapscript in a windows/visual studio environment and I'm > getting some errors: when I want to add a style to a layer with polygons the > setting of a width generates an error. > > Any idea what the reason is? Setting of colors etc is no problem. > > > > > > Dim classtest As classObj = New classObj(layer) > > Dim styletest2 As styleObj = New styleObj(classtest) > > styletest2.outlinecolor.setRGB(74, 74, 74) > > styletest2.width = 5 > > > > Error Message: > > System.EntryPointNotFoundException: Unable to find an entry point named > 'CSharp_styleObj_width_set' in DLL 'mapscript'. > > ?? at OSGeo.MapServer.mapscriptPINVOKE.styleObj_width_set(HandleRef jarg1, > Int32 jarg2) > > ?? at OSGeo.MapServer.styleObj.set_width(Int32 value) > > > > > > Hans Wapenaar > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From woodbri at swoodbridge.com Wed Apr 27 06:26:08 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 27 Apr 2011 09:26:08 -0400 Subject: [mapserver-users] Re: Postgis -> Mapserver white background In-Reply-To: <7D489DD8-A0BC-4F23-AC48-F730A1B75365@remoteinformation.com.au> References: <7D489DD8-A0BC-4F23-AC48-F730A1B75365@remoteinformation.com.au> Message-ID: <4DB81970.3090000@swoodbridge.com> Graham, Postgresql normally assumes table and column names will be in lower case and if not you need to quote them. So try: DATA ""the_geom from north" and/or (notice the quoting below) DATA 'the_geom from "North"' I think you will find things easier if you keep everything as lower case schema, table and column names. -Steve W On 4/27/2011 3:45 AM, Ben Madin wrote: > Graham, > > It looks OK to me. Although the brevity is good, it might help if you > could also attach the table definition - is it just producing a blank > png image? is it in the same projection etc...? How are you accessing > it (ie through WMS, mapscript or standard mapserver output). > > I've also copied this back to MapServer list... > > cheers > > Ben > > > > On 27/04/2011, at 3:26 PM, Graham Walker wrote: > >> Hi all, fairly new to all this. I was wondering if you could help >> me with the following issue. I can't seem to display my postgis >> table in mapserver. I can display shapefiles and html templates >> fine, but when I try to connect to my postgis table I simply get a >> white background (or whatever colour I set it as). >> >> I have managed to display postgis tables before in mapserver, but I >> am having no luck in this one and cannot see any differences. Both >> the shapefile and postgis table can display in qgis. My map file is >> listed below. I have intentionally tried to simplify this down to >> the basics so it has no projection details, etc at present. Any >> help would be greatly appreciated. Thanks >> >> MAP NAME "test" IMAGETYPE PNG SIZE 400 500 STATUS ON EXTENT >> 200949 883531 347001 979508 SHAPEPATH "C:\ms4w\Apache\htdocs\test" >> UNITS METERS END >> >> WEB IMAGEPATH "c:\ms4w\tmp\ms_tmp\" IMAGEURL "/ms_tmp/" END >> >> #Region Polygons LAYER NAME "North" CONNECTIONTYPE postgis >> CONNECTION "user=postgres password=1 dbname=test host=localhost >> port=5432" DATA "the_geom from North" TYPE POLYGON STATUS DEFAULT >> CLASS STYLE COLOR 1 1 1 OUTLINECOLOR 1 1 1 END END END >> _______________________________________________ postgis-users >> mailing list postgis-users at postgis.refractions.net >> http://postgis.refractions.net/mailman/listinfo/postgis-users > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From hans.wapenaar at gis-innovations.nl Wed Apr 27 07:20:02 2011 From: hans.wapenaar at gis-innovations.nl (Hans Wapenaar (GIS Innovations)) Date: Wed, 27 Apr 2011 16:20:02 +0200 Subject: [mapserver-users] problem with setting outline width for polygons In-Reply-To: References: <-330104388465627521@unknownmsgid> Message-ID: <004801cc04e6$330904c0$991b0e40$@wapenaar@gis-innovations.nl> Thanks for your reaction Milo, I tried to cast the values for Int32, but without any result. Problem is not in the color settings but in the width of the outlines of polygons. Colors of polygons and colors of the outlines are correctly rendered. I got the same errors when I try to set the values for label.size for a class. System.EntryPointNotFoundException: Unable to find an entry point named 'CSharp_labelObj_size_set' in DLL 'mapscript'. at OSGeo.MapServer.mapscriptPINVOKE.labelObj_size_set(HandleRef jarg1, Int32 jarg2) at OSGeo.MapServer.labelObj.set_size(Int32 value) But setting a size for a symbol works fine. So: something strange is happening. Or I am missing some settings that are required. Hans -----Oorspronkelijk bericht----- Van: Milo van der Linden [mailto:milo at dogodigi.net] Verzonden: woensdag 27 april 2011 13:58 Aan: Hans Wapenaar (GIS Innovations) CC: mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] problem with setting outline width for polygons Hello Hans ;-) I have no experience using C# with Mapscript, but have you tried this? http://efreedom.com/Question/1-826851/Dynamic-Map-Layer-Mapservers-CSharp-MapScript Maybe it has something to do with that your colorvalues should be cast to int32 2011/4/27 Hans Wapenaar (GIS Innovations) : > Hi, > > I'm using mapserver/mapscript in a windows/visual studio environment and I'm > getting some errors: when I want to add a style to a layer with polygons the > setting of a width generates an error. > > Any idea what the reason is? Setting of colors etc is no problem. > > > > > > Dim classtest As classObj = New classObj(layer) > > Dim styletest2 As styleObj = New styleObj(classtest) > > styletest2.outlinecolor.setRGB(74, 74, 74) > > styletest2.width = 5 > > > > Error Message: > > System.EntryPointNotFoundException: Unable to find an entry point named > 'CSharp_styleObj_width_set' in DLL 'mapscript'. > > at OSGeo.MapServer.mapscriptPINVOKE.styleObj_width_set(HandleRef jarg1, > Int32 jarg2) > > at OSGeo.MapServer.styleObj.set_width(Int32 value) > > > > > > Hans Wapenaar > > > > _______________________________________________ > 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 Apr 27 08:51:14 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Apr 2011 18:51:14 +0300 Subject: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE References: <4DAFDB8B.9020205@mapgears.com> <4DB1C83C.1070307@gatewaygeomatics.com> Message-ID: Hi, My old OpenStreetMap mapfile does not work any more after update. I read that some SYMBOL stuff has been moved into STYLE. Could somebody tell how should I convert the following symbols which were used for styling railways into STYLE things giving the same appearence? SYMBOL NAME "rail" TYPE TRUETYPE FONT sc CHARACTER '|' GAP -3 END SYMBOL NAME "railfar" TYPE SIMPLE PATTERN 5 5 END END -Jukka Rahkonen- From thomas.bonfort at gmail.com Wed Apr 27 09:07:18 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 27 Apr 2011 18:07:18 +0200 Subject: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE In-Reply-To: References: <4DAFDB8B.9020205@mapgears.com> <4DB1C83C.1070307@gatewaygeomatics.com> Message-ID: mapserver-utils repository has been updated for 6.0, you can see the changes there. -- thomas On Wed, Apr 27, 2011 at 17:51, Rahkonen Jukka wrote: > Hi, > > My old OpenStreetMap mapfile does not work any more after update. I read that some SYMBOL stuff has been moved into STYLE. Could somebody tell how should I convert the following symbols which were used for styling railways into STYLE things giving the same appearence? > > SYMBOL > ? ?NAME "rail" > ? ?TYPE TRUETYPE > ? ?FONT sc > ? ?CHARACTER '|' > ? ?GAP -3 > END > SYMBOL > ? ?NAME "railfar" > ? ?TYPE SIMPLE > ? ?PATTERN 5 5 END > END > > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From cnieman at dmsolutions.ca Wed Apr 27 09:07:57 2011 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 27 Apr 2011 12:07:57 -0400 Subject: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE In-Reply-To: References: <4DAFDB8B.9020205@mapgears.com> <4DB1C83C.1070307@gatewaygeomatics.com> Message-ID: <4DB83F5D.8070101@dmsolutions.ca> Hi, For the "railfar" symbol, all you need is for the PATTERN to be in the style (no symbol required). Something like: STYLE COLOR 0 0 0 WIDTH 2 PATTERN 5 5 END END For the "rail" symbol, you need to move the GAP parameter from the symbol into the style. Something like: STYLE SYMBOL "rail" GAP -3 SIZE 5 COLOR 0 0 0 END And in the symbol file: SYMBOL NAME "rail" TYPE TRUETYPE FONT sc CHARACTER '|' END Christy On 04/27/2011 11:51 AM, Rahkonen Jukka wrote: > Hi, > > My old OpenStreetMap mapfile does not work any more after update. I read that some SYMBOL stuff has been moved into STYLE. Could somebody tell how should I convert the following symbols which were used for styling railways into STYLE things giving the same appearence? > > SYMBOL > NAME "rail" > TYPE TRUETYPE > FONT sc > CHARACTER '|' > GAP -3 > END > SYMBOL > NAME "railfar" > TYPE SIMPLE > PATTERN 5 5 END > END > > > -Jukka Rahkonen- > _______________________________________________ > 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 cunctator at gmail.com Wed Apr 27 09:08:44 2011 From: cunctator at gmail.com (The Cunctator) Date: Wed, 27 Apr 2011 12:08:44 -0400 Subject: [mapserver-users] Anyone want to work on a climate mapping web project w/me? In-Reply-To: References: Message-ID: Hey -- I'm in the prototype stage of a new map-based climate change website, just putting out feelers for anyone with GIS chops and an interest in the alpha/brainstorm stage of things. (The essential concept is to turn these types of stories into a dynamic real-time GIS site. http://wonkroom.thinkprogress.org/tag/global-boiling) Hit me up off-list if you're interested. -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at gmx.net Wed Apr 27 10:25:54 2011 From: armin.burger at gmx.net (Armin Burger) Date: Wed, 27 Apr 2011 19:25:54 +0200 Subject: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6 Message-ID: <4DB851A2.8060704@gmx.net> Hi everybody in MapServer/MapScript 6 the various class methods "free()" have been removed. If I want to have PHP/MapScript code compatible with both MapServer 5.x and 6, the easiest would be to completely remove these method calls from the code. My question is just if these free() methods are still somehow required or recommended for MapServer/MapScript 5.x or if I can silently drop them without any drawbacks. Cheers Armin From joanne.mcgraw at SYMPATICO.CA Wed Apr 27 10:42:35 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 27 Apr 2011 10:42:35 -0700 (PDT) Subject: [mapserver-users] Font/Symbol size change with different MapServer Message-ID: <1303926155390-6310467.post@n2.nabble.com> I have created a WMS containing a layer of points and labels that looks fine in our development environment. The font and symbol sizes are as I expect them to be. However, when I move this same WMS to our production environment, they display bigger...markedly so. I'll try to attach the pictures (with fingers crossed that it works). Is there some default value that is part of the MapServer configuration somewhere that could be affecting the size of the fonts and symbols? Is there a resolution thing somewhere I need to be concerned about? So far I haven't read anything to this effect anywhere. Thanks, jtm http://osgeo-org.1803224.n2.nabble.com/file/n6310467/Development.png http://osgeo-org.1803224.n2.nabble.com/file/n6310467/Production.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-Symbol-size-change-with-different-MapServer-tp6310467p6310467.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Wed Apr 27 11:01:17 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 27 Apr 2011 20:01:17 +0200 Subject: [mapserver-users] Font/Symbol size change with different MapServer In-Reply-To: <1303926155390-6310467.post@n2.nabble.com> References: <1303926155390-6310467.post@n2.nabble.com> Message-ID: The symbols aren't the same size also. I suspect you have a RESOLUTION or DEFRESOLUTION that is different between your dev and prod platforms. -- thomas On Wed, Apr 27, 2011 at 19:42, myOpenLayersUName wrote: > I have created a WMS containing a layer of points and labels that looks fine > in our development environment. The font and symbol sizes are as I expect > them to be. However, when I move this same WMS to our production > environment, they display bigger...markedly so. I'll try to attach the > pictures (with fingers crossed that it works). > > Is there some default value that is part of the MapServer configuration > somewhere that could be affecting the size of the fonts and symbols? Is > there a resolution thing somewhere I need to be concerned about? So far I > haven't read anything to this effect anywhere. > > Thanks, > jtm > > http://osgeo-org.1803224.n2.nabble.com/file/n6310467/Development.png > http://osgeo-org.1803224.n2.nabble.com/file/n6310467/Production.png > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-Symbol-size-change-with-different-MapServer-tp6310467p6310467.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 Wed Apr 27 11:12:03 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 27 Apr 2011 15:12:03 -0300 Subject: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE In-Reply-To: References: <4DAFDB8B.9020205@mapgears.com> <4DB1C83C.1070307@gatewaygeomatics.com> Message-ID: <4DB85C73.9050200@gatewaygeomatics.com> On 11-04-27 12:51 PM, Rahkonen Jukka wrote: > Hi, > > My old OpenStreetMap mapfile does not work any more after update. I read that some SYMBOL stuff has been moved into STYLE. Could somebody tell how should I convert the following symbols which were used for styling railways into STYLE things giving the same appearence? > > SYMBOL > NAME "rail" > TYPE TRUETYPE > FONT sc > CHARACTER '|' > GAP -3 > END > SYMBOL > NAME "railfar" > TYPE SIMPLE > PATTERN 5 5 END > END > Just to add to what Christy mentioned, here is a snippet of my OSM mapfile for MapServer 6.0: ################# # Inline Symbols ################# SYMBOL NAME "rail" TYPE TRUETYPE FONT sc CHARACTER '|' END SYMBOL NAME "railfar" TYPE SIMPLE END ... LAYER ... CLASS ... STYLE SYMBOL rail SIZE 5 COLOR "#555554" GAP -3 END END END LAYER ... CLASS ... STYLE SYMBOL railfar WIDTH 2 COLOR "#ffffff" PATTERN 5 5 END END END END Hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From msubedee at yahoo.com Wed Apr 27 12:05:48 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Wed, 27 Apr 2011 12:05:48 -0700 (PDT) Subject: [mapserver-users] multiple layers in a class Message-ID: <1360.87254.qm@web37408.mail.mud.yahoo.com> Hi, In the STYLE documentation, it is mentioned that it is possible to have multiple layers within a class. I could not find any example how it can be implemented. I was checking an example in http://lists.osgeo.org/pipermail/mapserver-users/2010-August/066303.html where "SMALL PIG" and "BIG PIG" are in two different classes. However I am wondering if it is possible to implement it within a same class but representing with different styles. It means representing two different "PIG" in a same class but with different coloring mechanisms. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Wed Apr 27 12:15:35 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 27 Apr 2011 12:15:35 -0700 (PDT) Subject: [mapserver-users] Re: Font/Symbol size change with different MapServer In-Reply-To: References: <1303926155390-6310467.post@n2.nabble.com> Message-ID: <1303931735611-6310801.post@n2.nabble.com> I came across that in the documentation, but couldn't find where I would check that. I understand setting it in the map files; but where is the default set? Where do I look to see if they are different on the two systems? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-Symbol-size-change-with-different-MapServer-tp6310467p6310801.html Sent from the Mapserver - User mailing list archive at Nabble.com. From david.fawcett at state.mn.us Wed Apr 27 12:35:44 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 27 Apr 2011 14:35:44 -0500 Subject: [mapserver-users] multiple layers in a class In-Reply-To: <1360.87254.qm@web37408.mail.mud.yahoo.com> References: <1360.87254.qm@web37408.mail.mud.yahoo.com> Message-ID: Mukesh, If you want to symbolize SMALL PIG and BIG PIG differently, you will need two classes. A class is used to select features that match the (optional) class expression. You can have multiple styles within a class, but they would be applied equally to all of the features in that class. One example might be stacking symbols for a feature. The docs don?t say that you can have multiple ?layers? within a class, but that you can have multiple ?styles? applied within a class. http://mapserver.org/mapfile/style.html In your description below, you are conceptually talking about having different classes within a layer, but just using different words. Is there a reason that you have an aversion to using multiple classes? You can group classes if there is a need for it. http://mapserver.org/mapfile/class.html David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukesh Subedee Sent: Wednesday, April 27, 2011 2:06 PM To: mapserver mailing list Subject: [mapserver-users] multiple layers in a class Hi, In the STYLE documentation, it is mentioned that it is possible to have multiple layers within a class. I could not find any example how it can be implemented. I was checking an example in http://lists.osgeo.org/pipermail/mapserver-users/2010-August/066303.html where "SMALL PIG" and "BIG PIG" are in two different classes. However I am wondering if it is possible to implement it within a same class but representing with different styles. It means representing two different "PIG" in a same class but with different coloring mechanisms. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From msubedee at yahoo.com Wed Apr 27 13:40:30 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Wed, 27 Apr 2011 13:40:30 -0700 (PDT) Subject: [mapserver-users] multiple layers in a class In-Reply-To: References: <1360.87254.qm@web37408.mail.mud.yahoo.com> Message-ID: <677931.76993.qm@web37401.mail.mud.yahoo.com> Oops, my bad...I meant multiple styles within a class. Does that mean I cannot use different color scheme for symbolizing "SMALL PIG" and "BIG PIG" within a same class? Is there any way to categorize each PIG with different EXPRESSION and give different STYLE for each within a class? Mukesh ________________________________ From: "Fawcett, David (MPCA)" To: Mukesh Subedee ; mapserver mailing list Sent: Wednesday, April 27, 2011 12:35:44 Subject: RE: [mapserver-users] multiple layers in a class Mukesh, If you want to symbolize SMALL PIG and BIG PIG differently, you will need two classes. A class is used to select features that match the (optional) class expression. You can have multiple styles within a class, but they would be applied equally to all of the features in that class. One example might be stacking symbols for a feature. The docs don?t say that you can have multiple ?layers? within a class, but that you can have multiple ?styles? applied within a class. http://mapserver.org/mapfile/style.html In your description below, you are conceptually talking about having different classes within a layer, but just using different words. Is there a reason that you have an aversion to using multiple classes? You can group classes if there is a need for it. http://mapserver.org/mapfile/class.html David. From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukesh Subedee Sent: Wednesday, April 27, 2011 2:06 PM To: mapserver mailing list Subject: [mapserver-users] multiple layers in a class Hi, In the STYLE documentation, it is mentioned that it is possible to have multiple layers within a class. I could not find any example how it can be implemented. I was checking an example in http://lists.osgeo.org/pipermail/mapserver-users/2010-August/066303.html where "SMALL PIG" and "BIG PIG" are in two different classes. However I am wondering if it is possible to implement it within a same class but representing with different styles. It means representing two different "PIG" in a same class but with different coloring mechanisms. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From msubedee at yahoo.com Wed Apr 27 13:44:10 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Wed, 27 Apr 2011 13:44:10 -0700 (PDT) Subject: [mapserver-users] multiple styles in a class In-Reply-To: References: <1360.87254.qm@web37408.mail.mud.yahoo.com> Message-ID: <144396.21634.qm@web37407.mail.mud.yahoo.com> Hi David, Oops, my bad...I meant multiple styles within a class. Does that mean I cannot use different color scheme for symbolizing "SMALL PIG" and "BIG PIG" within a same class? Is there any way to categorize each PIG with different EXPRESSION and give different STYLE for each within a class? Mukesh ________________________________ From: "Fawcett, David (MPCA)" To: Mukesh Subedee ; mapserver mailing list Sent: Wednesday, April 27, 2011 12:35:44 Subject: RE: [mapserver-users] multiple layers in a class Mukesh, If you want to symbolize SMALL PIG and BIG PIG differently, you will need two classes. A class is used to select features that match the (optional) class expression. You can have multiple styles within a class, but they would be applied equally to all of the features in that class. One example might be stacking symbols for a feature. The docs don?t say that you can have multiple ?layers? within a class, but that you can have multiple ?styles? applied within a class. http://mapserver.org/mapfile/style.html In your description below, you are conceptually talking about having different classes within a layer, but just using different words. Is there a reason that you have an aversion to using multiple classes? You can group classes if there is a need for it. http://mapserver.org/mapfile/class.html David. From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukesh Subedee Sent: Wednesday, April 27, 2011 2:06 PM To: mapserver mailing list Subject: [mapserver-users] multiple layers in a class Hi, In the STYLE documentation, it is mentioned that it is possible to have multiple layers within a class. I could not find any example how it can be implemented. I was checking an example in http://lists.osgeo.org/pipermail/mapserver-users/2010-August/066303.html where "SMALL PIG" and "BIG PIG" are in two different classes. However I am wondering if it is possible to implement it within a same class but representing with different styles. It means representing two different "PIG" in a same class but with different coloring mechanisms. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From msubedee at yahoo.com Wed Apr 27 13:50:16 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Wed, 27 Apr 2011 13:50:16 -0700 (PDT) Subject: [mapserver-users] multiple styles in a class In-Reply-To: References: <1360.87254.qm@web37408.mail.mud.yahoo.com> <677931.76993.qm@web37401.mail.mud.yahoo.com> Message-ID: <412153.24714.qm@web37405.mail.mud.yahoo.com> I wanted to minimize the number of classes within a layer and found a statement in MapServer/Style documentation that we can have multiple styles within a class but was wondering if they could be used for styling (coloring) different attributes of a type (as in PIG example). Mukesh ________________________________ From: "Fawcett, David (MPCA)" To: Mukesh Subedee ; mapserver mailing list Sent: Wednesday, April 27, 2011 13:42:58 Subject: RE: [mapserver-users] multiple layers in a class No. That is what classes are for. What is your concern about using multiple classes? From:Mukesh Subedee [mailto:msubedee at yahoo.com] Sent: Wednesday, April 27, 2011 3:41 PM To: Fawcett, David (MPCA); mapserver mailing list Subject: Re: [mapserver-users] multiple layers in a class Oops, my bad...I meant multiple styles within a class. Does that mean I cannot use different color scheme for symbolizing "SMALL PIG" and "BIG PIG" within a same class? Is there any way to categorize each PIG with different EXPRESSION and give different STYLE for each within a class? Mukesh ________________________________ From:"Fawcett, David (MPCA)" To: Mukesh Subedee ; mapserver mailing list Sent: Wednesday, April 27, 2011 12:35:44 Subject: RE: [mapserver-users] multiple layers in a class Mukesh, If you want to symbolize SMALL PIG and BIG PIG differently, you will need two classes. A class is used to select features that match the (optional) class expression. You can have multiple styles within a class, but they would be applied equally to all of the features in that class. One example might be stacking symbols for a feature. The docs don?t say that you can have multiple ?layers? within a class, but that you can have multiple ?styles? applied within a class. http://mapserver.org/mapfile/style.html In your description below, you are conceptually talking about having different classes within a layer, but just using different words. Is there a reason that you have an aversion to using multiple classes? You can group classes if there is a need for it. http://mapserver.org/mapfile/class.html David. From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukesh Subedee Sent: Wednesday, April 27, 2011 2:06 PM To: mapserver mailing list Subject: [mapserver-users] multiple layers in a class Hi, In the STYLE documentation, it is mentioned that it is possible to have multiple layers within a class. I could not find any example how it can be implemented. I was checking an example in http://lists.osgeo.org/pipermail/mapserver-users/2010-August/066303.html where "SMALL PIG" and "BIG PIG" are in two different classes. However I am wondering if it is possible to implement it within a same class but representing with different styles. It means representing two different "PIG" in a same class but with different coloring mechanisms. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fawcett at state.mn.us Wed Apr 27 13:42:58 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 27 Apr 2011 15:42:58 -0500 Subject: [mapserver-users] multiple layers in a class In-Reply-To: <677931.76993.qm@web37401.mail.mud.yahoo.com> References: <1360.87254.qm@web37408.mail.mud.yahoo.com> <677931.76993.qm@web37401.mail.mud.yahoo.com> Message-ID: No. That is what classes are for. What is your concern about using multiple classes? From: Mukesh Subedee [mailto:msubedee at yahoo.com] Sent: Wednesday, April 27, 2011 3:41 PM To: Fawcett, David (MPCA); mapserver mailing list Subject: Re: [mapserver-users] multiple layers in a class Oops, my bad...I meant multiple styles within a class. Does that mean I cannot use different color scheme for symbolizing "SMALL PIG" and "BIG PIG" within a same class? Is there any way to categorize each PIG with different EXPRESSION and give different STYLE for each within a class? Mukesh ________________________________ From: "Fawcett, David (MPCA)" To: Mukesh Subedee ; mapserver mailing list Sent: Wednesday, April 27, 2011 12:35:44 Subject: RE: [mapserver-users] multiple layers in a class Mukesh, If you want to symbolize SMALL PIG and BIG PIG differently, you will need two classes. A class is used to select features that match the (optional) class expression. You can have multiple styles within a class, but they would be applied equally to all of the features in that class. One example might be stacking symbols for a feature. The docs don?t say that you can have multiple ?layers? within a class, but that you can have multiple ?styles? applied within a class. http://mapserver.org/mapfile/style.html In your description below, you are conceptually talking about having different classes within a layer, but just using different words. Is there a reason that you have an aversion to using multiple classes? You can group classes if there is a need for it. http://mapserver.org/mapfile/class.html David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mukesh Subedee Sent: Wednesday, April 27, 2011 2:06 PM To: mapserver mailing list Subject: [mapserver-users] multiple layers in a class Hi, In the STYLE documentation, it is mentioned that it is possible to have multiple layers within a class. I could not find any example how it can be implemented. I was checking an example in http://lists.osgeo.org/pipermail/mapserver-users/2010-August/066303.html where "SMALL PIG" and "BIG PIG" are in two different classes. However I am wondering if it is possible to implement it within a same class but representing with different styles. It means representing two different "PIG" in a same class but with different coloring mechanisms. Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From msubedee at yahoo.com Wed Apr 27 14:39:22 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Wed, 27 Apr 2011 14:39:22 -0700 (PDT) Subject: [mapserver-users] use of CLASSGROUP/GROUP Message-ID: <862565.97866.qm@web37403.mail.mud.yahoo.com> Hi all, Does anyone has answer of this question? http://www.osgeo.org/pipermail/mapserver-users/2008-October/057975.html Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Apr 27 19:56:51 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 27 Apr 2011 22:56:51 -0400 Subject: [mapserver-users] MapServer 6.0.0-rc1 release Message-ID: <4DB8D773.1090000@mapgears.com> The MapServer Team is pleased to announce the release of MapServer 6.0.0-rc1 (release candidate 1). The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). If all goes well and no blocker issues are reported, then this release candidate could lead us to a final 6.0.0 release next week. The full release plan which also includes the list of new features and changes in this release is available at: http://mapserver.org/trunk/development/release/release-plan-6.0.html The list of fixes since the last beta is attached at the end of this message. For a complete list see the HISTORY.TXT file at: http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc1/mapserver/HISTORY.TXT We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. The latest version is available online at: http://mapserver.org/trunk/MIGRATION_GUIDE.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.0.0-rc1.tar.gz The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team Version 6.0.0-rc1 (2011-04-27) ------------------------------ - Fix for the styleitem handling with union layer (#3674) - Fixed mindistance label test to check layer indexes. (#3851) - Fixed segmentation fault in PHP/MapScript and improved the php object method calls (#3730) - Fix build issue related to unnecessary use of gdal-config --dep-libs (#3316) From karsten at terragis.net Thu Apr 28 00:55:26 2011 From: karsten at terragis.net (karsten vennemann) Date: Thu, 28 Apr 2011 00:55:26 -0700 Subject: [mapserver-users] character encoding shape file with german umlaute Message-ID: Hi List, I had some trouble with getting correct character encoding to work with MapServer and with german Umlauten (??? and ?). For a PostGIS layer I got it fixed setting the permanent variable 'client encoding' to LATIN1 does the trick ;) The db otherwise is utf8 , the system german locale (which has impact really anyway for he most part). However I have now trouble also with labels from a shape file based MapServer WMS which show screwed up as some symbols . The attributes are showing correctly inside the dbf table. The same layers just 'worked' on the old server - however something must be different on the new one since that is just came up with the move. Is there anything I can look for to coax MapServer to correctly encode label test annotations ? I tried setting ENCODING 'LATIN1' in the label to no avail .. Cheers Karsten Terra GIS LTD www.terragis.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten at terragis.net Thu Apr 28 00:57:58 2011 From: karsten at terragis.net (karsten vennemann) Date: Thu, 28 Apr 2011 00:57:58 -0700 Subject: [mapserver-users] RE: character encoding shape file with german umlaute Message-ID: No stop. setting ENCODING 'LATIN1' in the label fixed it :) Sorry for the disturbance Karsten _____ From: karsten vennemann [mailto:karsten at terragis.net] Sent: Thursday, April 28, 2011 00:55 To: 'mapserver-users at lists.osgeo.org' Subject: character encoding shape file with german umlaute Hi List, I had some trouble with getting correct character encoding to work with MapServer and with german Umlauten (??? and ?). For a PostGIS layer I got it fixed setting the permanent variable 'client encoding' to LATIN1 does the trick ;) The db otherwise is utf8 , the system german locale (which has impact really anyway for he most part). However I have now trouble also with labels from a shape file based MapServer WMS which show screwed up as some symbols . The attributes are showing correctly inside the dbf table. The same layers just 'worked' on the old server - however something must be different on the new one since that is just came up with the move. Is there anything I can look for to coax MapServer to correctly encode label test annotations ? I tried setting ENCODING 'LATIN1' in the label to no avail .. Cheers Karsten Terra GIS LTD www.terragis.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Apr 28 02:20:53 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 28 Apr 2011 12:20:53 +0300 Subject: [mapserver-users] Validation beyond [A-z] In-Reply-To: References: Message-ID: Hi, Validation is nowadays needed in quite a many places in a mapfile. However, we who live outside the English speaking world tend to have more characters in the alphabet than A to Z. This makes the mapfile validation idea only half effective because for making things to work at all with the native data we must accept almost everything that is non-numeric with wildcards. Are there others who think that this is a problem? Stephen Woodbidge commented slightly this topic in another thead a month ago (Mar 29, 2011) http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yrrman at gmail.com Thu Apr 28 03:42:46 2011 From: yrrman at gmail.com (ChrisFern) Date: Thu, 28 Apr 2011 03:42:46 -0700 (PDT) Subject: [mapserver-users] Re: NoDATA value, transparency for paletted IMG file In-Reply-To: <1303810846728-6305135.post@n2.nabble.com> References: <1303810846728-6305135.post@n2.nabble.com> Message-ID: <1303987366188-6312790.post@n2.nabble.com> Dear Frank, dear all, thanks for your reply. I think I have narrowed down the problem and it isn't really a mapserver issue - the 8bit paletted img gets rendered to a 4bit-per-pixel png whereas the correctly transparent RGB img gets rendered to an 8bit-per-pixel png. Seems that the Google Earth API can't detect/deal with the NoData value in this 4bpp png and renders this value sort of "shaded black" (which I would like to get ridd of). GIMP for example can deal with the transparency in this 4bpp png. If I switch to RGBA in the output format, then I have the transparency however the image is much bigger: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" # IMAGEMODE RGBA IMAGEMODE PC256 EXTENSION "png" TRANSPARENT ON FORMATOPTION "transparent=on" END Is there a way I can force the mapserver to produce 8bpp pngs? THANKS for your help - highly appreciated - and greetings, Chris PS here's the gdalinfo output for the 4bpp png: Driver: PNG/Portable Network Graphics Files: lb_usa.png Size is 1024, 768 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 768.0) Upper Right ( 1024.0, 0.0) Lower Right ( 1024.0, 768.0) Center ( 512.0, 384.0) Band 1 Block=1024x1 Type=Byte, ColorInterp=Palette NoData Value=0 Image Structure Metadata: NBITS=4 Color Table (RGB with 9 entries) 0: 1,1,1,0 1: 0,0,0,255 2: 12,16,120,255 3: 31,62,140,255 4: 33,110,158,255 5: 42,156,154,255 6: 61,184,104,255 7: 59,214,45,255 8: 113,235,47,255 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/NoDATA-value-transparency-for-paletted-IMG-file-tp6305135p6312790.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu Apr 28 04:04:11 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 28 Apr 2011 08:04:11 -0300 Subject: [mapserver-users] RE: character encoding shape file with german umlaute In-Reply-To: References: Message-ID: <4DB949AB.20004@gatewaygeomatics.com> For any future readers, this is documented at http://mapserver.org/mapfile/labelencoding.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-04-28 4:57 AM, karsten vennemann wrote: > No stop. > setting > ENCODING 'LATIN1' > in the label fixed it :) > Sorry for the disturbance > Karsten > > ------------------------------------------------------------------------ > *From:* karsten vennemann [mailto:karsten at terragis.net] > *Sent:* Thursday, April 28, 2011 00:55 > *To:* 'mapserver-users at lists.osgeo.org' > *Subject:* character encoding shape file with german umlaute > > Hi List, > I had some trouble with getting correct character encoding to work > with MapServer and with german Umlauten (??? and ?). > For a PostGIS layer I got it fixed setting thepermanent variable > 'client encoding' to LATIN1 does the trick ;) The db otherwise is > utf8 , the system german locale (which has impact really anyway for > he most part). > However I have now trouble also with labels from a shape file based > MapServer WMS which show screwed up as some symbols . The attributes > are showing correctly inside the dbf table. The same layers just > 'worked' on the old server - however something must be different on > the new one since that is just came up with the move. Is there > anything I can look for to coax MapServer to correctly encode label > test annotations ? > I tried setting > ENCODING 'LATIN1' > in the label to no avail .. > Cheers > Karsten > > Terra GIS LTD > www.terragis.net > From marten.martinsson at linkoping.se Thu Apr 28 04:44:51 2011 From: marten.martinsson at linkoping.se (marten.martinsson) Date: Thu, 28 Apr 2011 04:44:51 -0700 (PDT) Subject: [mapserver-users] JPG Tile index in mapserver v5.6.3 Message-ID: <1303991091011-6312908.post@n2.nabble.com> Hi! I have the following problem: I have an installation of Mapserver v5.6.3. For som reason (maby it should be like that...) I dont have any ecw-support in my installation. I know this could be changed by installing support for GDAL. However I found it easier to convert the ecw-files to jpg-files with corresponding JGW-files. Here is my problem: I create a tile index file for my jpg-files and use it to read the raster tiles. Now it seams like mapserver cannot read the world file for the jpg:s. Is there support for world-files in when accessing jpg-files via a tile index file? I dont get any error message, only a blank map window, which lead me to the conclusion that the geo referensing is corrupt some how... Anybody who has encountered the same problem? Regards. /M?rten -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/JPG-Tile-index-in-mapserver-v5-6-3-tp6312908p6312908.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu Apr 28 04:54:18 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 28 Apr 2011 14:54:18 +0300 Subject: [mapserver-users] JPG Tile index in mapserver v5.6.3 In-Reply-To: <1303991091011-6312908.post@n2.nabble.com> References: <1303991091011-6312908.post@n2.nabble.com> Message-ID: Hi, Without doing any reading I would suggest first to try what happens if you rename the world files into .wld. Another thing is that you should not really use jpeg images. Use jpeg compresses tiff files instead. Read http://gdal.org/frmt_gtiff.html Remember -co COMPRESS=JPEG and -co PHOTOMETRIC=YCBCR Read http://gdal.org/gdaladdo.html Remember gdaladdo --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR The result will use about as much disk space as ECW and it will be a little bit faster. I have understood that it is no more allowed to even read ECW images as source with a server application without a license from ERDAS and it is rather expensive, close to the price of the whole ERDAS Apollo. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > marten.martinsson > L?hetetty: 28. huhtikuuta 2011 14:45 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] JPG Tile index in mapserver v5.6.3 > > Hi! > > I have the following problem: > I have an installation of Mapserver v5.6.3. For som reason > (maby it should > be like that...) I dont have any ecw-support in my installation. > I know this could be changed by installing support for GDAL. > However I found > it easier to convert the ecw-files to jpg-files with corresponding > JGW-files. > > Here is my problem: > I create a tile index file for my jpg-files and use it to > read the raster > tiles. > Now it seams like mapserver cannot read the world file for the jpg:s. > > Is there support for world-files in when accessing jpg-files > via a tile > index file? > > I dont get any error message, only a blank map window, which > lead me to the > conclusion that the geo referensing is corrupt some how... > > Anybody who has encountered the same problem? > > Regards. > /M?rten > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/JPG-Tile-index-in-mapse rver-v5-6-3-tp6312908p6312908.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 marten.martinsson at linkoping.se Thu Apr 28 05:04:21 2011 From: marten.martinsson at linkoping.se (marten.martinsson) Date: Thu, 28 Apr 2011 05:04:21 -0700 (PDT) Subject: [mapserver-users] Re: JPG Tile index in mapserver v5.6.3 In-Reply-To: References: <1303991091011-6312908.post@n2.nabble.com> Message-ID: <1303992261889-6312963.post@n2.nabble.com> Hi Jukka! I already tried to change the file ending on the world file but it didn?t help. Not really with you on yor 2nd tip there. You want me to convert the jpg to tiff-files instead? I am pretty new to GDAL so could you explain what the functions actually does? /M -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/JPG-Tile-index-in-mapserver-v5-6-3-tp6312908p6312963.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu Apr 28 05:21:03 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 28 Apr 2011 15:21:03 +0300 Subject: [mapserver-users] Re: JPG Tile index in mapserver v5.6.3 In-Reply-To: <1303992261889-6312963.post@n2.nabble.com> References: <1303991091011-6312908.post@n2.nabble.com> <1303992261889-6312963.post@n2.nabble.com> Message-ID: Hi, Jpeg file format is not good for a typical geospatial use when a little arbitrary piece of a big image should be opened and showed. I forgot one tiff creation option, use -co TILED=YES That way you can create a tiff image file which is internally organised as tiles which are fast to fetch without a need to read the whole big image file. The image data inside tiff can be compressed with jpeg algorithm which will give the same level of compression than using plain jpeg files. When it comes to your original ecw files and the jpeg files you have now in your hands, forward systematically. - check the original ecw with gdalinfo gdalinfo original.ecw - compare with the gdalinfo or the jpeg file gdalinfo jpeg.jpg - you should want to check the tileindex shapefile with some GIS program like OpenJUMP or QGis; check if the image footprint rectangles are there nice and if the LOCATION attribute has some reasonable value; consider running gdaltindex with -write_absolute_path if you are not sure about where the relative paths will lead - check the projections in your mapfile, both at MAP and LAYER level - add DEBUG 5 into your layer and read what you will get into MS_ERRORFILE - I trust that you will get your images shown and that you will easily find lots of interesting reading about the topic from the web. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > marten.martinsson > L?hetetty: 28. huhtikuuta 2011 15:04 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Re: JPG Tile index in mapserver v5.6.3 > > Hi Jukka! > > I already tried to change the file ending on the world file > but it didn?t > help. > > Not really with you on yor 2nd tip there. > > You want me to convert the jpg to tiff-files instead? > I am pretty new to GDAL so could you explain what the > functions actually > does? > > /M > > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/JPG-Tile-index-in-mapse rver-v5-6-3-tp6312908p6312963.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From yassefa at dmsolutions.ca Thu Apr 28 05:50:39 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 28 Apr 2011 08:50:39 -0400 Subject: [mapserver-users] use of CLASSGROUP/GROUP In-Reply-To: <862565.97866.qm@web37403.mail.mud.yahoo.com> References: <862565.97866.qm@web37403.mail.mud.yahoo.com> Message-ID: <4DB9629F.1070402@dmsolutions.ca> Something like this should work for map file changes via url: http://localhost/cgi-bin/mapserv.exe?mode=map&map=f:/msapps/gmap-ms40/htdocs/gmap75.map&layers=land_fn_group&map_imagetype=png&map.layer[land_fn_group]=classgroup+green You need to add a validation block on your layer VALIDATION 'classgroup' '.' END check bug http://trac.osgeo.org/mapserver/ticket/3754 for hints/docs on how url substitutions and validation blocks work regards On 27/04/2011 5:39 PM, Mukesh Subedee wrote: > Hi all, > > Does anyone has answer of this question? > http://www.osgeo.org/pipermail/mapserver-users/2008-October/057975.html > > Thanks, > Mukesh > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Thu Apr 28 06:34:59 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Thu, 28 Apr 2011 15:34:59 +0200 Subject: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1 Message-ID: <97942B28A7BA423B89980D58DF1966FE@pcawh2> Hi, I'm interested in map styling with SLD and have tested it locally with MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com. I have created an online application to play with SLD and the different MapServer versions. http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp There the below issues can be seen. For the online application I have only 6.0.0 Beta 7 available, but it is the same with RC1. Most things work great and create a good looking output. But some things doesn't work as expected. 1. It seems, that the output directory for debug is set static to C:\Windows\Temp. msApplySLD(): Map file after SLD was applied C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map IMGPATH or IMGURL is not take in account. 2. fill external symbol Polygon fill with external graphic is erratic. If I zoom in one level i get one tile (South America). It creates a file "http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in C:\Windows\Temp. 3. Continent, Continent_Else Filter PropertyIsLike doesn't work. With 5.6.1 it is ok. Expression from generated mapfile : EXPRESSION ("[Continent]" =~ /^Africa/) 4. or_like_abcdef Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last entry of PropertyIsLike are taken. With Or and PropertyIsEqualTo all entries are taken in both versions. Expression from generated mapfile (6 beta): EXPRESSION ( ("[country]" =~ /^A/) Or ( ("[country]" =~ /^B/) Or ( ("[country]" =~ /^C/) Or ( ("[country]" =~ /^D/) Or ( ("[country]" =~ /^E/) Or ("[country]" =~ /^F/)) ) ) ) ) msEvalExpression: Expression parser error. Failed to parse expression: ("[country]" =~ /^A/) Or ... With changing =* to ~* and / to " the mapfile works : EXPRESSION ( ("[country]" ~* "^A") Or ( ("[country]" ~* "^B") Or ... It seems, that in the generated mapfile is a wrong expression. 5. symbol fill rotated Polygon fill with rotated square looks interesting, but not as expected. Try with 5.6.1. 6. fill solid Polygon with solid fill without stroke shows thin lines of the borders. Some other issues are likely not supported by MapServer, but would be nice to have them. A. Changing the hatch width with sld. see "group3, hatch" as it is possible with mapfile class. B. UserStyles from applied SLD not supported in WMS Styles C. WMS request GetStyles creates only one userstyle with rules from the different styles described in the mapfile. Should it not create different userstyles for each style described in the mapfile? Regards, Arnd From mwkorver at gmail.com Thu Apr 28 07:02:56 2011 From: mwkorver at gmail.com (Mark Korver) Date: Thu, 28 Apr 2011 09:02:56 -0500 Subject: [mapserver-users] Re: JPG Tile index in mapserver v5.6.3 In-Reply-To: References: <1303991091011-6312908.post@n2.nabble.com> <1303992261889-6312963.post@n2.nabble.com> Message-ID: Great answer from Jukka, just adding abit. With jpg you have to have a world file. One work-around to that is to use tiff or more specifically Gtif/geotif which internally contains the world file/projection info so doesn't need a external world file. As Jukka explains the gtif way is better than the jpg way of doing things for performance reasons anyway. use gdal_translate to go from source ECW to tif ( geotif ) using the following params -of GTIFF -co TILED=YES -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR On Thu, Apr 28, 2011 at 7:21 AM, Rahkonen Jukka wrote: > Hi, > > Jpeg file format is not good for a typical geospatial use when a little arbitrary piece of a big image should be opened and showed. > > I forgot one tiff creation option, use -co TILED=YES > > That way you can create a tiff image file which is internally organised as tiles which are fast to fetch without a need to read the whole big image file. The image data inside tiff can be compressed with jpeg algorithm which will give the same level of compression than using plain jpeg files. > > When it comes to your original ecw files and the jpeg files you have now in your hands, forward systematically. > - check the original ecw with gdalinfo > gdalinfo original.ecw > - compare with the gdalinfo or the jpeg file > gdalinfo jpeg.jpg > - you should want to check the tileindex shapefile with some GIS program like OpenJUMP or QGis; check if the image footprint rectangles are there nice and if the LOCATION attribute has some reasonable value; consider running gdaltindex with -write_absolute_path if you are not sure about where the relative paths will lead > - check the projections in your mapfile, both at MAP and LAYER level > - add DEBUG 5 into your layer and read what you will get into MS_ERRORFILE > - I trust that you will get your images shown and that you will easily find lots of interesting reading about the topic from the web. > > -Jukka Rahkonen- > > > > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> marten.martinsson >> L?hetetty: 28. huhtikuuta 2011 15:04 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] Re: JPG Tile index in mapserver v5.6.3 >> >> Hi Jukka! >> >> I already tried to change the file ending on the world file >> but it didn?t >> help. >> >> Not really with you on yor 2nd tip there. >> >> You want me to convert the jpg to tiff-files instead? >> I am pretty new to GDAL so could you explain what the >> functions actually >> does? >> >> /M >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1803224.n2.nabble.com/JPG-Tile-index-in-mapse > rver-v5-6-3-tp6312908p6312963.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Thu Apr 28 07:15:45 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 28 Apr 2011 11:15:45 -0300 Subject: [mapserver-users] MapServer 6.0.0-rc1 release In-Reply-To: <4DB8D773.1090000@mapgears.com> References: <4DB8D773.1090000@mapgears.com> Message-ID: <4DB97691.7000102@gatewaygeomatics.com> Windows users can find the 6.0.0-RC1 release at: http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-04-27 11:56 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-rc1 (release candidate 1). > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well and no blocker issues are reported, then this release > candidate could lead us to a final 6.0.0 release next week. The full > release plan which also includes the list of new features and changes in > this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last beta is attached at the end of this > message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc1/mapserver/HISTORY.TXT > > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. The latest version is available online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > > Version 6.0.0-rc1 (2011-04-27) > ------------------------------ > > - Fix for the styleitem handling with union layer (#3674) > > - Fixed mindistance label test to check layer indexes. (#3851) > > - Fixed segmentation fault in PHP/MapScript and improved the php object > method calls (#3730) > > - Fix build issue related to unnecessary use of gdal-config --dep-libs > (#3316) > > From joanne.mcgraw at SYMPATICO.CA Thu Apr 28 07:26:44 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 28 Apr 2011 07:26:44 -0700 (PDT) Subject: [mapserver-users] Re: Font/Symbol size change with different MapServer In-Reply-To: <1303931735611-6310801.post@n2.nabble.com> References: <1303926155390-6310467.post@n2.nabble.com> <1303931735611-6310801.post@n2.nabble.com> Message-ID: <1304000804100-6313449.post@n2.nabble.com> Since you folks are usually so good on this forum, the lack of response to my previous reply suggests there is something wrong with my question. I'm guessing there's something about this that I just don't get which is glaringly obvious to anyone who knows anything about it. I'm hoping someone can help me understand what might be causing the discrepancy I am seeing between our two different environments and further, where to look to verify those differences exist. In the map file in question no DEFRESOLUTION is set; so, as I understand the documentation I have found, it defaults to 72. The RESOLUTION is set in the map file to 96. Since the DEFRESOLUTION and RESOLUTION are different, "the symbology in the layer definitions will be adjusted by a factor corresponding to RESOLUTION/DEFRESOLUTION. More specifically, this is done by multiplying the layer->scalefactor value by the resolution/defresolution ratio in msPrepareImage()." Finally, the documentation suggests that these parameters will affect size (for symbols and labels)...sure sounds like it's related to my problem. However, as the map file is the same on both machines (extracted directly from our source control), there has to be something different about the MapServer configuration itself that is causing the factor computed "by multiplying the layer->scalefactor value by the resolution/defresolution ratio" to come up with different values on the different machines and drawing the symbols and labels different sizes. Somewhere along the way, some value is being used that is different and I'm trying to identify what and where that might be so I can make sure they are the same. If any of this suggests that I have a completely wrong understanding of this stuff, please let me know where I can find a more detailed explanation. Or, if this is the wrong track, I'd appreciate being pointed in another direction. As it is at the moment, I'm completely stuck. Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-Symbol-size-change-with-different-MapServer-tp6310467p6313449.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu Apr 28 07:34:19 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 28 Apr 2011 17:34:19 +0300 Subject: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE In-Reply-To: <4DB85C73.9050200@gatewaygeomatics.com> References: <4DAFDB8B.9020205@mapgears.com> <4DB1C83C.1070307@gatewaygeomatics.com> <4DB85C73.9050200@gatewaygeomatics.com> Message-ID: Hi, I managed to make these changes to symbols and layer-class-styles as well as some other changes and additions needed in Layer-Labels and my map lives again. Thank you Jeff, Christy and Thomas. Do we have any good tool with GUI for building mapfiles with advanced styles? Writing everything by hand is little bit complicated, at least for me. -Jukka Rahkonen- Jeff McKenna wrote: > On 11-04-27 12:51 PM, Rahkonen Jukka wrote: > > Hi, > > > > My old OpenStreetMap mapfile does not work any more after > update. I read that some SYMBOL stuff has been moved into > STYLE. Could somebody tell how should I convert the following > symbols which were used for styling railways into STYLE > things giving the same appearence? > > > > SYMBOL > > NAME "rail" > > TYPE TRUETYPE > > FONT sc > > CHARACTER '|' > > GAP -3 > > END > > SYMBOL > > NAME "railfar" > > TYPE SIMPLE > > PATTERN 5 5 END > > END > > > > Just to add to what Christy mentioned, here is a snippet of my OSM > mapfile for MapServer 6.0: > > ################# > # Inline Symbols > ################# > > SYMBOL > NAME "rail" > TYPE TRUETYPE > FONT sc > CHARACTER '|' > END > SYMBOL > NAME "railfar" > TYPE SIMPLE > END > > ... > > LAYER > ... > CLASS > ... > STYLE > SYMBOL rail > SIZE 5 > COLOR "#555554" > GAP -3 > END > END > END > > > LAYER > ... > CLASS > ... > STYLE > SYMBOL railfar > WIDTH 2 > COLOR "#ffffff" > PATTERN 5 5 END > END > END > END > > Hope that helps. > > -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 joanne.mcgraw at SYMPATICO.CA Thu Apr 28 07:45:53 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 28 Apr 2011 07:45:53 -0700 (PDT) Subject: [mapserver-users] Re: Font/Symbol size change with different MapServer In-Reply-To: <1304000804100-6313449.post@n2.nabble.com> References: <1303926155390-6310467.post@n2.nabble.com> <1303931735611-6310801.post@n2.nabble.com> <1304000804100-6313449.post@n2.nabble.com> Message-ID: <1304001953428-6313512.post@n2.nabble.com> Good lord! I've discovered the problem. They have upgraded the version of MapServer on one of the machines and not the other. One is 5.4 (before all this DEFRESOLUTION stuff was introduced) and the other is 5.6.4 (after). So, the calculations are completely different. Okay, got it. Sorry for wasting your time with the longer explanation above. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-Symbol-size-change-with-different-MapServer-tp6310467p6313512.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Thu Apr 28 07:46:40 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 28 Apr 2011 16:46:40 +0200 Subject: [mapserver-users] Re: Font/Symbol size change with different MapServer In-Reply-To: <1304000804100-6313449.post@n2.nabble.com> References: <1303926155390-6310467.post@n2.nabble.com> <1303931735611-6310801.post@n2.nabble.com> <1304000804100-6313449.post@n2.nabble.com> Message-ID: are your production and dev envirronments running the same mapserver version? The scaling applied when resolution!=defresolution was introduced in 5.6 I think. -- thomas On Thu, Apr 28, 2011 at 16:26, myOpenLayersUName wrote: > Since you folks are usually so good on this forum, the lack of response to my > previous reply suggests there is something wrong with my question. I'm > guessing there's something about this that I just don't get which is > glaringly obvious to anyone who knows anything about it. I'm hoping someone > can help me understand what might be causing the discrepancy I am seeing > between our two different environments and further, where to look to verify > those differences exist. > > In the map file in question no DEFRESOLUTION is set; so, as I understand the > documentation I have found, it defaults to 72. The RESOLUTION is set in the > map file to 96. Since the DEFRESOLUTION and RESOLUTION are different, "the > symbology in the layer definitions will be adjusted by a factor > corresponding to RESOLUTION/DEFRESOLUTION. More specifically, this is done > by multiplying the layer->scalefactor value by the resolution/defresolution > ratio in msPrepareImage()." Finally, the documentation suggests that these > parameters will affect size (for symbols and labels)...sure sounds like it's > related to my problem. > > However, as the map file is the same on both machines (extracted directly > from our source control), there has to be something different about the > MapServer configuration itself that is causing the factor computed "by > multiplying the layer->scalefactor value by the resolution/defresolution > ratio" to come up with different values on the different machines and > drawing the symbols and labels different sizes. Somewhere along the way, > some value is being used that is different and I'm trying to identify what > and where that might be so I can make sure they are the same. > > If any of this suggests that I have a completely wrong understanding of this > stuff, please let me know where I can find a more detailed explanation. Or, > if this is the wrong track, I'd appreciate being pointed in another > direction. As it is at the moment, I'm completely stuck. > > Cheers, > jtm > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-Symbol-size-change-with-different-MapServer-tp6310467p6313449.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From steve.lime at state.mn.us Thu Apr 28 09:19:35 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 28 Apr 2011 11:19:35 -0500 Subject: [mapserver-users] RE: Validation beyond [A-z] In-Reply-To: References: Message-ID: I see the problem, just not sure how to fix it. Steve W. provided some possibilities but that's probably not the only approach. It would be helpful if some interested person(s) got together and drafted an RFC. I think the devs would be in a position to help define implementation details if the problem is well defined along with a proposed solution. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Thursday, April 28, 2011 4:21 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Validation beyond [A-z] Hi, Validation is nowadays needed in quite a many places in a mapfile. However, we who live outside the English speaking world tend to have more characters in the alphabet than A to Z. This makes the mapfile validation idea only half effective because for making things to work at all with the native data we must accept almost everything that is non-numeric with wildcards. Are there others who think that this is a problem? Stephen Woodbidge commented slightly this topic in another thead a month ago (Mar 29, 2011) http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Thu Apr 28 09:48:54 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 28 Apr 2011 18:48:54 +0200 Subject: [mapserver-users] RE: Validation beyond [A-z] In-Reply-To: References: Message-ID: <4DB99A76.2090503@uva.nl> I find the whole validation issue difficult and not well documented (http://trac.osgeo.org/mapserver/ticket/3754, last updated four hours ago). How do I put all validation off? I really don need that much security. Jan On 04/28/11 18:19, Lime, Steve D (DNR) wrote: > > I see the problem, just not sure how to fix it. Steve W. provided some > possibilities but that's probably not the only approach. It would be > helpful if some interested person(s) got together and drafted an RFC. > I think the devs would be in a position to help define implementation > details if the problem is well defined along with a proposed solution. > > Steve > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Rahkonen Jukka > *Sent:* Thursday, April 28, 2011 4:21 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Validation beyond [A-z] > > Hi, > > Validation is nowadays needed in quite a many places in a mapfile. > However, we who live outside the English speaking world tend to have > more characters in the alphabet than A to Z. This makes the mapfile > validation idea only half effective because for making things to work > at all with the native data we must accept almost everything that is > non-numeric with wildcards. Are there others who think that this is a > problem? > > Stephen Woodbidge commented slightly this topic in another thead a > month ago (Mar 29, 2011) > > http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html > > -Jukka Rahkonen- > > > _______________________________________________ > 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 Thu Apr 28 11:23:03 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Apr 2011 14:23:03 -0400 Subject: [mapserver-users] RE: Validation beyond [A-z] In-Reply-To: <4DB99A76.2090503@uva.nl> References: <4DB99A76.2090503@uva.nl> Message-ID: <4DB9B087.4090003@swoodbridge.com> Hi Jan, I do not think there is a global OFF switch for validation, but where validation is required you can include the regex validation string of /./ which means match anything except a null string, or to also accept a null string then use /.*/ You still need to be aware of when you should put a validation in place even if it accepts any string. Regards, -Steve W On 4/28/2011 12:48 PM, Jan Hartmann wrote: > I find the whole validation issue difficult and not well documented > (http://trac.osgeo.org/mapserver/ticket/3754, last updated four hours > ago). How do I put all validation off? I really don need that much security. > > Jan > > On 04/28/11 18:19, Lime, Steve D (DNR) wrote: >> >> I see the problem, just not sure how to fix it. Steve W. provided some >> possibilities but that?s probably not the only approach. It would be >> helpful if some interested person(s) got together and drafted an RFC. >> I think the devs would be in a position to help define implementation >> details if the problem is well defined along with a proposed solution. >> >> Steve >> >> *From:*mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >> *Rahkonen Jukka >> *Sent:* Thursday, April 28, 2011 4:21 AM >> *To:* mapserver-users at lists.osgeo.org >> >> *Subject:* [mapserver-users] Validation beyond [A-z] >> >> Hi, >> >> Validation is nowadays needed in quite a many places in a mapfile. >> However, we who live outside the English speaking world tend to have >> more characters in the alphabet than A to Z. This makes the mapfile >> validation idea only half effective because for making things to work >> at all with the native data we must accept almost everything that is >> non-numeric with wildcards. Are there others who think that this is a >> problem? >> >> Stephen Woodbidge commented slightly this topic in another thead a >> month ago (Mar 29, 2011) >> >> http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html >> >> -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 dolson at glifwc.org Thu Apr 28 11:34:02 2011 From: dolson at glifwc.org (Dara Olson) Date: Thu, 28 Apr 2011 13:34:02 -0500 Subject: [mapserver-users] Efficiency - Postgres/gis view or Mapserver data definition join Message-ID: <9B5B3E36D43741DCA316E1C2F2074B0B@GISWKSTN2> Greetings. I am hoping that I have posted this on the most appropriate list, please let me know if I should be posting to a different list. In our Mapserver application, we join a lot of tables together - generally one table with geometry to a "flat" table with tabular data. My question is - is it more efficient/faster to create a view in PostgreSQL doing the join and link to the view table from Mapserver or to define the join (SQL statement) with Mapserver in the data definition within the layer definition? Does it even matter because Mapserver sends the request to PostgreSQL/GIS? Also, we have joins that take a field within the flat table to determine which table to join to get geometry. For example, if the flat table column "join" value is equal to 1 then it joins to "table1" to get geometry or if column "join" value is equal to 2 then it joins to "table2" to get geometry. I read something that you were not supposed to use WHERE clauses in the Mapserver data definition. Would this be better to do as a view and link to the view table from the data definition? Any advice would be greatly appreciated. Thanks in advance! Dara -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Apr 28 11:44:57 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Apr 2011 14:44:57 -0400 Subject: [mapserver-users] RE: Validation beyond [A-z] In-Reply-To: References: Message-ID: <4DB9B5A9.5000904@swoodbridge.com> I could not find a ticket for this probelm so I have aopened a new one: http://trac.osgeo.org/mapserver/ticket/3853 Please add yourselves to the CC list if you want to follow along on updates. Also if you are aware of other areas of the code or mapfile that need to add support for UTF-8 characters please add a comment. Thanks, -Steve W On 4/28/2011 12:19 PM, Lime, Steve D (DNR) wrote: > I see the problem, just not sure how to fix it. Steve W. provided some > possibilities but that?s probably not the only approach. It would be > helpful if some interested person(s) got together and drafted an RFC. I > think the devs would be in a position to help define implementation > details if the problem is well defined along with a proposed solution. > > Steve > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Rahkonen > Jukka > *Sent:* Thursday, April 28, 2011 4:21 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Validation beyond [A-z] > > Hi, > > Validation is nowadays needed in quite a many places in a mapfile. > However, we who live outside the English speaking world tend to have > more characters in the alphabet than A to Z. This makes the mapfile > validation idea only half effective because for making things to work at > all with the native data we must accept almost everything that is > non-numeric with wildcards. Are there others who think that this is a > problem? > > Stephen Woodbidge commented slightly this topic in another thead a month > ago (Mar 29, 2011) > > http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html > > -Jukka Rahkonen- > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Apr 28 11:59:34 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Apr 2011 14:59:34 -0400 Subject: [mapserver-users] Efficiency - Postgres/gis view or Mapserver data definition join In-Reply-To: <9B5B3E36D43741DCA316E1C2F2074B0B@GISWKSTN2> References: <9B5B3E36D43741DCA316E1C2F2074B0B@GISWKSTN2> Message-ID: <4DB9B916.8000702@swoodbridge.com> On 4/28/2011 2:34 PM, Dara Olson wrote: > Greetings. I am hoping that I have posted this on the most appropriate > list, please let me know if I should be posting to a different list. > In our Mapserver application, we join a lot of tables together - > generally one table with geometry to a "flat" table with tabular data. > My question is - is it more efficient/faster to create a view in > PostgreSQL doing the join and link to the view table from Mapserver or > to define the join (SQL statement) with Mapserver in the data definition > within the layer definition? Does it even matter because Mapserver sends > the request to PostgreSQL/GIS? > Also, we have joins that take a field within the flat table to determine > which table to join to get geometry. For example, if the flat table > column "join" value is equal to 1 then it joins to "table1" to get > geometry or if column "join" value is equal to 2 then it joins to > "table2" to get geometry. I read something that you were not supposed to > use WHERE clauses in the Mapserver data definition. Would this be better > to do as a view and link to the view table from the data definition? > Any advice would be greatly appreciated. Thanks in advance! > Dara Dara, I don't think it matter if you create views or not from a performance point of view. View do allow you to hide much of the internals from the mapfile but that might not matter. The follow are some random examples of postgis DATA statements from some of my mapfiles. If you want to do complex queries then you need to wrap them into sub-query and that can have joins, where, union whatever you need in it. DATA "the_geom from (select gid, name, the_geom from lebanon_data.ai union all select gid, name, the_geom from data.ai) as foo using unique gid using srid=4326" DATA "the_geom from (select gid, coalesce(key::text,'') as key, feature, coalesce(st_type_abbr,' ') as st_type_abbr, coalesce(civic_num,' ') as civic_num, coalesce(street_name,' ') as street_name, the_geom from v_polygon) as foo using unique gid using srid=2036" DATA "the_geom from (select id, chk, the_geom from vertices_tmp where chk=1 and the_geom && setsrid(!BOX!, 4326) ) as foo using SRID=4326 using unique id" The !BOX! feature might be a custom patch I create or a standard mapserver feature I can't remember off the top of my head and don't have time at the moment to check into that, but what is does is substitute the text to define a box representing the image extents so I can place the in the subquery rather than the main query for performance reasons as the vertices_tmp table is huge. -Steve W From andy at squeakycode.net Thu Apr 28 11:56:22 2011 From: andy at squeakycode.net (Andy Colson) Date: Thu, 28 Apr 2011 13:56:22 -0500 Subject: [mapserver-users] Efficiency - Postgres/gis view or Mapserver data definition join In-Reply-To: <9B5B3E36D43741DCA316E1C2F2074B0B@GISWKSTN2> References: <9B5B3E36D43741DCA316E1C2F2074B0B@GISWKSTN2> Message-ID: <4DB9B856.7000901@squeakycode.net> On 4/28/2011 1:34 PM, Dara Olson wrote: > Greetings. I am hoping that I have posted this on the most appropriate > list, please let me know if I should be posting to a different list. > In our Mapserver application, we join a lot of tables together - > generally one table with geometry to a "flat" table with tabular data. > My question is - is it more efficient/faster to create a view in > PostgreSQL doing the join and link to the view table from Mapserver or > to define the join (SQL statement) with Mapserver in the data definition > within the layer definition? Does it even matter because Mapserver sends > the request to PostgreSQL/GIS? > Also, we have joins that take a field within the flat table to determine > which table to join to get geometry. For example, if the flat table > column "join" value is equal to 1 then it joins to "table1" to get > geometry or if column "join" value is equal to 2 then it joins to > "table2" to get geometry. I read something that you were not supposed to > use WHERE clauses in the Mapserver data definition. Would this be better > to do as a view and link to the view table from the data definition? > Any advice would be greatly appreciated. Thanks in advance! > Dara > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > is it more efficient/faster to create a view in > PostgreSQL doing the join and link to the view table from Mapserver or > to define the join (SQL statement) with Mapserver in the data definition > within the layer definition? I doubt a view would be faster or slower. I'd bet it would be the same. (Engine wise its going to process the same sql statement, collect/join the data the same way, etc). > I read something that you were not supposed to > use WHERE clauses in the Mapserver data definition. Where? I disagree with that totally. > Would this be better > to do as a view and link to the view table from the data definition? 1) performance wise, no, I doubt it because: create view test1 as select * from fname where id < 5; Then: "select * from test1" and "select * from fname where id < 5" are processed exactly the same way... and it would even be the same as: create view test2 as select * from fname; select * from test2 where id < 5; performance wise, the backend processes them all the same way. 2) usage wise, no because the view limit's your usage of the where. You cannot pass or change arguments: create view test1 as select * from fname where id < 5; There is no way to change the "id < 5" condition. You can't pass it as an argument to the view, and you can't modify it without recreating the view. I'd say its okay to stay with sql in your mapfile. The only time I have used views is when I need to query different tables with different names/columns in a clean consistent way. I sometimes get data that has a column parcel_number, or PID, or parcelNum or ... I create a view for each database, then my view can use the actual name, but my mapfile always looks the same: select pin, the_geom from parcels; Another good use for view's is if you want to hide some of the complexity of all the joins. It might make your mapfile look a little nicer and easier to edit. But dont put the where's inside the view... because then everyone is stuck with it. You mapfile should look like: select ...,the_geom from view where something = x; -Andy From dolson at glifwc.org Thu Apr 28 12:10:25 2011 From: dolson at glifwc.org (Dara Olson) Date: Thu, 28 Apr 2011 14:10:25 -0500 Subject: [mapserver-users] Efficiency - Postgres/gis view or Mapserver data definition join References: <9B5B3E36D43741DCA316E1C2F2074B0B@GISWKSTN2> <4DB9B856.7000901@squeakycode.net> Message-ID: Thanks so much! ----- Original Message ----- From: Andy Colson To: Dara Olson Cc: mapserver-users at lists.osgeo.org Sent: Thursday, April 28, 2011 1:56 PM Subject: Re: [mapserver-users] Efficiency - Postgres/gis view or Mapserver data definition join On 4/28/2011 1:34 PM, Dara Olson wrote: > Greetings. I am hoping that I have posted this on the most appropriate > list, please let me know if I should be posting to a different list. > In our Mapserver application, we join a lot of tables together - > generally one table with geometry to a "flat" table with tabular data. > My question is - is it more efficient/faster to create a view in > PostgreSQL doing the join and link to the view table from Mapserver or > to define the join (SQL statement) with Mapserver in the data definition > within the layer definition? Does it even matter because Mapserver sends > the request to PostgreSQL/GIS? > Also, we have joins that take a field within the flat table to determine > which table to join to get geometry. For example, if the flat table > column "join" value is equal to 1 then it joins to "table1" to get > geometry or if column "join" value is equal to 2 then it joins to > "table2" to get geometry. I read something that you were not supposed to > use WHERE clauses in the Mapserver data definition. Would this be better > to do as a view and link to the view table from the data definition? > Any advice would be greatly appreciated. Thanks in advance! > Dara > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > is it more efficient/faster to create a view in > PostgreSQL doing the join and link to the view table from Mapserver or > to define the join (SQL statement) with Mapserver in the data definition > within the layer definition? I doubt a view would be faster or slower. I'd bet it would be the same. (Engine wise its going to process the same sql statement, collect/join the data the same way, etc). > I read something that you were not supposed to > use WHERE clauses in the Mapserver data definition. Where? I disagree with that totally. > Would this be better > to do as a view and link to the view table from the data definition? 1) performance wise, no, I doubt it because: create view test1 as select * from fname where id < 5; Then: "select * from test1" and "select * from fname where id < 5" are processed exactly the same way... and it would even be the same as: create view test2 as select * from fname; select * from test2 where id < 5; performance wise, the backend processes them all the same way. 2) usage wise, no because the view limit's your usage of the where. You cannot pass or change arguments: create view test1 as select * from fname where id < 5; There is no way to change the "id < 5" condition. You can't pass it as an argument to the view, and you can't modify it without recreating the view. I'd say its okay to stay with sql in your mapfile. The only time I have used views is when I need to query different tables with different names/columns in a clean consistent way. I sometimes get data that has a column parcel_number, or PID, or parcelNum or ... I create a view for each database, then my view can use the actual name, but my mapfile always looks the same: select pin, the_geom from parcels; Another good use for view's is if you want to hide some of the complexity of all the joins. It might make your mapfile look a little nicer and easier to edit. But dont put the where's inside the view... because then everyone is stuck with it. You mapfile should look like: select ...,the_geom from view where something = x; -Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Thu Apr 28 12:10:52 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 28 Apr 2011 15:10:52 -0400 Subject: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1 In-Reply-To: <97942B28A7BA423B89980D58DF1966FE@pcawh2> References: <97942B28A7BA423B89980D58DF1966FE@pcawh2> Message-ID: <4DB9BBBC.3060104@dmsolutions.ca> On 28/04/2011 9:34 AM, Arnd Wippermann wrote: > Hi, > > I'm interested in map styling with SLD and have tested it locally with > MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com. > > I have created an online application to play with SLD and the different > MapServer versions. > http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ > er_SLD_World.asp > > There the below issues can be seen. For the online application I have only > 6.0.0 Beta 7 available, but it is the same with RC1. > > Most things work great and create a good looking output. > > But some things doesn't work as expected. > > 1. > It seems, that the output directory for debug is set static to > C:\Windows\Temp. > msApplySLD(): Map file after SLD was applied > C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map > IMGPATH or IMGURL is not take in account. > Temporary files are now written into the tmp directory location. It depends on the platform but should respect the environment variables set on your platform regarding temporary paths. It is not hardcoded in Mapserver. Ticket http://trac.osgeo.org/mapserver/ticket/3354 has notes on this. > 2. fill external symbol > Polygon fill with external graphic is erratic. If I zoom in one level i get > one tile (South America). > It creates a file > "http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in > C:\Windows\Temp. > > 3. Continent, Continent_Else > Filter PropertyIsLike doesn't work. With 5.6.1 it is ok. > Expression from generated mapfile : EXPRESSION ("[Continent]" =~ /^Africa/) > > 4. or_like_abcdef > Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last entry of > PropertyIsLike are taken. > With Or and PropertyIsEqualTo all entries are taken in both versions. > Expression from generated mapfile (6 beta): EXPRESSION ( ("[country]" =~ > /^A/) Or ( ("[country]" =~ /^B/) Or ( ("[country]" =~ /^C/) Or ( > ("[country]" =~ /^D/) Or ( ("[country]" =~ /^E/) Or ("[country]" =~ /^F/)) > ) ) ) ) > > msEvalExpression: Expression parser error. Failed to parse expression: > ("[country]" =~ /^A/) Or ... > > With changing =* to ~* and / to " the mapfile works : > EXPRESSION ( ("[country]" ~* "^A") Or ( ("[country]" ~* "^B") Or ... > > It seems, that in the generated mapfile is a wrong expression. > > 5. symbol fill rotated > Polygon fill with rotated square looks interesting, but not as expected. Try > with 5.6.1. > > 6. fill solid > Polygon with solid fill without stroke shows thin lines of the borders. > > Some other issues are likely not supported by MapServer, but would be nice > to have them. > > A. > Changing the hatch width with sld. see "group3, hatch" as it is possible > with mapfile class. > > B. > UserStyles from applied SLD not supported in WMS Styles > > C. > WMS request GetStyles creates only one userstyle with rules from the > different styles described in the mapfile. Should it not create different > userstyles for each style described in the mapfile? > > Regards, > Arnd > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Thu Apr 28 12:12:25 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 28 Apr 2011 15:12:25 -0400 Subject: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1 In-Reply-To: <4DB9BBBC.3060104@dmsolutions.ca> References: <97942B28A7BA423B89980D58DF1966FE@pcawh2> <4DB9BBBC.3060104@dmsolutions.ca> Message-ID: <4DB9BC19.3010206@dmsolutions.ca> Sorry I hit send with finishing the e-mail. I will through each items tomorrow and report. On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote: > On 28/04/2011 9:34 AM, Arnd Wippermann wrote: >> Hi, >> >> I'm interested in map styling with SLD and have tested it locally with >> MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com. >> >> I have created an online application to play with SLD and the different >> MapServer versions. >> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ >> >> er_SLD_World.asp >> >> There the below issues can be seen. For the online application I have >> only >> 6.0.0 Beta 7 available, but it is the same with RC1. >> >> Most things work great and create a good looking output. >> >> But some things doesn't work as expected. >> >> 1. >> It seems, that the output directory for debug is set static to >> C:\Windows\Temp. >> msApplySLD(): Map file after SLD was applied >> C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map >> IMGPATH or IMGURL is not take in account. >> > Temporary files are now written into the tmp directory location. It > depends on the platform but should respect the environment variables > set on your platform regarding temporary paths. It is not hardcoded in > Mapserver. Ticket http://trac.osgeo.org/mapserver/ticket/3354 has > notes on this. > >> 2. fill external symbol >> Polygon fill with external graphic is erratic. If I zoom in one level >> i get >> one tile (South America). >> It creates a file >> "http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in >> C:\Windows\Temp. >> >> 3. Continent, Continent_Else >> Filter PropertyIsLike doesn't work. With 5.6.1 it is ok. >> Expression from generated mapfile : EXPRESSION ("[Continent]" =~ >> /^Africa/) >> >> 4. or_like_abcdef >> Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last >> entry of >> PropertyIsLike are taken. >> With Or and PropertyIsEqualTo all entries are taken in both versions. >> Expression from generated mapfile (6 beta): EXPRESSION ( ("[country]" =~ >> /^A/) Or ( ("[country]" =~ /^B/) Or ( ("[country]" =~ /^C/) Or ( >> ("[country]" =~ /^D/) Or ( ("[country]" =~ /^E/) Or ("[country]" =~ >> /^F/)) >> ) ) ) ) >> >> msEvalExpression: Expression parser error. Failed to parse expression: >> ("[country]" =~ /^A/) Or ... >> >> With changing =* to ~* and / to " the mapfile works : >> EXPRESSION ( ("[country]" ~* "^A") Or ( ("[country]" ~* "^B") Or ... >> >> It seems, that in the generated mapfile is a wrong expression. >> >> 5. symbol fill rotated >> Polygon fill with rotated square looks interesting, but not as >> expected. Try >> with 5.6.1. >> >> 6. fill solid >> Polygon with solid fill without stroke shows thin lines of the borders. >> >> Some other issues are likely not supported by MapServer, but would be >> nice >> to have them. >> >> A. >> Changing the hatch width with sld. see "group3, hatch" as it is possible >> with mapfile class. >> >> B. >> UserStyles from applied SLD not supported in WMS Styles >> >> C. >> WMS request GetStyles creates only one userstyle with rules from the >> different styles described in the mapfile. Should it not create >> different >> userstyles for each style described in the mapfile? >> >> Regards, >> Arnd >> >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sam at planyukon.ca Thu Apr 28 12:21:55 2011 From: sam at planyukon.ca (YLUPC) Date: Thu, 28 Apr 2011 12:21:55 -0700 (PDT) Subject: [mapserver-users] Re: google chrome? In-Reply-To: <1234498121795-2319472.post@n2.nabble.com> References: <1234498121795-2319472.post@n2.nabble.com> Message-ID: <1304018515081-6314539.post@n2.nabble.com> I am having the same issue (pan widget not working with Google Chrome) at: http://www.planyukon.ca/index.php/atlaswelcome.html (click the link to the right) We use Mapserver version 5.6.5 with a Chameleon-2.6.0-rc1 Any solutions yet? I'm a n00b. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/google-chrome-tp2319472p6314539.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Thu Apr 28 13:33:26 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 28 Apr 2011 17:33:26 -0300 Subject: [mapserver-users] Re: google chrome? In-Reply-To: <1304018515081-6314539.post@n2.nabble.com> References: <1234498121795-2319472.post@n2.nabble.com> <1304018515081-6314539.post@n2.nabble.com> Message-ID: <4DB9CF16.4050204@gatewaygeomatics.com> On 11-04-28 4:21 PM, YLUPC wrote: > I am having the same issue (pan widget not working with Google Chrome) at: > http://www.planyukon.ca/index.php/atlaswelcome.html (click the link to the > right) > We use Mapserver version 5.6.5 > with a Chameleon-2.6.0-rc1 > > Any solutions yet? I'm a n00b. Hello Sam, Small world isn't it? :) Hope all is well on the other side of Canada. I'm not sure of a solution, but your best bet for Chameleon issues is to use its own mailing list: - subscribe: http://lists.maptools.org/mailman/listinfo/chameleon - search: http://old.nabble.com/Chameleon-f16505.html (the wind is blowing here on a rainy day on the Atlantic...good for getting work done though ha) -jeff / "o.j." -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From woklist at kyngchaos.com Thu Apr 28 17:59:15 2011 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 28 Apr 2011 19:59:15 -0500 Subject: [mapserver-users] MapServer 6.0.0-rc1 release In-Reply-To: <4DB8D773.1090000@mapgears.com> References: <4DB8D773.1090000@mapgears.com> Message-ID: <10A24324-69A9-416F-81B8-4D14C9FEDB2F@kyngchaos.com> In packaging my Mac build, I noticed that the readme license section has 1996-2007 for the copyright dates. Should this be updated? On Apr 27, 2011, at 9:56 PM, Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer 6.0.0-rc1 (release candidate 1). > > The 6.0 release introduces important changes in key components of the MapServer core (rendering, query and expressions), and for this reason we count on you, MapServer power users, to help test the release in your respective environments and provide feedback (through the users list or Trac tickets). > > If all goes well and no blocker issues are reported, then this release candidate could lead us to a final 6.0.0 release next week. The full release plan which also includes the list of new features and changes in this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last beta is attached at the end of this message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc1/mapserver/HISTORY.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document contains important notes on backwards incompatibilities or other changes required when upgrading to 6.0. The latest version is available online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc1.tar.gz > > The binary distributions listed in the download page should be updated with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > > Version 6.0.0-rc1 (2011-04-27) > ------------------------------ > > - Fix for the styleitem handling with union layer (#3674) > > - Fixed mindistance label test to check layer indexes. (#3851) > > - Fixed segmentation fault in PHP/MapScript and improved the php object > method calls (#3730) > > - Fix build issue related to unnecessary use of gdal-config --dep-libs (#3316) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From aboudreault at mapgears.com Thu Apr 28 18:08:01 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 28 Apr 2011 21:08:01 -0400 Subject: [mapserver-users] MapServer 6.0.0-rc1 release In-Reply-To: <4DB8D773.1090000@mapgears.com> References: <4DB8D773.1090000@mapgears.com> Message-ID: <201104282108.01671.aboudreault@mapgears.com> UbuntuGIS MapServer packages have been updated for the RC1 release: https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/ Alan On April 27, 2011 10:56:51 pm Daniel Morissette wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.0.0-rc1 (release candidate 1). > > The 6.0 release introduces important changes in key components of the > MapServer core (rendering, query and expressions), and for this reason > we count on you, MapServer power users, to help test the release in your > respective environments and provide feedback (through the users list or > Trac tickets). > > If all goes well and no blocker issues are reported, then this release > candidate could lead us to a final 6.0.0 release next week. The full > release plan which also includes the list of new features and changes in > this release is available at: > http://mapserver.org/trunk/development/release/release-plan-6.0.html > > The list of fixes since the last beta is attached at the end of this > message. For a complete list see the HISTORY.TXT file at: > > http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-0-rc1/mapserver/HISTOR > Y.TXT > > We have started working on a 5.6 -> 6.0 migration guide. This document > contains important notes on backwards incompatibilities or other changes > required when upgrading to 6.0. The latest version is available online at: > > http://mapserver.org/trunk/MIGRATION_GUIDE.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.0.0-rc1.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new beta release in the next day or so. > > Once again we need your help to ensure a high quality product, so please > help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > > > > Version 6.0.0-rc1 (2011-04-27) > ------------------------------ > > - Fix for the styleitem handling with union layer (#3674) > > - Fixed mindistance label test to check layer indexes. (#3851) > > - Fixed segmentation fault in PHP/MapScript and improved the php object > method calls (#3730) > > - Fix build issue related to unnecessary use of gdal-config --dep-libs > (#3316) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From Jukka.Rahkonen at mmmtike.fi Fri Apr 29 01:37:44 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 29 Apr 2011 11:37:44 +0300 Subject: [mapserver-users] Validation example wanted References: <4DB99A76.2090503@uva.nl> <4DB9B087.4090003@swoodbridge.com> Message-ID: Hi, Could somebody tell how can I make my WMS requests to validate? I am sending WMS GetMaps with two extra parameters "tag" and "value" by adding them to the end of the request like &tag=amenity&value=supermarket. Tag and value can be anything and they should be used inside the following LAYER-DATA DATA "way from (select (way),osm_id,tags from osm_point where (tags @>'%tag%=>%value%')) as foo using unique osm_id using srid=3067" I have tried to put a validation block in LAYER VALIDATION tag "/./" value "/./" END I have also tried to add these two lines into WEB-METADATA tag_validation_pattern "/./" value_validation_pattern "/./" Because I am here you can guess that my trials were not successful. I am using MS 6.0 beta7. Queries with tag and value worked with 5.6.1 version. -Jukka Rahkonen- From thomas.bonfort at gmail.com Fri Apr 29 01:39:51 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 29 Apr 2011 10:39:51 +0200 Subject: [mapserver-users] Validation example wanted In-Reply-To: References: <4DB99A76.2090503@uva.nl> <4DB9B087.4090003@swoodbridge.com> Message-ID: have you tried without the surrounding slashes? i.e. VALIDATION tag "." value "." END On Fri, Apr 29, 2011 at 10:37, Rahkonen Jukka wrote: > Hi, > > Could somebody tell how can I make my WMS requests to validate? I am sending WMS GetMaps with two extra parameters "tag" and "value" by adding them to the end of the request like &tag=amenity&value=supermarket. > > Tag and value can be anything and they should be used inside the following LAYER-DATA > > DATA "way from (select (way),osm_id,tags from osm_point where (tags @>'%tag%=>%value%')) as foo using unique osm_id using srid=3067" > > I have tried to put a validation block in LAYER > VALIDATION > ? ?tag "/./" > ? ?value "/./" > END > > I have also tried to add these two lines into WEB-METADATA > tag_validation_pattern "/./" > value_validation_pattern "/./" > > Because I am here you can guess that my trials were not successful. > > I am using MS 6.0 beta7. ?Queries with tag and value worked with 5.6.1 version. > > -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 Apr 29 01:54:57 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 29 Apr 2011 11:54:57 +0300 Subject: [mapserver-users] Validation example wanted References: <4DB99A76.2090503@uva.nl><4DB9B087.4090003@swoodbridge.com> Message-ID: Hi, Great, it works with plain "." I was just reading a mail from yesterday by Stephen Woodbridge telling " I do not think there is a global OFF switch for validation, but where validation is required you can include the regex validation string of /./ which means match anything except a null string, or to also accept a null string then use /.*/ " You can see the supermarkets here: http://188.64.1.61/cgi-bin/mapserv?map=/usr/map/osm-mapserver_i.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1059&HEIGHT=687&LAYERS=sea,borders,POI_free_query&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=-574187,6558020,1615375,7978444&SRS=EPSG:3067&STYLES=&tag=shop&value=supermarket -Jukka- thomas bonfort wrote: > have you tried without the surrounding slashes? i.e. VALIDATION tag "." value "." END > On Fri, Apr 29, 2011 at 10:37, Rahkonen Jukka wrote: >> Hi, > >> Could somebody tell how can I make my WMS requests to validate? I am sending WMS GetMaps with two extra parameters "tag" and "value" by adding them to the end of the request like &tag=amenity&value=supermarket. > >> Tag and value can be anything and they should be used inside the following LAYER-DATA > >> DATA "way from (select (way),osm_id,tags from osm_point where (tags @>'%tag%=>%value%')) as foo using unique osm_id using srid=3067" > >> I have tried to put a validation block in LAYER >> VALIDATION >> ? ?tag "/./" >> ? ?value "/./" >> END > >> I have also tried to add these two lines into WEB-METADATA >> tag_validation_pattern "/./" >> value_validation_pattern "/./" > >> Because I am here you can guess that my trials were not successful. > >> I am using MS 6.0 beta7. ?Queries with tag and value worked with 5.6.1 version. > >> -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From j.l.h.hartmann at uva.nl Fri Apr 29 03:37:42 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 29 Apr 2011 12:37:42 +0200 Subject: [mapserver-users] RE: Validation beyond [A-z] In-Reply-To: <4DB99A76.2090503@uva.nl> References: <4DB99A76.2090503@uva.nl> Message-ID: <4DBA94F6.6020404@uva.nl> Thanks Steve. I don't understand the syntax: in the regex versions I use, "." means "one and just one character", not any string. Any string excluding the null-string would be ".+" or "..*" More generally, I still have problems with validation as a concept: it's too difficult, and perhaps that's why it isn't documented. I have postings about this subject in my personal mapserver-dev mail-archive dating from 2002 (couldn't find them on the official site any more), and there still isn't a clear solution almost ten years later. IMHO the major security risk of MapServer CGI is that it gives access to the filesystem outside the web-root. Wouldn't it be better to keep security at that level, i.e. only let MapServer access explicitly defined parts of the filesystem? Within these parts, it's up to the web-site builder to put only those things that should be visible and nothing else. You don't put an ultra-secret document on the web and afterward restrict access to portions only, you just put there what you want to show to the world. Same goes for validations on extent or styles: just make your selections of what you want to show "before" you let MapServer loose on it. The same story can be told for database access and restrictions on SQL queries: IMHO that is a matter for the database system. It's easy enough to put everything behind barriers with user privileges and views. Why should mapserver double all that security? Any competent database administrator should know how to prevent SQL injects, and MapServer should not be there to protect those who are unable to. I've been working with Cloud VM's for about a year now, and in that environment many security problems disappear: just make small, dedicated servers and interconnect them, e.g. with cascading services. So my view would be: let the Operating System and the Database do everything needed to secure files and databases, and put in your web services only afterwards. It all gets too complex with all those interconnected securities at all levels of the system (my main problem with Apache). In the last ressort: KISS (Keep It Simple Steve (whoever)) :-) Jan ------------------------------------------------------------------------------------- On 04/28/11 18:48, Steve Woodbridge wrote Hi Jan, I do not think there is a global OFF switch for validation, but where validation is required you can include the regex validation string of /./ which means match anything except a null string, or to also accept a null string then use /.*/ You still need to be aware of when you should put a validation in place even if it accepts any string. Regards, -Steve W On 04/28/11 18:48, Jan Hartmann wrote: > I find the whole validation issue difficult and not well documented > (http://trac.osgeo.org/mapserver/ticket/3754, last updated four hours > ago). How do I put all validation off? I really don need that much > security. > > Jan > > On 04/28/11 18:19, Lime, Steve D (DNR) wrote: >> >> I see the problem, just not sure how to fix it. Steve W. provided >> some possibilities but that's probably not the only approach. It >> would be helpful if some interested person(s) got together and >> drafted an RFC. I think the devs would be in a position to help >> define implementation details if the problem is well defined along >> with a proposed solution. >> >> Steve >> >> *From:*mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >> *Rahkonen Jukka >> *Sent:* Thursday, April 28, 2011 4:21 AM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] Validation beyond [A-z] >> >> Hi, >> >> Validation is nowadays needed in quite a many places in a mapfile. >> However, we who live outside the English speaking world tend to have >> more characters in the alphabet than A to Z. This makes the mapfile >> validation idea only half effective because for making things to work >> at all with the native data we must accept almost everything that is >> non-numeric with wildcards. Are there others who think that this is a >> problem? >> >> Stephen Woodbidge commented slightly this topic in another thead a >> month ago (Mar 29, 2011) >> >> http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html >> >> -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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Apr 29 05:03:27 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 29 Apr 2011 15:03:27 +0300 Subject: [mapserver-users] RE: Validation beyond [A-z] References: <4DB99A76.2090503@uva.nl> <4DBA94F6.6020404@uva.nl> Message-ID: Hi, I am not so sure that we all are competent database administrators. Lots of us has started with tutorials like http://www.duif.net/postgis/ and they do not tell much about fighting against SQL injection. I consider it is good to have security settings in Mapserver. I admit they should be easy to use and well documented. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Jan Hartmann L?hetetty: pe 29.4.2011 13:37 Vastaanottaja: woodbri at swoodbridge.com Kopio: Rahkonen Jukka; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] RE: Validation beyond [A-z] Thanks Steve. I don't understand the syntax: in the regex versions I use, "." means "one and just one character", not any string. Any string excluding the null-string would be ".+" or "..*" More generally, I still have problems with validation as a concept: it's too difficult, and perhaps that's why it isn't documented. I have postings about this subject in my personal mapserver-dev mail-archive dating from 2002 (couldn't find them on the official site any more), and there still isn't a clear solution almost ten years later. IMHO the major security risk of MapServer CGI is that it gives access to the filesystem outside the web-root. Wouldn't it be better to keep security at that level, i.e. only let MapServer access explicitly defined parts of the filesystem? Within these parts, it's up to the web-site builder to put only those things that should be visible and nothing else. You don't put an ultra-secret document on the web and afterward restrict access to portions only, you just put there what you want to show to the world. Same goes for validations on extent or styles: just make your selections of what you want to show "before" you let MapServer loose on it. The same story can be told for database access and restrictions on SQL queries: IMHO that is a matter for the database system. It's easy enough to put everything behind barriers with user privileges and views. Why should mapserver double all that security? Any competent database administrator should know how to prevent SQL injects, and MapServer should not be there to protect those who are unable to. I've been working with Cloud VM's for about a year now, and in that environment many security problems disappear: just make small, dedicated servers and interconnect them, e.g. with cascading services. So my view would be: let the Operating System and the Database do everything needed to secure files and databases, and put in your web services only afterwards. It all gets too complex with all those interconnected securities at all levels of the system (my main problem with Apache). In the last ressort: KISS (Keep It Simple Steve (whoever)) :-) Jan ------------------------------------------------------------------------------------- On 04/28/11 18:48, Steve Woodbridge wrote Hi Jan, I do not think there is a global OFF switch for validation, but where validation is required you can include the regex validation string of /./ which means match anything except a null string, or to also accept a null string then use /.*/ You still need to be aware of when you should put a validation in place even if it accepts any string. Regards, -Steve W On 04/28/11 18:48, Jan Hartmann wrote: > I find the whole validation issue difficult and not well documented > (http://trac.osgeo.org/mapserver/ticket/3754, last updated four hours > ago). How do I put all validation off? I really don need that much > security. > > Jan > > On 04/28/11 18:19, Lime, Steve D (DNR) wrote: >> >> I see the problem, just not sure how to fix it. Steve W. provided >> some possibilities but that's probably not the only approach. It >> would be helpful if some interested person(s) got together and >> drafted an RFC. I think the devs would be in a position to help >> define implementation details if the problem is well defined along >> with a proposed solution. >> >> Steve >> >> *From:*mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >> *Rahkonen Jukka >> *Sent:* Thursday, April 28, 2011 4:21 AM >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] Validation beyond [A-z] >> >> Hi, >> >> Validation is nowadays needed in quite a many places in a mapfile. >> However, we who live outside the English speaking world tend to have >> more characters in the alphabet than A to Z. This makes the mapfile >> validation idea only half effective because for making things to work >> at all with the native data we must accept almost everything that is >> non-numeric with wildcards. Are there others who think that this is a >> problem? >> >> Stephen Woodbidge commented slightly this topic in another thead a >> month ago (Mar 29, 2011) >> >> http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html >> >> -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 aboudreault at mapgears.com Fri Apr 29 06:13:53 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 29 Apr 2011 09:13:53 -0400 Subject: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6 In-Reply-To: <4DB851A2.8060704@gmx.net> References: <4DB851A2.8060704@gmx.net> Message-ID: <201104290913.53336.aboudreault@mapgears.com> Hi Armin, Although I'm not sure if the free call was useful... since it was only removing the php object from a global list but the object was not really freed until the end of the script... I would suggest to simply add a such condition "if ms_version < 6 ... obj->free()" rather than removing them to be compatible 5.6/6.0 and avoid any issue. You can also do a quick test in your script with some echo of the memory used before the end of the script and see if the free() removal has any effect. Alan On April 27, 2011 01:25:54 pm Armin Burger wrote: > Hi everybody > > in MapServer/MapScript 6 the various class methods "free()" have been > removed. If I want to have PHP/MapScript code compatible with both > MapServer 5.x and 6, the easiest would be to completely remove these > method calls from the code. > > My question is just if these free() methods are still somehow required > or recommended for MapServer/MapScript 5.x or if I can silently drop > them without any drawbacks. > > Cheers > Armin > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From yrrman at gmail.com Fri Apr 29 06:18:31 2011 From: yrrman at gmail.com (christian yrrman) Date: Fri, 29 Apr 2011 15:18:31 +0200 Subject: [mapserver-users] Force Mapserver into rendering 8bpp png images (instead of 4bpp)? Message-ID: Dear All, former subject of this thread was "Re: NoDATA value, transparency for paletted IMG file" - I'm having difficulties displaying 4bit-per-pixel PNG images served via WMS to a GoogleEarth-API-Application (the NoData-Values aren't transparent but "shaded black", whereas this worls well for 8bpp PNG images- so I assume the GE-API can't display transparency for 4bpp PNGs. Is there a way to force mapserver into the creation of 8bpp PNG files, even if the corresponding color table only has 9 entries (I think that's the reason for this)? Thanks for your help and greetings! Chris On Thu, Apr 28, 2011 at 12:42 PM, ChrisFern [via OSGeo.org] wrote: > Dear Frank, dear all, > > thanks for your reply. > I think I have narrowed down the problem and it isn't really a mapserver > issue - the 8bit paletted img gets rendered to a 4bit-per-pixel png whereas > the correctly transparent RGB img gets rendered to an 8bit-per-pixel png. > Seems that the Google Earth API can't detect/deal with the NoData value in > this 4bpp png and renders this value sort of "shaded black" (which I would > like to get ridd of). GIMP for example can deal with the transparency in > this 4bpp png. > > If I switch to RGBA in the output format, then I have the transparency > however the image is much bigger: > > OUTPUTFORMAT > ? ?NAME png > ? ?DRIVER "GD/PNG" > ? ?MIMETYPE "image/png" > # ? IMAGEMODE RGBA > ? ?IMAGEMODE PC256 > ? ?EXTENSION "png" > ? ?TRANSPARENT ON > ? ?FORMATOPTION "transparent=on" > END > > Is there a way I can force the mapserver to produce 8bpp pngs? > > > THANKS for your help - highly appreciated - and greetings, > > > > Chris > > PS here's the gdalinfo output for the 4bpp png: > Driver: PNG/Portable Network Graphics > Files: lb_usa.png > Size is 1024, 768 > Coordinate System is `' > Corner Coordinates: > Upper Left ?( ? ?0.0, ? ?0.0) > Lower Left ?( ? ?0.0, ?768.0) > Upper Right ( 1024.0, ? ?0.0) > Lower Right ( 1024.0, ?768.0) > Center ? ? ?( ?512.0, ?384.0) > Band 1 Block=1024x1 Type=Byte, ColorInterp=Palette > ? NoData Value=0 > ? Image Structure Metadata: > ? ? NBITS=4 > ? Color Table (RGB with 9 entries) > ? ? 0: 1,1,1,0 > ? ? 1: 0,0,0,255 > ? ? 2: 12,16,120,255 > ? ? 3: 31,62,140,255 > ? ? 4: 33,110,158,255 > ? ? 5: 42,156,154,255 > ? ? 6: 61,184,104,255 > ? ? 7: 59,214,45,255 > ? ? 8: 113,235,47,255 > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://osgeo-org.1803224.n2.nabble.com/NoDATA-value-transparency-for-paletted-IMG-file-tp6305135p6312790.html > To unsubscribe from NoDATA value, transparency for paletted IMG file, click > here. From paolo.crosato at ubiest.com Fri Apr 29 06:19:14 2011 From: paolo.crosato at ubiest.com (Paolo Crosato) Date: Fri, 29 Apr 2011 15:19:14 +0200 Subject: [mapserver-users] Mapserver usage with commercial vendors data Message-ID: <4DBABAD2.1070206@ubiest.com> Hi, I work for an LBS based company, we have our own proprietary rendering engine for producing maps, and we work mainly with data from Navteq and Teleatlas. Presently our rendering engine is behind the competition in terms of visual quality (we have a bad support for antialiasing, label names with both native and transliterate names are missing, and so on). Introducing new features in our current rendering architecture would require quite a lot of coding and re-engineering, so we are looking for alternative renderers, possibly open sourced. During this research project I came across Mapserver, and it seems it would suit our needs in terms of high quality rendering and customization. However, there are still some open issues, mainly questions, I'd like to ask. In regards to rendering: 1) Is there any way to align labels in different encondings for the same city? I mean something like writing ??????? and /Moskv? /vertically aligned, like on Google Maps. 2) Is there any plan to support 2.5D rendering for buildings? In regards to working with high loads of data: 1) We render our maps from data provided by vendors like Navteq, and they have a lot of details and features. Is there anyone working in the same field, who could share some of his experience? 2) Is it more efficient to work with PostGis/Oracle Spatial or with shapefiles? I suppose the former would be faster, since shapefiles provided by Navteq would require about 100gigs for Europe only, just to store the data. 3) In regards to the hardware, I reckon we would need at least one workstation dedicated to rendering. Currently we are hosting our rendering service on dual Xeon (quad core), with 16G of ram and SAS arrays of hard disks, would one server like this be ok or would it be better to have more machines, especially if planning to use RDBMS to hold the data? I'm asking this because with currently work with detailed data from Europe, North and South America, so it's quite a lot of stuff :) Thanks in advance for any feedback. Regards, Paolo Crosato -- Paolo Crosato Ubiest SPA http://www.ubiest.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Apr 29 07:03:01 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 29 Apr 2011 16:03:01 +0200 Subject: [mapserver-users] Mapserver usage with commercial vendors data In-Reply-To: <4DBABAD2.1070206@ubiest.com> References: <4DBABAD2.1070206@ubiest.com> Message-ID: Paolo, On Fri, Apr 29, 2011 at 15:19, Paolo Crosato wrote: > Hi, > > I work for an LBS based company, we have our own proprietary rendering > engine for producing maps, and we work mainly with data from Navteq and > Teleatlas. Presently our rendering engine is behind the competition in terms > of visual quality (we have a bad support for antialiasing, label names with > both native and transliterate names are missing, and so on). Introducing new > features in our current rendering architecture would require quite a lot of > coding and re-engineering, so we are looking for alternative renderers, > possibly open sourced. During this research project I came across Mapserver, > and it seems it would suit our needs in terms of high quality rendering and > customization. > However, there are still some open issues, mainly questions, I'd like to > ask. > > In regards to rendering: > 1) Is there any way to align labels in different encondings for the same > city? I mean something like writing ??????? and Moskv? vertically aligned, > like on Google Maps. MapServer itself currently only supports a single label per feature, but it does support label wrapping on specific characters so you can pass it both ??????? and Moskv? with a bit of database scripting. You'd probably have to use utf8 encoding and have a font that supports all international characters, but that shouldn't be a problem. Extending mapserver so it supports multiple labels per feature could also be a possible solution. for the wrapping method, supposing you have a label_int (???????) and label_en (Moscow) fields, you'd use something like "select id, the_geom, label_int||'#('||label_en||')' as label from mytable" in your data statement, and then LABELITEM "label" LABEL ENCODING UTF8 WRAP '#' ALIGN CENTER .... END > 2) Is there any plan to support 2.5D rendering for buildings? There's a bug open for that in the bug tracker, with no concrete follow-up recently due to lack of funding and/or developper interest. Adding such support would be feasible. > In regards to working with high loads of data: > 1) We render our maps from data provided by vendors like Navteq, and they > have a lot of details and features. Is there anyone working in the same > field, who could share some of his experience? building a relatively complete mapfile for navteq data isn't a daunting task, although getting everything to display correctly at all scales can be time-consuming. > 2) Is it more efficient to work with PostGis/Oracle Spatial or with > shapefiles? I suppose the former would be faster, since shapefiles provided > by Navteq would require about 100gigs for Europe only, just to store the > data. Indexed shapefiles will be slightly faster than postgis, but the flexibility you gain by being able to do "complex" queries with postgis (like ordering the data to get most important ones to show up first, etc...) is largely worth the slight overhead. I'd say that if you want high quality map rendering, postgis is going to be a must, otherwise shapefiles will do. (I have no experience with oracle) > 3) In regards to the hardware, I reckon we would need at least one > workstation dedicated to rendering. Currently we are hosting our rendering > service on dual Xeon (quad core), with 16G of ram and SAS arrays of hard > disks, would one server like this be ok or would it be better to have more > machines, especially if planning to use RDBMS to hold the data? I'm asking > this because with currently work with detailed data from Europe, North and > South America, so it's quite a lot of stuff :) >From my tests in these scenarios, the db backend is the bottleneck, so you can beaf that one up as much as you can (i.e. lots of ram and ssd disks). A fast cpu and a reasonable amount of memory for the rendering host can do no harm, although that is a less important factor from my testing. regards, thomas From michael.smith at usace.army.mil Fri Apr 29 07:14:07 2011 From: michael.smith at usace.army.mil (Smith, Michael D ERDC-CRREL-NH) Date: Fri, 29 Apr 2011 10:14:07 -0400 Subject: [mapserver-users] Mapserver usage with commercial vendors data In-Reply-To: Message-ID: Paolo, You can also do labeling via the TEXT directive with something like TEXT "[LABEL_INT]#[LABEL_EN]" #MapServer 6 syntax WRAP "#" Performance on Oracle Spatial (which we use for national and international scale datasets, including NavTeq and TomTom) is quite good. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 4/29/11 10:03 AM, "thomas bonfort" wrote: > Paolo, > > On Fri, Apr 29, 2011 at 15:19, Paolo Crosato wrote: >> Hi, >> >> I work for an LBS based company, we have our own proprietary rendering >> engine for producing maps, and we work mainly with data from Navteq and >> Teleatlas. Presently our rendering engine is behind the competition in terms >> of visual quality (we have a bad support for antialiasing, label names with >> both native and transliterate names are missing, and so on). Introducing new >> features in our current rendering architecture would require quite a lot of >> coding and re-engineering, so we are looking for alternative renderers, >> possibly open sourced. During this research project I came across Mapserver, >> and it seems it would suit our needs in terms of high quality rendering and >> customization. >> However, there are still some open issues, mainly questions, I'd like to >> ask. >> >> In regards to rendering: >> 1) Is there any way to align labels in different encondings for the same >> city? I mean something like writing ??????? and Moskv? vertically aligned, >> like on Google Maps. > MapServer itself currently only supports a single label per feature, > but it does support label wrapping on specific characters so you can > pass it both ??????? and Moskv? with a bit of database scripting. > You'd probably have to use utf8 encoding and have a font that supports > all international characters, but that shouldn't be a problem. > Extending mapserver so it supports multiple labels per feature could > also be a possible solution. > > for the wrapping method, supposing you have a label_int (???????) and > label_en (Moscow) fields, you'd use something like "select id, > the_geom, label_int||'#('||label_en||')' as label from mytable" in > your data statement, and then > > LABELITEM "label" > LABEL > ENCODING UTF8 > WRAP '#' > ALIGN CENTER > .... > END > > >> 2) Is there any plan to support 2.5D rendering for buildings? > There's a bug open for that in the bug tracker, with no concrete > follow-up recently due to lack of funding and/or developper interest. > Adding such support would be feasible. > > >> In regards to working with high loads of data: >> 1) We render our maps from data provided by vendors like Navteq, and they >> have a lot of details and features. Is there anyone working in the same >> field, who could share some of his experience? > building a relatively complete mapfile for navteq data isn't a > daunting task, although getting everything to display correctly at all > scales can be time-consuming. > >> 2) Is it more efficient to work with PostGis/Oracle Spatial or with >> shapefiles? I suppose the former would be faster, since shapefiles provided >> by Navteq would require about 100gigs for Europe only, just to store the >> data. > Indexed shapefiles will be slightly faster than postgis, but the > flexibility you gain by being able to do "complex" queries with > postgis (like ordering the data to get most important ones to show up > first, etc...) is largely worth the slight overhead. I'd say that if > you want high quality map rendering, postgis is going to be a must, > otherwise shapefiles will do. (I have no experience with oracle) > >> 3) In regards to the hardware, I reckon we would need at least one >> workstation dedicated to rendering. Currently we are hosting our rendering >> service on dual Xeon (quad core), with 16G of ram and SAS arrays of hard >> disks, would one server like this be ok or would it be better to have more >> machines, especially if planning to use RDBMS to hold the data? I'm asking >> this because with currently work with detailed data from Europe, North and >> South America, so it's quite a lot of stuff :) >> From my tests in these scenarios, the db backend is the bottleneck, so > you can beaf that one up as much as you can (i.e. lots of ram and ssd > disks). A fast cpu and a reasonable amount of memory for the rendering > host can do no harm, although that is a less important factor from my > testing. > > regards, > thomas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From nicolas.boutet at geosys.com Fri Apr 29 06:56:56 2011 From: nicolas.boutet at geosys.com (Nicolas BOUTET) Date: Fri, 29 Apr 2011 15:56:56 +0200 Subject: [mapserver-users] Parameterized MapFile using CGI variable Message-ID: <008e01cc0675$4e595780$eb0c0680$@boutet@geosys.com> Dear All, I have 2 MapServer servers. One for Production use, and the other for Validation use. The MAP files placed on those servers are similar except that each server has a different Oracle database as datasource. For now, I have some different CONNECTION values depending if the map file is on the Production or on the Validation server. So finally I must have different MAP files. Is there a way to have exactly the same map files on the 2 servers, and to use a variable to parameterize the CONNECTION. For example, I would like to set the CONNECTION of my layers to "%ORACLECONNECTIONSTRING%" and to set a CGI Environment variable named ORACLECONNECTIONSTRING to the correct value on each server. Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fawcett at state.mn.us Fri Apr 29 07:37:26 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 29 Apr 2011 09:37:26 -0500 Subject: [mapserver-users] Parameterized MapFile using CGI variable In-Reply-To: <008e01cc0675$4e595780$eb0c0680$@boutet@geosys.com> References: <008e01cc0675$4e595780$eb0c0680$@boutet@geosys.com> Message-ID: One potential way to do it would be with the use of 'include's. http://mapserver.org/mapfile/Include.html The primary mapfile wouldn't have a connection object, but it would contain: INCLUDE "connect_info.map" Then on each machine, you would have a different version of connect_info.map that contained the correct connection object for that machine. This wouldn't give you the flexibility of changing it through the CGI interface, but would allow you to use the same exact mapfile on both machines. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nicolas BOUTET Sent: Friday, April 29, 2011 8:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Parameterized MapFile using CGI variable Dear All, I have 2 MapServer servers. One for Production use, and the other for Validation use. The MAP files placed on those servers are similar except that each server has a different Oracle database as datasource. For now, I have some different CONNECTION values depending if the map file is on the Production or on the Validation server. So finally I must have different MAP files. Is there a way to have exactly the same map files on the 2 servers, and to use a variable to parameterize the CONNECTION. For example, I would like to set the CONNECTION of my layers to "%ORACLECONNECTIONSTRING%" and to set a CGI Environment variable named ORACLECONNECTIONSTRING to the correct value on each server. Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fawcett at state.mn.us Fri Apr 29 08:02:57 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 29 Apr 2011 10:02:57 -0500 Subject: [mapserver-users] Parameterized MapFile using CGI variable In-Reply-To: <00a201cc067c$9bc74160$d355c420$@boutet@geosys.com> References: <008e01cc0675$4e595780$eb0c0680$@boutet@geosys.com> <00a201cc067c$9bc74160$d355c420$@boutet@geosys.com> Message-ID: Nicolas, I didn't have a mapfile that utilizes connection handy, but I did test using INCLUDE to substitute the value for DATA in an individual layer. Here is part of the layer definition: LAYER NAME "watersheds" STATUS DEFAULT #DATA 'majclip' INCLUDE "inc_data_majclip.map" TYPE POLYGON The file inc_data_majclip.map contains: DATA "majclip" Based on this, I would assume that you should be able to do the same with the CONNECTION for each of your layers. David. From: Nicolas BOUTET [mailto:nicolas.boutet at geosys.com] Sent: Friday, April 29, 2011 9:49 AM To: Fawcett, David (MPCA); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Parameterized MapFile using CGI variable Thank you David, Yes, using INCLUDE should be a good solution. But as I know in MapServer 5.6, CONNECTION is a parameter of my LAYER objects, and not an object itself. So I cannot have a CONNECTION object declared in a separate map file... And I prefer to not have to duplicate the layers in different map files. Nicolas De : Fawcett, David (MPCA) [mailto:david.fawcett at state.mn.us] Envoy? : vendredi 29 avril 2011 16:37 ? : nicolas.boutet at geosys.com; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable One potential way to do it would be with the use of 'include's. http://mapserver.org/mapfile/Include.html The primary mapfile wouldn't have a connection object, but it would contain: INCLUDE "connect_info.map" Then on each machine, you would have a different version of connect_info.map that contained the correct connection object for that machine. This wouldn't give you the flexibility of changing it through the CGI interface, but would allow you to use the same exact mapfile on both machines. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nicolas BOUTET Sent: Friday, April 29, 2011 8:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Parameterized MapFile using CGI variable Dear All, I have 2 MapServer servers. One for Production use, and the other for Validation use. The MAP files placed on those servers are similar except that each server has a different Oracle database as datasource. For now, I have some different CONNECTION values depending if the map file is on the Production or on the Validation server. So finally I must have different MAP files. Is there a way to have exactly the same map files on the 2 servers, and to use a variable to parameterize the CONNECTION. For example, I would like to set the CONNECTION of my layers to "%ORACLECONNECTIONSTRING%" and to set a CGI Environment variable named ORACLECONNECTIONSTRING to the correct value on each server. Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Apr 29 08:05:24 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 29 Apr 2011 18:05:24 +0300 Subject: [mapserver-users] Force Mapserver into rendering 8bpp png images(instead of 4bpp)? References: Message-ID: Hi, Probably through some tuned OUTPUTFORMAT and perhaps by having QUANTIZE_COLORS=256. Maybe this can lead your closer to the goal http://trac.osgeo.org/mapserver/ticket/2436 -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: christian yrrman L?hetetty: pe 29.4.2011 16:18 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Force Mapserver into rendering 8bpp png images(instead of 4bpp)? Dear All, former subject of this thread was "Re: NoDATA value, transparency for paletted IMG file" - I'm having difficulties displaying 4bit-per-pixel PNG images served via WMS to a GoogleEarth-API-Application (the NoData-Values aren't transparent but "shaded black", whereas this worls well for 8bpp PNG images- so I assume the GE-API can't display transparency for 4bpp PNGs. Is there a way to force mapserver into the creation of 8bpp PNG files, even if the corresponding color table only has 9 entries (I think that's the reason for this)? Thanks for your help and greetings! Chris On Thu, Apr 28, 2011 at 12:42 PM, ChrisFern [via OSGeo.org] wrote: > Dear Frank, dear all, > > thanks for your reply. > I think I have narrowed down the problem and it isn't really a mapserver > issue - the 8bit paletted img gets rendered to a 4bit-per-pixel png whereas > the correctly transparent RGB img gets rendered to an 8bit-per-pixel png. > Seems that the Google Earth API can't detect/deal with the NoData value in > this 4bpp png and renders this value sort of "shaded black" (which I would > like to get ridd of). GIMP for example can deal with the transparency in > this 4bpp png. > > If I switch to RGBA in the output format, then I have the transparency > however the image is much bigger: > > OUTPUTFORMAT > ? ?NAME png > ? ?DRIVER "GD/PNG" > ? ?MIMETYPE "image/png" > # ? IMAGEMODE RGBA > ? ?IMAGEMODE PC256 > ? ?EXTENSION "png" > ? ?TRANSPARENT ON > ? ?FORMATOPTION "transparent=on" > END > > Is there a way I can force the mapserver to produce 8bpp pngs? > > > THANKS for your help - highly appreciated - and greetings, > > > > Chris > > PS here's the gdalinfo output for the 4bpp png: > Driver: PNG/Portable Network Graphics > Files: lb_usa.png > Size is 1024, 768 > Coordinate System is `' > Corner Coordinates: > Upper Left ?( ? ?0.0, ? ?0.0) > Lower Left ?( ? ?0.0, ?768.0) > Upper Right ( 1024.0, ? ?0.0) > Lower Right ( 1024.0, ?768.0) > Center ? ? ?( ?512.0, ?384.0) > Band 1 Block=1024x1 Type=Byte, ColorInterp=Palette > ? NoData Value=0 > ? Image Structure Metadata: > ? ? NBITS=4 > ? Color Table (RGB with 9 entries) > ? ? 0: 1,1,1,0 > ? ? 1: 0,0,0,255 > ? ? 2: 12,16,120,255 > ? ? 3: 31,62,140,255 > ? ? 4: 33,110,158,255 > ? ? 5: 42,156,154,255 > ? ? 6: 61,184,104,255 > ? ? 7: 59,214,45,255 > ? ? 8: 113,235,47,255 > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://osgeo-org.1803224.n2.nabble.com/NoDATA-value-transparency-for-paletted-IMG-file-tp6305135p6312790.html > To unsubscribe from NoDATA value, transparency for paletted IMG file, click > here. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From nicolas.boutet at geosys.com Fri Apr 29 07:49:13 2011 From: nicolas.boutet at geosys.com (Nicolas BOUTET) Date: Fri, 29 Apr 2011 16:49:13 +0200 Subject: [mapserver-users] Parameterized MapFile using CGI variable In-Reply-To: References: <008e01cc0675$4e595780$eb0c0680$@boutet@geosys.com> Message-ID: <00a201cc067c$9bc74160$d355c420$@boutet@geosys.com> Thank you David, Yes, using INCLUDE should be a good solution. But as I know in MapServer 5.6, CONNECTION is a parameter of my LAYER objects, and not an object itself. So I cannot have a CONNECTION object declared in a separate map file And I prefer to not have to duplicate the layers in different map files. Nicolas De : Fawcett, David (MPCA) [mailto:david.fawcett at state.mn.us] Envoy? : vendredi 29 avril 2011 16:37 ? : nicolas.boutet at geosys.com; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable One potential way to do it would be with the use of ?include?s. http://mapserver.org/mapfile/Include.html The primary mapfile wouldn?t have a connection object, but it would contain: INCLUDE ?connect_info.map? Then on each machine, you would have a different version of connect_info.map that contained the correct connection object for that machine. This wouldn?t give you the flexibility of changing it through the CGI interface, but would allow you to use the same exact mapfile on both machines. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nicolas BOUTET Sent: Friday, April 29, 2011 8:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Parameterized MapFile using CGI variable Dear All, I have 2 MapServer servers. One for Production use, and the other for Validation use. The MAP files placed on those servers are similar except that each server has a different Oracle database as datasource. For now, I have some different CONNECTION values depending if the map file is on the Production or on the Validation server. So finally I must have different MAP files. Is there a way to have exactly the same map files on the 2 servers, and to use a variable to parameterize the CONNECTION. For example, I would like to set the CONNECTION of my layers to ?%ORACLECONNECTIONSTRING%? and to set a CGI Environment variable named ORACLECONNECTIONSTRING to the correct value on each server. Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Apr 29 08:53:33 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 29 Apr 2011 17:53:33 +0200 Subject: [mapserver-users] Parameterized MapFile using CGI variable In-Reply-To: <41217756618062944@unknownmsgid> References: <41217756618062944@unknownmsgid> Message-ID: As David stated, the INCLUDE keyword does not have to be a full mapserver object, it can be any valid mapserver keywords. -- thomas On Fri, Apr 29, 2011 at 16:49, Nicolas BOUTET wrote: > Thank you David, > > > > Yes, using INCLUDE should be a good solution. But as I know in MapServer > 5.6, CONNECTION is a parameter of my LAYER objects, and not an object > itself. So I cannot have a CONNECTION object declared in a separate map > file? And I prefer to not have to duplicate the layers in different map > files. > > > > Nicolas > > > > > > De?: Fawcett, David (MPCA) [mailto:david.fawcett at state.mn.us] > > Envoy??: vendredi 29 avril 2011 16:37 > ??: nicolas.boutet at geosys.com; mapserver-users at lists.osgeo.org > Objet?: RE: [mapserver-users] Parameterized MapFile using CGI variable > > > > One potential way to do it would be with the use of ?include?s. > > > > http://mapserver.org/mapfile/Include.html > > > > The primary mapfile wouldn?t have a connection object, but it would contain: > > > > INCLUDE ?connect_info.map? > > > > Then on each machine, you would have a different version of connect_info.map > that contained the correct connection object for that machine. > > > > This wouldn?t give you the flexibility of changing it through the CGI > interface, but would allow you to use the same exact mapfile on both > machines. > > > > David. > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nicolas BOUTET > Sent: Friday, April 29, 2011 8:57 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Parameterized MapFile using CGI variable > > > > Dear All, > > > > I have 2 MapServer servers. One for Production use, and the other for > Validation use. > > The MAP files placed on those servers are similar except that each server > has a different Oracle database as datasource. > > For now, I have some different CONNECTION values depending if the map file > is on the Production or on the Validation server. So finally I must have > different MAP files. > > > > Is there a way to have exactly the same map files on the 2 servers, and to > use a variable to parameterize the CONNECTION. > > > > For example, I would like to set the CONNECTION of my layers to > ?%ORACLECONNECTIONSTRING%? and to set a CGI Environment variable named > ORACLECONNECTIONSTRING to the correct value on each server. > > > > Nicolas > > > > _______________________________________________ > 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 Apr 29 08:54:35 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 29 Apr 2011 18:54:35 +0300 Subject: [mapserver-users] Parameterized MapFile using CGI variable References: <008e01cc0675$4e595780$eb0c0680$@boutet@geosys.com> <00a201cc067c$9bc74160$d355c420$@boutet@geosys.com> Message-ID: Hi, No problem at all. I have it this way For each layer LAYER STATUS ON GROUP "default" PROJECTION "init=epsg:3067" END INCLUDE "/usr/map/connection_osm_i.map" maxscaledenom 500010 minscaledenom 250010 TYPE LINE NAME "roadsclose" DATA "way from (select way, osm_id ,highway,ref, name, tunnel from osm_line where highway is not null order by priority desc) as foo using unique osm_id using srid=3067" ... ... And the "/usr/map/connection_osm_i.map" file is CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=xxx user=yyy password=zzz port=5432" PROCESSING "CLOSE_CONNECTION=DEFER" Helps a lot when changing something on the database side also because there is only one place to update in the mapfiles. -Jukka Rahkonen- -----Alkuper?i nen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Nicolas BOUTET L?hetetty: pe 29.4.2011 17:49 Vastaanottaja: 'Fawcett, David (MPCA)'; mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] Parameterized MapFile using CGI variable Thank you David, Yes, using INCLUDE should be a good solution. But as I know in MapServer 5.6, CONNECTION is a parameter of my LAYER objects, and not an object itself. So I cannot have a CONNECTION object declared in a separate map file. And I prefer to not have to duplicate the layers in different map files. Nicolas De : Fawcett, David (MPCA) [mailto:david.fawcett at state.mn.us] Envoy? : vendredi 29 avril 2011 16:37 ? : nicolas.boutet at geosys.com; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable One potential way to do it would be with the use of 'include's. http://mapserver.org/mapfile/Include.html The primary mapfile wouldn't have a connection object, but it would contain: INCLUDE "connect_info.map" Then on each machine, you would have a different version of connect_info.map that contained the correct connection object for that machine. This wouldn't give you the flexibility of changing it through the CGI interface, but would allow you to use the same exact mapfile on both machines. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nicolas BOUTET Sent: Friday, April 29, 2011 8:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Parameterized MapFile using CGI variable Dear All, I have 2 MapServer servers. One for Production use, and the other for Validation use. The MAP files placed on those servers are similar except that each server has a different Oracle database as datasource. For now, I have some different CONNECTION values depending if the map file is on the Production or on the Validation server. So finally I must have different MAP files. Is there a way to have exactly the same map files on the 2 servers, and to use a variable to parameterize the CONNECTION. For example, I would like to set the CONNECTION of my layers to "%ORACLECONNECTIONSTRING%" and to set a CGI Environment variable named ORACLECONNECTIONSTRING to the correct value on each server. Nicolas From nicolas.boutet at geosys.com Fri Apr 29 08:44:14 2011 From: nicolas.boutet at geosys.com (Nicolas BOUTET) Date: Fri, 29 Apr 2011 17:44:14 +0200 Subject: [mapserver-users] Parameterized MapFile using CGI variable In-Reply-To: References: <008e01cc0675$4e595780$eb0c0680$@boutet@geosys.com> <00a201cc067c$9bc74160$d355c420$@boutet@geosys.com> Message-ID: <00bd01cc0684$4b4562f0$e1d028d0$@boutet@geosys.com> Yes, I realize reading you that the include statement can be inserted at any place in the main Map file. So, it works !!! Thanks a lot David De : Fawcett, David (MPCA) [mailto:david.fawcett at state.mn.us] Envoy? : vendredi 29 avril 2011 17:03 ? : nicolas.boutet at geosys.com; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable Nicolas, I didn?t have a mapfile that utilizes connection handy, but I did test using INCLUDE to substitute the value for DATA in an individual layer. Here is part of the layer definition: LAYER NAME "watersheds" STATUS DEFAULT #DATA 'majclip' INCLUDE "inc_data_majclip.map" TYPE POLYGON The file inc_data_majclip.map contains: DATA "majclip" Based on this, I would assume that you should be able to do the same with the CONNECTION for each of your layers. David. From: Nicolas BOUTET [mailto:nicolas.boutet at geosys.com] Sent: Friday, April 29, 2011 9:49 AM To: Fawcett, David (MPCA); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Parameterized MapFile using CGI variable Thank you David, Yes, using INCLUDE should be a good solution. But as I know in MapServer 5.6, CONNECTION is a parameter of my LAYER objects, and not an object itself. So I cannot have a CONNECTION object declared in a separate map file And I prefer to not have to duplicate the layers in different map files. Nicolas De : Fawcett, David (MPCA) [mailto:david.fawcett at state.mn.us] Envoy? : vendredi 29 avril 2011 16:37 ? : nicolas.boutet at geosys.com; mapserver-users at lists.osgeo.org Objet : RE: [mapserver-users] Parameterized MapFile using CGI variable One potential way to do it would be with the use of ?include?s. http://mapserver.org/mapfile/Include.html The primary mapfile wouldn?t have a connection object, but it would contain: INCLUDE ?connect_info.map? Then on each machine, you would have a different version of connect_info.map that contained the correct connection object for that machine. This wouldn?t give you the flexibility of changing it through the CGI interface, but would allow you to use the same exact mapfile on both machines. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nicolas BOUTET Sent: Friday, April 29, 2011 8:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Parameterized MapFile using CGI variable Dear All, I have 2 MapServer servers. One for Production use, and the other for Validation use. The MAP files placed on those servers are similar except that each server has a different Oracle database as datasource. For now, I have some different CONNECTION values depending if the map file is on the Production or on the Validation server. So finally I must have different MAP files. Is there a way to have exactly the same map files on the 2 servers, and to use a variable to parameterize the CONNECTION. For example, I would like to set the CONNECTION of my layers to ?%ORACLECONNECTIONSTRING%? and to set a CGI Environment variable named ORACLECONNECTIONSTRING to the correct value on each server. Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Fri Apr 29 09:59:19 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri, 29 Apr 2011 18:59:19 +0200 Subject: [mapserver-users] error and temp file handling with 6.0.0 Message-ID: <5790B0DBCE06465A9F35C2A60D37F14C@pcawh2> Hi, I'm a bit confused about how MapServer log errors and where it saves temporary files. In my mapfile I have declared CONFIG "MS_ERRORFILE" "file.err" #and DEBUG is not set LOG "file.log" #in the WEB block TEMPPATH ... #in the WEB block Playing with SLD and polygon fill with exernal graphic doesn't work, but creates nevertheless some output. 1. error output will be written in file.err and file.log, but the messages not the same. file.log Fri Apr 29 14:20:31 2011,2492,127.0.0.1,simple_continents_shp_4326,-1,86.660156 -93.339844 183.339844 3.339844,-1.000000 -1.000000,,msDrawMap(): Image handling error. Failed to draw layer named 'continents'.
msOGRFileNextShape(): OGR error. IllegalArgumentException: Points of LinearRing do not form a closed linestring
file.err [Fri Apr 29 14:27:03 2011].453000 msOGRFileNextShape(): OGR error. IllegalArgumentException: Points of LinearRing do not form a closed linestring [Fri Apr 29 14:27:03 2011].453000 msDrawMap(): Image handling error. Failed to draw layer named 'continents'. Why do MapServer uses two files to log errors? And it seems, one have to look in both, because the messages are not equal. 2. TEMPPATH If declared, this path is used to save the temporary mapfile and the temporary sldfiles. But the external graphic is saved in the System Temp Directory C:\WINDOWS\TEMP. Should the graphic not saved at the same place? Also there is an error message that speaks of TMPPATH instead of TEMPPATH: [Fri Apr 29 14:10:42 2011].937000 msSLDApplySLDURL: WMS server error. Could not open SLD http://localhost/.../sld_polygon_fill_symbol_external.xml and save it in temporary file C:\WINDOWS\TEMP\4dbaaac2_b34_0.sld.xml. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings. Arnd From jmckenna at gatewaygeomatics.com Fri Apr 29 10:24:16 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 29 Apr 2011 14:24:16 -0300 Subject: [mapserver-users] error and temp file handling with 6.0.0 In-Reply-To: <5790B0DBCE06465A9F35C2A60D37F14C@pcawh2> References: <5790B0DBCE06465A9F35C2A60D37F14C@pcawh2> Message-ID: <4DBAF440.5040506@gatewaygeomatics.com> On 11-04-29 1:59 PM, Arnd Wippermann wrote: > Hi, > > I'm a bit confused about how MapServer log errors and where it saves > temporary files. > > In my mapfile I have declared > > CONFIG "MS_ERRORFILE" "file.err" #and DEBUG is not set > > LOG "file.log" #in the WEB block > TEMPPATH ... #in the WEB block The recommending steps to log errors in MapServer are documented at http://www.mapserver.org/optimization/debugging.html If I was in your situation I would follow those 7 steps listed in that document. Have a nice weekend :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From armin.burger at gmx.net Fri Apr 29 10:40:42 2011 From: armin.burger at gmx.net (Armin Burger) Date: Fri, 29 Apr 2011 19:40:42 +0200 Subject: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6 In-Reply-To: <201104290913.53336.aboudreault@mapgears.com> References: <4DB851A2.8060704@gmx.net> <201104290913.53336.aboudreault@mapgears.com> Message-ID: <4DBAF81A.8050804@gmx.net> Alan I used a script creating 3 different type of objects without applying the "free" method, put it in a loop with 1M cycles and opened it in a browser. Checking the memory usage of the Apache process while running the script showed no increase of memory at all. So I would guess the free() is not needed any more. Test was made with MS 5.6 Armin On 29/04/2011 15:13, Alan Boudreault wrote: > Hi Armin, > > Although I'm not sure if the free call was useful... since it was only > removing the php object from a global list but the object was not really freed > until the end of the script... I would suggest to simply add a such condition > "if ms_version< 6 ... obj->free()" rather than removing them to be compatible > 5.6/6.0 and avoid any issue. You can also do a quick test in your script with > some echo of the memory used before the end of the script and see if the > free() removal has any effect. > > Alan > > On April 27, 2011 01:25:54 pm Armin Burger wrote: >> Hi everybody >> >> in MapServer/MapScript 6 the various class methods "free()" have been >> removed. If I want to have PHP/MapScript code compatible with both >> MapServer 5.x and 6, the easiest would be to completely remove these >> method calls from the code. >> >> My question is just if these free() methods are still somehow required >> or recommended for MapServer/MapScript 5.x or if I can silently drop >> them without any drawbacks. >> >> Cheers >> Armin >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From yassefa at dmsolutions.ca Fri Apr 29 10:47:50 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 29 Apr 2011 13:47:50 -0400 Subject: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1 In-Reply-To: <4DB9BC19.3010206@dmsolutions.ca> References: <97942B28A7BA423B89980D58DF1966FE@pcawh2> <4DB9BBBC.3060104@dmsolutions.ca> <4DB9BC19.3010206@dmsolutions.ca> Message-ID: <4DBAF9C6.6060105@dmsolutions.ca> On 28/04/2011 3:12 PM, Yewondwossen Assefa wrote: > Sorry I hit send with finishing the e-mail. I will through each items > tomorrow and report. > > On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote: >> On 28/04/2011 9:34 AM, Arnd Wippermann wrote: >>> Hi, >>> >>> I'm interested in map styling with SLD and have tested it locally with >>> MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com. >>> >>> I have created an online application to play with SLD and the different >>> MapServer versions. >>> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ >>> >>> er_SLD_World.asp >>> >>> There the below issues can be seen. For the online application I >>> have only >>> 6.0.0 Beta 7 available, but it is the same with RC1. >>> >>> Most things work great and create a good looking output. >>> >>> But some things doesn't work as expected. >>> >>> 1. >>> It seems, that the output directory for debug is set static to >>> C:\Windows\Temp. >>> msApplySLD(): Map file after SLD was applied >>> C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map >>> IMGPATH or IMGURL is not take in account. >>> >> Temporary files are now written into the tmp directory location. It >> depends on the platform but should respect the environment variables >> set on your platform regarding temporary paths. It is not hardcoded >> in Mapserver. Ticket http://trac.osgeo.org/mapserver/ticket/3354 has >> notes on this. >> >>> 2. fill external symbol >>> Polygon fill with external graphic is erratic. If I zoom in one >>> level i get >>> one tile (South America). >>> It creates a file >>> "http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in >>> C:\Windows\Temp. I am not sure I could reproduce this. With local test file, I was able to get a fill polygon with external symbol working. If you have a simple map/data I can use, you can create a trac bug and attach it to them and assign it to me (osgeoid: assefa) >>> >>> 3. Continent, Continent_Else >>> Filter PropertyIsLike doesn't work. With 5.6.1 it is ok. >>> Expression from generated mapfile : EXPRESSION ("[Continent]" =~ >>> /^Africa/) >>> >>> 4. or_like_abcdef >>> Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last >>> entry of >>> PropertyIsLike are taken. >>> With Or and PropertyIsEqualTo all entries are taken in both versions. >>> Expression from generated mapfile (6 beta): EXPRESSION ( >>> ("[country]" =~ >>> /^A/) Or ( ("[country]" =~ /^B/) Or ( ("[country]" =~ /^C/) Or ( >>> ("[country]" =~ /^D/) Or ( ("[country]" =~ /^E/) Or ("[country]" >>> =~ /^F/)) >>> ) ) ) ) >>> >>> msEvalExpression: Expression parser error. Failed to parse expression: >>> ("[country]" =~ /^A/) Or ... >>> >>> With changing =* to ~* and / to " the mapfile works : >>> EXPRESSION ( ("[country]" ~* "^A") Or ( ("[country]" ~* "^B") Or ... >>> >>> It seems, that in the generated mapfile is a wrong expression. >>> I was able to reproduce this. I have added a bug (http://trac.osgeo.org/mapserver/ticket/3855) on it and a patch that should correct the issue. Is it possible for you to test the patch and report through the bug? Thx >>> 5. symbol fill rotated >>> Polygon fill with rotated square looks interesting, but not as >>> expected. Try >>> with 5.6.1. >>> Here again I tried vectir synbols (weel-know sld symbols like star) as well as the graphic symbols but could not see a problem. The roration parameter should translate into an angle parameter in the style. I have tried this using agg output. Here again if you have test data that demonstrate it please open a trac bug. >>> 6. fill solid >>> Polygon with solid fill without stroke shows thin lines of the borders. >>> Same as above. >>> Some other issues are likely not supported by MapServer, but would >>> be nice >>> to have them. >>> >>> A. >>> Changing the hatch width with sld. see "group3, hatch" as it is >>> possible >>> with mapfile class. >>> >>> B. >>> UserStyles from applied SLD not supported in WMS Styles >>> >>> C. >>> WMS request GetStyles creates only one userstyle with rules from the >>> different styles described in the mapfile. Should it not create >>> different >>> userstyles for each style described in the mapfile? >>> >>> Regards, >>> Arnd >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> > > For new features/enhancements, It would also be better to add them in trac and mark them as enhancements. They can be addressed for future versions > 6.0. best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From aboudreault at mapgears.com Fri Apr 29 11:08:00 2011 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 29 Apr 2011 14:08:00 -0400 Subject: [mapserver-users] free() methods in MapScript, compatibility MS 5.x and 6 In-Reply-To: <4DBAF81A.8050804@gmx.net> References: <4DB851A2.8060704@gmx.net> <201104290913.53336.aboudreault@mapgears.com> <4DBAF81A.8050804@gmx.net> Message-ID: <201104291408.01081.aboudreault@mapgears.com> That's what I thought. Thanks for testing. Alan On April 29, 2011 01:40:42 pm Armin Burger wrote: > Alan > > I used a script creating 3 different type of objects without applying > the "free" method, put it in a loop with 1M cycles and opened it in a > browser. Checking the memory usage of the Apache process while running > the script showed no increase of memory at all. So I would guess the > free() is not needed any more. Test was made with MS 5.6 > > Armin > > On 29/04/2011 15:13, Alan Boudreault wrote: > > Hi Armin, > > > > Although I'm not sure if the free call was useful... since it was only > > removing the php object from a global list but the object was not really > > freed until the end of the script... I would suggest to simply add a > > such condition "if ms_version< 6 ... obj->free()" rather than removing > > them to be compatible 5.6/6.0 and avoid any issue. You can also do a > > quick test in your script with some echo of the memory used before the > > end of the script and see if the free() removal has any effect. > > > > Alan > > > > On April 27, 2011 01:25:54 pm Armin Burger wrote: > >> Hi everybody > >> > >> in MapServer/MapScript 6 the various class methods "free()" have been > >> removed. If I want to have PHP/MapScript code compatible with both > >> MapServer 5.x and 6, the easiest would be to completely remove these > >> method calls from the code. > >> > >> My question is just if these free() methods are still somehow required > >> or recommended for MapServer/MapScript 5.x or if I can silently drop > >> them without any drawbacks. > >> > >> Cheers > >> Armin > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From steve.lime at state.mn.us Fri Apr 29 11:59:52 2011 From: steve.lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 29 Apr 2011 13:59:52 -0500 Subject: [mapserver-users] RE: Validation beyond [A-z] In-Reply-To: <4DBA94F6.6020404@uva.nl> References: <4DB99A76.2090503@uva.nl> <4DBA94F6.6020404@uva.nl> Message-ID: "." is a pattern that says the string contains at least one character, it's a wild card so that's why anything matches. Granted, regex's aren't easy to use but you can accomplish a lot with very simple patterns, plus I've not seen or been presented with a better idea. Validation is (and will be) pushed for a couple of reasons: - To keep users from making poor decisions by forcing them to explicitly make (and think about) them - To try and limit unintended uses (we could go much further here) Not everyone is risk aware and I feel a responsibility to try and help users limit risk. I suppose the lack of documentation doesn't support that last statement but we can fix that. Without validation efforts there's potentially an inherent assumption that the rest of the codebase is insecure. We've made mistakes and take the topic seriously. That said, I'm not adverse to a "no validation" switch as long as it's off by default, file a ticket... Steve From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] Sent: Friday, April 29, 2011 5:38 AM To: woodbri at swoodbridge.com Cc: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org; Rahkonen Jukka Subject: Re: [mapserver-users] RE: Validation beyond [A-z] Thanks Steve. I don't understand the syntax: in the regex versions I use, "." means "one and just one character", not any string. Any string excluding the null-string would be ".+" or "..*" More generally, I still have problems with validation as a concept: it's too difficult, and perhaps that's why it isn't documented. I have postings about this subject in my personal mapserver-dev mail-archive dating from 2002 (couldn't find them on the official site any more), and there still isn't a clear solution almost ten years later. IMHO the major security risk of MapServer CGI is that it gives access to the filesystem outside the web-root. Wouldn't it be better to keep security at that level, i.e. only let MapServer access explicitly defined parts of the filesystem? Within these parts, it's up to the web-site builder to put only those things that should be visible and nothing else. You don't put an ultra-secret document on the web and afterward restrict access to portions only, you just put there what you want to show to the world. Same goes for validations on extent or styles: just make your selections of what you want to show "before" you let MapServer loose on it. The same story can be told for database access and restrictions on SQL queries: IMHO that is a matter for the database system. It's easy enough to put everything behind barriers with user privileges and views. Why should mapserver double all that security? Any competent database administrator should know how to prevent SQL injects, and MapServer should not be there to protect those who are unable to. I've been working with Cloud VM's for about a year now, and in that environment many security problems disappear: just make small, dedicated servers and interconnect them, e.g. with cascading services. So my view would be: let the Operating System and the Database do everything needed to secure files and databases, and put in your web services only afterwards. It all gets too complex with all those interconnected securities at all levels of the system (my main problem with Apache). In the last ressort: KISS (Keep It Simple Steve (whoever)) :-) Jan ------------------------------------------------------------------------------------- On 04/28/11 18:48, Steve Woodbridge wrote Hi Jan, I do not think there is a global OFF switch for validation, but where validation is required you can include the regex validation string of /./ which means match anything except a null string, or to also accept a null string then use /.*/ You still need to be aware of when you should put a validation in place even if it accepts any string. Regards, -Steve W On 04/28/11 18:48, Jan Hartmann wrote: I find the whole validation issue difficult and not well documented (http://trac.osgeo.org/mapserver/ticket/3754, last updated four hours ago). How do I put all validation off? I really don need that much security. Jan On 04/28/11 18:19, Lime, Steve D (DNR) wrote: I see the problem, just not sure how to fix it. Steve W. provided some possibilities but that's probably not the only approach. It would be helpful if some interested person(s) got together and drafted an RFC. I think the devs would be in a position to help define implementation details if the problem is well defined along with a proposed solution. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Thursday, April 28, 2011 4:21 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Validation beyond [A-z] Hi, Validation is nowadays needed in quite a many places in a mapfile. However, we who live outside the English speaking world tend to have more characters in the alphabet than A to Z. This makes the mapfile validation idea only half effective because for making things to work at all with the native data we must accept almost everything that is non-numeric with wildcards. Are there others who think that this is a problem? Stephen Woodbidge commented slightly this topic in another thead a month ago (Mar 29, 2011) http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html -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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Fri Apr 29 12:12:29 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 29 Apr 2011 12:12:29 -0700 (PDT) Subject: [mapserver-users] Efficiency - Postgres/gis view or Mapserver data definition join In-Reply-To: <9B5B3E36D43741DCA316E1C2F2074B0B@GISWKSTN2> Message-ID: <622904.66483.qm@web33205.mail.mud.yahoo.com> Hi Dana, Usually it does not matter much, as mapserver passes the query to Postgis anyway, as you noted. However, mapserever does do some parsing & rewriting of the query before issuing it, and this can cause issues. Also note that when working in the db, it is easier to use explain, check indexes, etc to optimise your query, so if it is anything but a simple join, I'd suggest creating it in the database is the tidier way to do this. I guess I approach it with the premise that mapserver is the rendering engine, Postgis is the data management/query engine. If your dba is going to be able to see the views/queries/joins which the db implements, & manage/optimise the db for these, it is much easier if they are inplemented in the db than scattered around in mapfiles. This said, I use where clauses all the time in mapfiles, for layers based on data driven categories within a single table, for example, map LAYER DTIS = "select ... where category='DTIS';", etc. I'd suggest views in this case are just clutter :-) It is a case-by-case basis... for informed advice, seeing the actual query would be useful . Cheers, ?Brent Wood --- On Fri, 4/29/11, Dara Olson wrote: From: Dara Olson Subject: [mapserver-users] Efficiency - Postgres/gis view or Mapserver data definition join To: mapserver-users at lists.osgeo.org Date: Friday, April 29, 2011, 6:34 AM Greetings.? I am hoping that I?have posted this on the most appropriate list, please let me know if I should be posting?to a different list. ? In our Mapserver application, we join a lot of tables together -?generally one table?with geometry to a "flat" table with tabular data.? My question is - is it more efficient/faster?to create a view in?PostgreSQL doing the join and link to the view table?from Mapserver?or to define the?join (SQL statement)?with Mapserver in the data definition?within the layer definition? Does it even matter because Mapserver sends the request to PostgreSQL/GIS? ? Also, we have joins that take a field within the flat table?to determine which table to join to get geometry.? For example, if the flat table column "join" value is equal to?1 then it joins to "table1" to get geometry or if column "join" value is equal to 2 then it joins to "table2" to get geometry. I read something that you were not supposed to use WHERE clauses in the Mapserver data definition.? Would this be better to do as a view and link to the view table from the data definition? ? Any advice would be greatly appreciated.? Thanks in advance! Dara -----Inline Attachment Follows----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Fri Apr 29 12:23:17 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 29 Apr 2011 12:23:17 -0700 (PDT) Subject: [mapserver-users] Parameterized MapFile using CGI variable In-Reply-To: <008e01cc0675$4e595780$eb0c0680$@boutet@geosys.com> Message-ID: <592164.49462.qm@web33203.mail.mud.yahoo.com> Yes. Just as you have suggested. Have a CGI wrapper script, which determines the variable's value based on hostname (or whatever), then append this (to the QUERY_STRING prior to executing mapserver. See: http://mapserver.org/cgi/wrapper.html As shown in the link below, both the CONNECTION & DATA strings in the mapfile are supported by the preprocessor for variable substitution. http://mapserver.org/mapfile/variable_sub.html Cheers, Brent Wood --- On Sat, 4/30/11, Nicolas BOUTET wrote: From: Nicolas BOUTET Subject: [mapserver-users] Parameterized MapFile using CGI variable To: mapserver-users at lists.osgeo.org Date: Saturday, April 30, 2011, 1:56 AM Dear All, ?I have 2 MapServer servers. One for Production use, and the other for Validation use.The MAP files placed on those servers are similar except that each server has a different Oracle database as datasource.For now, I have some different CONNECTION values depending if the map file is on the Production or on the Validation server. So finally I must have different MAP files. ?Is there a way to have exactly the same map files on the 2 servers, and to use a variable to parameterize the CONNECTION. ?For example, I would like to set the CONNECTION of my layers to ?%ORACLECONNECTIONSTRING%? and to set a CGI Environment variable named ORACLECONNECTIONSTRING to the correct value on each server. ?Nicolas ? -----Inline Attachment Follows----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnd.wippermann at web.de Fri Apr 29 14:38:55 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri, 29 Apr 2011 23:38:55 +0200 Subject: AW: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1 In-Reply-To: <4DBAF9C6.6060105@dmsolutions.ca> References: <97942B28A7BA423B89980D58DF1966FE@pcawh2> <4DB9BBBC.3060104@dmsolutions.ca> <4DB9BC19.3010206@dmsolutions.ca> <4DBAF9C6.6060105@dmsolutions.ca> Message-ID: <14AC4A81AA9C46E98C331CF6D513513F@pcawh2> Hi Here you can online see external graphic mostly not showing http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp?SLDsrcIdx=51&mapservVersion=6.0.0 Perhaps it has something to do with the complexity of the polygons. Locally test with simplier polygons works. But also with the simplier polygons it doesn't show the graphic if i apply the sld file from http://demo.mapserver.org/ogc-demos/map/sld/sld_polygon_fill_symbol_external .xml (gif image). Rotated square not like 5.6.1 http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp?SLDsrcIdx=51&mapservVersion=6.0.0 borders as thin lines without stroke set http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp?SLDsrcIdx=52&mapservVersion=6.0.0 The patch I cannot test. I'm not able to compile MapServer by myself. Thank for watching the points Regards, Arnd -----Urspr?ngliche Nachricht----- Von: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Gesendet: Freitag, 29. April 2011 19:48 An: Arnd Wippermann Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1 On 28/04/2011 3:12 PM, Yewondwossen Assefa wrote: > Sorry I hit send with finishing the e-mail. I will through each items > tomorrow and report. > > On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote: >> On 28/04/2011 9:34 AM, Arnd Wippermann wrote: >>> Hi, >>> >>> I'm interested in map styling with SLD and have tested it locally >>> with MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com. >>> >>> I have created an online application to play with SLD and the >>> different MapServer versions. >>> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World >>> /MapServ >>> >>> er_SLD_World.asp >>> >>> There the below issues can be seen. For the online application I >>> have only 6.0.0 Beta 7 available, but it is the same with RC1. >>> >>> Most things work great and create a good looking output. >>> >>> But some things doesn't work as expected. >>> >>> 1. >>> It seems, that the output directory for debug is set static to >>> C:\Windows\Temp. >>> msApplySLD(): Map file after SLD was applied >>> C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map >>> IMGPATH or IMGURL is not take in account. >>> >> Temporary files are now written into the tmp directory location. It >> depends on the platform but should respect the environment variables >> set on your platform regarding temporary paths. It is not hardcoded >> in Mapserver. Ticket http://trac.osgeo.org/mapserver/ticket/3354 has >> notes on this. >> >>> 2. fill external symbol >>> Polygon fill with external graphic is erratic. If I zoom in one >>> level i get one tile (South America). >>> It creates a file >>> "http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in >>> C:\Windows\Temp. I am not sure I could reproduce this. With local test file, I was able to get a fill polygon with external symbol working. If you have a simple map/data I can use, you can create a trac bug and attach it to them and assign it to me (osgeoid: assefa) >>> >>> 3. Continent, Continent_Else >>> Filter PropertyIsLike doesn't work. With 5.6.1 it is ok. >>> Expression from generated mapfile : EXPRESSION ("[Continent]" =~ >>> /^Africa/) >>> >>> 4. or_like_abcdef >>> Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last >>> entry of PropertyIsLike are taken. >>> With Or and PropertyIsEqualTo all entries are taken in both versions. >>> Expression from generated mapfile (6 beta): EXPRESSION ( >>> ("[country]" =~ >>> /^A/) Or ( ("[country]" =~ /^B/) Or ( ("[country]" =~ /^C/) Or ( >>> ("[country]" =~ /^D/) Or ( ("[country]" =~ /^E/) Or ("[country]" >>> =~ /^F/)) >>> ) ) ) ) >>> >>> msEvalExpression: Expression parser error. Failed to parse expression: >>> ("[country]" =~ /^A/) Or ... >>> >>> With changing =* to ~* and / to " the mapfile works : >>> EXPRESSION ( ("[country]" ~* "^A") Or ( ("[country]" ~* "^B") Or ... >>> >>> It seems, that in the generated mapfile is a wrong expression. >>> I was able to reproduce this. I have added a bug (http://trac.osgeo.org/mapserver/ticket/3855) on it and a patch that should correct the issue. Is it possible for you to test the patch and report through the bug? Thx >>> 5. symbol fill rotated >>> Polygon fill with rotated square looks interesting, but not as >>> expected. Try with 5.6.1. >>> Here again I tried vectir synbols (weel-know sld symbols like star) as well as the graphic symbols but could not see a problem. The roration parameter should translate into an angle parameter in the style. I have tried this using agg output. Here again if you have test data that demonstrate it please open a trac bug. >>> 6. fill solid >>> Polygon with solid fill without stroke shows thin lines of the borders. >>> Same as above. >>> Some other issues are likely not supported by MapServer, but would >>> be nice to have them. >>> >>> A. >>> Changing the hatch width with sld. see "group3, hatch" as it is >>> possible with mapfile class. >>> >>> B. >>> UserStyles from applied SLD not supported in WMS Styles >>> >>> C. >>> WMS request GetStyles creates only one userstyle with rules from the >>> different styles described in the mapfile. Should it not create >>> different userstyles for each style described in the mapfile? >>> >>> Regards, >>> Arnd >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> > > For new features/enhancements, It would also be better to add them in trac and mark them as enhancements. They can be addressed for future versions > 6.0. best regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From woodbri at swoodbridge.com Fri Apr 29 17:12:04 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 29 Apr 2011 20:12:04 -0400 Subject: [mapserver-users] RE: Validation beyond [A-z] In-Reply-To: <4DBA94F6.6020404@uva.nl> References: <4DB99A76.2090503@uva.nl> <4DBA94F6.6020404@uva.nl> Message-ID: <4DBB53D4.3000004@swoodbridge.com> On 4/29/2011 6:37 AM, Jan Hartmann wrote: > Thanks Steve. I don't understand the syntax: in the regex versions I > use,"." means"one and just one character", not any string. Any > string excluding the null-string would be".+" or"..*" Not "." means match any single character in the string. It does not mean match a string of just one character. Basically it means match any string the is not a null string. "." - match any character in a string the is not a null string ".*" - match any string the is 0 or more characters "^.$" - match a string the is exactly one character long "^$" - match only an empty/null string ".+" - match any string that is one of more characters "..*" - match any character followed by 0 or more characters > More generally, I still have problems with validation as a concept: > it's too difficult, and perhaps that's why it isn't documented. I The doc team has done a great job with the documentation, but there are always areas for improvement and this is one of those areas that we need to improve the documentation. > have postings about this subject in my personal mapserver-dev > mail-archive dating from 2002 (couldn't find them on the official > site any more), and there still isn't a clear solution almost ten > years later. > > IMHO the major security risk of MapServer CGI is that it gives access > to the filesystem outside the web-root. Wouldn't it be better to keep > security at that level, i.e. only let MapServer access explicitly > defined parts of the filesystem? Within these parts, it's up to the Definitely not, in my opinion, I do not want my valuable data files which are sometimes licensed data in my document root tree where someone can download them. Also, mapserver does not have any idea of what the webserver's document root is. In fact under Apache you can map any arbitrary directory into the a serviceable directory by the webserver. > web-site builder to put only those things that should be visible and > nothing else. You don't put an ultra-secret document on the web and > afterward restrict access to portions only, you just put there what > you want to show to the world. Same goes for validations on extent or > styles: just make your selections of what you want to show"before" > you let MapServer loose on it. Mapserver serves imagery that is rendered in a context, it does not serve the underlining raw data files. > The same story can be told for database access and restrictions on > SQL queries: IMHO that is a matter for the database system. It's easy > enough to put everything behind barriers with user privileges and > views. Why should mapserver double all that security? Any competent > database administrator should know how to prevent SQL injects, and > MapServer should not be there to protect those who are unable to. > > I've been working with Cloud VM's for about a year now, and in that > environment many security problems disappear: just make small, > dedicated servers and interconnect them, e.g. with cascading > services. > > So my view would be: let the Operating System and the Database do > everything needed to secure files and databases, and put in your web > services only afterwards. It all gets too complex with all those > interconnected securities at all levels of the system (my main > problem with Apache). > > In the last ressort: KISS (Keep It Simple Steve (whoever)) :-) This all sounds great, but I don't have a Cloud, or all the services to interconnect and cascade, and I'm not sure how I would set that up for all the applications I have running. Maybe this needs some documentation on how to do this better. Regardless, mapserver has to support multiple environments. I do not think it is reasonable to tell all mapserver users that they have to re-architect there production environments because we do not want to provide some basic tools to help with security if they are not building systems like you are. If you know what you are doing then there is not problem defeating the tools mapserver provides by effectively making them a NOP. As Steve L said, we can add a switch to turn it off if you want to create a bug and we should do a better job on this documentation. Personally, I would be interested in learning more about how you setup and deal with the database, and filesystem issues and specifically how to deal with SQL injection attacks in postgresql. Thanks for your interesting and thoughtful use case. -Steve W > Jan > > > ------------------------------------------------------------------------------------- > > On 04/28/11 18:48, Steve Woodbridge wrote > > Hi Jan, > > I do not think there is a global OFF switch for validation, but > where validation is required you can include the regex validation > string of /./ which means match anything except a null string, or to > also accept a null string then use /.*/ > > You still need to be aware of when you should put a validation in > place even if it accepts any string. > > Regards, -Steve W > > > > On 04/28/11 18:48, Jan Hartmann wrote: >> I find the whole validation issue difficult and not well documented >> (http://trac.osgeo.org/mapserver/ticket/3754, last updated four >> hours ago). How do I put all validation off? I really don need that >> much security. >> >> Jan >> >> On 04/28/11 18:19, Lime, Steve D (DNR) wrote: >>> >>> I see the problem, just not sure how to fix it. Steve W. provided >>> some possibilities but that?s probably not the only approach. It >>> would be helpful if some interested person(s) got together and >>> drafted an RFC. I think the devs would be in a position to help >>> define implementation details if the problem is well defined >>> along with a proposed solution. >>> >>> Steve >>> >>> *From:*mapserver-users-bounces at lists.osgeo.org >>> >>> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of >>> *Rahkonen Jukka *Sent:* Thursday, April 28, 2011 4:21 AM *To:* >>> mapserver-users at lists.osgeo.org >>> *Subject:* >>> [mapserver-users] Validation beyond [A-z] >>> >>> Hi, >>> >>> Validation is nowadays needed in quite a many places in a >>> mapfile. However, we who live outside the English speaking world >>> tend to have more characters in the alphabet than A to Z. This >>> makes the mapfile validation idea only half effective because for >>> making things to work at all with the native data we must accept >>> almost everything that is non-numeric with wildcards. Are there >>> others who think that this is a problem? >>> >>> Stephen Woodbidge commented slightly this topic in another thead >>> a month ago (Mar 29, 2011) >>> >>> http://lists.osgeo.org/pipermail/mapserver-users/2011-March/068307.html >>> >>> >>> -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