From beyhan at deprem.gov.tr Thu Mar 1 00:55:34 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Thu, 01 Mar 2012 10:55:34 +0200 Subject: [mapserver-users] draw line readinf from mysql In-Reply-To: <1330079909.24113.13.camel@localhost> References: <1329745925.9395.5.camel@localhost> <4F4360C402000037000121EA@gate1.asurequality.com> <1330079909.24113.13.camel@localhost> Message-ID: <1330592134.7489.6.camel@localhost> Dear All, I have solved to read data from virtual data access using ogr and Mysql but my mapserver gives an error message, Please let me know What I'm doing wrong. the map file layer for drawing line as follows LAYER NAME sfault1 connectiontype ogr CONNECTION ' MYSQL:dynamic,user=root,password=mysql_passwd,host=localhost,port=3306,tables=lineview1 select eq_id, geom from lineview1 where eq_id like "%eq_id%" wkbLineString eq_id ' DATA sfault1 STATUS default TYPE line CLASS name "Kaynak Fay1/Source Fault" SYMBOL "cline" SIZE 6 COLOR 0 255 255 END END ogr vrt can access succesfully to mysql as follows [murat at localhost stations]$ ogrinfo -ro -al test.vrt INFO: Open of `test.vrt' using driver `VRT' successful. Layer name: dynamic Geometry: Line String Feature Count: 2 Layer SRS WKT: (unknown) eq_id: String (42.0) geom: Real (23.0) OGRFeature(dynamic):0 eq_id (String) = 20111023101120 geom (Real) = 164 OGRFeature(dynamic):1 eq_id (String) = 20100308023229 geom (Real) = 163 please give me hint What Shall I do Regards Murat On Fri, 2012-02-24 at 12:38 +0200, Murat Beyhan wrote: > Dear all, > > Still could not achieve to draw line using start and stop point line > data stored in MySql database. > > I have tried Mr. Robert's solution but I have faced an error message. > > > in map file > I changed Geometrytype from wkbline to wkblinestring. > > LAYER > NAME sfault1 > CONNECTIONTYPE OGR > CONNECTION ' > > MYSQL:dynamic,user=root,password=mysqlpasswd,host=localhost,port=3306,tables=lineview > lineview > wkbLineString > > WGS84 > eq_id > > ' > DATA sfault1 > STATUS on > TYPE line > CLASS > NAME "Source Fault" > SYMBOL "cline" > SIZE 3 > COLOR 0 0 255 > END > END > > in database > I have two table > one is store id lat1 lon1 lat2 lon2 > and another is view > of this table created by following > > create view lineview as select eq_id, "LINESTRING(" + lon1 + " " + lat1 > + "," + lon2 + " " + lat2 + ")" as geom from sfault > > > there is an another issue, > I have to draw line by considering id > so in the map When I select one id, line should be belong to this id's > information > so I have to make a sql statement as follow instead of draw all line > stored in database I have to draw just one line considering id > > something like this select eq_id, geom from lineview where id like '%id > %' > > > please help about this subject.... > > > Regards.... > > > > Murat > > > > On Tue, 2012-02-21 at 09:15 +1300, Robert Sanson wrote: > > Hi Murat > > > > Is it possible for you to create a view from the columns that presents the data as a WKT line feature: > > > > create view lineview as select id, "LINESTRING(" + lon1 + " " + lat1 + "," + lon2 + " " + lat2 + ")" as geom from mytable > > > > Then set up your OGR ovf file representing this view: > > > > > > > > ODBC:user/passwd at DSN > > lineview > > wkbLine > > EPSG:2193 > > > > id > > > > > > > > Best wishes, > > > > Robert > > > > >>> Murat Beyhan 21/02/2012 2:52 a.m. >>> > > Dear friend, > > > > I'm trying to draw a line using MySql database > > the table in database as follows, > > > > id lat1 lon1 lat2 lon2 > > 20100308023229 40.1113 38.7901 40.0311 38.7428 > > > > actually using ogr connection I can draw point using ogr and mysql, but > > How can I draw line using such database table, please help me and give > > the idea... > > > > Thanks > > > > Murat > > -- > > Murat BEYHAN > > Geophysical Engineer, M.Sc. > > Prime Ministry > > Disaster and Emergency Management Presidency > > Earthquake Department > > Address: Eskisehir Yolu 12. Km. > > Lodumlu/ANKARA > > Tel: 312 2872680-1556 > > email:beyhan at deprem.gov.tr > > > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. > > > > This message has been scanned for Malware and Viruses by Websense Hosted Security. > > www.websense.com > > > > > > Murat BEYHAN > > Jeofizik Y.M?h. > T.C. Ba?bakanl?k > Afet ve Acil Durum Y?netimi Ba?kanl??? > Deprem Dairesi Ba?kanl??? > Eski?ehir Yolu 12. Km. > Lodumlu/ANKARA > Tel: 312 2872680-1556 > email:beyhan at deprem.gov.tr > > > > Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From Michael.Smith at usace.army.mil Thu Mar 1 03:59:43 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 1 Mar 2012 11:59:43 +0000 Subject: [mapserver-users] Re: Oracle Locator support In-Reply-To: <1330577133665-4533743.post@n6.nabble.com> Message-ID: MapServer works fine with Oracle Locator and doesn't use any Oracle Spatial licensed functions. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 2/29/12 10:45 PM, "bteluk at gmail.com" wrote: >Hi Michael, >Thanks, but I only want to know at this stage whether MapServer is written >for Oracle Spatial only, or whether it can support Locator. > >I'm guessing from reading Oracle's documentation that since >SDO.GEOM.INTERSECTS and SDO.GEOM.RELATE aren't supported, that MapServer >probably doesn't support Locator. However, how do I know that MapServer >doesn't use the SQL/MM functions instead - which are apparently supported. > >Is there no easy way other than to test every possible variant of >MapServer >usage against a test Locator installation? > >Regards, Bill Teluk. > >-- >View this message in context: >http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p45337 >43.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 rhow at i3.com Thu Mar 1 08:55:21 2012 From: rhow at i3.com (Randy How) Date: Thu, 1 Mar 2012 09:55:21 -0700 Subject: [mapserver-users] WFS version and axis order Message-ID: I need a second option so I can respond to a customer regarding their concerns of using our WFS services. Their concern is mainly confidence and the ability of moving forward. As you know in the WFS version 1.1 the axis order switched. These are their assumptions: * WFS v 1.0 will serve data in lon, lat order * WFS v 1.1 can serve data in lon, lat and lat, lon as well MapServer-Users, Is there way in WFS v1.1 to maintain the lon,lat order for every projection, client request parameter or server configuration? * We need a way to clearly define how to build BBOX for request (lat,lon or lon,lat) and in what order will be the response ? I think that order should be consistent for request and response. MapServer-Users, the last bullet refers to the relationship between BBOX and the WFS versions. Please confirm BBOX will always be of the contruct: minx,miny,maxx,maxy Thanks in advance, Randy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Mar 1 09:34:37 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 1 Mar 2012 17:34:37 +0000 Subject: [mapserver-users] WFS version and axis order In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A630826E9@suutari.haapa.mmm.fi> Hi, Unfortunately axis order in WFS 1.1.0 (or in GML3) is complicated. > I need a second option so I can respond to a customer regarding their concerns of using our > WFS services. Their concern is mainly confidence and the ability of moving forward. As you > know in the WFS version 1.1 the axis order switched. Too genaralised to say so. There are systems which have officially easting-northing axis order, like WGS84 UTM zones, and for them WFS 1.0.0 and 1.1.0 must behave similarly. > These are their assumptions: > * WFS v 1.0 will serve data in lon, lat order > * WFS v 1.1 can serve data in lon, lat and lat, lon as well The meaning of the standard is "No", each projection has one fixed, official and correct axis order. In real life WFS 1.1.0 servers may behave differently. For example Geoserver, TinyOWS and probably deegree are using the WFS 1.0.0 style axis order if srsName is given in short format EPSG:4326. When using long format srsname=urn:ogc:def:crs:EPSG::4326 servers are trying to use the correct order. > MapServer-Users, Is there way in WFS v1.1 to maintain the lon,lat order for every projection, client request parameter or server configuration? I think that if you ask for GML2 outputformat then the response should be lon-lat (easting-northing) always. > * We need a way to clearly define how to build BBOX for request (lat,lon or lon,lat) and in what order will be the response ? I think that > order should be consistent for request and response. > MapServer-Users, the last bullet refers to the relationship between BBOX and the WFS versions. > Please confirm BBOX will always be of the contruct: minx,miny,maxx,maxy Yes, but the meaning of x and y varies :) Order in BBOX axis follows the official definition of the projection. In addition, according to the WFS 1.1.0 standard BBOX=minx,miny,maxx,maxy defaults to EPSG:4326 projection and not to the default output projection. For being unambiguous for all WFS servers with WFS 1.1.0 the BBOX should be given with five parameters where the last one defines the projection of BBOX. However, not all WFS servers honour these rules or even understand the fifth BBOX parameter. It gets a bit more complicated when OGC Filters are used instead of Key-Value pair BBOX because then the BBOX defaults to the default output projection. Better to give the exact srsName always with Filters too. > Thanks in advance, I promise you and your clients will get mad with this. -Jukka Rahkonen- > Randy From armin.burger at gmx.net Thu Mar 1 11:25:21 2012 From: armin.burger at gmx.net (Armin Burger) Date: Thu, 01 Mar 2012 20:25:21 +0100 Subject: [mapserver-users] WFS version and axis order In-Reply-To: <84446DEF76453C439E9E97E438E13A630826E9@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A630826E9@suutari.haapa.mmm.fi> Message-ID: <4F4FCD21.2070904@gmx.net> On 01/03/2012 18:34, Rahkonen Jukka wrote: > Hi, > > Unfortunately axis order in WFS 1.1.0 (or in GML3) is complicated. > > >> I need a second option so I can respond to a customer regarding their concerns of using our> WFS services. Their concern is mainly confidence and the ability of moving forward. As you> know in the WFS version 1.1 the axis order switched. > > Too genaralised to say so. There are systems which have officially easting-northing axis order, like WGS84 UTM zones, and for them WFS 1.0.0 and 1.1.0 must behave similarly. just in case anybody needs a list of EPSG codes with the swapped axis orders: the Mapserver source code has a file named 'mapaxisorder.csv' with all codes that are supposed to have x/y axes inverted. I guess this is the same for WMS 1.3.0 and WFS 1.1.0 You can directly get the single file via http://trac.osgeo.org/mapserver/export/13191/trunk/mapserver/mapaxisorder.csv armin From donald.kerr at dkerr.co.uk Thu Mar 1 14:49:21 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 1 Mar 2012 22:49:21 -0000 Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS and SPATIAL_REF_SYS Tables Message-ID: <0EA5AF7EAFA3400CB2F9A2D37B29DB17@DELLM4500> Hi List, I have a point layer set up for WFS requests that connects to a Microsoft Access database with two tables structured as follows: Table: GEOMETRY_COLUMNS Fields: F_TABLE_NAME F_GEOMETRY_COLUMN GEOMETRY_TYPE SRID Values: MyData geom POINT 27700 Table: MyData (Contains about 8,000 records) Fields: UniqueID NameStr Geom XMIN YMIN XMAX YMAX Values: 1 Smiths POINT(265377 665516) 265377 665516 265377 665516 In my layer, I have: CONNECTIONTYPE OGR CONNECTION "ODBC:overlays,FullOIs(geom)" DATA "FullOIs" A GetFeature request works well and quite speedily so I think that the the query is run against the database is using the XMIN, YMIN, XMAX and YMAX columns to restrict the data returned. During debugging, the following query appeared in the response as recorded by Firebug in Firefox but I can't replicate that (if anyone can tell me how to confirm that the BBox is being used as follows that would be appreciated): SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909 AND YMAX > 583498.46091313 AND YMIN < 748311.53908687 The problem that I have relates to the GEOMETRY_COLUMNS table which I know is not being used. If I remove the geometry column from the connection string, i.e. change CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION "ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the geometry column from the GEOMETRY_COLUMNS table. It would appear that this table is being completely ignored. I have tried all sorts of combinations and field names and have also created a SPATIAL_REF_SYS table with values that I use in a working PostGIS database to no avail. I previously used an OVF file but I think that may be limited to point layers whereas, when I get this working as I want to, I would like to extend this type of connection to line and polygon layers. Can anyone advise please? Many thanks. Regards, Donald From bteluk at gmail.com Thu Mar 1 15:31:15 2012 From: bteluk at gmail.com (bteluk at gmail.com) Date: Thu, 1 Mar 2012 15:31:15 -0800 (PST) Subject: [mapserver-users] Re: Oracle Locator support In-Reply-To: References: <1330408901636-4519962.post@n6.nabble.com> <1330577133665-4533743.post@n6.nabble.com> Message-ID: <1330644675264-4537982.post@n6.nabble.com> Thanks Michael! -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p4537982.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Robert.Sanson at asurequality.com Thu Mar 1 16:57:54 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Fri, 02 Mar 2012 13:57:54 +1300 Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS and SPATIAL_REF_SYS Tables Message-ID: <4F50D26902000037000123A2@gate1.asurequality.com> OVF files can link to point, line and polygon data in WKT format. Just specify wkbPoint, wkbLinestring, wkbPolygon see: http://www.gdal.org/ogr/drv_vrt.html Regards, Robert >>> "Donald Kerr" 03/02/12 11:54 AM >>> Hi List, I have a point layer set up for WFS requests that connects to a Microsoft Access database with two tables structured as follows: Table: GEOMETRY_COLUMNS Fields: F_TABLE_NAME F_GEOMETRY_COLUMN GEOMETRY_TYPE SRID Values: MyData geom POINT 27700 Table: MyData (Contains about 8,000 records) Fields: UniqueID NameStr Geom XMIN YMIN XMAX YMAX Values: 1 Smiths POINT(265377 665516) 265377 665516 265377 665516 In my layer, I have: CONNECTIONTYPE OGR CONNECTION "ODBC:overlays,FullOIs(geom)" DATA "FullOIs" A GetFeature request works well and quite speedily so I think that the the query is run against the database is using the XMIN, YMIN, XMAX and YMAX columns to restrict the data returned. During debugging, the following query appeared in the response as recorded by Firebug in Firefox but I can't replicate that (if anyone can tell me how to confirm that the BBox is being used as follows that would be appreciated): SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909 AND YMAX > 583498.46091313 AND YMIN < 748311.53908687 The problem that I have relates to the GEOMETRY_COLUMNS table which I know is not being used. If I remove the geometry column from the connection string, i.e. change CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION "ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the geometry column from the GEOMETRY_COLUMNS table. It would appear that this table is being completely ignored. I have tried all sorts of combinations and field names and have also created a SPATIAL_REF_SYS table with values that I use in a working PostGIS database to no avail. I previously used an OVF file but I think that may be limited to point layers whereas, when I get this working as I want to, I would like to extend this type of connection to line and polygon layers. Can anyone advise please? Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From scolas at gmail.com Thu Mar 1 22:21:37 2012 From: scolas at gmail.com (Dott. Scolavino Alessandro) Date: Fri, 02 Mar 2012 07:21:37 +0100 Subject: [mapserver-users] dgn layer over map Message-ID: <4F5066F1.20503@gmail.com> Hello, i need to add layer from multiple dgn file (with utm coordinates) to a map and display on a web site. Which is the best (and simplest since i have no experience) way to archive this? I mean, are there any tools that directly import the dgn (i tryed qgis but it get wrong coordinates even trying different SR) into a map file or a shape file or anything usable with openstreetmap or openlayer or so on? Thanx for any suggestion! Alessandro -- - -- Ai sensi del DL 196/2003 si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, la Preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Cordiali saluti - ---- Dott. Alessandro Scolavino ---- - ---- http://www.webair.it ---- - ---- http://www.clerk.it ---- From pfreimuth at arcor.de Thu Mar 1 22:30:41 2012 From: pfreimuth at arcor.de (Peter Freimuth) Date: Fri, 02 Mar 2012 07:30:41 +0100 Subject: [mapserver-users] which jp2000 is the best for rgb images Message-ID: <4F506911.1050104@arcor.de> Hi Mapserver Community, which jp2000 lib is the best (good compression and fast when decoded) when used by gdal / mapserver to stream rgb satellite data via a WMS. I have 16TB of satellite data that shall go into a fast WMS. JP2000 seems to be an interesting format to store the data on the storage system. Kind regards, Peter -- From kai.behncke at fossgis.de Thu Mar 1 22:53:34 2012 From: kai.behncke at fossgis.de (kai.behncke at fossgis.de) Date: Fri, 02 Mar 2012 07:53:34 +0100 Subject: [mapserver-users] Noch 18 Tage: Die FOSSGIS-Konferenz naht Message-ID: <3e9aaacaa0ff4a1fe1e947d9b237b6ad@fossgis.de> Sehr geehrte Damen und Herren, Neuigkeiten und Hintergr?nde zu Technologien des Geo-Webs / GIS-Applikationen mit Freier Software und Freien Daten werden dieses Jahr auf der FOSSGIS 2012 pr?sentiert. Die FOSSGIS und deutschsprachige Open Street Map Konferenz 2012 ? die gr??te deutschsprachige Anwenderkonferenz f?r Freie Geo-Informationssysteme und freie Geodaten ? findet vom 20. bis 22. M?rz 2012 an der Hochschule Anhalt in Dessau-Ro?lau statt. Der Themenbogen spannt sich von der Datenaufbereitung in OpenStreetMap ?ber Geodateninfrastrukturen bishin zu Technologien zur Prozessierung von umfangreichen Geodaten und spiegelt damit den Trend der steigenden Durchdringung des Internets mit Karten und Geodaten wider. In mehr als 60 Vortr?gen f?r Einsteiger und Experten, Hands-On Workshops und Anwendertreffen erhalten die Besucher Einblick in aktuelle Anwendungsm?glichkeiten und Neuigkeiten von Softwareprojekten, die derartige Anwendungen erm?glichen. ?ber die gleichzeitig stattfindende Firmenausstellung ist ein direkter Kontakt zu Dienstleistern, die professionelle Unterst?tzung bieten, m?glich. Zus?tzlich zum fachlich orientieren Austausch in Community-Sessions und Entwicklertreffen findet ein Social-Event statt, um den Austausch aller Beteiligten - vom Benutzer ?ber Entwickler und Mapper bis zum Entscheider - zu intensivieren, um gegenseitig von Ideen und Herausforderungen zu lernen. Die Konferenzgeb?hr betr?gt f?r die gesamten drei Konferenztage 120,- ?. Auch in diesem Jahr k?nnen wieder zahlreiche Workshops besucht werden f?r die eine Teilnahmegeb?hr von 100,- ? je Teilnehmer und Workshop erhoben wird. Workshop-Teilnehmer erhalten eine Teilnahmebest?tigung f?r die besuchten Workshops. Die Einnahmen gehen wie auch in den Jahren zuvor vollst?ndig in die Finanzierung der Konferenz ein. Da mehr als 400 Teilnehmende erwartet werden, ist eine Registrierung bis zum 16. M?rz 2012 notwendig. Das Anmeldeformular und andere organisatorische Informationen befinden sich auf der Konferenzseite http://www.fossgis.de/konferenz/2012/. Die FOSSGIS Konferenz 2012 wird vom gemeinn?tzigen Verein FOSSGIS e.V, der deutschen OpenStreetMap Community und der Open Source Geospatial Foundation (OSGeo) in Zusammenarbeit mit der Hochschule Anhalt in Dessau durchgef?hrt. Weitere Informationen: Zur Konferenz: http://www.fossgis.de/konferenz/2012/ Zu den Veranstaltern: FOSSGIS e.V. http://www.fossgis.de OSGeo Foundation http://www.osgeo.org/switchuilocale/de?destination=home Deutschsprachige OSM Community http://www.openstreetmap.de Hochschule Anhalt in Dessau http://www.hs-anhalt.de/ i.A. des FOSSGIS-Teams, Dr. Kai Behncke From donald.kerr at dkerr.co.uk Thu Mar 1 23:34:08 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 2 Mar 2012 07:34:08 -0000 Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS and SPATIAL_REF_SYS Tables In-Reply-To: <4F50D26902000037000123A2@gate1.asurequality.com> Message-ID: <26819D5B4C7446ABBBEE2AF97AA36C70@DELLM4500> Robert, I wasn't aware of that so thanks for pointing it out - I had read somewhere that this method was limited to point layers only. The problem I can see with this method is (from the notes) "When the GeometryField is "WKT" spatial filtering is applied after extracting all rows from the source datasource. Essentially that means there is no fast spatial filtering on WKT derived geometries." I need the query to use the BBox on the data to limit the records returned at the data access stage rather than after the whole recordset is returned. I would prefer the direct access method that uses the BBox values in the query for that reason. I also want to get the GEOMETRY_COLUMNS table working as is described in the docs: http://www.gdal.org/ogr/drv_odbc.html. Many thanks. Regards, Donald -----Original Message----- From: Robert Sanson [mailto:Robert.Sanson at asurequality.com] Sent: 02 March 2012 00:58 To: donald.kerr at dkerr.co.uk; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS and SPATIAL_REF_SYS Tables OVF files can link to point, line and polygon data in WKT format. Just specify wkbPoint, wkbLinestring, wkbPolygon see: http://www.gdal.org/ogr/drv_vrt.html Regards, Robert >>> "Donald Kerr" 03/02/12 11:54 AM >>> Hi List, I have a point layer set up for WFS requests that connects to a Microsoft Access database with two tables structured as follows: Table: GEOMETRY_COLUMNS Fields: F_TABLE_NAME F_GEOMETRY_COLUMN GEOMETRY_TYPE SRID Values: MyData geom POINT 27700 Table: MyData (Contains about 8,000 records) Fields: UniqueID NameStr Geom XMIN YMIN XMAX YMAX Values: 1 Smiths POINT(265377 665516) 265377 665516 265377 665516 In my layer, I have: CONNECTIONTYPE OGR CONNECTION "ODBC:overlays,FullOIs(geom)" DATA "FullOIs" A GetFeature request works well and quite speedily so I think that the the query is run against the database is using the XMIN, YMIN, XMAX and YMAX columns to restrict the data returned. During debugging, the following query appeared in the response as recorded by Firebug in Firefox but I can't replicate that (if anyone can tell me how to confirm that the BBox is being used as follows that would be appreciated): SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909 AND YMAX > 583498.46091313 AND YMIN < 748311.53908687 The problem that I have relates to the GEOMETRY_COLUMNS table which I know is not being used. If I remove the geometry column from the connection string, i.e. change CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION "ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the geometry column from the GEOMETRY_COLUMNS table. It would appear that this table is being completely ignored. I have tried all sorts of combinations and field names and have also created a SPATIAL_REF_SYS table with values that I use in a working PostGIS database to no avail. I previously used an OVF file but I think that may be limited to point layers whereas, when I get this working as I want to, I would like to extend this type of connection to line and polygon layers. Can anyone advise please? Many thanks. Regards, Donald From jajalinux at gmail.com Fri Mar 2 01:40:03 2012 From: jajalinux at gmail.com (gabriel munteanu) Date: Fri, 2 Mar 2012 09:40:03 +0000 Subject: [mapserver-users] street name at the start and end of street geometry Message-ID: Hi, right now i have this code LABELITEM gfname CLASS TEXT '[gfname]' LABEL COLOR 255 3 3 OUTLINECOLOR 255 255 255 FONT "arial" TYPE truetype SIZE 8 ANTIALIAS TRUE POSITION LR PARTIALS FALSE ANGLE FOLLOW END STYLE OPACITY 100 COLOR 186 186 186 WIDTH 10 LINECAP round LINEJOIN round LINEJOINMAXSIZE 33 END STYLE OPACITY 90 COLOR 254 254 254 WIDTH 8 END END the problem i have is that the label doesn't stick to the extremities of the line and for different zoom levels it goes more to the middle of the line. is there a setting that forces a label to stick to the begging and to the end of the line? thanks in advance, cheers, Gabi From arnd.wippermann at web.de Fri Mar 2 09:08:46 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri, 2 Mar 2012 18:08:46 +0100 Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables In-Reply-To: <0EA5AF7EAFA3400CB2F9A2D37B29DB17@DELLM4500> References: <0EA5AF7EAFA3400CB2F9A2D37B29DB17@DELLM4500> Message-ID: <06A382BFD46C45CBBFECBE50A09ECF23@pcawh2> Hi, It seems, that the table GEOMETRY_COLUMNS is not used, if the geometry column is declared like CONNECTION 'ODBC:GEO,GEOPOINTS(theGeom)' Omitting the geometry column CONNECTION 'ODBC:GEO,GEOPOINTS' and renaming the table GEOMETRY_COLUMNS in the MDB, gets a different response for MapServer 5.6.1 and 6.0.1. MapServer 5.6.1 raises an error OGR error. Pointer 'hGeom' is NULL in 'OGR_G_GetGeometryType'. MapServer 6.0.1 loops through all features Rejecting feature (shapeid = 511, tileid=0) of incompatible type for this layer and returns an empty result To get the MapServer request use DEBUG in the mapfile CONFIG "MS_ERRORFILE" "GEOPOINTS.log" DEBUG 5 #on map and layer level Then you should get a likewise entry [Fri Mar 02 17:20:31 2012].156000 msOGRFileWhichShapes: Setting spatial filter to 2577984.190625 5679829.870625 2579058.409375 5680904.089375 Funny thing with MapServer 6.0.x spatial filter used to request the features in the logfile is much larger (5843.071787m on every side) than the BBOX from the request, what results also in a larger feature set. MapServer 5.6.1 uses a spatial filter the same as the BBOX from the request and the response shows only features for this extent. Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Donald Kerr Gesendet: Donnerstag, 1. M?rz 2012 23:49 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables Hi List, I have a point layer set up for WFS requests that connects to a Microsoft Access database with two tables structured as follows: Table: GEOMETRY_COLUMNS Fields: F_TABLE_NAME F_GEOMETRY_COLUMN GEOMETRY_TYPE SRID Values: MyData geom POINT 27700 Table: MyData (Contains about 8,000 records) Fields: UniqueID NameStr Geom XMIN YMIN XMAX YMAX Values: 1 Smiths POINT(265377 665516) 265377 665516 265377 665516 In my layer, I have: CONNECTIONTYPE OGR CONNECTION "ODBC:overlays,FullOIs(geom)" DATA "FullOIs" A GetFeature request works well and quite speedily so I think that the the query is run against the database is using the XMIN, YMIN, XMAX and YMAX columns to restrict the data returned. During debugging, the following query appeared in the response as recorded by Firebug in Firefox but I can't replicate that (if anyone can tell me how to confirm that the BBox is being used as follows that would be appreciated): SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909 AND YMAX > 583498.46091313 AND YMIN < 748311.53908687 The problem that I have relates to the GEOMETRY_COLUMNS table which I know is not being used. If I remove the geometry column from the connection string, i.e. change CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION "ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the geometry column from the GEOMETRY_COLUMNS table. It would appear that this table is being completely ignored. I have tried all sorts of combinations and field names and have also created a SPATIAL_REF_SYS table with values that I use in a working PostGIS database to no avail. I previously used an OVF file but I think that may be limited to point layers whereas, when I get this working as I want to, I would like to extend this type of connection to line and polygon layers. Can anyone advise please? Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Fri Mar 2 10:55:23 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 2 Mar 2012 18:55:23 -0000 Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables In-Reply-To: <06A382BFD46C45CBBFECBE50A09ECF23@pcawh2> Message-ID: <720EE0A964084B7589BC73B52235897A@DELLM4500> Arnd, I haven't been testing on 5.6.1 but have finally got around to upgrading to 6.0.2 where I noticed some issues with a point layer WFS using ovf files to connect to a Microsoft Access database. I too noticed the spatial filter being much larger than that requested which is the reason why I started looking at connecting in a different way. No matter what I did, all 8,000 records in my database were returned. I have tested both connection types again and the logs show that the correct spacial filter is being applied. I was tearing my hair out with this one but I know how I sorted it: That particular layer had "TOLERANCE 20". I changed that to "TOLERANCE 0" and the correct spacial filter was applied: "TOLERANCE 0" - "Setting spatial filter to 258416.000000 665829.000000 258665.000000 666035.000000" "TOLERANCE 20" - "Setting spatial filter to 176141.752508 583554.752508 340939.247492 748309.247492" Changing the "TOLERANCE" affects the spatial filter as expected but ... I have "TOLERANCEUNITS pixels" so the difference in the two spacial filters above should be minimal. The actual difference is 82275 metres (51 miles or 44 nautical miles approx) added on both the x and y axis. TOLERANCE UNITS can be [pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd] "feet" works approximately "inches" works pretty accurately "kilometers" accurately "meters" works accurately "miles" works accurately I never checked "nauticalmiles" or "dd" (don't know what that is!) Could this be a Mapserver bug with "pixels"? Anyway, back to the subject ... You wrote: ------- Omitting the geometry column CONNECTION 'ODBC:GEO,GEOPOINTS' and renaming the table GEOMETRY_COLUMNS in the MDB, ------- I'm not clear on whether or not you had the GEOMETRY_COLUMNS table working prior to you renaming it. If you have an access database with a working GEOMETRY_COLUMNS table then I would be very grateful if you could detail the structure for me. I have never had this working in 6.0.2 and I have never used this type of connection with previous versions. That's the reason why I am not sure if it's something I'm doing or maybe a buggy bit of code in either Mapserver or GDAL ODBC RDBMS. There's another issue with this type of connection: If I create indexes on the XMIN, YMIN, XMAX, YMAX columns, as would be reasonable given that they're being searched, I get an empty response as follows but no error in the error log other than "Returning MS_DONE (no more shapes)": missing Many thanks. Regards, Donald -----Original Message----- From: Arnd Wippermann [mailto:arnd.wippermann at web.de] Sent: 02 March 2012 17:09 To: 'Donald Kerr' Cc: mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables Hi, It seems, that the table GEOMETRY_COLUMNS is not used, if the geometry column is declared like CONNECTION 'ODBC:GEO,GEOPOINTS(theGeom)' Omitting the geometry column CONNECTION 'ODBC:GEO,GEOPOINTS' and renaming the table GEOMETRY_COLUMNS in the MDB, gets a different response for MapServer 5.6.1 and 6.0.1. MapServer 5.6.1 raises an error OGR error. Pointer 'hGeom' is NULL in 'OGR_G_GetGeometryType'. MapServer 6.0.1 loops through all features Rejecting feature (shapeid = 511, tileid=0) of incompatible type for this layer and returns an empty result To get the MapServer request use DEBUG in the mapfile CONFIG "MS_ERRORFILE" "GEOPOINTS.log" DEBUG 5 #on map and layer level Then you should get a likewise entry [Fri Mar 02 17:20:31 2012].156000 msOGRFileWhichShapes: Setting spatial filter to 2577984.190625 5679829.870625 2579058.409375 5680904.089375 Funny thing with MapServer 6.0.x spatial filter used to request the features in the logfile is much larger (5843.071787m on every side) than the BBOX from the request, what results also in a larger feature set. MapServer 5.6.1 uses a spatial filter the same as the BBOX from the request and the response shows only features for this extent. Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Donald Kerr Gesendet: Donnerstag, 1. M?rz 2012 23:49 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables Hi List, I have a point layer set up for WFS requests that connects to a Microsoft Access database with two tables structured as follows: Table: GEOMETRY_COLUMNS Fields: F_TABLE_NAME F_GEOMETRY_COLUMN GEOMETRY_TYPE SRID Values: MyData geom POINT 27700 Table: MyData (Contains about 8,000 records) Fields: UniqueID NameStr Geom XMIN YMIN XMAX YMAX Values: 1 Smiths POINT(265377 665516) 265377 665516 265377 665516 In my layer, I have: CONNECTIONTYPE OGR CONNECTION "ODBC:overlays,FullOIs(geom)" DATA "FullOIs" A GetFeature request works well and quite speedily so I think that the the query is run against the database is using the XMIN, YMIN, XMAX and YMAX columns to restrict the data returned. During debugging, the following query appeared in the response as recorded by Firebug in Firefox but I can't replicate that (if anyone can tell me how to confirm that the BBox is being used as follows that would be appreciated): SELECT * FROM MyData WHERE XMAX > 176077.07205091 AND XMIN < 340988.92794909 AND YMAX > 583498.46091313 AND YMIN < 748311.53908687 The problem that I have relates to the GEOMETRY_COLUMNS table which I know is not being used. If I remove the geometry column from the connection string, i.e. change CONNECTION "ODBC:overlays,FullOIs(geom)" to CONNECTION "ODBC:overlays,FullOIs" - remove the word "(geom), it does not find the geometry column from the GEOMETRY_COLUMNS table. It would appear that this table is being completely ignored. I have tried all sorts of combinations and field names and have also created a SPATIAL_REF_SYS table with values that I use in a working PostGIS database to no avail. I previously used an OVF file but I think that may be limited to point layers whereas, when I get this working as I want to, I would like to extend this type of connection to line and polygon layers. Can anyone advise please? Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pcreso at pcreso.com Fri Mar 2 11:10:43 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 2 Mar 2012 11:10:43 -0800 (PST) Subject: [mapserver-users] Setup advice please? In-Reply-To: Message-ID: <1330715443.23039.YahooMailClassic@web160703.mail.bf1.yahoo.com> Hi, Hopefully someone here can help. I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service. We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static. I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use. I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used. Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with. Thanks, ?? Brent Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From fruitwerks at gmail.com Fri Mar 2 11:40:41 2012 From: fruitwerks at gmail.com (Corey Carpenter) Date: Fri, 2 Mar 2012 13:40:41 -0600 Subject: [mapserver-users] Setup advice please? In-Reply-To: <1330715443.23039.YahooMailClassic@web160703.mail.bf1.yahoo.com> References: <1330715443.23039.YahooMailClassic@web160703.mail.bf1.yahoo.com> Message-ID: Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request. I have used tilecache and other methods, but I have no experience with mapcache. On Fri, Mar 2, 2012 at 1:10 PM, wrote: > Hi, > > Hopefully someone here can help. > > I have about 50Gb of high resolution aerial photos (geotiffs) to set up as > a cached WMS service. > > We have a mapserver setup ready to use, with backups, etc. already sorted. > The dataset is competely static. > > I'd like to set up MapProxy or Tilecache as a tiled WMS service for an > OpenLayers front end, and possible other public use. > > I'm happy with a dynamically populated cache, rather than a pre-filled > one, so the cache is built up as it is used. > > Can anyone experienced in this area suggest what sort of time is > reasonable to expect a competent team to set this up in a professional way, > with reasonable supporting docs, etc? Remembering we have a supported > server to work with. > > It has been asked for by a small local environmental interest group with > zero funds, and I need to get a reasonable commercial cost for such an > exercise to start with. > > Thanks, > > Brent Wood > > _______________________________________________ > 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 pcreso at pcreso.com Fri Mar 2 12:09:46 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 2 Mar 2012 12:09:46 -0800 (PST) Subject: [mapserver-users] Setup advice please? In-Reply-To: Message-ID: <1330718986.80595.YahooMailClassic@web160703.mail.bf1.yahoo.com> Hi Corey, Thanks for the suggestion. At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache? are not, still being under development. I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform. Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install. Thanks, ? Brent Wood --- On Sat, 3/3/12, Corey Carpenter wrote: From: Corey Carpenter Subject: Re: [mapserver-users] Setup advice please? To: pcreso at pcreso.com Cc: mapserver-users at lists.osgeo.org Date: Saturday, March 3, 2012, 8:40 AM Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request. I have used tilecache and other methods, but I have no experience with mapcache. On Fri, Mar 2, 2012 at 1:10 PM, wrote: Hi, Hopefully someone here can help. I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service. We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static. I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use. I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used. Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with. Thanks, ?? Brent Wood _______________________________________________ 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 arnd.wippermann at web.de Fri Mar 2 12:50:41 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Fri, 2 Mar 2012 21:50:41 +0100 Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables In-Reply-To: <720EE0A964084B7589BC73B52235897A@DELLM4500> References: <06A382BFD46C45CBBFECBE50A09ECF23@pcawh2> <720EE0A964084B7589BC73B52235897A@DELLM4500> Message-ID: Hi, i can confirm, that TOLERANCE and TOLERANCEUNITS changes the spatial filter MapServer 6.0.x applies. MapServer 5.6.1 takes no notice of that. BBOX and applied spatial filter are the same. Because I have small datasets (~500-1000 rows), I haven't noticed the strange behaviour of Version 6. Below some combinations I have tested to get an idea how to configure ogr ODBC. 1-3 are OK, 4 fails. 1 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' DATA GEOPOINTS no table GEOMETRY_COLUMNS in MDB 2 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS' #DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB 3 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB 1-3 correct results 4 ############################################### CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' #DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB !!! this fails :: OGR error. GetLayer(GEOPOINTS(POSITION)) failed ... ############################################### To check, if the spatial filter is used to get the data from the Access MDB, it's possible under Windows to log the ODBC connection. That are the interesting parts SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns SELECT * FROM GEOPOINTS WHERE XMAX > 2571258.49071369 AND XMIN < 2586698.54053631 AND YMAX > 5673184.27196369 AND YMIN < 5687253.22803631 The spatial filter is used, if the fields XMIN, YMIN, XMAX and YMAX in the queried table exists. The structure of my access tables are the same as yours. If your ODBC connection not working, it's possibly an issue with setting the DNS. Arnd -----Urspr?ngliche Nachricht----- Von: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Gesendet: Freitag, 2. M?rz 2012 19:55 An: 'Arnd Wippermann' Cc: mapserver-users at lists.osgeo.org Betreff: RE: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables Arnd, I haven't been testing on 5.6.1 but have finally got around to upgrading to 6.0.2 where I noticed some issues with a point layer WFS using ovf files to connect to a Microsoft Access database. I too noticed the spatial filter being much larger than that requested which is the reason why I started looking at connecting in a different way. No matter what I did, all 8,000 records in my database were returned. I have tested both connection types again and the logs show that the correct spacial filter is being applied. I was tearing my hair out with this one but I know how I sorted it: That particular layer had "TOLERANCE 20". I changed that to "TOLERANCE 0" and the correct spacial filter was applied: "TOLERANCE 0" - "Setting spatial filter to 258416.000000 665829.000000 258665.000000 666035.000000" "TOLERANCE 20" - "Setting spatial filter to 176141.752508 583554.752508 340939.247492 748309.247492" Changing the "TOLERANCE" affects the spatial filter as expected but ... I have "TOLERANCEUNITS pixels" so the difference in the two spacial filters above should be minimal. The actual difference is 82275 metres (51 miles or 44 nautical miles approx) added on both the x and y axis. TOLERANCE UNITS can be [pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd] "feet" works approximately "inches" works pretty accurately "kilometers" accurately "meters" works accurately "miles" works accurately I never checked "nauticalmiles" or "dd" (don't know what that is!) Could this be a Mapserver bug with "pixels"? Anyway, back to the subject ... You wrote: ------- Omitting the geometry column CONNECTION 'ODBC:GEO,GEOPOINTS' and renaming the table GEOMETRY_COLUMNS in the MDB, ------- I'm not clear on whether or not you had the GEOMETRY_COLUMNS table working prior to you renaming it. If you have an access database with a working GEOMETRY_COLUMNS table then I would be very grateful if you could detail the structure for me. I have never had this working in 6.0.2 and I have never used this type of connection with previous versions. That's the reason why I am not sure if it's something I'm doing or maybe a buggy bit of code in either Mapserver or GDAL ODBC RDBMS. There's another issue with this type of connection: If I create indexes on the XMIN, YMIN, XMAX, YMAX columns, as would be reasonable given that they're being searched, I get an empty response as follows but no error in the error log other than "Returning MS_DONE (no more shapes)": missing Many thanks. Regards, Donald From donald.kerr at dkerr.co.uk Fri Mar 2 14:06:42 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 2 Mar 2012 22:06:42 -0000 Subject: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables In-Reply-To: Message-ID: <277AE04D44E34279BC4528EE059D9AF3@DELLM4500> Arnd, Aha! Combination 2 works for me too and this is exactly what I'm looking for. :) CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS' #DATA GEOPOINTS If I comment out the DATA keyword it uses the GEOMETRY_COLUMNS table correctly. I must have tried 999,999 combinations over the last two days and the 1,000,000th one worked! Thank you very much for your help and time. Regards, Donald -----Original Message----- From: Arnd Wippermann [mailto:arnd.wippermann at web.de] Sent: 02 March 2012 20:51 To: 'Donald Kerr' Cc: mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables Hi, i can confirm, that TOLERANCE and TOLERANCEUNITS changes the spatial filter MapServer 6.0.x applies. MapServer 5.6.1 takes no notice of that. BBOX and applied spatial filter are the same. Because I have small datasets (~500-1000 rows), I haven't noticed the strange behaviour of Version 6. Below some combinations I have tested to get an idea how to configure ogr ODBC. 1-3 are OK, 4 fails. 1 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' DATA GEOPOINTS no table GEOMETRY_COLUMNS in MDB 2 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS' #DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB 3 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB 1-3 correct results 4 ############################################### CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' #DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB !!! this fails :: OGR error. GetLayer(GEOPOINTS(POSITION)) failed ... ############################################### To check, if the spatial filter is used to get the data from the Access MDB, it's possible under Windows to log the ODBC connection. That are the interesting parts SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns SELECT * FROM GEOPOINTS WHERE XMAX > 2571258.49071369 AND XMIN < 2586698.54053631 AND YMAX > 5673184.27196369 AND YMIN < 5687253.22803631 The spatial filter is used, if the fields XMIN, YMIN, XMAX and YMAX in the queried table exists. The structure of my access tables are the same as yours. If your ODBC connection not working, it's possibly an issue with setting the DNS. Arnd -----Urspr?ngliche Nachricht----- Von: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Gesendet: Freitag, 2. M?rz 2012 19:55 An: 'Arnd Wippermann' Cc: mapserver-users at lists.osgeo.org Betreff: RE: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables Arnd, I haven't been testing on 5.6.1 but have finally got around to upgrading to 6.0.2 where I noticed some issues with a point layer WFS using ovf files to connect to a Microsoft Access database. I too noticed the spatial filter being much larger than that requested which is the reason why I started looking at connecting in a different way. No matter what I did, all 8,000 records in my database were returned. I have tested both connection types again and the logs show that the correct spacial filter is being applied. I was tearing my hair out with this one but I know how I sorted it: That particular layer had "TOLERANCE 20". I changed that to "TOLERANCE 0" and the correct spacial filter was applied: "TOLERANCE 0" - "Setting spatial filter to 258416.000000 665829.000000 258665.000000 666035.000000" "TOLERANCE 20" - "Setting spatial filter to 176141.752508 583554.752508 340939.247492 748309.247492" Changing the "TOLERANCE" affects the spatial filter as expected but ... I have "TOLERANCEUNITS pixels" so the difference in the two spacial filters above should be minimal. The actual difference is 82275 metres (51 miles or 44 nautical miles approx) added on both the x and y axis. TOLERANCE UNITS can be [pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd] "feet" works approximately "inches" works pretty accurately "kilometers" accurately "meters" works accurately "miles" works accurately I never checked "nauticalmiles" or "dd" (don't know what that is!) Could this be a Mapserver bug with "pixels"? Anyway, back to the subject ... You wrote: ------- Omitting the geometry column CONNECTION 'ODBC:GEO,GEOPOINTS' and renaming the table GEOMETRY_COLUMNS in the MDB, ------- I'm not clear on whether or not you had the GEOMETRY_COLUMNS table working prior to you renaming it. If you have an access database with a working GEOMETRY_COLUMNS table then I would be very grateful if you could detail the structure for me. I have never had this working in 6.0.2 and I have never used this type of connection with previous versions. That's the reason why I am not sure if it's something I'm doing or maybe a buggy bit of code in either Mapserver or GDAL ODBC RDBMS. There's another issue with this type of connection: If I create indexes on the XMIN, YMIN, XMAX, YMAX columns, as would be reasonable given that they're being searched, I get an empty response as follows but no error in the error log other than "Returning MS_DONE (no more shapes)": missing Many thanks. Regards, Donald -----Original Message----- From: Arnd Wippermann [mailto:arnd.wippermann at web.de] Sent: 02 March 2012 20:51 To: 'Donald Kerr' Cc: mapserver-users at lists.osgeo.org Subject: AW: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables Hi, i can confirm, that TOLERANCE and TOLERANCEUNITS changes the spatial filter MapServer 6.0.x applies. MapServer 5.6.1 takes no notice of that. BBOX and applied spatial filter are the same. Because I have small datasets (~500-1000 rows), I haven't noticed the strange behaviour of Version 6. Below some combinations I have tested to get an idea how to configure ogr ODBC. 1-3 are OK, 4 fails. 1 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' DATA GEOPOINTS no table GEOMETRY_COLUMNS in MDB 2 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS' #DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB 3 ############################################# CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB 1-3 correct results 4 ############################################### CONNECTIONTYPE OGR CONNECTION 'ODBC:GEOOBJEKT,GEOPOINTS(POSITION)' #DATA GEOPOINTS table GEOMETRY_COLUMNS in MDB !!! this fails :: OGR error. GetLayer(GEOPOINTS(POSITION)) failed ... ############################################### To check, if the spatial filter is used to get the data from the Access MDB, it's possible under Windows to log the ODBC connection. That are the interesting parts SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns SELECT * FROM GEOPOINTS WHERE XMAX > 2571258.49071369 AND XMIN < 2586698.54053631 AND YMAX > 5673184.27196369 AND YMIN < 5687253.22803631 The spatial filter is used, if the fields XMIN, YMIN, XMAX and YMAX in the queried table exists. The structure of my access tables are the same as yours. If your ODBC connection not working, it's possibly an issue with setting the DNS. Arnd -----Urspr?ngliche Nachricht----- Von: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Gesendet: Freitag, 2. M?rz 2012 19:55 An: 'Arnd Wippermann' Cc: mapserver-users at lists.osgeo.org Betreff: RE: [mapserver-users] Mapserver WFS - ODBC RDBMS - GEOMETRY_COLUMNS andSPATIAL_REF_SYS Tables Arnd, I haven't been testing on 5.6.1 but have finally got around to upgrading to 6.0.2 where I noticed some issues with a point layer WFS using ovf files to connect to a Microsoft Access database. I too noticed the spatial filter being much larger than that requested which is the reason why I started looking at connecting in a different way. No matter what I did, all 8,000 records in my database were returned. I have tested both connection types again and the logs show that the correct spacial filter is being applied. I was tearing my hair out with this one but I know how I sorted it: That particular layer had "TOLERANCE 20". I changed that to "TOLERANCE 0" and the correct spacial filter was applied: "TOLERANCE 0" - "Setting spatial filter to 258416.000000 665829.000000 258665.000000 666035.000000" "TOLERANCE 20" - "Setting spatial filter to 176141.752508 583554.752508 340939.247492 748309.247492" Changing the "TOLERANCE" affects the spatial filter as expected but ... I have "TOLERANCEUNITS pixels" so the difference in the two spacial filters above should be minimal. The actual difference is 82275 metres (51 miles or 44 nautical miles approx) added on both the x and y axis. TOLERANCE UNITS can be [pixels|feet|inches|kilometers|meters|miles|nauticalmiles|dd] "feet" works approximately "inches" works pretty accurately "kilometers" accurately "meters" works accurately "miles" works accurately I never checked "nauticalmiles" or "dd" (don't know what that is!) Could this be a Mapserver bug with "pixels"? Anyway, back to the subject ... You wrote: ------- Omitting the geometry column CONNECTION 'ODBC:GEO,GEOPOINTS' and renaming the table GEOMETRY_COLUMNS in the MDB, ------- I'm not clear on whether or not you had the GEOMETRY_COLUMNS table working prior to you renaming it. If you have an access database with a working GEOMETRY_COLUMNS table then I would be very grateful if you could detail the structure for me. I have never had this working in 6.0.2 and I have never used this type of connection with previous versions. That's the reason why I am not sure if it's something I'm doing or maybe a buggy bit of code in either Mapserver or GDAL ODBC RDBMS. There's another issue with this type of connection: If I create indexes on the XMIN, YMIN, XMAX, YMAX columns, as would be reasonable given that they're being searched, I get an empty response as follows but no error in the error log other than "Returning MS_DONE (no more shapes)": missing Many thanks. Regards, Donald From Steve.Lime at state.mn.us Fri Mar 2 16:15:26 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sat, 3 Mar 2012 00:15:26 +0000 Subject: [mapserver-users] Setup advice please? In-Reply-To: <1330718986.80595.YahooMailClassic@web160703.mail.bf1.yahoo.com> References: , <1330718986.80595.YahooMailClassic@web160703.mail.bf1.yahoo.com> Message-ID: MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com] Sent: Friday, March 02, 2012 2:09 PM To: Corey Carpenter Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Setup advice please? Hi Corey, Thanks for the suggestion. At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache are not, still being under development. I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform. Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install. Thanks, Brent Wood --- On Sat, 3/3/12, Corey Carpenter wrote: From: Corey Carpenter Subject: Re: [mapserver-users] Setup advice please? To: pcreso at pcreso.com Cc: mapserver-users at lists.osgeo.org Date: Saturday, March 3, 2012, 8:40 AM Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request. I have used tilecache and other methods, but I have no experience with mapcache. On Fri, Mar 2, 2012 at 1:10 PM, > wrote: Hi, Hopefully someone here can help. I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service. We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static. I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use. I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used. Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with. Thanks, Brent Wood _______________________________________________ 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 pcreso at pcreso.com Fri Mar 2 17:26:21 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 2 Mar 2012 17:26:21 -0800 (PST) Subject: [mapserver-users] Setup advice please? In-Reply-To: Message-ID: <1330737981.98611.YahooMailClassic@web160705.mail.bf1.yahoo.com> Cheers Steve. I don't think this changes the answer much... whether mapcache, tilecache or mapproxy is used, the time to set up a working server with 50Gb of geotiffs I would have thought would be pretty similar. So: can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. Thanks, ?? Brent Wood --- On Sat, 3/3/12, Lime, Steve D (DNR) wrote: From: Lime, Steve D (DNR) Subject: RE: [mapserver-users] Setup advice please? To: "pcreso at pcreso.com" , "Corey Carpenter" Cc: "mapserver-users at lists.osgeo.org" Date: Saturday, March 3, 2012, 1:15 PM MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com] Sent: Friday, March 02, 2012 2:09 PM To: Corey Carpenter Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Setup advice please? Hi Corey, Thanks for the suggestion. At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache? are not, still being under development. I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform. Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install. Thanks, ? Brent Wood --- On Sat, 3/3/12, Corey Carpenter wrote: From: Corey Carpenter Subject: Re: [mapserver-users] Setup advice please? To: pcreso at pcreso.com Cc: mapserver-users at lists.osgeo.org Date: Saturday, March 3, 2012, 8:40 AM Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request. I have used tilecache and other methods, but I have no experience with mapcache. On Fri, Mar 2, 2012 at 1:10 PM, > wrote: Hi, Hopefully someone here can help. I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service. We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static. I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use. I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used. Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with. Thanks, ???Brent Wood _______________________________________________ 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 punk.kish at gmail.com Fri Mar 2 18:15:14 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri, 2 Mar 2012 20:15:14 -0600 Subject: [mapserver-users] Setup advice please? In-Reply-To: <1330737981.98611.YahooMailClassic@web160705.mail.bf1.yahoo.com> References: <1330737981.98611.YahooMailClassic@web160705.mail.bf1.yahoo.com> Message-ID: <55FF3742-B6B2-4F58-A250-509DE8DD3905@gmail.com> Just walked into this conversation so my response may be half-assed, but... On Mar 2, 2012, at 7:26 PM, pcreso at pcreso.com wrote: > Cheers Steve. > > I don't think this changes the answer much... whether mapcache, tilecache or mapproxy is used, the time to set up a working server with 50Gb of geotiffs I would have thought would be pretty similar. > > So: can anyone experienced in this area suggest what sort of time is > reasonable to expect a competent team to set this up in a professional > way, with reasonable supporting docs, etc? Remembering we have a > supported server to work with. What do you mean by "time... to set up" a server? Fwiw, I downloaded, configured, and had Tilecache working in less than 30 mins. The cache is not pre-seeded. It builds up as it goes. > > Thanks, > > Brent Wood > > --- On Sat, 3/3/12, Lime, Steve D (DNR) wrote: > > From: Lime, Steve D (DNR) > Subject: RE: [mapserver-users] Setup advice please? > To: "pcreso at pcreso.com" , "Corey Carpenter" > Cc: "mapserver-users at lists.osgeo.org" > Date: Saturday, March 3, 2012, 1:15 PM > > MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com] > Sent: Friday, March 02, 2012 2:09 PM > To: Corey Carpenter > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Setup advice please? > > Hi Corey, > > Thanks for the suggestion. > > At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache are not, still being under development. > > I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform. > > Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install. > > > Thanks, > > Brent Wood > > --- On Sat, 3/3/12, Corey Carpenter wrote: > > From: Corey Carpenter > Subject: Re: [mapserver-users] Setup advice please? > To: pcreso at pcreso.com > Cc: mapserver-users at lists.osgeo.org > Date: Saturday, March 3, 2012, 8:40 AM > > Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request. > > I have used tilecache and other methods, but I have no experience with mapcache. > > On Fri, Mar 2, 2012 at 1:10 PM, > wrote: > Hi, > > Hopefully someone here can help. > > I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service. > > We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static. > > I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use. > > I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used. > > Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. > > It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with. > > Thanks, > > Brent Wood > > .. From pcreso at pcreso.com Fri Mar 2 19:22:10 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 2 Mar 2012 19:22:10 -0800 (PST) Subject: [mapserver-users] Setup advice please? In-Reply-To: <55FF3742-B6B2-4F58-A250-509DE8DD3905@gmail.com> Message-ID: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com> Hi Puneet, Yep, a simple one off 50Gb image dataset to be configured & then the cache populated dynamically. I'd prefer MapProxy, or Mapcache, over Tilecache, to be able to support GetFeature requests, but in this instance that will not be needed anyway. That's about my take on it, maybe a couple of hours, but I've just been quoted 3 days by a support team to do this, at NZ$170/hr. (current exch rate is around .77, so maybe $2600US??? for the job) I'm not a professional at this, but do such things as a prototyping & playing exercise at home... & a formal installation will need documenting, etc, to a production server standard, so perhaps a few more hours, but that cost seems excessive. Hence my question here, to get an "expert" opinion of what such a setup should cost. Ideally a few such opinions to give me a robust sample size to go back with :-) I've also asked another provider for a cost. My guess is they will be considerably cheaper. --- On Sat, 3/3/12, Puneet Kishor wrote: From: Puneet Kishor Subject: Re: [mapserver-users] Setup advice please? To: "mapserver" Date: Saturday, March 3, 2012, 3:15 PM Just walked into this conversation so my response may be half-assed, but... On Mar 2, 2012, at 7:26 PM, pcreso at pcreso.com wrote: > Cheers Steve. > > I don't think this changes the answer much... whether mapcache, tilecache or mapproxy is used, the time to set up a working server with 50Gb of geotiffs I would have thought would be pretty similar. > > So: can anyone experienced in this area suggest what sort of time is > reasonable to expect a competent team to set this up in a professional > way, with reasonable supporting docs, etc? Remembering we have a > supported server to work with. What do you mean by "time... to set up" a server? Fwiw, I downloaded, configured, and had Tilecache working in less than 30 mins. The cache is not pre-seeded. It builds up as it goes. > > Thanks, > >? ? Brent Wood > > --- On Sat, 3/3/12, Lime, Steve D (DNR) wrote: > > From: Lime, Steve D (DNR) > Subject: RE: [mapserver-users] Setup advice please? > To: "pcreso at pcreso.com" , "Corey Carpenter" > Cc: "mapserver-users at lists.osgeo.org" > Date: Saturday, March 3, 2012, 1:15 PM > > MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com] > Sent: Friday, March 02, 2012 2:09 PM > To: Corey Carpenter > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Setup advice please? > > Hi Corey, > > Thanks for the suggestion. > > At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache? are not, still being under development. > > I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform. > > Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install. > > > Thanks, > >???Brent Wood > > --- On Sat, 3/3/12, Corey Carpenter wrote: > > From: Corey Carpenter > Subject: Re: [mapserver-users] Setup advice please? > To: pcreso at pcreso.com > Cc: mapserver-users at lists.osgeo.org > Date: Saturday, March 3, 2012, 8:40 AM > > Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request. > > I have used tilecache and other methods, but I have no experience with mapcache. > > On Fri, Mar 2, 2012 at 1:10 PM, > wrote: > Hi, > > Hopefully someone here can help. > > I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service. > > We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static. > > I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use. > > I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used. > > Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. > > It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with. > > Thanks, > >? ? Brent Wood > > .. _______________________________________________ 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 punk.kish at gmail.com Fri Mar 2 19:31:56 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri, 2 Mar 2012 21:31:56 -0600 Subject: [mapserver-users] Setup advice please? In-Reply-To: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com> References: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com> Message-ID: <762062BA-D91B-4EE8-8C8E-C8F43AC3659C@gmail.com> It is my "expert" opinion that, with documentation and all, tilecache will take 35 mins. Any more and either the person doesn't know what he is doing, or is hoping to take the client for a ride. On Mar 2, 2012, at 9:22 PM, pcreso at pcreso.com wrote: > Hi Puneet, > > Yep, a simple one off 50Gb image dataset to be configured & then the cache populated dynamically. I'd prefer MapProxy, or Mapcache, over Tilecache, to be able to support GetFeature requests, but in this instance that will not be needed anyway. > > That's about my take on it, maybe a couple of hours, but I've just been quoted 3 days by a support team to do this, at NZ$170/hr. (current exch rate is around .77, so maybe $2600US??? for the job) > > I'm not a professional at this, but do such things as a prototyping & playing exercise at home... & a formal installation will need documenting, etc, to a production server standard, so perhaps a few more hours, but that cost seems excessive. > > Hence my question here, to get an "expert" opinion of what such a setup should cost. Ideally a few such opinions to give me a robust sample size to go back with :-) > > I've also asked another provider for a cost. My guess is they will be considerably cheaper. > > > > --- On Sat, 3/3/12, Puneet Kishor wrote: > > From: Puneet Kishor > Subject: Re: [mapserver-users] Setup advice please? > To: "mapserver" > Date: Saturday, March 3, 2012, 3:15 PM > > Just walked into this conversation so my response may be half-assed, but... > > On Mar 2, 2012, at 7:26 PM, pcreso at pcreso.com wrote: > > > Cheers Steve. > > > > I don't think this changes the answer much... whether mapcache, tilecache or mapproxy is used, the time to set up a working server with 50Gb of geotiffs I would have thought would be pretty similar. > > > > So: can anyone experienced in this area suggest what sort of time is > > reasonable to expect a competent team to set this up in a professional > > way, with reasonable supporting docs, etc? Remembering we have a > > supported server to work with. > > > > What do you mean by "time... to set up" a server? Fwiw, I downloaded, configured, and had Tilecache working in less than 30 mins. The cache is not pre-seeded. It builds up as it goes. > > > > > > > > > > Thanks, > > > > Brent Wood > > > > --- On Sat, 3/3/12, Lime, Steve D (DNR) wrote: > > > > From: Lime, Steve D (DNR) > > Subject: RE: [mapserver-users] Setup advice please? > > To: "pcreso at pcreso.com" , "Corey Carpenter" > > Cc: "mapserver-users at lists.osgeo.org" > > Date: Saturday, March 3, 2012, 1:15 PM > > > > MapServer 6.2 isn't ready for production use, however, MapCache is. I've been pairing it and 6.0.2 for production use for months... Just another opinion. -Steve > > ________________________________________ > > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of pcreso at pcreso.com [pcreso at pcreso.com] > > Sent: Friday, March 02, 2012 2:09 PM > > To: Corey Carpenter > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] Setup advice please? > > > > Hi Corey, > > > > Thanks for the suggestion. > > > > At this stage the requirement is for a stable production system. Mapserver 6.2 & mapcache are not, still being under development. > > > > I realise that this does not preclude the software running robustly, but it will not be an acceptable solution in this case. Mapserver 6.01, as the latest stable release, is the required platform. > > > > Hence my suggestion of Tilecache & MapProxy as suitable applications, which are available as binary packages ready to install. > > > > > > Thanks, > > > > Brent Wood > > > > --- On Sat, 3/3/12, Corey Carpenter wrote: > > > > From: Corey Carpenter > > Subject: Re: [mapserver-users] Setup advice please? > > To: pcreso at pcreso.com > > Cc: mapserver-users at lists.osgeo.org > > Date: Saturday, March 3, 2012, 8:40 AM > > > > Unless I read your question incorrectly, this is the main function of mapcache. You will need to use a fairly new version of mapserver 6.2 / trunk. You will be able to seed your cache, so the tiles you define are available on the first request. > > > > I have used tilecache and other methods, but I have no experience with mapcache. > > > > On Fri, Mar 2, 2012 at 1:10 PM, > wrote: > > Hi, > > > > Hopefully someone here can help. > > > > I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service. > > > > We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static. > > > > I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use. > > > > I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used. > > > > Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. > > > > It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with. > > > > Thanks, > > > > Brent Wood > > > > .. > > _______________________________________________ > 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 Sat Mar 3 02:08:35 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 3 Mar 2012 10:08:35 +0000 Subject: [mapserver-users] RGB imagemode creates RGBA tiffs Message-ID: <84446DEF76453C439E9E97E438E13A63082B4A@suutari.haapa.mmm.fi> Hi, I have defined a GeoTIFF outputformat as OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/gtiff" IMAGEMODE RGB EXTENSION "gtif" END However, the resulting tiff contains also alpha channel: Band 1 Block=2120x1 Type=Byte, ColorInterp=Red Mask Flags: PER_DATASET ALPHA Band 2 Block=2120x1 Type=Byte, ColorInterp=Green Mask Flags: PER_DATASET ALPHA Band 3 Block=2120x1 Type=Byte, ColorInterp=Blue Mask Flags: PER_DATASET ALPHA Band 4 Block=2120x1 Type=Byte, ColorInterp=Alpha Is there something wrong in my outputformat? Output comes from Mapserver 6.0 (Ubuntu). -Jukka Rahkonen- From teknocreator at gmail.com Sun Mar 4 07:19:41 2012 From: teknocreator at gmail.com (teknocreator) Date: Sun, 4 Mar 2012 07:19:41 -0800 (PST) Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <1330874381473-4545262.post@n6.nabble.com> Kathleen, I've searched through the lists and on the web for an answer to your issue as I have it too only with GRIB data. The MapServer docs seem to indicate that variable substitution won't work for the PROCESSING directive. Therefore I tried several variations "Changing map file parameters via a form or a URL". What should've worked here considering that part of the documentation is to add this to the GetMap request string: map[layer].processing[0]="BANDS=01" because it was the first PROCESSING directive for my layer and it needs a string for the directive. But, I received an msloadLayer error. I tried a few variations but all ended up with the same error. I've seen folks have a similar issue with this in the MS Users list with no solution at present. While what Puneet wrote may be a solution for you and possibly our GRIB data as well, it seems like a much more complicated way just to get at a particular band in the file. I do see why this has been done as NetCDF does come in many flavors and there's the possibility of 4 dimensions in the file. There are many links on using WCS with NetCDF, a good number coming from UCAR. Still, this looks like a possible code problem where the ability to change map file parameter via a URL does not work in this case or else the ability to change BANDS needs to be added to variable substitution. Hopefully, someone from MapServer can help here. Looks like I'm going to be investigating WCS, though. I'll definitely be checking back on this one. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcreso at pcreso.com Sun Mar 4 10:34:10 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sun, 4 Mar 2012 10:34:10 -0800 (PST) Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: <1330874381473-4545262.post@n6.nabble.com> Message-ID: <1330886050.37464.YahooMailClassic@web160702.mail.bf1.yahoo.com> Hi, One advantage of having mapserver run as a cgi, is it is relatively easy to have a cgi script wrapper to enable such variable substitution by generating a modified mapfile then invoking mapserver to use this. Not necessarily the most efficient way, but very effective. A simple example would read the appropriate substring from the URL querystring, create a new mapfile with something like: cat | sed 's///' > & fire off mapserver with the new mapfile Maybe not ideal for lots of concurrent users, but adequate for some circumstances, & may work for you? Cheers, ?? Brent Wood --- On Mon, 3/5/12, teknocreator wrote: From: teknocreator Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] To: mapserver-users at lists.osgeo.org Date: Monday, March 5, 2012, 4:19 AM Kathleen, I've searched through the lists and on the web for an answer to your issue as I have it too only with GRIB data.? The MapServer docs seem to indicate that variable substitution won't work for the PROCESSING directive. Therefore I tried several variations "Changing map file parameters via a form or a URL".? What should've worked here considering that part of the documentation is to add this to the GetMap request string: map[layer].processing[0]="BANDS=01" because it was the first PROCESSING directive for my layer and it needs a string for the directive.? But, I received an msloadLayer error.? I tried a few variations but all ended up with the same error.? I've seen folks have a similar issue with this in the MS Users list with no solution at present. While what Puneet wrote may be a solution for you and possibly our GRIB data as well, it seems like a much more complicated way just to get at a particular band in the file.? I do see why this has been done as NetCDF does come in many flavors and there's the possibility of 4 dimensions in the file.? There are many links on using WCS with NetCDF, a good number coming from UCAR. Still, this looks like a possible code problem where the ability to change map file parameter via a URL does not work in this case or else the ability to change BANDS needs to be added to variable substitution.? Hopefully, someone from MapServer can help here.? Looks like I'm going to be investigating WCS, though.? I'll definitely be checking back on this one. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rainer at silverstripe.com Sun Mar 4 12:07:19 2012 From: rainer at silverstripe.com (Rainer Spittel) Date: Mon, 5 Mar 2012 09:07:19 +1300 Subject: [mapserver-users] Setup advice please? In-Reply-To: <762062BA-D91B-4EE8-8C8E-C8F43AC3659C@gmail.com> References: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com> <762062BA-D91B-4EE8-8C8E-C8F43AC3659C@gmail.com> Message-ID: Hi Brent, The setup of the tool and connecting to the data source, i.e. to an UMN Mapserver layer, does not take long. I have worked with tileCache and GeoWebCache which is relative straight forward. But you have to consider the dependencies you introduce within your environment, i.e. do you want to introduce Tomcat? I don't have experience with the other tools you refer to, but I assume that getting a layer ready does not take long. Based on Steve's post, I would tend a stable release of MapProxy or tileCache which connects to Mapserver. You introduce a new component to your infrastructure and need to link existing components to the new data service, I assume besides deployment, you need to do some integration testing on top of that. To get a better understanding of your requirements, I would ask you the following questions: - What is the spatial extend of the data, what the the scales you need to support? When you introduce a map-tile cache, is it important to know if the filesystem is able to deal with the amount of files you store. It sounds over-the-top but I really experienced performance problems with ext3 filesystem when I tried to create pre-cached tiles for New Zealand down to the scale 1:2000, and I also reached filesystem limitations (exceeded number of i-nodes) when I tried to pre-seed the layers 1:1000 and below. This can be managed if you don't require the layer to be seeded completely and by configuring your filesystem to accommodate that amount of files you need to store. - For your infrastructure, are you bound to a specific distribution and if so, are the tile-cache packages available? - Is the imagery data already made available via an WMS? - If not, is the imagery data prepared to meet your business and functional goals, such as performance, desired projection etc. Is the data available as a tiled base layer or is the imagery data coming from different sources and you have to merge those into one layer? I usually use gdaladdo for GeoTiffs a lot to generate overview images to improve the performance for larger scale maps. - If this is a base layer, do you need the GetFeature support? - How often does the basemap get updated? If it is a static layer which does not get updated, I wonder if a pre-seeded solution would be more efficient because you don't really have to maintain the components and use a wrapper to provide the cache tiles. Cheers, Rainer On Sat, Mar 3, 2012 at 4:31 PM, Puneet Kishor wrote: > It is my "expert" opinion that, with documentation and all, tilecache will > take 35 mins. Any more and either the person doesn't know what he is doing, > or is hoping to take the client for a ride. > > On Mar 2, 2012, at 9:22 PM, pcreso at pcreso.com wrote: > > Hi Puneet, > > Yep, a simple one off 50Gb image dataset to be configured & then the cache > populated dynamically. I'd prefer MapProxy, or Mapcache, over Tilecache, to > be able to support GetFeature requests, but in this instance that will not > be needed anyway. > > That's about my take on it, maybe a couple of hours, but I've just been > quoted 3 days by a support team to do this, at NZ$170/hr. (current exch > rate is around .77, so maybe $2600US??? for the job) > > I'm not a professional at this, but do such things as a prototyping & > playing exercise at home... & a formal installation will need documenting, > etc, to a production server standard, so perhaps a few more hours, but that > cost seems excessive. > > Hence my question here, to get an "expert" opinion of what such a setup > should cost. Ideally a few such opinions to give me a robust sample size to > go back with :-) > > I've also asked another provider for a cost. My guess is they will be > considerably cheaper. > > > > --- On *Sat, 3/3/12, Puneet Kishor * wrote: > > > From: Puneet Kishor > Subject: Re: [mapserver-users] Setup advice please? > To: "mapserver" > Date: Saturday, March 3, 2012, 3:15 PM > > Just walked into this conversation so my response may be half-assed, but... > > On Mar 2, 2012, at 7:26 PM, pcreso at pcreso.comwrote: > > > Cheers Steve. > > > > I don't think this changes the answer much... whether mapcache, > tilecache or mapproxy is used, the time to set up a working server with > 50Gb of geotiffs I would have thought would be pretty similar. > > > > So: can anyone experienced in this area suggest what sort of time is > > reasonable to expect a competent team to set this up in a professional > > way, with reasonable supporting docs, etc? Remembering we have a > > supported server to work with. > > > > What do you mean by "time... to set up" a server? Fwiw, I downloaded, > configured, and had Tilecache working in less than 30 mins. The cache is > not pre-seeded. It builds up as it goes. > > > > > > > > > > Thanks, > > > > Brent Wood > > > > --- On Sat, 3/3/12, Lime, Steve D (DNR) > > wrote: > > > > From: Lime, Steve D (DNR) > > > > Subject: RE: [mapserver-users] Setup advice please? > > To: "pcreso at pcreso.com " < > pcreso at pcreso.com >, "Corey > Carpenter" > > > > Cc: "mapserver-users at lists.osgeo.org" > > > > > Date: Saturday, March 3, 2012, 1:15 PM > > > > MapServer 6.2 isn't ready for production use, however, MapCache is. I've > been pairing it and 6.0.2 for production use for months... Just another > opinion. -Steve > > ________________________________________ > > From: mapserver-users-bounces at lists.osgeo.org[ > mapserver-users-bounces at lists.osgeo.org] > on behalf of pcreso at pcreso.com [ > pcreso at pcreso.com ] > > Sent: Friday, March 02, 2012 2:09 PM > > To: Corey Carpenter > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] Setup advice please? > > > > Hi Corey, > > > > Thanks for the suggestion. > > > > At this stage the requirement is for a stable production system. > Mapserver 6.2 & mapcache are not, still being under development. > > > > I realise that this does not preclude the software running robustly, but > it will not be an acceptable solution in this case. Mapserver 6.01, as the > latest stable release, is the required platform. > > > > Hence my suggestion of Tilecache & MapProxy as suitable applications, > which are available as binary packages ready to install. > > > > > > Thanks, > > > > Brent Wood > > > > --- On Sat, 3/3/12, Corey Carpenter > > wrote: > > > > From: Corey Carpenter > > > > Subject: Re: [mapserver-users] Setup advice please? > > To: pcreso at pcreso.com > > Cc: mapserver-users at lists.osgeo.org > > Date: Saturday, March 3, 2012, 8:40 AM > > > > Unless I read your question incorrectly, this is the main function of > mapcache. You will need to use a fairly new version of mapserver 6.2 / > trunk. You will be able to seed your cache, so the tiles you define are > available on the first request. > > > > I have used tilecache and other methods, but I have no experience with > mapcache. > > > > On Fri, Mar 2, 2012 at 1:10 PM, > >> > wrote: > > Hi, > > > > Hopefully someone here can help. > > > > I have about 50Gb of high resolution aerial photos (geotiffs) to set up > as a cached WMS service. > > > > We have a mapserver setup ready to use, with backups, etc. already > sorted. The dataset is competely static. > > > > I'd like to set up MapProxy or Tilecache as a tiled WMS service for an > OpenLayers front end, and possible other public use. > > > > I'm happy with a dynamically populated cache, rather than a pre-filled > one, so the cache is built up as it is used. > > > > Can anyone experienced in this area suggest what sort of time is > reasonable to expect a competent team to set this up in a professional way, > with reasonable supporting docs, etc? Remembering we have a supported > server to work with. > > > > It has been asked for by a small local environmental interest group with > zero funds, and I need to get a reasonable commercial cost for such an > exercise to start with. > > > > Thanks, > > > > Brent Wood > > > > .. > > _______________________________________________ > 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 aperi2007 at gmail.com Sun Mar 4 14:42:15 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 4 Mar 2012 23:42:15 +0100 Subject: [mapserver-users] Error: Failed to draw layer Message-ID: Hi, I'm try-ing to set a mapserver as a wms server. But I'm having this error: On the getMap request I have this error: (No error code was reported) The WMS vendor also reported: msDrawMap(): Image handling error. Failed to draw layer named 'idprovince2'. msOGRFileOpen(): OGR error. Error parsing OGR connection information in layer `idprovince2' My settings for layer is this: LAYER NAME "idprovince2" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR DATA "/home/..../shapefile_polygon" PROJECTION "init=epsg:3003" END METADATA 'wms_title' 'Confini Provinciali2' END CLASS NAME 'am_prov_region_am_prov' STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 103 132 169 ANTIALIAS true END LABEL POSITION auto SIZE 8 COLOR 0 0 0 TYPE truetype FONT arial END END END I try many settings, but nothing change :( Any hints is welcome, thx -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Sun Mar 4 15:54:07 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sun, 4 Mar 2012 23:54:07 +0000 Subject: [mapserver-users] Error: Failed to draw layer In-Reply-To: References: Message-ID: Why use OGR and not the native shape file driver in MapSever? What happens if you comment out the connection type? Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [aperi2007 at gmail.com] Sent: Sunday, March 04, 2012 4:42 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Error: Failed to draw layer Hi, I'm try-ing to set a mapserver as a wms server. But I'm having this error: On the getMap request I have this error: (No error code was reported) The WMS vendor also reported: msDrawMap(): Image handling error. Failed to draw layer named 'idprovince2'. msOGRFileOpen(): OGR error. Error parsing OGR connection information in layer `idprovince2' My settings for layer is this: LAYER NAME "idprovince2" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR DATA "/home/..../shapefile_polygon" PROJECTION "init=epsg:3003" END METADATA 'wms_title' 'Confini Provinciali2' END CLASS NAME 'am_prov_region_am_prov' STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 103 132 169 ANTIALIAS true END LABEL POSITION auto SIZE 8 COLOR 0 0 0 TYPE truetype FONT arial END END END I try many settings, but nothing change :( Any hints is welcome, thx -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From Jukka.Rahkonen at mmmtike.fi Mon Mar 5 00:07:11 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 5 Mar 2012 08:07:11 +0000 Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: <1330874381473-4545262.post@n6.nabble.com> References: , <1330874381473-4545262.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A63082C68@suutari.haapa.mmm.fi> Hi, It would be nice to be able to change some processing directives through variable substitution. Multichannel satellite images are one obvious use case. I have predefined a few most common settings for 7-channel Landsat images as separate mapfiles but it would more convenient and flexible to let users select the BANDS, SCALE and LUT they want. It would be useful also when some other settings would suit better for printing than those adjusted for on-screen use. Would others find it reasonable to add PROCESSING to the items which support variable substitution? -Jukka Rahkonen- teknocreator wrote: Kathleen, I've searched through the lists and on the web for an answer to your issue as I have it too only with GRIB data. The MapServer docs seem to indicate that variable substitution won't work for the PROCESSING directive. Therefore I tried several variations "Changing map file parameters via a form or a URL". What should've worked here considering that part of the documentation is to add this to the GetMap request string: map[layer].processing[0]="BANDS=01" because it was the first PROCESSING directive for my layer and it needs a string for the directive. But, I received an msloadLayer error. I tried a few variations but all ended up with the same error. I've seen folks have a similar issue with this in the MS Users list with no solution at present. While what Puneet wrote may be a solution for you and possibly our GRIB data as well, it seems like a much more complicated way just to get at a particular band in the file. I do see why this has been done as NetCDF does come in many flavors and there's the possibility of 4 dimensions in the file. There are many links on using WCS with NetCDF, a good number coming from UCAR. Still, this looks like a possible code problem where the ability to change map file parameter via a URL does not work in this case or else the ability to change BANDS needs to be added to variable substitution. Hopefully, someone from MapServer can help here. Looks like I'm going to be investigating WCS, though. I'll definitely be checking back on this one. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.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 aperi2007 at gmail.com Mon Mar 5 02:30:40 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Mon, 5 Mar 2012 11:30:40 +0100 Subject: [mapserver-users] Error: Failed to draw layer In-Reply-To: References: Message-ID: Hi Steve, thx for reply. If I comment the connectiontype it work. Great. :) I tried using "local" instead of "ogr" but it gave a parser-error. I don't tried before removing the connectiontype. thanks, Andrea. 2012/3/5 Lime, Steve D (DNR) > Why use OGR and not the native shape file driver in MapSever? What happens > if you comment out the connection type? > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [ > aperi2007 at gmail.com] > Sent: Sunday, March 04, 2012 4:42 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Error: Failed to draw layer > > Hi, > > I'm try-ing to set a mapserver as a wms server. > But I'm having this error: > > On the getMap request I have this error: > > (No error code was reported) > > The WMS vendor also reported: > > msDrawMap(): Image handling error. Failed to draw layer named > 'idprovince2'. > > msOGRFileOpen(): OGR error. Error parsing OGR connection information in > layer `idprovince2' > > > My settings for layer is this: > > LAYER > NAME "idprovince2" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE OGR > DATA "/home/..../shapefile_polygon" > PROJECTION > "init=epsg:3003" > END > METADATA > 'wms_title' 'Confini Provinciali2' > END > CLASS > NAME 'am_prov_region_am_prov' > STYLE > WIDTH 0.91 > OUTLINECOLOR 0 0 0 > COLOR 103 132 169 > ANTIALIAS true > END > LABEL > POSITION auto > SIZE 8 > COLOR 0 0 0 > TYPE truetype > FONT arial > END > END > END > > I try many settings, but nothing change :( > > Any hints is welcome, > > thx > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at deprem.gov.tr Mon Mar 5 04:12:44 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Mon, 05 Mar 2012 14:12:44 +0200 Subject: [mapserver-users] how can I adjust size of label Message-ID: <1330949564.5317.25.camel@localhost> Dear All, I plot map file which is including villages. Data stored in MySQL and read via OGR. My question is it possible to adjust size of the label changing automatically considering the zoom level? I mean when I zoom in size of the label also will increase, and decrease when I zoom out. is STYLEITEM "AUTO" is a way to do? or which doc will be useful to do this. regards Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From armin.burger at gmx.net Mon Mar 5 04:24:17 2012 From: armin.burger at gmx.net (Armin Burger) Date: Mon, 05 Mar 2012 13:24:17 +0100 Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: <84446DEF76453C439E9E97E438E13A63082C68@suutari.haapa.mmm.fi> References: , <1330874381473-4545262.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A63082C68@suutari.haapa.mmm.fi> Message-ID: <20120305122417.209760@gmx.net> Hello everybody there is a quite flexible and easy to use solution to achieve all these requirements with additional (non-standard) request parameters: using MapScript bindings for OWS/WxS requests (see e.g. http://mapserver.org/ogc/mapscript.html). I use both PHP and Python bindings and everything works very well. If PHP or Python are used via an Apache module I also could not measure real differences regarding speed of the responses (max 5% slower than mapserv CGI/FCGI, if at all). A standard WxS handling script has roughly 10-15 lines of code. The great advantage is that between handling the request parameters and returning the response to the client you have any conceivable possibilities to modify the map or layers via MapScript. This can take into account any key-value pairs from the request, and you can handle more complicated logic than with pure variable substitution. If there is interest I can provide some more code samples, could also be via the MapServer wiki. Regards Armin -------- Original-Nachricht -------- > Datum: Mon, 5 Mar 2012 08:07:11 +0000 > Von: Rahkonen Jukka > An: \'teknocreator\' , "\'mapserver-users at lists.osgeo.org\'" > Betreff: Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] > Hi, > > It would be nice to be able to change some processing directives through > variable substitution. Multichannel satellite images are one obvious use > case. I have predefined a few most common settings for 7-channel Landsat > images as separate mapfiles but it would more convenient and flexible to let > users select the BANDS, SCALE and LUT they want. It would be useful also when > some other settings would suit better for printing than those adjusted for > on-screen use. > > Would others find it reasonable to add PROCESSING to the items which > support variable substitution? > > -Jukka Rahkonen- > > teknocreator wrote: > > Kathleen, > > I've searched through the lists and on the web for an answer to your issue > as I have it too only with GRIB data. The MapServer docs seem to indicate > that variable substitution won't work for the PROCESSING directive. > Therefore I tried several variations "Changing map file parameters via a > form or a URL". What should've worked here considering that part of the > documentation is to add this to the GetMap request string: > > map[layer].processing[0]="BANDS=01" > > because it was the first PROCESSING directive for my layer and it needs a > string for the directive. But, I received an msloadLayer error. I tried > a > few variations but all ended up with the same error. I've seen folks have > a > similar issue with this in the MS Users list with no solution at present. > > While what Puneet wrote may be a solution for you and possibly our GRIB > data > as well, it seems like a much more complicated way just to get at a > particular band in the file. I do see why this has been done as NetCDF > does > come in many flavors and there's the possibility of 4 dimensions in the > file. There are many links on using WCS with NetCDF, a good number coming > from UCAR. > > Still, this looks like a possible code problem where the ability to change > map file parameter via a URL does not work in this case or else the > ability > to change BANDS needs to be added to variable substitution. > > Hopefully, someone from MapServer can help here. Looks like I'm going to > be > investigating WCS, though. I'll definitely be checking back on this one. > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.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 -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a From jmckenna at gatewaygeomatics.com Mon Mar 5 04:47:55 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 05 Mar 2012 08:47:55 -0400 Subject: [mapserver-users] Setup advice please? In-Reply-To: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com> References: <1330744930.46015.YahooMailClassic@web160702.mail.bf1.yahoo.com> Message-ID: <4F54B5FB.9040104@gatewaygeomatics.com> On 12-03-02 11:22 PM, pcreso at pcreso.com wrote: > > That's about my take on it, maybe a couple of hours, but I've just been > quoted 3 days by a support team to do this, at NZ$170/hr. (current exch > rate is around .77, so maybe $2600US??? for the job) > I will give feedback here, as I am one of those possible 'support teams' out there. You are talking to several power users here on this list saying 'a few hours', for their own time. This 'support team' provided you an accurate estimate of time, as many issues can occur during such a setup and they must account for that. I would go with this interested support team and get the job done. Don't question them publicly on a list, just move forward and they will do an excellent job for you I am sure (even though I don't know the team you refer to). Go for it. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From teknocreator at gmail.com Mon Mar 5 12:20:43 2012 From: teknocreator at gmail.com (David Miller) Date: Mon, 5 Mar 2012 15:20:43 -0500 Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options? Message-ID: Hi list! We have MapServer 6.0.1 installed on our Linux system (CentOS 5.7) and have encountered an issue where the WMS options (i.e. BBOX, HEIGHT, WIDTH) seem to be ignored for a GetMap request. I have checked options for and output from running the configure script for building the executable. The --with-proj and --with-wms options are specified (though one shouldn't need it if --with-proj is there correctly). Output from running the configure script indicates that the -DUSE_WMS_SVR compiler switch was on when compiling the mapwms.c code, which is where that becomes important. I examined that code and it's here that MapServer first uses the extents in the mapfile as defaults but then adjusts that based on the BBOX, HEIGHT, and WIDTH options in the GetMap request. Running -v on the resulting executable also indicates SUPPORTS=WMS_SERVER. The call to MapServer does produce an image but for the entire EXTENT of the data that's specified in the mapfile. Doesn't make any difference whether it's a raster or point layer. Example REQUEST: http://(our main site address)/cgi-bin/mapserv?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&MODE=map&MAP=wxmap%2Fglmpvis.map&LAYERS=mosaic&SRS=EPSG%3A3857&TRANSPARENT=TRUE&STYLES=&BBOX=-13807095.590531%203308267.5857033%20-12241665.251469%204482340.3400001&WIDTH=640&HEIGHT=480 First part of the mapfile: MAP NAME "testgrib" IMAGETYPE PNG EXTENT -14000000 3000000 -7000000 7000000 As you can see, the EXTENT in the mapfile are different than the BBOX values. When I put the BBOX values in the EXTENT area in the mapfile, the image lines up with the map background as it should. So for some reason, it appears that something isn't being set correctly to allow our MapServer to accept standard WMS options. Perhaps somehow, this value of USE_WMS_SVR in mapwms.c isn't getting set correctly? But, by all the output we've checked, it looks like MapServer gets built correctly and to enable it as a WMS server. Anyone else with a similar issue or somewhere else we should check for a problem? Thanks for any help! Dave M -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at gmx.net Mon Mar 5 12:49:16 2012 From: armin.burger at gmx.net (Armin Burger) Date: Mon, 05 Mar 2012 21:49:16 +0100 Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options? In-Reply-To: References: Message-ID: <4F5526CC.6010108@gmx.net> David According to the WMS specs, BBOX parameters for getMap requests are comma-separated, you are using spaces only (url-encoded as %20). I would expect MS to return an exception instead of ignoring this. armin On 05/03/2012 21:20, David Miller wrote: > Hi list! > > We have MapServer 6.0.1 installed on our Linux system (CentOS 5.7) and > have encountered an issue where the WMS options (i.e. BBOX, HEIGHT, > WIDTH) seem to be ignored for a GetMap request. I have checked options > for and output from running the configure script for building the > executable. The --with-proj and --with-wms options are specified > (though one shouldn't need it if --with-proj is there correctly). > Output from running the configure script indicates that the-DUSE_WMS_SVR > compiler switch was on when compiling the mapwms.c code, which is where > that becomes important. I examined that code and it's here that > MapServer first uses the extents in the mapfile as defaults but then > adjusts that based on the BBOX, HEIGHT, and WIDTH options in the GetMap > request. Running -v on the resulting executable also indicates > SUPPORTS=WMS_SERVER. > > The call to MapServer does produce an image but for the entire EXTENT of > the data that's specified in the mapfile. Doesn't make any difference > whether it's a raster or point layer. > > Example REQUEST: > > http://(our main site > address)/cgi-bin/mapserv?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&MODE=map&MAP=wxmap%2Fglmpvis.map&LAYERS=mosaic&SRS=EPSG%3A3857&TRANSPARENT=TRUE&STYLES=&BBOX=-13807095.590531%203308267.5857033%20-12241665.251469%204482340.3400001&WIDTH=640&HEIGHT=480 > > First part of the mapfile: > > MAP > NAME "testgrib" > IMAGETYPE PNG > EXTENT -14000000 3000000 -7000000 7000000 > > As you can see, the EXTENT in the mapfile are different than the BBOX > values. When I put the BBOX values in the EXTENT area in the mapfile, > the image lines up with the map background as it should. > > So for some reason, it appears that something isn't being set correctly > to allow our MapServer to accept standard WMS options. Perhaps somehow, > this value of USE_WMS_SVR in mapwms.c isn't getting set correctly? But, > by all the output we've checked, it looks like MapServer gets built > correctly and to enable it as a WMS server. > > Anyone else with a similar issue or somewhere else we should check for a > problem? > > Thanks for any help! > > Dave M > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Mar 5 12:48:01 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 05 Mar 2012 15:48:01 -0500 Subject: [mapserver-users] tile4ms broken on 6.0.2?? Message-ID: <4F552681.7000301@swoodbridge.com> Hi all, I just spent a few hours chasing a problem that turns out to look like a tile4ms is broken on 6.0.2 as it creates NullShape for each record. Anybody else run into this problem? Can anyone else verify this? Or is it specific to my data/system/etc for some reason. -Steve W woodbri at mappy:/u/data/tgr2011-maps$ shpdump tidx-PRISECROADS-S | head Shapefile Type: Polygon # of Shapes: 56 File Bounds: ( -170.834, -14.367,0,0) to ( 145.815, 70.192,0,0) Shape:0 (NullShape) nVertices=0, nParts=0 Bounds:( 0.000, 0.000, 0, 0) to ( 0.000, 0.000, 0, 0) woodbri at mappy:/u/data/tgr2011-maps$ /u/software/mapserver-5.6.8/tile4ms tidx-PRISECROADS-S.in tidx-PRISECROADS-S Processed 56 of 56 files woodbri at mappy:/u/data/tgr2011-maps$ shpdump tidx-PRISECROADS-S | head Shapefile Type: Polygon # of Shapes: 56 File Bounds: ( -170.834, -14.367,0,0) to ( 145.815, 70.192,0,0) Shape:0 (Polygon) nVertices=5, nParts=1 Bounds:( -88.468, 30.229, 0, 0) to ( -84.995, 35.006, 0, 0) ( -88.468, 30.229, 0, 0) Ring ( -88.468, 35.006, 0, 0) From Michael.Smith at usace.army.mil Mon Mar 5 12:53:26 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Mon, 5 Mar 2012 20:53:26 +0000 Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options? In-Reply-To: Message-ID: David, You aren't making a WMS request. You are making a MapServer request. When making a map server request, you use mapext=minx+miny+maxx+maxy&mode=map With WMS, you'd request SERVICE=WMS&REQUEST=GETMAP&BBOX=minx,miny,maxx,maxy. Note there is no mode=map See http://mapserver.org/ogc/wms_server.html for details on a proper WMS request. Mike From: David Miller > Date: Mon, 5 Mar 2012 15:20:43 -0500 To: > Subject: [mapserver-users] MapServer 6.0.1 ignoring WMS options? Hi list! We have MapServer 6.0.1 installed on our Linux system (CentOS 5.7) and have encountered an issue where the WMS options (i.e. BBOX, HEIGHT, WIDTH) seem to be ignored for a GetMap request. I have checked options for and output from running the configure script for building the executable. The --with-proj and --with-wms options are specified (though one shouldn't need it if --with-proj is there correctly). Output from running the configure script indicates that the -DUSE_WMS_SVR compiler switch was on when compiling the mapwms.c code, which is where that becomes important. I examined that code and it's here that MapServer first uses the extents in the mapfile as defaults but then adjusts that based on the BBOX, HEIGHT, and WIDTH options in the GetMap request. Running -v on the resulting executable also indicates SUPPORTS=WMS_SERVER. The call to MapServer does produce an image but for the entire EXTENT of the data that's specified in the mapfile. Doesn't make any difference whether it's a raster or point layer. Example REQUEST: http://(our main site address)/cgi-bin/mapserv?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&FORMAT=image%2Fpng&MODE=map&MAP=wxmap%2Fglmpvis.map&LAYERS=mosaic&SRS=EPSG%3A3857&TRANSPARENT=TRUE&STYLES=&BBOX=-13807095.590531%203308267.5857033%20-12241665.251469%204482340.3400001&WIDTH=640&HEIGHT=480 First part of the mapfile: MAP NAME "testgrib" IMAGETYPE PNG EXTENT -14000000 3000000 -7000000 7000000 As you can see, the EXTENT in the mapfile are different than the BBOX values. When I put the BBOX values in the EXTENT area in the mapfile, the image lines up with the map background as it should. So for some reason, it appears that something isn't being set correctly to allow our MapServer to accept standard WMS options. Perhaps somehow, this value of USE_WMS_SVR in mapwms.c isn't getting set correctly? But, by all the output we've checked, it looks like MapServer gets built correctly and to enable it as a WMS server. Anyone else with a similar issue or somewhere else we should check for a problem? Thanks for any help! Dave M _______________________________________________ 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 jaykayone at gmail.com Mon Mar 5 13:30:40 2012 From: jaykayone at gmail.com (Jeff Konnen) Date: Mon, 5 Mar 2012 22:30:40 +0100 Subject: [mapserver-users] GDALDatasetRasterIO() failed: IReadBlock failed Message-ID: Hi, I've configured a map - file with GDAL-WMS to reproject WMSC-Files. It works more or less. I'm using 11 different scales where I calculate new tiles in my SRS and on 7 out of 11 levels, the results are OK. On the other levels, I keep getting the following error-message: msDrawMap(): Image handling error. Failed to draw layer named 'ORTHO_IGNF'. drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: /home/mapserver/config/IGN/ortho_wms.txt, band 1: IReadBlock failed at X offset 2991, Y offset 2553 Here is my GDAL_WMS - config: 1.1.1 my_url_was_here IGNF:GEOPORTALFXX image/jpeg my_layer_name_was_here -1048576 6815744 2097152 3670016 6291456 6291456 13 +title=EPSG:310024802 +proj=eqc +nadgrids=null +towgs84=0.0000,0.0000,0.0000 +a=6378137.0000 +rf=298.2572221010000 +lat_0=0.000000000 +lon_0=0.000000000 +lat_ts=46.500000000 +x_0=0.000 +y_0=0.000 +units=m +wktext +no_defs 3 256 256 12 And here my mapfile: MAP NAME "LIMADMIN" PROJECTION "init=epsg:2169" END WEB METADATA "wms_srs" "EPSG:2169 EPSG:4326 EPSG:4258" "wms_extent" "46000 57000 106000 141000" "ows_enable_request" "*" END IMAGEPATH "/tmp" END EXTENT 46000 57000 106000 141000 UNITS METERS OUTPUTFORMAT NAME "pnga" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT TRUE FORMATOPTION "INTERLACE=OFF" END LAYER NAME "ORTHO_IGNF" DATA ortho_wms.txt TYPE RASTER STATUS ON DUMP FALSE PROCESSING "DITHER=YES" PROCESSING "RESAMPLE=BILINEAR" METADATA "wms_name" "ORTHO_IGNF" "wms_extent" "46000 57000 106000 141000" END PROJECTION "title=EPSG:310024802" "proj=eqc" "nadgrids=null" "towgs84=0.0000,0.0000,0.0000" "a=6378137.0000" "rf=298.2572221010000" "lat_0=0.000000000" "lon_0=0.000000000" "lat_ts=46.500000000" "x_0=0.000" "y_0=0.000" "units=m" "wktext" "no_defs" END END END Any idea where this could be going wrong? Thanks in advance and best regards Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Mon Mar 5 13:44:06 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 5 Mar 2012 21:44:06 +0000 Subject: [mapserver-users] force labels to fit in polygons Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local> Hello, Is there a way to force labels to fit inside of a polygon, even if a polygon is irregularly shaped? I noticed that with POSITION AUTO labels are falling outside of my soils boundary. Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Mar 5 13:50:42 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 05 Mar 2012 16:50:42 -0500 Subject: [mapserver-users] force labels to fit in polygons In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local> Message-ID: <4F553532.2060708@swoodbridge.com> On 3/5/2012 4:44 PM, Mark Volz wrote: > Hello, > Is there a way to force labels to fit inside of a polygon, even if a > polygon is irregularly shaped? I noticed that with POSITION AUTO labels > are falling outside of my soils boundary. The short answer is no. It is an interesting problem, but it does not have a guaranteed result as the label might be too big to fit regardless. I am not even sure of the algorithm should be for something like this. There are a lot of parameters like: font font size wrapping the text changing the angle finding the longest line, arc or smooth polyline that fits withing the polygon and then have the text follow that line These are all computationally expensive to do on the fly while rendering. Ideally these should be worked out in advance then you can supply the attributes to the label via binding columns in the data. -SteveW From K.Hirst at bom.gov.au Mon Mar 5 14:06:57 2012 From: K.Hirst at bom.gov.au (Kathleen Hirst) Date: Tue, 6 Mar 2012 09:06:57 +1100 Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: <20120305122417.209760@gmx.net> Message-ID: Hi Armin, Thanks for that. I would prefer not to use MapScript, but if that is the only way, I would be interested in some more code samples. Regards, Kathleen -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Armin Burger Sent: Monday, 5 March 2012 11:24 PM To: Rahkonen Jukka; mapserver-users at lists.osgeo.org; teknocreator at gmail.com Subject: Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] Hello everybody there is a quite flexible and easy to use solution to achieve all these requirements with additional (non-standard) request parameters: using MapScript bindings for OWS/WxS requests (see e.g. http://mapserver.org/ogc/mapscript.html). I use both PHP and Python bindings and everything works very well. If PHP or Python are used via an Apache module I also could not measure real differences regarding speed of the responses (max 5% slower than mapserv CGI/FCGI, if at all). A standard WxS handling script has roughly 10-15 lines of code. The great advantage is that between handling the request parameters and returning the response to the client you have any conceivable possibilities to modify the map or layers via MapScript. This can take into account any key-value pairs from the request, and you can handle more complicated logic than with pure variable substitution. If there is interest I can provide some more code samples, could also be via the MapServer wiki. Regards Armin -------- Original-Nachricht -------- > Datum: Mon, 5 Mar 2012 08:07:11 +0000 > Von: Rahkonen Jukka > An: \'teknocreator\' , > "\'mapserver-users at lists.osgeo.org\'" > > Betreff: Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] > Hi, > > It would be nice to be able to change some processing directives > through variable substitution. Multichannel satellite images are one > obvious use case. I have predefined a few most common settings for > 7-channel Landsat images as separate mapfiles but it would more > convenient and flexible to let users select the BANDS, SCALE and LUT > they want. It would be useful also when some other settings would suit > better for printing than those adjusted for on-screen use. > > Would others find it reasonable to add PROCESSING to the items which > support variable substitution? > > -Jukka Rahkonen- > > teknocreator wrote: > > Kathleen, > > I've searched through the lists and on the web for an answer to your > issue as I have it too only with GRIB data. The MapServer docs seem > to indicate that variable substitution won't work for the PROCESSING directive. > Therefore I tried several variations "Changing map file parameters via > a form or a URL". What should've worked here considering that part of > the documentation is to add this to the GetMap request string: > > map[layer].processing[0]="BANDS=01" > > because it was the first PROCESSING directive for my layer and it > needs a string for the directive. But, I received an msloadLayer > error. I tried a few variations but all ended up with the same error. > I've seen folks have a similar issue with this in the MS Users list > with no solution at present. > > While what Puneet wrote may be a solution for you and possibly our > GRIB data as well, it seems like a much more complicated way just to > get at a particular band in the file. I do see why this has been done > as NetCDF does come in many flavors and there's the possibility of 4 > dimensions in the file. There are many links on using WCS with > NetCDF, a good number coming from UCAR. > > Still, this looks like a possible code problem where the ability to > change map file parameter via a URL does not work in this case or else > the ability to change BANDS needs to be added to variable > substitution. > > Hopefully, someone from MapServer can help here. Looks like I'm going > to be investigating WCS, though. I'll definitely be checking back on > this one. > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp > 4519496p4545262.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 -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From kguardado at gmail.com Mon Mar 5 14:24:10 2012 From: kguardado at gmail.com (Karina Guardado) Date: Mon, 5 Mar 2012 16:24:10 -0600 Subject: [mapserver-users] problems with getinformation Message-ID: Hi, I'm working with Mapserver, openlayers and mapfish on linux Debian. I have added a option in map application to get information from a map by click on it. toolbar.addControl(new OpenLayers.Control.WMSGetFeatureInfo({ isDefault: true, title: 'Info' }), { iconCls: 'query', toggleGroup: 'map' }); toolbar.activate(); But when i click on one point for example it is looking but doesn't shoe anything and when looking at the fireburg result I found this msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html). I ask me if this is a problem with mapserver or with openlayers, any help please. thanks in advance. regards, Karina Guardado El Salvador -------------- next part -------------- An HTML attachment was scrubbed... URL: From teknocreator at gmail.com Mon Mar 5 17:10:17 2012 From: teknocreator at gmail.com (teknocreator) Date: Mon, 5 Mar 2012 17:10:17 -0800 (PST) Subject: [mapserver-users] [SOLVED] Re: MapServer 6.0.1 ignoring WMS options? In-Reply-To: References: Message-ID: <1330996217332-4549753.post@n6.nabble.com> [SOLVED] Thanks for the replies, but first I apologize to Arman for not including the commas in the BBOX request line. I was looking at the mapserver C code and it's actually setup to handle either commas or spaces in the BBOX= option. So it looks like I cut and pasted by attempt without commas here. My initial attempts were with the commas and those also failed. As to the second reply by Mike Smith of not using the "mode=map"...okay, I see in the doc that it shouldn't be included in a WMS call. I tried that for one of the point layers we've defined and it worked!! THANKS for getting me further here!! But the reason that I had it in there is that I had tried removing "mode=map" with a raster layer that I'm also attempting to query. When I tried to remove the "mode=map" there, I received an error: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. which doesn't make sense to me at the moment from what I can see in the doc because the layer takes on the projection of the map if different. When I put it back in, the error went away (still had the WMS request issue). So, I wasn't sure where exactly to look here for the problem. But, let me end this thread, read back up on working with raster data, and then post in another topic thread if I'm still having problems. Thanks again! Getting closer! -- View this message in context: http://osgeo-org.1560.n6.nabble.com/MapServer-6-0-1-ignoring-WMS-options-tp4549024p4549753.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lists at remoteinformation.com.au Mon Mar 5 22:41:14 2012 From: lists at remoteinformation.com.au (Ben Madin) Date: Tue, 6 Mar 2012 14:41:14 +0800 Subject: [mapserver-users] Setup advice please? In-Reply-To: <20120302201332.BBC59E00F31@lists.osgeo.org> References: <20120302201332.BBC59E00F31@lists.osgeo.org> Message-ID: <9BA860F8-986F-4084-9F91-B6984CFD0053@remoteinformation.com.au> G'day Brent, On 03/03/2012, at 4:13 AM, mapserver-users-request at lists.osgeo.org wrote: > Hopefully someone here can help. > > I have about 50Gb of high resolution aerial photos (geotiffs) to set up as a cached WMS service. > > We have a mapserver setup ready to use, with backups, etc. already sorted. The dataset is competely static. > > I'd like to set up MapProxy or Tilecache as a tiled WMS service for an OpenLayers front end, and possible other public use. > > I'm happy with a dynamically populated cache, rather than a pre-filled one, so the cache is built up as it is used. > > Can anyone experienced in this area suggest what sort of time is reasonable to expect a competent team to set this up in a professional way, with reasonable supporting docs, etc? Remembering we have a supported server to work with. > > It has been asked for by a small local environmental interest group with zero funds, and I need to get a reasonable commercial cost for such an exercise to start with. We are happy with tilecache - probably several orders of magnitude improvement in speed, but more importantly was the reduced pressure on the cpu for tiled maps. I suspect others are right - if you want to install tile cache, '''and you know what you are doing''', 35 minutes is about right (I did it yesterday on my laptop with the current .tar.gz for a workshop) If you want a quick summary of the steps to do this, I suspect another hour should be adequate. But, if you want a bomb-proof explanation of how to re-install it with troubleshooting guide, maybe three days is reasonable - my experience is that working guides that we are happy with internally are often not acceptable to external organisations, so you can probably specify that you are happy for the dot point form. I would however quote three days for MapProxy, because I have no experience with it? cheers Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Mon Mar 5 23:56:51 2012 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Tue, 6 Mar 2012 08:56:51 +0100 Subject: [mapserver-users] [SOLVED] Re: MapServer 6.0.1 ignoring WMS options? In-Reply-To: <1330996217332-4549753.post@n6.nabble.com> References: <1330996217332-4549753.post@n6.nabble.com> Message-ID: 2012/3/6 teknocreator > [SOLVED] > > Thanks for the replies, but first I apologize to Arman for not including > the > commas in the BBOX request line. I was looking at the mapserver C code and > it's actually setup to handle either commas or spaces in the BBOX= option. > So it looks like I cut and pasted by attempt without commas here. My > initial attempts were with the commas and those also failed. > > As to the second reply by Mike Smith of not using the "mode=map"...okay, I > see in the doc that it shouldn't be included in a WMS call. I tried that > for one of the point layers we've defined and it worked!! THANKS for > getting me further here!! > > But the reason that I had it in there is that I had tried removing > "mode=map" with a raster layer that I'm also attempting to query. When I > tried to remove the "mode=map" there, I received an error: > > > > msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be > valid for all requested layers. > > Hi, I have a similar issue with wms request from QGis, I've removed adding wms_srs to each layer in the form of "wms_srs" "EPSG:epsg_code" However, layers are listed correctly whistl I can't load a single layer but the raster (Data Elevation Model) and got a similar issue with bbox, QGis always report that: msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1 and 1500000 pixels. I can load the whole bunch by selecting the top layer but it's not really the desired result http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities Regards -r -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at deprem.gov.tr Mon Mar 5 23:56:57 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Tue, 06 Mar 2012 09:56:57 +0200 Subject: [mapserver-users] ogr csv layer in mapserver Message-ID: <1331020617.6428.10.camel@localhost> Dear all, I used gdal 1.7.2 and mapserver 5.2.1 I try to draw layer which data csv file as follows filename : kyh_sta_ogr.csv "ID","STA_ID","Latitude","Longitude" 1,0104,37.02403,35.80947 2,0118,37.02100,35.19100 . . . then I use ogr for reading data from that file as follows and map file also here LAYER NAME "kyh_vrt_ogr" CONNECTIONTYPE OGR CONNECTION ' kyh_sta_ogr.csv wkbPoint WGS84 ' DATA kyh_sta_ogr STATUS default TYPE POINT CLASS NAME "kyh" SYMBOL "cpoint" SIZE 1 COLOR 0 0 0 END END Please let me inform what is wrong in my code and why always trouble to draw ogr layer in mapserver. mapserver gives following error message msDrawMap(): Image handling error. Failed to draw layer named 'kyh_vrt_ogr'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `kyh_vrt_ogr'. Failed to open datasource `kyh_sta_ogr.csv'. but command ogrinfo -ro -al kyh.vrt as follows: ogrinfo -ro -al kyh.vrt INFO: Open of `kyh.vrt' using driver `VRT' successful. Layer name: kyh_sta_ogr Geometry: Point Feature Count: 327 Layer SRS WKT: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AUTHORITY["EPSG","4326"]] ID: String (0.0) STA_ID: String (0.0) Latitude: String (0.0) Longitude: String (0.0) OGRFeature(kyh_sta_ogr):1 ID (String) = 1 STA_ID (String) = 0104 Latitude (String) = 37.02403 Longitude (String) = 35.80947 POINT (35.809469999999997 37.024030000000003) OGRFeature(kyh_sta_ogr):2 ID (String) = 2 STA_ID (String) = 0118 Latitude (String) = 37.02100 Longitude (String) = 35.19100 POINT (35.191000000000003 37.021) Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From neelima.emmani at iictechnologies.com Tue Mar 6 00:19:40 2012 From: neelima.emmani at iictechnologies.com (Neelima Emmani) Date: Tue, 6 Mar 2012 08:19:40 +0000 Subject: [mapserver-users] spatial filter DWITHIN unsucessful Message-ID: Hi All, I am working with openlayers, mapserver and post gis. I am facing problem with spatial filter DWITHIN and not able to discover if it is problem with mapserver or not. Details:::: Now, I have google map as a base map and overlayed few point layers. Now, i want to do filtering with respect to the path that's drew on the map. For this path , i am using draw feature with OpenLayers.Handler.Path. Upto here it is working fine. I can draw a line. Now using the line geometry , i am giving a spatial filter DWITHIN with a distance of 2000 and also mentioned distanceUnits as 'm'. After i draw a line , the spatial filter for DWITHIN gets activated and the layer to be filtered is completely disappearing. Now what i found is, it is throwing a WFS exception as below - msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : (<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:And><ogc:DWithin><ogc:PropertyName>the_geom</ogc:PropertyName><gml:MultiLineString xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"><gml:lineStringMember><gml:LineString><gml:coordinates decimal="." cs="," ts=" ">-79.205932617188,32.309033345029 -79.458618164063,32.267239420261 -79.851379394531,32.144067753448 -78.255615234375,33.130344611623</gml:coordinates></gml:LineString></gml:lineStringMember></gml:MultiLineString><ogc:Distance units="m">200000</ogc:Distance></ogc:DWithin><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Box xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326"><gml:coordinates decimal="." cs="," ts=" ">-84.100341796875,29.910254 244941 -73.114013671875,34.556260876457</gml:coordinates></gml:Box></ogc:BBOX></ogc:And></ogc:Filter> And then I checked with get Capabilities , It is spatial filter DWITHIN capable. After that I checked by copying my WFS layer url along with filter properties as below - http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/us1gc09m-addline.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=us1gc09m&Filter=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3Ethe_geom%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-80.22217%2031.07991%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27m%27%3E100%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E into a browser. With this, It works well. No exception is thrown and the query is done properly. So, now, i do not understand where is the problem lies. Can any one tell me how to solve this. How to do Spatial filter DWITHIN. And is my approach right? Below is my JS code --- var map; var spatialfilter; function init() { map = new OpenLayers.Map("map"); //GOOGLE MAP var base = new OpenLayers.Layer.Google("Google Hybrid", {'type': G_HYBRID_MAP}); map.addLayer(base); //CREATE WMS LAYER var wms = new OpenLayers.Layer.WMS("wms", "http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/xyz.map", {layers: 'xyz'}, {isBaseLayer: false, visibility: false, opacity: 0.5, singleTile: true}); map.addLayer(wms); //VECTOR LAYER FOR PANEL var vlayer = new OpenLayers.Layer.Vector("vlayer"); map.addLayer(vlayer); // CREATE WFSLAYERS //style map for points var styleMap = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults({fillColor: "CYAN", fillOpacity: 1, strokeColor: "black"}, OpenLayers.Feature.Vector.style["default"])); // mock up a protocol for synchronous and successful commits var wfs_protocol = new OpenLayers.Protocol.WFS({url:"http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/xyz.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=xyz", featureType: "xyz", srsName: "EPSG:900913"}); var wfslayer = new OpenLayers.Layer.Vector("WFS", {styleMap: styleMap, strategies: [new OpenLayers.Strategy.BBOX()], protocol: wfs_protocol }); map.addLayer(wfslayer); map.addControl(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.LayerSwitcher()); //MAP CONTROLS var defStyle = {strokeColor: "red", strokeOpacity: "0.7", strokeWidth: 1, fillColor: "red", pointRadius: 3, cursor: "pointer"}; var sty = OpenLayers.Util.applyDefaults(defStyle, OpenLayers.Feature.Vector.style["default"]); var DeleteFeature = OpenLayers.Class(OpenLayers.Control, { initialize: function(layer, options) { OpenLayers.Control.prototype.initialize.apply(this, [options]); this.layer = layer; this.handler = new OpenLayers.Handler.Feature( this, layer, {click: this.clickFeature} ); }, clickFeature: function(feature) { // if feature doesn't have a fid, destroy it if(feature.fid == undefined) { this.layer.destroyFeatures([feature]); } else { feature.state = OpenLayers.State.DELETE; this.layer.events.triggerEvent("afterfeaturemodified", {feature: feature}); feature.renderIntent = "select"; this.layer.drawFeature(feature); } }, setMap: function(map) { this.handler.setMap(map); OpenLayers.Control.prototype.setMap.apply(this, arguments); }, CLASS_NAME: "OpenLayers.Control.DeleteFeature" }); var panel = new OpenLayers.Control.Panel( {'displayClass': 'customEditingToolbar'} ); var navigate = new OpenLayers.Control.Navigation({ title: "Pan Map" }); var drawpath = new OpenLayers.Control.DrawFeature( vlayer, OpenLayers.Handler.Path, { title: "Draw Path", displayClass: "olControlDrawFeaturePath", multi: true } ); var drawpoint = new OpenLayers.Control.DrawFeature( vlayer, OpenLayers.Handler.Point, { title: "Add Point", displayClass: "olControlDrawFeaturePoint", multi: true } ); var box = new OpenLayers.Control.DrawFeature(vlayer, OpenLayers.Handler.RegularPolygon, { handlerOptions: { sides: 4, irregular: true } , title: "Box Feature Select", displayClass: "olControlDrawFeatureBox"}); var edit = new OpenLayers.Control.ModifyFeature(vlayer, { title: "Modify Feature", displayClass: "olControlModifyFeature" }); var del = new DeleteFeature(vlayer, {title: "Delete Feature"}); panel.addControls([navigate,del, edit, box, drawpoint, drawpath]); panel.defaultControl = navigate; map.addControl(panel); panel.activate(); map.zoomToMaxExtent(); map.setCenter(new OpenLayers.LonLat(-82, 28),5); vlayer.events.on({ beforefeatureadded: function(event) { //here also tried with featureadded var geometry = event.feature.geometry; alert(geometry); wfslayer.filter = new OpenLayers.Filter.Spatial({ type: OpenLayers.Filter.Spatial.DWITHIN, property: "the_geom", value: event.feature.geometry, distance: 200000, distanceUnits: 'm' }); wfslayer.refresh({force: true}); var style_green = { strokeColor: "#00FF00", strokeOpacity: 0.7, strokeWidth: 4, graphicName: 'square', fillColor: '#FF0000', pointRadius: 5 }; vlayer.drawFeature(event.feature, style_green); alert(wfslayer.filter.evaluate(event.feature)); return false; } }); } MAPFILE ---- MAP NAME "QGIS-MAP" # Map image size SIZE 600 600 UNITS meters EXTENT -101.455432 18.242354 -73.740758 33.963395 FONTSET './etc/fonts.txt' SYMBOLSET './etc/symbols.txt' PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE agg OUTPUTFORMAT NAME agg DRIVER AGG/PNG IMAGEMODE RGB END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH '/ms4w/tmp/ms_tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/ms_tmp/' # WMS server settings METADATA 'ows_title' 'QGIS-MAP' 'ows_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/qgismapserv_org/xyz.map&' 'ows_srs' 'EPSG:4326 EPSG:900913' 'ows_enable_request' 'GetMap GetFeature GetFeatureInfo *' ##necessary END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation #TEMPLATE 'fooOnlyForWMSGetFeatureInfo' END LAYER NAME 'xyz' TYPE POINT DUMP true #TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -101.455432 18.242354 -73.740758 33.963395 CONNECTIONTYPE postgis CONNECTION "dbname='postgis' host=localhost port=5432 user='postgres' password='xxx' sslmode=disable" DATA 'the_geom FROM us1gc09m USING UNIQUE fids' METADATA 'ows_title' 'xyz' 'wfs_typename' 'xyz' 'wfs_version' '1.0.0' 'wfs_connectiontimeout' '60' 'wfs_maxfeatures' '150' 'wfs_filter' 'GET' 'wfs_featureid' 'the_geom' END STATUS OFF TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END CLASS NAME 'xyz' STYLE SYMBOL "circle" SIZE 7.0 OUTLINECOLOR 0 0 0 COLOR 123 143 78 END END END END Awaiting for a solution. With Regards, Neelima Emmani -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Tue Mar 6 00:44:04 2012 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Tue, 6 Mar 2012 09:44:04 +0100 Subject: [mapserver-users] WMS server layer trouble Message-ID: Hi, I can't get it working as desired and can't understand why. Here is my wms online resource: http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities If you try to load the layer "sostegni" in QGis you should get an image size error, selecting the "CEN-RF" layer works but loads all the layer in the mapfile. The only layer I can import in QGis is the "Data Elevation Model". I would like my wms server to act like http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities Any hints? regards -r -- *L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at deprem.gov.tr Tue Mar 6 00:41:26 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Tue, 06 Mar 2012 10:41:26 +0200 Subject: [mapserver-users] ogr csv layer in mapserver In-Reply-To: <1331020617.6428.10.camel@localhost> References: <1331020617.6428.10.camel@localhost> Message-ID: <1331023286.6428.15.camel@localhost> The problem solved by giving full path of csv file in map file as follows than it works thanks /var/www/html/dynamic/kyh_sta_ogr.csv thanks again Murat On Tue, 2012-03-06 at 09:56 +0200, Murat Beyhan wrote: > Dear all, > > I used gdal 1.7.2 and mapserver 5.2.1 > > I try to draw layer which data csv file as follows > > filename : kyh_sta_ogr.csv > > "ID","STA_ID","Latitude","Longitude" > 1,0104,37.02403,35.80947 > 2,0118,37.02100,35.19100 > . > . > . > > > then I use ogr for reading data from that file as follows and map file > also here > > > > LAYER > NAME "kyh_vrt_ogr" > CONNECTIONTYPE OGR > CONNECTION ' > > kyh_sta_ogr.csv > wkbPoint > WGS84 > y="Latitude"/> > > ' > DATA kyh_sta_ogr > STATUS default > TYPE POINT > CLASS > NAME "kyh" > SYMBOL "cpoint" > SIZE 1 > COLOR 0 0 0 > END > END > > Please let me inform what is wrong in my code and why always trouble to > draw ogr layer in mapserver. > mapserver gives following error message > > msDrawMap(): Image handling error. Failed to draw layer named > 'kyh_vrt_ogr'. msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer `kyh_vrt_ogr'. Failed to open datasource > `kyh_sta_ogr.csv'. > > > > but command > ogrinfo -ro -al kyh.vrt > as follows: > > ogrinfo -ro -al kyh.vrt > INFO: Open of `kyh.vrt' > using driver `VRT' successful. > > Layer name: kyh_sta_ogr > Geometry: Point > Feature Count: 327 > Layer SRS WKT: > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > TOWGS84[0,0,0,0,0,0,0], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0, > AUTHORITY["EPSG","8901"]], > UNIT["degree",0.0174532925199433, > AUTHORITY["EPSG","9108"]], > AUTHORITY["EPSG","4326"]] > ID: String (0.0) > STA_ID: String (0.0) > Latitude: String (0.0) > Longitude: String (0.0) > OGRFeature(kyh_sta_ogr):1 > ID (String) = 1 > STA_ID (String) = 0104 > Latitude (String) = 37.02403 > Longitude (String) = 35.80947 > POINT (35.809469999999997 37.024030000000003) > > OGRFeature(kyh_sta_ogr):2 > ID (String) = 2 > STA_ID (String) = 0118 > Latitude (String) = 37.02100 > Longitude (String) = 35.19100 > POINT (35.191000000000003 37.021) > > > > > Murat BEYHAN > > Jeofizik Y.M?h. > T.C. Ba?bakanl?k > Afet ve Acil Durum Y?netimi Ba?kanl??? > Deprem Dairesi Ba?kanl??? > Eski?ehir Yolu 12. Km. > Lodumlu/ANKARA > Tel: 312 2872680-1556 > email:beyhan at deprem.gov.tr > > > > Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From Jukka.Rahkonen at mmmtike.fi Tue Mar 6 01:14:56 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 6 Mar 2012 09:14:56 +0000 Subject: [mapserver-users] WMS server layer trouble In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63083040@suutari.haapa.mmm.fi> Hi, Look at the GetCapabilities and see if Mapserver is advertising the layer extents in reasonable way. I have a feeling that QGis is trying to zoom automatically to the layer extents by taking the layer extents and some default resolution and calculating WIDTH and HEIGHT by those too. If they are wrong in the GetCapabilities there can be troubles. For example the layer fiumi_02 shows now quite a large extents, Fiumi II, III, IV ordine fiumi_02 epsg:32632 -1.47304E7 -9997960.0 500000.0 9997960.0 OpenJUMP shows the layers better because it does not generate oversized WIDTH and HEIGHT. Consider adding "wms_bbox_extended" "true". It will help clients like OpenJUMP to zoom to layer extents with any supported srsName. It could be easist and most safe to set the correct layer extenst manually in metadata. -Jukka Rahkonen- ________________________________ Raffaele Morelli wrote: Hi, I can't get it working as desired and can't understand why. Here is my wms online resource: http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities If you try to load the layer "sostegni" in QGis you should get an image size error, selecting the "CEN-RF" layer works but loads all the layer in the mapfile. The only layer I can import in QGis is the "Data Elevation Model". I would like my wms server to act like http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities Any hints? regards -r -- L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale. -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Tue Mar 6 01:20:49 2012 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Tue, 6 Mar 2012 10:20:49 +0100 Subject: [mapserver-users] WMS server layer trouble In-Reply-To: <84446DEF76453C439E9E97E438E13A63083040@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63083040@suutari.haapa.mmm.fi> Message-ID: 2012/3/6 Rahkonen Jukka > ** > Hi, > > Look at the GetCapabilities and see if Mapserver is advertising the layer > extents in reasonable way. I have a feeling that QGis is trying to zoom > automatically to the layer extents by taking the layer extents and some > default resolution and calculating WIDTH and HEIGHT by those too. If they > are wrong in the GetCapabilities there can be troubles. > For example the layer fiumi_02 shows now quite a large extents, > > Fiumi II, III, IV > ordine fiumi_02 epsg:32632 -1.47304E7 -9997960.0 500000.0 9997960.0 > > OpenJUMP shows the layers better because it does not generate oversized > WIDTH and HEIGHT. > Consider adding "wms_bbox_extended" "true". It will help clients like > OpenJUMP to zoom to layer extents with any supported srsName. > It could be easist and most safe to set the correct layer extenst manually > in metadata. > > > -Jukka Rahkonen- > Thanks for fast replying, in the meanwhile I've added wms_extent to every layer metadata (except for "europe") and the error disappeared. BTW I am going to try wms_bbox_extended too. Regards -r -- *L'unica speranza di catarsi, ammesso che ne esista una, resta affidata all'istinto di ribellione, alla rivolta non isterilita in progetti, alla protesta violenta e viscerale.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgigoux at munistgo.cl Tue Mar 6 03:13:51 2012 From: pgigoux at munistgo.cl (Patricio Gigoux) Date: Tue, 06 Mar 2012 08:13:51 -0300 Subject: [mapserver-users] force labels to fit in polygons In-Reply-To: <4F553532.2060708@swoodbridge.com> References: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local> <4F553532.2060708@swoodbridge.com> Message-ID: <4F55F16F.6080006@munistgo.cl> You could generate a center point, there is a function that do it in irregular shaped, and fit the label in it Patricio Gigoux El 05-03-2012 18:50, Stephen Woodbridge escribi?: > On 3/5/2012 4:44 PM, Mark Volz wrote: >> Hello, >> Is there a way to force labels to fit inside of a polygon, even if a >> polygon is irregularly shaped? I noticed that with POSITION AUTO labels >> are falling outside of my soils boundary. > > The short answer is no. It is an interesting problem, but it does not > have a guaranteed result as the label might be too big to fit > regardless. I am not even sure of the algorithm should be for > something like this. There are a lot of parameters like: > > font > font size > wrapping the text > changing the angle > finding the longest line, arc or smooth polyline that fits withing the > polygon and then have the text follow that line > > These are all computationally expensive to do on the fly while > rendering. Ideally these should be worked out in advance then you can > supply the attributes to the label via binding columns in the data. > > -SteveW > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From teknocreator at gmail.com Tue Mar 6 04:07:07 2012 From: teknocreator at gmail.com (teknocreator) Date: Tue, 6 Mar 2012 04:07:07 -0800 (PST) Subject: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: References: <1330874381473-4545262.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A63082C68@suutari.haapa.mmm.fi> <20120305122417.209760@gmx.net> Message-ID: <1331035627148-4551035.post@n6.nabble.com> I would be interested as well with *Armin*'s code suggestions/examples, though I agree with Kathleen that this may not be a preferred approach. I'd like to cast a vote here to *Jukka* for being able to somehow alter the raster bands with either variable substitution or else with changing the URL parameters. Most of our data thus far is only 3-dimensional (x, y, t) with no height dimension. So, it would be a desired feature to be able to easily move through the time dimension by just being able to change the bands. For us at present, each band in a GRIB file is a different time period for the same data. That being said, better long term solutions and moving towards OGC standards for our data may be to devote our efforts to creating a WCS for our data or preprocess the data so that the WMS "time" option can be used. *Kathleen* - you may be interested in this project (if you haven't seen it already) that deals directly with NetCDF with a WMS - ncWMS: http://www.resc.rdg.ac.uk/trac/ncWMS/wiki/FrequentlyAskedQuestions. Another group I work with is adapting this software for another project which uses NetCDF. Thanks for others' replies! Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4551035.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Tue Mar 6 05:39:45 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 06 Mar 2012 08:39:45 -0500 Subject: [mapserver-users] force labels to fit in polygons In-Reply-To: <4F55F16F.6080006@munistgo.cl> References: <36CA828A36E29F45B7CF0A1766E5DFA30E2F9C@swmail01.r8nssis.local> <4F553532.2060708@swoodbridge.com> <4F55F16F.6080006@munistgo.cl> Message-ID: <4F5613A1.1080308@swoodbridge.com> Right, the problem has two parts: 1) determine potential candidate label points 2) see if the label fits given the constraints placed on how to draw it This is NP hard problem because it not just a problem of labeling a single polygon you also have to deal with all the other labels on the map that you might collide with. If you search "automatic label placement" in google you can read up on the problem and the solutions that are available. Mapserver uses a different scheme for doing label placement that is much faster because it does not try to optimize label placement, but rather gives you controls for how labels should be placed, like POSITION, ANGLE AUTO|FOLLOW, PROCESSING "LABEL_NO_CLIP=ON", PRIORITY, WRAP, MINFEATURESIZE, MAXLENGTH, PARTIALS, etc. By the way, PROCESSING "LABEL_NO_CLIP=ON" will fix the label point at the polygon center. -SteveW On 3/6/2012 6:13 AM, Patricio Gigoux wrote: > You could generate a center point, there is a function that do it in > irregular shaped, and fit the label in it > > Patricio Gigoux > > > > > El 05-03-2012 18:50, Stephen Woodbridge escribi?: >> On 3/5/2012 4:44 PM, Mark Volz wrote: >>> Hello, >>> Is there a way to force labels to fit inside of a polygon, even if a >>> polygon is irregularly shaped? I noticed that with POSITION AUTO labels >>> are falling outside of my soils boundary. >> >> The short answer is no. It is an interesting problem, but it does not >> have a guaranteed result as the label might be too big to fit >> regardless. I am not even sure of the algorithm should be for >> something like this. There are a lot of parameters like: >> >> font >> font size >> wrapping the text >> changing the angle >> finding the longest line, arc or smooth polyline that fits withing the >> polygon and then have the text follow that line >> >> These are all computationally expensive to do on the fly while >> rendering. Ideally these should be worked out in advance then you can >> supply the attributes to the label via binding columns in the data. >> >> -SteveW >> _______________________________________________ >> 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 MarkVolz at co.lyon.mn.us Tue Mar 6 06:42:48 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 6 Mar 2012 14:42:48 +0000 Subject: [mapserver-users] Re: Re: force labels to fit in polygons In-Reply-To: <20120306075745.CFA56E00A4B@lists.osgeo.org> References: <20120306075745.CFA56E00A4B@lists.osgeo.org> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30E2FFA@swmail01.r8nssis.local> Steve and Patricio, Thank you for your response. I went with Patricio's idea of labeling off a point. Which should be alright unless a user is zoomed in close and cannot see the center of a polygon. Mark Volz GIS Specialist Message: 2 Date: Mon, 05 Mar 2012 16:50:42 -0500 From: Stephen Woodbridge Subject: Re: [mapserver-users] force labels to fit in polygons To: mapserver-users at lists.osgeo.org Message-ID: <4F553532.2060708 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 3/5/2012 4:44 PM, Mark Volz wrote: > Hello, > Is there a way to force labels to fit inside of a polygon, even if a > polygon is irregularly shaped? I noticed that with POSITION AUTO > labels are falling outside of my soils boundary. The short answer is no. It is an interesting problem, but it does not have a guaranteed result as the label might be too big to fit regardless. I am not even sure of the algorithm should be for something like this. There are a lot of parameters like: font font size wrapping the text changing the angle finding the longest line, arc or smooth polyline that fits withing the polygon and then have the text follow that line These are all computationally expensive to do on the fly while rendering. Ideally these should be worked out in advance then you can supply the attributes to the label via binding columns in the data. -SteveW From beyhan at deprem.gov.tr Tue Mar 6 23:45:21 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Wed, 07 Mar 2012 09:45:21 +0200 Subject: [mapserver-users] draw line using mysql sahpe file Message-ID: <1331106321.9432.25.camel@localhost> Dear All, For 2 weeks I struggled to draw simple line using mysql database in order to collect to many lines and draw only desired one on the map I followed many way but could not solve the problem at the beginning of my work I stored start and end of the line point on the database as a table on mysql then I try to draw it using ogr. but I could not draw it. Then I firs create shape file of lines than I store it on mysql spatial database by following ogr2ogr -f MySQL MySQL:testogr,user=root,password=password123 sfault1.shp -nln sfault -append -overwrite -lco GEOMETRY_NAME=SHAPE2 then structure of the table created by this command as follows: OGR_FID int(11) Yes NULL SHAPE2 geometry Yes NULL id decimal(1,0) Yes NULL lon double(8,4) Yes NULL lat double(7,4) Yes NULL eq_id varchar(14) Yes NULL same database testogr has a two another table which collect geometry_column and spatial_ref_sys. then I try to draw it on mapserver then I succeeded but it draws all of the line stored in this table using following map layer. LAYER NAME "fault" TYPE line STATUS default CONNECTIONTYPE OGR CONNECTION ' MYSQL:testogr,user=root,password=password123,host=localhost,port=3306,tables=sfault ' DATA sfault CLASS NAME "Kaynak Fay/Source Fault" SYMBOL "cline" SIZE 3 COLOR 255 0 0 END END But I desire only one of them using eq_id column but when I make sql statement as follows. I mean when I add sql statement it draws nothing. But be sure same eq_id comes to map file correctly to draw point of epicenter. There is no problem for it. Also I use EXPRESSION FOR CLASS also it doesn't draw line on the map. Previous map draws all, following draws nothing. How can I pass this handicap. Please let help me. LAYER NAME "fault" TYPE line STATUS default CONNECTIONTYPE OGR CONNECTION ' MYSQL:testogr,user=root,password=password123,host=localhost,port=3306,tables=sfault SELECT eq_id from sfault where eq_id like "%eq_id%" ' DATA sfault # CLASSITEM "eq_id" CLASS # EXPRESSION ([eq_id] EQ 'eq_id') !!!!!! this also doesn't work NAME "Kaynak Fay/Source Fault" SYMBOL "cline" SIZE 3 COLOR 255 0 0 END END -- Murat BEYHAN Geophysical Engineer, M.Sc. Prime Ministry Disaster and Emergency Management Presidency Earthquake Department Address: Eskisehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From reinoud.bokhorst at bmtargoss.com Wed Mar 7 00:29:18 2012 From: reinoud.bokhorst at bmtargoss.com (Reinoud Bokhorst) Date: Wed, 07 Mar 2012 09:29:18 +0100 Subject: [mapserver-users] Base map data for WMS Message-ID: <4F571C5E.8060201@bmtargoss.com> Dear list, Until now I have been using the public Demis, Metacarta, Google Maps services as base map providers in my WMS clients. Since our company creates commercial services, I don't want to be dependent any longer on those because: - availability is never guaranteed - can not use those off-line - license restrictions a la Google Maps prohibits use for closed services So I am keen to start hosting our own base map WMS server containing a good resolution world map to start with. Later local maps for smaller areas can be added. The world map should be something like Demis with layers coastlines, borders, bathymetry, topography, place names, inland waters, main roads and place names. I could buy a WMS server including world map data, e.g. Demis or ArcIMS but I don't really want that. We already use GeoServer and MapServer and would rather add world map data. So I could: 1. buy world map data 2. create world map myself by assembling freely available data (gshhs, etopo, vmap, srtm, ...). I am afraid (2) will cost a lot of time. Regarding (1) I already found world data for sale from DM Solutions and ThinkGeo, are there others? Which is better? There is surprisingly little information on the net about this issue, I guess most people are either using public services or using commercial packages. My question is a general one: I wondered if anybody has encountered the same problem and what solution has been chosen, what data sources when creating a map yourself, other commercial data, what data is better than other, etc. All comments welcome! Reinoud Bokhorst From emacgillavry at hotmail.com Wed Mar 7 00:43:34 2012 From: emacgillavry at hotmail.com (Edward Mac Gillavry) Date: Wed, 7 Mar 2012 09:43:34 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: <4F571C5E.8060201@bmtargoss.com> References: <4F571C5E.8060201@bmtargoss.com> Message-ID: Reinoud, For this, I'd recommend going with OpenStreetMap data (http://www.openstreetmap.org/). You can either download the whole data set for the world yourself and start building, or you can take mapping services from various suppliers. Check out http://www.switch2osm.org/ for further information. You'll be in good company! Kind regards, Edward ------------------------------------------ E. Mac Gillavry (Edward) ------------------------------------------ [t] +31 (0)30-26 72 225 [m] +31 (0)6-45 608 910 ------------------------------------------ [e] emacgillavry at hotmail.com ------------------------------------------ > Date: Wed, 7 Mar 2012 09:29:18 +0100 > From: reinoud.bokhorst at bmtargoss.com > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Base map data for WMS > > Dear list, > > Until now I have been using the public Demis, Metacarta, Google Maps services as base map providers > in my WMS clients. Since our company creates commercial services, I don't want to be dependent any > longer on those because: > - availability is never guaranteed > - can not use those off-line > - license restrictions a la Google Maps prohibits use for closed services > > So I am keen to start hosting our own base map WMS server containing a good resolution world map to > start with. Later local maps for smaller areas can be added. The world map should be something like > Demis with layers coastlines, borders, bathymetry, topography, place names, inland waters, main > roads and place names. > > I could buy a WMS server including world map data, e.g. Demis or ArcIMS but I don't really want > that. We already use GeoServer and MapServer and would rather add world map data. So I could: > 1. buy world map data > 2. create world map myself by assembling freely available data (gshhs, etopo, vmap, srtm, ...). > > I am afraid (2) will cost a lot of time. Regarding (1) I already found world data for sale from DM > Solutions and ThinkGeo, are there others? Which is better? > > There is surprisingly little information on the net about this issue, I guess most people are either > using public services or using commercial packages. > > My question is a general one: I wondered if anybody has encountered the same problem and what > solution has been chosen, what data sources when creating a map yourself, other commercial data, > what data is better than other, etc. All comments welcome! > > Reinoud Bokhorst > > > > > > _______________________________________________ > 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 andrea.aime at geo-solutions.it Wed Mar 7 01:02:52 2012 From: andrea.aime at geo-solutions.it (Andrea Aime) Date: Wed, 7 Mar 2012 10:02:52 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: On Wed, Mar 7, 2012 at 9:43 AM, Edward Mac Gillavry < emacgillavry at hotmail.com> wrote: > Reinoud, > > For this, I'd recommend going with OpenStreetMap data ( > http://www.openstreetmap.org/). You can either download the whole data > set for the world yourself and start building, or you can take mapping > services from various suppliers. Check out http://www.switch2osm.org/ for > further information. You'll be in good company! > I've also seen people download and use OSM data in locations where no internet connection is available (closed networks), they just downloaded the full OSM world file, imported it in postgis using osm in a box, and then used the osm in a box styles to map it with GeoServer. If the dataset is too big and you just need to do low scale cartography the "natural earth" dataset is also quite good: http://www.naturalearthdata.com/downloads/ Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Mar 7 01:16:25 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Mar 2012 10:16:25 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: <4F571C5E.8060201@bmtargoss.com> References: <4F571C5E.8060201@bmtargoss.com> Message-ID: Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you have detailed instructions for how to setup mapserver as a wms server for openstreetmap imagery. As the basemap rendering isn't specially light on server ressources I would recommend using a tile cache and not expose the wms service directly. Mapcache can assemble the cached tiles to serve complete wms getmap requests should some of your clients not support tiled requests (see http://www2.terriscope.fr/geocache/demo/wms for a possible rendering style, you can select the "singletile" layer for untiled getmap requests). -- thomas On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst wrote: > Dear list, > > Until now I have been using the public Demis, Metacarta, Google Maps > services as base map providers in my WMS clients. Since our company creates > commercial services, I don't want to be dependent any longer on those > because: > - availability is never guaranteed > - can not use those off-line > - license restrictions a la Google Maps prohibits use for closed services > > So I am keen to start hosting our own base map WMS server containing a good > resolution world map to start with. Later local maps for smaller areas can > be added. The world map should be something like Demis with layers > coastlines, borders, bathymetry, topography, place names, inland waters, > main roads and place names. > > I could buy a WMS server including world map data, e.g. Demis or ArcIMS but > I don't really want that. We already use GeoServer and MapServer and would > rather add world map data. So I could: > 1. buy world map data > 2. create world map myself by assembling freely available data (gshhs, > etopo, vmap, srtm, ...). > > I am afraid (2) will cost a lot of time. Regarding (1) I already found world > data for sale from DM Solutions and ThinkGeo, are there others? Which is > better? > > There is surprisingly little information on the net about this issue, I > guess most people are either using public services or using commercial > packages. > > My question is a general one: I wondered if anybody has encountered the same > problem and what solution has been chosen, what data sources when creating a > map yourself, other commercial data, what data is better than other, etc. > All comments welcome! > > Reinoud Bokhorst > > > > > > _______________________________________________ > 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 Mar 7 01:29:56 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 7 Mar 2012 09:29:56 +0000 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: <84446DEF76453C439E9E97E438E13A6308337B@suutari.haapa.mmm.fi> Hi, A bit outdated but still super easy way for having a try on Windows http://latuviitta.org/documents/Super_easy_WMS_server.pdf Package is combined from MS4W and mapfiles by Thomas Bonfort. Package will be much better when everything is ready for updating it to contain super fast Spatialite support (exists already in GDAL trunk and seems to make Spatilite faster that PostGIS), preconfigured MapCache and georeferenced PDF output. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > thomas bonfort > L?hetetty: 7. maaliskuuta 2012 11:16 > Vastaanottaja: Reinoud Bokhorst > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Base map data for WMS > > Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you > have detailed instructions for how to setup mapserver as a wms server > for openstreetmap imagery. > As the basemap rendering isn't specially light on server ressources I > would recommend using a tile cache and not expose the wms service > directly. Mapcache can assemble the cached tiles to serve complete wms > getmap requests should some of your clients not support tiled requests > (see http://www2.terriscope.fr/geocache/demo/wms for a possible > rendering style, you can select the "singletile" layer for untiled > getmap requests). > > -- > thomas > > On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst > wrote: > > Dear list, > > > > Until now I have been using the public Demis, Metacarta, Google Maps > > services as base map providers in my WMS clients. Since our > company creates > > commercial services, I don't want to be dependent any > longer on those > > because: > > - availability is never guaranteed > > - can not use those off-line > > - license restrictions a la Google Maps prohibits use for > closed services > > > > So I am keen to start hosting our own base map WMS server > containing a good > > resolution world map to start with. Later local maps for > smaller areas can > > be added. The world map should be something like Demis with layers > > coastlines, borders, bathymetry, topography, place names, > inland waters, > > main roads and place names. > > > > I could buy a WMS server including world map data, e.g. > Demis or ArcIMS but > > I don't really want that. We already use GeoServer and > MapServer and would > > rather add world map data. So I could: > > 1. buy world map data > > 2. create world map myself by assembling freely available > data (gshhs, > > etopo, vmap, srtm, ...). > > > > I am afraid (2) will cost a lot of time. Regarding (1) I > already found world > > data for sale from DM Solutions and ThinkGeo, are there > others? Which is > > better? > > > > There is surprisingly little information on the net about > this issue, I > > guess most people are either using public services or using > commercial > > packages. > > > > My question is a general one: I wondered if anybody has > encountered the same > > problem and what solution has been chosen, what data > sources when creating a > > map yourself, other commercial data, what data is better > than other, etc. > > All comments welcome! > > > > Reinoud Bokhorst > > > > > > > > > > > > _______________________________________________ > > 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 reinoud.bokhorst at bmtargoss.com Wed Mar 7 01:57:53 2012 From: reinoud.bokhorst at bmtargoss.com (Reinoud Bokhorst) Date: Wed, 07 Mar 2012 10:57:53 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: <4F573121.4030001@bmtargoss.com> Thank you for your answers. @Edward: Thank you for that link, just what I needed. I have been looking at OSM before but it always seemed to be mainly about street maps with too many features and I never really found out how to use it. In the link you provided I now also see decent topographic maps so I'll certainly give it a try! @Andrea: Natural Earth indeed seems to be a good alternative to start with, thank you for that link. On 03/07/2012 10:02 AM, Andrea Aime wrote: > On Wed, Mar 7, 2012 at 9:43 AM, Edward Mac Gillavry > wrote: > > Reinoud, > > For this, I'd recommend going with OpenStreetMap data (http://www.openstreetmap.org/). You can > either download the whole data set for the world yourself and start building, or you can take > mapping services from various suppliers. Check out http://www.switch2osm.org/ for further > information. You'll be in good company! > > > I've also seen people download and use OSM data in locations where no internet connection is available > (closed networks), they just downloaded the full OSM world file, imported it in postgis using osm > in a box, > and then used the osm in a box styles to map it with GeoServer. > > If the dataset is too big and you just need to do low scale cartography the "natural earth" > dataset is also > quite good: http://www.naturalearthdata.com/downloads/ > > Cheers > Andrea > > -- > ------------------------------------------------------- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > mob: +39 339 8844549 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ------------------------------------------------------- -- -- Reinoud Bokhorst Advisor Oceanography& ICT Tel: +31 (0)527 242 299 Fax: +31 (0)527 242 016 Website: www.bmtargoss.com BMT ARGOSS b.v., Voorsterweg 28, 8316 PT, Marknesse, The Netherlands (Postal address : PO Box 61, 8325 ZH, Vollenhove, The Netherlands) Registered in The Netherlands, Registered no. 39060160. Unless otherwise agreed by BMT ARGOSS in writing, all work, services, goods or products supplied by BMT ARGOSS shall be subject to and governed by BMT ARGOSS?s own terms and conditions which are available for inspection from BMT ARGOSS on request. E-mail confidentiality notice and disclaimer: The contents of this e-mail and any attachments are intended for the use of the mail addressee(s) shown. If you are not that person, you are not allowed to read it, to take any action based upon it or to copy it, forward, distribute or disclose the contents of it and you should please delete it from your system. BMT ARGOSS does not accept liability for any errors or omissions in the context of this e-mail or its attachments which arise as a result of internet transmission, nor accept liability for statements which are those of the author and clearly not made on behalf of BMT ARGOSS. Please consider the environmental impacts of printing this email, and only do so if really necessary -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinoud.bokhorst at bmtargoss.com Wed Mar 7 02:13:40 2012 From: reinoud.bokhorst at bmtargoss.com (Reinoud Bokhorst) Date: Wed, 07 Mar 2012 11:13:40 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: <4F5734D4.6080402@bmtargoss.com> Thank you. Yes, I was planning to use a tile cache for this service. I am not new to MapServer but have never used OSM or tile caching and am not particularly experienced in styling, so I have many questions now. But I'll first study the documentation in the answers! On 03/07/2012 10:16 AM, thomas bonfort wrote: > Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you > have detailed instructions for how to setup mapserver as a wms server > for openstreetmap imagery. > As the basemap rendering isn't specially light on server ressources I > would recommend using a tile cache and not expose the wms service > directly. Mapcache can assemble the cached tiles to serve complete wms > getmap requests should some of your clients not support tiled requests > (see http://www2.terriscope.fr/geocache/demo/wms for a possible > rendering style, you can select the "singletile" layer for untiled > getmap requests). > > -- > thomas > > On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst > wrote: >> Dear list, >> >> Until now I have been using the public Demis, Metacarta, Google Maps >> services as base map providers in my WMS clients. Since our company creates >> commercial services, I don't want to be dependent any longer on those >> because: >> - availability is never guaranteed >> - can not use those off-line >> - license restrictions a la Google Maps prohibits use for closed services >> >> So I am keen to start hosting our own base map WMS server containing a good >> resolution world map to start with. Later local maps for smaller areas can >> be added. The world map should be something like Demis with layers >> coastlines, borders, bathymetry, topography, place names, inland waters, >> main roads and place names. >> >> I could buy a WMS server including world map data, e.g. Demis or ArcIMS but >> I don't really want that. We already use GeoServer and MapServer and would >> rather add world map data. So I could: >> 1. buy world map data >> 2. create world map myself by assembling freely available data (gshhs, >> etopo, vmap, srtm, ...). >> >> I am afraid (2) will cost a lot of time. Regarding (1) I already found world >> data for sale from DM Solutions and ThinkGeo, are there others? Which is >> better? >> >> There is surprisingly little information on the net about this issue, I >> guess most people are either using public services or using commercial >> packages. >> >> My question is a general one: I wondered if anybody has encountered the same >> problem and what solution has been chosen, what data sources when creating a >> map yourself, other commercial data, what data is better than other, etc. >> All comments welcome! >> >> Reinoud Bokhorst >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- -- Reinoud Bokhorst Advisor Oceanography& ICT Tel: +31 (0)527 242 299 Fax: +31 (0)527 242 016 Website: www.bmtargoss.com BMT ARGOSS b.v., Voorsterweg 28, 8316 PT, Marknesse, The Netherlands (Postal address : PO Box 61, 8325 ZH, Vollenhove, The Netherlands) Registered in The Netherlands, Registered no. 39060160. Unless otherwise agreed by BMT ARGOSS in writing, all work, services, goods or products supplied by BMT ARGOSS shall be subject to and governed by BMT ARGOSS?s own terms and conditions which are available for inspection from BMT ARGOSS on request. E-mail confidentiality notice and disclaimer: The contents of this e-mail and any attachments are intended for the use of the mail addressee(s) shown. If you are not that person, you are not allowed to read it, to take any action based upon it or to copy it, forward, distribute or disclose the contents of it and you should please delete it from your system. BMT ARGOSS does not accept liability for any errors or omissions in the context of this e-mail or its attachments which arise as a result of internet transmission, nor accept liability for statements which are those of the author and clearly not made on behalf of BMT ARGOSS. Please consider the environmental impacts of printing this email, and only do so if really necessary From pcorti at gmail.com Wed Mar 7 02:36:14 2012 From: pcorti at gmail.com (Paolo Corti) Date: Wed, 7 Mar 2012 11:36:14 +0100 Subject: [mapserver-users] draw line using mysql sahpe file In-Reply-To: <1331106321.9432.25.camel@localhost> References: <1331106321.9432.25.camel@localhost> Message-ID: > But I desire only one of them using eq_id column but when I make sql > statement as follows. I mean when I add sql statement it draws nothing. > But be sure same eq_id comes to map file correctly to draw point of > epicenter. There is no problem for it. Also I use EXPRESSION FOR CLASS > also it doesn't draw line on the map. Previous map draws all, following > draws nothing. How can I pass this handicap. Please let help me. > LAYER > ? ? NAME "fault" > ? ? TYPE line > ? ? STATUS default > ? CONNECTIONTYPE OGR > ? CONNECTION ' > ? > MYSQL:testogr,user=root,password=password123,host=localhost,port=3306,tables=sfault > SELECT eq_id from sfault where eq_id like ?"%eq_id%" > > ' > In your SrcSQL you need to include the geometry field. You have to include the GeometryField subelement as well. Always try to use ogrinfo to check if the dataset is returning expected results (specially for geometry) best regards P -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From beyhan at deprem.gov.tr Wed Mar 7 04:08:51 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Wed, 07 Mar 2012 14:08:51 +0200 Subject: [mapserver-users] draw line using mysql sahpe file In-Reply-To: References: <1331106321.9432.25.camel@localhost> Message-ID: <1331122131.6718.1.camel@localhost> Dear Paolo, Thanks for your advice, as you said just change select * form sfault then it works fine... wonderful it took 2 weeks to see these result many thanks murat On Wed, 2012-03-07 at 11:36 +0100, Paolo Corti wrote: > SELECT eq_id from sfault where eq_id like "%eq_id%" Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From oliver.christen at camptocamp.com Wed Mar 7 04:26:32 2012 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Wed, 7 Mar 2012 13:26:32 +0100 Subject: [mapserver-users] GetLegendGraphic legend image generated as line for polygon without color Message-ID: dear all Im trying to find a way to tell Mapserver to render the legend icon for a polygon layer with no color (transparent) (only outlinecolor) as a polygon legend (rectangle) and not as a line legend (zig-zag line) see below for my layer definition the currently generated legend image is: http://dev.camptocamp.com/files/mapserver/legend.png I have tried to specify a COLOR -1 -1 -1 to force Mapserver to handle the legend image as a polygon (rectangle) without success. any idea if there is a "trick" to force Mapserver to render the legend as a rectangle and not as a zig-zag line ? thanks in advance Oliver LAYER NAME "movd_cad_tpr_prf_s" METADATA "wms_title" "SitCdParcellaireLineDDPtt2_" END TYPE POLYGON DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S STATUS ON MAXSCALE 10001 CLASS NAME "Prf" STYLE OUTLINECOLOR 255 0 0 WIDTH 3 END END END From thomas.bonfort at gmail.com Wed Mar 7 04:35:32 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Mar 2012 13:35:32 +0100 Subject: [mapserver-users] GetLegendGraphic legend image generated as line for polygon without color In-Reply-To: References: Message-ID: c.f. http://trac.osgeo.org/mapserver/ticket/4104 here's an ugly hack that *should* work (not tested): CLASS STYLE COLOR 0 0 0 OPACITY 0 END STYLE OUTLINECOLOR 255 0 0 WIDTH 3 END END On Wed, Mar 7, 2012 at 13:26, Oliver Christen wrote: > dear all > > Im trying to find a way to tell Mapserver to render the legend icon > for a polygon layer with no color (transparent) (only outlinecolor) as > a polygon legend (rectangle) and not as a line legend (zig-zag line) > > see below for my layer definition > > the currently generated legend image is: > http://dev.camptocamp.com/files/mapserver/legend.png > > I have tried to specify a > COLOR -1 -1 -1 > to force Mapserver to handle the legend image as a polygon (rectangle) > without success. > > any idea if there is a "trick" to force Mapserver to render the legend > as a rectangle and not as a zig-zag line ? > > thanks in advance > Oliver > > ?LAYER > ? NAME "movd_cad_tpr_prf_s" > ? METADATA > ? ? "wms_title" "SitCdParcellaireLineDDPtt2_" > ? END > ? TYPE POLYGON > ? DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S > ? STATUS ON > > ? MAXSCALE 10001 > > ? CLASS > ? ? NAME "Prf" > ? ? STYLE > ? ? ? OUTLINECOLOR 255 0 0 > ? ? ? WIDTH 3 > ? ? END > ? END > ?END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From oliver.christen at camptocamp.com Wed Mar 7 04:43:34 2012 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Wed, 7 Mar 2012 13:43:34 +0100 Subject: [mapserver-users] GetLegendGraphic legend image generated as line for polygon without color In-Reply-To: References: Message-ID: excellent! this works perfectly thank you very much On Wed, Mar 7, 2012 at 1:35 PM, thomas bonfort wrote: > c.f. http://trac.osgeo.org/mapserver/ticket/4104 > > here's an ugly hack that *should* work (not tested): > > CLASS > ?STYLE > ? ?COLOR 0 0 0 > ? ?OPACITY 0 > ?END > ?STYLE > ? ?OUTLINECOLOR 255 0 0 > ? ?WIDTH 3 > ?END > END > > On Wed, Mar 7, 2012 at 13:26, Oliver Christen > wrote: >> dear all >> >> Im trying to find a way to tell Mapserver to render the legend icon >> for a polygon layer with no color (transparent) (only outlinecolor) as >> a polygon legend (rectangle) and not as a line legend (zig-zag line) >> >> see below for my layer definition >> >> the currently generated legend image is: >> http://dev.camptocamp.com/files/mapserver/legend.png >> >> I have tried to specify a >> COLOR -1 -1 -1 >> to force Mapserver to handle the legend image as a polygon (rectangle) >> without success. >> >> any idea if there is a "trick" to force Mapserver to render the legend >> as a rectangle and not as a zig-zag line ? >> >> thanks in advance >> Oliver >> >> ?LAYER >> ? NAME "movd_cad_tpr_prf_s" >> ? METADATA >> ? ? "wms_title" "SitCdParcellaireLineDDPtt2_" >> ? END >> ? TYPE POLYGON >> ? DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S >> ? STATUS ON >> >> ? MAXSCALE 10001 >> >> ? CLASS >> ? ? NAME "Prf" >> ? ? STYLE >> ? ? ? OUTLINECOLOR 255 0 0 >> ? ? ? WIDTH 3 >> ? ? END >> ? END >> ?END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From pcorti at gmail.com Wed Mar 7 07:00:33 2012 From: pcorti at gmail.com (Paolo Corti) Date: Wed, 7 Mar 2012 16:00:33 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: On Wed, Mar 7, 2012 at 10:16 AM, thomas bonfort wrote: > Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you > have detailed instructions for how to setup mapserver as a wms server > for openstreetmap imagery. > As the basemap rendering isn't specially light on server ressources I > would recommend using a tile cache and not expose the wms service > directly. Mapcache can assemble the cached tiles to serve complete wms > getmap requests should some of your clients not support tiled requests > (see http://www2.terriscope.fr/geocache/demo/wms for a possible > rendering style, you can select the "singletile" layer for untiled > getmap requests). for keeping things even much easier, and without the need to create a dedicated GIS infrastructure, I think Reinoud could just start caching the OSM service (for example with MapProxy, MapCache, GeoWebCache, TileCache, there is a wide choice). This should be compatible with the OSM license AFAIK. P -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From thomas.bonfort at gmail.com Wed Mar 7 07:11:08 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Mar 2012 16:11:08 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: On Wed, Mar 7, 2012 at 16:00, Paolo Corti wrote: > On Wed, Mar 7, 2012 at 10:16 AM, thomas bonfort > wrote: >> Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you >> have detailed instructions for how to setup mapserver as a wms server >> for openstreetmap imagery. >> As the basemap rendering isn't specially light on server ressources I >> would recommend using a tile cache and not expose the wms service >> directly. Mapcache can assemble the cached tiles to serve complete wms >> getmap requests should some of your clients not support tiled requests >> (see http://www2.terriscope.fr/geocache/demo/wms for a possible >> rendering style, you can select the "singletile" layer for untiled >> getmap requests). > > for keeping things even much easier, and without the need to create a > dedicated GIS infrastructure, I think Reinoud could just start caching > the OSM service (for example with MapProxy, MapCache, GeoWebCache, > TileCache, there is a wide choice). > This should be compatible with the OSM license AFAIK. One of the mentioned constraints was offline usage... > > P > > -- > Paolo Corti > Geospatial software developer > web: http://www.paolocorti.net > twitter: @capooti > skype: capooti From pcorti at gmail.com Wed Mar 7 07:23:38 2012 From: pcorti at gmail.com (Paolo Corti) Date: Wed, 7 Mar 2012 16:23:38 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: > > One of the mentioned constraints was offline usage... > yes, but it is possible to pre-generate the tiles, though not sure if this is feasible on just one server for the whole OSM dataset, but maybe for much simpler datasets would be the way to go P -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From thomas.bonfort at gmail.com Wed Mar 7 07:43:13 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Mar 2012 16:43:13 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: On Wed, Mar 7, 2012 at 16:23, Paolo Corti wrote: >> >> One of the mentioned constraints was offline usage... >> > > yes, but it is possible to pre-generate the tiles, though not sure if > this is feasible on just one server for the whole OSM dataset, but > maybe for much simpler datasets would be the way to go > P By "pregenerate" I suppose you mean pre-download from the osm servers? This in the general case is prohibited by osm's TOS : http://wiki.openstreetmap.org/wiki/Tile_usage_policy > > -- > Paolo Corti > Geospatial software developer > web: http://www.paolocorti.net > twitter: @capooti > skype: capooti From pcorti at gmail.com Wed Mar 7 08:41:01 2012 From: pcorti at gmail.com (Paolo Corti) Date: Wed, 7 Mar 2012 17:41:01 +0100 Subject: [mapserver-users] Base map data for WMS In-Reply-To: References: <4F571C5E.8060201@bmtargoss.com> Message-ID: > By "pregenerate" I suppose you mean pre-download from the osm servers? > This in the general case is prohibited by osm's TOS : > http://wiki.openstreetmap.org/wiki/Tile_usage_policy Yes, I am referring to the possibility to do the "seeding" of the tiles, for example, referring to MapProxy, look at the mapproxy-seed command [1]. Looking at the link you sent, the sentence "Bulk downloading is strongly discouraged. Do not download tiles unnecessarily." seems to prohibit this use case, so you are definitely right. Thought, this would be seem prohibited just for zoom levels >= 17: "In particular, downloading significant areas of tiles at zoom levels 17 and higher for offline or later usage is forbidden without prior consultation with a System Administrator. These tiles are generally not available (cached) on the server in advance, and have to be rendered specifically for those requests, putting an unjustified burden on the available resources. To avoid having your access blocked, please discuss your requirement with system administrators either via their wiki pages or on the IRC channel prior to starting." In any case, as supposed in my previous email, it is not feasible to seed the whole OSM on common cases normal sized hardware (unless you want just to display maps to low zoom levels): on the OSM own servers they are not caching it for zoom levels >= 17 and I guess they have a very large infrastructure. But, could still be a viable approach for smaller datasets coming from existing WMS that do not prohibit this kind of use. thanks for pointing this out ;) P [1] http://mapproxy.org/docs/1.3.0/seed.html -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From scott159 at free.fr Wed Mar 7 11:33:47 2012 From: scott159 at free.fr (scott159 at free.fr) Date: Wed, 7 Mar 2012 20:33:47 +0100 (CET) Subject: [mapserver-users] RasterLite In-Reply-To: <1715343082.15558184.1331148774385.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <763886423.15559265.1331148827863.JavaMail.root@zimbra34-e6.priv.proxad.net> Hi, I would like to use rasterlite database (test.db) with mapserver. The rasterlite (test-WGS84.db) is generated with mapcache. How to configure mapserver to visualize these this database ? OGR connection ? What are parameters to add in mapfile ? thanks scott From thomas.bonfort at gmail.com Wed Mar 7 11:56:38 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 7 Mar 2012 20:56:38 +0100 Subject: [mapserver-users] RasterLite In-Reply-To: <763886423.15559265.1331148827863.JavaMail.root@zimbra34-e6.priv.proxad.net> References: <1715343082.15558184.1331148774385.JavaMail.root@zimbra34-e6.priv.proxad.net> <763886423.15559265.1331148827863.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: the sqlite database generated by mapcache is not a rasterlite database, it's a "proprietary" schema that allows access to individual tiles. -- thomas On Wed, Mar 7, 2012 at 20:33, wrote: > Hi, > > I would like to use rasterlite database (test.db) with mapserver. The rasterlite (test-WGS84.db) is generated with mapcache. > How to configure mapserver to visualize these this database ? OGR connection ? What are parameters to add in mapfile ? > > thanks > > scott > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Mar 7 12:23:57 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 07 Mar 2012 15:23:57 -0500 Subject: [mapserver-users] RasterLite In-Reply-To: References: <1715343082.15558184.1331148774385.JavaMail.root@zimbra34-e6.priv.proxad.net> <763886423.15559265.1331148827863.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <4F57C3DD.1080303@swoodbridge.com> Thomas, That said, it might be an interesting idea to provide a mapserver layer provider that can consume tiles directly from this as an idea. -Steve It's 61F here and sunny, feels like spring, maybe I'm just a little manic :) On 3/7/2012 2:56 PM, thomas bonfort wrote: > the sqlite database generated by mapcache is not a rasterlite > database, it's a "proprietary" schema that allows access to individual > tiles. > > -- > thomas > > On Wed, Mar 7, 2012 at 20:33, wrote: >> Hi, >> >> I would like to use rasterlite database (test.db) with mapserver. The rasterlite (test-WGS84.db) is generated with mapcache. >> How to configure mapserver to visualize these this database ? OGR connection ? What are parameters to add in mapfile ? >> >> thanks >> >> scott >> _______________________________________________ >> 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 y.lybliamay at naomis.fr Thu Mar 8 02:20:50 2012 From: y.lybliamay at naomis.fr (Yenkong LYBLIAMAY) Date: Thu, 8 Mar 2012 11:20:50 +0100 Subject: [mapserver-users] PHPMapScript and OSM Message-ID: <000501ccfd15$26b0c000$74124000$@naomis.fr> Hello, Is it possible throught PHPMapScript to get an image from a mapfile which have two layers ? The first layer should call a WMS (or WFS ?) from OpenStreetMap in order to get the bottom of plan and the second layer in order to add POI. If you have some example, it will be great. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricardo.garcia.silva at gmail.com Thu Mar 8 02:31:31 2012 From: ricardo.garcia.silva at gmail.com (Ricardo Filipe Soares Garcia da) Date: Thu, 8 Mar 2012 10:31:31 +0000 Subject: [mapserver-users] WMS GetFeatureInfo with spatialite datasource not working Message-ID: Hello list I am setting up a WMS service based on a spatialite database. I can't seem to make GetFeatureInfo requests. I've searched this list's archives and found this [1] but there was no follow-up. My problem seems to be exactly the same as the one describe in the link. I'm also using OGR as the connection type. GetFeatureInfo always returns 'Search returned no results' but GetMap works fine. Is this a known issue? Or maybe there is something wrong with the mapfile (included in the end of this message)? If I use a shapefile instead of the spatialite database everything works fine, but I don't want to do that because I'm developing a geodjango application based on the same database. Thanks [1] - http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070759.html #Mapfile MAP SHAPEPATH '/home/ricardo/dev/fliavisitors/fliavisitors' NAME 'testing' PROJECTION 'init=epsg:4326' END WEB METADATA 'wms_title' 'CAOP continente (local)' 'wms_onlineresource' 'http://localhost/cgi-bin/g2?' 'wms_srs' 'EPSG:4326' 'wms_enable_request' '*' END END IMAGETYPE PNG EXTENT -9.517029 36.961710 -6.189159 42.154311 SIZE 800 600 IMAGECOLOR 0 0 0 LAYER NAME 'continente' STATUS OFF TEMPLATE 'template/blank.html' DUMP TRUE PROJECTION 'init=epsg:4326' END METADATA 'wms_title' 'continente' 'wms_srs' 'EPSG:4326' 'wms_enable_request' '*' 'wms_include_items' 'all' 'gml_include_items' 'all' END CONNECTIONTYPE OGR CONNECTION 'geodjango.db' DATA 'collectvisitors_caopcontinente' #DATA 'collectvisitors/data/caop_continente' TYPE POLYGON CLASS NAME 'freguesias' STYLE COLOR 255 255 120 END END END END -- ___________________________ ___ __ Ricardo Garcia Silva From kguardado at gmail.com Thu Mar 8 07:57:58 2012 From: kguardado at gmail.com (Karina Guardado) Date: Thu, 8 Mar 2012 09:57:58 -0600 Subject: [mapserver-users] WMSGetFeatureInfo problem Message-ID: From: Karina Guardado Date: Mon, Mar 5, 2012 at 4:24 PM Subject: problems with getinformation To: "mapserver-users at lists.osgeo.org" Hi, I'm working with Mapserver, openlayers and mapfish on linux Debian. I have added a option in map application to get information from a map by click on it. toolbar.addControl(new OpenLayers.Control.WMSGetFeatureInfo({ isDefault: true, title: 'Info' }), { iconCls: 'query', toggleGroup: 'map' }); toolbar.activate(); But when i click on one point for example it is looking but doesn't shoe anything and when looking at the fireburg result I found this msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html). I ask me if this is a problem with mapserver or with openlayers, any help please. thanks in advance. regards, Karina Guardado El Salvador -- ========================================================== M.Sc. Karina Guardado Unidad de Inform?tica Facultad de Ciencias Naturales y Matem?tica Universidad de El Salvador Final 25 Av. Nte. San Salvador, El Salvador Tel. (503) 2511 2000 x. 5013 Celular: (503) 7115 2898 13?43'7.58" N 89?12'18.31"W -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at gmail.com Thu Mar 8 08:27:34 2012 From: pcorti at gmail.com (Paolo Corti) Date: Thu, 8 Mar 2012 17:27:34 +0100 Subject: [mapserver-users] WMSGetFeatureInfo problem In-Reply-To: References: Message-ID: > But when i click on one point for example it is looking but doesn't shoe > anything and when looking at the fireburg result I found this > > msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value > (text/html). > > > > I ask me if this is a problem with mapserver or with openlayers, any help > please. most likely you are missing the the wms_feature_info_mime_type metadata item [1]: add "wms_feature_info_mime_type" "text/html" in the WEB/METADATA section of mapfile best regards P [1] http://mapserver.org/ogc/wms_server.html -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From ian.walberg at airborne.aero Thu Mar 8 08:48:21 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 8 Mar 2012 11:48:21 -0500 Subject: [mapserver-users] Image resample options Message-ID: Hello, Where can we find a list of the available resample types? PROCESSING "RESAMPLE=BILINEAR" Thanks Ian From Michael.Smith at usace.army.mil Thu Mar 8 08:55:35 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Thu, 8 Mar 2012 16:55:35 +0000 Subject: [mapserver-users] Re: [mapserver-dev] Image resample options In-Reply-To: Message-ID: Ian, Look here http://mapserver.org/input/raster.html#special-processing-directives Options are RESAMPLE=NEAREST/AVERAGE/BILINEAR Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 3/8/12 11:48 AM, "Ian Walberg" wrote: >Hello, > >Where can we find a list of the available resample types? > > PROCESSING "RESAMPLE=BILINEAR" > >Thanks > >Ian >_______________________________________________ >mapserver-dev mailing list >mapserver-dev at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-dev From Jukka.Rahkonen at mmmtike.fi Thu Mar 8 08:57:03 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 8 Mar 2012 16:57:03 +0000 Subject: [mapserver-users] Re: Image resample options In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63083705@suutari.haapa.mmm.fi> Hi, Tried with "mapserver" and "processing" from Yahoo search and first hit leads to http://www.mapserver.org/input/raster.html#special-processing-directives http://www.mapserver.org/development/rfc/ms-rfc-4.html#rfc4 -Jukka Rahkonen- ________________________________________ Ian Walberg wrote: > Hello, > Where can we find a list of the available resample types? PROCESSING "RESAMPLE=BILINEAR" Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Thu Mar 8 09:18:04 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 8 Mar 2012 12:18:04 -0500 Subject: [mapserver-users] Re: Image resample options Message-ID: Thanks for the replies, my question was not quite correct. The real question is are these the only resample types supported? PROCESSING "RESAMPLE=NEAREST" PROCESSING "RESAMPLE=AVERAGE" PROCESSING "RESAMPLE=BILINEAR" PROCESSING "RESAMPLE=BICUBIC" Given that gdal looks like it supports others, we had assumed these were a pass through. >From gdalwarp :- near: nearest neighbour resampling (default, fastest algorithm, worst interpolation quality). bilinear: bilinear resampling. cubic: cubic resampling. cubicspline: cubic spline resampling. lanczos: Lanczos windowed sinc resampling. Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Thursday, March 08, 2012 8:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Image resample options Hi, Tried with "mapserver" and "processing" from Yahoo search and first hit leads to http://www.mapserver.org/input/raster.html#special-processing-directives http://www.mapserver.org/development/rfc/ms-rfc-4.html#rfc4 -Jukka Rahkonen- ________________________________________ Ian Walberg wrote: > Hello, > Where can we find a list of the available resample types? PROCESSING "RESAMPLE=BILINEAR" Thanks Ian _______________________________________________ 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 pcreso at pcreso.com Thu Mar 8 09:29:23 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Thu, 8 Mar 2012 09:29:23 -0800 (PST) Subject: [mapserver-users] Base map data for WMS In-Reply-To: Message-ID: <1331227763.53127.YahooMailClassic@web160701.mail.bf1.yahoo.com> Bulk downloads are indeed discouraged, but setting up your own OSM database (imposm, osmosis, etc...) from downloaded OSM data, & creating a locally cached tileset from these data is supported, if not encouraged. Brent Wood --- On Thu, 3/8/12, thomas bonfort wrote: From: thomas bonfort Subject: Re: [mapserver-users] Base map data for WMS To: "Paolo Corti" Cc: mapserver-users at lists.osgeo.org Date: Thursday, March 8, 2012, 4:43 AM On Wed, Mar 7, 2012 at 16:23, Paolo Corti wrote: >> >> One of the mentioned constraints was offline usage... >> > > yes, but it is possible to pre-generate the tiles, though not sure if > this is feasible on just one server for the whole OSM dataset, but > maybe for much simpler datasets would be the way to go > P By "pregenerate" I suppose you mean pre-download from the osm servers? This in the general case is prohibited by osm's TOS : http://wiki.openstreetmap.org/wiki/Tile_usage_policy > > -- > Paolo Corti > Geospatial software developer > web: http://www.paolocorti.net > twitter: @capooti > skype: capooti _______________________________________________ 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 reachstuart at yahoo.com.au Thu Mar 8 16:32:52 2012 From: reachstuart at yahoo.com.au (Stuart) Date: Fri, 9 Mar 2012 11:32:52 +1100 Subject: [mapserver-users] Getting an image scaled to pixels Message-ID: Hi, I have a csharp application using map_script that I am using to cut up an ECW file into tiles for display on a Bing map. The issue I am having is that each tile slightly overlaps others above and below it. The procedure I am using is as follows: I load the basic map file below add the projection and units from within a csharp application: mapserverMap = new mapObj(mapOutputPath + mapFileName); mapserverMap.setWKTProjection("+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs "); mapserverMap.setSize(256, 256); mapserverMap.units = MS_UNITS.MS_DD ; I then use the csharp application to add a single RASTER layer layerObj layer = new layerObj(mapserverMap); Console.WriteLine(mapserverMap.layerorder); layer.name = ecwName; layer.type = MS_LAYER_TYPE.MS_LAYER_RASTER; layer.status = mapscript.MS_ON; layer.sizeunits = (int)MS_UNITS.MS_PIXELS; var extentdoubles = GetPlanExtentFromDB(ecwName, planConnectionString); layer.setExtent(extentdoubles[0], extentdoubles[1], extentdoubles[2], extentdoubles[3]); layer.data = mapOutputPath + ecwName + ".ecw"; I have identified the issue is when for each quadKey I set the mapserverMap extent to the bounding box of the quadKey MapServer changes the latitudes of its extent to fit the map size (256 x 256) e.g. for quadKey 31121320312020 i set the MapServer extent to: maxX 152.95166015625 maxY -30.334953881988554 minX 152.9296875 minY -30.353916372297036 Then after setting the extent if I ask MapServer for its extent it returns: mapserverMap.extent {OSGeo.MapServer.rectObj} maxx: 152.95166015625 maxy: -30.333448799017795 minx: 152.9296875 miny: -30.355421455267795 Notice the Longitudes are the same but the Latitudes (minY, maxY) have been stretched. So my question is that when I set mapserverMap object to the bounding box I want it to be set to the latitude and longitude given and stretched to fit the map size (256 x 256) rather than MapServer modifying the latitudes to fit the map size. Any help would be appreciated. Stuart -- Here is the starting map file MAP NAME MyMap DEBUG ON IMAGECOLOR 128 155 155 UNITS DD RESOLUTION 96 TRANSPARENT OFF CONFIG "PROJ_LIB" "/ms4w/proj/nad/" CONFIG "CPL_DEBUG" "ON" SYMBOLSET ./etc/symbols.sym IMAGETYPE png FONTSET ./etc/fonts.txt END From Andreas.Eichner at sid.sachsen.de Thu Mar 8 23:16:47 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 9 Mar 2012 08:16:47 +0100 Subject: AW: [mapserver-users] Getting an image scaled to pixels References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF307@KS-EVS1.smi.sachsen.de> You might try: mapserverMap.setConfigOption("MS_NONSQUARE", "YES"); this is basically what that WMS server code does to enable non-square pixels. HTH > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Stuart > Gesendet: Freitag, 9. M?rz 2012 01:33 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Getting an image scaled to pixels > > Hi, > > I have a csharp application using map_script that I am using to cut up > an ECW file into tiles for display on a Bing map. The issue I am > having is that each tile slightly overlaps others above and below it. > The procedure I am using is as follows: > > I load the basic map file below add the projection and units from > within a csharp application: > > mapserverMap = new mapObj(mapOutputPath + mapFileName); > mapserverMap.setWKTProjection("+proj=merc +a=6378137 +b=6378137 > +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null > +no_defs "); > mapserverMap.setSize(256, 256); > mapserverMap.units = MS_UNITS.MS_DD ; > > > I then use the csharp application to add a single RASTER layer > > layerObj layer = new layerObj(mapserverMap); > Console.WriteLine(mapserverMap.layerorder); > layer.name = ecwName; > layer.type = MS_LAYER_TYPE.MS_LAYER_RASTER; > layer.status = mapscript.MS_ON; > layer.sizeunits = (int)MS_UNITS.MS_PIXELS; > > var extentdoubles = GetPlanExtentFromDB(ecwName, > planConnectionString); > layer.setExtent(extentdoubles[0], extentdoubles[1], > extentdoubles[2], extentdoubles[3]); > > layer.data = mapOutputPath + ecwName + ".ecw"; > > I have identified the issue is when for each quadKey I set the > mapserverMap extent to the bounding box of the quadKey MapServer > changes the latitudes of its extent to fit the map size (256 x 256) > > e.g. for quadKey 31121320312020 i set the MapServer extent to: > > maxX > 152.95166015625 > maxY > -30.334953881988554 > minX > 152.9296875 > minY > -30.353916372297036 > > Then after setting the extent if I ask MapServer for its > extent it returns: > > mapserverMap.extent > {OSGeo.MapServer.rectObj} > maxx: 152.95166015625 > maxy: -30.333448799017795 > minx: 152.9296875 > miny: -30.355421455267795 > > Notice the Longitudes are the same but the Latitudes (minY, maxY) have > been stretched. > > So my question is that when I set mapserverMap object to the bounding > box I want it to be set to the latitude and longitude given and > stretched to fit the map size (256 x 256) rather than MapServer > modifying the latitudes to fit the map size. > > Any help would be appreciated. > > Stuart > > -- > > Here is the starting map file > > MAP > NAME MyMap > > DEBUG ON > IMAGECOLOR 128 155 155 > > UNITS DD > RESOLUTION 96 > TRANSPARENT OFF > CONFIG "PROJ_LIB" "/ms4w/proj/nad/" > CONFIG "CPL_DEBUG" "ON" > SYMBOLSET ./etc/symbols.sym > IMAGETYPE png > FONTSET ./etc/fonts.txt > > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From reachstuart at yahoo.com.au Fri Mar 9 00:05:57 2012 From: reachstuart at yahoo.com.au (Stuart) Date: Fri, 9 Mar 2012 19:05:57 +1100 Subject: [mapserver-users] Getting an image scaled to pixels In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF307@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF307@KS-EVS1.smi.sachsen.de> Message-ID: Hi Andreas, I put the config line in the code with no change sorry, although that does sound like exactly what I am after. Thanks. Stuart On Fri, Mar 9, 2012 at 6:16 PM, Eichner, Andreas - SID-NLKM wrote: > > You might try: > > mapserverMap.setConfigOption("MS_NONSQUARE", "YES"); > > this is basically what that WMS server code does to enable non-square pixels. > > HTH > > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Stuart >> Gesendet: Freitag, 9. M?rz 2012 01:33 >> An: mapserver-users at lists.osgeo.org >> Betreff: [mapserver-users] Getting an image scaled to pixels >> >> Hi, >> >> I have a csharp application using map_script that I am using to cut up >> an ECW file into tiles for display on a Bing map. The issue I am >> having is that each tile slightly overlaps others above and below it. >> The procedure I am using is as follows: >> >> I load the basic map file below add the projection and units from >> within a csharp application: >> >> ? ?mapserverMap = new mapObj(mapOutputPath + mapFileName); >> ? ?mapserverMap.setWKTProjection("+proj=merc +a=6378137 +b=6378137 >> +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null >> +no_defs "); >> ? ?mapserverMap.setSize(256, 256); >> ? ?mapserverMap.units = MS_UNITS.MS_DD ; >> >> >> I then use the csharp application to add a single RASTER layer >> >> ? ?layerObj layer = new layerObj(mapserverMap); >> ? ?Console.WriteLine(mapserverMap.layerorder); >> ? ?layer.name = ecwName; >> ? ?layer.type = MS_LAYER_TYPE.MS_LAYER_RASTER; >> ? ?layer.status = mapscript.MS_ON; >> ? ?layer.sizeunits = (int)MS_UNITS.MS_PIXELS; >> >> ? ?var extentdoubles = GetPlanExtentFromDB(ecwName, >> planConnectionString); >> ? ?layer.setExtent(extentdoubles[0], extentdoubles[1], >> extentdoubles[2], extentdoubles[3]); >> >> ? ?layer.data = mapOutputPath + ecwName + ".ecw"; >> >> I have identified the issue is when for each quadKey I set the >> mapserverMap extent to the bounding box of the quadKey MapServer >> changes the latitudes of its extent to fit the map size (256 x 256) >> >> e.g. for quadKey 31121320312020 i set the MapServer extent to: >> >> ? ?maxX >> ? ?152.95166015625 >> ? ?maxY >> ? ?-30.334953881988554 >> ? ?minX >> ? ?152.9296875 >> ? ?minY >> ? ?-30.353916372297036 >> >> Then after setting the extent if I ask MapServer for its >> extent it returns: >> >> ? ?mapserverMap.extent >> ? ?{OSGeo.MapServer.rectObj} >> ? ? ? ?maxx: 152.95166015625 >> ? ? ? ?maxy: -30.333448799017795 >> ? ? ? ?minx: 152.9296875 >> ? ? ? ?miny: -30.355421455267795 >> >> Notice the Longitudes are the same but the Latitudes (minY, maxY) have >> been stretched. >> >> So my question is that when I set mapserverMap object to the bounding >> box I want it to be set to the latitude and longitude given and >> stretched to fit the map size (256 x 256) rather than MapServer >> modifying the latitudes to fit the map size. >> >> Any help would be appreciated. >> >> Stuart >> >> -- >> >> Here is the starting map file >> >> MAP >> ? ? ? ?NAME MyMap >> >> ? ? ? ?DEBUG ON >> ? ? ? ?IMAGECOLOR 128 155 155 >> >> ? ? ? ?UNITS DD >> ? ? ? ?RESOLUTION 96 >> ? ? ? ?TRANSPARENT OFF >> ? ? ? ?CONFIG ? "PROJ_LIB" ?"/ms4w/proj/nad/" >> ? ? ? ?CONFIG "CPL_DEBUG" "ON" >> ? ? ? ?SYMBOLSET ./etc/symbols.sym >> ? ? ? ?IMAGETYPE png >> ? ? ? ?FONTSET ./etc/fonts.txt >> >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- Stuart .o. ..o ooo From aperi2007 at gmail.com Fri Mar 9 23:58:31 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 10 Mar 2012 08:58:31 +0100 Subject: [mapserver-users] File Map & SLD rendering Message-ID: Hi, I like to use the SLD to describe the rendering of a WMS service. I understand the SLD is usable as a querystring parameter from a remote call, but I like instead to use it as a server side configuration setting. Is this possible ? -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfreimuth at arcor.de Sat Mar 10 06:10:02 2012 From: pfreimuth at arcor.de (Peter Freimuth) Date: Sat, 10 Mar 2012 15:10:02 +0100 Subject: [mapserver-users] experience with jp2000 libraries Message-ID: <4F5B60BA.2080200@arcor.de> Hi Mapserver Community, i have to evaluate the different options for using JP2000 with mapserver 6.x. I have to create a fast WMS that streams 350-400GB of RGB satellite data (~1000 350MB uncompressed GeoTiffs images) and for this i have to evaluate options to reduce the filesize on the storage system to minimize the IO for mapserver to read the data from the storage system. JP2000 seems to be a good option but i would like to know if it makes sense to purchase a Kakadu license or if the JasPer based solutions offers similar results. LZW is somehow not working. Files are getting bigger than in uncompressed mode. Any idea why this happens? Any info is highly appreciated!! Thanks, Peter From woodbri at swoodbridge.com Sat Mar 10 07:38:26 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 10 Mar 2012 10:38:26 -0500 Subject: [mapserver-users] File Map & SLD rendering In-Reply-To: References: Message-ID: <4F5B7572.60806@swoodbridge.com> On 3/10/2012 2:58 AM, Andrea Peri wrote: > Hi, > > I like to use the SLD to describe the rendering of a WMS service. > I understand the SLD is usable as a querystring parameter from a remote > call, but > I like instead to use it as a server side configuration setting. > > Is this possible ? Not that I am aware of. Currently mapserver uses its mapfile for defining the layers and styles. There is also an XML mapfile utility that will allow you to define the mapfile in XML and then convert it to the standard mapfile so mapserver can read it. -Steve W From j.l.h.hartmann at uva.nl Mon Mar 12 06:51:17 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Mon, 12 Mar 2012 14:51:17 +0100 Subject: [mapserver-users] Fwd: Constraining WMS output type In-Reply-To: <4F5DFF21.3040901@uva.nl> References: <4F5DFF21.3040901@uva.nl> Message-ID: <4F5DFF55.4010404@uva.nl> Hi all, Is there a way to restrict the output types Mapserver offers as a WMS service, e.g. only png 8-bits? In QGIS, when I choose "png" as output for a WMS layer, I always get back png24 rasters, even if I explicitly specify png8 as outputtype in the mapfile. Not sure if this would be according to the WMS specs, though. Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Mar 12 07:03:53 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 12 Mar 2012 14:03:53 +0000 Subject: [mapserver-users] Fwd: Constraining WMS output type In-Reply-To: <4F5DFF55.4010404@uva.nl> References: <4F5DFF21.3040901@uva.nl>,<4F5DFF55.4010404@uva.nl> Message-ID: <84446DEF76453C439E9E97E438E13A63083F5B@suutari.haapa.mmm.fi> Hi, I would have a try by defining a 8-bit png outputformat for img/png MIME type and using wms_getmap_formatlist in the metadata. How have you defined the png8 now in your mapfile? -Jukka Rahkonen- ________________________________ Jan Hartmann wrote: > Hi all, > Is there a way to restrict the output types Mapserver offers as a WMS service, e.g. only png 8-bits? In QGIS, when I choose "png" as output for a WMS layer, I always get back png24 rasters, even if I explicitly specify png8 as outputtype in the mapfile. > Not sure if this would be according to the WMS specs, though. > Jan From j.l.h.hartmann at uva.nl Mon Mar 12 08:08:25 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Mon, 12 Mar 2012 16:08:25 +0100 Subject: [mapserver-users] Fwd: Constraining WMS output type In-Reply-To: <84446DEF76453C439E9E97E438E13A63083F5B@suutari.haapa.mmm.fi> References: <4F5DFF21.3040901@uva.nl>, <4F5DFF55.4010404@uva.nl> <84446DEF76453C439E9E97E438E13A63083F5B@suutari.haapa.mmm.fi> Message-ID: <4F5E1169.8030705@uva.nl> "wms-getmap_formatlist" works, but if I specify "image/jpeg,image/png; mode=8bit,image/gif", qgis doesn't offer png as an output format anymore. It just doen't know 8-bits png. I saw they are working on it: https://github.com/qgis/Quantum-GIS/commit/3a2c0e9872270fbd62d6bfcd9149d9d2a16c09cf So, it's a qgis problem. The metadata item is nice to know, though. Thanks, Jan On 03/12/2012 03:03 PM, Rahkonen Jukka wrote: > Hi, > > I would have a try by defining a 8-bit png outputformat for img/png MIME type and using wms_getmap_formatlist in the metadata. How have you defined the png8 now in your mapfile? > > -Jukka Rahkonen- > ________________________________ > Jan Hartmann wrote: > > >> Hi all, >> Is there a way to restrict the output types Mapserver offers as a WMS service, e.g. only png 8-bits? In QGIS, when I choose "png" as output for a WMS layer, I always get back png24 rasters, even if I explicitly specify png8 as outputtype in the mapfile. >> Not sure if this would be according to the WMS specs, though. >> Jan > _______________________________________________ > 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 Mar 12 08:18:27 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 12 Mar 2012 15:18:27 +0000 Subject: [mapserver-users] Fwd: Constraining WMS output type In-Reply-To: <4F5E1169.8030705@uva.nl> References: <4F5DFF21.3040901@uva.nl>,<4F5DFF55.4010404@uva.nl> <84446DEF76453C439E9E97E438E13A63083F5B@suutari.haapa.mmm.fi>, <4F5E1169.8030705@uva.nl> Message-ID: <84446DEF76453C439E9E97E438E13A63083F92@suutari.haapa.mmm.fi> Hi, Try with something like this and then using &format=image/png in WMS GetMap should produce 8-bit png. OUTPUTFORMAT NAME "png8" DRIVER AGG/PNG8 MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "QUANTIZE_FORCE=on" FORMATOPTION "QUANTIZE_COLORS=256" FORMATOPTION "GAMMA=0.75" END -Jukka Rahkonen- ________________________________ L?hett?j?: Jan Hartmann [j.l.h.hartmann at uva.nl] L?hetetty: 12. maaliskuuta 2012 17:08 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Fwd: Constraining WMS output type "wms-getmap_formatlist" works, but if I specify "image/jpeg,image/png; mode=8bit,image/gif", qgis doesn't offer png as an output format anymore. It just doen't know 8-bits png. I saw they are working on it: https://github.com/qgis/Quantum-GIS/commit/3a2c0e9872270fbd62d6bfcd9149d9d2a16c09cf So, it's a qgis problem. The metadata item is nice to know, though. Thanks, Jan On 03/12/2012 03:03 PM, Rahkonen Jukka wrote: Hi, I would have a try by defining a 8-bit png outputformat for img/png MIME type and using wms_getmap_formatlist in the metadata. How have you defined the png8 now in your mapfile? -Jukka Rahkonen- ________________________________ Jan Hartmann wrote: Hi all, Is there a way to restrict the output types Mapserver offers as a WMS service, e.g. only png 8-bits? In QGIS, when I choose "png" as output for a WMS layer, I always get back png24 rasters, even if I explicitly specify png8 as outputtype in the mapfile. Not sure if this would be according to the WMS specs, though. Jan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From marcandre_trottier at hotmail.com Mon Mar 12 12:27:29 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Mon, 12 Mar 2012 15:27:29 -0400 Subject: [mapserver-users] simple type and enumeration value AND gml_exclude_items [TinyOWS] Message-ID: *1) simple type and enumeration value in request=describefeaturetype : Does TinyOWS will eventually integrate as output, in the next version, for request describefeaturetype: simpletype and enumeration values of a particular fields based on these WFS standard?* ** *2) gml_exclude_items in request=describefeaturetype : Is it plan in the next version of TinyOWS to take into account the tag "gml_exclude_items" in the mapfile? Right now, we have to add an ignore attributes on the client side to filter on specific fields only. * -------------- next part -------------- An HTML attachment was scrubbed... URL: From kguardado at gmail.com Mon Mar 12 13:38:50 2012 From: kguardado at gmail.com (Karina Guardado) Date: Mon, 12 Mar 2012 14:38:50 -0600 Subject: [mapserver-users] WMSGetFeatureInfo problem In-Reply-To: References: Message-ID: Hi Paolo, Thank you very much for your help, Now it is working and I think now I understand how do the Template work after looking at some examples and creating 35 files even more. Here I mention some of the steps I follow so maybe those can be helpfull for other people who probably have no idea where to begin. 1. Download the last Openlayers version and copy into my folder and add a link to the Openlayers.js 2. I added the following code to my application in order to add the WMSGetFeatureInfo Control toolbar.addControl(new OpenLayers.Control.WMSGetFeatureInfo({ url: ' http://mydomain/cgi-bin/mapserv?MAP=/var/www/myaddress/mymapfile.map&', title: 'Identify features by clicking', queryVisible: true, infoFormat:'text/html', click: 'true', layers: [DepartamentosSRMSS, Municipios, LimiteDepartamental], eventListeners: { getfeatureinfo: function(event) { map.addPopup(new OpenLayers.Popup.FramedCloud( "chicken", map.getLonLatFromPixel(event.xy), null, event.text, null, true )); } } },{ isDefault: true, title: 'Info' }), { iconCls: 'query', toggleGroup: 'map' }); 3. I Created the layers like the one below LAYER NAME 'Municipios' TYPE polygon DUMP true EXTENT 254093.5384 43485.4771 723948.4474 385070.6867 CONNECTIONTYPE postgis CONNECTION "dbname='mydb' host=localhost port=5432 user='myuser' password='mypassword' sslmode=disable" DATA 'the_geom FROM "SRMSSmunici" using unique gid using SRID=-1' HEADER "templates/header.html" TEMPLATE "templates/content.html" FOOTER "templates/footer.html" METADATA 'ows_title' 'SRMSSmunici' "wms_srs" "epsg:8913 epsg:4326" 'ows_geometries' 'the_geom' 'wms_enable_request' '*' 'wms_include_items' 'all' 'ows_mygeom_type' 'polygon' "wms_feature_info_mime_type" "text/html" 'queryable' 'true' "wms_enable_request" "GetMap GetFeatureInfo" END STATUS OFF TRANSPARENCY 100 PROJECTION "init=epsg:8913" END CLASS NAME 'SRMSSmunici' STYLE WIDTH 2.4 OUTLINECOLOR 115 0 0 END END END 4.Create the Template files Header.html GetFeatureInfo Response Content.html Footer.html
Layer: Arqueol?gico
Nombre Sitio Id
[item name="Nombre" format=$value escape=none] [item name="Sitio" format=$value escape=none] [item name="Id" format=$value escape=none]

On Thu, Mar 8, 2012 at 10:27 AM, Paolo Corti wrote: > > But when i click on one point for example it is looking but doesn't shoe > > anything and when looking at the fireburg result I found this > > > > msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value > > (text/html). > > > > > > > > I ask me if this is a problem with mapserver or with openlayers, any help > > please. > > most likely you are missing the the wms_feature_info_mime_type > metadata item [1]: > add "wms_feature_info_mime_type" "text/html" in the WEB/METADATA > section of mapfile > > best regards > P > > [1] http://mapserver.org/ogc/wms_server.html > -- > Paolo Corti > Geospatial software developer > web: http://www.paolocorti.net > twitter: @capooti > skype: capooti > Best regards, Karina Guardado Geoinformatic El Salvador -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrguerra at gmv.com Tue Mar 13 05:08:02 2012 From: jrguerra at gmv.com (=?iso-8859-1?Q?Joaqu=EDn_Rodriguez-Guerra_Urcelay?=) Date: Tue, 13 Mar 2012 13:08:02 +0100 Subject: [mapserver-users] WFS Expression and Dates In-Reply-To: References: , Message-ID: <4E70D1E8680D584198DDB55BD65220B30141E0E41977@GMVMAIL5.gmv.es> Hi list, I have been trying to find how to use the LAYER FILTER option to specify the features of the dataset that are to be included in the layer, with dates. Feature members in my layer are like this: -15.678700,26.440000 -13.306000,28.555500 -15.309400,28.555500 -13.306000,28.209400 -13.705900,26.440000 -15.678700,26.780200 -15.309400,28.555500 1 WGS84 ERS 2010/02/14 2:08:00 2 POLYGON((-15.3094 28.5555, -13.3060 28.2094, -13.7059 26.4400, -15.6787 26.7802, -15.3094 28.5555)) And the folllowing filter expresions are working ok in my map file: FILTER ([resolution]==2) FILTER ('[sensor]'='ERS') But I cant make work the temporal filter expresion, I have tried almost everything FILTER (`[starttime]` < `2010-02-15`) (http://osdir.com/ml/mapserver-users-gis/2007-10/msg00519.html) --- and the closes I got to get it working it is with string comparisson: ('[starttime]'<'2010/2/15 00:00') But I wonder if anyone here knows the rigth format for temporal expressions. Thanks! Regards, Joaqu?n ______________________ 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 aperi2007 at gmail.com Tue Mar 13 14:34:53 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 13 Mar 2012 22:34:53 +0100 Subject: [mapserver-users] How accessing Postgis Raster with MapServer Message-ID: Hi, I'm try-ing to access a postgis raster using mapserver trunk, but it don't seem work. I don't understand if the problem is on the postgis raster or in the mapfile settings. So I like to know if this mapfile setting is ok to call a postgis raster I use this mapfile settings: The table ofc10k_single_2010 has only 1 raster loaded with this call: raster2pgsql -s 3003 -l 3 -C -e -Y -I -M 216100_2010.tif -F -f rast -d -t 100x100 my_schema.ofc10k_single_2010 > ofc10k_single_2010.sql The gdal available is gdal 1.9.0. The mapfile layer section is this: LAYER NAME "ofc10k_single" STATUS ON EXTENT 1559445 4921905 1566395 4927805 TYPE raster CONNECTIONTYPE ogr DATA "PG:host='localhost' port='5432' dbname='my_database' user='postgres' password='my_password' schema='my_schema' table='ofc10k_single_2010' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=-100.5,100.5" PROCESSING "SCALE_BUCKETS=201" # ... other standard raster processing functions here PROJECTION "init=epsg:3003" END METADATA "wms_title" "OFC 1:10.000 single" "wms_srs" "EPSG:3003 EPSG:4326" END OFFSITE 255 255 255 OPACITY 100 END Thx for any hint. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at gmail.com Tue Mar 13 15:38:43 2012 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 13 Mar 2012 23:38:43 +0100 Subject: [mapserver-users] How accessing Postgis Raster with MapServer In-Reply-To: References: Message-ID: On Tue, Mar 13, 2012 at 10:34 PM, Andrea Peri wrote: > Hi, > I'm try-ing to access a postgis raster using mapserver trunk, > but it don't seem work. > > I don't understand if the problem is on the postgis raster or in the mapfile > settings. > > So I like to know if this mapfile setting is ok to call a postgis raster > I use this mapfile settings: > > The table ofc10k_single_2010 has only 1 raster loaded with this call: > > raster2pgsql -s 3003 -l 3 -C -e -Y -I -M 216100_2010.tif -F -f rast -d -t > 100x100 my_schema.ofc10k_single_2010 > ofc10k_single_2010.sql > > The gdal available is gdal 1.9.0. > > The mapfile layer section is this: > > ? LAYER > ??? NAME "ofc10k_single" > ??? STATUS ON > ??? EXTENT 1559445 4921905 1566395 4927805 > ??? TYPE raster > ??? CONNECTIONTYPE ogr > ??? DATA "PG:host='localhost' port='5432' dbname='my_database' > user='postgres' password='my_password' schema='my_schema' > table='ofc10k_single_2010' mode='2'" > ??? PROCESSING "NODATA=0" > ??? PROCESSING "SCALE=-100.5,100.5" > ??? PROCESSING "SCALE_BUCKETS=201" > ??? # ... other standard raster processing functions here > ??? PROJECTION > ????? "init=epsg:3003" > ??? END > ??? METADATA > ????? "wms_title" "OFC 1:10.000 single" > ????? "wms_srs" "EPSG:3003 EPSG:4326" > ??? END > ??? OFFSITE 255 255 255 > ??? OPACITY 100 > ? END > > Thx for any hint. > Hi Andrea for sure you have to remove the line with the CONNECTIONTYPE set to ogr (that is only for vectorial layers [0]). The rest looks fine to me, but I cannot test it right now. BTW, have you read this [1] faq? ciao P [0] http://www.mapserver.org/input/vector/ogr.html [1] http://www.postgis.org/documentation/manual-svn/RT_FAQ.html#id3059359 -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From aperi2007 at gmail.com Tue Mar 13 16:35:23 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Wed, 14 Mar 2012 00:35:23 +0100 Subject: [mapserver-users] How accessing Postgis Raster with MapServer In-Reply-To: References: Message-ID: Hi Paolo, thx for hint. I remove the ConnectionType 'ogr' and set the NODATA ans SCALE as suggested in the faq: NAME "ofc10k_single" STATUS ON EXTENT 1559445 4921905 1566395 4927805 TYPE raster DATA "PG:host='localhost' port='22002' dbname='my_database' user='postgres' password='my_password' schema='my_schema' table='ofc10k_single_2010' mode='2'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" Unfortunately it still don't work correctly. I set debug to max level and see this error report. (seem the NODATA=0 was not supported ?) .... [Wed Mar 14 02:18:43 2012].423056 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Mar 14 02:18:43 2012].426271 msDrawMap(): WMS/WFS set-up and query, 0.003s [Wed Mar 14 02:18:43 2012].430485 msDrawMap(): Layer 0 (credits), 0.004s [Wed Mar 14 02:18:43 2012].586938 msDrawRasterLayerLow(ofc10k_single): entering. [Wed Mar 14 02:20:13 2012].461265 LoadGDALImage(ofc10k_single): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Wed Mar 14 02:20:13 2012].463071 LoadGDALImage(ofc10k_single): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Wed Mar 14 02:20:13 2012].464870 LoadGDALImage(ofc10k_single): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Wed Mar 14 02:20:13 2012].468391 msDrawMap(): Layer 5 (ofc10k_single), 90.038s [Wed Mar 14 02:20:13 2012].469876 msDrawMap(): Drawing Label Cache, 0.001s [Wed Mar 14 02:20:13 2012].469901 msDrawMap() total time: 90.048s [Wed Mar 14 02:20:13 2012].486769 msSaveImage(stdout) total time: 0.017s [Wed Mar 14 02:20:13 2012].487698 mapserv request processing time (msLoadMap not incl.): 90.066s [Wed Mar 14 02:20:13 2012].487722 msFreeMap(): freeing map at 0x1438770. [Wed Mar 14 02:19:44 2012].369692 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Wed Mar 14 02:19:44 2012].371084 msDrawMap(): WMS/WFS set-up and query, 0.001s [Wed Mar 14 02:19:44 2012].373235 msDrawMap(): Layer 0 (credits), 0.002s [Wed Mar 14 02:19:44 2012].376380 msDrawRasterLayerLow(ofc10k_single): entering. [Wed Mar 14 02:21:13 2012].801136 LoadGDALImage(ofc10k_single): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Wed Mar 14 02:21:13 2012].803247 LoadGDALImage(ofc10k_single): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Wed Mar 14 02:21:13 2012].804759 LoadGDALImage(ofc10k_single): NODATA value 0 in GDAL file or PROCESSING directive largely ignored. Not yet fully supported for unclassified scaled data. The NODATA value is excluded from auto-scaling min/max computation, but will not be transparent. [Wed Mar 14 02:21:13 2012].808087 msDrawMap(): Layer 5 (ofc10k_single), 89.435s [Wed Mar 14 02:21:13 2012].808290 msDrawMap(): Drawing Label Cache, 0.000s [Wed Mar 14 02:21:13 2012].808302 msDrawMap() total time: 89.439s [Wed Mar 14 02:21:13 2012].821898 msSaveImage(stdout) total time: 0.013s [Wed Mar 14 02:21:13 2012].821997 mapserv request processing time (msLoadMap not incl.): 89.453s [Wed Mar 14 02:21:13 2012].822012 msFreeMap(): freeing map at 0x762770. .... 2012/3/13 Paolo Corti > On Tue, Mar 13, 2012 at 10:34 PM, Andrea Peri wrote: > > Hi, > > I'm try-ing to access a postgis raster using mapserver trunk, > > but it don't seem work. > > > > I don't understand if the problem is on the postgis raster or in the > mapfile > > settings. > > > > So I like to know if this mapfile setting is ok to call a postgis raster > > I use this mapfile settings: > > > > The table ofc10k_single_2010 has only 1 raster loaded with this call: > > > > raster2pgsql -s 3003 -l 3 -C -e -Y -I -M 216100_2010.tif -F -f rast -d -t > > 100x100 my_schema.ofc10k_single_2010 > ofc10k_single_2010.sql > > > > The gdal available is gdal 1.9.0. > > > > The mapfile layer section is this: > > > > LAYER > > NAME "ofc10k_single" > > STATUS ON > > EXTENT 1559445 4921905 1566395 4927805 > > TYPE raster > > CONNECTIONTYPE ogr > > DATA "PG:host='localhost' port='5432' dbname='my_database' > > user='postgres' password='my_password' schema='my_schema' > > table='ofc10k_single_2010' mode='2'" > > PROCESSING "NODATA=0" > > PROCESSING "SCALE=-100.5,100.5" > > PROCESSING "SCALE_BUCKETS=201" > > # ... other standard raster processing functions here > > PROJECTION > > "init=epsg:3003" > > END > > METADATA > > "wms_title" "OFC 1:10.000 single" > > "wms_srs" "EPSG:3003 EPSG:4326" > > END > > OFFSITE 255 255 255 > > OPACITY 100 > > END > > > > Thx for any hint. > > > > Hi Andrea > > for sure you have to remove the line with the CONNECTIONTYPE set to > ogr (that is only for vectorial layers [0]). > The rest looks fine to me, but I cannot test it right now. > BTW, have you read this [1] faq? > > ciao > P > > [0] http://www.mapserver.org/input/vector/ogr.html > [1] http://www.postgis.org/documentation/manual-svn/RT_FAQ.html#id3059359 > > -- > Paolo Corti > Geospatial software developer > web: http://www.paolocorti.net > twitter: @capooti > skype: capooti > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Tue Mar 13 18:26:28 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Tue, 13 Mar 2012 21:26:28 -0400 Subject: [mapserver-users] Label alignment Message-ID: Folks, I am not sure what the correct terminology is for our current issue but let me give explaining it a try. We are using a label layer with transform off to display some overview information on a map. The text sometimes needs to be lined up horizontally or spaced evenly vertically. It appears that the text function is using the outer perimeter of the text as the anchor point for the location. So in the case where there are characters which drop below the normal text line (e.g. g, y p, j, q) then the text is not aligned as we would hope. The same is true for the top of the text with different characters of course. The text is then not aligned as you would expect if different labels are drawn say 3 in a row horizontally at the same vertical location. If we concatenate the labels to a single string this helps the individual lines but is misaligned vertically. So is there any way (or any plans) to help this? It could be that at alignment mode that is relative to either end of the line (not sure what it's called) under the text would be what we need. This could also in some instances tidy up more traditional labels as they would be draw a little more naturally relative to the point. Looking forward to your thoughts and comments. Thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Mar 13 18:35:04 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 13 Mar 2012 21:35:04 -0400 Subject: [mapserver-users] Label alignment In-Reply-To: References: Message-ID: <4F5FF5C8.7070306@swoodbridge.com> I'm not sure I understand all of these issues, but have you tried concatenating all the your test into a multiple line string and use a special character as the line break indicator, say an '@' char. Then in the LABEL block use WRAP '@' You can also use ALIGN CENTER|LEFT|RIGHT to control the alignment of the wrapped text. In 6.2 (trunk) you can also have multiple LABEL blocks in a class and can control the position of each using OFFSET x y to nudge you text into alignment. -Steve W On 3/13/2012 9:26 PM, Ian Walberg wrote: > Folks, > > I am not sure what the correct terminology is for our current issue but > let me give explaining it a try. > > We are using a label layer with transform off to display some overview > information on a map. > > The text sometimes needs to be lined up horizontally or spaced evenly > vertically. > > It appears that the text function is using the outer perimeter of the > text as the anchor point for the location. > > So in the case where there are characters which drop below the normal > text line (e.g. g, y p, j, q) then the text is not aligned as we would > hope. The same is true for the top of the text with different characters > of course. > > The text is then not aligned as you would expect if different labels are > drawn say 3 in a row horizontally at the same vertical location. > > If we concatenate the labels to a single string this helps the > individual lines but is misaligned vertically. > > So is there any way (or any plans) to help this? It could be that at > alignment mode that is relative to either end of the line (not sure what > it?s called) under the text would be what we need. This could also in > some instances tidy up more traditional labels as they would be draw a > little more naturally relative to the point. > > Looking forward to your thoughts and comments. > > Thanks > > Ian > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ozgurarslan81 at hotmail.com Tue Mar 13 23:39:37 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Wed, 14 Mar 2012 06:39:37 +0000 Subject: [mapserver-users] HI Message-ID: Hi ALL, I created a map file by using QGIS and when I run on web page it gives this error: msDrawMap(): Image handling error. Failed to draw layer named 'mjcities'. msLoadMSRasterBufferFromFile(): General error message. unable to open file /wwwroot/QGISMap/circle for reading And file is below: LAYER NAME 'mjcities' TYPE POINT DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -143.208273 40.594930 -50.461099 84.277660 DATA '../Data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 7.0 OUTLINECOLOR 0 0 0 COLOR 0 0 255 Could you please help me about this issue? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Mar 14 00:06:49 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 14 Mar 2012 07:06:49 +0000 Subject: [mapserver-users] HI In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63084349@suutari.haapa.mmm.fi> Hi, Generally speaking QGis does not make valid mapfiles for Mapserver 6.0. It is using some no more supported styling definitions, it does not enable WMW requests in metadata etc. In your case you can have a try with default point style and leave just COLOR 0 0 255 left in the STYLE. -Jukka Rahkonen- ________________________________ ?zg?r Arslan wrote: Hi ALL, I created a map file by using QGIS and when I run on web page it gives this error: msDrawMap(): Image handling error. Failed to draw layer named 'mjcities'. msLoadMSRasterBufferFromFile(): General error message. unable to open file /wwwroot/QGISMap/circle for reading And file is below: LAYER NAME 'mjcities' TYPE POINT DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -143.208273 40.594930 -50.461099 84.277660 DATA '../Data/mjcities.shp' METADATA 'ows_title' 'mjcities' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'mjcities' STYLE SYMBOL "circle" SIZE 7.0 OUTLINECOLOR 0 0 0 COLOR 0 0 255 Could you please help me about this issue? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at wildwalks.com Wed Mar 14 01:55:15 2012 From: matt at wildwalks.com (Matt McClelland) Date: Wed, 14 Mar 2012 19:55:15 +1100 Subject: [mapserver-users] Label alignment In-Reply-To: References: Message-ID: Perhaps OFFSET x y is what you are after. I am having trouble visualizing the problem. But I think you want to nudge the label a bit to line up better with elements on the map. OFFSET allows you to move the label away from the start by by a number of pixels. Good luck with it. Matt :) Matt McClelland mob: 0411 306 650 e-mail: matt at wildwalks.com web: http://www.wildwalks.com/ Books: http://www.wildwalks.com/books Newsletter: http://www.wildwalks.com/office/newsletters/ On Wed, Mar 14, 2012 at 12:26 PM, Ian Walberg wrote: > Folks,**** > > ** ** > > I am not sure what the correct terminology is for our current issue but > let me give explaining it a try.**** > > ** ** > > We are using a label layer with transform off to display some overview > information on a map.**** > > ** ** > > The text sometimes needs to be lined up horizontally or spaced evenly > vertically.**** > > ** ** > > It appears that the text function is using the outer perimeter of the text > as the anchor point for the location.**** > > ** ** > > So in the case where there are characters which drop below the normal text > line (e.g. g, y p, j, q) then the text is not aligned as we would hope. The > same is true for the top of the text with different characters of course.* > *** > > ** ** > > The text is then not aligned as you would expect if different labels are > drawn say 3 in a row horizontally at the same vertical location.**** > > ** ** > > If we concatenate the labels to a single string this helps the individual > lines but is misaligned vertically.**** > > ** ** > > So is there any way (or any plans) to help this? It could be that at > alignment mode that is relative to either end of the line (not sure what > it?s called) under the text would be what we need. This could also in some > instances tidy up more traditional labels as they would be draw a little > more naturally relative to the point.**** > > ** ** > > Looking forward to your thoughts and comments.**** > > ** ** > > Thanks**** > > ** ** > > Ian**** > > ** ** > > ** ** > > _______________________________________________ > 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 aperi2007 at gmail.com Wed Mar 14 16:20:46 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 15 Mar 2012 00:20:46 +0100 Subject: [mapserver-users] How accessing Postgis Raster with MapServer Message-ID: Hi, I found hte problem. It was due to a much time take to compute the statistics. it guess it was due to the setting: PROCESSING "SCALE=AUTO" I understand that is the stats was not available MapServer (gdal) will compute it automatically. So the solution is to set the stats using the settings: something like this: PROCESSING "SCALE_1=409,1203" PROCESSING "SCALE_2=203,296" PROCESSING "SCALE_3=339,1004" Now I need to find how to compute this values and set they in the MapFile. Regards, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pedrocostaarma at sapo.pt Thu Mar 15 08:03:23 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 15 Mar 2012 15:03:23 +0000 Subject: [mapserver-users] bing maps wms Message-ID: <4F6204BB.6080702@sapo.pt> Hello to all, Anybody have used the bing maps by wms? If yes, cantell me what the correct name and address? I'm having trouble finding the right data. someone can post the information about the layer? Thanks From dmorissette at mapgears.com Thu Mar 15 08:48:55 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 15 Mar 2012 11:48:55 -0400 Subject: [mapserver-users] FOSS4G North America is Almost Here: April 10-11 Message-ID: <4F620F67.8030708@mapgears.com> Hey, MapServer users, I am forwarding an announcement from the FOSS4G-NA organizing committee, hoping to see many of you there! ------ FOSS4G North America is one month away! Due to venue restrictions (400 max!), we only have a limited number of registration spaces still remaining, so sign up soon! * The full program is here, online at http://foss4g-na.org/program/ * Online registration is here, at http://foss4g-na.org/registration/ * Rooms at nearby hotels are available too, in a limited room block, http://foss4g-na.org/hotel-block-annouced/ We are proud of our program, which includes talks from open source developers, managers and visionaries. FOSS4G North America is a great opportunity to learn about the statue of the art, and how people are putting open source to use in their organizations. We hope to see you in DC! FOSS4G North America Paul Ramsey (Chair), OpenGeo Bonnie Bogle (Program Chair), MapBox From Steve.Toutant at inspq.qc.ca Thu Mar 15 11:59:33 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 15 Mar 2012 14:59:33 -0400 Subject: [mapserver-users] PHP Startup: MapScript: Unable to initialize module Message-ID: Hi, I have a warning with php and it seems to be related with the module Mapscript. With apache my php file is well executed , from a command line it is also well executed by I get this warning: PHP Warning: PHP Startup: MapScript: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match My php script content has nothing related to mapserv or mapscript though... phpinfo() doesn't return anything about MapScript, I guess it should? But What can I do about that? I'm on linux sles 11 SP1 phpinfo returns php version is 5.3.8 I've installed mapserver and php-mapserver from this opensuse repo: Application:/Geo/SLE_11 mapserv -v gives this MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Mar 15 12:57:01 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 15 Mar 2012 16:57:01 -0300 Subject: [mapserver-users] PHP Startup: MapScript: Unable to initialize module In-Reply-To: References: Message-ID: <4F62498D.4090804@gatewaygeomatics.com> Hello Steve, I am familiar with this error. Your server's php.ini file is trying to load the php_mapscript.so file but is having problems. (you can verify this through the commandline by trying to load the PHP modules: php -m) I have seen this problem when users try to grab PHP binaries from one source, and then grab a php_mapscript.so from another source (the same occurs on Windows). Short solution: edit your php.ini file and search for 'extension=php_mapscript' and comment out that line; you will then be able to use your PHP scripts without that warning. Hope that helps. -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-03-15 3:59 PM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I have a warning with php and it seems to be related with the module > Mapscript. > > With apache my php file is well executed , from a command line it is > also well executed by I get this warning: > PHP Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20060613 > PHP compiled with module API=20090626 > These options need to match > > My php script content has nothing related to mapserv or mapscript though... > > phpinfo() doesn't return anything about MapScript, I guess it should? > But What can I do about that? > > I'm on linux sles 11 SP1 > phpinfo returns php version is 5.3.8 > I've installed mapserver and php-mapserver from this opensuse repo: > Application:/Geo/SLE_11 > mapserv -v gives this > MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE From lester at lsces.co.uk Thu Mar 15 12:58:04 2012 From: lester at lsces.co.uk (Lester Caine) Date: Thu, 15 Mar 2012 19:58:04 +0000 Subject: [mapserver-users] PHP Startup: MapScript: Unable to initialize module In-Reply-To: References: Message-ID: <4F6249CC.5000002@lsces.co.uk> Steve.Toutant at inspq.qc.ca wrote: > I have a warning with php and it seems to be related with the module Mapscript. > > With apache my php file is well executed , from a command line it is also well > executed by I get this warning: > PHP Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20060613 > PHP compiled with module API=20090626 > These options need to match > > My php script content has nothing related to mapserv or mapscript though... > > phpinfo() doesn't return anything about MapScript, I guess it should? > But What can I do about that? Steve ... this is a common problem with PHP. Your main installation has been upgraded to 5.3.8 but Mapscript was installed from another source and so is still 'stamped' with the previous version number which must be some time previously since its 2006 ;) Fixing the problem just involves either getting a pre-compiled copy of mapscript for php5.3.8 or you may need to compile it yourself since SLES11 is obviously not managing the version control properly. My own SUSE12.1 setup is pulling the correct versions of the files. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php From woodbri at swoodbridge.com Thu Mar 15 13:54:58 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 15 Mar 2012 16:54:58 -0400 Subject: [mapserver-users] Label alignment In-Reply-To: References: <4F5FF5C8.7070306@swoodbridge.com> Message-ID: <4F625722.4070905@swoodbridge.com> Ian, Label text is positioned based on the bbox enclosing the text and in the case of your three labels the position point is the upper left corner. If you had concatenated the text into a single line then the would have been aligned but still positioned based on the bbox. Thomas is more knowledgeable about the rendering engine, but I would be concerned about any code that potentially changes how labels are placed for fear of messing up the existing code and behavior. In 6.2 there is support for svg symbols, it might make sense to create an svg symbol with the text you want as you would have excellent controls on the layout, then you could place and or scale that symbol where you want it on the map. I was surprised when I started playing with Inkscape (an SVG editor) that all their documentation was actually svg files. -Steve On 3/15/2012 2:00 PM, Ian Walberg wrote: > Folks, > > Attached is an image illustrating the problem, a picture is worth a > thousand words! > > All this text is at the same vertical location but as this shows the > text is not drawn as would be typical in other applications relative to > line underneath the text so that the upper and lower case align at the > bottom with any descending parts of the characters dropping below that > line. > > What we would like to be able to do is use that line as the anchor point > vertically and horizontally as today left, right or centre. > > We may also be able to help make the changes if we can agree what is > required. > > Thanks > > Ian > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Tuesday, March 13, 2012 6:35 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Label alignment > > I'm not sure I understand all of these issues, but have you tried > concatenating all the your test into a multiple line string and use a > special character as the line break indicator, say an '@' char. Then in > the LABEL block use WRAP '@' > > You can also use ALIGN CENTER|LEFT|RIGHT to control the alignment of the > wrapped text. > > In 6.2 (trunk) you can also have multiple LABEL blocks in a class and > can control the position of each using OFFSET x y to nudge you text into > alignment. > > -Steve W > > On 3/13/2012 9:26 PM, Ian Walberg wrote: >> Folks, >> >> I am not sure what the correct terminology is for our current issue >> but let me give explaining it a try. >> >> We are using a label layer with transform off to display some overview > >> information on a map. >> >> The text sometimes needs to be lined up horizontally or spaced evenly >> vertically. >> >> It appears that the text function is using the outer perimeter of the >> text as the anchor point for the location. >> >> So in the case where there are characters which drop below the normal >> text line (e.g. g, y p, j, q) then the text is not aligned as we would > >> hope. The same is true for the top of the text with different >> characters of course. >> >> The text is then not aligned as you would expect if different labels >> are drawn say 3 in a row horizontally at the same vertical location. >> >> If we concatenate the labels to a single string this helps the >> individual lines but is misaligned vertically. >> >> So is there any way (or any plans) to help this? It could be that at >> alignment mode that is relative to either end of the line (not sure >> what it's called) under the text would be what we need. This could >> also in some instances tidy up more traditional labels as they would >> be draw a little more naturally relative to the point. >> >> Looking forward to your thoughts and comments. >> >> Thanks >> >> Ian >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Thu Mar 15 14:03:43 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 15 Mar 2012 17:03:43 -0400 Subject: [mapserver-users] Label alignment In-Reply-To: <4F625722.4070905@swoodbridge.com> References: <4F5FF5C8.7070306@swoodbridge.com> <4F625722.4070905@swoodbridge.com> Message-ID: Steve, I agree with your conclusions and do not want to disturb what works well today. I would like to discuss the possibility of adding a new way of aligning the label text. Regards Ian -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, March 15, 2012 1:55 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Label alignment Ian, Label text is positioned based on the bbox enclosing the text and in the case of your three labels the position point is the upper left corner. If you had concatenated the text into a single line then the would have been aligned but still positioned based on the bbox. Thomas is more knowledgeable about the rendering engine, but I would be concerned about any code that potentially changes how labels are placed for fear of messing up the existing code and behavior. In 6.2 there is support for svg symbols, it might make sense to create an svg symbol with the text you want as you would have excellent controls on the layout, then you could place and or scale that symbol where you want it on the map. I was surprised when I started playing with Inkscape (an SVG editor) that all their documentation was actually svg files. -Steve On 3/15/2012 2:00 PM, Ian Walberg wrote: > Folks, > > Attached is an image illustrating the problem, a picture is worth a > thousand words! > > All this text is at the same vertical location but as this shows the > text is not drawn as would be typical in other applications relative > to line underneath the text so that the upper and lower case align at > the bottom with any descending parts of the characters dropping below > that line. > > What we would like to be able to do is use that line as the anchor > point vertically and horizontally as today left, right or centre. > > We may also be able to help make the changes if we can agree what is > required. > > Thanks > > Ian > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Tuesday, March 13, 2012 6:35 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Label alignment > > I'm not sure I understand all of these issues, but have you tried > concatenating all the your test into a multiple line string and use a > special character as the line break indicator, say an '@' char. Then > in the LABEL block use WRAP '@' > > You can also use ALIGN CENTER|LEFT|RIGHT to control the alignment of > the wrapped text. > > In 6.2 (trunk) you can also have multiple LABEL blocks in a class and > can control the position of each using OFFSET x y to nudge you text > into alignment. > > -Steve W > > On 3/13/2012 9:26 PM, Ian Walberg wrote: >> Folks, >> >> I am not sure what the correct terminology is for our current issue >> but let me give explaining it a try. >> >> We are using a label layer with transform off to display some >> overview > >> information on a map. >> >> The text sometimes needs to be lined up horizontally or spaced evenly >> vertically. >> >> It appears that the text function is using the outer perimeter of the >> text as the anchor point for the location. >> >> So in the case where there are characters which drop below the normal >> text line (e.g. g, y p, j, q) then the text is not aligned as we >> would > >> hope. The same is true for the top of the text with different >> characters of course. >> >> The text is then not aligned as you would expect if different labels >> are drawn say 3 in a row horizontally at the same vertical location. >> >> If we concatenate the labels to a single string this helps the >> individual lines but is misaligned vertically. >> >> So is there any way (or any plans) to help this? It could be that at >> alignment mode that is relative to either end of the line (not sure >> what it's called) under the text would be what we need. This could >> also in some instances tidy up more traditional labels as they would >> be draw a little more naturally relative to the point. >> >> Looking forward to your thoughts and comments. >> >> Thanks >> >> Ian >> >> >> >> _______________________________________________ >> 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 aperi2007 at gmail.com Fri Mar 16 05:33:23 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 16 Mar 2012 13:33:23 +0100 Subject: [mapserver-users] Mapserver , raster postgis and PROCESSING options Message-ID: Hi, I'm try-ing to load on Mapserver trunk version a raster loaded on Postgis 2.0. Mapserver is using the gdal to access the raster, but something seem don't work. The load report this message that I guess is due to the gdal driver: >[Fri Mar 16 15:15:37 2012].722903 LoadGDALImage(ofc10k_single): NODATA value 0 in GDAL >file or PROCESSING directive largely ignored. Not yet fully supported for >unclassified scaled data. The NODATA value is excluded from auto-scaling >min/max computation, but will not be transparent. I use this settings in the MapFile: LAYER NAME "ofc10k_single" STATUS ON EXTENT 1559445 4921905 1566395 4927805 TYPE raster DATA "PG: ..... mode='2'" PROCESSING "SCALE_1=0,255" PROCESSING "SCALE_2=0,255" PROCESSING "SCALE_3=0,255" PROCESSING "RESAMPLE=NEAREST" PROJECTION "init=epsg:3003" END METADATA "wms_title" "OFC 1:10.000 single" "wms_srs" "EPSG:3003 EPSG:4326" END OFFSITE 0 0 0 OPACITY 100 END Is the PROCESSING "SCALE_1=0,255" a supported option ? thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri Mar 16 07:00:23 2012 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 16 Mar 2012 10:00:23 -0400 Subject: RE [Polluriel potentiel] Re: [mapserver-users] PHP Startup: MapScript: Unable to initialize module In-Reply-To: <4F6249CC.5000002@lsces.co.uk> Message-ID: thanks!! I'm migrating from windows to linux and I will use the mapscript module soon, so I need to fix this. I'll see if I can get mapscript compiled for php5.3.8 Steve Lester Caine @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2012-03-15 15:58 A "Mapserver-users (mapserver-users at lists.osgeo.org)" cc Objet [Polluriel potentiel] Re: [mapserver-users] PHP Startup: MapScript: Unable to initialize module Steve.Toutant at inspq.qc.ca wrote: > I have a warning with php and it seems to be related with the module Mapscript. > > With apache my php file is well executed , from a command line it is also well > executed by I get this warning: > PHP Warning: PHP Startup: MapScript: Unable to initialize module > Module compiled with module API=20060613 > PHP compiled with module API=20090626 > These options need to match > > My php script content has nothing related to mapserv or mapscript though... > > phpinfo() doesn't return anything about MapScript, I guess it should? > But What can I do about that? Steve ... this is a common problem with PHP. Your main installation has been upgraded to 5.3.8 but Mapscript was installed from another source and so is still 'stamped' with the previous version number which must be some time previously since its 2006 ;) Fixing the problem just involves either getting a pre-compiled copy of mapscript for php5.3.8 or you may need to compile it yourself since SLES11 is obviously not managing the version control properly. My own SUSE12.1 setup is pulling the correct versions of the files. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php _______________________________________________ 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 teknocreator at gmail.com Fri Mar 16 16:43:30 2012 From: teknocreator at gmail.com (teknocreator) Date: Fri, 16 Mar 2012 16:43:30 -0700 (PDT) Subject: [mapserver-users] Run-time Substitution and Raster file problem Message-ID: <1331941410599-4626749.post@n6.nabble.com> This is somewhat related to the post by Kathleen Hirst on Feb 27. We're using MapServer 6.0.1 and I'm attempting get around the fact that one isn't able to change the PROCESSING "BANDS=" directive via Run-time Substitution. I couldn't find a way to do it through modifying the URL that's passed either. As we don't have a many rasters in a file as Kathleen, I thought of splitting the bigger file up into individual rasters. Then use Run-time Substitution and pass in either the filename or just a piece of the file name to the DATA portion of the mapfile. The docs seem to indicate I should be able to do this. But, I get an error with each attempt. Here's what I tried first: MAP NAME "testgrib" IMAGETYPE PNG EXTENT -14000000 3000000 -7000000 7000000 STATUS ON SIZE 2145 1377 SHAPEPATH "../shapefiles" SYMBOLSET "../symbols/symbols35.sym" FONTSET "../fonts/fonts.list" DATAPATTERN "^.*$" IMAGECOLOR 255 255 255 PROJECTION "init=epsg:3857" END WEB IMAGEPATH "test/img/tmp/ms_tmp/" IMAGEURL "http://localhost:8080/wxmap/test/img/tmp/ms_tmp/" METADATA "wms_title" "WMS Test " ## REQUIRED "wms_onlineresource" "http://localhost:8080/cgi-bin/mapserv?" ## Recommended "wms_srs" "ESPG:3857 EPSG:4326 EPSG:4269 EPSG:3978 EPSG:900913" ## Recommended "wms_abstract" "This text describes my WMS service." ## Recommended "wms_enable_request" "*" "ows_sld_enable" "true" # testing "wms_feature_info_mime_type" "text/html" END END OUTPUTFORMAT NAME "png" DRIVER GD/PNG MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END LAYER # GRIB attempt NAME mosaic STATUS ON TYPE RASTER DATA *../grib/ds_vis%fhour%.grb* CLASSITEM "[pixel]" METADATA "gml_include_items" "all" "wms_include_items" "all" END 'fhour_validation_pattern' '^[][_a-zA-Z0-9]+$' # testing DUMP TRUE HEADER "../templates/test_header.html" TEMPLATE "../templates/test_body.html" FOOTER "../templates/test_footer.html" PROJECTION "proj=lcc" "lat_1=25" "lat_2=25" "lat_0=0" "lon_0=-95" "x_0=0" "y_0=0" "a=6371200" "es=0.0" "+no_defs" END PROCESSING "NODATA=32129" PROCESSING "BANDS=01" PROCESSING "SCALE=0,11200" LABELITEM "[pixel]" CLASS NAME "< 1/4" EXPRESSION ([pixel] < 400 ) STYLE COLOR 100 0 100 END END .... END # End of mosaic layer END But this results in: "loadLayer(): Unknown identifier. Parsing error near (%):(line 90) msOutputFormatValidate():" I tried a few variations: - using RTS for the entire file name - specifying the entire path - quotes/no quotes around the full file path name (different error with quotes) to no avail. I tried others these either ended up in other errors. Pretty much hitting walls everywhere and winding up with some of the same variations. So, thought it was time to ask what I might be doing wrong or if this is even possible. I've used RTS successfully with Postgres/PostGIS, so I thought this should work as well. And it's the DATA statement where I thought this would most likely work. Appreciate any thoughts/help! Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4626749.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pagirgis at gmail.com Fri Mar 16 20:40:31 2012 From: pagirgis at gmail.com (Peter Girgis) Date: Sat, 17 Mar 2012 14:40:31 +1100 Subject: [mapserver-users] Change case of labels using a mapfile In-Reply-To: References: Message-ID: Dear users Our data contains fields that we would like to use as labels and the field data is all in upper case. I have been trying to find a way to use the mapfile to make the label appear in lower case. Does anyone have any thoughts? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Mar 16 21:18:58 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 17 Mar 2012 00:18:58 -0400 Subject: [mapserver-users] Change case of labels using a mapfile In-Reply-To: References: Message-ID: <4F6410B2.7070508@swoodbridge.com> On 3/16/2012 11:40 PM, Peter Girgis wrote: > Dear users > Our data contains fields that we would like to use as labels and the > field data is all in upper case. > > I have been trying to find a way to use the mapfile to make the label > appear in lower case. > > Does anyone have any thoughts? You might be able to do this with ogr2ogr. You can use a sql statement to modify the the column you want. Here are some links that might help: http://www.gdal.org/ogr2ogr.html http://www.gdal.org/ogr/ogr_sql.html http://www.bostongis.com/PrinterFriendly.aspx?content_name=ogr_cheatsheet You might try initcap(string), lower(string) I have not tried this, but it is probably worth a try. Other options would be loading the file into postgis or spatialite and modifying it there then dumping it back out or writing a C, Perl, or Python script to modify the file. -Steve W From thomas.bonfort at gmail.com Fri Mar 16 22:07:34 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 17 Mar 2012 06:07:34 +0100 Subject: [mapserver-users] Run-time Substitution and Raster file problem In-Reply-To: <1331941410599-4626749.post@n6.nabble.com> References: <1331941410599-4626749.post@n6.nabble.com> Message-ID: first thing that comes to mind is 'fhour_validation_pattern' '^[][_a-zA-Z0-9]+$' this should go in a VALIDATION block VALIDATION 'fhour' '^[][_a-zA-Z0-9]+$' END On Sat, Mar 17, 2012 at 00:43, teknocreator wrote: > This is somewhat related to the post by Kathleen Hirst on Feb 27. ?We're > using MapServer 6.0.1 and I'm attempting get around the fact that one isn't > able to change the PROCESSING "BANDS=" directive via Run-time Substitution. > I couldn't find a way to do it through modifying the URL that's passed > either. ?As we don't have a many rasters in a file as Kathleen, I thought of > splitting the bigger file up into individual rasters. ?Then use Run-time > Substitution and pass in either the filename or just a piece of the file > name to the DATA portion of the mapfile. ?The docs seem to indicate I should > be able to do this. ?But, I get an error with each attempt. ?Here's what I > tried first: > > MAP > ?NAME "testgrib" > ?IMAGETYPE ? ? ?PNG > ?EXTENT ? ? ? ? -14000000 3000000 -7000000 7000000 > ?STATUS ? ? ? ? ON > ?SIZE ? ? ? ? ? 2145 1377 > > ?SHAPEPATH ? ? ?"../shapefiles" > ?SYMBOLSET ? ? ?"../symbols/symbols35.sym" > ?FONTSET ? ? ? ?"../fonts/fonts.list" > ?DATAPATTERN "^.*$" > ?IMAGECOLOR ? ? 255 255 255 > > ?PROJECTION > ? "init=epsg:3857" > ?END > ?WEB > ? ?IMAGEPATH "test/img/tmp/ms_tmp/" > ? ?IMAGEURL "http://localhost:8080/wxmap/test/img/tmp/ms_tmp/" > ? ?METADATA > ? ? ?"wms_title" ? ? ? ? ? ? ? ? ?"WMS Test " ## REQUIRED > ? ? ?"wms_onlineresource" ? ? ? ? "http://localhost:8080/cgi-bin/mapserv?" > ## Recommended > ? ? ?"wms_srs" ? ? ? ? ? ? ? ? ? ?"ESPG:3857 EPSG:4326 EPSG:4269 EPSG:3978 > EPSG:900913" ## Recommended > ? ? ?"wms_abstract" ? ? ? ? ? ? ? "This text describes my WMS service." ## > Recommended > ? ? ?"wms_enable_request" "*" > ? ? ?"ows_sld_enable" "true" > ? ?# testing > ? ? ?"wms_feature_info_mime_type" "text/html" > ? ?END > ?END > > ?OUTPUTFORMAT > ? ?NAME "png" > ? ?DRIVER GD/PNG > ? ?MIMETYPE "image/png" > ? ?IMAGEMODE RGBA > ? ?EXTENSION "png" > ? ?TRANSPARENT ON > ?END > > > ?LAYER # GRIB attempt > ? ?NAME ? ? ? ? mosaic > ? ?STATUS ? ? ? ON > ? ?TYPE ? ? ? ? RASTER > > ? ?DATA ? ? ? ? *../grib/ds_vis%fhour%.grb* > > ? ?CLASSITEM "[pixel]" > ? ?METADATA > ? ? "gml_include_items" "all" > ? ? "wms_include_items" "all" > ? ?END > ? 'fhour_validation_pattern' '^[][_a-zA-Z0-9]+$' > # testing > ? ?DUMP TRUE > ? ?HEADER ?"../templates/test_header.html" > ? ?TEMPLATE "../templates/test_body.html" > ? ?FOOTER "../templates/test_footer.html" > > ? ?PROJECTION > ? ? "proj=lcc" > ? ? "lat_1=25" > ? ? "lat_2=25" > ? ? "lat_0=0" > ? ? "lon_0=-95" > ? ? "x_0=0" > ? ? "y_0=0" > ? ? "a=6371200" > ? ? "es=0.0" > ? ? "+no_defs" > ? ?END > > ? ?PROCESSING "NODATA=32129" > ? ?PROCESSING "BANDS=01" > ? ?PROCESSING "SCALE=0,11200" > ? ?LABELITEM "[pixel]" > > ? ?CLASS > ? ?NAME "< 1/4" > ? ?EXPRESSION ([pixel] < 400 ) > ? ?STYLE > ? ? ? ?COLOR 100 0 100 > ? ?END > ? ?END > .... > > > ?END # End of mosaic layer > > END > > But this results in: > > "loadLayer(): Unknown identifier. Parsing error near (%):(line 90) > msOutputFormatValidate():" > > I tried a few variations: > - using RTS for the entire file name > - specifying the entire path > - quotes/no quotes around the full file path name (different error with > quotes) > > to no avail. ?I tried others these either ended up in other errors. ?Pretty > much hitting walls everywhere and winding up with some of the same > variations. ?So, thought it was time to ask what I might be doing wrong or > if this is even possible. ?I've used RTS successfully with Postgres/PostGIS, > so I thought this should work as well. ?And it's the DATA statement where I > thought this would most likely work. > > Appreciate any thoughts/help! > > Dave M > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4626749.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 ahmettemiz88 at gmail.com Sat Mar 17 02:07:37 2012 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Sat, 17 Mar 2012 11:07:37 +0200 Subject: [mapserver-users] make background tranparent Message-ID: hello I have two questions. 1- How can I make the background tranparent in a map file ? 2- Te map I produced does not seem to be tranparent in spite of having lowered opacity to 20 Could you tell me why ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From matt at wildwalks.com Sat Mar 17 02:30:02 2012 From: matt at wildwalks.com (Matt McClelland) Date: Sat, 17 Mar 2012 20:30:02 +1100 Subject: [mapserver-users] make background tranparent In-Reply-To: References: Message-ID: Hi You are looking for TRANSPARENT on Read about it at the bottom of the page here http://mapserver.org/mapfile/outputformat.html Hope that helps Matt :) Sent from my iPhone On 17/03/2012, at 8:07 PM, ahmet temiz wrote: > hello > > I have two questions. > 1- How can I make the background tranparent in a map file ? > 2- Te map I produced does not seem to be tranparent in spite of having > lowered opacity to 20 > > Could you tell me why ? > > regards > > > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Planlama ve Zarar Azaltma Dairesi Ba?kanl??? > Bilgi ve CBS grubu > Eski?ehir Yolu 10. km. > Lodumlu / Ankara > Tel : 0 312 2872680 / 1535 > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pedrocostaarma at sapo.pt Sat Mar 17 02:42:35 2012 From: pedrocostaarma at sapo.pt (pedrocostaarma at sapo.pt) Date: Sat, 17 Mar 2012 09:42:35 +0000 (UTC) Subject: [mapserver-users] Bing maps Message-ID: <411725685.21562.1331977355771.JavaMail.seven@ap6.p0.fra.samsungsocialhub.net> An HTML attachment was scrubbed... URL: From teknocreator at gmail.com Sat Mar 17 04:43:21 2012 From: teknocreator at gmail.com (teknocreator) Date: Sat, 17 Mar 2012 04:43:21 -0700 (PDT) Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: References: <1331941410599-4626749.post@n6.nabble.com> Message-ID: <1331984601151-4627741.post@n6.nabble.com> Thomas, Thanks for the suggestion. And actually, the 'fhour_validation_pattern' should be enclosed in the METADATA area above it. From what I've read, both forms should work and we actually use the "*_validation_pattern" form in the METADATA block to create an image of point values after a database select. I did try what you suggested, though, taking that out of the METADATA and using a VALIDATION block in the format you listed (and that's in the docs). Unfortunately, same error occurs: loadLayer(): Unknown identifier. Parsing error near (%):(line 90) Doesn't get to the point where it tries to validate the RTS variable in the mapfile. Can't seem to parse the DATA line with '%' in it when the type of data is a raster. Other thoughts? Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627741.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Sat Mar 17 04:48:43 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 17 Mar 2012 12:48:43 +0100 Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: <1331984601151-4627741.post@n6.nabble.com> References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> Message-ID: enclosing your data string with * seems wrong, what happens if you use quotes ? On Sat, Mar 17, 2012 at 12:43, teknocreator wrote: > Thomas, > > Thanks for the suggestion. ?And actually, the 'fhour_validation_pattern' > should be enclosed in the METADATA area above it. ?From what I've read, both > forms should work and we actually use the "*_validation_pattern" form in the > METADATA block to create an image of point values after a database select. > I did try what you suggested, though, taking that out of the METADATA and > using a VALIDATION block in the format you listed (and that's in the docs). > Unfortunately, same error occurs: > > loadLayer(): Unknown identifier. Parsing error near (%):(line 90) > > Doesn't get to the point where it tries to validate the RTS variable in the > mapfile. ?Can't seem to parse the DATA line with '%' in it when the type of > data is a raster. > > Other thoughts? > > Dave M > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627741.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 teknocreator at gmail.com Sat Mar 17 05:24:39 2012 From: teknocreator at gmail.com (teknocreator) Date: Sat, 17 Mar 2012 05:24:39 -0700 (PDT) Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> Message-ID: <1331987079363-4627796.post@n6.nabble.com> Thomas, I'm not positive about what you wrote as I don't enclose the data string with '*'. The '*' in the "*_validation_pattern" I mentioned was just a wildcard for the RTS variables that I use as we use a few in the DB call I mentioned. However, when I tried what you suggested, the parser tries to find a file named ds_vis%fhour%.grb: msDrawMap(): Image handling error. Failed to draw layer named 'mosaic'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '../grib/%file%' for layer 'mosaic'. I've tried variations on this using the full path enclosed in quotes (which throws the error above) and without (which throws the first one). Then tried this: DATA ../grib/%file%, (full path)/grib/%file% (with and without quotes), thinking I should pass the whole file name. I either get a parsing error for the '%' or it can't find the file because the quotes cause the parser to look for a filename with '%' in it. Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627796.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Sat Mar 17 05:29:34 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 17 Mar 2012 13:29:34 +0100 Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: <1331987079363-4627796.post@n6.nabble.com> References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> <1331987079363-4627796.post@n6.nabble.com> Message-ID: as a rule of thumb, you should always use quotes around your strings. the stars I was talking about come from your mapfile snippet: DATA *../grib/ds_vis%fhour%.grb* with RTS, your queries will fail if you do not add a fhour= parameter to your http query, as in that case %fhour% will not be replaced. you can have a look at using default substitutions in the docs if you want the fhour parameter to become optional. -- thomas On Sat, Mar 17, 2012 at 13:24, teknocreator wrote: > Thomas, > > I'm not positive about what you wrote as I don't enclose the data string > with '*'. ?The '*' in the "*_validation_pattern" I mentioned was just a > wildcard for the RTS variables that I use as we use a few in the DB call I > mentioned. > > However, when I tried what you suggested, the parser tries to find a file > named ds_vis%fhour%.grb: > > msDrawMap(): Image handling error. Failed to draw layer named 'mosaic'. > msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing > file '../grib/%file%' for layer 'mosaic'. > > I've tried variations on this using the full path enclosed in quotes (which > throws the error above) and without (which throws the first one). ?Then > tried this: > > DATA ?../grib/%file%, (full path)/grib/%file% (with and without quotes), > thinking I should pass the whole file name. > > I either get a parsing error for the '%' or it can't find the file because > the quotes cause the parser to look for a filename with '%' in it. > > Dave M > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627796.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 teknocreator at gmail.com Sat Mar 17 05:58:37 2012 From: teknocreator at gmail.com (teknocreator) Date: Sat, 17 Mar 2012 05:58:37 -0700 (PDT) Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> <1331987079363-4627796.post@n6.nabble.com> Message-ID: <1331989117337-4627853.post@n6.nabble.com> Thomas, Okay, must be some sort of list editor translation as I don't have "*" around my DATA line when I view this list message nor in my actual file. They're not in the query that's being sent to MapServer. And understand about the quotes around strings though it seems for raster images, they're not completely necessary. In any case, the RTS variable I specify is there in the query. I'm using OpenLayers to form the query and in Firebug, I can see that the RTS variable is correctly formed. I copy entire request string and send that to MapServer so I can see the responses as the OpenLayers display just returns a blank image. Now, I decided to try moving my raster files to the SHAPEFILE area just so I don't have to deal with any path issues. So, if I specify the file like so in the mapfile: DATA "dsvis1.grb" I get the image displayed properly (I changed the file name just to kept it simple). However, if I do this: DATA "%file%" First using Firebug, I can first see this part of the http request string to MapServer seems to be specifying this file correctly: "...&file=dsvis1.grb&...". But the substitution doesn't seem to occur as MapServer is now looking for a file named %file% instead: msDrawMap(): Image handling error. Failed to draw layer named 'mosaic'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '%file%' for layer 'mosaic'. If I take away the quotes around %file% in the data statement, I get the parsing error. Which is where I unfortunately began here. I do appreciate your suggestions and trying to eliminate possible format issues. Goodness knows I've had my share of user errors. It just seems like RTS isn't happening as expected for RASTER types. Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627853.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Sat Mar 17 06:03:06 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 17 Mar 2012 13:03:06 +0000 Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: <1331987079363-4627796.post@n6.nabble.com> References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> , <1331987079363-4627796.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A631415C0@suutari.haapa.mmm.fi> Hi, Start from something simple and try to use DAT with tiff file with %file% and make it to work first. I am pretty sure that is will work. Perhaps there is some trouble with validation or something. If you do not have a luck with RASTER make a similar vector layer and see if you can change %file% with a variable then. Here are snippets from working vector data examples DATA "way from (select (way),osm_id,tags from osm_polygon where (tags @>'%tag%=>%value%')) as foo using unique osm_id using srid=3067" VALIDATION tag "." value "." END With this setting user must give both tag and value parameters as &tag=something&value=else. Defaults can be given as "default_tag" "amenity" "default_value" "toilets" -Jukka Rahkonen- ________________________________________ teknocreator wrote: > Thomas, > I'm not positive about what you wrote as I don't enclose the data string with '*'. The '*' in the "*_validation_pattern" I mentioned was just a wildcard for the RTS variables that I use as we use a few in the DB call I mentioned. However, when I tried what you suggested, the parser tries to find a file named ds_vis%fhour%.grb: msDrawMap(): Image handling error. Failed to draw layer named 'mosaic'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '../grib/%file%' for layer 'mosaic'. I've tried variations on this using the full path enclosed in quotes (which throws the error above) and without (which throws the first one). Then tried this: DATA ../grib/%file%, (full path)/grib/%file% (with and without quotes), thinking I should pass the whole file name. I either get a parsing error for the '%' or it can't find the file because the quotes cause the parser to look for a filename with '%' in it. Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627796.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 thomas.bonfort at gmail.com Sat Mar 17 06:05:38 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 17 Mar 2012 14:05:38 +0100 Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: <1331989117337-4627853.post@n6.nabble.com> References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> <1331987079363-4627796.post@n6.nabble.com> <1331989117337-4627853.post@n6.nabble.com> Message-ID: the type of layer should not be an issue for RTS. What mapserver version are you using? Can you attach the full unedited mapfile? On Sat, Mar 17, 2012 at 13:58, teknocreator wrote: > Thomas, > > Okay, must be some sort of list editor translation as I don't have "*" > around my DATA line when I view this list message nor in my actual file. > They're not in the query that's being sent to MapServer. ?And understand > about the quotes around strings though it seems for raster images, they're > not completely necessary. > > In any case, the RTS variable I specify is there in the query. ?I'm using > OpenLayers to form the query and in Firebug, I can see that the RTS variable > is correctly formed. ?I copy entire request string and send that to > MapServer so I can see the responses as the OpenLayers display just returns > a blank image. > > Now, I decided to try moving my raster files to the SHAPEFILE area just so I > don't have to deal with any path issues. ?So, if I specify the file like so > in the mapfile: > > DATA "dsvis1.grb" > > I get the image displayed properly (I changed the file name just to kept it > simple). ?However, if I do this: > > DATA "%file%" > > First using Firebug, I can first see this part of the http request string to > MapServer seems to be specifying this file correctly: > "...&file=dsvis1.grb&...". ?But the substitution doesn't seem to occur as > MapServer is now looking for a file named %file% instead: > > msDrawMap(): Image handling error. Failed to draw layer named 'mosaic'. > msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing > file '%file%' for layer 'mosaic'. > > If I take away the quotes around %file% in the data statement, I get the > parsing error. ?Which is where I unfortunately began here. > > I do appreciate your suggestions and trying to eliminate possible format > issues. ?Goodness knows I've had my share of user errors. ?It just seems > like RTS isn't happening as expected for RASTER types. > > Dave M > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627853.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 teknocreator at gmail.com Sat Mar 17 06:45:27 2012 From: teknocreator at gmail.com (teknocreator) Date: Sat, 17 Mar 2012 06:45:27 -0700 (PDT) Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> <1331987079363-4627796.post@n6.nabble.com> <1331989117337-4627853.post@n6.nabble.com> Message-ID: <1331991927220-4627945.post@n6.nabble.com> Note to list that I replied directly to Thomas with our mapfile as it wasn't really different too much than what I already included in this post. The only real difference was attempting to use the lines in bold: LAYER # GRIB attempt NAME mosaic STATUS ON TYPE RASTER *DATA "%file%"* CLASSITEM "[pixel]" METADATA "wms_title" "test grib" "wms_srs" "EPSG:6825" "gml_include_items" "all" "wms_include_items" "all" END VALIDATION *'file' '^[][_a-zA-Z0-9]+$'* END We're using MapServer 6.0.1 on a Linux system. Yeah, I agree that the type of data shouldn't make a difference. Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627945.html Sent from the Mapserver - User mailing list archive at Nabble.com. From teknocreator at gmail.com Sat Mar 17 07:03:12 2012 From: teknocreator at gmail.com (teknocreator) Date: Sat, 17 Mar 2012 07:03:12 -0700 (PDT) Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: <84446DEF76453C439E9E97E438E13A631415C0@suutari.haapa.mmm.fi> References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> <1331987079363-4627796.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A631415C0@suutari.haapa.mmm.fi> Message-ID: <1331992992894-4627981.post@n6.nabble.com> Rahkonen, Well, I did try your suggestion just using %file% with our raster data (it's GRIB but I not sure that that would make a difference) and ended up with the same parsing error. I'll attempt a vector file when I get a chance. However, I will say that I have successfully used RTS on a Point layer that connects to a Postgres/PostGIS DB. So this works for me for a different layer and mapfile: DATA "geom_3857 from (select gid, priority, %dataarray% as ceil, geom_3857 from wxmap_lamp_station_cigh) as subquery using unique gid using srid=3857" So dataarray with a particular string is passed into MapServer via the request URL and the image of the points layer is displayed just fine. I'll report back later for a vector file though I think considering its DATA line is setup much the DB line above, it will probably work. I will also attempt to use a different raster, though I suspect that the parsing error will occur just as it is now. Thanks Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627981.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Sat Mar 17 08:38:57 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 17 Mar 2012 16:38:57 +0100 Subject: [mapserver-users] Re: Run-time Substitution and Raster file problem In-Reply-To: <1331991927220-4627945.post@n6.nabble.com> References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> <1331987079363-4627796.post@n6.nabble.com> <1331989117337-4627853.post@n6.nabble.com> <1331991927220-4627945.post@n6.nabble.com> Message-ID: ok, I think I have it... your regex does not allow the "." in foo.tif -- thomas On Sat, Mar 17, 2012 at 14:45, teknocreator wrote: > Note to list that I replied directly to Thomas with our mapfile as it wasn't > really different too much than what I already included in this post. ?The > only real difference was attempting to use the lines in bold: > > ?LAYER # GRIB attempt > ? ?NAME ? ? ? ? mosaic > ? ?STATUS ? ? ? ON > ? ?TYPE ? ? ? ? RASTER > ? ?*DATA ? ? ? ?"%file%"* > > ? ?CLASSITEM "[pixel]" > ? ?METADATA > ? ? ? "wms_title" "test grib" > ? ? ? "wms_srs" "EPSG:6825" > ? ? ? "gml_include_items" "all" > ? ? ? "wms_include_items" "all" > ? ?END > > ? ?VALIDATION > ? ? *'file' '^[][_a-zA-Z0-9]+$'* > ? ?END > > We're using MapServer 6.0.1 on a Linux system. ?Yeah, I agree that the type > of data shouldn't make a difference. > > Dave M > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627945.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 teknocreator at gmail.com Sat Mar 17 16:04:03 2012 From: teknocreator at gmail.com (teknocreator) Date: Sat, 17 Mar 2012 16:04:03 -0700 (PDT) Subject: [mapserver-users] [SOLVED] Re: Run-time Substitution and Raster file problem In-Reply-To: References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> <1331987079363-4627796.post@n6.nabble.com> <1331989117337-4627853.post@n6.nabble.com> <1331991927220-4627945.post@n6.nabble.com> Message-ID: <1332025443766-4629087.post@n6.nabble.com> Thomas, THANK YOU VERY MUCH! I knew the validation was important and I ran into the situation with the points layer where I forgot to include the validation_pattern line. But, I forgot what the error was when that appeared last. Since I had the VALIDATION block this time (and I'm not as well versed as I should be on regex), I didn't think to test it for a possible problem. It's interesting, though, that a parsing error for the '%' was tripped instead of a validation error. That's where I got turned around in trying to solve this. So I now have these lines in the mapfile: Data "%file%" VALIDATION 'file' '^.*$' #have to look into changing this to something with a bit more checking END And in my OpenLayers code, just a quick test which first declares the raster layer for the first hour (1): wmsmap = new OpenLayers.Layer.MapServer( "GRIB TEST", "/cgi-bin/mapserv", {layers: "mosaic", SRS:"EPSG:3857", map:"wxmap/glmpvis2.map", format:'image/png', mode: "map", file: "dsvis1.grb", transparent:true, reaspect: "true"}, {singleTile: true, ratio: 1, isBaseLayer: false, opacity: 1.0, visibility: true, projection: new OpenLayers.Projection("EPSG:3857"), active: false}); and then modifies the file name between dsvis1.grb and dsvis10.grb function updateMap(){ var Fhour=getFHour(); // another function getting hour from radio button group var file = "dsvis" + Fhour + ".grb"; wmsmap.mergeNewParams({'file': file}); } Radio buttons with the hours switch between the two and it works like a charm! Think I'll eventually add the default value lines too. Again, can't thank you enough! Thanks to all who also commented! Hopefully, this helps someone else along the way. Dave M -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4629087.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Sun Mar 18 02:57:36 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 18 Mar 2012 10:57:36 +0100 Subject: [mapserver-users] [SOLVED] Re: Run-time Substitution and Raster file problem In-Reply-To: <1332025443766-4629087.post@n6.nabble.com> References: <1331941410599-4626749.post@n6.nabble.com> <1331984601151-4627741.post@n6.nabble.com> <1331987079363-4627796.post@n6.nabble.com> <1331989117337-4627853.post@n6.nabble.com> <1331991927220-4627945.post@n6.nabble.com> <1332025443766-4629087.post@n6.nabble.com> Message-ID: On Sun, Mar 18, 2012 at 00:04, teknocreator wrote: > Thomas, > > THANK YOU VERY MUCH! ? ?I knew the validation was important and I ran into > the situation with the points layer where I forgot to include the > validation_pattern line. ?But, I forgot what the error was when that > appeared last. ?Since I had the VALIDATION block this time (and I'm not as > well versed as I should be on regex), I didn't think to test it for a > possible problem. ?It's interesting, though, that a parsing error for the > '%' was tripped instead of a validation error. ?That's where I got turned > around in trying to solve this. I suspect the parser does not like % in unquoted strings. That's why it is always a good idea to quote all strings in a mapfile, even if the parser accepts most unquoted strings. The error you ran into is a bit misleading. MapServer prints an error message in case a RTS value failed validation, but does not halt the execution and instead keeps the original unsubstituted string. This allows the default value to be substituted if it was configured, but makes debugging the issue a bit harder as the actual validation error is not returned to the user doing the query. You could open a trac ticket requesting that a validation error should halt execution and return the error message instead of silently continuing with no substitutions at all. regards, thomas > > So I now have these lines in the mapfile: > > Data "%file%" > > VALIDATION > ?'file' '^.*$' ?#have to look into changing this to something with a bit > more checking > END > > And in my OpenLayers code, just a quick test which first declares the raster > layer for the first hour (1): > > ? ? wmsmap = new OpenLayers.Layer.MapServer( "GRIB TEST", > "/cgi-bin/mapserv", > ? ? ? ? ? ? ? ?{layers: "mosaic", SRS:"EPSG:3857", > map:"wxmap/glmpvis2.map", > ? ? ? ? ? ? ? ? format:'image/png', mode: "map", file: "dsvis1.grb", > ? ? ? ? ? ? ? ? transparent:true, reaspect: "true"}, > ? ? ? ? ? ? ? ?{singleTile: true, ratio: 1, isBaseLayer: false, opacity: > 1.0, visibility: true, > ? ? ? ? ? ? ? ? projection: new OpenLayers.Projection("EPSG:3857"), active: > false}); > > and then modifies the file name between dsvis1.grb and dsvis10.grb > > function updateMap(){ > > ? ?var Fhour=getFHour(); ?// another function getting hour from radio > button group > > ? ?var file = "dsvis" + Fhour + ".grb"; > > ? ?wmsmap.mergeNewParams({'file': file}); > } > > Radio buttons with the hours switch between the two and it works like a > charm! > > Think I'll eventually add the default value lines too. > > Again, can't thank you enough! ?Thanks to all who also commented! > Hopefully, this helps someone else along the way. > > Dave M > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4629087.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 aperi2007 at gmail.com Sun Mar 18 12:51:03 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 18 Mar 2012 20:51:03 +0100 Subject: [mapserver-users] Show a raster layer with a text string in it. Message-ID: Hi, I need to add a text string to a raster layer (to report a disclaimer). Is this possible ? I try this: LAYER NAME "idraster" STATUS ON TYPE raster TILEINDEX 'index.shp' TILEITEM 'location' ..... FEATURE POINTS 450 15 END TEXT 'Disclaimer for raster layer' END CLASS LABEL TYPE TRUETYPE FORCE true COLOR 0 0 0 ANTIALIAS false OUTLINECOLOR 255 255 255 OUTLINEWIDTH 2 SIZE 8 ANGLE 0 FONT "LiberationSans-Regular" POSITION auto END END END But the raster is showed without the string . Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sun Mar 18 12:58:07 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 18 Mar 2012 20:58:07 +0100 Subject: [mapserver-users] Show a raster layer with a text string in it. In-Reply-To: References: Message-ID: use a second point layer, with TRANSFORM FALSE and STATUS DEFAULT -- thomas On Sun, Mar 18, 2012 at 20:51, Andrea Peri wrote: > Hi, > I need to add a text string to a raster layer (to report a disclaimer). > Is this possible ? > > I try this: > > ? LAYER > ??? NAME "idraster" > ??? STATUS ON > ??? TYPE raster > ??? TILEINDEX 'index.shp' > ??? TILEITEM 'location' > ??? ..... > ??? FEATURE > ????? POINTS > ??????? 450 15 > ????? END > ????? TEXT 'Disclaimer for raster layer' > ??? END > ??? CLASS > ????? LABEL > ??????? TYPE TRUETYPE > ??????? FORCE true > ??????? COLOR 0 0 0 > ??????? ANTIALIAS false > ??????? OUTLINECOLOR 255 255 255 > ??????? OUTLINEWIDTH 2 > ??????? SIZE 8 > ??????? ANGLE 0 > ??????? FONT "LiberationSans-Regular" > ??????? POSITION auto > ????? END > ??? END > ? END > > But the raster is showed without the string . > > Thx, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aperi2007 at gmail.com Sun Mar 18 13:27:50 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 18 Mar 2012 21:27:50 +0100 Subject: [mapserver-users] Show a raster layer with a text string in it. In-Reply-To: References: Message-ID: Thx, it's what I need. :) 2012/3/18 thomas bonfort > use a second point layer, with TRANSFORM FALSE and STATUS DEFAULT > > -- > thomas > > On Sun, Mar 18, 2012 at 20:51, Andrea Peri wrote: > > Hi, > > I need to add a text string to a raster layer (to report a disclaimer). > > Is this possible ? > > > > I try this: > > > > LAYER > > NAME "idraster" > > STATUS ON > > TYPE raster > > TILEINDEX 'index.shp' > > TILEITEM 'location' > > ..... > > FEATURE > > POINTS > > 450 15 > > END > > TEXT 'Disclaimer for raster layer' > > END > > CLASS > > LABEL > > TYPE TRUETYPE > > FORCE true > > COLOR 0 0 0 > > ANTIALIAS false > > OUTLINECOLOR 255 255 255 > > OUTLINEWIDTH 2 > > SIZE 8 > > ANGLE 0 > > FONT "LiberationSans-Regular" > > POSITION auto > > END > > END > > END > > > > But the raster is showed without the string . > > > > Thx, > > > > -- > > ----------------- > > Andrea Peri > > . . . . . . . . . > > qwerty ????? > > ----------------- > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From volzmark at yahoo.com Mon Mar 19 05:13:54 2012 From: volzmark at yahoo.com (Mark Volz) Date: Mon, 19 Mar 2012 05:13:54 -0700 (PDT) Subject: [mapserver-users] poor raster image quality Message-ID: <1332159234.85589.YahooMailNeo@web121303.mail.ne1.yahoo.com> Hello, I am using mapserver to consume a wms air photo service, and reproject the image so that it can be used with a program that requires a wms service in a different projection. Currently mapserver is working as both a wms client and wms server, except that the image quality is terrible.? To me it looks like it might be a 256 color image instead of 24 bit.? For the output format, I am using aag/jpeg, and RGB image mode.? If anyone could help me figure out how to get a better quality image for my air photo wms client / server I would appreciate it. Thanks Mark Volz -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Mon Mar 19 07:48:14 2012 From: mwkorver at gmail.com (Mark Korver) Date: Mon, 19 Mar 2012 07:48:14 -0700 Subject: [mapserver-users] poor raster image quality In-Reply-To: <1332159234.85589.YahooMailNeo@web121303.mail.ne1.yahoo.com> References: <1332159234.85589.YahooMailNeo@web121303.mail.ne1.yahoo.com> Message-ID: You need to upload your map file for anybody to be able to help on this. On Mon, Mar 19, 2012 at 5:13 AM, Mark Volz wrote: > Hello, > > I am using mapserver to consume a wms air photo service, and reproject the > image so that it can be used with a program that requires a wms service in a > different projection. Currently mapserver is working as both a wms client > and wms server, except that the image quality is terrible.? To me it looks > like it might be a 256 color image instead of 24 bit.? For the output > format, I am using aag/jpeg, and RGB image mode. > > If anyone could help me figure out how to get a better quality image for my > air photo wms client / server I would appreciate it. > > Thanks > > Mark Volz > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From steve at qpublic.net Mon Mar 19 09:00:26 2012 From: steve at qpublic.net (Steve Lehr) Date: Mon, 19 Mar 2012 12:00:26 -0400 Subject: [mapserver-users] automated response Message-ID: <11203191200.AA62929@qpublic.net> I'll be out of the office the week of March 19 - March 24. If you need faster assistance please call the office 386-734-1954 Thank you and have a great day. From pedrocostaarma at sapo.pt Mon Mar 19 09:21:41 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Mon, 19 Mar 2012 16:21:41 +0000 Subject: [mapserver-users] gdaldatasetrasterIO() failed: ireadblock failed Message-ID: <4F675D15.9030204@sapo.pt> Hello list, My server can?t open a tif that i have in my mapfile. It gives this error: gdaldatasetrasterIO() failed: ireadblock failed Someone know what is this problem? Thanks From i.skidoosh at gmail.com Mon Mar 19 12:54:41 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 20 Mar 2012 01:24:41 +0530 Subject: [mapserver-users] mapserver displaying only the background image as specified in the IMAGECOLOR field in the mapfile. No image generated from the shapefile data. Message-ID: I've used mapserver before. Although it was an older version. I was just trying to set it up again on my computer. I ran the hello_world example from Bill Kropla's book. It worked fine. But when I'm trying to run the first.map, there are no errors in the logs. I checked both mapserver error log and the lighttpd error log. But the image displayed only comprises of the background color specified in the mapfile. No actual image is generated from the shapefile data provided. There are no errors either logged so I can't debug. Its been 5 days now. I have tried many methods to debug but I have failed always. Attached is mapfile and the corresponding html file. please help. Mapfile: MAP NAME "First" CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_error.txt" CONFIG "PROJ_DEBUG" "ON" CONFIG "CPL_DEBUG" "ON" SIZE 1024 768 IMAGECOLOR 111 111 111 IMAGETYPE jpeg SHAPEPATH /var/www/Delhi/ EXTENT 76.898503 28.410443 77.337521 28.862691 WEB TEMPLATE '/var/www/first.html' IMAGEPATH '/var/www/tmp/' IMAGEURL '/tmp/' END LAYER NAME "Highways" DEBUG 5 STATUS ON TYPE LINE DATA asia_southern_asia_india_delhi_highway LABELITEM "NAME" CLASS STYLE OUTLINECOLOR 123 0 0 COLOR 0 255 0 END LABEL COLOR 255 0 0 SIZE SMALL END END END END END Template and initialization html file: MapServer First Map
The paths seem to be fine as I'm using the same paths I used while running hello_world and it ran fine. Please help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From i.skidoosh at gmail.com Mon Mar 19 12:57:42 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 20 Mar 2012 01:27:42 +0530 Subject: [mapserver-users] Fwd: mapserver displaying only the background image as specified in the IMAGECOLOR field in the mapfile. No image generated from the shapefile data. In-Reply-To: References: Message-ID: I've used mapserver before. Although it was an older version. I was just trying to set it up again on my computer. I ran the hello_world example from Bill Kropla's book. It worked fine. But when I'm trying to run the first.map, there are no errors in the logs. I checked both mapserver error log and the lighttpd error log. But the image displayed only comprises of the background color specified in the mapfile. No actual image is generated from the shapefile data provided. There are no errors either logged so I can't debug. Its been 5 days now. I have tried many methods to debug but I have failed always. Attached is mapfile and the corresponding html file. please help. Mapfile: MAP NAME "First" CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_error.txt" CONFIG "PROJ_DEBUG" "ON" CONFIG "CPL_DEBUG" "ON" SIZE 1024 768 IMAGECOLOR 111 111 111 IMAGETYPE jpeg SHAPEPATH /var/www/Delhi/ EXTENT 76.898503 28.410443 77.337521 28.862691 WEB TEMPLATE '/var/www/first.html' IMAGEPATH '/var/www/tmp/' IMAGEURL '/tmp/' END LAYER NAME "Highways" DEBUG 5 STATUS ON TYPE LINE DATA asia_southern_asia_india_delhi_highway LABELITEM "NAME" CLASS STYLE OUTLINECOLOR 123 0 0 COLOR 0 255 0 END LABEL COLOR 255 0 0 SIZE SMALL END END END END END Template and initialization html file: MapServer First Map
The paths seem to be fine as I'm using the same paths I used while running hello_world and it ran fine. Please help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Mar 19 13:25:36 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 19 Mar 2012 21:25:36 +0100 Subject: [mapserver-users] mapserver displaying only the background image as specified in the IMAGECOLOR field in the mapfile. No image generated from the shapefile data. In-Reply-To: References: Message-ID: 1. Set a width on your style block. 2. Make sure your shapefile extent intersects the map extent. -- Thomas On Mar 19, 2012 8:55 PM, "Annu Anurag" wrote: > I've used mapserver before. Although it was an older version. I was just > trying to set it up again on my computer. I ran the hello_world example > from Bill Kropla's book. It worked fine. But when I'm trying to run the > first.map, there are no errors in the logs. I checked both mapserver error > log and the lighttpd error log. But the image displayed only comprises of > the background color specified in the mapfile. No actual image is generated > from the shapefile data provided. There are no errors either logged so I > can't debug. Its been 5 days now. I have tried many methods to debug but I > have failed always. Attached is mapfile and the corresponding html file. > please help. > > > Mapfile: > > MAP > NAME "First" > CONFIG "MS_ERRORFILE" "/var/www/tmp/ms_error.txt" > CONFIG "PROJ_DEBUG" "ON" > CONFIG "CPL_DEBUG" "ON" > SIZE 1024 768 > IMAGECOLOR 111 111 111 > IMAGETYPE jpeg > SHAPEPATH /var/www/Delhi/ > EXTENT 76.898503 28.410443 77.337521 28.862691 > WEB > TEMPLATE '/var/www/first.html' > IMAGEPATH '/var/www/tmp/' > IMAGEURL '/tmp/' > END > LAYER > NAME "Highways" > DEBUG 5 > STATUS ON > TYPE LINE > DATA asia_southern_asia_india_delhi_highway > LABELITEM "NAME" > CLASS > STYLE > OUTLINECOLOR 123 0 0 > COLOR 0 255 0 > END > LABEL > COLOR 255 0 0 > SIZE SMALL > END > END > END > END > END > > > > > > > > > Template and initialization html file: > > > > MapServer First Map > >
> > value="/var/www/mapfiles/first.map"> > >
> > > > > > > > The paths seem to be fine as I'm using the same paths I used while running > hello_world and it ran fine. Please help. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From i.skidoosh at gmail.com Mon Mar 19 13:57:26 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 20 Mar 2012 02:27:26 +0530 Subject: Re [mapserver-users] mapserver displaying only the background image as specified in the IMAGECOLOR field in the mapfile. No image generated from the shapefile data. Message-ID: > Thanks a lot, friend. I set up WIDTH = 4.0 and I have checked the extent > with ogrinfo -summary on the shapefile. The image still comprises of just > the background color, sadly. :( What else could be the issue? I'm out of > ideas. The mapfile seems syntactically correct. There are no errors thrown > up either. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Mar 19 15:21:56 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 19 Mar 2012 22:21:56 +0000 Subject: [mapserver-users] Change case of labels using a mapfile In-Reply-To: <4F6410B2.7070508@swoodbridge.com> References: <4F6410B2.7070508@swoodbridge.com> Message-ID: Short of modifying the data you can't do it via configuration. This would be a nice addition to parser support though and I could sneak it into 6.2 I think if someone would be so kind as to create a ticket... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Friday, March 16, 2012 11:19 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Change case of labels using a mapfile On 3/16/2012 11:40 PM, Peter Girgis wrote: > Dear users > Our data contains fields that we would like to use as labels and the > field data is all in upper case. > > I have been trying to find a way to use the mapfile to make the label > appear in lower case. > > Does anyone have any thoughts? You might be able to do this with ogr2ogr. You can use a sql statement to modify the the column you want. Here are some links that might help: http://www.gdal.org/ogr2ogr.html http://www.gdal.org/ogr/ogr_sql.html http://www.bostongis.com/PrinterFriendly.aspx?content_name=ogr_cheatsheet You might try initcap(string), lower(string) I have not tried this, but it is probably worth a try. Other options would be loading the file into postgis or spatialite and modifying it there then dumping it back out or writing a C, Perl, or Python script to modify the file. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon Mar 19 15:32:02 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 19 Mar 2012 22:32:02 +0000 Subject: Re [mapserver-users] mapserver displaying only the background image as specified in the IMAGECOLOR field in the mapfile. No image generated from the shapefile data. In-Reply-To: References: Message-ID: You haven't said how you're creating the image. Are you using mode=browse, mode=map, shp2img, mapscript or ??? Offhand I'd say the problem is probably your layer status value. If you are using the CGI all layers are turned off unless they have "STATUS DEFAULT" and then you must explicitly turn them on using either the layer or layers CGI variables. Try setting your layer status to DEFAULT and see what happens. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Annu Anurag Sent: Monday, March 19, 2012 3:57 PM To: mapserver-users at lists.osgeo.org Subject: Re [mapserver-users] mapserver displaying only the background image as specified in the IMAGECOLOR field in the mapfile. No image generated from the shapefile data. Thanks a lot, friend. I set up WIDTH = 4.0 and I have checked the extent with ogrinfo -summary on the shapefile. The image still comprises of just the background color, sadly. :( What else could be the issue? I'm out of ideas. The mapfile seems syntactically correct. There are no errors thrown up either. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Mar 19 17:11:57 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 19 Mar 2012 20:11:57 -0400 Subject: [mapserver-users] Change case of labels using a mapfile In-Reply-To: References: <4F6410B2.7070508@swoodbridge.com> Message-ID: <4F67CB4D.9080907@swoodbridge.com> http://trac.osgeo.org/mapserver/ticket/4255 On 3/19/2012 6:21 PM, Lime, Steve D (DNR) wrote: > Short of modifying the data you can't do it via configuration. This would > be a nice addition to parser support though and I could sneak it into 6.2 > I think if someone would be so kind as to create a ticket... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge > Sent: Friday, March 16, 2012 11:19 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Change case of labels using a mapfile > > On 3/16/2012 11:40 PM, Peter Girgis wrote: >> Dear users >> Our data contains fields that we would like to use as labels and the >> field data is all in upper case. >> >> I have been trying to find a way to use the mapfile to make the label >> appear in lower case. >> >> Does anyone have any thoughts? > > You might be able to do this with ogr2ogr. You can use a sql statement > to modify the the column you want. Here are some links that might help: > > http://www.gdal.org/ogr2ogr.html > http://www.gdal.org/ogr/ogr_sql.html > http://www.bostongis.com/PrinterFriendly.aspx?content_name=ogr_cheatsheet > > You might try initcap(string), lower(string) > > I have not tried this, but it is probably worth a try. Other options > would be loading the file into postgis or spatialite and modifying it > there then dumping it back out or writing a C, Perl, or Python script to > modify the file. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From volzmark at yahoo.com Mon Mar 19 20:06:06 2012 From: volzmark at yahoo.com (Mark Volz) Date: Mon, 19 Mar 2012 20:06:06 -0700 (PDT) Subject: [mapserver-users] poor raster image quality In-Reply-To: References: <1332159234.85589.YahooMailNeo@web121303.mail.ne1.yahoo.com> Message-ID: <1332212766.25862.YahooMailNeo@web121302.mail.ne1.yahoo.com> Hello, The output quality of my mapserver wms service is poor.? This mapfile will eventually be used to project another wms server from one projection to another. If anyone has an example mapfile that reprojects an air photo into another projection and then in turn serves the air photo into another projection I would appreciate it.? Also I included part of my map file MAP ... ?? PROJECTION ??? ??? "init=epsg:26915"?? ##required ??? END ??? OUTPUTFORMAT ??? ??? NAME 'agg/jpeg' ??? ??? DRIVER AGG/JPEG ??? ??? IMAGEMODE RGB ??? ??? FORMATOPTION "QUALITY=85" ??? END ??? MAXSIZE 10000? #limit size of wms ??? IMAGETYPE agg/jpeg ??? IMAGECOLOR 255 255 255 ??? WEB ??? ??? IMAGEPATH "/ms4w/tmp/ms_tmp/" ??? ??? IMAGEURL "/ms_tmp/" ??? ??? METADATA? #should this be in our out of web? ??? ??? ??? 'ows_title' 'My WMS Server'? ??? ??? ??? 'ows_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/myapplication/maps/myMap.map'?? ??? ??? ??? 'ows_srs' 'EPSG:26915 EPSG:26914 EPSG:103748'? ??? ??? END #metadata ??? END #web? ??? LAYER ??? ??? DEBUG ON ??? ??? NAME 'MyWMSLayer' ??? ??? TYPE RASTER ??? ??? STATUS ON ??? ??? CONNECTIONTYPE WMS ??? ??? CONNECTION "http://geoint.lmic.state.mn.us/cgi-bin/wms" ??? ??? METADATA ??? ??? ??? "wms_srs" "EPSG:26915" ??? ??? ??? "wms_name" "south11" ??? ??? ??? "wms_server_version" "1.1.1" ??? ??? ??? "wms_format" "image/jpeg" ??? ??? END ??? END # LAYER END # Map File ________________________________ From: Mark Korver You need to upload your map file for anybody to be able to help on this. > Hello, > > I am using mapserver to consume a wms air photo service, and reproject the > image so that it can be used with a program that requires a wms service in a > different projection. Currently mapserver is working as both a wms client > and wms server, except that the image quality is terrible.? To me it looks > like it might be a 256 color image instead of 24 bit.? For the output > format, I am using aag/jpeg, and RGB image mode. > > If anyone could help me figure out how to get a better quality image for my > air photo wms client / server I would appreciate it. > > Thanks > > Mark Volz > > _______________________________________________ > 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 i.skidoosh at gmail.com Mon Mar 19 21:51:05 2012 From: i.skidoosh at gmail.com (Annu Anurag) Date: Tue, 20 Mar 2012 10:21:05 +0530 Subject: Re [mapserver-users] mapserver displaying only the background image as specified in the IMAGECOLOR field in the mapfile. No image generated from the shapefile data. Message-ID: Oh, Praise the Lord brother!! Thank you very much for your advice. I added the line, "" in the html template file which is also my initialisation file and changed the status to DEFAULT and it worked!!!! Strangely it did not work when using STATUS = ON.. I think there have been some changes in mapserver. Or maybe its just that I've gone rusty. Anyways, thank you very much everybody for your help. :) Especially Steve. I owe you one. Thanks. :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.erklauer at gmail.com Tue Mar 20 07:05:56 2012 From: daniel.erklauer at gmail.com (Daniel Erklauer) Date: Tue, 20 Mar 2012 09:05:56 -0500 Subject: [mapserver-users] hyperlinks Message-ID: Hello all, I am researching my options for moving to a WMS and would like to know if Mapserver is capable of handling hyperlinks that exists in my shape files that I have created using Arcmap. My hyperlinks are pdfs located on my server. Thank you Dan From woodbri at swoodbridge.com Tue Mar 20 08:14:16 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 20 Mar 2012 11:14:16 -0400 Subject: [mapserver-users] hyperlinks In-Reply-To: References: Message-ID: <4F689EC8.2070104@swoodbridge.com> On 3/20/2012 10:05 AM, Daniel Erklauer wrote: > Hello all, > > I am researching my options for moving to a WMS and would like to know > if Mapserver is capable of handling hyperlinks that exists in my shape > files that I have created using Arcmap. My hyperlinks are pdfs > located on my server. The short answer is yes. The detailed answer involves how you might want to do that. 1. you can create a template to a query that has the hyperlink in it and even use some javascript to then jump immediately to the link 2. you can use mapserver to generate an image map the makes the hyperlink active 3. you can do this in OpenLayers, via WFS or WMS get feature info, in addition to probably a few other ways. 4. I'm sure others will have other ways they have done it. -Steve W From brfr at metrico.lu Tue Mar 20 08:08:54 2012 From: brfr at metrico.lu (Frank Broniewski) Date: Tue, 20 Mar 2012 16:08:54 +0100 Subject: [mapserver-users] Clustering based on a classified column In-Reply-To: <20111020103630.41ce7ca8@euarne.hq.intevation.de> References: <20111019151928.1662f7ba@euarne.hq.intevation.de> <20111020103630.41ce7ca8@euarne.hq.intevation.de> Message-ID: <4F689D86.4010108@metrico.lu> Hy, I just had the same idea as you, Stephan, to cluster features based on attribute values. I think your expression fails because "1" != 1, so basically you can't do maths (<>) with the Cluster:FeatureCount, just String comparisons. Actually I don't understand the reason why that is so. Imo ClusterFeatureCount should return a number, not a String. Frank Am 20.10.2011 10:36, schrieb Stephan Holl: > Hello Tamas, > > thanks for you reply. > > Tamas Szekeres, [20111019 - 19:04:22] > >> I'm not sure exactly what you would like to achieve. > > Sorry, let my show an example to make it clear: > I have a classified layer based on the following CLASSES > > CLASS > NAME "bar" > EXPRESSION ('[typ]'='bar') > STYLE > SYMBOL "bar" > END > END > > CLASS > NAME "foo" > EXPRESSION ('[typ]'='foo') > STYLE > SYMBOL "foo" > END > END > > ... more CLASSes > > As you see, they are classified by the values of the column [typ]. > > What I want to achieve is adding a label (with the > Cluster:FeatureCount as text) if the different classes have more > identical attributes within the MAXDISTANCE. > > What I currently do is adding another CLASS: > LABELITEM "Cluster:FeatureCount" > CLASS > NAME "Clustered foo" > EXPRESSION ("[Cluster:FeatureCount]"> "1"&& '[typ]'='foo') > STYLE > SYMBOL "foo" > END > STYLE > SIZE 20 > OFFSET 15 15 > SYMBOL "circle" > COLOR 255 0 0 > END > LABEL > FONT freesans > TYPE TRUETYPE > SIZE 10 > COLOR 255 255 255 > OFFSET 15 15 > ALIGN CENTER > PRIORITY 10 > BUFFER 1 > PARTIALS TRUE > POSITION cc > END > END > > CLASS > NAME "foo" > EXPRESSION ('[typ]'='foo') > STYLE > SYMBOL "foo" > END > END > > ... more CLASSes > > The problem of the above is, that I have to include the SYMBOL 'foo' > also in the clustered CLASS, because the normal SYMBOL does not show up > (because it is not there since it is clustered now...). > > But: I have to do that for all classes I have currently (about 25). > > My thinking was about a dynamic classification and clustering based on > the attributes of a specific column ([typ]), but I cannot make it work. > > Does this make more sense to you now? > >> The GROUP setting >> specifies which features may belong to the same cluster. This setting >> can be an expression (including the feature attributes) which >> evaluates to a string value. Features with different group string >> value are not used within the same cluster. >> >> The FILTER setting can also be an expression (including the feature >> attributes or the aggregated attributes) which evaluates to a boolean >> value. This boolean determines whether the particular shapes should >> be filtered out or not in the clustering process. > > Thanks for your clarification, this is helpful for my understanding. > >> You can continue to use the CLASSITEM setting or class EXPRESSION >> (including the aggregated attributes, like Cluster:FeatureCount in >> the expressions) to control which class is used to display a >> particular clustered shape. >> >> What do you mean by validation in the GROUP or FILTER expressions? > > Does my above example more sense to you? > > Best > > Stephan > >> >> 2011/10/19 Stephan Holl >> >>> Dear mapservers, >>> >>> I am playing arround with the CLUSTER-directive and I am going fine. >>> >>> Though there are some questions left I cannot answer by myself and >>> the documentation. >>> >>> Is it possible to cluster a POINT layer based on a specific >>> attribute columns? THis column is the basis of the classification >>> of the layer. >>> >>> What I want to achive is adding a label to each CLASS if the >>> Cluster:FeatureCount is> 1. >>> >>> The docs do not make it clear for me if CLUSTER:GROUP or >>> CLUSTER:FILTER is the correct stuff. Neither of them work during >>> tests. >>> >>> Could someone tell me if this could be done with the CLUSTERing? >>> >>> And the bonus-question: if this is possible, are validation-pattern >>> taken into account within GROUP or FILTER? >>> >>> Looking forward to your suggestions. >>> >>> TIA >>> >>> Best regards >>> >>> 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 >>> >>> > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Frank BRONIEWSKI METRICO s.? r.l. g?om?tres technologies d'information g?ographique rue des Romains 36 L-5433 NIEDERDONVEN t?l.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu From Paul.Maddock at ijus.net Tue Mar 20 15:03:20 2012 From: Paul.Maddock at ijus.net (Paul Maddock) Date: Tue, 20 Mar 2012 18:03:20 -0400 Subject: [mapserver-users] Run-time Substitution Message-ID: <4FDD345A70B42F479A0B3329E101EC65A685896EE1@mx-02.ijuscol.com> Dear anyone willing to help, I'm having a hard time interpreting how to properly execute runtime cgi variable substitution using an of type=text. If I replace '%county%' with a sample county attribute value in single quotes the EXPRESSION works and is displayed on the returned html template. Currently my html input variable in the template looks like this : ...and my mapfile variable to be substituted for looks like this: LAYER NAME blah_ohio STATUS OFF TYPE POINT DATA BLAH/BLAH_Ohio PROJECTION "init=epsg:3754" END CLASS NAME 'Class1' EXPRESSION ('[County]' eq '%county%') STYLE SYMBOL "circle" COLOR 250 50 50 OUTLINECOLOR 0 0 0 SIZE 2 END END METADATA "wms_title" "blah_ohio" "wms_srs" "epsg:4326" END END Thanks in advance, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Mar 20 15:30:43 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 20 Mar 2012 22:30:43 +0000 Subject: [mapserver-users] RE: Run-time Substitution In-Reply-To: <4FDD345A70B42F479A0B3329E101EC65A685896EE1@mx-02.ijuscol.com> References: <4FDD345A70B42F479A0B3329E101EC65A685896EE1@mx-02.ijuscol.com> Message-ID: Which version? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul Maddock Sent: Tuesday, March 20, 2012 5:03 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Run-time Substitution Dear anyone willing to help, I'm having a hard time interpreting how to properly execute runtime cgi variable substitution using an of type=text. If I replace '%county%' with a sample county attribute value in single quotes the EXPRESSION works and is displayed on the returned html template. Currently my html input variable in the template looks like this : ...and my mapfile variable to be substituted for looks like this: LAYER NAME blah_ohio STATUS OFF TYPE POINT DATA BLAH/BLAH_Ohio PROJECTION "init=epsg:3754" END CLASS NAME 'Class1' EXPRESSION ('[County]' eq '%county%') STYLE SYMBOL "circle" COLOR 250 50 50 OUTLINECOLOR 0 0 0 SIZE 2 END END METADATA "wms_title" "blah_ohio" "wms_srs" "epsg:4326" END END Thanks in advance, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Tue Mar 20 20:31:51 2012 From: ozgurarslan81 at hotmail.com (=?Windows-1252?B?1npn/HIgQXJzbGFu?=) Date: Wed, 21 Mar 2012 03:31:51 +0000 Subject: [mapserver-users] RE: HI In-Reply-To: References: Message-ID: Hi All, I am working on a project and I am trying to split a roads layer called gtroads. Roads layer should be split into two classes ?Expressway? and ?Primary highway? based on the ?TYPE? field. How can I split the layer? Could someone help me about the problem? Thanks. The code line like below: LAYER NAME 'gtroads' TYPE LINE DUMP false EXTENT -143.208273 40.614882 -50.461099 84.297613 DATA '../Data/gtroads.shp' METADATA 'ows_title' 'gtroads' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'gtroads' STYLE WIDTH 3.5 COLOR 0 0 0 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Mar 20 22:21:19 2012 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 20 Mar 2012 22:21:19 -0700 Subject: [mapserver-users] gdaldatasetrasterIO() failed: ireadblock failed In-Reply-To: <4F675D15.9030204@sapo.pt> References: <4F675D15.9030204@sapo.pt> Message-ID: <4F69654F.3080703@pobox.com> On 12-03-19 09:21 AM, Pedro Costa wrote: > Hello list, > > > My server can?t open a tif that i have in my mapfile. > It gives this error: > > gdaldatasetrasterIO() failed: ireadblock failed > > Someone know what is this problem? Pedro, It means the GDAL raster library used by MapServer was unable to read a chunk of the underlying file imagery. It could potentially mean a corrupt TIFF file. You might want to try "gdal_translate your.tif new.tif" from the commandline. If the file is corrupt that is likely to fail and then you could file a ticket referencing the file if you think it is valid. BTW, it can be helpful to capture a more exact representation of the error along with preceding information. Usually IReadBlock failures are accompanied by some additional error information that would have resulted in a better answer here. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://home.gdal.org/warmerda and watch the world go round - Rush | Geospatial Software Developer From volzmark at yahoo.com Wed Mar 21 02:06:42 2012 From: volzmark at yahoo.com (Mark Volz) Date: Wed, 21 Mar 2012 02:06:42 -0700 (PDT) Subject: [mapserver-users] make wms clients use jpeg Message-ID: <1332320802.1449.YahooMailNeo@web121302.mail.ne1.yahoo.com> Hello, When using the WMS server, Is there a way to force wms clients to use jpeg? ? I noticed Arcmap is trying to request png files, and I would prefer it to use jpeg instead. Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at gmail.com Wed Mar 21 02:10:05 2012 From: pcorti at gmail.com (Paolo Corti) Date: Wed, 21 Mar 2012 10:10:05 +0100 Subject: [mapserver-users] RE: HI In-Reply-To: References: Message-ID: On Wed, Mar 21, 2012 at 4:31 AM, ?zg?r Arslan wrote: > Hi All, > > I am working on a project and I am trying to split a roads layer called > gtroads. Roads layer should be split into two classes ?Expressway? and > ?Primary highway? based on the ?TYPE? field. How can I split the layer? > Could someone help me about the problem? Thanks. The code line like below: > Use EXPRESSION inside each CLASS you want to define (in your case a couple of ones): LAYER NAME name TYPE type ... CLASS EXPRESSION ([TYPE]='Expressway') STYLE ... END END CLASS EXPRESSION ([TYPE]='Primary highway') STYLE ... END END best regards P -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From pcorti at gmail.com Wed Mar 21 02:20:00 2012 From: pcorti at gmail.com (Paolo Corti) Date: Wed, 21 Mar 2012 10:20:00 +0100 Subject: [mapserver-users] make wms clients use jpeg In-Reply-To: <1332320802.1449.YahooMailNeo@web121302.mail.ne1.yahoo.com> References: <1332320802.1449.YahooMailNeo@web121302.mail.ne1.yahoo.com> Message-ID: On Wed, Mar 21, 2012 at 10:06 AM, Mark Volz wrote: > Hello, > > When using the WMS server, Is there a way to force wms clients to use jpeg? > ? I noticed Arcmap is trying to request png files, and I would prefer it to > use jpeg instead. > As far as I know you cannot, but you could use Apache URL rewriting [1] for getting your purpose and overriding the FORMAT parameter in the request P [1] http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From ahmettemiz88 at gmail.com Wed Mar 21 02:33:15 2012 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Wed, 21 Mar 2012 11:33:15 +0200 Subject: [mapserver-users] conditional legend Message-ID: hello I am using mapserver with java. I want to display my geological map's legend . But only legend of corresponding polygons ( rock formation ) within the current extent will be needed. Is it possible to create a legend programmaticaly confined with the extent I adjust. kind regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From ozgurarslan81 at hotmail.com Wed Mar 21 05:31:23 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Wed, 21 Mar 2012 12:31:23 +0000 Subject: [mapserver-users] RE: HI In-Reply-To: References: , Message-ID: Hi All, I am working on a project and I am trying to create a check box that shows polygon labels . How can create a label check box? If you share your ideas it will be very helpful. Thanks. Also Thank you very much for your help Paolo Porti. It was very useful. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Wed Mar 21 05:37:04 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Wed, 21 Mar 2012 12:37:04 +0000 Subject: [mapserver-users] RE: HI In-Reply-To: References: , , Message-ID: Hi All, I am working on a project and I am trying to create a check box that shows polygon labels . How can create a label check box? If you share your ideas it will be very helpful. Thanks. Also Thank you very much for your help Paolo Porti. It was very useful. LAYER NAME 'state' TYPE POLYGON DUMP false EXTENT -148.317097 42.348600 DATA '../../../wwwroot/Data/state.shp' METADATA 'ows_title' 'state_dd' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END LABELITEM 'NAME_ENG' CLASSITEM 'NAME_ENG' CLASS NAME "Alabama" EXPRESSION "Alabama" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 130 9 169 END LABEL TYPE truetype FONT "calibri" SIZE 9 MINFEATURESIZE 40 END # End for label END CLASS NAME "California" EXPRESSION "British Columbia" STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 62 106 166 END LABEL TYPE truetype FONT "calibri" SIZE 9 MINFEATURESIZE 40 END # End for label END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Maddock at ijus.net Wed Mar 21 05:40:13 2012 From: Paul.Maddock at ijus.net (Paul Maddock) Date: Wed, 21 Mar 2012 08:40:13 -0400 Subject: [mapserver-users] FW: Run-time Substitution References: <4FDD345A70B42F479A0B3329E101EC65A685896EE1@mx-02.ijuscol.com> Message-ID: <4FDD345A70B42F479A0B3329E101EC65A685896F86@mx-02.ijuscol.com> Mapserver 6.0.1 From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, March 20, 2012 6:31 PM To: Paul Maddock; mapserver-users at lists.osgeo.org Subject: RE: Run-time Substitution Which version? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul Maddock Sent: Tuesday, March 20, 2012 5:03 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Run-time Substitution Dear anyone willing to help, I'm having a hard time interpreting how to properly execute runtime cgi variable substitution using an of type=text. If I replace '%county%' with a sample county attribute value in single quotes the EXPRESSION works and is displayed on the returned html template. Currently my html input variable in the template looks like this : ...and my mapfile variable to be substituted for looks like this: LAYER NAME blah_ohio STATUS OFF TYPE POINT DATA BLAH/BLAH_Ohio PROJECTION "init=epsg:3754" END CLASS NAME 'Class1' EXPRESSION ('[County]' eq '%county%') STYLE SYMBOL "circle" COLOR 250 50 50 OUTLINECOLOR 0 0 0 SIZE 2 END END METADATA "wms_title" "blah_ohio" "wms_srs" "epsg:4326" END END Thanks in advance, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Mar 21 06:58:46 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 21 Mar 2012 13:58:46 +0000 Subject: [mapserver-users] RE: Run-time Substitution In-Reply-To: <4FDD345A70B42F479A0B3329E101EC65A685896F86@mx-02.ijuscol.com> References: <4FDD345A70B42F479A0B3329E101EC65A685896EE1@mx-02.ijuscol.com> <4FDD345A70B42F479A0B3329E101EC65A685896F86@mx-02.ijuscol.com> Message-ID: In that case this should work: VALIDATION 'county' '^[0-9]{1,2}$' END This limits county to a 1 or 2 digit number. Note you'll get better performance using a plain string expression, e.g.: CLASSITEM 'county' CLASS EXPRESSION '%county%' ... END Steve From: Paul Maddock [mailto:Paul.Maddock at ijus.net] Sent: Wednesday, March 21, 2012 7:40 AM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: FW: Run-time Substitution Mapserver 6.0.1 From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, March 20, 2012 6:31 PM To: Paul Maddock; mapserver-users at lists.osgeo.org Subject: RE: Run-time Substitution Which version? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul Maddock Sent: Tuesday, March 20, 2012 5:03 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Run-time Substitution Dear anyone willing to help, I'm having a hard time interpreting how to properly execute runtime cgi variable substitution using an of type=text. If I replace '%county%' with a sample county attribute value in single quotes the EXPRESSION works and is displayed on the returned html template. Currently my html input variable in the template looks like this : ...and my mapfile variable to be substituted for looks like this: LAYER NAME blah_ohio STATUS OFF TYPE POINT DATA BLAH/BLAH_Ohio PROJECTION "init=epsg:3754" END CLASS NAME 'Class1' EXPRESSION ('[County]' eq '%county%') STYLE SYMBOL "circle" COLOR 250 50 50 OUTLINECOLOR 0 0 0 SIZE 2 END END METADATA "wms_title" "blah_ohio" "wms_srs" "epsg:4326" END END Thanks in advance, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Mar 21 07:29:58 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 21 Mar 2012 14:29:58 +0000 Subject: [mapserver-users] RE: HI In-Reply-To: References: Message-ID: I haven't tested it, but try something like this: LAYER NAME 'gtroads' TYPE LINE DUMP false EXTENT -143.208273 40.614882 -50.461099 84.297613 DATA '../Data/gtroads.shp' METADATA 'ows_title' 'gtroads' END STATUS DEFAULT #TRANSPARENCY 100 # TRANSPARENCY is deprecated, use OPACITY if you want to create a semi-opaque layer. PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'expressway' EXPRESSION '[ROADTYPE]' = 'expressway' # substitute your column name and data value here STYLE WIDTH 3.5 COLOR 255 0 0 END END CLASS NAME 'primary' EXPRESSION '[ROADTYPE]' = 'primary' # substitute your column name and data value here STYLE WIDTH 2.5 COLOR 0 255 0 END END END From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ?zg?r Arslan Sent: Tuesday, March 20, 2012 10:32 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: HI Hi All, I am working on a project and I am trying to split a roads layer called gtroads. Roads layer should be split into two classes "Expressway" and "Primary highway" based on the "TYPE" field. How can I split the layer? Could someone help me about the problem? Thanks. The code line like below: LAYER NAME 'gtroads' TYPE LINE DUMP false EXTENT -143.208273 40.614882 -50.461099 84.297613 DATA '../Data/gtroads.shp' METADATA 'ows_title' 'gtroads' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'datum=WGS84' 'no_defs' END CLASS NAME 'gtroads' STYLE WIDTH 3.5 COLOR 0 0 0 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.cyr at msp.gouv.qc.ca Wed Mar 21 11:16:41 2012 From: stephane.cyr at msp.gouv.qc.ca (=?Windows-1252?Q?ST=C9PHANE=20CYR?=) Date: Wed, 21 Mar 2012 14:16:41 -0400 Subject: [mapserver-users] MapCache cgi Message-ID: <4F69E2C9020000CA00012BB3@msp.gouv.qc.ca> We went up and running with mapcache. We used the seeder to generate tiles (level 4 to 7 ) and all worked well. When using the demo in the mapcache cgi, it doesn't generate tiles when we navigate at level 8 or lower. * Apache configuration : SetEnv "MAPCACHE_CONFIG_FILE" /dir_mapcache/mapcache-msp.xml FcgidInitialEnv "MAPCACHE_CONFIG_FILE" /dir_mapcache/mapcache-msp.xml * Apache error log : [Tue Mar 20 09:07:58 2012] [error] [client @IP] mapcache fcgi conf file: /dir_mapcache/mapcache-msp.xml, referer: http://serveur/map.cgi/demo/tms [Tue Mar 20 09:07:58 2012] [error] [client @IP] tileset carte_rtr_best: unknown error (another thread/process failed to create the tile I was waiting for), referer: http://serveur/map.cgi/demo/wmts same when using wms,tms,gmaps.... same error with chown -R 777 on the mapcache base directory exemple of a call made by the wmts demo. http://spssogl89.sso.msp.gouv.qc.ca/cgi-wms/mapcache/wmts/?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=carte_rtr_best&STYLE=default&TILEMATRIXSET=g-msp&TILEMATRIX=9&TILEROW=181&TILECOL=155&FORMAT=image%2Fpng St?phane Cyr Conseiller en G?omatique Service de l'infrastructure et du r?seau Direction des technologies de l'information Minist?re de la S?curit? publique 2525, boulevard Laurier, Tour Laurentide, 2e ?tage Qu?bec (QC) G1V 2L2 T?l?phone : (418) 646-6777 p.30004 Courriel : stephane.cyr at msp.gouv.qc.ca Blogue de l'?quipe g?omatique du MSP : http://geoegl.msp.gouv.qc.ca/blogue/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Maddock at ijus.net Wed Mar 21 14:33:15 2012 From: Paul.Maddock at ijus.net (Paul Maddock) Date: Wed, 21 Mar 2012 17:33:15 -0400 Subject: [mapserver-users] Mapscript php5 zoomtopoint() Mapserver 6.0.1 Message-ID: <4FDD345A70B42F479A0B3329E101EC65A685915717@mx-02.ijuscol.com> Dear all, I am currently stuck in a rut when trying to make a php mapscript that makes it possible to zoom into a map multiple times. I have it so that when the user clicks on the image it sends to my php script a set of coordinates based on where an is clicked using the ismap attribute. The href is self referencing and reopens the same .php document the tags are in. Now my problem comes in where once I've zoomed in once by a factor of 2, the next time the user clicks on the image and zoomtopoint()is called again, it is still referencing the same extent it did for the first call to zoomtopoint(). How do I carry over the values from the extent generated after the first zoom to any zoomtopoint() call from there on out. Here is my mapscript: height; $map_width=$map->width; $map_extent=$map->extent; $x1=$map_extent->minx; $y1=$map_extent->miny; $x2=$map_extent->maxx; $y2=$map_extent->maxy; $e= array($x1, $y1, $x2, $y2); print_r($e); $coords = array_keys($_GET); $coords = explode(',', $coords[0]); $x = $coords[0]; $y = $coords[1]; $zoom_point=new pointObj(); $zoom_point->setXY($x,$y); $zoomFactor=2; //set zoomFactor to positive or negative depending on the user's input via button $map_extent=$map->extent; $map->zoompoint($zoomFactor,$zoom_point,$map_width,$map_height,$map_extent); $map_extent=$map->extent; $x1=$map_extent->minx; $y1=$map_extent->miny; $x2=$map_extent->maxx; $y2=$map_extent->maxy; $e= array($x1, $y1, $x2, $y2); print_r($e); } $image=$map->draw(); $image_url=$image->saveWebImage(); ?> Here is the image tag: Any help is appreciated! -Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Mar 21 14:53:13 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 21 Mar 2012 21:53:13 +0000 Subject: [mapserver-users] hyperlinks In-Reply-To: <4F689EC8.2070104@swoodbridge.com> References: <4F689EC8.2070104@swoodbridge.com> Message-ID: There are also URL templates where MapServer does substitutions in a URL using the result from a single feature query and does the redirection for you. Whether that is appropriate here depends on your needs. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Tuesday, March 20, 2012 10:14 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] hyperlinks On 3/20/2012 10:05 AM, Daniel Erklauer wrote: > Hello all, > > I am researching my options for moving to a WMS and would like to know > if Mapserver is capable of handling hyperlinks that exists in my shape > files that I have created using Arcmap. My hyperlinks are pdfs > located on my server. The short answer is yes. The detailed answer involves how you might want to do that. 1. you can create a template to a query that has the hyperlink in it and even use some javascript to then jump immediately to the link 2. you can use mapserver to generate an image map the makes the hyperlink active 3. you can do this in OpenLayers, via WFS or WMS get feature info, in addition to probably a few other ways. 4. I'm sure others will have other ways they have done it. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From anajera at bicimapas.com.mx Wed Mar 21 16:49:45 2012 From: anajera at bicimapas.com.mx (ANC) Date: Wed, 21 Mar 2012 16:49:45 -0700 (PDT) Subject: [mapserver-users] Re: mapserver compiled with jpeg v7 and GDAL with internal JPEG results in core dumps (SIGSEGV) In-Reply-To: <201112152330.18645.even.rouault@mines-paris.org> References: <8B319E5A30FF4A48BE7EEAAF609DB2330869B567@COMAIL01.digitalglobe.com> <201112150051.12591.even.rouault@mines-paris.org> <8B319E5A30FF4A48BE7EEAAF609DB2330869B612@COMAIL01.digitalglobe.com> <201112151928.42557.even.rouault@mines-paris.org> <8B319E5A30FF4A48BE7EEAAF609DB2330869B79A@COMAIL01.digitalglobe.com> <201112152330.18645.even.rouault@mines-paris.org> Message-ID: <1332373785271-4642785.post@n6.nabble.com> Hello I am new to Mapserver as well as this mailing list and hope you can help me with an installation issue I am having which seems to be the same shown in this topic. I have followed all the steps shown in the Mapserver documentation to install the software required for Mapserver in our Centos5 server. All the installation process seems to be done correctly, but after running ?make? in Mapserver and testing with ./mapserv we are getting this error message: ? ./mapserv: error loading shared libraries: libjpeg.so.8: cannot open shared object file: no such file or directory? We have installed jpeg-8d to the default directories /usr/local/lib/ using the ./configure --disable-static to make sure all the libraries are shared. Also, we are using gdal-1.9.0 and it is configured to use the external jpeg-8d library. I cannot understand why we are getting this error message. Furthermore, I really do not need to use JPEG as I plan to use PNG images for rendering our vector data. I have attempted to configure Mapserver without JPEG by several means including not calling for it, using ??without-jpeg? and ?--disable-jpeg? and nevertheless, configure always shows that JPEG support will be used. Can you provide some help on how to fix this? I have been dealing with this issue for over 10 days and cannot find a solution Thank you -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mapserver-compiled-with-jpeg-v7-and-GDAL-with-internal-JPEG-results-in-core-dumps-SIGSEGV-tp4226945p4642785.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ian.walberg at airborne.aero Wed Mar 21 20:18:11 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 21 Mar 2012 23:18:11 -0400 Subject: [mapserver-users] Image compression/performance Message-ID: Folks, We are using tif format images and getting good map rendering performance. However the image file size could do with reducing a little. Anyone got experience of what compression options we have that have the least impact on performance? Thanks Ian From woodbri at swoodbridge.com Wed Mar 21 21:11:05 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 22 Mar 2012 00:11:05 -0400 Subject: [mapserver-users] Image compression/performance In-Reply-To: References: Message-ID: <4F6AA659.1020509@swoodbridge.com> On 3/21/2012 11:18 PM, Ian Walberg wrote: > Folks, > > We are using tif format images and getting good map rendering > performance. > > However the image file size could do with reducing a little. > > Anyone got experience of what compression options we have that have the > least impact on performance? My experience of working with USGS DOQQ satellite imagery in GeoTiff files, was that the amount of compression really did not make a significant reduction in size. We used internally tiled tiff files with overviews and had over 15TB of imagery online. There are other formats that provide higher compression rates like MrSID and others, but depending on the format the behavior characteristics vary greatly and I do not have any recent stats or comparisons of size versus performance versus format. -SteveW From Jukka.Rahkonen at mmmtike.fi Thu Mar 22 01:03:40 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 22 Mar 2012 08:03:40 +0000 Subject: [mapserver-users] Image compression/performance In-Reply-To: <4F6AA659.1020509@swoodbridge.com> References: <4F6AA659.1020509@swoodbridge.com> Message-ID: <84446DEF76453C439E9E97E438E13A63146ED2@suutari.haapa.mmm.fi> Stephen Woodbridge wrote: > On 3/21/2012 11:18 PM, Ian Walberg wrote: > > Folks, > > > > We are using tif format images and getting good map rendering > > performance. > > > > However the image file size could do with reducing a little. > > > > Anyone got experience of what compression options we have > that have the > > least impact on performance? > > My experience of working with USGS DOQQ satellite imagery in GeoTiff > files, was that the amount of compression really did not make a > significant reduction in size. We used internally tiled tiff > files with > overviews and had over 15TB of imagery online. There are > other formats > that provide higher compression rates like MrSID and others, but > depending on the format the behavior characteristics vary > greatly and I > do not have any recent stats or comparisons of size versus > performance > versus format. Hi, I took numbers from one of our orthoimage set Uncompressed tiff files from the contractor 667 File(s) 289?260?585?944 bytes What we have on server disk after running gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR 667 File(s) 21?411?672?702 bytes Reduction in size 93%. Aerial images are used for on-screen interpretation and difference in quality is not visible with bare eyes. The rate of the JPEG compression can be adjusted but I have been happy with GDAL defaults. Overviews seem to add about 40-50% to JPEG compressed images. Those I have created probably as gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW PIXEL tiff.tif 2 4 8 16 32 64 We have also JPEG2000 versions of the images but GDAL does not handle them as fast as JPEG-in-TIFF files. A few years ago the speed with JPEG2000 (with EWCJP2 and KAKJP2 drivers) was about the half of what we got with tiffs. Those numbers are nothing to rely on today because the software versions have changed so many times. Because of the unfriendly licenses of the good JPEG2000 libraries and because jpeg-in-tiff works so well I have not bothered to repeat the tests myself lately. Generally, for this kind of questions the best answer is achieved by making a well controlled test in your own environment. You can then publish your results and tell how you did the test so that others can check if something has been were poorly configured. For example it is not at all the same how JPEG2000 images have been compressed and JPEG compressed tiffs without tiles will for sure be a fiasco. -Jukka Rahkonen- From thomas.bonfort at gmail.com Thu Mar 22 02:25:42 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 22 Mar 2012 10:25:42 +0100 Subject: [mapserver-users] Image compression/performance In-Reply-To: <84446DEF76453C439E9E97E438E13A63146ED2@suutari.haapa.mmm.fi> References: <4F6AA659.1020509@swoodbridge.com> <84446DEF76453C439E9E97E438E13A63146ED2@suutari.haapa.mmm.fi> Message-ID: On Thu, Mar 22, 2012 at 09:03, Rahkonen Jukka wrote: > Stephen Woodbridge wrote: > >> On 3/21/2012 11:18 PM, Ian Walberg wrote: >> > Folks, >> > >> > We are using tif format images and getting good map rendering >> > performance. >> > >> > However the image file size could do with reducing a little. >> > >> > Anyone got experience of what compression options we have >> that have the >> > least impact on performance? >> >> My experience of working with USGS DOQQ satellite imagery in GeoTiff >> files, was that the amount of compression really did not make a >> significant reduction in size. We used internally tiled tiff >> files with >> overviews and had over 15TB of imagery online. There are >> other formats >> that provide higher compression rates like MrSID and others, but >> depending on the format the behavior characteristics vary >> greatly and I >> do not have any recent stats or comparisons of size versus >> performance >> versus format. > > > Hi, > > I took numbers from one of our orthoimage set > > Uncompressed tiff files from the contractor > ?667 File(s) 289?260?585?944 bytes > > What we have on server disk after running > gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR > ?667 File(s) 21?411?672?702 bytes I suspect you'll get superior access performance if you add -co TILED=yes to that command (and to your gdaladdo overview creation also). >From my experience, tiled tiffs with jpeg compression and overviews was by far the best compromise between disk usage and access performance, provided the jpeg destructive compression isn't a showstopper for your particular application. -- thomas > > Reduction in size 93%. ?Aerial images are used for on-screen interpretation and difference in quality is not visible with bare eyes. The rate of the JPEG compression can be adjusted but I have been happy with GDAL defaults. Overviews seem to add about 40-50% to JPEG compressed images. Those I have created probably as > gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR > ? ? ? ? --config INTERLEAVE_OVERVIEW PIXEL tiff.tif 2 4 8 16 32 64 > > We have also JPEG2000 versions of the images but GDAL does not handle them as fast as JPEG-in-TIFF files. A few years ago the speed with JPEG2000 (with EWCJP2 and KAKJP2 drivers) was about the half of what we got with tiffs. Those numbers are nothing to rely on today because the software versions have changed so many times. ?Because of the unfriendly licenses of the good JPEG2000 libraries and because jpeg-in-tiff works so well I have not bothered to repeat the tests myself lately. Generally, for this kind of questions the best answer is achieved by making a well controlled test in your own environment. You can then publish your results and tell how you did the test so that others can check if something has been were poorly configured. For example it is not at all the same how JPEG2000 images have been compressed and JPEG compressed tiffs without tiles will for sure be a fiasco. > > -Jukka Rahkonen- > ?_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Thu Mar 22 02:29:08 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 22 Mar 2012 09:29:08 +0000 Subject: [mapserver-users] Image compression/performance In-Reply-To: References: <4F6AA659.1020509@swoodbridge.com> <84446DEF76453C439E9E97E438E13A63146ED2@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A63146F29@suutari.haapa.mmm.fi> Hi, Sure, I should have written the most suitable ready-to-use commands and not just put a mention later in the text where nobody reads it :) "and JPEG compressed tiffs without tiles will for sure be a fiasco." -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: thomas bonfort [mailto:thomas.bonfort at gmail.com] > L?hetetty: 22. maaliskuuta 2012 11:26 > Vastaanottaja: Rahkonen Jukka > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Image compression/performance > > On Thu, Mar 22, 2012 at 09:03, Rahkonen Jukka > wrote: > > Stephen Woodbridge wrote: > > > >> On 3/21/2012 11:18 PM, Ian Walberg wrote: > >> > Folks, > >> > > >> > We are using tif format images and getting good map rendering > >> > performance. > >> > > >> > However the image file size could do with reducing a little. > >> > > >> > Anyone got experience of what compression options we have > >> that have the > >> > least impact on performance? > >> > >> My experience of working with USGS DOQQ satellite imagery > in GeoTiff > >> files, was that the amount of compression really did not make a > >> significant reduction in size. We used internally tiled tiff > >> files with > >> overviews and had over 15TB of imagery online. There are > >> other formats > >> that provide higher compression rates like MrSID and others, but > >> depending on the format the behavior characteristics vary > >> greatly and I > >> do not have any recent stats or comparisons of size versus > >> performance > >> versus format. > > > > > > Hi, > > > > I took numbers from one of our orthoimage set > > > > Uncompressed tiff files from the contractor > > ?667 File(s) 289?260?585?944 bytes > > > > What we have on server disk after running > > gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR > > ?667 File(s) 21?411?672?702 bytes > > I suspect you'll get superior access performance if you add -co > TILED=yes to that command (and to your gdaladdo overview creation > also). > From my experience, tiled tiffs with jpeg compression and overviews > was by far the best compromise between disk usage and access > performance, provided the jpeg destructive compression isn't a > showstopper for your particular application. > > -- > thomas > > > > > > Reduction in size 93%. ?Aerial images are used for > on-screen interpretation and difference in quality is not > visible with bare eyes. The rate of the JPEG compression can > be adjusted but I have been happy with GDAL defaults. > Overviews seem to add about 40-50% to JPEG compressed images. > Those I have created probably as > > gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config > PHOTOMETRIC_OVERVIEW YCBCR > > ? ? ? ? --config INTERLEAVE_OVERVIEW PIXEL tiff.tif 2 4 8 16 32 64 > > > > We have also JPEG2000 versions of the images but GDAL does > not handle them as fast as JPEG-in-TIFF files. A few years > ago the speed with JPEG2000 (with EWCJP2 and KAKJP2 drivers) > was about the half of what we got with tiffs. Those numbers > are nothing to rely on today because the software versions > have changed so many times. ?Because of the unfriendly > licenses of the good JPEG2000 libraries and because > jpeg-in-tiff works so well I have not bothered to repeat the > tests myself lately. Generally, for this kind of questions > the best answer is achieved by making a well controlled test > in your own environment. You can then publish your results > and tell how you did the test so that others can check if > something has been were poorly configured. For example it is > not at all the same how JPEG2000 images have been compressed > and JPEG compressed tiffs without tiles will for sure be a fiasco. > > > > -Jukka Rahkonen- > > ?_______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From fernando at globalgeo.com.br Thu Mar 22 05:35:04 2012 From: fernando at globalgeo.com.br (Fernando Norte) Date: Thu, 22 Mar 2012 09:35:04 -0300 Subject: [mapserver-users] Charset encoding for Labels Message-ID: Hello, I'm trying to solve a problem with character encoding with MapServer. I have points instead of the accent character at the LABELs. I'd changed the shapefile dbf from ISO8859-1 to UTF-8, try to use encoding at the mapfile in both versions, but sometimes the result is worse. There is some solution for this? Thanks in advance, Fernando G Norte Nova Lima / MG - Brazil -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernando at globalgeo.com.br Thu Mar 22 06:59:08 2012 From: fernando at globalgeo.com.br (Fernando Norte) Date: Thu, 22 Mar 2012 10:59:08 -0300 Subject: [mapserver-users] Charset encoding for Labels [SOLVED] Message-ID: SOLVED I solved, kind by accident, styling the fonts. I'd set the TYPE truetype and use a FONTSET with Arial.ttf and the problem is solved. The BitMap type default maybe use a standard font that doesn't had the 'special' characteres. 2012/3/22 Fernando Norte > Hello, > > I'm trying to solve a problem with character encoding with MapServer. I > have points instead of the accent character at the LABELs. > I'd changed the shapefile dbf from ISO8859-1 to UTF-8, try to use encoding > at the mapfile in both versions, but sometimes the result is worse. > There is some solution for this? > > Thanks in advance, > > Fernando G Norte > Nova Lima / MG - Brazil > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Mar 22 07:51:25 2012 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 22 Mar 2012 09:51:25 -0500 Subject: [mapserver-users] RESULT from DB SQL call on map output as a label Message-ID: <4F6AF61D020000A800034823@heckle> All, Was wondering about putting a STAT line on a Mapserver image that is coming from POSTGIS. What's involved in sending something like "SELECT COUNT(*) from " from inside of the same mapfile, and adding the RESULT as a TEXT element to the map. is this a legend thing, a map thing or something in between?? Is it as simple as creating a point on the fly and using a SQL call (from a separate LAYER) to label with? (hmm, I think I just talked through the process . . .) Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Thu Mar 22 08:16:48 2012 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Thu, 22 Mar 2012 11:16:48 -0400 Subject: [mapserver-users] Label priorities in MapServer 6 Message-ID: <4F6B4260.1080308@dmsolutions.ca> Hi, I was hoping someone could confirm the following for me: In MapServer 5.6, labelling seems to still honour the last in-first out idea, in addition to priorities. I.e. when two layers have the same label priority, the one that appears closest to the end of the mapfile will "take priority" over the one that appeared earlier in the mapfile. In MapServer 6, it seems that of these two layers with the same priority, the layer that appears first in the mapfile will "take priority" over the layer that appears later. Is this correct, or am I missing something? Thanks, Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca From cnieman at dmsolutions.ca Thu Mar 22 08:34:53 2012 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Thu, 22 Mar 2012 11:34:53 -0400 Subject: [mapserver-users] Label priorities in MapServer 6 In-Reply-To: <4F6B4260.1080308@dmsolutions.ca> References: <4F6B4260.1080308@dmsolutions.ca> Message-ID: <4F6B469D.8040608@dmsolutions.ca> Ah. This seems to be a difference between using ANNOTATIONS vs. POINTS. I was trying to get the same result as using an ANNOTATION to draw a point marker with a label in a POINT layer (i.e. that the point only gets drawn if the label does). Never mind :) C On 03/22/2012 11:16 AM, Christy Nieman wrote: > Hi, > > I was hoping someone could confirm the following for me: > > In MapServer 5.6, labelling seems to still honour the last in-first > out idea, in addition to priorities. I.e. when two layers have the > same label priority, the one that appears closest to the end of the > mapfile will "take priority" over the one that appeared earlier in the > mapfile. > > In MapServer 6, it seems that of these two layers with the same > priority, the layer that appears first in the mapfile will "take > priority" over the layer that appears later. > > Is this correct, or am I missing something? > > Thanks, > Christy From woodbri at swoodbridge.com Thu Mar 22 08:42:26 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 22 Mar 2012 11:42:26 -0400 Subject: [mapserver-users] Image compression/performance In-Reply-To: <84446DEF76453C439E9E97E438E13A63146ED2@suutari.haapa.mmm.fi> References: <4F6AA659.1020509@swoodbridge.com> <84446DEF76453C439E9E97E438E13A63146ED2@suutari.haapa.mmm.fi> Message-ID: <4F6B4862.9070209@swoodbridge.com> This is good information, thanks. I don't think jpeg in tiff was an option when I did this some years ago, but if is clearly a good trick if you can deal with the lossiness of jpeg compression. -SteveW On 3/22/2012 4:03 AM, Rahkonen Jukka wrote: > Stephen Woodbridge wrote: > >> On 3/21/2012 11:18 PM, Ian Walberg wrote: >>> Folks, >>> >>> We are using tif format images and getting good map rendering >>> performance. >>> >>> However the image file size could do with reducing a little. >>> >>> Anyone got experience of what compression options we have >> that have the >>> least impact on performance? >> >> My experience of working with USGS DOQQ satellite imagery in GeoTiff >> files, was that the amount of compression really did not make a >> significant reduction in size. We used internally tiled tiff >> files with >> overviews and had over 15TB of imagery online. There are >> other formats >> that provide higher compression rates like MrSID and others, but >> depending on the format the behavior characteristics vary >> greatly and I >> do not have any recent stats or comparisons of size versus >> performance >> versus format. > > > Hi, > > I took numbers from one of our orthoimage set > > Uncompressed tiff files from the contractor > 667 File(s) 289 260 585 944 bytes > > What we have on server disk after running > gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR > 667 File(s) 21 411 672 702 bytes > > Reduction in size 93%. Aerial images are used for on-screen interpretation and difference in quality is not visible with bare eyes. The rate of the JPEG compression can be adjusted but I have been happy with GDAL defaults. Overviews seem to add about 40-50% to JPEG compressed images. Those I have created probably as > gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR > --config INTERLEAVE_OVERVIEW PIXEL tiff.tif 2 4 8 16 32 64 > > We have also JPEG2000 versions of the images but GDAL does not handle them as fast as JPEG-in-TIFF files. A few years ago the speed with JPEG2000 (with EWCJP2 and KAKJP2 drivers) was about the half of what we got with tiffs. Those numbers are nothing to rely on today because the software versions have changed so many times. Because of the unfriendly licenses of the good JPEG2000 libraries and because jpeg-in-tiff works so well I have not bothered to repeat the tests myself lately. Generally, for this kind of questions the best answer is achieved by making a well controlled test in your own environment. You can then publish your results and tell how you did the test so that others can check if something has been were poorly configured. For example it is not at all the same how JPEG2000 images have been compressed and JPEG compressed tiffs without tiles will for sure be a fiasco. > > -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 Mar 22 10:09:36 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 22 Mar 2012 13:09:36 -0400 Subject: [mapserver-users] RESULT from DB SQL call on map output as a label In-Reply-To: <4F6AF61D020000A800034823@heckle> References: <4F6AF61D020000A800034823@heckle> Message-ID: <4F6B5CD0.4040502@swoodbridge.com> On 3/22/2012 10:51 AM, Bob Basques wrote: > All, > > > Was wondering about putting a STAT line on a Mapserver image that is > coming from POSTGIS. What's involved in sending something like "SELECT > COUNT(*) from
" from inside of the same mapfile, and adding the > RESULT as a TEXT element to the map. is this a legend thing, a map thing > or something in between?? > > > Is it as simple as creating a point on the fly and using a SQL call > (from a separate LAYER) to label with? (hmm, I think I just talked > through the process . . .) Do it like this: select count(*), 'POINT(1 3)'::geometry as the_geom from tfeed; where the POINT() value is in pixels on the image and then you TRANSFORM FALSE when you place the point and label. -SteveW From anajera at bicimapas.com.mx Thu Mar 22 10:13:47 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Thu, 22 Mar 2012 11:13:47 -0600 Subject: [mapserver-users] ./mapserv: error loading shared libraries: Message-ID: <000001cd084f$25d66aa0$71833fe0$@com.mx> I am installing Mapserver in a Centos 5 distribution. All the installation process seems to be done correctly, but after running "make" in Mapserver and testing with ./mapserv we are getting this error message: ./mapserv: error loading shared libraries: libjpeg.so.8: cannot open shared object file: no such file or directory We have installed jpeg-8d to the default directories /usr/local/lib/ using the ./configure --disable-static to make sure all the libraries are shared. Also, we are using gdal-1.9.0 and it is configured to use the external jpeg-8d library. I cannot understand why we are getting this error message. Furthermore, I really do not need to use JPEG as I plan to use PNG images for rendering our vector data. I have attempted to configure Mapserver without JPEG by several means including not calling for it, using without-jpeg and --disable-jpeg and nevertheless, configure always shows that JPEG support will be used. Can you provide some help on how to fix this? I have been dealing with this issue for over 10 days and cannot find a solution Alberto Najera -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Mar 22 11:06:59 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 22 Mar 2012 14:06:59 -0400 Subject: [mapserver-users] ./mapserv: error loading shared libraries: In-Reply-To: <000001cd084f$25d66aa0$71833fe0$@com.mx> References: <000001cd084f$25d66aa0$71833fe0$@com.mx> Message-ID: <4F6B6A43.5000403@swoodbridge.com> First thing run: sudo ldconfig and see if that fixes things. What does this report: ls -l /usr/lib/libjpeg* -SteveW On 3/22/2012 1:13 PM, Alberto Najera wrote: > I am installing Mapserver in a Centos 5 distribution. All the > installation process seems to be done correctly, but after > running?make?in Mapserver and testing with ./mapserv we are getting this > error message: > > ./mapserv: error loading shared libraries: libjpeg.so.8: cannot open > shared object file: no such file or directory > > We have installed jpeg-8d to the default directories /usr/local/lib/ > using the ./configure --disable-staticto make sure all the libraries are > shared. > > Also, we are using gdal-1.9.0 and it is configured to use the external > jpeg-8d library. > > I cannot understand why we are getting this error message. Furthermore, > I really do not need to use JPEG as I plan to use PNG images for > rendering our vector data.I have attempted to configure Mapserver > without JPEG by several means including not calling for it, > usingwithout-jpegand--disable-jpegand nevertheless, configure always > shows that JPEG support will be used. > > Can you provide some help on how to fix this?I have been dealing with > this issue for over 10 days and cannot find a solution > > Alberto Najera > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From anajera at bicimapas.com.mx Thu Mar 22 12:29:22 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Thu, 22 Mar 2012 13:29:22 -0600 Subject: [mapserver-users] ./mapserv: error loading shared libraries: In-Reply-To: <4F6B6A43.5000403@swoodbridge.com> References: <000001cd084f$25d66aa0$71833fe0$@com.mx> <4F6B6A43.5000403@swoodbridge.com> Message-ID: <000e01cd0862$16d557b0$44800710$@com.mx> Hi ls -l /usr/lib/libjpeg* reports this after running ldconfig: ls: cannot access /usr/lib/libjpeg*: No such file or directory but we installed libjpeg in /usr/local/lib and not in /usr/lib and ls -l /usr/local/lib/libjpeg* reports all the jpeg installed files. Thanks Alberto Najera -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Stephen Woodbridge Enviado el: jueves, 22 de marzo de 2012 12:07 p.m. Para: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] ./mapserv: error loading shared libraries: First thing run: sudo ldconfig and see if that fixes things. What does this report: ls -l /usr/lib/libjpeg* -SteveW On 3/22/2012 1:13 PM, Alberto Najera wrote: > I am installing Mapserver in a Centos 5 distribution. All the > installation process seems to be done correctly, but after > running"make"in Mapserver and testing with ./mapserv we are getting > this error message: > > ./mapserv: error loading shared libraries: libjpeg.so.8: cannot open > shared object file: no such file or directory > > We have installed jpeg-8d to the default directories /usr/local/lib/ > using the ./configure --disable-staticto make sure all the libraries > are shared. > > Also, we are using gdal-1.9.0 and it is configured to use the external > jpeg-8d library. > > I cannot understand why we are getting this error message. > Furthermore, I really do not need to use JPEG as I plan to use PNG > images for rendering our vector data.I have attempted to configure > Mapserver without JPEG by several means including not calling for it, > usingwithout-jpegand--disable-jpegand nevertheless, configure always > shows that JPEG support will be used. > > Can you provide some help on how to fix this?I have been dealing with > this issue for over 10 days and cannot find a solution > > Alberto Najera > > > > _______________________________________________ > 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 woodbri at swoodbridge.com Thu Mar 22 14:25:01 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 22 Mar 2012 17:25:01 -0400 Subject: [mapserver-users] ./mapserv: error loading shared libraries: In-Reply-To: <000e01cd0862$16d557b0$44800710$@com.mx> References: <000001cd084f$25d66aa0$71833fe0$@com.mx> <4F6B6A43.5000403@swoodbridge.com> <000e01cd0862$16d557b0$44800710$@com.mx> Message-ID: <4F6B98AD.9090606@swoodbridge.com> OK, then you probably need to add /usr/local/lib to you /etc/ld.so.conf and run ldconfig after doing that. -SteveW On 3/22/2012 3:29 PM, Alberto Najera wrote: > Hi > > ls -l /usr/lib/libjpeg* reports this after running ldconfig: > > ls: cannot access /usr/lib/libjpeg*: No such file or directory > > but we installed libjpeg in /usr/local/lib and not in /usr/lib > > and ls -l /usr/local/lib/libjpeg* > > reports all the jpeg installed files. > > Thanks > > Alberto Najera > > -----Mensaje original----- > De: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Stephen > Woodbridge > Enviado el: jueves, 22 de marzo de 2012 12:07 p.m. > Para: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] ./mapserv: error loading shared libraries: > > First thing run: > > sudo ldconfig > > and see if that fixes things. > > What does this report: > > ls -l /usr/lib/libjpeg* > > -SteveW > > On 3/22/2012 1:13 PM, Alberto Najera wrote: >> I am installing Mapserver in a Centos 5 distribution. All the >> installation process seems to be done correctly, but after >> running"make"in Mapserver and testing with ./mapserv we are getting >> this error message: >> >> ./mapserv: error loading shared libraries: libjpeg.so.8: cannot open >> shared object file: no such file or directory >> >> We have installed jpeg-8d to the default directories /usr/local/lib/ >> using the ./configure --disable-staticto make sure all the libraries >> are shared. >> >> Also, we are using gdal-1.9.0 and it is configured to use the external >> jpeg-8d library. >> >> I cannot understand why we are getting this error message. >> Furthermore, I really do not need to use JPEG as I plan to use PNG >> images for rendering our vector data.I have attempted to configure >> Mapserver without JPEG by several means including not calling for it, >> usingwithout-jpegand--disable-jpegand nevertheless, configure always >> shows that JPEG support will be used. >> >> Can you provide some help on how to fix this?I have been dealing with >> this issue for over 10 days and cannot find a solution >> >> Alberto Najera >> >> >> >> _______________________________________________ >> 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 anajera at bicimapas.com.mx Thu Mar 22 15:37:08 2012 From: anajera at bicimapas.com.mx (Alberto Najera) Date: Thu, 22 Mar 2012 16:37:08 -0600 Subject: [mapserver-users] ./mapserv: error loading shared libraries: In-Reply-To: <4F6B98AD.9090606@swoodbridge.com> References: <000001cd084f$25d66aa0$71833fe0$@com.mx> <4F6B6A43.5000403@swoodbridge.com> <000e01cd0862$16d557b0$44800710$@com.mx> <4F6B98AD.9090606@swoodbridge.com> Message-ID: <006a01cd087c$51977620$f4c66260$@com.mx> Thank you. That worked very well and mapserver has been compiled. Alberto Najera www.bicimapas.com.mx Plaza Bonita Avenida Lomas Verdes No. 58, Local 17 Colonia Santa Cruz Acatl?n Naucalpan, Estado de M?xico M?xico CP 53150 Tel: (55) 53 60 30 65 anajera at bicimapas.com.mx -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Stephen Woodbridge Enviado el: jueves, 22 de marzo de 2012 03:25 p.m. Para: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] ./mapserv: error loading shared libraries: OK, then you probably need to add /usr/local/lib to you /etc/ld.so.conf and run ldconfig after doing that. -SteveW On 3/22/2012 3:29 PM, Alberto Najera wrote: > Hi > > ls -l /usr/lib/libjpeg* reports this after running ldconfig: > > ls: cannot access /usr/lib/libjpeg*: No such file or directory > > but we installed libjpeg in /usr/local/lib and not in /usr/lib > > and ls -l /usr/local/lib/libjpeg* > > reports all the jpeg installed files. > > Thanks > > Alberto Najera > > -----Mensaje original----- > De: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Stephen > Woodbridge Enviado el: jueves, 22 de marzo de 2012 12:07 p.m. > Para: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] ./mapserv: error loading shared libraries: > > First thing run: > > sudo ldconfig > > and see if that fixes things. > > What does this report: > > ls -l /usr/lib/libjpeg* > > -SteveW > > On 3/22/2012 1:13 PM, Alberto Najera wrote: >> I am installing Mapserver in a Centos 5 distribution. All the >> installation process seems to be done correctly, but after >> running"make"in Mapserver and testing with ./mapserv we are getting >> this error message: >> >> ./mapserv: error loading shared libraries: libjpeg.so.8: cannot open >> shared object file: no such file or directory >> >> We have installed jpeg-8d to the default directories /usr/local/lib/ >> using the ./configure --disable-staticto make sure all the libraries >> are shared. >> >> Also, we are using gdal-1.9.0 and it is configured to use the >> external jpeg-8d library. >> >> I cannot understand why we are getting this error message. >> Furthermore, I really do not need to use JPEG as I plan to use PNG >> images for rendering our vector data.I have attempted to configure >> Mapserver without JPEG by several means including not calling for it, >> usingwithout-jpegand--disable-jpegand nevertheless, configure always >> shows that JPEG support will be used. >> >> Can you provide some help on how to fix this?I have been dealing with >> this issue for over 10 days and cannot find a solution >> >> Alberto Najera >> >> >> >> _______________________________________________ >> 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 matt at wildwalks.com Thu Mar 22 17:09:48 2012 From: matt at wildwalks.com (Matt McClelland) Date: Fri, 23 Mar 2012 11:09:48 +1100 Subject: [mapserver-users] Avoid labels over particular lines Message-ID: Hi All Is there a way in mapserver (6.0) to prevent labels appearing over a map feature? I have a highway and I want to prevent labels (town and other names from other layers) sitting over the highway. I guess something like Buffer in labels. thanks Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Mar 22 17:19:02 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 22 Mar 2012 20:19:02 -0400 Subject: [mapserver-users] Avoid labels over particular lines In-Reply-To: References: Message-ID: <4F6BC176.80604@swoodbridge.com> On 3/22/2012 8:09 PM, Matt McClelland wrote: > Hi All > > Is there a way in mapserver (6.0) to prevent labels appearing over a map > feature? > > I have a highway and I want to prevent labels (town and other names from > other layers) sitting over the highway. > I guess something like Buffer in labels. No, when you go to process a label it knows nothing about what features have been rendered. I guess in theory you could add all the features to the label cache. I guessing that to do this you would need some keyword at the LAYER level to indicate that these features need to be added to the label cache, but nothing exists today that would do this. You might want to open a ticket for an enhancement and paste the cotent of your message and my response above into it. -Steve W From bfraser at geoanalytic.com Thu Mar 22 19:16:14 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 22 Mar 2012 20:16:14 -0600 Subject: [mapserver-users] Avoid labels over particular lines In-Reply-To: <4F6BC176.80604@swoodbridge.com> References: <4F6BC176.80604@swoodbridge.com> Message-ID: <4F6BDCEE.9040703@geoanalytic.com> Steve, I wonder if it would be possible/economical to extend the label cache to have some kind of feature density "map"/weighted mask to help in determining a preferred label location... Best Regards, Brent Fraser On 3/22/2012 6:19 PM, Stephen Woodbridge wrote: > On 3/22/2012 8:09 PM, Matt McClelland wrote: >> Hi All >> >> Is there a way in mapserver (6.0) to prevent labels appearing over a map >> feature? >> >> I have a highway and I want to prevent labels (town and other names from >> other layers) sitting over the highway. >> I guess something like Buffer in labels. > > No, when you go to process a label it knows nothing about what > features have been rendered. I guess in theory you could add all the > features to the label cache. I guessing that to do this you would need > some keyword at the LAYER level to indicate that these features need > to be added to the label cache, but nothing exists today that would do > this. > > You might want to open a ticket for an enhancement and paste the > cotent of your message and my response above into it. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From matt at wildwalks.com Thu Mar 22 20:02:44 2012 From: matt at wildwalks.com (Matt McClelland) Date: Fri, 23 Mar 2012 14:02:44 +1100 Subject: [mapserver-users] Avoid labels over particular lines In-Reply-To: <4F6BDCEE.9040703@geoanalytic.com> References: <4F6BC176.80604@swoodbridge.com> <4F6BDCEE.9040703@geoanalytic.com> Message-ID: I love this idea Maybe the ability to give a feature priority level of 'label avoidance' So features like Contours (that may cover a map) can be given a low priority, but features like main roads and points of interest might be given a high priority so they are always visible. (I did play with rendering some of these items after the label cache, but that just meant the labels where now covered by the feature) This sounds like a lot of work, but I don't know?? Matt :) On Fri, Mar 23, 2012 at 1:16 PM, Brent Fraser wrote: > Steve, > > I wonder if it would be possible/economical to extend the label cache to > have some kind of feature density "map"/weighted mask to help in > determining a preferred label location... > > Best Regards, > Brent Fraser > > > > On 3/22/2012 6:19 PM, Stephen Woodbridge wrote: > >> On 3/22/2012 8:09 PM, Matt McClelland wrote: >> >>> Hi All >>> >>> Is there a way in mapserver (6.0) to prevent labels appearing over a map >>> feature? >>> >>> I have a highway and I want to prevent labels (town and other names from >>> other layers) sitting over the highway. >>> I guess something like Buffer in labels. >>> >> >> No, when you go to process a label it knows nothing about what features >> have been rendered. I guess in theory you could add all the features to the >> label cache. I guessing that to do this you would need some keyword at the >> LAYER level to indicate that these features need to be added to the label >> cache, but nothing exists today that would do this. >> >> You might want to open a ticket for an enhancement and paste the cotent >> of your message and my response above into it. >> >> -Steve W >> ______________________________**_________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.**org >> http://lists.osgeo.org/**mailman/listinfo/mapserver-**users >> >> > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Thu Mar 22 22:23:14 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Fri, 23 Mar 2012 05:23:14 +0000 Subject: [mapserver-users] HI Message-ID: Hi All I am working on a map and I created a QUERYMAP. I want to change the queried map scale or zoom. How can I change it? Are there any ideas? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Fri Mar 23 00:56:08 2012 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Fri, 23 Mar 2012 09:56:08 +0200 Subject: [mapserver-users] to filter legend object Message-ID: hello Is there any way to filter legend object. I want display only some legend items that are within current extent. regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From thomas.bonfort at gmail.com Fri Mar 23 01:17:00 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 23 Mar 2012 09:17:00 +0100 Subject: [mapserver-users] MapCache cgi In-Reply-To: <4F69E2C9020000CA00012BB3@msp.gouv.qc.ca> References: <4F69E2C9020000CA00012BB3@msp.gouv.qc.ca> Message-ID: This means there was an error when requesting/setting a metatile, the message you are seeing was created by a parrallel proecess that was waiting for another process to create the metatile. Look in your server logs, the error created by the actual metatile rendering will appear there. -- thomas On Wed, Mar 21, 2012 at 19:16, ST?PHANE CYR wrote: > We went up and running with mapcache. > We?used?the seeder to generate tiles?(level 4 to 7 ) ?and all?worked well. > When using the demo in the mapcache cgi, it doesn't generate tiles when we > navigate at level 8 or lower. > > * Apache configuration : > SetEnv "MAPCACHE_CONFIG_FILE" /dir_mapcache/mapcache-msp.xml > FcgidInitialEnv "MAPCACHE_CONFIG_FILE" /dir_mapcache/mapcache-msp.xml > > * Apache error log : > [Tue Mar 20 09:07:58 2012] [error] [client @IP] mapcache fcgi conf file: > /dir_mapcache/mapcache-msp.xml, referer: http://serveur/map.cgi/demo/tms > [Tue Mar 20 09:07:58 2012] [error] [client @IP] tileset carte_rtr_best: > unknown error (another thread/process failed to create the tile I was > waiting for), referer: http://serveur/map.cgi/demo/wmts > same when using wms,tms,gmaps.... > same error with chown -R 777 on the mapcache base directory > > exemple of a call made by the wmts?demo. > http://spssogl89.sso.msp.gouv.qc.ca/cgi-wms/mapcache/wmts/?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=carte_rtr_best&STYLE=default&TILEMATRIXSET=g-msp&TILEMATRIX=9&TILEROW=181&TILECOL=155&FORMAT=image%2Fpng > > > St?phane Cyr > Conseiller en G?omatique > Service de l'infrastructure et du r?seau > Direction des technologies de l'information > Minist?re de la S?curit? publique > 2525, boulevard Laurier, Tour Laurentide, 2e ?tage > Qu?bec (QC) G1V 2L2 > > T?l?phone : (418) 646-6777 p.30004 > Courriel : stephane.cyr at msp.gouv.qc.ca > Blogue de l'?quipe g?omatique du MSP : http://geoegl.msp.gouv.qc.ca/blogue/ > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jorgelopez.physics at gmail.com Fri Mar 23 01:19:23 2012 From: jorgelopez.physics at gmail.com (jorgelopez) Date: Fri, 23 Mar 2012 01:19:23 -0700 (PDT) Subject: [mapserver-users] no output template for WMS getFeatureInfo Message-ID: <1332490763936-4647828.post@n6.nabble.com> Hello Everyone: I have a problem that I partially resolved realting getfeatureinfo request and I am confused if it can be done with Mapserver 5.6 at mapfile or template level by just simply modifiying the solution I got looking at doc and forums. I fix wms_feature_mime_type, DUMP true, (simple but customized) TEMPLATE, HEADER and FOOTER stuff to serve a table with some attributes for a specific layer. My initial idea is to create templates for each layer and not use template engine. The results are displayed by WMS client like ArcMap or directly with web browser. My problem is ***** that I need a correct message to a WMS client from Map Server when no output, that is, user click map where there is no attribute data. Actually ArcMap asking me to save a empty temp file when no data is clicked. With a web browser, empty screen is displayed and QGIS directly does not show something. how can I control nodata output with Mapserver for WMS getfeatureinfo? My (central) TEMPLATE is like that: and I dont know how to match with said here: http://mapserver.org/output/template_output.html "" Attributes: layer: The layer to be used nodata: (optional) A string to return if no results are returned. "" Any ideas? Thank in advance Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/no-output-template-for-WMS-getFeatureInfo-tp4647828p4647828.html Sent from the Mapserver - User mailing list archive at Nabble.com. From daz4805 at hotmail.com Fri Mar 23 04:33:40 2012 From: daz4805 at hotmail.com (daz4805) Date: Fri, 23 Mar 2012 04:33:40 -0700 (PDT) Subject: [mapserver-users] Mapserver 6 help Message-ID: <1332502420260-4648288.post@n6.nabble.com> Hi, I have been given a compiled version of mapserver 6.0.1 but it seems to be missing support for ArcSDE input. When i do a mapserv -v i get the following: - MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF SUPPORTS=PR OJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUP PORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPOR TS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHA PEFILE Am i going to need to recompile everything from scratch or can I add support for ArcSDE manually? If I need to recompile from scratch, please could somebody tell me whcih libraries I will need to get so that I can replicate the support that I already have? Many thanks, Darren -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserver-6-help-tp4648288p4648288.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Fri Mar 23 09:24:24 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 23 Mar 2012 16:24:24 +0000 Subject: [mapserver-users] Avoid labels over particular lines In-Reply-To: References: <4F6BC176.80604@swoodbridge.com> <4F6BDCEE.9040703@geoanalytic.com> Message-ID: Might the layer masking support described here http://mapserver.org/development/rfc/ms-rfc-79.html be relevant? One could create a mask around features you don't want covered and reference that in the layers with labels. Problem is you might omit features to when you really just want to omit labels. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Matt McClelland Sent: Thursday, March 22, 2012 10:03 PM To: Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Avoid labels over particular lines I love this idea Maybe the ability to give a feature priority level of 'label avoidance' So features like Contours (that may cover a map) can be given a low priority, but features like main roads and points of interest might be given a high priority so they are always visible. (I did play with rendering some of these items after the label cache, but that just meant the labels where now covered by the feature) This sounds like a lot of work, but I don't know?? Matt :) On Fri, Mar 23, 2012 at 1:16 PM, Brent Fraser > wrote: Steve, I wonder if it would be possible/economical to extend the label cache to have some kind of feature density "map"/weighted mask to help in determining a preferred label location... Best Regards, Brent Fraser On 3/22/2012 6:19 PM, Stephen Woodbridge wrote: On 3/22/2012 8:09 PM, Matt McClelland wrote: Hi All Is there a way in mapserver (6.0) to prevent labels appearing over a map feature? I have a highway and I want to prevent labels (town and other names from other layers) sitting over the highway. I guess something like Buffer in labels. No, when you go to process a label it knows nothing about what features have been rendered. I guess in theory you could add all the features to the label cache. I guessing that to do this you would need some keyword at the LAYER level to indicate that these features need to be added to the label cache, but nothing exists today that would do this. You might want to open a ticket for an enhancement and paste the cotent of your message and my response above into it. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Mar 23 09:29:07 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 23 Mar 2012 17:29:07 +0100 Subject: [mapserver-users] Avoid labels over particular lines In-Reply-To: References: <4F6BC176.80604@swoodbridge.com> <4F6BDCEE.9040703@geoanalytic.com> Message-ID: On Fri, Mar 23, 2012 at 17:24, Lime, Steve D (DNR) wrote: > Might the layer masking support described here > http://mapserver.org/development/rfc/ms-rfc-79.html be relevant? One could > create a mask around features you don?t want covered and reference that in > the layers with labels. Problem is you might omit features to when you > really just want to omit labels. That won't be usable in practice: labels who's labelpoint intersect the feature will be removed. The ink of the label characters can overlap the features. -- thomas > > > > Steve > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Matt > McClelland > Sent: Thursday, March 22, 2012 10:03 PM > To: Brent Fraser > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Avoid labels over particular lines > > > > I love this idea > Maybe the ability to give a feature priority level of 'label avoidance' > So features like Contours (that may cover a map) can be given a low > priority, > but features like main roads and points of interest might be given a high > priority so they are always visible. > > (I did play with rendering some of these items after the label cache, but > that just meant the labels where now covered by the feature) > > This sounds like a lot of work, but I don't know?? > > Matt? :) > > On Fri, Mar 23, 2012 at 1:16 PM, Brent Fraser > wrote: > > Steve, > > ?I wonder if it would be possible/economical to extend the label cache to > have some kind of feature density "map"/weighted mask to help in determining > a preferred label location... > > Best Regards, > Brent Fraser > > > > > On 3/22/2012 6:19 PM, Stephen Woodbridge wrote: > > On 3/22/2012 8:09 PM, Matt McClelland wrote: > > Hi All > > Is there a way in mapserver (6.0) to prevent labels appearing over a map > feature? > > I have a highway and I want to prevent labels (town and other names from > other layers) sitting over the highway. > I guess something like Buffer in labels. > > > No, when you go to process a label it knows nothing about what features have > been rendered. I guess in theory you could add all the features to the label > cache. I guessing that to do this you would need some keyword at the LAYER > level to indicate that these features need to be added to the label cache, > but nothing exists today that would do this. > > You might want to open a ticket for an enhancement and paste the cotent of > your message and my response above into it. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Fri Mar 23 11:22:58 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 23 Mar 2012 12:22:58 -0600 Subject: [mapserver-users] Avoid labels over particular lines In-Reply-To: References: <4F6BC176.80604@swoodbridge.com> <4F6BDCEE.9040703@geoanalytic.com> Message-ID: <4F6CBF82.4000909@geoanalytic.com> Steve L., I was thinking more of a way to avoid certain locations for label placement. Currently the label cache mechanism "reserves" locations that already have labels (if I remember correctly), and mapserver iterates thru the 9 locations to hopefully find one without any existing labels. My thought was to use that method to create polygons not of label boxes, but of outlines of feature graphics. and put those in the label cache (at a much lower priority than the label boxes perhaps?). In a perfect world, the label would be placed in an "empty" area., or more likely in an area of a minimal amount of graphics. Best Regards, Brent Fraser On 3/23/2012 10:24 AM, Lime, Steve D (DNR) wrote: > > Might the layer masking support described here > http://mapserver.org/development/rfc/ms-rfc-79.html be relevant? One > could create a mask around features you don't want covered and > reference that in the layers with labels. Problem is you might omit > features to when you really just want to omit labels. > > Steve > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Matt > McClelland > *Sent:* Thursday, March 22, 2012 10:03 PM > *To:* Brent Fraser > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Avoid labels over particular lines > > I love this idea > Maybe the ability to give a feature priority level of 'label avoidance' > So features like Contours (that may cover a map) can be given a low > priority, > but features like main roads and points of interest might be given a > high priority so they are always visible. > > (I did play with rendering some of these items after the label cache, > but that just meant the labels where now covered by the feature) > > This sounds like a lot of work, but I don't know?? > > Matt :) > > On Fri, Mar 23, 2012 at 1:16 PM, Brent Fraser > wrote: > > Steve, > > I wonder if it would be possible/economical to extend the label cache > to have some kind of feature density "map"/weighted mask to help in > determining a preferred label location... > > Best Regards, > Brent Fraser > > > > > On 3/22/2012 6:19 PM, Stephen Woodbridge wrote: > > On 3/22/2012 8:09 PM, Matt McClelland wrote: > > Hi All > > Is there a way in mapserver (6.0) to prevent labels appearing over a map > feature? > > I have a highway and I want to prevent labels (town and other names from > other layers) sitting over the highway. > I guess something like Buffer in labels. > > > No, when you go to process a label it knows nothing about what > features have been rendered. I guess in theory you could add all the > features to the label cache. I guessing that to do this you would need > some keyword at the LAYER level to indicate that these features need > to be added to the label cache, but nothing exists today that would do > this. > > You might want to open a ticket for an enhancement and paste the > cotent of your message and my response above into it. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Mar 23 11:37:36 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 23 Mar 2012 14:37:36 -0400 Subject: [mapserver-users] Avoid labels over particular lines In-Reply-To: <4F6CBF82.4000909@geoanalytic.com> References: <4F6BC176.80604@swoodbridge.com> <4F6BDCEE.9040703@geoanalytic.com> <4F6CBF82.4000909@geoanalytic.com> Message-ID: <4F6CC2F0.7050707@swoodbridge.com> This was my thinking when I responsed to Matt below. Based on some of the new work that Thomas has done I think label leaders are put into the processed label cache, and that these are avoided also. So based on Matt's request we could include the road lines also and then the bbox of the labels would avoid intersecting the lines. Likewise as you have suggested, the same could be done for polygons. We would just need an API call that could be used to preload the processed cache with geometry and a mechanism to trigger loading the data at the layer or class level. Once an object has been added to the processed label cache, you loose information about priority so I don't think it is feasible to put priorities on the features to be avoided because this makes the problem significantly more complex and probably a multiple pass problem. -SteveW On 3/23/2012 2:22 PM, Brent Fraser wrote: > Steve L., > > I was thinking more of a way to avoid certain locations for label > placement. Currently the label cache mechanism "reserves" locations that > already have labels (if I remember correctly), and mapserver iterates > thru the 9 locations to hopefully find one without any existing labels. > My thought was to use that method to create polygons not of label boxes, > but of outlines of feature graphics. and put those in the label cache > (at a much lower priority than the label boxes perhaps?). In a perfect > world, the label would be placed in an "empty" area., or more likely in > an area of a minimal amount of graphics. > > Best Regards, > Brent Fraser > > > On 3/23/2012 10:24 AM, Lime, Steve D (DNR) wrote: >> >> Might the layer masking support described here >> http://mapserver.org/development/rfc/ms-rfc-79.html be relevant? One >> could create a mask around features you don?t want covered and >> reference that in the layers with labels. Problem is you might omit >> features to when you really just want to omit labels. >> >> Steve >> >> *From:*mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Matt >> McClelland >> *Sent:* Thursday, March 22, 2012 10:03 PM >> *To:* Brent Fraser >> *Cc:* mapserver-users at lists.osgeo.org >> >> *Subject:* Re: [mapserver-users] Avoid labels over particular lines >> >> I love this idea >> Maybe the ability to give a feature priority level of 'label avoidance' >> So features like Contours (that may cover a map) can be given a low >> priority, >> but features like main roads and points of interest might be given a >> high priority so they are always visible. >> >> (I did play with rendering some of these items after the label cache, >> but that just meant the labels where now covered by the feature) >> >> This sounds like a lot of work, but I don't know?? >> >> Matt :) >> >> On Fri, Mar 23, 2012 at 1:16 PM, Brent Fraser > > wrote: >> >> Steve, >> >> I wonder if it would be possible/economical to extend the label cache >> to have some kind of feature density "map"/weighted mask to help in >> determining a preferred label location... >> >> Best Regards, >> Brent Fraser >> >> >> >> >> On 3/22/2012 6:19 PM, Stephen Woodbridge wrote: >> >> On 3/22/2012 8:09 PM, Matt McClelland wrote: >> >> Hi All >> >> Is there a way in mapserver (6.0) to prevent labels appearing over a map >> feature? >> >> I have a highway and I want to prevent labels (town and other names from >> other layers) sitting over the highway. >> I guess something like Buffer in labels. >> >> >> No, when you go to process a label it knows nothing about what >> features have been rendered. I guess in theory you could add all the >> features to the label cache. I guessing that to do this you would need >> some keyword at the LAYER level to indicate that these features need >> to be added to the label cache, but nothing exists today that would do >> this. >> >> You might want to open a ticket for an enhancement and paste the >> cotent of your message and my response above into it. >> >> -Steve W >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri Mar 23 14:58:26 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 23 Mar 2012 17:58:26 -0400 Subject: [mapserver-users] Does COLOR_MATCH_THRESHOLD work with OFFSITE? Message-ID: <4F6CF202.6020609@swoodbridge.com> Hi all, Does anyone know if COLOR_MATCH_THRESHOLD works with OFFSITE? Specifically, I'm trying to help someone with MrSID images and OFFSITE 0 0 0 does not work because the lossy compression distorts the black color. I'm looking for options to solve this issue while working with MrSID images. Thanks for any feedback, -Steve From ozgurarslan81 at hotmail.com Sat Mar 24 14:15:35 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Sat, 24 Mar 2012 21:15:35 +0000 Subject: [mapserver-users] HI Message-ID: Hi ALL, I am trying to query a line layer and I am trying to show it by using example_query.html file not the example_header.html. When I enable example_query.html it show different part of the map. I doesn't show the clicked part of the map. Also scale is diffrent. Scale is bigger than the first map. How can I fix it are there any ideas? please help. The code is like below; -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at qpublic.net Sun Mar 25 08:59:49 2012 From: steve at qpublic.net (Steve Lehr) Date: Sun, 25 Mar 2012 11:59:49 -0400 Subject: [mapserver-users] automated response Message-ID: <11203251159.AA63934@qpublic.net> I'll be out of the office the week of March 19 - March 24. If you need faster assistance please call the office 386-734-1954 Thank you and have a great day. From japr94 at hotmail.com Sun Mar 25 20:04:30 2012 From: japr94 at hotmail.com (juliap) Date: Sun, 25 Mar 2012 20:04:30 -0700 (PDT) Subject: [mapserver-users] Class Expression Message-ID: <1332731069989-4655365.post@n6.nabble.com> Hi All, I was wondering if it is possible to have expressions within a class when using sql server 2008. I have tried the following with no success: LAYER NAME "layer2" TYPE POLYGON *CLASSITEM "year"* CONNECTIONTYPE OGR CONNECTION "MSSQL: .... " DATA " SELECT geom FROM table1" CLASS *EXPRESSION "2002"* STYLE COLOR 232 232 232 END END END This does not seem to work. When I use this the other layers in the document break as well . I need to have different styles for each different year. How can I accomplish this? Thanks in advance, Julia -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Class-Expression-tp4655365p4655365.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Mar 26 05:57:34 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 26 Mar 2012 12:57:34 +0000 Subject: [mapserver-users] Class Expression In-Reply-To: <1332731069989-4655365.post@n6.nabble.com> References: <1332731069989-4655365.post@n6.nabble.com> Message-ID: You probably need to select "year" as well. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of juliap [japr94 at hotmail.com] Sent: Sunday, March 25, 2012 10:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Class Expression Hi All, I was wondering if it is possible to have expressions within a class when using sql server 2008. I have tried the following with no success: LAYER NAME "layer2" TYPE POLYGON *CLASSITEM "year"* CONNECTIONTYPE OGR CONNECTION "MSSQL: .... " DATA " SELECT geom FROM table1" CLASS *EXPRESSION "2002"* STYLE COLOR 232 232 232 END END END This does not seem to work. When I use this the other layers in the document break as well . I need to have different styles for each different year. How can I accomplish this? Thanks in advance, Julia -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Class-Expression-tp4655365p4655365.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 55618081 at qq.com Mon Mar 26 09:58:15 2012 From: 55618081 at qq.com (=?gbk?B?sKLA5i1FbGlzZQ==?=) Date: Tue, 27 Mar 2012 00:58:15 +0800 Subject: [mapserver-users] jvm crash after receiving the signal of SIGFPE, Thank you very much! Message-ID: My GIS server is Mapserver java mapscript, the client is openlayers. The map tile size was setted very small, and then zoom in to a small range. we are frequently to request map tiles by calling the WMS getMap, jvm crash after receiving the signal of SIGFPE. The attachment is the log of the crash of jvm # # A fatal error has been detected by the Java Runtime Environment: # # SIGFPE (0x8) at pc=0x00007fd6e0bb55d5, pid=25308, tid=140556042532624 # # JRE version: 6.0_26-b03 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libmapscript.so+0x18a5d5] unsigned long+0x65 # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x00007fd6b94ed800): JavaThread "mmsc-exec-1776" daemon [_thread_in_native, id=28152, stack(0x00007fd5c0dc7000,0x00007fd5c0fc8000)] siginfo:si_signo=SIGFPE: si_errno=0, si_code=1 (FPE_INTDIV), si_addr=0x00007fd6e0bb55d5 Registers: RAX=0x0000000000000000, RBX=0x00007fd5c0fc32b0, RCX=0x0000000000000000, RDX=0x0000000000000000 RSP=0x00007fd5c0fc3130, RBP=0x00007fd5c0fc3170, RSI=0x00007fd5845f26c8, RDI=0x00007fd584e3ebea R8 =0xffff000000000000, R9 =0xfefefefffaac1f83, R10=0xffffffffffffffff, R11=0x0000000000000000 R12=0x0000000000000000, R13=0x00000007e2bc0eb8, R14=0x00007fd5c0fc5d00, R15=0x00007fd6b94ed800 RIP=0x00007fd6e0bb55d5, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000000 TRAPNO=0x0000000000000000 to be continue............. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 55618081 at qq.com Mon Mar 26 10:00:36 2012 From: 55618081 at qq.com (=?gbk?B?sKLA5i1FbGlzZQ==?=) Date: Tue, 27 Mar 2012 01:00:36 +0800 Subject: [mapserver-users] jvm crash after receiving the signal of SIGFPE, Thank you very much! Message-ID: My GIS server is Mapserver java mapscript, the client is openlayers. The map tile size was setted very small, and then zoom in to a small range. we are frequently to request map tiles by calling the WMS getMap, jvm crash after receiving the signal of SIGFPE. The attachment is the log of the crash of jvm # # A fatal error has been detected by the Java Runtime Environment: # # SIGFPE (0x8) at pc=0x00007fd6e0bb55d5, pid=25308, tid=140556042532624 # # JRE version: 6.0_26-b03 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libmapscript.so+0x18a5d5] unsigned long+0x65 # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x00007fd6b94ed800): JavaThread "mmsc-exec-1776" daemon [_thread_in_native, id=28152, stack(0x00007fd5c0dc7000,0x00007fd5c0fc8000)] siginfo:si_signo=SIGFPE: si_errno=0, si_code=1 (FPE_INTDIV), si_addr=0x00007fd6e0bb55d5 Registers: RAX=0x0000000000000000, RBX=0x00007fd5c0fc32b0, RCX=0x0000000000000000, RDX=0x0000000000000000 RSP=0x00007fd5c0fc3130, RBP=0x00007fd5c0fc3170, RSI=0x00007fd5845f26c8, RDI=0x00007fd584e3ebea R8 =0xffff000000000000, R9 =0xfefefefffaac1f83, R10=0xffffffffffffffff, R11=0x0000000000000000 R12=0x0000000000000000, R13=0x00000007e2bc0eb8, R14=0x00007fd5c0fc5d00, R15=0x00007fd6b94ed800 RIP=0x00007fd6e0bb55d5, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000000 TRAPNO=0x0000000000000000 to be continue............. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 55618081 at qq.com Mon Mar 26 10:24:06 2012 From: 55618081 at qq.com (=?gbk?B?sKLA5i1FbGlzZQ==?=) Date: Tue, 27 Mar 2012 01:24:06 +0800 Subject: [mapserver-users] jvm crash after receiving the signal of SIGFPE, Thank you very much! Message-ID: My GIS server is Mapserver java mapscript, the client is openlayers. The map tile size was setted very small, and then zoom in to a small range. we are frequently to request map tiles by calling the WMS getMap, jvm crash after receiving the signal of SIGFPE. This is the log of the crash of jvm: # # A fatal error has been detected by the Java Runtime Environment: # # SIGFPE (0x8) at pc=0x00007fd6e0bb55d5, pid=25308, tid=140556042532624 # # JRE version: 6.0_26-b03 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libmapscript.so+0x18a5d5] unsigned long+0x65 # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x00007fd6b94ed800): JavaThread "mmsc-exec-1776" daemon [_thread_in_native, id=28152, stack(0x00007fd5c0dc7000,0x00007fd5c0fc8000)] siginfo:si_signo=SIGFPE: si_errno=0, si_code=1 (FPE_INTDIV), si_addr=0x00007fd6e0bb55d5 Registers: RAX=0x0000000000000000, RBX=0x00007fd5c0fc32b0, RCX=0x0000000000000000, RDX=0x0000000000000000 RSP=0x00007fd5c0fc3130, RBP=0x00007fd5c0fc3170, RSI=0x00007fd5845f26c8, RDI=0x00007fd584e3ebea R8 =0xffff000000000000, R9 =0xfefefefffaac1f83, R10=0xffffffffffffffff, R11=0x0000000000000000 R12=0x0000000000000000, R13=0x00000007e2bc0eb8, R14=0x00007fd5c0fc5d00, R15=0x00007fd6b94ed800 RIP=0x00007fd6e0bb55d5, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000000 TRAPNO=0x0000000000000000 Top of Stack: (sp=0x00007fd5c0fc3130) 0x00007fd5c0fc3130: 00007fd6e9671780 0000000000000001 0x00007fd5c0fc3140: 00007fd6e9671780 0000000000000001 0x00007fd5c0fc3150: 0000000000000000 00007fd5845f26c8 0x00007fd5c0fc3160: 00007fd5c0fc3190 0000000041f3b0c0 0x00007fd5c0fc3170: 00007fd5c0fc31a0 00007fd6e0bdb936 0x00007fd5c0fc3180: 00007fd5c0fc32b0 00007fd5c0fc32b0 0x00007fd5c0fc3190: 00007fd5c0fc3540 00007fd58473af38 0x00007fd5c0fc31a0: 00007fd5c0fc3540 00007fd6e0312f8f 0x00007fd5c0fc31b0: 00000007e2bc0e98 00000007e2bc0e98 0x00007fd5c0fc31c0: 00007fd5c0fc3540 00007fd6e0bdbda2 0x00007fd5c0fc31d0: 00007fd584fc6f50 00007fd5c0fc3580 0x00007fd5c0fc31e0: 00007fd5c0fc35f0 00007fd58474c320 0x00007fd5c0fc31f0: 00000000000000f5 00007fd5842bfde0 0x00007fd5c0fc3200: 00007fd6e032c380 00007fd6e032c150 0x00007fd5c0fc3210: 00007fd6e032c340 00007fd6e032c250 0x00007fd5c0fc3220: 00007fd6e032c1a0 0000000000000000 0x00007fd5c0fc3230: 3ff0000000000000 0000000000000000 0x00007fd5c0fc3240: 0000000000000000 0000000000000000 0x00007fd5c0fc3250: 0000000000000000 0000000000000000 0x00007fd5c0fc3260: 3ff0000000000000 0000000000000000 0x00007fd5c0fc3270: 0000000000000000 0000000000000000 0x00007fd5c0fc3280: 0000000000000000 00007fd6e0545780 0x00007fd5c0fc3290: 00007fd50000007e 0000000000000000 0x00007fd5c0fc32a0: 0000000000000000 00007fd5840d7128 0x00007fd5c0fc32b0: 00007fd5c0fc3200 00007fd584b7b540 0x00007fd5c0fc32c0: 0000000000000000 00007fd584b7b020 0x00007fd5c0fc32d0: 0000006500000000 00007fd58473af38 0x00007fd5c0fc32e0: 0000011e0000011e 0000000200000003 0x00007fd5c0fc32f0: 3ff0000000000000 0000000100000001 0x00007fd5c0fc3300: 0000011e0000011e 0000000300000008 0x00007fd5c0fc3310: 0000000000000003 00007fd58473af70 0x00007fd5c0fc3320: 00007fd58473b330 00007fd58473b3b8 Instructions: (pc=0x00007fd6e0bb55d5) 0x00007fd6e0bb55b5: 26 48 8b 45 e0 48 0f af 45 d8 89 c2 48 8b 75 e8 0x00007fd6e0bb55c5: 48 8b 7d f8 e8 12 14 ed ff 48 98 ba 00 00 00 00 0x00007fd6e0bb55d5: 48 f7 75 e0 89 45 cc 8b 45 cc c9 c3 55 48 89 e5 0x00007fd6e0bb55e5: 48 83 ec 40 48 89 7d e8 48 89 75 e0 48 89 55 d8 Register to memory mapping: RAX=0x0000000000000000 is an unknown value RBX=0x00007fd5c0fc32b0 is pointing into the stack for thread: 0x00007fd6b94ed800 RCX=0x0000000000000000 is an unknown value RDX=0x0000000000000000 is an unknown value RSP=0x00007fd5c0fc3130 is pointing into the stack for thread: 0x00007fd6b94ed800 RBP=0x00007fd5c0fc3170 is pointing into the stack for thread: 0x00007fd6b94ed800 RSI=0x00007fd5845f26c8 is an unknown value RDI=0x00007fd584e3ebea is an unknown value R8 =0xffff000000000000 is an unknown value R9 =0xfefefefffaac1f83 is an unknown value R10=0xffffffffffffffff is an unknown value R11=0x0000000000000000 is an unknown value R12=0x0000000000000000 is an unknown value R13=0x00000007e2bc0eb8 is an oop [C - klass: {type array char} - length: 431 R14=0x00007fd5c0fc5d00 is pointing into the stack for thread: 0x00007fd6b94ed800 R15=0x00007fd6b94ed800 is a thread -------------- next part -------------- An HTML attachment was scrubbed... URL: From 55618081 at qq.com Mon Mar 26 10:36:35 2012 From: 55618081 at qq.com (=?gbk?B?sKLA5i1FbGlzZQ==?=) Date: Tue, 27 Mar 2012 01:36:35 +0800 Subject: [mapserver-users] How to deal with The problem of label clip? Thank you very much! Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From 55618081 at qq.com Tue Mar 27 09:06:04 2012 From: 55618081 at qq.com (=?gbk?B?sKLA5i1FbGlzZQ==?=) Date: Wed, 28 Mar 2012 00:06:04 +0800 Subject: [mapserver-users] How to deal with the jvm crash after receiving the signal of SIGFPE, Thank you very much! Message-ID: My GIS server is Mapserver java mapscript, the client is openlayers. The map tile size was setted very small, and then zoom in to a small range. we are frequently to request map tiles by calling the WMS getMap, jvm crash after receiving the signal of SIGFPE. This is the log of the crash of jvm # # A fatal error has been detected by the Java Runtime Environment: # # SIGFPE (0x8) at pc=0x00007fd6e0bb55d5, pid=25308, tid=140556042532624 # # JRE version: 6.0_26-b03 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libmapscript.so+0x18a5d5] unsigned long+0x65 # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x00007fd6b94ed800): JavaThread "mmsc-exec-1776" daemon [_thread_in_native, id=28152, stack(0x00007fd5c0dc7000,0x00007fd5c0fc8000)] siginfo:si_signo=SIGFPE: si_errno=0, si_code=1 (FPE_INTDIV), si_addr=0x00007fd6e0bb55d5 Registers: RAX=0x0000000000000000, RBX=0x00007fd5c0fc32b0, RCX=0x0000000000000000, RDX=0x0000000000000000 RSP=0x00007fd5c0fc3130, RBP=0x00007fd5c0fc3170, RSI=0x00007fd5845f26c8, RDI=0x00007fd584e3ebea R8 =0xffff000000000000, R9 =0xfefefefffaac1f83, R10=0xffffffffffffffff, R11=0x0000000000000000 R12=0x0000000000000000, R13=0x00000007e2bc0eb8, R14=0x00007fd5c0fc5d00, R15=0x00007fd6b94ed800 RIP=0x00007fd6e0bb55d5, EFLAGS=0x0000000000010202, CSGSFS=0x0000000000000033, ERR=0x0000000000000000 TRAPNO=0x0000000000000000 Top of Stack: (sp=0x00007fd5c0fc3130) 0x00007fd5c0fc3130: 00007fd6e9671780 0000000000000001 0x00007fd5c0fc3140: 00007fd6e9671780 0000000000000001 0x00007fd5c0fc3150: 0000000000000000 00007fd5845f26c8 0x00007fd5c0fc3160: 00007fd5c0fc3190 0000000041f3b0c0 0x00007fd5c0fc3170: 00007fd5c0fc31a0 00007fd6e0bdb936 0x00007fd5c0fc3180: 00007fd5c0fc32b0 00007fd5c0fc32b0 0x00007fd5c0fc3190: 00007fd5c0fc3540 00007fd58473af38 0x00007fd5c0fc31a0: 00007fd5c0fc3540 00007fd6e0312f8f 0x00007fd5c0fc31b0: 00000007e2bc0e98 00000007e2bc0e98 0x00007fd5c0fc31c0: 00007fd5c0fc3540 00007fd6e0bdbda2 0x00007fd5c0fc31d0: 00007fd584fc6f50 00007fd5c0fc3580 0x00007fd5c0fc31e0: 00007fd5c0fc35f0 00007fd58474c320 0x00007fd5c0fc31f0: 00000000000000f5 00007fd5842bfde0 0x00007fd5c0fc3200: 00007fd6e032c380 00007fd6e032c150 0x00007fd5c0fc3210: 00007fd6e032c340 00007fd6e032c250 0x00007fd5c0fc3220: 00007fd6e032c1a0 0000000000000000 0x00007fd5c0fc3230: 3ff0000000000000 0000000000000000 0x00007fd5c0fc3240: 0000000000000000 0000000000000000 0x00007fd5c0fc3250: 0000000000000000 0000000000000000 0x00007fd5c0fc3260: 3ff0000000000000 0000000000000000 0x00007fd5c0fc3270: 0000000000000000 0000000000000000 0x00007fd5c0fc3280: 0000000000000000 00007fd6e0545780 0x00007fd5c0fc3290: 00007fd50000007e 0000000000000000 0x00007fd5c0fc32a0: 0000000000000000 00007fd5840d7128 0x00007fd5c0fc32b0: 00007fd5c0fc3200 00007fd584b7b540 0x00007fd5c0fc32c0: 0000000000000000 00007fd584b7b020 0x00007fd5c0fc32d0: 0000006500000000 00007fd58473af38 0x00007fd5c0fc32e0: 0000011e0000011e 0000000200000003 0x00007fd5c0fc32f0: 3ff0000000000000 0000000100000001 0x00007fd5c0fc3300: 0000011e0000011e 0000000300000008 0x00007fd5c0fc3310: 0000000000000003 00007fd58473af70 0x00007fd5c0fc3320: 00007fd58473b330 00007fd58473b3b8 Instructions: (pc=0x00007fd6e0bb55d5) 0x00007fd6e0bb55b5: 26 48 8b 45 e0 48 0f af 45 d8 89 c2 48 8b 75 e8 0x00007fd6e0bb55c5: 48 8b 7d f8 e8 12 14 ed ff 48 98 ba 00 00 00 00 0x00007fd6e0bb55d5: 48 f7 75 e0 89 45 cc 8b 45 cc c9 c3 55 48 89 e5 0x00007fd6e0bb55e5: 48 83 ec 40 48 89 7d e8 48 89 75 e0 48 89 55 d8 Register to memory mapping: RAX=0x0000000000000000 is an unknown value RBX=0x00007fd5c0fc32b0 is pointing into the stack for thread: 0x00007fd6b94ed800 RCX=0x0000000000000000 is an unknown value RDX=0x0000000000000000 is an unknown value RSP=0x00007fd5c0fc3130 is pointing into the stack for thread: 0x00007fd6b94ed800 RBP=0x00007fd5c0fc3170 is pointing into the stack for thread: 0x00007fd6b94ed800 RSI=0x00007fd5845f26c8 is an unknown value RDI=0x00007fd584e3ebea is an unknown value R8 =0xffff000000000000 is an unknown value R9 =0xfefefefffaac1f83 is an unknown value R10=0xffffffffffffffff is an unknown value R11=0x0000000000000000 is an unknown value R12=0x0000000000000000 is an unknown value R13=0x00000007e2bc0eb8 is an oop [C - klass: {type array char} - length: 431 R14=0x00007fd5c0fc5d00 is pointing into the stack for thread: 0x00007fd6b94ed800 R15=0x00007fd6b94ed800 is a thread Stack: [0x00007fd5c0dc7000,0x00007fd5c0fc8000], sp=0x00007fd5c0fc3130, free space=2032k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libmapscript.so+0x18a5d5] unsigned long+0x65 C [libmapscript.so+0x1b0936] unsigned+0x45 C [libjpeg.so.8+0x4f8f] unsigned+0xcf C [libmapscript.so+0x1b2f7d] unsigned long+0xc3 C [libmapscript.so+0xf37d6] unsigned long+0x27a C [libmapscript.so+0x1e4f6c] unsigned long+0x607 C [libmapscript.so+0x1e8eaf] unsigned long+0xc92 C [libmapscript.so+0x13eaa7] unsigned long+0xcf C [libmapscript.so+0x636e9] unsigned long+0x22 C [libmapscript.so+0x93b89] Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1OWSDispatch+0x75 J edu.umn.gis.mapscript.mapscriptJNI.mapObj_OWSDispatch(JLedu/umn/gis/mapscript/mapObj;JLedu/umn/gis/mapscript/OWSRequest;)I Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J edu.umn.gis.mapscript.mapscriptJNI.mapObj_OWSDispatch(JLedu/umn/gis/mapscript/mapObj;JLedu/umn/gis/mapscript/OWSRequest;)I J com.huawei.mmsc.services.service.ServiceProcessor.dealService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ledu/umn/gis/mapscript/mapObj;)V J com.huawei.mmsc.services.service.ServiceProcessor.doService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ledu/umn/gis/mapscript/mapObj;)V J com.huawei.mmsc.services.facade.impl.ServicesFacadeImpl.disposeServices(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljava/lang/String;)V J sun.reflect.GeneratedMethodAccessor31.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; J org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(Ljava/lang/reflect/Method;Ljava/lang/Object;Lorg/springframework/web/context/request/NativeWebRequest;Lorg/springframework/ui/ExtendedModelMap;)Ljava/lang/Object; J org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/Object;)Lorg/springframework/web/servlet/ModelAndView; J org.springframework.web.servlet.DispatcherServlet.doDispatch(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V J org.springframework.web.servlet.DispatcherServlet.doService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V J org.springframework.web.servlet.FrameworkServlet.processRequest(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V J javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V J org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V J org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V J org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V J org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V J org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V J org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V J org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V J org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run()V j java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59 J java.util.concurrent.ThreadPoolExecutor$Worker.run()V j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x00007fd6b6164800 JavaThread "mmsc-exec-1857" daemon [_thread_in_native, id=29201, stack(0x00007fd6cd55a000,0x00007fd6cd75b000)] to be continue...... -------------- next part -------------- An HTML attachment was scrubbed... URL: From 55618081 at qq.com Tue Mar 27 09:14:06 2012 From: 55618081 at qq.com (=?gbk?B?sKLA5i1FbGlzZQ==?=) Date: Wed, 28 Mar 2012 00:14:06 +0800 Subject: [mapserver-users] Re:mapserver-users Digest, Vol 50, Issue 54 Message-ID: The object label of point layer will appear label clip on the tile edge ------------------ Original ------------------ From: "mapserver-users-request"; Date: Wed, Mar 28, 2012 00:00 AM To: "mapserver-users"; Subject: mapserver-users Digest, Vol 50, Issue 54 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. How to deal with The problem of label clip? Thank you very much! (=?gbk?B?sKLA5i1FbGlzZQ==?=) ---------------------------------------------------------------------- Message: 1 Date: Tue, 27 Mar 2012 01:36:35 +0800 From: "=?gbk?B?sKLA5i1FbGlzZQ==?=" <55618081 at qq.com> Subject: [mapserver-users] How to deal with The problem of label clip? Thank you very much! To: "=?gbk?B?bWFwc2VydmVyLXVzZXJz?=" Message-ID: Content-Type: text/plain; charset="gbk" -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120327/f24ed624/attachment-0001.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 50, Issue 54 *********************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From japr94 at hotmail.com Tue Mar 27 10:17:33 2012 From: japr94 at hotmail.com (juliap) Date: Tue, 27 Mar 2012 10:17:33 -0700 (PDT) Subject: [mapserver-users] Inefficient rendering of layer Message-ID: <1332868653702-4661670.post@n6.nabble.com> Hi all, I want to style a layer based on the political party that is winning for all shapes in a database. My layer looks like this: LAYER NAME votes TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "MSSQL:..." DATA "SELECT geom , VotingFor FROM dbo.[BF_PROV_ELECTORAL_DIVISION] AS elec WITH (INDEX(ogr_geom_sidx)) JOIN dbo.[Survey] ON GeoL.STWithin(geom) = 1 WHERE PartyVotingFor = ( SELECT TOP 1 [VotingFor] FROM dbo.[BF_PROV_ELECTORAL_DIVISION] AS elec2 WITH (INDEX(ogr_geom_sidx)) JOIN dbo.[Survey] ON GeoL.STWithin(geom) = 1 WHERE VotingFor <= '4' AND elec.ID = elec2.ID GROUP BY VotingFor ORDER BY COUNT(VotingFor)DESC )" CLASS EXPRESSION ([PartyVotingFor] = 1 ) STYLE COLOR 34 139 34 END END CLASS EXPRESSION ([PartyVotingFor] = 2 ) STYLE COLOR 24 116 205 END END CLASS EXPRESSION ([PartyVotingFor] = 3 ) STYLE COLOR 255 127 0 END END CLASS EXPRESSION ([PartyVotingFor] = 4 ) STYLE COLOR 46 46 46 END END PROJECTION "init=epsg:4326" END # end of projection END # end of layer The problem is that the rendering of this layer takes about 7minutes . Is there a way to make this query more efficient?, or perhaps an alternative and more efficient way to deal with this problem? Thanks, Julia -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Inefficient-rendering-of-layer-tp4661670p4661670.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Tue Mar 27 10:21:35 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Tue, 27 Mar 2012 12:21:35 -0500 Subject: [mapserver-users] Inefficient rendering of layer In-Reply-To: <1332868653702-4661670.post@n6.nabble.com> References: <1332868653702-4661670.post@n6.nabble.com> Message-ID: On Mar 27, 2012, at 12:17 PM, juliap wrote: > SELECT geom , VotingFor FROM dbo.[BF_PROV_ELECTORAL_DIVISION] AS > elec WITH (INDEX(ogr_geom_sidx)) JOIN dbo.[Survey] ON GeoL.STWithin(geom) = > 1 > WHERE PartyVotingFor = > ( SELECT TOP 1 [VotingFor] FROM dbo.[BF_PROV_ELECTORAL_DIVISION] AS > elec2 WITH (INDEX(ogr_geom_sidx)) JOIN dbo.[Survey] ON GeoL.STWithin(geom) = > 1 > WHERE VotingFor <= '4' AND elec.ID = elec2.ID > GROUP BY VotingFor > ORDER BY COUNT(VotingFor)DESC You should analyze that query directly against the database, that is, not via a mapfile query, to figure out where it is taking time. Perhaps it is looping unnecessarily, perhaps it is not using the indexes where you expect them to... only EXPLAIN ANALYZE will tell for sure. Once you have the query running quick, it will be quick in MapServer as well. -- Puneet Kishor From japr94 at hotmail.com Tue Mar 27 10:49:33 2012 From: japr94 at hotmail.com (juliap) Date: Tue, 27 Mar 2012 10:49:33 -0700 (PDT) Subject: [mapserver-users] Re: Inefficient rendering of layer In-Reply-To: References: <1332868653702-4661670.post@n6.nabble.com> Message-ID: <1332870573861-4661757.post@n6.nabble.com> I am not an SQL expert . Do you know any other alternative? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Inefficient-rendering-of-layer-tp4661670p4661757.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Tue Mar 27 11:10:46 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Tue, 27 Mar 2012 13:10:46 -0500 Subject: [mapserver-users] Re: Inefficient rendering of layer In-Reply-To: <1332870573861-4661757.post@n6.nabble.com> References: <1332868653702-4661670.post@n6.nabble.com> <1332870573861-4661757.post@n6.nabble.com> Message-ID: First, I have no idea who you are asking, but since, at least as far as I can tell, I was the only one who replied to you, I am assuming you are asking me. My advice -- when responding, please include the entire email so the context of the conversation is obvious to everyone. And, no, not everyone uses nabble to view the message in context. We simply use our own email programs. On Mar 27, 2012, at 12:49 PM, juliap wrote: > I am not an SQL expert . Do you know any other alternative? > Alternative to what? All you have to do is type your entire query with the words "EXPLAIN ANALYZE" prefixed to it. Your database will spit out a message, a query plan, describing how it will go about actually executing that query. Post the entire output to this list, and someone might be able to help you further. -- Puneet Kishor From Steve.Lime at state.mn.us Tue Mar 27 11:26:11 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 27 Mar 2012 18:26:11 +0000 Subject: [mapserver-users] Re: Inefficient rendering of layer In-Reply-To: <1332870573861-4661757.post@n6.nabble.com> References: <1332868653702-4661670.post@n6.nabble.com> <1332870573861-4661757.post@n6.nabble.com> Message-ID: You have to tune your SQL in this case. There are other minor speedups in MapServer to be had, for example, use CLASSITEM and simple expressions. CLASSITEM 'PartyVotingFor' CLASS EXPRESSION '1' ... END CLASS EXPRESSION '2' ... END CLASS EXPRESSION '3' ... END CLASS # use last one as a default ... END You also can order the classes based on anticipated frequency, but again these are minor compared to what you can gain with SQL tuning. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of juliap Sent: Tuesday, March 27, 2012 12:50 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Inefficient rendering of layer I am not an SQL expert . Do you know any other alternative? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Inefficient-rendering-of-layer-tp4661670p4661757.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 ahmettemiz88 at gmail.com Wed Mar 28 00:05:48 2012 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Wed, 28 Mar 2012 10:05:48 +0300 Subject: [mapserver-users] compilation error Message-ID: hello I am getting en error: ...mapstring.c:1775: undefined reference to `libiconv_close' collect2 : ld returned 1 exit status make: *** [shp2img] Error 1 what causes this problem ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From scolas at gmail.com Wed Mar 28 01:21:38 2012 From: scolas at gmail.com (Dott. Scolavino Alessandro) Date: Wed, 28 Mar 2012 10:21:38 +0200 Subject: [mapserver-users] No map in preview Message-ID: <4F72CA12.8040508@gmail.com> Hi, i just finished loading in postgis the global data. I tryed to display layer with geoserver but i see only "white" map. It's a common problem? If someone have 5 minutes to take a fast look on my geoserver to see if i made a mistake or if i have to rebuild the db (maybe something went wrong with the population i had to run it in background since it take more than 3 days...) i'll give the server address and login data (pvm) thanx!!! -- - -- Ai sensi del DL 196/2003 si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, la Preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Cordiali saluti - ---- Dott. Alessandro Scolavino ---- - ---- http://www.webair.it ---- - ---- http://www.clerk.it ---- From David.Fawcett at state.mn.us Wed Mar 28 05:46:00 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 28 Mar 2012 12:46:00 +0000 Subject: [mapserver-users] No map in preview In-Reply-To: <4F72CA12.8040508@gmail.com> References: <4F72CA12.8040508@gmail.com> Message-ID: If you are really trying to get a Geoserver instance running, I would suggest the Geoserver mailing list.. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dott. Scolavino Alessandro Sent: Wednesday, March 28, 2012 3:22 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] No map in preview Hi, i just finished loading in postgis the global data. I tryed to display layer with geoserver but i see only "white" map. It's a common problem? If someone have 5 minutes to take a fast look on my geoserver to see if i made a mistake or if i have to rebuild the db (maybe something went wrong with the population i had to run it in background since it take more than 3 days...) i'll give the server address and login data (pvm) thanx!!! -- - -- Ai sensi del DL 196/2003 si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, la Preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Cordiali saluti - ---- Dott. Alessandro Scolavino ---- - ---- http://www.webair.it ---- - ---- http://www.clerk.it ---- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From gaston.lucero at sitrack.com Wed Mar 28 10:32:41 2012 From: gaston.lucero at sitrack.com (=?iso-8859-1?Q?Lucero=2C_Gast=F3n_=28SITRACK=29?=) Date: Wed, 28 Mar 2012 17:32:41 +0000 Subject: [mapserver-users] Re: How to deal with the jvm crash after receiving the signal of .. In-Reply-To: <20120327161446.A78FCE00D10@lists.osgeo.org> References: <20120327161446.A78FCE00D10@lists.osgeo.org> Message-ID: <4F734B25.7070106@sitrack.com> Post your java code. I had a similar problem and solve it with System.gc();= Disclaimer: This email and any attachments thereof may contain confidential, privileged, proprietary, or otherwise private information. This email is intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient of the email and its attachments please inform the sender immediately and do not disclose the contents to any other person, use it for any purpose or store or copy the information in any way and delete this e-mail and its attachments from your system. Any views or opinions expressed are solely those of the author. From pschweitzer at usgs.gov Wed Mar 28 12:39:55 2012 From: pschweitzer at usgs.gov (Peter N. Schweitzer) Date: Wed, 28 Mar 2012 15:39:55 -0400 Subject: [mapserver-users] EXCEPTIONS format question Message-ID: <4F73690B.5020400@usgs.gov> Help! Seeing some errors in my mapserv.log file, I edited all of my map files to add, in the metadata section of each layer, the single item "wms_exceptions_format" "application/vnd.ogc.se_xml" Now I see a few errors that say WMS server error. Invalid format application/vnd.ogc.se_XML for the EXCEPTIONS parameter. It would seem that the wms_exceptions_format value is case sensitive; should it be? Is this metadata item repeatable? Can I write, for example "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_exceptions_format" "application/vnd.ogc.se_XML" or perhaps "wms_exceptions_format" "application/vnd.ogc.se_xml, appplication/vnd.ogc.se_XML" Peter -- Peter N. Schweitzer (MS 954, U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 FAX: (703) 648-6252 email: pschweitzer at usgs.gov From mmypost at yandex.ru Wed Mar 28 14:05:49 2012 From: mmypost at yandex.ru (mmypost mmypost) Date: Thu, 29 Mar 2012 01:05:49 +0400 Subject: [mapserver-users] Problem with patttern and GAP Message-ID: <215091332968749@web13.yandex.ru> Hi Sorry for my bad English. I have a problem with use GAP and PATTERN . I want to get symbol like symbol in the attach file. But I can not put triangle symbol(font1 truetype) and star symbol(font2 truetype) in center elements of dashed line. I can not find GAP value for triangle and star symbols and PATTERN value for dashed line. Can I to applay same PATTERN for dashed line, triangle symbol and star symbol? Version mapserver 5.6.6 Yours sincerely, Sev -------------- next part -------------- A non-text attachment was scrubbed... Name: line.png Type: image/png Size: 1716 bytes Desc: not available URL: From havard.tveite at umb.no Wed Mar 28 15:49:47 2012 From: havard.tveite at umb.no (Havard Tveite) Date: Thu, 29 Mar 2012 00:49:47 +0200 Subject: [mapserver-users] Problem with patttern and GAP In-Reply-To: <215091332968749@web13.yandex.ru> References: <215091332968749@web13.yandex.ru> Message-ID: <4F73958B.3000604@umb.no> You can't do this with Mapserver 5.6.6. You will need INITIALGAP, which is introduced in Mapserver 6.2. http://www.mapserver.org/trunk/mapfile/style.html http://www.mapserver.org/trunk/mapfile/symbology/construction.html#use-of-the-pattern-and-gap-parameters If you want to test this, you can try the developing (trunk) version of Mapserver. H?vard On 03/28/2012 11:05 PM, mmypost mmypost wrote: > Hi > Sorry for my bad English. > > I have a problem with use GAP and PATTERN . > I want to get symbol like symbol in the attach file. > But I can not put triangle symbol(font1 truetype) and star symbol(font2 truetype) in center elements of dashed line. > I can not find GAP value for triangle and star symbols and PATTERN value for dashed line. > Can I to applay same PATTERN for dashed line, triangle symbol and star symbol? > > Version mapserver 5.6.6 > > Yours sincerely, > Sev > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From neelima.emmani at iictechnologies.com Wed Mar 28 20:45:51 2012 From: neelima.emmani at iictechnologies.com (Neelima Emmani) Date: Thu, 29 Mar 2012 03:45:51 +0000 Subject: [mapserver-users] tinyows - installation problem Message-ID: Hi all, I am trying to install tinyows in my ms4w package. First of all, I am new to this tinyows. Process followed : Took files from tinyows folder and kept them in their related paths like * tinyows.exe under apache>cgi-bin * tinyows folder under ms4w>apps * httpd_tinyows under ms4w>httpd.d and also set the tinyows environment in ms4w/Apache/conf/httpd.conf using statements from httpd_tinyows * configuration - To configure made changes in the config.xml which is under tinyows folder. There i have my dbname , username, password and layername as follows - * And then i opened cmd, went to the cgi-bin path and said tinyows --check. Then an exception is thrown as follows -- No PostGIS available in database Can anyone suggest where is the problem. Usernmae, password, dbname and hostname are correct . there is no mistake in that. Do i need top do any further settings. Please suugest me , if any idea. Awaiting reply. With Regards, Neelima Emmani -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Mar 28 21:16:13 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 29 Mar 2012 04:16:13 +0000 Subject: [mapserver-users] Re: tinyows - installation problem In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63147FAB@suutari.haapa.mmm.fi> Hi, Error seems to say that TinyOWS finds the database but not PostGIS functions from it. What do you get by this SQL query from your database select postgis_version() -Jukka Rahkonen- ________________________________ Neelima Emmani wrote: > Hi all, > I am trying to install tinyows in my ms4w package. First of all, I am new to this tinyows. > Process followed : > Took files from tinyows folder and kept them in their related paths like * tinyows.exe under apache>cgi-bin * tinyows folder under ms4w>apps * httpd_tinyows under ms4w>httpd.d and also set the tinyows environment in ms4w/Apache/conf/httpd.conf using statements from httpd_tinyows * configuration - To configure made changes in the config.xml which is under tinyows folder. There i have my dbname , username, password and layername as follows - * And then i opened cmd, went to the cgi-bin path and said tinyows --check. Then an exception is thrown as follows -- No PostGIS available in database Can anyone suggest where is the problem. Usernmae, password, dbname and hostname are correct . there is no mistake in that. Do i need top do any further settings. Please suugest me , if any idea. Awaiting reply. With Regards, Neelima Emmani From john.callahan at udel.edu Wed Mar 28 21:24:00 2012 From: john.callahan at udel.edu (John Callahan) Date: Thu, 29 Mar 2012 00:24:00 -0400 Subject: [mapserver-users] polygon symbol image fill problem Message-ID: I hope this is an easy question. I'm drawing a polygon dataset through WMS. For some of the classes, I am filling those polygons with a local PNG file. However, the image itself has an outline. (see attached image for an example) Is there a way to remove the symbol image outline inside my polygon features? Here is a snippet of my map file. I'm using Mapserver 6.0.2 on Windows (I don't seem to remember this happening in older versions of Mapserver but maybe I missed it.) Thanks. CLASS NAME 'pegmatite' EXPRESSION 'pegmatite' STYLE SYMBOL 'graphics/pegmatite.png' END END - John *********************************************** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: example_symboloutline.gif Type: image/gif Size: 17782 bytes Desc: not available URL: From matt at wildwalks.com Wed Mar 28 22:00:06 2012 From: matt at wildwalks.com (Matt McClelland) Date: Thu, 29 Mar 2012 16:00:06 +1100 Subject: [mapserver-users] polygon symbol image fill problem In-Reply-To: References: Message-ID: Hi John I can't answer you question specifically I have not tried that feature But can you use standard symbols to do the hatch-fill instead? You will probably get a better looking fill effect, and be kinder to your server The Symbol construction stuff took me a little while to get my head around, but it is very powerful and allows you to do some cool things. Hatching is fairly easy and you find a good example here. http://mapserver.org/mapfile/symbology/construction.html#hatch-fill Hope that helps Matt :) Matt McClelland mob: 0411 306 650 e-mail: matt at wildwalks.com web: http://www.wildwalks.com/ Books: http://www.wildwalks.com/books Newsletter: http://www.wildwalks.com/office/newsletters/ On Thu, Mar 29, 2012 at 3:24 PM, John Callahan wrote: > I hope this is an easy question. I'm drawing a polygon dataset through > WMS. For some of the classes, I am filling those polygons with a local PNG > file. However, the image itself has an outline. (see attached image for an > example) Is there a way to remove the symbol image outline inside my > polygon features? > > Here is a snippet of my map file. I'm using Mapserver 6.0.2 on Windows (I > don't seem to remember this happening in older versions of Mapserver but > maybe I missed it.) Thanks. > > CLASS > NAME 'pegmatite' > EXPRESSION 'pegmatite' > STYLE > SYMBOL 'graphics/pegmatite.png' > END > END > > - John > > *********************************************** > John Callahan, Research Scientist > Delaware Geological Survey, University of Delaware > URL: http://www.dgs.udel.edu > ************************************************* > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pedrocostaarma at sapo.pt Thu Mar 29 05:05:40 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 29 Mar 2012 13:05:40 +0100 Subject: [mapserver-users] encrypt password Message-ID: <4F745014.50003@sapo.pt> Hello, I'm using Mapserver with pmaper and i want encrypt the password of a postgis connection in mapfile. Someone can tell me how I do that? Thanks Pedro From dmorissette at mapgears.com Thu Mar 29 05:08:59 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 29 Mar 2012 08:08:59 -0400 Subject: [mapserver-users] encrypt password In-Reply-To: <4F745014.50003@sapo.pt> References: <4F745014.50003@sapo.pt> Message-ID: <4F7450DB.3080106@mapgears.com> On 12-03-29 8:05 AM, Pedro Costa wrote: > Hello, > > I'm using Mapserver with pmaper and i want encrypt the password of a > postgis connection in mapfile. > Someone can tell me how I do that? > http://mapserver.org/utilities/msencrypt.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From pelin.01 at gmail.com Thu Mar 29 05:24:06 2012 From: pelin.01 at gmail.com (pelin) Date: Thu, 29 Mar 2012 09:24:06 -0300 Subject: [mapserver-users] encrypt password In-Reply-To: <4F745014.50003@sapo.pt> References: <4F745014.50003@sapo.pt> Message-ID: you can set the TRUST connection to postgis database. in pg_hba.conf (/etc/postgresql/VERSION/main/pg_hba.conf) you define: hostssl all mapas 172.17.0.1/24 trust where: hostssl: only accept ssl connection all : all databases, you can change to your database name mapas: database username 172.17.0.1/24: WEB SERVER or router trust: don't prompt for password 2012/3/29 Pedro Costa > Hello, > > I'm using Mapserver with pmaper and i want encrypt the password of a > postgis connection in mapfile. > Someone can tell me how I do that? > > Thanks > > Pedro > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -- -------------------------------------------------------- http://pelinrodriguez.wordpress.com -------------------------------------------------------- Atentamente Rolando Sergio Rodriguez -------------- next part -------------- An HTML attachment was scrubbed... URL: From pedrocostaarma at sapo.pt Thu Mar 29 05:40:03 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 29 Mar 2012 13:40:03 +0100 Subject: [mapserver-users] encrypt password In-Reply-To: <4F7450DB.3080106@mapgears.com> References: <4F745014.50003@sapo.pt> <4F7450DB.3080106@mapgears.com> Message-ID: <4F745823.5040600@sapo.pt> Thanks but don?t work... The webgis stay loading the layers forever... Can you help me? Em 29-03-2012 13:08, Daniel Morissette escreveu: > On 12-03-29 8:05 AM, Pedro Costa wrote: >> Hello, >> >> I'm using Mapserver with pmaper and i want encrypt the password of a >> postgis connection in mapfile. >> Someone can tell me how I do that? >> > > > http://mapserver.org/utilities/msencrypt.html > > From pelin.01 at gmail.com Thu Mar 29 06:00:06 2012 From: pelin.01 at gmail.com (pelin) Date: Thu, 29 Mar 2012 10:00:06 -0300 Subject: [mapserver-users] encrypt password In-Reply-To: <4F745823.5040600@sapo.pt> References: <4F745014.50003@sapo.pt> <4F7450DB.3080106@mapgears.com> <4F745823.5040600@sapo.pt> Message-ID: you need reload the postgresql server and put in mapfile: CONNECTION "dbname=db host=IP port=5432 user=USERDB" I'm using 2012/3/29 Pedro Costa > Thanks but don?t work... > > The webgis stay loading the layers forever... > > Can you help me? > > > Em 29-03-2012 13:08, Daniel Morissette escreveu: > > On 12-03-29 8:05 AM, Pedro Costa wrote: >> >>> Hello, >>> >>> I'm using Mapserver with pmaper and i want encrypt the password of a >>> postgis connection in mapfile. >>> Someone can tell me how I do that? >>> >>> >> >> http://mapserver.org/**utilities/msencrypt.html >> >> >> > ______________________________**_________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.**org > http://lists.osgeo.org/**mailman/listinfo/mapserver-**users > -- -------------------------------------------------------- http://pelinrodriguez.wordpress.com -------------------------------------------------------- Atentamente Rolando Sergio Rodriguez -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at udel.edu Thu Mar 29 06:05:17 2012 From: john.callahan at udel.edu (John Callahan) Date: Thu, 29 Mar 2012 09:05:17 -0400 Subject: [mapserver-users] polygon symbol image fill problem In-Reply-To: References: Message-ID: @Matt: I doubt I can use the standard symbol features of Mapserver. Maybe. The hatch symbol is but one example. I have approx 10 - 20 image-based fills of all different types. These were created for our published, standardized geologic maps. Our web-based maps need to look identical to our publications. Thanks for the suggestion. @Havard: Thanks for the info. I'm glad there's a fix for this in 6.2. I can wait until then. - John *********************************************** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ************************************************* On Thu, Mar 29, 2012 at 1:00 AM, Matt McClelland wrote: > Hi John > > I can't answer you question specifically I have not tried that feature > > But can you use standard symbols to do the hatch-fill instead? You will > probably get a better looking fill effect, and be kinder to your server > > The Symbol construction stuff took me a little while to get my head > around, but it is very powerful and allows you to do some cool things. > Hatching is fairly easy and you find a good example here. > http://mapserver.org/mapfile/symbology/construction.html#hatch-fill > > Hope that helps > > Matt :) > > Matt McClelland > mob: 0411 306 650 > e-mail: matt at wildwalks.com > web: http://www.wildwalks.com/ > Books: http://www.wildwalks.com/books > Newsletter: http://www.wildwalks.com/office/newsletters/ > > > On Thu, Mar 29, 2012 at 3:24 PM, John Callahan wrote: > >> I hope this is an easy question. I'm drawing a polygon dataset through >> WMS. For some of the classes, I am filling those polygons with a local PNG >> file. However, the image itself has an outline. (see attached image for an >> example) Is there a way to remove the symbol image outline inside my >> polygon features? >> >> Here is a snippet of my map file. I'm using Mapserver 6.0.2 on Windows >> (I don't seem to remember this happening in older versions of Mapserver but >> maybe I missed it.) Thanks. >> >> CLASS >> NAME 'pegmatite' >> EXPRESSION 'pegmatite' >> STYLE >> SYMBOL 'graphics/pegmatite.png' >> END >> END >> >> - John >> >> *********************************************** >> John Callahan, Research Scientist >> Delaware Geological Survey, University of Delaware >> URL: http://www.dgs.udel.edu >> ************************************************* >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Mar 29 06:05:00 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 29 Mar 2012 09:05:00 -0400 Subject: [mapserver-users] encrypt password In-Reply-To: <4F745823.5040600@sapo.pt> References: <4F745014.50003@sapo.pt> <4F7450DB.3080106@mapgears.com> <4F745823.5040600@sapo.pt> Message-ID: <4F745DFC.1040201@mapgears.com> On 12-03-29 8:40 AM, Pedro Costa wrote: > Thanks but don?t work... > > The webgis stay loading the layers forever... > > Can you help me? > It could be that MapServer produces an error and "The webgis" (whatever it is) is not prepared to handle it and just spins forever. If the error is really on the MapServer side then the following instructions should help you track down the source of the problem: http://mapserver.org/optimization/debugging.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From qc_mad at hotmail.com Thu Mar 29 07:41:43 2012 From: qc_mad at hotmail.com (=?UTF-8?Q?Marc-Andr=C3=A9_D=2E?=) Date: Thu, 29 Mar 2012 07:41:43 -0700 (PDT) Subject: [mapserver-users] Problem with Class Expression Message-ID: <1333032103133-4668046.post@n6.nabble.com> Hi list, I've searched a bit in the mailing list about this problem, but I didn't really found any good answer to my problem. Want I would like to do: only to show some labels between a range of scale (1:1000 and 1:5000) based on an attribute in my shapefile. BUT: When i uncomment the "expression" line, in my app (GeoMOOSE) I receive a (not)nice Pink Screen Of Death and in my Apache2 log file, a segmentation fault error show up (/msSHPLayerGetShape(): Shapefile error. Shapefile layer has not been opened. [Thu Mar 29 09:48:31 2012] [notice] child pid 26937 exit signal Segmentation fault (11)/ ) Here is my problematic layer: LAYER NAME 'superficie' DATA '../440_MRC_Coaticook/44037_Coaticook/centroide_pts.shp' STATUS ON TYPE ANNOTATION LABELITEM 'SUPERFICIE' LABELCACHE ON CLASS NAME 'Superficie' EXPRESSION ( [AREA] >= 1 ) # the problematic line... MAXSCALEDENOM 5008 MINSCALEDENOM 1008 LABEL FONT vera_sans TYPE TRUETYPE SIZE 8 COLOR 0 0 0 POSITION CC FORCE true OFFSET 0 3 ANTIALIAS true END END TRANSPARENCY 100 END #superficie Thanks to all in advance!! ----- ----------------------------- Marc-Andr? Dion B.Sc G?omatique appliqu?e Universit? de Sherbrooke -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Class-Expression-tp4668046p4668046.html Sent from the Mapserver - User mailing list archive at Nabble.com. From qc_mad at hotmail.com Thu Mar 29 10:14:48 2012 From: qc_mad at hotmail.com (=?UTF-8?Q?Marc-Andr=C3=A9_D=2E?=) Date: Thu, 29 Mar 2012 10:14:48 -0700 (PDT) Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <1333032103133-4668046.post@n6.nabble.com> References: <1333032103133-4668046.post@n6.nabble.com> Message-ID: <1333041288766-4668482.post@n6.nabble.com> After digging up a bit more, I've found that MapServer doesn't recognise the column "AREA" in my shapefile....but this column really exist. It does the samething with a few more column in that same shapefile. Got any idea about this problem? Here is my Apache log error.... /[Thu Mar 29 11:55:06 2012] [error] [client 192.168.2.1] msDBFGetItemIndex(): DBASE file error. Item 'AREA' not found., 7/ ----- ----------------------------- Marc-Andr? Dion B.Sc G?omatique appliqu?e Universit? de Sherbrooke -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Class-Expression-tp4668046p4668482.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcorti at gmail.com Thu Mar 29 10:21:43 2012 From: pcorti at gmail.com (Paolo Corti) Date: Thu, 29 Mar 2012 19:21:43 +0200 Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <1333041288766-4668482.post@n6.nabble.com> References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> Message-ID: On Thu, Mar 29, 2012 at 7:14 PM, Marc-Andr? D. wrote: > After digging up a bit more, I've found that MapServer doesn't recognise the > column "AREA" in my shapefile....but this column really exist. It does the > samething with a few more column in that same shapefile. > It is very likely that you are looking at that column within some desktop client and it is computed by that software. Just to be sure, could you post the output of ogrinfo? $ ogrinfo your_shape.shp -so your_shape p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From pedrocostaarma at sapo.pt Thu Mar 29 10:25:51 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 29 Mar 2012 18:25:51 +0100 Subject: [mapserver-users] msdrawmap Message-ID: <4F749B1F.4050800@sapo.pt> Hello, I have an error with mapfile. If i open only with the mapserver i get this error: msDrawMap(): Image handling error. Failed to draw layer named 'orto'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '../../images/orto.tif' for layer 'orto'. But if i open with pmapper works.The problem it is a tiff Anyone know the error? Thanks From woodbri at swoodbridge.com Thu Mar 29 10:23:35 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 29 Mar 2012 13:23:35 -0400 Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <1333041288766-4668482.post@n6.nabble.com> References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> Message-ID: <4F749A97.60505@swoodbridge.com> On 3/29/2012 1:14 PM, Marc-Andr? D. wrote: > After digging up a bit more, I've found that MapServer doesn't recognise the > column "AREA" in my shapefile....but this column really exist. It does the > samething with a few more column in that same shapefile. > > Got any idea about this problem? > > Here is my Apache log error.... > > > /[Thu Mar 29 11:55:06 2012] [error] [client 192.168.2.1] > msDBFGetItemIndex(): DBASE file error. Item 'AREA' not found., 7/ Column names are case sensitive. It is likely your have a mixed case name. Maybe ogrinfo will reveal that. -Steve W From woodbri at swoodbridge.com Thu Mar 29 10:25:20 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 29 Mar 2012 13:25:20 -0400 Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <1333041288766-4668482.post@n6.nabble.com> References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> Message-ID: <4F749B00.20204@swoodbridge.com> On 3/29/2012 1:14 PM, Marc-Andr? D. wrote: > After digging up a bit more, I've found that MapServer doesn't recognise the > column "AREA" in my shapefile....but this column really exist. It does the > samething with a few more column in that same shapefile. > > Got any idea about this problem? > > Here is my Apache log error.... > > > /[Thu Mar 29 11:55:06 2012] [error] [client 192.168.2.1] > msDBFGetItemIndex(): DBASE file error. Item 'AREA' not found., 7/ Regardless of the resolution, please file a bug for this and document the issue. Thanks, -Steve From pedrocostaarma at sapo.pt Thu Mar 29 10:39:56 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Thu, 29 Mar 2012 18:39:56 +0100 Subject: [mapserver-users] Re: msdrawmap In-Reply-To: <4F749B1F.4050800@sapo.pt> References: <4F749B1F.4050800@sapo.pt> Message-ID: <4F749E6C.3000101@sapo.pt> I add the tiff like that: LAYER NAME 'ortol' STATUS DEFAULT TYPE RASTER DATA "../../images/orto.tif" DUMP TRUE TEMPLATE "void" END Em 29-03-2012 18:25, Pedro Costa escreveu: > Hello, > > I have an error with mapfile. If i open only with the mapserver i get > this error: > > > msDrawMap(): Image handling error. Failed to draw layer named 'orto'. > msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or > missing file '../../images/orto.tif' for layer 'orto'. > > > But if i open with pmapper works.The problem it is a tiff > > Anyone know the error? > > Thanks From qc_mad at hotmail.com Thu Mar 29 10:45:13 2012 From: qc_mad at hotmail.com (=?UTF-8?Q?Marc-Andr=C3=A9_D=2E?=) Date: Thu, 29 Mar 2012 10:45:13 -0700 (PDT) Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> Message-ID: <1333043113600-4668585.post@n6.nabble.com> It seems that my column 'AREA' is a calculated one....but how could I interrogated that column??? I think the column 'AREA' refer to an other shapefile....but how could I create an expression that will interrogate another shapefile???? INFO: Open of `centroide_pts.shp' using driver `ESRI Shapefile' successful. Layer name: centroide_pts Geometry: Point Feature Count: 3763 Extent: (192120.737200, 4986442.910500) - (212410.721754, 5003132.634000) Layer SRS WKT: PROJCS["NAD_1983_MTM_7", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",304800.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-70.5], PARAMETER["Scale_Factor",0.9999], PARAMETER["Latitude_Of_Origin",0.0], UNIT["Meter",1.0]] ID: Real (11.0) NO_LOT: String (30.0) ECHELLE: String (15.0) SOURCE: String (50.0) ANGLELOT: Real (10.2) ANGLE_MANU: String (1.0) VERIF: String (10.0) PROB_SUP: String (10.0) PROB_NOLOT: String (10.0) LEGVERIF: String (10.0) MA_NAD27: String (16.0) SUP: String (16.0) ANGLE: Real (16.4) IDENT: String (100.0) SUPERFICIE: String (50.0) X_COORD: Real (18.5) Y_COORD: Real (18.5) MATRICULE: String (16.0) MA_NAD83: String (16.0) CENTROIDE: String (4.0) DATE: Date (10.0) FEUILLET: String (50.0) C1_NAD83: String (4.0) C2_NAD83: String (7.0) POSITION: String (30.0) TAILLE: Real (7.2) MAT_83: String (15.0) X_COORD: Real (18.5) Y_COORD: Real (18.5) ----- ----------------------------- Marc-Andr? Dion B.Sc G?omatique appliqu?e Universit? de Sherbrooke -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Class-Expression-tp4668046p4668585.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Mar 29 13:00:38 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 29 Mar 2012 16:00:38 -0400 Subject: [mapserver-users] Re: msdrawmap In-Reply-To: <4F749E6C.3000101@sapo.pt> References: <4F749B1F.4050800@sapo.pt> <4F749E6C.3000101@sapo.pt> Message-ID: <4F74BF66.2080006@swoodbridge.com> You are using a relative path. This should be relative to the mapfile location or relative to the SHAPEPATH location. Verify the file with gdalinfo -Steve W On 3/29/2012 1:39 PM, Pedro Costa wrote: > I add the tiff like that: > > > LAYER > NAME 'ortol' > STATUS DEFAULT > TYPE RASTER > DATA "../../images/orto.tif" > DUMP TRUE > TEMPLATE "void" > END > > > > > Em 29-03-2012 18:25, Pedro Costa escreveu: >> Hello, >> >> I have an error with mapfile. If i open only with the mapserver i get >> this error: >> >> >> msDrawMap(): Image handling error. Failed to draw layer named 'orto'. >> msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or >> missing file '../../images/orto.tif' for layer 'orto'. >> >> >> But if i open with pmapper works.The problem it is a tiff >> >> Anyone know the error? >> >> Thanks > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Mar 29 13:03:56 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 29 Mar 2012 16:03:56 -0400 Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <1333043113600-4668585.post@n6.nabble.com> References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> <1333043113600-4668585.post@n6.nabble.com> Message-ID: <4F74C02C.6010105@swoodbridge.com> It is likely a computed column that does not exist in the file as ogrinfo is indicating. In some other program it is computing the AREA on fly and presenting is as a virtual column but mapserver does not do that for you. Ask on the GDAL/OGR list how to add a column and populate it with the shape AREA. -Steve W On 3/29/2012 1:45 PM, Marc-Andr? D. wrote: > It seems that my column 'AREA' is a calculated one....but how could I > interrogated that column??? I think the column 'AREA' refer to an other > shapefile....but how could I create an expression that will interrogate > another shapefile???? > > > > INFO: Open of `centroide_pts.shp' > using driver `ESRI Shapefile' successful. > > Layer name: centroide_pts > Geometry: Point > Feature Count: 3763 > Extent: (192120.737200, 4986442.910500) - (212410.721754, 5003132.634000) > Layer SRS WKT: > PROJCS["NAD_1983_MTM_7", > GEOGCS["GCS_North_American_1983", > DATUM["North_American_Datum_1983", > SPHEROID["GRS_1980",6378137.0,298.257222101]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["False_Easting",304800.0], > PARAMETER["False_Northing",0.0], > PARAMETER["Central_Meridian",-70.5], > PARAMETER["Scale_Factor",0.9999], > PARAMETER["Latitude_Of_Origin",0.0], > UNIT["Meter",1.0]] > ID: Real (11.0) > NO_LOT: String (30.0) > ECHELLE: String (15.0) > SOURCE: String (50.0) > ANGLELOT: Real (10.2) > ANGLE_MANU: String (1.0) > VERIF: String (10.0) > PROB_SUP: String (10.0) > PROB_NOLOT: String (10.0) > LEGVERIF: String (10.0) > MA_NAD27: String (16.0) > SUP: String (16.0) > ANGLE: Real (16.4) > IDENT: String (100.0) > SUPERFICIE: String (50.0) > X_COORD: Real (18.5) > Y_COORD: Real (18.5) > MATRICULE: String (16.0) > MA_NAD83: String (16.0) > CENTROIDE: String (4.0) > DATE: Date (10.0) > FEUILLET: String (50.0) > C1_NAD83: String (4.0) > C2_NAD83: String (7.0) > POSITION: String (30.0) > TAILLE: Real (7.2) > MAT_83: String (15.0) > X_COORD: Real (18.5) > Y_COORD: Real (18.5) > > > ----- > ----------------------------- > Marc-Andr? Dion > B.Sc G?omatique appliqu?e > Universit? de Sherbrooke > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Class-Expression-tp4668046p4668585.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 pcorti at gmail.com Thu Mar 29 13:35:33 2012 From: pcorti at gmail.com (Paolo Corti) Date: Thu, 29 Mar 2012 22:35:33 +0200 Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <1333043113600-4668585.post@n6.nabble.com> References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> <1333043113600-4668585.post@n6.nabble.com> Message-ID: On Thu, Mar 29, 2012 at 7:45 PM, Marc-Andr? D. wrote: > It seems that my column 'AREA' is a calculated one....but how could I > interrogated that column??? I think the column 'AREA' refer to an other > shapefile....but how could I create an expression that will interrogate > another shapefile???? > Simplest way is to use ogr2ogr using the -sql option, computing the area with the OGR_GEOM_AREA special field: $ ogr2ogr output.shp input.shp -sql 'select field1, field2, ..., fieldn, OGR_GEOM_AREA as AREA from input' p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From qc_mad at hotmail.com Thu Mar 29 13:39:36 2012 From: qc_mad at hotmail.com (=?UTF-8?Q?Marc-Andr=C3=A9_D=2E?=) Date: Thu, 29 Mar 2012 13:39:36 -0700 (PDT) Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <4F74C02C.6010105@swoodbridge.com> References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> <1333043113600-4668585.post@n6.nabble.com> <4F74C02C.6010105@swoodbridge.com> Message-ID: <1333053576926-4669122.post@n6.nabble.com> Thank's for your quick answer Mr. Woodridge. But, I've tryied something really similar (instead of the column 'AREA' , I've used 'MA_10_83') and I checked taht this column really exist with the command line ogrinfo in the shapefile and no label showed up... But, when I use another column(MA_NAD83), it works....I really, really don't understand?!?!?!?! I'm trying to think that some of my .SHP are cursed...or me?! ----- ----------------------------- Marc-Andr? Dion B.Sc G?omatique appliqu?e Universit? de Sherbrooke -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Class-Expression-tp4668046p4669122.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Mar 29 14:46:38 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 29 Mar 2012 17:46:38 -0400 Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <1333053576926-4669122.post@n6.nabble.com> References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> <1333043113600-4668585.post@n6.nabble.com> <4F74C02C.6010105@swoodbridge.com> <1333053576926-4669122.post@n6.nabble.com> Message-ID: <4F74D83E.1060604@swoodbridge.com> On 3/29/2012 4:39 PM, Marc-Andr? D. wrote: > Thank's for your quick answer Mr. Woodridge. > > But, I've tryied something really similar (instead of the column 'AREA' , > I've used 'MA_10_83') and I checked taht this column really exist with the > command line ogrinfo in the shapefile and no label showed up... > > But, when I use another column(MA_NAD83), it works....I really, really don't > understand?!?!?!?! > > I'm trying to think that some of my .SHP are cursed...or me?! You should probably post the layer definition from your mapfile so we can see what you are doing and it will probably be easier to help get things working. -Steve From binay.shrestha at nepasoft.com.np Fri Mar 30 05:07:23 2012 From: binay.shrestha at nepasoft.com.np (Binay Raja. Shrestha) Date: Fri, 30 Mar 2012 17:52:23 +0545 Subject: [mapserver-users] mapscript C# Message-ID: <325521DDB16A1F4B90085DCCE3FFD12BC07FD9@mailsrv.nepasoft.com.np> Dear sir, I am new to mapscript C#. I found some turtorials on www.paolocorti.net. Is their any site where I can found more tutorials on mapscript C# ? Regards binay -------------- next part -------------- An HTML attachment was scrubbed... URL: From binay.shrestha at nepasoft.com.np Fri Mar 30 05:11:42 2012 From: binay.shrestha at nepasoft.com.np (Binay Raja. Shrestha) Date: Fri, 30 Mar 2012 17:56:42 +0545 Subject: [mapserver-users] help mapscript C# tutorials Message-ID: <325521DDB16A1F4B90085DCCE3FFD12BC07FDD@mailsrv.nepasoft.com.np> Dear sir, I am using mapserver with c#. I have found tutorials of in www.paolocorti.net. Is their any other helpful site for beginners. Regards binay -------------- next part -------------- An HTML attachment was scrubbed... URL: From qc_mad at hotmail.com Fri Mar 30 06:17:43 2012 From: qc_mad at hotmail.com (=?UTF-8?Q?Marc-Andr=C3=A9_D=2E?=) Date: Fri, 30 Mar 2012 06:17:43 -0700 (PDT) Subject: [mapserver-users] Re: Problem with Class Expression In-Reply-To: <4F74D83E.1060604@swoodbridge.com> References: <1333032103133-4668046.post@n6.nabble.com> <1333041288766-4668482.post@n6.nabble.com> <1333043113600-4668585.post@n6.nabble.com> <4F74C02C.6010105@swoodbridge.com> <1333053576926-4669122.post@n6.nabble.com> <4F74D83E.1060604@swoodbridge.com> Message-ID: <1333113463154-4671294.post@n6.nabble.com> Here is my Mapfile and my log of the OGRINFO on my shapefile. What I'm trying to do in this Mapfile is to show label with some specific criteria: - if the AREA(area in km?) is >= 1 then the scale of the label will be between 1008 and 5008 - if the AREA (area in km?) is < 1 then the scale of the label will be less than 1008. What doesn't work: - if I use the column'MA_NAD83' to show up the label is like this : 8989899525 BUT, I would like to use the column 'MA_10_83' because the label is 8989-89-9525 and this doesn't work (and I don't know whyyy). - It seems that MapServer is not able to draw my layers Superficie and Num?ro de lot because it can not reach the right columns ('SUP' and 'NO_LOT'). It's the same problem like the 'MA_10_83' (see above). - The expression is not (always?!?!?) able to read the column 'AREA' and I don't understand why?!?!?... Thanks for your time & your help. Mapfile -------------- MAP NAME "Coaticook" SIZE 800 650 STATUS ON CONFIG "MS_ERRORFILE" stderr DEBUG 5 UNITS meters INCLUDE "../../mapping_globals.map" WEB METADATA 'ows_title' 'M.R.C. Coaticook' 'ows_srs' 'EPSG:26915 EPSG:900913 EPSG:32188 EPSG:4326' END END LEGEND LABEL TYPE TRUETYPE FONT vera_sans SIZE 8 COLOR 0 0 0 END END LAYER NAME 'ma_nad83' DATA '../440_MRC_Coaticook/44037_Coaticook/unite_eval.shp' STATUS ON TYPE ANNOTATION LABELITEM 'MA_NAD83' LABELCACHE ON CLASS NAME 'Matricule' EXPRESSION ([AREA] >= 1) MAXSCALEDENOM 5008 MINSCALEDENOM 1008 LABEL FONT vera_sans TYPE TRUETYPE SIZE 8 COLOR 0 0 0 POSITION UC FORCE true ANTIALIAS true END #label END #class CLASS EXPRESSION ([AREA] < 1) MAXSCALEDENOM 1008 LABEL FONT vera_sans TYPE TRUETYPE SIZE 8 COLOR 0 0 0 POSITION UC FORCE true ANTIALIAS true END #label END #class END #layer LAYER NAME 'superficie' DATA '../440_MRC_Coaticook/44037_Coaticook/unite_eval.shp' STATUS ON TYPE ANNOTATION LABELITEM 'SUP' CLASS NAME 'Superficie' EXPRESSION ([AREA] >= 1) MAXSCALEDENOM 5008 MINSCALEDENOM 1008 LABEL FONT vera_sans TYPE TRUETYPE SIZE 8 COLOR 0 0 0 POSITION CC FORCE true OFFSET 0 5 ANTIALIAS true END #label END #class CLASS EXPRESSION ([AREA] < 1) MAXSCALEDENOM 1008 LABEL FONT vera_sans TYPE TRUETYPE SIZE 8 COLOR 0 0 0 POSITION UC FORCE true ANTIALIAS true END #label END #class TRANSPARENCY 100 END #superficie LAYER NAME 'No_lot' DATA '../440_MRC_Coaticook/44037_Coaticook/unite_eval.shp' STATUS ON TYPE ANNOTATION LABELITEM 'NO_LOT' CLASS NAME 'Num?ro de lot' EXPRESSION ([AREA] >= 1) MAXSCALEDENOM 5008 MINSCALEDENOM 1008 LABEL FONT vera_sans TYPE TRUETYPE SIZE 8 COLOR 0 0 0 POSITION CC FORCE true OFFSET 0 -17 ANTIALIAS true END #label END #class CLASS EXPRESSION ([AREA] < 1) MAXSCALEDENOM 1008 LABEL FONT vera_sans TYPE TRUETYPE SIZE 8 COLOR 0 0 0 POSITION UC FORCE true ANTIALIAS true END #label END #class TRANSPARENCY 100 END #no_lot END #map OGRINFO on my shapefile -------- grinfo unite_eval.shp -so unite_eval INFO: Open of `unite_eval.shp' using driver `ESRI Shapefile' successful. Layer name: unite_eval Geometry: Polygon Feature Count: 3761 Extent: (192047.087702, 4986264.383000) - (212561.941000, 5003229.285008) Layer SRS WKT: PROJCS["NAD_1983_MTM_7", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",304800.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-70.5], PARAMETER["Scale_Factor",0.9999], PARAMETER["Latitude_Of_Origin",0.0], UNIT["Meter",1.0]] ID: Real (11.0) MATRICULE: String (16.0) X_COORD: Real (18.5) Y_COORD: Real (18.5) NO_LOT: String (30.0) ECHELLE: String (15.0) MA_NAD83: String (10.0) SOURCE: String (50.0) ANGLELOT: Real (10.2) ANGLE_MANU: String (1.0) VERIF: String (10.0) PROB_SUP: String (10.0) PROB_NOLOT: String (10.0) LEGVERIF: String (10.0) MA_NAD27: String (16.0) PSC_INDEX: Integer (7.0) SUP: String (16.0) X_COORD_1: Real (18.5) Y_COORD_1: Real (18.5) PSC_INDE_1: Integer (7.0) AREA: Real (16.3) PERIMETER: Real (16.3) ACRES: Real (16.3) HECTARES: Real (19.11) X_COORD_12: Real (18.5) Y_COORD_12: Real (18.5) PSC_INDE_2: Integer (7.0) FRONT: Real (16.2) SUPERF_N: Real (16.1) U_M_SUP: String (2.0) U_M_FR: String (2.0) MA_10_27: String (16.0) MA_10_83: String (16.0) PSC_INDE_3: Integer (7.0) DATE: Date (10.0) FEUILLET: String (50.0) C1_NAD83: String (4.0) C2_NAD83: String (7.0) PSC_INDE_4: Integer (7.0) ----- ----------------------------- Marc-Andr? Dion B.Sc G?omatique appliqu?e Universit? de Sherbrooke -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Class-Expression-tp4668046p4671294.html Sent from the Mapserver - User mailing list archive at Nabble.com.
NUTS_BN_03M_2006 [item name=NUTS_BN_ID format=$value escape=none] [item name=OBJECTID format=$value escape=none] [item name=STAT_LEVL_ format=$value escape=none]